/* 复用原问卷布局与主题变量；覆盖现有赛事最多 20 个评委席位。 */
#tournament-judge-evaluation-overlay [data-jfs-palette="0"] { --jfs-dark:#60a5fa; --jfs-light:#1d4ed8; }
#tournament-judge-evaluation-overlay [data-jfs-palette="1"] { --jfs-dark:#fbbf24; --jfs-light:#92400e; }
#tournament-judge-evaluation-overlay [data-jfs-palette="2"] { --jfs-dark:#a78bfa; --jfs-light:#7c3aed; }
#tournament-judge-evaluation-overlay [data-jfs-palette="3"] { --jfs-dark:#2dd4bf; --jfs-light:#0f766e; }
#tournament-judge-evaluation-overlay [data-jfs-palette="4"] { --jfs-dark:#fb7185; --jfs-light:#be123c; }
#tournament-judge-evaluation-overlay [data-jfs-palette="5"] { --jfs-dark:#a3e635; --jfs-light:#4d7c0f; }
#tournament-judge-evaluation-overlay [data-jfs-palette="6"] { --jfs-dark:#fb923c; --jfs-light:#c2410c; }
#tournament-judge-evaluation-overlay [data-jfs-palette="7"] { --jfs-dark:#38bdf8; --jfs-light:#0369a1; }
#tournament-judge-evaluation-overlay [data-jfs-palette="8"] { --jfs-dark:#f472b6; --jfs-light:#be185d; }
#tournament-judge-evaluation-overlay [data-jfs-palette="9"] { --jfs-dark:#4ade80; --jfs-light:#15803d; }
#tournament-judge-evaluation-overlay [data-jfs-palette="10"] { --jfs-dark:#818cf8; --jfs-light:#4338ca; }
#tournament-judge-evaluation-overlay [data-jfs-palette="11"] { --jfs-dark:#22d3ee; --jfs-light:#0e7490; }
#tournament-judge-evaluation-overlay [data-jfs-palette="12"] { --jfs-dark:#c4b5fd; --jfs-light:#6d28d9; }
#tournament-judge-evaluation-overlay [data-jfs-palette="13"] { --jfs-dark:#fda4af; --jfs-light:#9f1239; }
#tournament-judge-evaluation-overlay [data-jfs-palette="14"] { --jfs-dark:#bef264; --jfs-light:#3f6212; }
#tournament-judge-evaluation-overlay [data-jfs-palette="15"] { --jfs-dark:#67e8f9; --jfs-light:#155e75; }
#tournament-judge-evaluation-overlay [data-jfs-palette="16"] { --jfs-dark:#fdba74; --jfs-light:#9a3412; }
#tournament-judge-evaluation-overlay [data-jfs-palette="17"] { --jfs-dark:#86efac; --jfs-light:#166534; }
#tournament-judge-evaluation-overlay [data-jfs-palette="18"] { --jfs-dark:#f0abfc; --jfs-light:#a21caf; }
#tournament-judge-evaluation-overlay [data-jfs-palette="19"] { --jfs-dark:#93c5fd; --jfs-light:#1e40af; }
#tournament-judge-evaluation-overlay article.je-card[data-jfs-palette] {
  --jfs-color:var(--jfs-dark);
  --je-accent:var(--jfs-color);
  border-top:3px solid var(--jfs-color);
  background:color-mix(in srgb,var(--jfs-color) 5%,var(--je-card));
}
html.light-mode #tournament-judge-evaluation-overlay [data-jfs-palette] { --jfs-color:var(--jfs-light); }
#tournament-judge-evaluation-overlay [data-jfs-palette] .je-judge-head h2 { color:var(--jfs-color); }
#tournament-judge-evaluation-overlay [data-jfs-palette] .je-dimension {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 24px;
}
#tournament-judge-evaluation-overlay [data-jfs-palette] .je-dimension > h3 { grid-column:1/-1; margin-bottom:0; }
#tournament-judge-evaluation-overlay [data-jfs-palette] .je-dimension > fieldset:last-child:nth-child(even) { grid-column:1/-1; }
#tournament-judge-evaluation-overlay [data-jfs-palette] .je-question {
  min-width:0; margin:0; padding:12px 0 8px; border:0; border-radius:0;
}
#tournament-judge-evaluation-overlay [data-jfs-palette] .je-question legend {
  width:100%; box-sizing:border-box; padding:0; background:transparent; line-height:1.65;
}
#tournament-judge-evaluation-overlay [data-jfs-palette] .je-aux {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 24px;
}
#tournament-judge-evaluation-overlay [data-jfs-palette] .je-aux > h3,
#tournament-judge-evaluation-overlay [data-jfs-palette] .je-aux > p { grid-column:1/-1; }
#tournament-judge-evaluation-overlay [data-jfs-palette] .je-aux fieldset { min-width:0; margin:0; }
@media (min-width:701px) {
  #tournament-judge-evaluation-overlay [data-jfs-palette] .je-question legend,
  #tournament-judge-evaluation-overlay [data-jfs-palette] .je-aux legend { min-height:46px; line-height:1.65; }
}
#tournament-judge-evaluation-overlay .jfs-source[hidden] { display:none !important; }
#tournament-judge-evaluation-overlay .jfs-reference-source[hidden] { display:none !important; }
#tournament-judge-evaluation-overlay details.jfs-reference { margin-bottom:16px; }
#tournament-judge-evaluation-overlay .jfs-reference > summary {
  min-height:44px; box-sizing:border-box; padding:10px 0; cursor:pointer;
  color:var(--je-text); font-size:14px; line-height:24px; font-weight:700;
}
#tournament-judge-evaluation-overlay .jfs-reference > summary:focus-visible {
  outline:2px solid var(--je-accent); outline-offset:3px;
}
#tournament-judge-evaluation-overlay .jfs-reference-list {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 24px; margin-top:12px;
}
#tournament-judge-evaluation-overlay .jfs-reference-item { min-width:0; }
#tournament-judge-evaluation-overlay .jfs-reference-item h3 { margin:0 0 8px; font-size:13px; line-height:1.7; }
#tournament-judge-evaluation-overlay .jfs-reference-item p { margin:6px 0; color:var(--je-muted); font-size:13px; line-height:1.8; }
#tournament-judge-evaluation-overlay .jfs-answer { margin-top:12px; min-width:0; }
#tournament-judge-evaluation-overlay .jfs-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; }
#tournament-judge-evaluation-overlay .jfs-value {
  color:var(--je-muted); font-size:14px; line-height:1.5; font-weight:700;
  padding:7px 11px; border-radius:8px; background:color-mix(in srgb,var(--je-text) 6%,transparent);
}
#tournament-judge-evaluation-overlay .jfs-value[data-state="numeric"] {
  color:var(--jfs-color); background:color-mix(in srgb,var(--jfs-color) 12%,transparent); font-variant-numeric:tabular-nums;
}
#tournament-judge-evaluation-overlay .jfs-na {
  flex-shrink:0; min-height:44px; padding:8px 12px; color:var(--je-muted);
  background:transparent; border:1px solid var(--je-border); font-size:13px; line-height:1.5;
}
#tournament-judge-evaluation-overlay .jfs-na[aria-pressed="true"] {
  color:var(--jfs-color); border-color:var(--jfs-color); background:color-mix(in srgb,var(--jfs-color) 10%,transparent);
}
#tournament-judge-evaluation-overlay input.jfs-range {
  display:block; width:100%; min-width:0; height:44px; margin:6px 0 0; padding:0;
  cursor:pointer; accent-color:var(--jfs-color); background:transparent; border:0; box-shadow:none;
}
#tournament-judge-evaluation-overlay .jfs-answer[data-state="unanswered"] input.jfs-range,
#tournament-judge-evaluation-overlay .jfs-answer[data-state="na"] input.jfs-range { accent-color:var(--je-muted); }
#tournament-judge-evaluation-overlay input.jfs-range:focus-visible,
#tournament-judge-evaluation-overlay .jfs-na:focus-visible { outline:2px solid var(--jfs-color); outline-offset:3px; }
#tournament-judge-evaluation-overlay input.jfs-range:disabled { cursor:default; opacity:.55; }
#tournament-judge-evaluation-overlay .jfs-ticks { display:flex; justify-content:space-between; padding:0 4px; color:var(--je-muted); font-size:12px; line-height:18px; font-variant-numeric:tabular-nums; }
#tournament-judge-evaluation-overlay .jfs-categories { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); margin-top:6px; gap:8px; color:var(--je-muted); font-size:12px; line-height:1.5; text-align:center; }
@media (max-width:700px) {
  #tournament-judge-evaluation-overlay .jfs-reference-list { grid-template-columns:minmax(0,1fr); }
  #tournament-judge-evaluation-overlay [data-jfs-palette] .je-dimension,
  #tournament-judge-evaluation-overlay [data-jfs-palette] .je-aux { grid-template-columns:minmax(0,1fr); gap:14px; }
  #tournament-judge-evaluation-overlay .jfs-categories { gap:4px; }
}
