  /* v2.2.0 / v3.4.3：全面屏蔽移动端「双击缩放」误触；保持滚动与点击零延迟 */
  html, body, main, header, nav, section, aside, div, span, p, table, tr, td, th,
  button, input, textarea, select, label, a, summary, [role="button"] { touch-action: manipulation; }
  html, body { height: 100%; }
  body {
    font-family: "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
    background: #eef2f7;
    color: #0b1220;
    font-weight: 700;
  }
  .screen-bg {
    background:
      radial-gradient(circle at 10% 6%,  rgba(2, 132, 199, .12), transparent 42%),
      radial-gradient(circle at 90% 4%,  rgba(21, 128, 61, .10), transparent 46%),
      linear-gradient(160deg, #f8fafc 0%, #eef2f7 50%, #e6ebf3 100%);
  }
  body.screen-bg { overflow: visible; min-height: 100vh; }
  .glass {
    background: #ffffff;
    border: 2px solid #c7d2e0;
    box-shadow: 0 2px 0 0 rgba(15, 23, 42, .05);
  }
  .glass-lite { background: #f8fafc; border: 2px solid #cbd5e1; }
  #gfMsg:empty,
  #gfZoneMsg:empty {
    min-height: 0;
    margin-top: 0;
  }
  .stat-card { position: relative; overflow: hidden; }
  /* 2026-10-17：总台顶部 KPI 卡固定只保留「标签 + 主值」；
     主值填满剩余高度并垂直居中，不再为说明小字预留空行。 */
  .kpi-card { display: flex; flex-direction: column; min-height: 104px; }
  .kpi-value { display: flex; align-items: center; flex: 1; min-height: 2.4rem; margin-top: .35rem; line-height: 1.1; }
  @media (min-width: 1024px) {
    #kpiRow.kpi-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  }
  /* 总决赛抽签名单：宽屏两列等高拉伸、窄屏自动回落单列 */
  .gf-roster-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    height: 100%;
    align-content: stretch;
  }
  .gf-roster-table {
    width: 100%;
    height: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
  .gf-roster-table thead th {
    padding-bottom: 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    height: 2rem;
  }
  .gf-roster-table tbody {
    height: calc(100% - 2rem);
  }
  .gf-roster-table tbody tr {
    height: 12.5%;
    border-top: 1px solid #e2e8f0;
    transition: background-color 0.15s ease;
  }
  .gf-roster-table tbody tr:hover {
    background-color: rgba(241, 245, 249, 0.6);
  }
  .gf-roster-table tbody td {
    padding: 0.5rem 0.25rem;
    vertical-align: middle;
  }
  .gf-group-btn {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .gf-group-btn:active {
    transform: scale(0.92);
  }
  .stat-card::after { display: none; }
  .btn { transition: transform .12s ease, filter .12s ease; }
  .btn:active { transform: scale(.97); }
  .field {
    background: #ffffff; border: 2px solid #94a3b8;
    color: #0b1220; border-radius: .7rem; padding: .62rem .85rem; width: 100%; font-weight: 700;
  }
  .field::placeholder { color: #94a3b8; font-weight: 600; }
  .field:focus { outline: none; border-color: #0369a1; box-shadow: 0 0 0 4px rgba(3, 105, 161, .22); }
  .tab-btn.active { background: #0369a1; border-color: #075985; color: #ffffff; }
  .modal-back { background: rgba(15, 23, 42, .35); }
  .hide { display: none !important; }
  .badge-sala { border: 2px solid #ea580c; background: #fff7ed; color: #9a3412; }
  .badge-master { border: 2px solid #0d9488; background: #f0fdfa; color: #115e59; }
  /* ---------- 表格容器：手机端不挤压，改为横向滑动 ---------- */
  .tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl-scroll table { white-space: nowrap; }
  .tbl-scroll table td, .tbl-scroll table th { padding-right: 1.25rem; }
  .tbl-scroll table td:last-child, .tbl-scroll table th:last-child { padding-right: 0; }

  /* ==================================================================================
     v2.8.0 钓位网格（自「检录总览」页迁入「钓位管理」）：灰=空位 / 黄=待核对 / 绿=已核对
     黄底红角标 = 注意事项（该钓位在本节被多名选手登记）；默认折叠，点击标题展开。
     ================================================================================== */
  .spotcell {
    width: 4.4rem; height: 3rem; border-radius: .6rem; border: 2px solid;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: "JetBrains Mono", Consolas, monospace; font-weight: 900; font-size: .85rem;
    position: relative; cursor: pointer;
  }
  .spotcell.empty    { background: #e2e8f0; border-color: #cbd5e1; color: #64748b; }
  .spotcell.pending  { background: #fef3c7; border-color: #d97706; color: #7c2d12; }
  .spotcell.verified { background: #22c55e; border-color: #15803d; color: #052e16; }
  .spotcell .dot {
    position: absolute; top: -.3rem; right: -.3rem; width: .8rem; height: .8rem;
    border-radius: 999px; background: #dc2626; border: 2px solid #fff;
  }
  @media (max-width: 1100px) {
    .gf-roster-grid { grid-template-columns: minmax(0, 1fr); }
  }

  /* ==================================================================================
     v2.6.0 动效层：面板滑入渐出（Slide & Fade）/ 二级抽屉 / 模态框
     只动画 transform 与 opacity；will-change 仅挂在动画中的元素上（动画结束即移除）。
     ================================================================================== */
  .admin-panel { opacity: 1; transform: translate3d(0, 0, 0); }
  .admin-panel.is-entering { opacity: 0; transform: translate3d(0, 8px, 0); }
  .admin-panel.is-leaving  { opacity: 0; transform: translate3d(0, -6px, 0); }
  .admin-panel.is-animating {
    will-change: transform, opacity;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .3s cubic-bezier(.16, 1, .3, 1);
  }
  .admin-panel.is-leaving.is-animating { transition-duration: .2s, .2s; }   /* 旧面板 200ms 缩隐淡出 */

  /* 二级钻取：主列表向左微移淡隐（抽屉打开时） */
  .drill-host { transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .3s cubic-bezier(.16, 1, .3, 1); }
  .drill-host.drilled { transform: translate3d(-18px, 0, 0); opacity: .35; pointer-events: none; }

  /* 右侧抽屉：列表 → 详情 → 返回 */
  .drawer { z-index: 60; }
  .drawer-back { opacity: 0; transition: opacity .2s ease; will-change: opacity; }
  .drawer-panel {
    transform: translate3d(100%, 0, 0); will-change: transform;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1);
  }
  .drawer.drawer-open .drawer-back { opacity: 1; }
  .drawer.drawer-open .drawer-panel { transform: translate3d(0, 0, 0); }

  /* 模态框：遮罩淡入 + 主体弹性放大上移 */
  .modal-shell { opacity: 0; transition: opacity .2s ease; will-change: opacity; }
  .modal-shell.modal-show { opacity: 1; }
  .modal-shell .modal-card {
    opacity: 0; transform: translate3d(0, 10px, 0) scale(.95); will-change: transform, opacity;
    transition: opacity .16s ease, transform .22s cubic-bezier(.16, 1, .3, 1);
  }
  .modal-shell.modal-show .modal-card { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }

  /* v2.8.0：弹窗高度全局自适应——卡片高度随内容，上限视口 85%，超出部分在卡片内部滚动。
     修复此前「弹窗进入时加 .flex 后卡片被拉伸、按钮下方留大片空白」的表现。 */
  .modal-shell { align-items: center; justify-content: center; }
  .modal-shell .modal-card { max-height: 85vh; overflow-y: auto; margin-top: 0; margin-bottom: 0; }

  /* 抽屉内的子页切换（成绩榜 / 日志 / 导出） */
  .hist-pane.is-animating {
    will-change: transform, opacity;
    animation: paneIn .26s cubic-bezier(.16, 1, .3, 1) both;
  }
  @keyframes paneIn {
    from { opacity: 0; transform: translate3d(0, 8px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
  }

  /* 无障碍：用户要求减少动态效果时，全部动画直切终态 */
  @media (prefers-reduced-motion: reduce) {
    .admin-panel, .admin-panel.is-animating, .drill-host,
    .drawer-back, .drawer-panel, .modal-shell, .modal-shell .modal-card,
    .hist-pane.is-animating {
      transition: none !important; animation: none !important;
    }
  }

  /* ================= 设计规范覆盖层（品牌主题改造） =================
     管理后台在笔记本电脑上操作（多在帐篷/户外），因此触控尺寸按桌面标准，
     但对比度与圆角规范与全站一致：次要文字不低于 --tx-2、圆角统一 8px、
     禁用态用实色。取值全部走 app.css 主题变量，两套品牌共用同一套代码。 */
  body { font-family: var(--ff-base); }
  .screen-bg { background: var(--bg-page); }
  .glass, .glass-lite, .stat-card {
    background: var(--bg-card);
    border: 2px solid var(--bd-line);
    border-radius: var(--r-base);
    box-shadow: var(--sh-card);
  }
  /* 指标卡底部去红线降噪 */
  .stat-card::after { display: none; }

  /* ============================================================================
     v3.2 管理后台桌面端控件尺寸与视觉降噪体系 (Desktop Control System)
     仅在 admin.css 生效，绝不影响裁判端 (/referee 56px 手套触控标准)
     ============================================================================ */
  :root {
    --ctl-h-sm: 28px;
    --ctl-h: 36px;
    --ctl-h-lg: 40px;
    --ctl-px-sm: 10px;
    --ctl-px: 14px;
    --ctl-px-lg: 18px;
    --ctl-bw: 1px;
    --ctl-border: #D1D5DB;
    --ctl-border-hover: #9CA3AF;
  }

  /* 隐藏数字输入框原生上下微调箭头，避免挤压有效数字宽度 */
  input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  input[type="number"] {
    -moz-appearance: textfield;
  }

  .field {
    min-height: var(--ctl-h);
    height: var(--ctl-h);
    padding: 0 12px;
    font-size: .8125rem;
    font-weight: 600;
    border: var(--ctl-bw) solid var(--ctl-border);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--tx-main);
    transition: border-color .12s ease, box-shadow .12s ease;
  }
  textarea.field {
    height: auto;
    min-height: 80px;
    padding: 8px 12px;
    line-height: 1.5;
  }
  .field:hover:not(:disabled):not(:focus) {
    border-color: var(--ctl-border-hover);
  }
  .field:focus {
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px var(--c-brand-tint);
    outline: none;
  }
  .field.\!w-24 { width: 6rem !important; }
  .input-group.\!w-32 { width: 8rem !important; }

  /* 带内嵌单位后缀的复合输入框 (.input-group) */
  .input-group {
    display: inline-flex;
    align-items: stretch;
    height: var(--ctl-h);
    border: var(--ctl-bw) solid var(--ctl-border);
    border-radius: 6px;
    background: #FFFFFF;
    overflow: hidden;
    width: 100%;
    transition: border-color .12s ease, box-shadow .12s ease;
  }
  .input-group:hover:not(:focus-within) {
    border-color: var(--ctl-border-hover);
  }
  .input-group:focus-within {
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px var(--c-brand-tint);
  }
  .input-group input.field,
  .input-group input {
    border: none !important;
    box-shadow: none !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 10px !important;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--tx-main);
    background: transparent !important;
    outline: none;
    flex: 1;
    min-width: 0;
  }
  .input-group .unit {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--tx-2);
    background: #F8FAFC;
    border-left: 1px solid #E5E7EB;
    white-space: nowrap;
    flex: none;
  }

  /* 现代化扁平下拉框设计体系（统一 36px 高度，与按钮严丝合缝对齐） */
  html body select.field {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: var(--ctl-h);
    height: var(--ctl-h);
    padding: 0 2.1rem 0 .75rem;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    background-color: var(--bg-card);
    background-image: var(--select-chevron);
    background-repeat: no-repeat;
    background-position: right .65rem center;
    background-size: 1rem 1rem;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  }
  html body select.field:hover:not(:disabled) {
    border-color: var(--ctl-border-hover);
    background-color: #F8FAFC;
    background-image: var(--select-chevron-hover);
  }
  html body select.field:focus {
    border-color: var(--c-brand);
    background-color: var(--bg-card);
    background-image: var(--select-chevron-focus);
    box-shadow: 0 0 0 3px var(--c-brand-tint);
    outline: none;
  }
  html body select.field:disabled {
    opacity: 1 !important;
    background-color: #E2E8F0 !important;
    color: #94A3B8 !important;
    border-color: #CBD5E1 !important;
    cursor: not-allowed;
  }

  /* 2) 工具栏 / 筛选条内下拉框（与按钮严格同高对齐：36px） */
  html body select.field.text-sm,
  html body select.field.\!text-sm,
  html body #heatWindow,
  html body #logFilter,
  html body #gfRecMatchSel {
    min-height: var(--ctl-h) !important;
    height: var(--ctl-h) !important;
    padding: 0 2rem 0 .75rem !important;
    background-position: right .55rem center !important;
    background-size: .95rem .95rem !important;
    font-size: .8125rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
  }

  /* 3) 表格单元格 / 数据行紧凑型下拉框（28px 高度，防撑高表格行） */
  html body table select.field,
  html body select.field.\!py-1,
  html body select.field.\!py-1\.5,
  html body select.edit-input {
    min-height: var(--ctl-h-sm) !important;
    height: var(--ctl-h-sm) !important;
    padding: 0 1.65rem 0 .55rem !important;
    background-position: right .4rem center !important;
    background-size: .85rem .85rem !important;
    font-size: .75rem !important;
    font-weight: 600 !important;
    border-width: 1px !important;
    border-radius: 5px !important;
    border-color: var(--ctl-border) !important;
    background-color: #FFFFFF;
    line-height: 1.2 !important;
  }
  html body select.field.\!text-xs {
    min-height: 26px !important;
    height: 26px !important;
    font-size: .75rem !important;
    padding: 0 1.45rem 0 .45rem !important;
    background-position: right .3rem center !important;
    background-size: .75rem .75rem !important;
  }
  html body table select.field:focus,
  html body select.field.\!py-1:focus,
  html body select.field.\!py-1\.5:focus,
  html body select.edit-input:focus {
    border-color: var(--c-brand) !important;
    box-shadow: 0 0 0 2px var(--c-brand-tint) !important;
  }
  .tab-btn {
    min-height: 40px;
    border-radius: var(--r-base);
    border: 1px solid var(--bd-line);
    background: var(--bg-card);
    color: var(--tx-2);
  }
  .tab-btn.active {
    background: var(--c-brand-deep);
    border-color: var(--c-brand-deep);
    color: var(--c-brand-ink);
  }
  .badge-sala, .badge-master, .spotcell { border-radius: var(--r-base); }
  .modal-card { border-radius: var(--r-base); }
  .drawer-panel { border-radius: var(--r-base) 0 0 var(--r-base); }
  .empty { color: var(--tx-2); }

  /* ---- 截图评审后的修正（咨询结论 + v3.2 五级按钮体系） ---- */

  /* 1) 基础数据统一用正文色 */
  html body .stat-card [id$="Value"] { color: var(--tx-main) !important; }

  /* 2) 选中态游标 Tabs 是无边框文字组 */
  html body .tab-btn {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 8px 12px;
  }
  html body .tab-btn:hover { background: var(--bg-page) !important; }
  html body .tab-btn.active { background: transparent !important; }

  /* ============================================================================
     v3.2 管理台五级按钮层级 (Primary / Secondary / Ghost / Danger / Danger-Solid)
     默认所有 .btn 归一为 Secondary（白底 1px 描边 36px 高），彻底消除 56px 灰砖感
     ============================================================================ */
  html body .btn,
  html body .btn.secondary,
  html body .btn.glass-lite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--ctl-h);
    height: var(--ctl-h);
    padding: 0 var(--ctl-px);
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 6px;
    border: var(--ctl-bw) solid var(--ctl-border);
    background: #FFFFFF;
    color: var(--tx-1, #1F2937);
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 1px rgba(15, 23, 42, .03);
    transition: background-color .12s ease, border-color .12s ease, color .12s ease, transform .06s ease;
  }
  html body .btn:hover:not(:disabled),
  html body .btn.secondary:hover:not(:disabled),
  html body .btn.glass-lite:hover:not(:disabled) {
    background: #F9FAFB;
    border-color: var(--ctl-border-hover);
    color: var(--tx-main);
  }
  html body .btn:active:not(:disabled) {
    transform: translateY(1px);
  }
  html body .btn:disabled {
    background: #F1F5F9 !important;
    border-color: #E2E8F0 !important;
    color: #94A3B8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
  }

  /* 尺寸变体：.sm (28px 表格行内/卡片角标) 与 .lg (40px 登录/重点流程) */
  html body .btn.sm,
  html body table tbody .btn {
    min-height: var(--ctl-h-sm) !important;
    height: var(--ctl-h-sm) !important;
    padding: 0 var(--ctl-px-sm) !important;
    font-size: .75rem !important;
    border-radius: 5px !important;
    box-shadow: none !important;
  }
  html body .btn.lg {
    min-height: var(--ctl-h-lg) !important;
    height: var(--ctl-h-lg) !important;
    padding: 0 var(--ctl-px-lg) !important;
    font-size: .875rem !important;
  }

  /* 1级：Primary 主行动点（每张卡片最多 1 个，品牌深色实底） */
  html body .btn.primary,
  html body #loginBtn,
  html body #openCreateBtn,
  html body #anglerImportToggleBtn,
  html body #addAnglersBtn,
  html body #checkinOpenConsoleBtn,
  html body #spotsSave,
  html body #createCompBtn,
  html body #rangeSave,
  html body #advanceConfirm,
  html body #verifyDispatchBtn:not(.bg-red-700),
  html body #anglerSave,
  html body #exportResultBtn,
  html body #editRecSave,
  html body #genRefBtn,
  html body #genRefBatchBtn,
  html body #sectionMinutesSave,
  html body #raceStartBtn,
  html body #snapSaveBtn,
  html body #screenOpenBtn,
  html body #overlayOpenBtn,
  html body #gfGroupsSave,
  html body #gfGenSchedule,
  html body #gfScheduleSemiGen,
  html body #gfRefBootstrap,
  html body #gfKnockoutBootstrap,
  html body #gfSeatRefBootstrap {
    background: var(--c-brand-deep) !important;
    border-color: var(--c-brand-deep) !important;
    color: #FFFFFF !important;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
  }
  html body .btn.primary:hover:not(:disabled),
  html body #loginBtn:hover:not(:disabled),
  html body #openCreateBtn:hover:not(:disabled),
  html body #anglerImportToggleBtn:hover:not(:disabled),
  html body #addAnglersBtn:hover:not(:disabled),
  html body #spotsSave:hover:not(:disabled),
  html body #exportResultBtn:hover:not(:disabled),
  html body #snapSaveBtn:hover:not(:disabled) {
    filter: brightness(1.12);
  }

  /* 2级：Secondary 显式归类（覆盖旧版写死在 HTML 里的绿色/蓝色/琥珀色类） */
  html body #importRecordsBtn2,
  html body #importAnglersBtn,
  html body #exportRosterBtn,
  html body #rosterExportBtn,
  html body #publishStandardResult,
  html body #histExportXlsx,
  html body #histExportCsv,
  html body #endExportXlsx,
  html body #endExportCsv,
  html body #fmtXlsx,
  html body #fmtCsv,
  html body #snapCreateBtn,
  html body #snapSendLatestBtn,
  html body #snapImportBtn,
  html body #screenCopyBtn,
  html body #overlayCopyBtn {
    background: #FFFFFF !important;
    border: var(--ctl-bw) solid var(--ctl-border) !important;
    color: var(--tx-1, #1F2937) !important;
  }
  html body #importRecordsBtn2:hover:not(:disabled),
  html body #importAnglersBtn:hover:not(:disabled),
  html body #rosterExportBtn:hover:not(:disabled),
  html body #publishStandardResult:hover:not(:disabled),
  html body #snapCreateBtn:hover:not(:disabled),
  html body #snapSendLatestBtn:hover:not(:disabled),
  html body #snapImportBtn:hover:not(:disabled) {
    background: #F9FAFB !important;
    border-color: var(--ctl-border-hover) !important;
  }

  /* 3级：Ghost 幽灵按钮（无边框透明底，用于表格编辑、折叠开关、返回等） */
  html body .btn.ghost {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--tx-2) !important;
    box-shadow: none !important;
  }
  html body .btn.ghost:hover:not(:disabled) {
    background: #F3F4F6 !important;
    border-color: transparent !important;
    color: var(--tx-main) !important;
  }

  /* 4级：Danger 危险描边/文字按钮（撤回核对、结束比赛、清除授权码、表格行删除） */
  html body .btn.danger,
  html body #verifyDispatchBtn.bg-red-700,
  html body #raceEndBtn,
  html body #snapClearAuthBtn,
  html body #statusEndBtn {
    background: #FFFFFF !important;
    border: var(--ctl-bw) solid #FECACA !important;
    color: #B91C1C !important;
    box-shadow: none !important;
  }
  html body .btn.danger:hover:not(:disabled),
  html body #verifyDispatchBtn.bg-red-700:hover:not(:disabled),
  html body #raceEndBtn:hover:not(:disabled),
  html body #snapClearAuthBtn:hover:not(:disabled),
  html body #statusEndBtn:hover:not(:disabled) {
    background: #FEF2F2 !important;
    border-color: #F87171 !important;
    color: #991B1B !important;
  }
  html body .btn.danger.ghost,
  html body table tbody button[data-act^="del"],
  html body table tbody button[data-gfdelbatch],
  html body table tbody button[data-snap-action="delete"] {
    background: transparent !important;
    border-color: transparent !important;
    color: #B91C1C !important;
    box-shadow: none !important;
  }
  html body .btn.danger.ghost:hover:not(:disabled),
  html body table tbody button[data-act^="del"]:hover:not(:disabled),
  html body table tbody button[data-gfdelbatch]:hover:not(:disabled),
  html body table tbody button[data-snap-action="delete"]:hover:not(:disabled) {
    background: #FEF2F2 !important;
    border-color: #FECACA !important;
  }

  /* 5级：Danger-Solid 实心红（仅用于二次确认模态框与强制退回） */
  html body .btn.danger-solid,
  html body #dangerOk,
  html body #spotRevertBtn,
  html body button[data-reqok="reject"] {
    background: #DC2626 !important;
    border-color: #DC2626 !important;
    color: #FFFFFF !important;
    font-weight: 700;
  }
  html body .btn.danger-solid:hover:not(:disabled),
  html body #dangerOk:hover:not(:disabled),
  html body #spotRevertBtn:hover:not(:disabled) {
    background: #B91C1C !important;
  }

  /* 赛场管理：比赛状态进程按钮语义色保留（按状态显隐） */
  html body #statusStartBtn {
    background: var(--c-brand-deep) !important;
    border-color: var(--c-brand-deep) !important;
    color: #FFFFFF !important;
    font-weight: 700;
  }
  html body #statusPauseBtn {
    background: #FFFBEB !important;
    border: 1px solid #FCD34D !important;
    color: #B45309 !important;
    font-weight: 600;
  }
  html body #statusPauseBtn:hover:not(:disabled) {
    background: #FEF3C7 !important;
    border-color: #F59E0B !important;
  }

  /* 顶栏角色徽章（深色磨砂顶栏高对比度适配 + 纯白模式适配） */
  html body .role-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    line-height: 1.25;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
  }
  @media (min-width: 768px) {
    html body #meRoleBadgeMob {
      display: none !important;
    }
  }
  html body .role-badge.role-super {
    background: rgba(245, 158, 11, .16);
    border: 1px solid rgba(251, 191, 36, .48);
    color: #FDE68A;
  }
  html body .role-badge.role-admin {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .24);
    color: rgba(255, 255, 255, .92);
  }
  body.bg-plain .role-badge.role-super {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #92400E;
  }
  body.bg-plain .role-badge.role-admin {
    background: #F1F5F9;
    border-color: #CBD5E1;
    color: #334155;
  }

  /* 顶栏紧凑幽灵按钮 (#fcPwaChip, #openPwdModalBtn, #langToggle, #logoutBtn) 与当前比赛胶囊 (#headerCompPill) */
  html body #consoleView > header #fcPwaChip,
  html body #consoleView > header #openPwdModalBtn,
  html body #consoleView > header #langToggle,
  html body #consoleView > header #logoutBtn {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 10px !important;
    font-size: .75rem !important;
    border-radius: 5px !important;
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    color: rgba(255, 255, 255, .88) !important;
    box-shadow: none !important;
  }
  html body #consoleView > header #fcPwaChip:hover,
  html body #consoleView > header #openPwdModalBtn:hover,
  html body #consoleView > header #langToggle:hover,
  html body #consoleView > header #logoutBtn:hover {
    background: rgba(255, 255, 255, .16) !important;
    border-color: rgba(255, 255, 255, .36) !important;
    color: #FFFFFF !important;
  }
  body.bg-plain #consoleView > header #fcPwaChip,
  body.bg-plain #consoleView > header #openPwdModalBtn,
  body.bg-plain #consoleView > header #langToggle,
  body.bg-plain #consoleView > header #logoutBtn {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: var(--tx-main) !important;
  }
  html body #consoleView > header #fcPwaChip .fc-pwa-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #94A3B8;
  }
  html body #consoleView > header #fcPwaChip.is-on .fc-pwa-dot { background: #10B981; }
  html body #consoleView > header #fcPwaChip.is-warn .fc-pwa-dot { background: #F59E0B; }
  html body #consoleView > header #fcPwaChip.is-err .fc-pwa-dot { background: #EF4444; }
  .header-comp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #FFFFFF;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
  }
  .header-comp-pill:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .30);
  }
  body.bg-plain .header-comp-pill {
    background: #F1F5F9;
    border-color: #CBD5E1;
    color: var(--tx-main);
  }
  .header-comp-pill #curCompChip {
    background: transparent !important;
    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, .22) !important;
    border-radius: 0 !important;
    padding: 0 8px 0 0 !important;
    margin: 0 !important;
    font-size: .75rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: rgba(255, 255, 255, .82) !important;
    box-shadow: none !important;
  }
  .header-comp-pill #curCompChip.badge-sala {
    color: #FDBA74 !important;
  }
  .header-comp-pill #curCompChip.badge-master {
    color: #7DD3FC !important;
  }
  body.gf-mode .header-comp-pill #curCompChip {
    color: var(--gf-gold-hi, #E8D5A5) !important;
  }
  body.bg-plain .header-comp-pill #curCompChip {
    border-right-color: #CBD5E1 !important;
    color: var(--c-brand-deep) !important;
  }
  .header-comp-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #10B981;
  }
  .header-comp-pill .dot.paused { background: #F59E0B; }
  .header-comp-pill .dot.ended,
  .header-comp-pill .dot.not_started { background: #94A3B8; }

  /* 总决赛分组抽签 A/B/C/D 方块与进度条选中色保留 */
  html body .gf-group-btn.bg-sky-700,
  html body #checkinBar {
    background-color: var(--c-brand-deep) !important;
    color: #FFFFFF !important;
  }

  /* ============================================================================
     v3.2 分段控制器 (.seg)：统一节次切换、核对轮次、淘汰赛阶段、历史归档子页签
     ============================================================================ */
  .seg {
    display: inline-flex;
    align-items: center;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 7px;
    padding: 3px;
    min-height: var(--ctl-h);
    gap: 2px;
    flex-wrap: wrap;
  }
  .seg > button,
  .seg > .btn,
  .seg > .sec-btn,
  .seg > .ko-stage-btn {
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 12px !important;
    font-size: .75rem !important;
    font-weight: 600 !important;
    color: var(--tx-2) !important;
    background: transparent !important;
    border: none !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    cursor: pointer;
    position: relative;
    transition: all .12s ease;
  }
  .seg > button:hover:not(.active):not(.bg-emerald-700):not(.bg-sky-700),
  .seg > .btn:hover:not(.active):not(.bg-emerald-700):not(.bg-sky-700) {
    color: var(--tx-main) !important;
    background: rgba(255, 255, 255, .55) !important;
  }
  .seg > button.active,
  .seg > .btn.active,
  .seg > .sec-btn.bg-emerald-700,
  .seg > .ko-stage-btn.bg-emerald-700,
  .seg > button.bg-sky-700 {
    background: #FFFFFF !important;
    color: var(--tx-main) !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08) !important;
  }
  .seg > button.active::after,
  .seg > .btn.active::after,
  .seg > .sec-btn.bg-emerald-700::after,
  .seg > .ko-stage-btn.bg-emerald-700::after,
  .seg > button.bg-sky-700::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-brand);
  }
  body.gf-mode .seg > button.active::after,
  body.gf-mode .seg > .btn.active::after,
  body.gf-mode .seg > button.bg-sky-700::after {
    background: var(--gf-gold-dark, #8A734D);
  }

  /* ============================================================================
     v3.2 Switch 胶囊开关 (.switch)、等宽裁判码 (.code-num)、紧凑表格与卡片头 (.card-head)
     ============================================================================ */
  input[type="checkbox"].switch {
    -webkit-appearance: none;
    appearance: none;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #CBD5E1;
    position: relative;
    cursor: pointer;
    transition: background .15s ease;
    flex: none;
    vertical-align: middle;
  }
  input[type="checkbox"].switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    transition: transform .15s ease;
  }
  input[type="checkbox"].switch:checked {
    background: var(--c-brand-deep);
  }
  input[type="checkbox"].switch:checked::after {
    transform: translateX(16px);
  }

  /* 裁判登录码与等宽编号：回归正文主色，去掉刺眼橙黄色 */
  .code-num {
    font-family: var(--ff-num, "JetBrains Mono", Consolas, monospace);
    font-variant-numeric: tabular-nums;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--tx-main);
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
  }

  /* 统一卡片头部 (.card-head)：左标题 + 右侧操作区，底部 1px 分隔线 */
  .card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #E5E7EB;
    flex-wrap: wrap;
  }
  .card-head-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
  }
  .card-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  /* 表格紧凑密度规范：表头 38px，数据行 48px，消除 72px 肥胖行 */
  html body .admin-panel table thead th {
    padding: 8px 12px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--tx-2);
    background: #F8FAFC;
    border-bottom: 1px solid #E5E7EB;
  }
  html body .admin-panel table tbody td {
    padding: 8px 12px;
    font-size: .8125rem;
    vertical-align: middle;
  }

  /* 比赛元数据横向键值条 (.kv-strip) */
  .kv-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px 16px;
    padding: 12px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
  }
  .kv-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .kv-item .kv-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--tx-2);
  }
  .kv-item .kv-val {
    font-size: .875rem;
    font-weight: 800;
    color: var(--tx-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 检录四宫格指标块 (.metric-row) 与三色进度条 (.seg-bar) */
  .metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  @media (max-width: 640px) {
    .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  .metric-box {
    padding: 10px 12px;
    border-radius: 6px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .metric-box .m-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--tx-2);
  }
  .metric-box .m-val {
    font-family: var(--ff-num);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--tx-main);
    line-height: 1.2;
  }
  .seg-bar {
    height: 8px;
    border-radius: 999px;
    background: #E2E8F0;
    overflow: hidden;
    display: flex;
  }
  .seg-bar > span {
    height: 100%;
    transition: width .25s ease;
  }

  /* 赛场管理：比赛状态三段步进条 (.step-bar) */
  .step-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
  }
  .step-node {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #94A3B8;
  }
  .step-node .step-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #CBD5E1;
  }
  .step-node.is-active {
    color: var(--tx-main);
    font-weight: 800;
  }
  .step-node.is-active .step-dot {
    background: var(--c-brand);
    box-shadow: 0 0 0 3px var(--c-brand-tint);
  }
  .step-node.is-done {
    color: #15803D;
  }
  .step-node.is-done .step-dot {
    background: #16A34A;
  }
  .step-sep {
    width: 18px;
    height: 1px;
    background: #CBD5E1;
  }

  /* 快照与日志：分组表单盒 (.form-group-box) */
  .form-group-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 12px 14px;
  }
  .form-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #E2E8F0;
    font-size: .8125rem;
    font-weight: 800;
    color: var(--tx-main);
  }

  /* ============================================================================
     v3.2 顶部 KPI + Tab 吸顶折叠条 (.console-sticky)
     向下滚动越过哨兵时自动吸附并折叠 KPI 卡为单行紧凑条
     ============================================================================ */
  .console-sticky {
    position: sticky;
    top: 0;
    z-index: 35;
    background: transparent;
  }
  .console-sticky.is-pinned {
    background: rgba(15, 23, 42, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .24);
  }
  html[data-theme="salamandura"] body.screen-bg:not(.bg-plain) .console-sticky.is-pinned {
    background: rgba(58, 13, 20, .94);
  }
  html[data-theme="steez"] body.screen-bg:not(.bg-plain) .console-sticky.is-pinned {
    background: rgba(14, 26, 34, .92);
  }
  body.bg-plain .console-sticky.is-pinned {
    background: rgba(248, 250, 252, .96);
    border-bottom: 1px solid #CBD5E1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
  }

  /* 总决赛对战（2/3）与淘汰赛（1/3）并排且严格等高栅格 */
  .gf-battle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: stretch;
  }
  @media (min-width: 1024px) {
    .gf-battle-grid {
      grid-template-columns: 2fr 1fr;
    }
  }
  .gf-battle-grid > #gfScheduleCard {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .gf-battle-grid > #gfBracketCard {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  /* 未激活态必须用实色，禁止半透明 —— 户外强光下半透明会糊成一片，
     而且 opacity + grayscale 会让文字对比度进一步下降。
     card5（抢鱼环节）在未开启时会被加上 opacity-60 + grayscale，
     这里改成实色表达：底色转浅灰、文字转次要色，信息依然清晰可读。 */
  html body .opacity-60 { opacity: 1 !important; }
  html body .grayscale   { filter: none !important; }
  html body .glass.opacity-60,
  html body .stat-card.opacity-60 {
    background: var(--bg-sunken) !important;
    border-color: var(--bd-line) !important;
  }
  html body .glass.opacity-60 [id$="Value"],
  html body .glass.opacity-60 [id$="Label"],
  html body .glass.opacity-60 [id$="Sub"] { color: var(--tx-2) !important; }

  /* ==================================================================================
     v2.9.0（预览分支）总台品牌画布
     把页面底色从浅灰换成「品牌深色底 + 巨型 logo 暗纹」，与现场大屏共用同一组色值，
     让操作者长时间面对的总台也有品牌专属感。

     可读性铁律：所有卡片仍是白底实色 —— 文字对比度与改动前完全一致；
     品牌只出现在卡片之外的画布（底色 / 间距 / 页头）与底纹上。
     对照旧版：/admin?bg=off（仅调试用；不带参数即新方案）。
     预览另一品牌：/admin?theme=steez|salamandura（仅调试用，不改动任何数据）。
     ================================================================================== */
  /* 1) 画布：品牌色的深色压暗版（与大屏 dark 模式同一组取值） */
  html[data-theme="salamandura"] body.screen-bg:not(.bg-plain),
  html[data-theme="salamandura"] #loginView.screen-bg:not(.bg-plain) {
    background: linear-gradient(160deg, #4A0F1A 0%, #2A0A0E 52%, #1B0509 100%);
  }
  html[data-theme="steez"] body.screen-bg:not(.bg-plain),
  html[data-theme="steez"] #loginView.screen-bg:not(.bg-plain) {
    background: linear-gradient(160deg, #16242E 0%, #0E1A22 52%, #0A1319 100%);
  }

  /* 2) 品牌暗纹：大屏同款做法（统一转白色剪影 + 极低透明度），压在最底层。
     z-index: -1 —— 只画在画布之上、一切内容之下，物理上不可能盖住任何文字。 */
  html[data-theme="salamandura"] body.screen-bg:not(.bg-plain)::before,
  html[data-theme="steez"] body.screen-bg:not(.bg-plain)::before,
  html[data-theme="salamandura"] #loginView.screen-bg:not(.bg-plain)::before,
  html[data-theme="steez"] #loginView.screen-bg:not(.bg-plain)::before {
    content: '';
    position: fixed;
    right: -4vw; bottom: -12vh;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    pointer-events: none;
    z-index: -1;
    filter: brightness(0) invert(1);   /* 深底上统一转白色剪影（同大屏暗纹） */
  }
  html[data-theme="salamandura"] body.screen-bg:not(.bg-plain)::before,
  html[data-theme="salamandura"] #loginView.screen-bg:not(.bg-plain)::before {
    width: 46vw; height: 46vw;
    background-image: url('/assets/brand-salamandura-mark.png');
    opacity: .08;
  }
  html[data-theme="steez"] body.screen-bg:not(.bg-plain)::before,
  html[data-theme="steez"] #loginView.screen-bg:not(.bg-plain)::before {
    width: 64vw; height: 13.5vw;     /* STEEZ 是长条字标（约 4.7:1），不能压成方块 */
    right: -6vw; bottom: -2vh;       /* 按评审意见：往右下沉、边缘切出画面 → 图形感而非阅读感 */
    background-image: url('/assets/brand-steez.png');   /* 白色版，深底直接用 */
    opacity: .10;
  }

  /* 3) 页头：从白色条改为品牌深色玻璃条，让顶部先建立品牌语境 */
  html[data-theme="salamandura"] body.screen-bg:not(.bg-plain) #consoleView > header,
  html[data-theme="steez"] body.screen-bg:not(.bg-plain) #consoleView > header {
    background: rgba(10, 8, 12, .42);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
  }
  html[data-theme="salamandura"] body.screen-bg:not(.bg-plain) #consoleView > header .text-slate-900,
  html[data-theme="steez"] body.screen-bg:not(.bg-plain) #consoleView > header .text-slate-900 {
    color: #FFFFFF;
  }
  html body #consoleView > header .text-slate-600,
  html[data-theme="salamandura"] body.screen-bg:not(.bg-plain) #consoleView > header #meNameLabel,
  html[data-theme="steez"] body.screen-bg:not(.bg-plain) #consoleView > header #meNameLabel,
  html[data-theme="salamandura"] body.screen-bg:not(.bg-plain) #consoleView > header .text-slate-600,
  html[data-theme="steez"] body.screen-bg:not(.bg-plain) #consoleView > header .text-slate-600 {
    color: rgba(255, 255, 255, .78);
  }
  html[data-theme="salamandura"] body.screen-bg:not(.bg-plain) #consoleView > header img[src="/assets/logo-dvec.png"],
  html[data-theme="steez"] body.screen-bg:not(.bg-plain) #consoleView > header img[src="/assets/logo-dvec.png"] {
    filter: brightness(0) invert(1);   /* 黑色几何 logo → 白色（无彩色信息，可安全反白） */
  }

  /* 4) 白卡在深色画布上的边界：按咨询结论**不加投影** ——
     户外强光下投影会被屏幕反光吃掉、反而显得边缘脏；
     现有 2px 浅色描边（.glass 自带）已经足够界定卡片边界，保持"平坦 + 清晰边缘"。 */

  /* 5) 导航标签是「无边框文字组 + 游标线」（4 号规则刻意去掉了描边与底色），
        在深色画布上必须翻成浅色文字，否则深字贴深底等于看不见。
        游标线同步换提亮后的品牌色（深底上的深色线同样会消失）。 */
  .admin-nav-dock {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .5rem;
    background: rgba(15, 23, 42, .45);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--r-base);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  body.bg-plain .admin-nav-dock {
    background: #E2E8F0;
    border-color: #CBD5E1;
  }
  html[data-theme="salamandura"] body.screen-bg:not(.bg-plain) .admin-nav-dock {
    background: rgba(34, 7, 12, .56);
  }
  html[data-theme="steez"] body.screen-bg:not(.bg-plain) .admin-nav-dock {
    background: rgba(14, 26, 34, .52);
  }
  .nav-segment {
    display: flex;
    align-items: center;
    gap: .25rem;
  }
  .nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, .20);
    margin: 0 .25rem;
    flex: none;
  }
  body.bg-plain .nav-divider {
    background: #94A3B8;
  }

  html[data-theme="salamandura"] body.screen-bg:not(.bg-plain) #adminTabs .tab-btn,
  html[data-theme="steez"] body.screen-bg:not(.bg-plain) #adminTabs .tab-btn {
    color: rgba(255, 255, 255, .78) !important;
  }
  html[data-theme="salamandura"] body.screen-bg:not(.bg-plain) #adminTabs .tab-btn:hover,
  html[data-theme="steez"] body.screen-bg:not(.bg-plain) #adminTabs .tab-btn:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, .08) !important;
  }
  html[data-theme="salamandura"] body.screen-bg:not(.bg-plain) #adminTabs .tab-btn.active,
  html[data-theme="steez"] body.screen-bg:not(.bg-plain) #adminTabs .tab-btn.active {
    color: #FFFFFF !important;
  }
  html[data-theme="salamandura"] body.screen-bg:not(.bg-plain) #adminTabs .tab-btn.active::after {
    background: #E31837;   /* 深底上品牌红需提亮（同大屏 dark 取值） */
  }
  html[data-theme="steez"] body.screen-bg:not(.bg-plain) #adminTabs .tab-btn.active::after {
    background: #7FB2CC;   /* 深底上的 STEEZ 强调色 */
  }

  /* ==================================================================================
     v2.9.0 成绩管理：排序 / 搜索 / 单条更正（全部只在总台，不涉及裁判端）
     ================================================================================== */
  /* 榜单表头（评审）：加粗 + 颜色加深，户外强光下才压得住数据行 */
  html body #boardHead th { font-weight: 800; color: #334155; }
  /* 榜单行分割线（评审 + 项目规范）：统一到规范下限 #D1D5DB，比 Tailwind 的 slate-200 更「硬」 */
  html body #boardBody > tr { border-top-color: var(--bd-line); }
  /* 榜单工具条：搜索 + 排序合成一个整体控件，比两个散落的输入框整齐（沿用 8px 圆角语言） */
  html body .board-tools {
    display: inline-flex; align-items: center;
    background: #F1F5F9; border: 1px solid #E2E8F0; border-radius: var(--r-base);
    padding: .25rem .55rem; min-height: 38px;
  }
  html body .board-tools-ic { color: var(--tx-2); font-size: .9rem; margin-right: .4rem; flex: none; }
  html body .board-tools .board-input {
    border: 0; background: transparent; width: 9.5rem; min-height: 28px; padding: 0;
    font-size: .8125rem; font-weight: 700; color: var(--tx-main); outline: none;
  }
  html body .board-tools .board-input::placeholder { color: #94A3B8; font-weight: 600; }
  html body .board-tools .board-input:focus { box-shadow: none; }
  html body .board-tools .board-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    background-image: var(--select-chevron);
    background-repeat: no-repeat;
    background-position: right .35rem center;
    background-size: .85rem .85rem;
    min-height: 28px;
    height: 28px;
    padding: 0 1.55rem 0 .45rem;
    font-size: .8125rem;
    font-weight: 800;
    color: var(--tx-main);
    cursor: pointer;
    outline: none;
    border-radius: 6px;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  }
  html body .board-tools .board-select:hover {
    background-color: #E2E8F0;
    border-color: #CBD5E1;
  }
  html body .board-tools .board-select:focus {
    background-color: #FFFFFF;
    background-image: var(--select-chevron-focus);
    border-color: var(--c-brand);
    box-shadow: 0 0 0 2px var(--c-brand-tint);
  }
  html body .board-tools-sep { width: 1px; height: 1.15rem; background: #CBD5E1; margin: 0 .55rem; flex: none; }
  /* 更正弹层的保存按钮 = 该弹层唯一主行动点（品牌实底，随主题） */
  html body #editRecSave {
    background: var(--c-brand-deep) !important;
    border-color: var(--c-brand-deep) !important;
    color: var(--c-brand-ink) !important;
  }
  /* 展开明细（v2.9.0）：统一 13px 正文 + 等宽数字 + 按列对齐；
     空节压缩成一行灰字；签名证据不逐条重复（下方「成绩上传明细」里已有） */
  html body .row-caret { font-size: 1.2rem; color: #475569; vertical-align: -4px; }
  html body tr[data-open-board]:hover .row-caret { color: var(--tx-main); }
  html body .rec-panel {
    background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: var(--r-base);
    padding: .55rem .8rem .5rem;
  }
  /* 展开明细（第三版）：把横向空间用起来 ——
     区域决赛按「第 1 / 2 / 3 节」左中右三列并排；单节比赛用多列卡片网格排布 */
  html body .rec-secs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
  html body .rec-stack { display: grid; gap: .4rem; margin-top: .35rem; }
  html body .rec-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem .6rem; margin-top: .35rem; }
  html body .rec-card {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1rem .5rem;
    padding: .42rem .55rem; background: #FFFFFF;
    border: 1px solid #E2E8F0; border-radius: 6px;
  }
  html body .rec-card-ord { font-size: .75rem; color: var(--tx-2); }
  html body .rec-card-val {
    font-family: var(--ff-num); font-weight: 800; font-size: .875rem;
    color: var(--tx-main); text-align: right;
  }
  html body .rec-card-meta { grid-column: 1 / -1; font-size: .75rem; color: var(--tx-2); }
  html body .rec-col > .rec-sec-head { margin-bottom: .05rem; }
  html body .rec-sec-head {
    display: flex; align-items: baseline; gap: .45rem;
    font-size: .8125rem; font-weight: 800; color: var(--tx-main);
  }
  html body .rec-sec-head span { font-size: .75rem; font-weight: 600; color: var(--tx-2); }
  html body .rec-empty { font-size: .8125rem; color: #94A3B8; padding: .3rem 0 .1rem; }
  html body .rec-foot {
    display: flex; align-items: center; gap: .5rem;
    margin-top: .5rem; padding-top: .45rem; border-top: 1px solid #E8EDF3;
    font-size: .75rem; color: var(--tx-2);
  }
  html body .rec-edit {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .18rem .5rem; border: 1px solid #CBD5E1; border-radius: 6px;
    background: #FFFFFF; font-size: .75rem; font-weight: 700; color: var(--tx-main);
    transition: background .12s ease, border-color .12s ease;
  }
  html body .rec-edit:hover { background: #E2E8F0; border-color: #94A3B8; }
  html body .rec-edit .ic { font-size: .8rem; }
  html body .rec-edit-main { padding: .3rem .7rem; font-size: .8125rem; }
  html body .rec-edit-main .ic { font-size: .9rem; }
  /* 评审：唯一的纠错出口要更有「工具感」——加粗描边 + 悬停用品牌淡底 */
  html body .rec-edit-main {
    padding: .35rem .85rem; border-width: 2px; border-color: var(--bd-strong); font-weight: 800;
  }
  html body .rec-edit-main:hover { background: var(--c-brand-tint); border-color: var(--c-brand-deep); color: var(--c-brand-deep); }

  /* 更正弹层：一屏列出该选手全部成绩（输入框 + 提交裁判，便于找本人核实） */
  html body #editRecBody { max-height: 62vh; overflow-y: auto; }
  html body .edit-sec { margin-top: .8rem; }
  html body .edit-sec:first-of-type { margin-top: .2rem; }
  html body .edit-sec-head {
    display: flex; align-items: baseline; gap: .45rem;
    font-size: .8125rem; font-weight: 800; color: var(--tx-main);
  }
  html body .edit-sec-head span { font-size: .75rem; font-weight: 600; color: var(--tx-2); }
  html body .edit-grid {
    display: grid; grid-template-columns: 4.5rem minmax(9rem, 1fr) 5.5rem minmax(7rem, 1.1fr);
    align-items: center; column-gap: .9rem;
  }
  html body .edit-head { padding: .3rem 0 .25rem; }
  html body .edit-head span { font-size: .75rem; font-weight: 800; letter-spacing: .04em; color: #334155; }
  html body .edit-line { padding: .4rem 0; border-top: 1px solid #E8EDF3; border-radius: 6px; }
  html body .edit-line > span { font-size: .8125rem; color: var(--tx-2); }
  html body .edit-line.edit-focus { background: #FFF7ED; }
  html body .edit-field { display: flex; align-items: center; gap: .35rem; }
  html body .edit-input {
    min-height: 34px; padding: .25rem .5rem; font-size: .8125rem; font-weight: 700;
    font-family: var(--ff-num);
    border: 2px solid var(--bd-strong); border-radius: 6px; background: #FFFFFF; color: var(--tx-main);
  }
  html body .edit-input:focus { outline: none; border-color: var(--c-brand-deep); }
  html body input.edit-input { width: 6.5rem; }
  html body select.edit-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
    width: auto;
    padding-right: 1.65rem !important;
    cursor: pointer;
  }
  html body .edit-unit { font-size: .75rem; color: var(--tx-2); }
  html body .edit-chip {
    margin-left: .35rem; padding: 0 .3rem; font-size: .6875rem;
    border: 1px solid #F59E0B; border-radius: 4px; background: #FFFBEB; color: #92400E;
  }

  /* ================= 子板块标题与入口（2026-10-16 用户验收版） =================
     反馈：① 各子板块的标题不够醒目 ② 顶部那一排子板块入口的文字偏小。
     标题：16px → 20px、字重 900、左侧 4px 品牌色竖条、图标染品牌色（方案 B2）；
     入口：14px → 16px（户外可读下限）、字重 800。
     全部只加样式覆盖层，模板结构与脚本逻辑一行未动。
     【踩坑提醒】Tailwind 的 Preflight 会把 h2 重置为「继承字号」，所以这些
     标题实际只有 16px —— 想再调大小时改这里即可，不要在模板里加 text-* 类。 */
  html body #adminTabs .tab-btn {
    font-size: 1rem;
    font-weight: 800;
    padding: .6875rem 1.125rem;
  }
  html body .admin-panel .glass h2 {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: .01em;
    position: relative;
    padding-left: .875rem;
  }
  html body .admin-panel .glass h2::before {
    content: "";
    position: absolute;
    left: 0; top: .16em; bottom: .16em;
    width: 4px;
    border-radius: 2px;
    background: var(--c-brand);
  }
  html body .admin-panel .glass h2 .ic { color: var(--c-brand); }

  /* ==================================================================================
     v3.0.0 大师赛全国总决赛 · 金色体系（依据 dc/consultations/18 号咨询）
     香槟哑光金 #C5A877 / 高光 #E8D5A5 / 暗调 #8A734D；金色总面积控制在 1%–1.5%；
     规则：无阴影、无发光；线条 1–2px 锐利实线；金色不与品牌红直接相邻。
     仅在 body.gf-mode（当前比赛 = 大师赛全国总决赛）时生效，其他赛制零影响。
     ================================================================================== */
  body.gf-mode {
    --gf-gold: #C5A877;
    --gf-gold-hi: #E8D5A5;
    --gf-gold-dark: #8A734D;
    --gf-gold-grad: linear-gradient(135deg, #E8D5A5 0%, #C5A877 50%, #8A734D 100%);
  }
  /* 1) KPI 卡顶部 2px 金线（必须做） */
  body.gf-mode .stat-card { border-top: 2px solid var(--gf-gold); }
  /* 2) 核心数字金色（必须做，不加发光）：赛程进度 / 称重批次两张卡 */
  body.gf-mode #kpi3Value, body.gf-mode #kpi4Value,
  body.gf-mode #kpi3Label, body.gf-mode #kpi4Label { color: var(--gf-gold-dark) !important; }
  /* 3) 分区标题竖条 → 金属渐变（总决赛专属） */
  html body.gf-mode .admin-panel .glass h2::before { background: var(--gf-gold-grad); }
  html body.gf-mode .admin-panel .glass h2::before { width: 2px; }   /* 咨询 18 复审：4px→2px，锐利感 */
  html body.gf-mode .admin-panel .glass h2 .ic { color: var(--gf-gold-dark); }
  /* 4) 白卡上的表头分隔线：暗调金 15%（建议做） */
  body.gf-mode .admin-panel .glass table thead tr { border-bottom: 1px solid rgba(138,115,77,.22); }
  /* 5) 关注态卡片描边：主控金 40%（建议做，只用于需裁决/进行中） */
  body.gf-mode .gf-attention { border-color: rgba(197,168,119,.4) !important; }
  /* 6) 大师赛家族徽记暗纹：保留右侧 STEEZ 主暗纹，在总决赛徽章原位置追加。
        官方徽记已从 AI 矢量稿提取为白色透明版；鱼身暗纹为真实镂空，背景可直接透出。 */
  #gfEmblem { display: none; }
  html[data-theme="steez"] #gfEmblem {
    display: block;
    position: fixed;
    left: 6vw; bottom: -4vh;
    width: min(26vw, 380px); height: auto;
    aspect-ratio: 2133 / 1568;
    object-fit: contain;
    opacity: .055;
    pointer-events: none;
    z-index: -1;
  }

/* v3.1.0（V-004）：赛程表里作钓区与其他场次重复的行 */
.gf-dup td { background: #FEF2F2 !important; }
.gf-dup .gf-area { border-color: #B91C1C !important; }

/* v3.1.0（V-005）：总决赛裁判管理只保留标准裁判表；钓位号范围列隐藏 */
.gf-ref-role { display: none; }
body.gf-mode .gf-ref-role { display: table-cell; }
body.gf-mode .gf-ref-range,
body.gf-mode .gf-ref-range-act { display: none !important; }

/* 总决赛半决赛抽签：每场独占一行，避免两个对阵和保存按钮相互挤压。 */
html body .gf-semi-editor {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #7DD3FC;
  border-radius: var(--r-base);
  background: #F8FAFC;
}

html body .gf-semi-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

html body .gf-semi-editor__head > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

html body .gf-semi-editor__head b {
  color: var(--tx-main);
  font-size: 1rem;
  font-weight: 700;
}

html body .gf-semi-list {
  display: grid;
  gap: 0.625rem;
}

html body .gf-semi-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 32px minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

html body .gf-semi-label {
  color: var(--tx-2);
  font-size: .8125rem;
  font-weight: 700;
  white-space: nowrap;
}

html body .gf-semi-slot,
html body .gf-semi-select {
  min-width: 0;
}

html body .gf-semi-select {
  width: 100%;
  min-height: var(--ctl-h);
  padding-left: 12px;
  padding-right: 2.35rem;
  font-size: .8125rem;
}

html body #gfScheduleCard .gf-area {
  min-width: 104px;
}

html body .gf-semi-vs {
  color: var(--tx-2);
  font-size: .75rem;
  font-weight: 800;
  text-align: center;
}

html body .gf-semi-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

@media (max-width: 639px) {
  html body .gf-semi-row {
    grid-template-columns: 1fr auto 1fr;
  }

  html body .gf-semi-label {
    grid-column: 1 / -1;
  }

  html body .gf-semi-actions .btn {
    width: 100%;
  }
}

/* ==================================================================================
   v3.4.3 移动端自适应重构（严格限定 max-width: 767px，桌面端 >= 768px 零影响）
   ================================================================================== */
.m-lbl,
.m-card-more,
.mobile-drawer-head,
.mobile-nav-bar,
.mobile-nav-backdrop {
  display: none;
}

@media (max-width: 767px) {
  /* 1) 顶栏防拥挤：桌面端 #meRoleBadge 隐藏，改用第二行紧凑 #meRoleBadgeMob */
  #consoleView > header #meRoleBadge {
    display: none !important;
  }
  html body #consoleView > header #openPwdModalBtn,
  html body #consoleView > header #langToggle,
  html body #consoleView > header #logoutBtn {
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 8px !important;
  }

  /* 2) 解除顶部 KPI 吸顶：随页面自然滚走，彻底释放手机端垂直操作空间 */
  .console-sticky,
  .console-sticky.is-pinned {
    position: static;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
  }

  /* 3) KPI 卡片静态紧凑双列排版（高度减半，严守「指标名 + 主值」双层结构） */
  #kpiRow {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  #kpiRow .kpi-card {
    min-height: 64px;
    padding: 0.55rem 0.75rem;
  }
  #kpiRow .kpi-value {
    min-height: 1.5rem;
    margin-top: 0.2rem;
    font-size: 1.125rem !important;
    line-height: 1.15;
  }
  #kpiRow #kpiCard5 {
    min-height: 46px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  #kpiRow #kpiCard5 .kpi-value {
    margin-top: 0;
    min-height: 0;
    flex: 0 0 auto;
    justify-content: flex-end;
    text-align: right;
  }

  /* 4) 手机端吸顶汉堡导航触发栏（高度恒定 48px，彻底杜绝滚屏回弹抖动） */
  .mobile-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 35;
    min-height: 48px;
    padding: 0.375rem 0.625rem;
    border-radius: var(--r-base);
    background: rgba(15, 23, 42, .92);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #FFFFFF;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  }
  html[data-theme="salamandura"] body.screen-bg:not(.bg-plain) .mobile-nav-bar {
    background: rgba(42, 10, 14, .92);
  }
  html[data-theme="steez"] body.screen-bg:not(.bg-plain) .mobile-nav-bar {
    background: rgba(14, 26, 34, .92);
  }
  body.bg-plain .mobile-nav-bar {
    background: rgba(248, 250, 252, .96);
    border-color: #CBD5E1;
    color: var(--tx-main);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
  }
  .mobile-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 36px;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    color: inherit;
    font-size: 0.9375rem;
    font-weight: 800;
    max-width: 62%;
    cursor: pointer;
  }
  body.bg-plain .mobile-nav-trigger {
    background: #FFFFFF;
    border-color: #CBD5E1;
  }
  .mobile-nav-caret {
    width: 1em;
    height: 1em;
    opacity: .8;
  }
  .mobile-nav-comp {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    max-width: 38%;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .92);
    cursor: pointer;
  }
  body.bg-plain .mobile-nav-comp {
    background: #FFFFFF;
    border-color: #CBD5E1;
    color: var(--tx-main);
  }
  .mobile-nav-comp .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #10B981;
  }
  .mobile-nav-comp .dot.paused { background: #F59E0B; }
  .mobile-nav-comp .dot.ended,
  .mobile-nav-comp .dot.not_started { background: #94A3B8; }

  /* 5) 9 大模块汉堡侧滑抽屉（复用 #adminTabs，保持全部按钮 ID 与权限显隐同步） */
  .mobile-nav-backdrop:not(.hide) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 48;
    background: rgba(15, 23, 42, .56);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  html body #adminTabs {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(82vw, 300px);
    z-index: 49;
    margin: 0;
    padding: calc(0.875rem + env(safe-area-inset-top, 0px)) 0.875rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    border-radius: 0 var(--r-base) var(--r-base) 0;
    background: #0F172A;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, .16);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translate3d(-105%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform .24s cubic-bezier(.16, 1, .3, 1), visibility .24s;
  }
  html[data-theme="salamandura"] body.screen-bg:not(.bg-plain) #adminTabs {
    background: #2A0A0E;
  }
  html[data-theme="steez"] body.screen-bg:not(.bg-plain) #adminTabs {
    background: #0E1A22;
  }
  body.bg-plain #adminTabs {
    background: #FFFFFF;
    border-right: 1px solid #CBD5E1;
    color: var(--tx-main);
  }
  html body #adminTabs.is-drawer-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    color: #FFFFFF;
  }
  html body #mobileNavCloseBtn {
    color: rgba(255, 255, 255, .88) !important;
  }
  html body #mobileNavCloseBtn:hover {
    background: rgba(255, 255, 255, .14) !important;
    color: #FFFFFF !important;
  }
  body.bg-plain .mobile-drawer-head {
    border-bottom-color: #E2E8F0;
    color: var(--tx-main);
  }
  body.bg-plain #mobileNavCloseBtn {
    color: var(--tx-2) !important;
  }
  html body #adminTabs .nav-divider {
    display: none;
  }
  html body #adminTabs .nav-segment {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    width: 100%;
  }
  html body #adminTabs .nav-segment::before {
    content: attr(data-segment-label);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, .58);
    padding: 0.125rem 0.5rem 0.2rem;
  }
  body.bg-plain #adminTabs .nav-segment::before {
    color: var(--tx-2);
  }
  html body #adminTabs .tab-btn {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
    padding: 0.625rem 0.75rem !important;
    border-radius: 8px !important;
    font-size: 0.9375rem !important;
    color: rgba(255, 255, 255, .88) !important;
  }
  body.bg-plain #adminTabs .tab-btn {
    color: var(--tx-main) !important;
  }
  html body #adminTabs .tab-btn.active {
    background: rgba(255, 255, 255, .14) !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
  }
  body.bg-plain #adminTabs .tab-btn.active {
    background: var(--c-brand-tint) !important;
    color: var(--c-brand-deep) !important;
  }
  html body #adminTabs .tab-btn.active::after {
    left: 0;
    right: auto;
    top: 8px;
    bottom: 8px;
    width: 3px;
    height: auto;
    border-radius: 0 2px 2px 0;
  }

  /* 6) 消除 iOS Safari 聚焦输入框自动放大（< 16px 会强制放大视口）并优化面板内边距 */
  html body .admin-panel input.field,
  html body .admin-panel select.field,
  html body .admin-panel textarea.field,
  html body .board-tools .board-input,
  html body .board-tools .board-select,
  html body .edit-input {
    font-size: 16px !important;
  }
  html body .admin-panel > .glass,
  html body .admin-panel > .drill-host > .glass,
  html body #gfRecordsWrap > .glass,
  html body #gfGroupsCard,
  html body #gfScheduleCard,
  html body #gfBracketCard,
  html body #gfZonesCard {
    padding: 0.875rem !important;
  }
  html body .card-head {
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 12px;
  }
  html body .card-head-actions {
    width: 100%;
  }
  html body .board-tools {
    display: flex;
    width: 100%;
  }
  html body .board-tools .board-input {
    flex: 1;
    min-width: 0;
    width: auto;
  }

  /* 7) 混合表格策略：复杂多列大表移动端卡片化折叠展示（.m-cards） */
  html body .tbl-scroll table.m-cards {
    min-width: 0 !important;
    width: 100% !important;
    white-space: normal !important;
  }
  html body table.m-cards thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  html body table.m-cards tbody {
    display: block;
  }
  html body table.m-cards tbody tr:not(.board-detail):not([data-gfdetail]):not(#snapExtraToggleRow) {
    display: block;
    border: 1px solid #CBD5E1;
    border-radius: var(--r-base);
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.625rem;
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  }
  html[data-mode="light"] body table.m-cards tbody tr:nth-child(even) > td {
    background-color: transparent;
  }
  html[data-mode="light"] body table.m-cards tbody tr:hover > td {
    background-color: transparent;
  }
  html body table.m-cards tbody tr:not(.board-detail):not([data-gfdetail]):not(#snapExtraToggleRow) > td:not([colspan]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0 !important;
    border-bottom: 1px dashed #E2E8F0;
    text-align: right;
    font-size: 0.875rem !important;
  }
  html body table.m-cards tbody tr:not(.board-detail):not([data-gfdetail]):not(#snapExtraToggleRow) > td:last-child {
    border-bottom: none;
    padding-top: 0.5rem !important;
    padding-bottom: 0.125rem !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.375rem;
  }
  html body table.m-cards tbody tr.board-detail,
  html body table.m-cards tbody tr#snapExtraToggleRow {
    display: block;
    margin-top: -0.375rem;
    margin-bottom: 0.625rem;
  }
  html body table.m-cards tbody td[colspan] {
    display: block;
    width: 100%;
    padding: 0.5rem 0 !important;
    border: none;
    text-align: left;
  }
  html body table.m-cards tbody tr:not(.m-expanded) > td.m-extra {
    display: none !important;
  }
  body.gf-mode table.m-cards td.gf-ref-range {
    display: none !important;
  }
  body:not(.gf-mode) table.m-cards td.gf-ref-role {
    display: none !important;
  }
  .m-lbl {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tx-2);
    text-align: left;
    flex-shrink: 0;
  }
  .m-val {
    min-width: 0;
    text-align: right;
    word-break: break-word;
  }
  .m-card-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: auto;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 5px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    color: var(--tx-2);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
  }

  /* 展开明细与成绩更正弹窗内网格移动端适配 */
  html body .rec-secs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  html body .rec-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html body .edit-head {
    display: none;
  }
  html body .edit-grid.edit-line {
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.6rem;
    padding: 0.55rem 0.25rem;
  }

  /* 8) 弹窗 Bottom Sheet 化：贴合大拇指热区，表单纵向平滑滚动 */
  html body .modal-shell {
    align-items: flex-end !important;
    justify-content: stretch !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  html body .modal-shell .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 16px 16px 0 0 !important;
    border-bottom-width: 0 !important;
    padding: 1.125rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
    transform: translate3d(0, 100%, 0);
    opacity: 1;
    transition: transform .26s cubic-bezier(.16, 1, .3, 1);
  }
  html body .modal-shell.modal-show .modal-card {
    transform: translate3d(0, 0, 0);
  }
  html body .modal-shell .modal-card::before {
    content: "";
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: #CBD5E1;
    margin: -0.25rem auto 0.75rem;
  }
  html body .modal-shell .modal-card .btn {
    min-height: 44px !important;
    height: auto !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    font-size: 0.9375rem !important;
  }
  html body .modal-shell .modal-card input.field,
  html body .modal-shell .modal-card select.field {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 16px !important;
  }
  html body .modal-shell .modal-card textarea.field {
    font-size: 16px !important;
  }
  html body .drawer-panel {
    border-radius: 0 !important;
  }
}
