.wb211-campaign-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; }
.wb211-section-nav { margin-bottom: 0; }
[data-wb209-tools], .wb211-panel, .wb211-panel > * { min-width: 0; }
.wb211-panel { display: grid; gap: 12px; }
.wb211-heading, .wb211-actions, .wb211-region {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  column-gap: 12px;
  row-gap: 7px;
}
.wb211-heading { justify-content: space-between; align-items: center; }
.wb211-heading :is(h3,h4) { margin: 0; }
.wb211-heading p, .wb211-heading small { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.wb211-panel :is(.wb209-tabs,.wb209-groups) { margin: 0; }
.wb211-actions label, .wb211-panel form label, .wb211-date-select {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 650;
}
.wb211-panel :is(input:not([type=checkbox]),select,textarea) {
  min-height: 35px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--control-border,var(--line));
  border-radius: 8px;
  background: var(--control-bg,var(--surface));
  color: var(--text);
  padding: 6px 9px;
  font: inherit;
  font-weight: normal;
}
.wb211-panel :is(input:not([type=checkbox]),select) { width: 100%; }
.wb211-panel textarea { width: 100%; resize: vertical; }
.wb211-actions :is(a,button) { max-width: 100%; }
.wb211-panel a { color: var(--primary); }
.wb211-panel [type=checkbox] { accent-color: var(--primary); margin: 0; }
.wb211-sources {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}
.wb211-columns > summary, .wb211-explain > summary, .wb211-workcard summary {
  cursor: pointer;
  color: var(--primary);
  font-size: 12px;
  font-weight: 650;
  padding: 7px 4px;
}
.wb211-columns { position: relative; }
.wb211-column-list {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(2,minmax(133px,1fr));
  gap: 8px;
  width: min(420px, calc(100vw - 58px));
  padding: 10px;
  max-height: min(460px,55vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 30px #101c2923;
}
.wb211-column-list fieldset { display: grid; gap: 6px; margin: 0; min-width: 0; border: 1px solid var(--line); }
.wb211-column-list legend { font-size: 11px; font-weight: 650; }
.wb211-column-list label, .wb211-chart-options label {
  display: flex;
  align-items: start;
  gap: 5px;
  font-size: 12px;
  color: var(--text);
}
.wb211-table, .wb211-rank-table { margin: 0; max-height: min(60vh,560px); }
.wb211-panel :is(.wb211-table,.wb211-rank-table) table { width: max-content; min-width: 100%; }
.wb211-panel :is(.wb211-table,.wb211-rank-table) :is(th,td) {
  min-width: 70px;
  font-variant-numeric: tabular-nums;
}
.wb211-panel :is(.wb211-table,.wb211-rank-table) thead th {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}
.wb211-table thead { position: sticky; top: 0; z-index: 3; }
.wb211-table thead th { position: static; }
.wb211-table thead tr:first-child th { background: var(--orbit-tint,var(--surface)); text-align: center; font-weight: 700; }
.wb211-table thead tr:first-child th[rowspan] { position: sticky; left: 0; min-width: 143px; text-align: left; z-index: 4; }
.wb211-table tbody th, .wb211-rank-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
}
.wb211-table tbody th { min-width: 143px; max-width: 178px; white-space: normal; }
.wb211-table .wb211-total :is(td,th) { background: var(--orbit-tint,var(--surface)); font-weight: 750; }
.wb211-table .wb211-zone :is(th,td) { color: var(--muted); }
.wb211-table .wb211-zone th { padding-left: 18px; font-weight: 500; }
.wb211-expand { white-space: nowrap; }
.wb211-explain p { font-size: 12px; color: var(--muted); margin: 6px 0; }
.wb211-chart { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 11px; }
.wb211-chart-options { display: flex; flex-wrap: wrap; gap: 7px 12px; margin: 10px 0; }
.wb211-chart canvas { display: block; width: 100%; height: 222px; touch-action: pan-y; }
.wb211-point { display: flex; flex-wrap: wrap; gap: 6px 13px; min-height: 24px; font-size: 12px; }
.wb211-point i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: var(--wb211-point-color); }
.wb211-rank-table thead th:first-child { left: 0; z-index: 2; }
.wb211-panel .wb211-rank-table :is(th,td):first-child { min-width: clamp(162px,18vw,250px); max-width: 295px; white-space: normal; }
.wb211-rank-table :is(th,td):first-child label { display: inline-block; }
.wb211-rank-table th { vertical-align: middle; }
.wb211-rank-table th input { vertical-align: middle; margin-right: 5px; }
.wb211-rank-table td[data-rank=top] { font-weight: 700; color: var(--primary); background: var(--orbit-tint,var(--surface)); }
.wb211-rank-table td[data-rank=miss] { color: var(--muted); }
.wb211-rival { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.wb211-rival img { object-fit: cover; border-radius: 5px; }
.wb211-workcard {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  background: var(--orbit-tint,var(--surface));
}
.wb211-workcard form { display: grid; gap: 8px; }
.wb211-workcard form button { justify-self: start; }
.wb211-workcard p { margin: 5px 0; color: var(--muted); font-size: 12px; }
.wb211-watch-edit { display: grid; gap: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.wb211-date-select { max-width: 270px; }
@media (max-width: 650px) {
  .wb211-column-list { position: static; margin-top: 5px; }
  .wb211-watch-edit { grid-template-columns: minmax(0,1fr); }
  .wb211-chart canvas { height: 180px; }
  .wb211-region label { flex: 1 1 120px; }
  .wb211-panel .wb211-rank-table :is(th,td):first-child { max-width: 178px; }
}
