/* 复用原问卷布局与主题变量；覆盖现有赛事最多 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; }
}

/* 方案一：每次只展示一位评委；业务表单和单一参照继续使用原节点。 */
#tournament-judge-evaluation-overlay.jfs-focus {
  padding:8px 20px 112px;
  font-family:'Inter','Noto Sans SC','PingFang SC','Microsoft YaHei',system-ui,sans-serif;
}
#tournament-judge-evaluation-overlay .jfs-topbar {
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px;
  min-height:44px; margin-bottom:4px;
}
#tournament-judge-evaluation-overlay .jfs-topbar h2 { font-size:20px; font-weight:750; }
#tournament-judge-evaluation-overlay .jfs-topbar .je-link { display:flex; align-items:center; min-height:44px; color:var(--je-text); }
#tournament-judge-evaluation-overlay.jfs-focus [data-je-content] > header .je-kicker { display:none; }
#tournament-judge-evaluation-overlay.jfs-focus [data-je-content] > header h1 {
  /* 整站 h1 使用 important；此处赛事名是上下文，不能盖过点评页标题。 */
  margin:0; font-size:14px !important; line-height:1.65; font-weight:500; color:var(--je-muted);
}
#tournament-judge-evaluation-overlay.jfs-focus [data-je-content] > header .je-muted { font-size:13px; line-height:1.65; }
#tournament-judge-evaluation-overlay .jfs-identity { margin-top:6px; color:var(--je-muted); font-size:12px; }
#tournament-judge-evaluation-overlay .jfs-identity > summary { min-height:44px; padding:12px 0; cursor:pointer; }
#tournament-judge-evaluation-overlay .jfs-identity .je-verified { margin:0 0 12px; box-shadow:none; }
#tournament-judge-evaluation-overlay.jfs-focus .je-form { display:block; margin-top:8px; }
#tournament-judge-evaluation-overlay.jfs-focus .jfs-reference {
  padding:0 14px; margin-bottom:6px; box-shadow:none; border-radius:10px;
}
#tournament-judge-evaluation-overlay .jfs-tabs {
  display:flex; gap:8px; overflow-x:auto; position:sticky; top:0; z-index:20;
  padding:2px 0 6px; margin-bottom:8px; background:var(--je-bg); scrollbar-width:thin;
}
#tournament-judge-evaluation-overlay .jfs-tab,
#tournament-judge-evaluation-overlay .jfs-footer { --jfs-color:var(--jfs-dark); }
#tournament-judge-evaluation-overlay .jfs-tab {
  flex:1 0 calc((100% - (var(--jfs-tab-count) - 1)*8px)/var(--jfs-tab-count));
  min-width:96px; min-height:60px; margin:0; padding:8px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  color:var(--jfs-color); font-size:14px; line-height:1.35; background:color-mix(in srgb,var(--jfs-color) 9%,var(--je-bg));
  border:1px solid transparent; border-top:2px solid transparent; border-radius:8px;
  box-shadow:none; cursor:pointer; white-space:normal;
}
#tournament-judge-evaluation-overlay .jfs-tab[aria-selected="true"] { border-top-color:var(--jfs-color); border-bottom-color:var(--jfs-color); }
#tournament-judge-evaluation-overlay .jfs-tab-name { font-weight:750; overflow-wrap:anywhere; }
#tournament-judge-evaluation-overlay .jfs-tab-progress { font-size:13px; font-variant-numeric:tabular-nums; }
#tournament-judge-evaluation-overlay.jfs-focus article.je-card[data-jfs-palette] {
  padding:0; border:0; border-radius:0; box-shadow:none; background:transparent;
  scroll-margin-top:100px;
}
#tournament-judge-evaluation-overlay.jfs-focus article.je-card[hidden] { display:none !important; }
#tournament-judge-evaluation-overlay.jfs-focus .je-judge-head { padding-bottom:10px; margin-bottom:10px; border-bottom:1px solid var(--je-border); }
#tournament-judge-evaluation-overlay.jfs-focus .je-judge-head h2 { font-size:22px; font-weight:750; }
#tournament-judge-evaluation-overlay.jfs-focus .je-judge-head .je-muted { margin-top:4px; font-size:12px; }
#tournament-judge-evaluation-overlay.jfs-focus .je-judge-head > div { display:flex; flex-wrap:wrap; align-items:center; gap:12px; width:100%; }
#tournament-judge-evaluation-overlay .jfs-judge-meta > summary {
  display:flex; align-items:center; min-height:44px; margin:-8px 0; padding:8px 10px;
  color:var(--jfs-color); font-size:12px; font-weight:650; border-radius:6px;
  background:color-mix(in srgb,var(--jfs-color) 10%,var(--je-bg)); cursor:pointer; list-style:none;
}
#tournament-judge-evaluation-overlay .jfs-judge-meta > summary::-webkit-details-marker { display:none; }
#tournament-judge-evaluation-overlay .jfs-judge-meta[open] { flex-basis:100%; }
#tournament-judge-evaluation-overlay .jfs-judge-meta[open] > summary { margin:0; width:max-content; }
#tournament-judge-evaluation-overlay .jfs-judge-meta > summary:focus-visible { outline:2px solid var(--jfs-color); outline-offset:3px; }
#tournament-judge-evaluation-overlay.jfs-focus article > fieldset:first-of-type { margin-top:0; }
#tournament-judge-evaluation-overlay.jfs-focus .je-choice-row { gap:4px 12px; }
#tournament-judge-evaluation-overlay.jfs-focus .je-choice-row > label { display:flex; align-items:center; gap:5px; min-height:44px; font-size:13px; line-height:1.5; }
#tournament-judge-evaluation-overlay.jfs-focus article > fieldset:first-of-type .je-choice-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-top:6px; }
#tournament-judge-evaluation-overlay.jfs-focus article > fieldset:first-of-type .je-choice-row input { flex-shrink:0; margin:0; }
#tournament-judge-evaluation-overlay.jfs-focus .je-choice-row input[type="radio"] { color-scheme:dark; }
html.light-mode #tournament-judge-evaluation-overlay.jfs-focus .je-choice-row input[type="radio"] { color-scheme:light; }
#tournament-judge-evaluation-overlay.jfs-focus .je-dimension { margin-top:14px; padding-top:14px; gap:8px 24px; }
#tournament-judge-evaluation-overlay.jfs-focus .je-dimension > h3 { font-size:17px; line-height:1.4; font-weight:750; }
#tournament-judge-evaluation-overlay.jfs-focus .je-question { padding:0 0 12px; border-bottom:1px solid var(--je-border); }
#tournament-judge-evaluation-overlay.jfs-focus .je-question legend { font-size:15px; line-height:1.65; font-weight:650; }
#tournament-judge-evaluation-overlay.jfs-focus .jfs-answer { --jfs-control:var(--jfs-color); margin-top:8px; }
#tournament-judge-evaluation-overlay.jfs-focus .jfs-answer[data-state="unanswered"],
#tournament-judge-evaluation-overlay.jfs-focus .jfs-answer[data-state="na"] { --jfs-control:var(--je-muted); }
#tournament-judge-evaluation-overlay.jfs-focus input.jfs-range { appearance:none; -webkit-appearance:none; height:44px; margin-top:0; }
#tournament-judge-evaluation-overlay.jfs-focus input.jfs-range::-webkit-slider-runnable-track { height:6px; border-radius:4px; background:color-mix(in srgb,var(--je-muted) 25%,var(--je-secondary)); }
#tournament-judge-evaluation-overlay.jfs-focus input.jfs-range::-webkit-slider-thumb {
  appearance:none; -webkit-appearance:none; width:22px; height:22px; margin-top:-8px;
  border:1px solid color-mix(in srgb,var(--je-text) 15%,transparent); border-radius:50%; background:var(--jfs-control);
}
#tournament-judge-evaluation-overlay.jfs-focus input.jfs-range::-moz-range-track { height:6px; border-radius:4px; background:color-mix(in srgb,var(--je-muted) 25%,var(--je-secondary)); }
#tournament-judge-evaluation-overlay.jfs-focus input.jfs-range::-moz-range-thumb { width:22px; height:22px; border-radius:50%; border:0; background:var(--jfs-control); }
#tournament-judge-evaluation-overlay.jfs-focus .jfs-ticks { font-size:12px; }
#tournament-judge-evaluation-overlay .jfs-common { display:grid; gap:14px; margin-top:24px; scroll-margin-top:100px; }
#tournament-judge-evaluation-overlay .jfs-common [data-testid="evaluation-draft-status"] { padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; font-size:12px; }
#tournament-judge-evaluation-overlay .jfs-footer {
  position:fixed; z-index:30; left:50%; bottom:0; transform:translateX(-50%);
  width:min(900px,calc(100% - 40px)); min-height:76px; padding:12px 0 calc(12px + env(safe-area-inset-bottom,0px));
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  color:var(--je-text); background:var(--je-bg); border-top:1px solid var(--je-border);
}
#tournament-judge-evaluation-overlay .jfs-footer-status { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:14px; }
#tournament-judge-evaluation-overlay .jfs-progress { color:var(--jfs-color); font-size:18px; font-variant-numeric:tabular-nums; }
#tournament-judge-evaluation-overlay .jfs-next { min-height:48px; padding:12px 24px; border:0; border-radius:8px; background:var(--jfs-light); color:#fff; font-size:15px; line-height:1.5; font-weight:750; box-shadow:none; }
#tournament-judge-evaluation-overlay .jfs-tab:focus-visible,
#tournament-judge-evaluation-overlay .jfs-next:focus-visible,
#tournament-judge-evaluation-overlay .jfs-identity > summary:focus-visible { outline:2px solid var(--jfs-color,var(--je-accent)); outline-offset:3px; }
@media (max-width:700px) {
  #tournament-judge-evaluation-overlay.jfs-focus article > fieldset:first-of-type .je-choice-row > label { font-size:12px; }
  #tournament-judge-evaluation-overlay .jfs-footer-status { flex:0 1 110px; }
  #tournament-judge-evaluation-overlay .jfs-next { flex:1 1 auto; padding:12px 14px; }
}
@media (prefers-reduced-motion:reduce) {
  #tournament-judge-evaluation-overlay.jfs-focus * { scroll-behavior:auto; }
}
