:root {
  --brand: #0b6bcb;
  --brand-deep: #0856a8;
  --accent: #14d4c8;
  --accent-soft: #d6f7f4;
  --bg: #f2f7fb;
  --ink: #0f2438;
  --muted: #5a6b7a;
  --line: #e2ebf3;
  --warn: #b45309;
  --soft: #e0f2f8;
}

* { box-sizing: border-box; }

body.login-mode #app {
  min-height: calc(100vh - 96px);
  display: block;
  padding: 0 24px 32px;
}

.top-kicker,
.top-context,
.top-link { display: none; }

.top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  min-height: 72px;
  margin: 0 auto;
  padding: 14px 22px;
}

.logo {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.top-side { flex-shrink: 0; }

.top-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.top-slogan {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.top-logout {
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  margin: 0 0 0 18px;
  padding: 0 0 0 18px;
  color: var(--warn);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.tabs {
  position: absolute;
  left: calc(50% - 48px);
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.login-card {
  width: min(420px, 100%);
  text-align: center;
}

.card.login-card {
  position: absolute;
  left: 50%;
  top: 38.2vh;
  width: max-content;
  max-width: calc(100vw - 48px);
  transform: translate(-50%, -50%);
  background: transparent;
  box-shadow: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.login-welcome {
  color: var(--brand-deep);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  padding-left: 0.08em;
  margin: 0 0 18px;
}

.login-notes {
  margin-top: 18px;
}

.login-notes p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 700;
}

.login-qr {
  width: 248px;
  height: 248px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.login-qr svg,
.login-qr table {
  width: 232px;
  height: 232px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #eef9f7 0%, #f2f7fb 35%, var(--bg) 100%);
}

button, input, select { font-family: inherit; }

.top-link {
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.tab, .chip, .player, .mini {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.tab {
  padding: 8px 16px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(11, 107, 203, 0.06);
}

.tab.on, .chip.on, .player.on, .mini.on {
  background: #eef4ff;
  color: var(--brand);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 22px 48px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 28px rgba(11, 107, 203, 0.08);
}

.focus {
  border: 2px solid rgba(255, 127, 50, 0.28);
  background: linear-gradient(180deg, #fff8f2 0%, #fff 100%);
}

.kicker {
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.head, .row, .score-line, .actions, .chips, .players {
  display: flex;
  align-items: center;
  gap: 10px;
}

.head, .row { justify-content: space-between; }

.title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.sub, .muted { color: var(--muted); font-size: 13px; line-height: 1.5; }

.pill {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
}

.pill.gold { background: var(--accent-soft); color: #0b7a72; }
.pill.warn { background: #fff4eb; color: #c2410c; }
.pill.done { background: #eef1f4; color: #5a6b7a; }

.event {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.card .event:first-of-type { border-top: 0; padding-top: 0; }

.btn, .btn-ghost {
  border: 0;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.btn {
  color: #fff;
  background: linear-gradient(135deg, #0b6bcb 0%, #14d4c8 100%);
  box-shadow: 0 10px 22px rgba(11, 107, 203, 0.22);
}

.btn.warm {
  background: linear-gradient(135deg, #ff9a3d 0%, #ff7f32 100%);
  box-shadow: 0 10px 22px rgba(255, 127, 50, 0.28);
}

.btn.done {
  background: #0f6b4c;
  box-shadow: none;
}

.op-done {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #e7f6f1;
  color: #0f6b4c;
  font-weight: 800;
}

.btn-ghost {
  color: var(--brand);
  background: transparent;
  border: 2px solid var(--brand);
}

.btn-ghost.done {
  color: #fff;
  background: #0f6b4c;
  border-color: #0f6b4c;
}

.btn.full, .btn-ghost.full { width: 100%; margin-top: 10px; }

.actions { flex-wrap: wrap; margin-top: 12px; }
.actions .btn, .actions .btn-ghost { flex: 1; }

.desk {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 14px;
  align-items: start;
}

.desk-3 { grid-template-columns: 240px minmax(0, 1fr) 240px; }

.draw-layout { grid-template-columns: minmax(0, 1fr) 280px; }

.score-card { position: sticky; top: 12px; z-index: 2; }

.lock-card { background: #f7fbfd; }

.key-hint { margin-top: 8px; }

.setup-nav, .rink {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rink {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.match {
  width: 100%;
  text-align: left;
  background: #f7fbfd;
  border: 0;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
}

.match.on { outline: 2px solid rgba(11, 107, 203, 0.35); }

.score-line { justify-content: center; margin: 8px 0; }

.score {
  min-width: 64px;
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  color: var(--brand-deep);
}

.vs { color: #9aa8b5; font-weight: 700; }

.clock {
  margin-top: 8px;
  text-align: center;
  color: #c2410c;
  font-weight: 800;
}

.chip, .player, .mini {
  padding: 7px 12px;
  font-size: 13px;
}

.players, .chips { flex-wrap: wrap; margin: 6px 0 12px; }

label { display: block; margin: 8px 0 6px; color: var(--muted); font-size: 13px; font-weight: 700; }

input, select {
  width: 100%;
  border: 0;
  background: #f0f6fb;
  border-radius: 12px;
  min-height: 42px;
  padding: 0 12px;
  margin-bottom: 8px;
  color: var(--ink);
}

.slot { padding: 8px 0; border-top: 1px solid var(--line); }
.slot:first-child { border-top: 0; }

.hidden { color: #9aa8b5; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.log { margin: 0 0 6px; }

.audit-areas { margin-bottom: 4px; }

.audit-table th,
.audit-table td {
  white-space: nowrap;
  vertical-align: top;
}

.audit-table td.audit-msg {
  white-space: normal;
  min-width: 180px;
}

.audit-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.audit-pager .btn-ghost {
  min-height: 32px;
  padding: 0 12px;
}

.audit-pager .btn-ghost:disabled {
  opacity: 0.4;
  cursor: default;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--brand-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.draw-card { background: #f7fbfd; box-shadow: none; }

.work-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bj-time {
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 16px;
  text-align: right;
}

.work-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 12px;
}

.work-tools .chips { margin: 0; }

.score-entry { flex-shrink: 0; }

.work-board {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: 14px;
  align-items: stretch;
}

.work-list,
.work-now {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.work-list { justify-content: space-between; }

.work-list > .card {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.empty-schedule {
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 22px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.38), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(20, 212, 200, 0.72), transparent 40%),
    linear-gradient(148deg, #0856a8 0%, #0b6bcb 48%, #14d4c8 100%);
  box-shadow: 0 14px 30px rgba(11, 107, 203, 0.24);
}

.empty-schedule strong {
  font-size: 26px;
  line-height: 1.2;
}

.empty-schedule span:last-child {
  display: inline-flex;
  margin-top: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

.work-now > .card {
  flex: 1;
  margin-bottom: 0;
}

.work-results { margin-top: 14px; }

.result-divisions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.result-division {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7fbfd;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.result-line {
  width: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.result-line .muted { grid-column: 2 / -1; }

.result-score {
  color: var(--brand-deep);
  font-weight: 800;
}

.work-card {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.work-card .work-time { font-size: 16px; }
.work-card .work-title { font-size: 18px; }
.work-card .muted { font-size: 14px; }
.work-card .text-go,
.work-card .text-stop { font-size: 15px; }

.work-time {
  color: var(--brand);
  font-weight: 800;
  font-size: 14px;
}

.work-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.work-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.text-go, .text-stop, .text-act {
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
}

.text-go, .text-act { color: var(--brand); }
.text-stop { color: var(--warn); }

.now-card.now-play {
  background: linear-gradient(180deg, #e8f3ff 0%, #ffffff 46%);
  box-shadow: inset 0 4px 0 #0b6bcb, 0 8px 28px rgba(11, 107, 203, 0.08);
}

.now-card.now-checkin {
  background: linear-gradient(180deg, #fff6ea 0%, #ffffff 46%);
  box-shadow: inset 0 4px 0 #e0a045, 0 8px 28px rgba(11, 107, 203, 0.08);
}

.now-card.is-checking {
  background: linear-gradient(180deg, #e5faf4 0%, #ffffff 46%);
  box-shadow: inset 0 4px 0 #0f9f8a, 0 8px 28px rgba(11, 107, 203, 0.08);
}

.work-checkin {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 8px;
}

.checkin-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gap-manual {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.gap-manual input {
  width: 96px;
}

.now-card .work-side .text-act,
.now-card .work-side .text-stop {
  min-width: 88px;
  padding: 6px 12px;
  border-radius: 999px;
  text-align: center;
}

.now-card.now-play .work-side .text-act { background: #e5f0ff; }
.now-card.now-checkin .work-side .text-act { background: #fff1dc; color: #9a6700; }
.now-card .work-side .text-stop { background: #fff1e8; }

.now-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.now-head .work-side { justify-self: end; }

.now-time {
  justify-self: center;
  text-align: center;
  min-width: 4.6em;
  padding: 4px 14px;
  border-radius: 999px;
  background: #e7f1ff;
  color: var(--brand-deep);
  font-size: 36px;
  font-weight: 800;
}

.now-checkin .now-time {
  background: #fff1dc;
  color: #9a6700;
}

.now-card.is-checking .now-time {
  background: #ddf7f1;
  color: #0f766e;
}

.now-division {
  margin-top: 4px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 800;
}

.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
}

.side { text-align: center; }

.team-name {
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
}

.mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(160deg, #1c6fe0 0%, #14d4c8 100%);
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mark.away { background: linear-gradient(160deg, #16325c 0%, #0b7a72 100%); }

.now-card .vs-word {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  background: #e8f2ff;
  color: var(--brand);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.now-checkin .vs-word { background: #fff1dc; color: #9a6700; }

.vs-word {
  color: var(--muted);
  font-weight: 800;
  font-size: 34px;
}

.time-desk {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.time-nav-card { padding: 14px; }

.time-nav-card .title { font-size: 16px; margin-bottom: 8px; }

.setup-line {
  margin: 10px 0 6px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 800;
}

.setup-sub {
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.stepper.is-locked { opacity: 0.45; }
.stepper.is-locked .step-btn { pointer-events: none; }

.step-btn {
  min-width: 42px;
  padding: 0;
}

.step-value {
  min-width: 6.5em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.penalty-row { margin-top: 8px; }

.time-nav-card .muted { font-size: 14px; line-height: 1.6; }

.roster-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 6px;
}

.roster-line {
  font-size: 15px;
  line-height: 1.6;
  white-space: nowrap;
}

.pick-label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
}

.time-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: stretch;
}

.time-main { min-width: 0; }

.board-col,
.announce-col {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.time-nav .announce-card { margin-bottom: 14px; }

.time-nav .announce-grid { grid-template-columns: 1fr 1fr; }

.time-nav .announce-card .announce { width: 100%; min-width: 0; }

.board-col .board,
.announce-col .announce-card {
  flex: 1 1 auto;
}

.announce-col .card { margin-bottom: 0; }

.time-nav-card:not(.open) { padding-bottom: 6px; }

.fold-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fold-title .title { margin: 0; }

.fold-mark {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.time-ops, .time-meta, .bench-tabs, .goalie-line, .player-grid {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.time-ops, .time-meta { margin-top: 12px; }

.board-col .time-ops {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.board-col .time-ops > .btn,
.board-col .time-ops > .btn-ghost,
.board-col .time-ops > .cast-on {
  width: 100%;
  justify-content: center;
  padding: 0 4px;
  white-space: nowrap;
}

.cast-on { background: var(--warn); color: #fff; }

.goalie-label {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.goalie-pick {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.goalie-pick.on { color: var(--brand); }

.goalie-empty { color: var(--muted); font-size: 13px; }

.mark-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.goal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #16a34a;
  display: inline-block;
}

.penalty-line {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
}

.pause-line {
  margin-top: 6px;
  color: var(--warn);
  font-weight: 800;
}

.mask {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 36, 56, 0.35);
}

.dialog { width: min(560px, 100%); margin: 0; }

.board-col .time-meta {
  margin-top: 8px;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
}

.board-col .time-meta > span,
.board-col .time-meta > .text-act {
  flex: 0 0 auto;
  white-space: nowrap;
}

.announce-card .title,
.announce-card .muted,
.announce-card .announce {
  white-space: nowrap;
}

.announce-card .announce {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  padding: 0 10px;
  line-height: 1;
  font-size: 13px;
}

.announce-card .announce .horn {
  flex: 0 0 16px;
  margin: 0 6px 0 0;
}

.cast-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.board-kicker, .board-name { font-weight: 800; }

.board-kicker { text-align: center; letter-spacing: 0.12em; margin-bottom: 16px; font-size: 20px; }

.board-name { font-size: 28px; margin-bottom: 12px; }

.board .mark { width: 76px; height: 76px; }

.board .clock { font-size: 76px; font-weight: 800; line-height: 1; }

.horn {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  display: inline-block;
  margin-right: 6px;
}

.announce { display: inline-flex; align-items: center; justify-content: flex-start; }

.text-act.on { text-decoration: underline; }

.player-grid { margin-top: 8px; }

.settings-stack .card { margin-bottom: 10px; }

.board {
  background: #0856a8;
  color: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 0;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.board-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.board-team { text-align: center; }

.board-score {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
}

.board-mid { text-align: center; font-size: 20px; }

.board .clock { color: #fff; }

#clock-period.net-on { color: #ffe08a; }

.desk-stage {
  width: 100%;
  aspect-ratio: 1024 / 576;
}

.desk-board {
  height: 100%;
  background: #f4f5f8;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 22.6% 18.4% 36% 23%;
  container-type: size;
  color: #1a2744;
}

.desk-banner {
  background: #416cbb;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 4%;
}

.desk-board.face-zh .desk-crest,
.desk-board.face-bi .desk-crest { display: none; }

.desk-board.mark-badge.face-zh .desk-crest,
.desk-board.mark-badge.face-bi .desk-crest { display: flex; }

.desk-board.font-black { font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif; }
.desk-board.font-song { font-family: "SimSun", "Songti SC", "Noto Serif SC", serif; }
.desk-board.font-black .desk-score,
.desk-board.font-black .desk-clock { font-weight: 900; }

.desk-board.ink-blue .desk-score,
.desk-board.ink-blue .desk-stat strong { color: #1c5db7; }
.desk-board.ink-navy .desk-score,
.desk-board.ink-navy .desk-clock,
.desk-board.ink-navy .desk-nm,
.desk-board.ink-navy .desk-meta .desk-zh,
.desk-board.ink-navy .desk-period:not(.net-on),
.desk-board.ink-navy .desk-period-scores,
.desk-board.ink-navy .desk-stat strong { color: #16325c; }
.desk-board.ink-cyan .desk-score,
.desk-board.ink-cyan .desk-clock,
.desk-board.ink-cyan .desk-nm,
.desk-board.ink-cyan .desk-meta .desk-zh,
.desk-board.ink-cyan .desk-period:not(.net-on),
.desk-board.ink-cyan .desk-period-scores,
.desk-board.ink-cyan .desk-stat strong { color: #0c7f88; }

.desk-board.goals-right .desk-meta,
.desk-board.goals-right .desk-scoreline,
.desk-board.goals-right .desk-foot { direction: rtl; }

.desk-board.goals-right .desk-meta > *,
.desk-board.goals-right .desk-scoreline > *,
.desk-board.goals-right .desk-stat-pair { direction: rtl; }

.desk-board.goals-right .desk-stat { direction: ltr; }

.desk-board.face-zh .desk-en,
.desk-board.face-zh-logo .desk-en { display: none; }

.desk-board.face-zh .desk-meta .desk-zh,
.desk-board.face-zh-logo .desk-meta .desk-zh {
  font-size: 5.4cqh;
  font-weight: 800;
  color: #1a2744;
}

.desk-banner h2 {
  margin: 0;
  font-size: 6.6cqh;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.desk-banner p {
  margin: 0.6cqh 0 0;
  font-size: 3.1cqh;
  font-weight: 600;
  line-height: 1.2;
  min-height: 3.4cqh;
}

.desk-meta {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: center;
  text-align: center;
  background: #eef0f5;
}

.desk-en {
  font-size: 5.4cqh;
  font-weight: 800;
  line-height: 1.05;
  color: #1a2744;
}

.desk-zh,
.desk-nm {
  font-size: 3.2cqh;
  font-weight: 700;
  line-height: 1.2;
  color: #667085;
}

.desk-nm {
  color: #1a2744;
  max-width: 92%;
  margin: 0.2cqh auto 0;
  font-size: 5cqh;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.desk-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.desk-timeouts {
  display: flex;
  justify-content: center;
  gap: 0.7cqh;
  min-height: 1.7cqh;
  margin-top: 5.5cqh;
}

.desk-timeouts i {
  width: 1.7cqh;
  height: 1.7cqh;
  border-radius: 50%;
  background: #e0a045;
  display: block;
}

.desk-clock-stack { text-align: center; }

.desk-clock {
  font-size: 13cqh;
  font-weight: 800;
  line-height: 0.9;
  color: #16325c;
  font-variant-numeric: tabular-nums;
}

.desk-board .desk-clock.pregame-on { color: #1f9d55; }

.desk-period {
  position: absolute;
  left: 50%;
  top: 0.4cqh;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  background: none;
  color: #16325c;
  font-size: 6cqh;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  white-space: nowrap;
}

.desk-board .desk-period.net-on { background: none; color: #9a6700; }

.desk-period-scores {
  position: absolute;
  left: 50%;
  bottom: 1.2cqh;
  transform: translateX(-50%);
  color: #16325c;
  font-size: 2.8cqh;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  white-space: nowrap;
}

.desk-scoreline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background: #f7f8fb;
  padding: 0 4%;
}

.desk-crest {
  width: 14cqh;
  height: 16cqh;
  background: #1c5db7;
  color: #fff;
  clip-path: polygon(50% 0, 100% 16%, 92% 62%, 50% 100%, 8% 62%, 0 16%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5cqh;
  font-weight: 800;
}

.desk-crest.away { background: #1a3f73; }

.desk-score {
  font-size: 17cqh;
  font-weight: 800;
  line-height: 0.85;
  color: #1c5db7;
  font-variant-numeric: tabular-nums;
}

.desk-dots {
  display: flex;
  flex-direction: column;
  gap: 0.9cqh;
}

.desk-dots i {
  width: 1.15cqh;
  height: 1.15cqh;
  border-radius: 50%;
  background: #e0a045;
  display: block;
}

.desk-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 18cqh;
  text-align: center;
}

.desk-break-label {
  color: #e0a045;
  font-size: 3.4cqh;
  font-weight: 800;
  min-height: 0;
}

.desk-mid.is-break .desk-break-label { min-height: 3.6cqh; }
.desk-mid.is-break .desk-break-clock { min-height: 6cqh; }
.desk-mid.is-break.is-pregame .desk-break-clock { min-height: 0; }

.desk-break-clock {
  font-size: 6cqh;
  font-weight: 800;
  line-height: 1;
  color: #e0a045;
  font-variant-numeric: tabular-nums;
  min-height: 0;
}

.desk-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6cqh;
  padding: 1.6cqh 2.2cqh 2cqh;
  background: #f4f5f8;
}

.desk-stat-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e4e7ee;
  border-radius: 8px;
  min-width: 0;
}

.desk-stat {
  background: transparent;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.desk-stat .desk-en {
  font-size: 2.2cqh;
  font-weight: 700;
  color: #667085;
}

.desk-stat .desk-zh { font-size: 2.6cqh; }

.desk-stat strong {
  font-size: 4.6cqh;
  line-height: 1.05;
  color: #1c5db7;
  font-variant-numeric: tabular-nums;
}

.console-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.announce-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.announce.on {
  border-color: var(--brand);
  background: #eef4ff;
}

.warn-btn { background: #c2410c; }

.roster-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  align-items: stretch;
}

.roster-split > .card {
  margin-bottom: 0;
  height: 100%;
}

.sched-board {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 14px;
}

.sched-board.robin {
  grid-template-columns: 1fr;
}

.board-stack {
  min-width: 0;
}

.board-group + .board-group {
  margin-top: 18px;
}

.schedule-view {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.schedule-view > .card {
  margin-bottom: 0;
  height: 100%;
}

.schedule-view.tree,
.schedule-view.plan {
  grid-template-columns: 1fr;
}

.plan-view {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.plan-detail {
  min-width: 0;
}

.revise-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.revise-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}

.revise-bar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  color: #5a6b7a;
  font-size: 12px;
  font-weight: 700;
}

.revise-bar input {
  width: 180px;
  min-width: 160px;
  margin: 0;
}

.revise-bar .btn {
  min-height: 42px;
}

.revise-bar .hint {
  margin: 0;
  line-height: 1.5;
}

.schedule-view.tree .schedule-list {
  max-height: 240px;
  overflow: auto;
}

.tree-panel {
  overflow-x: auto;
  min-height: 0;
}

.sk-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sk-svg {
  display: block;
  width: min(860px, 100%);
  height: auto;
}

.sk-svg text {
  fill: #0f2438;
  font-size: 14px;
  font-weight: 700;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.sk-svg .sk-tag {
  fill: #0856a8;
  font-size: 13px;
  font-weight: 800;
}

.sk-svg .sk-name.is-wait {
  fill: #8b95a1;
  font-weight: 600;
}

.sk-svg .sk-final {
  fill: #0b6bcb;
  font-size: 14px;
  font-weight: 800;
}

.sk-svg .sk-pills rect {
  stroke-width: 1;
}

.ov-board {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ov-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ov-progress span,
.ov-title span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4fb;
  color: #0856a8;
  font-size: 12px;
  font-weight: 800;
}

.ov-progress span.done {
  background: #e7f6ef;
  color: #0f6b4c;
}

.ov-flow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ov-stage {
  flex: 0 0 auto;
  min-width: 180px;
}

.ov-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #0f2438;
  font-size: 15px;
  font-weight: 800;
}

.ov-groups {
  display: flex;
  gap: 14px;
}

.ov-group {
  min-width: 168px;
}

.ov-label,
.ov-round {
  margin-bottom: 6px;
  color: #0856a8;
  font-size: 12px;
  font-weight: 800;
}

.ov-round-block + .ov-round-block {
  margin-top: 10px;
}

.ov-match {
  width: 168px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid #d5e4f0;
  border-left-width: 3px;
  border-left-color: #0b6bcb;
  border-radius: 10px;
  background: #fff;
}

.ov-match.done { border-left-color: #0f6b4c; }
.ov-match.live { border-left-color: #b45309; }
.ov-match.open { border-left-color: #c5d0dc; }

.ov-teams b {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.ov-match.open .ov-teams b {
  color: #8b95a1;
  font-weight: 600;
}

.ov-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
}

.ov-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: #5a6b7a;
  font-size: 12px;
  font-weight: 700;
}

.ov-match.editing {
  width: 220px;
}

.ov-match .robin-edit-btn {
  flex: 0 0 auto;
}

.ov-match.done .ov-meta strong { color: #0f6b4c; }
.ov-match.live .ov-meta strong { color: #b45309; }

.ov-next {
  flex: 0 0 18px;
  align-self: center;
  width: 18px;
  height: 18px;
  margin-top: 28px;
  border-top: 2px solid #8aa0b5;
  border-right: 2px solid #8aa0b5;
  transform: rotate(45deg);
}

.sk-places {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.sk-places span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f4f8fb;
  color: #5a6b7a;
  font-size: 12px;
  font-weight: 700;
}

.tree-board {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: 100%;
  padding: 4px 0 8px;
}

.tree-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tree-groups {
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}

.tree-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tree-label {
  padding: 4px 8px;
  border-radius: 8px;
  background: #e7f2fc;
  color: #0856a8;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.tree-card {
  width: 148px;
  padding: 6px 8px;
  border: 1px solid #d5e2ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(11, 107, 203, 0.06);
}

.tree-card.editing {
  width: 168px;
}

.tree-side {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.tree-round,
.tree-meta {
  color: #0b6bcb;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.tree-edit {
  min-height: 22px;
  margin-top: 4px;
  padding: 0 6px;
  font-size: 11px;
}

.tree-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.tree-actions .btn,
.tree-actions .btn-ghost {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.tree-card input,
.tree-card select {
  width: 100%;
  margin-top: 4px;
}

.tree-join {
  position: relative;
  width: 36px;
  align-self: stretch;
}

.tree-join i {
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 8px;
  right: 14px;
  border-top: 2px solid #7d8fa3;
  border-bottom: 2px solid #7d8fa3;
  border-left: 2px solid #7d8fa3;
  border-radius: 8px 0 0 8px;
}

.tree-join i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 14px;
  height: 2px;
  background: #7d8fa3;
}

.tree-note {
  margin-top: 6px;
}

.schedule-back {
  margin: 2px 0 28px;
}

.schedule-diagram .bracket-panel {
  min-height: 0;
}

.stage-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stage-btn {
  min-height: 72px;
  border: 2px solid var(--brand);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.stage-btn.on {
  background: #eef4ff;
  color: var(--brand);
}

.bracket-panel {
  min-height: 420px;
  overflow-x: auto;
}

.bracket-panel.robin {
  min-height: 0;
  overflow: visible;
}

.robin-board {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px 22px;
  width: 100%;
  padding: 4px 0;
}

.robin-col {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.robin-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.robin-card {
  width: 176px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #d5e2ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(11, 107, 203, 0.06);
}

.robin-card.editing {
  flex-direction: column;
  align-items: stretch;
}

.robin-names {
  min-width: 0;
}

.robin-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}

.robin-team {
  font-weight: 800;
  line-height: 1.3;
  font-size: 14px;
  white-space: nowrap;
}

.robin-team + .robin-team {
  margin-top: 2px;
}

.robin-meta {
  color: #0b6bcb;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.robin-edit-btn {
  min-height: 26px;
  padding: 0 8px;
  font-size: 12px;
}

.schedule-people {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.schedule-add {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.schedule-add select {
  flex: 1;
  min-width: 0;
}

.robin-edit input,
.robin-edit select {
  width: 100%;
  margin-top: 6px;
}

.robin-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.robin-edit-actions .btn,
.robin-edit-actions .btn-ghost {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.robin-brace {
  width: 10px;
  flex: 0 0 10px;
  align-self: stretch;
  margin: 16px 0 16px 4px;
  border-top: 2px solid #7d8fa3;
  border-bottom: 2px solid #7d8fa3;
  border-right: 2px solid #7d8fa3;
  border-radius: 0 8px 8px 0;
  position: relative;
}

.robin-brace::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 8px;
  height: 2px;
  background: #7d8fa3;
}

.robin-label {
  margin-left: 8px;
  min-width: 52px;
  padding: 8px 8px;
  border-radius: 8px;
  background: #e7f2fc;
  color: #0856a8;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

.hz-title {
  margin-bottom: 8px;
  color: var(--brand-deep);
  font-weight: 800;
}

.hz-board {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 720px;
  padding: 8px 0 12px;
}

.hz-half {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hz-labels {
  display: flex;
  justify-content: space-between;
  color: #0b6bcb;
  font-size: 13px;
  font-weight: 700;
  padding: 0 8px;
}

.hz-branch {
  display: flex;
  align-items: center;
}

.hz-kids {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 8px;
}

.hz-names {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hz-team,
.hz-winner {
  display: inline-block;
  min-width: 64px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f3f7fb;
  color: #0f2438;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.hz-team.pending,
.hz-winner.pending {
  background: #f4f6f8;
  color: #8b95a1;
  font-weight: 600;
}

.hz-winner {
  background: #e7f2fc;
  color: #0856a8;
  font-weight: 800;
}

.hz-join {
  display: flex;
  align-items: center;
  align-self: stretch;
}

.hz-bar {
  width: 14px;
  height: 50%;
  box-sizing: border-box;
}

.hz-join.left .hz-bar {
  border-top: 2px solid #7d8fa3;
  border-bottom: 2px solid #7d8fa3;
  border-right: 2px solid #7d8fa3;
  border-radius: 0 8px 8px 0;
}

.hz-join.right .hz-bar {
  border-top: 2px solid #7d8fa3;
  border-bottom: 2px solid #7d8fa3;
  border-left: 2px solid #7d8fa3;
  border-radius: 8px 0 0 8px;
}

.hz-stem,
.hz-link {
  width: 14px;
  height: 2px;
  background: #7d8fa3;
}

.hz-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 72px;
}

.hz-result.on .hz-winner,
.hz-final.on {
  box-shadow: 0 0 0 2px rgba(11, 107, 203, 0.28);
}

.hz-score,
.hz-round {
  color: #8b95a1;
  font-size: 11px;
  line-height: 1.2;
}

.hz-score { color: #0b6bcb; font-weight: 700; }

.hz-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8edf2;
  color: #8b95a1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hz-final {
  background: #e23d4a;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 8px;
}

.group-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
}

.bracket-caption {
  margin-top: 8px;
  text-align: center;
  color: #243044;
  font-weight: 800;
}

.bracket-col { min-width: 140px; }

.col-name {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bracket-match {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
  background: #f7fbfd;
}

.draw-note { margin-bottom: 8px; }

.log-box { margin-top: 8px; }

.people-board {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.people-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.people-nav .stage-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.people-nav small { color: var(--muted); font-weight: 700; }

.people-pane { display: flex; flex-direction: column; min-height: 0; }

.people-scroll {
  height: min(640px, calc(100vh - 250px));
  overflow-y: auto;
  margin-top: 8px;
  scrollbar-width: none;
}

.people-scroll::-webkit-scrollbar { display: none; }

.people-card,
.people-person {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-top: 12px;
  background: #fff;
}

.people-card {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(15, 36, 56, 0.04);
}

.people-card > .head {
  flex: none;
  align-items: center;
  gap: 12px;
  padding-right: 8px;
}

.people-card > .head .work-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-card > .head .muted { flex: none; white-space: nowrap; }

.people-body { margin-top: 4px; }

.people-foot {
  display: flex;
  gap: 8px;
  flex: none;
  margin-top: 8px;
}

.people-foot .btn,
.people-foot .btn-ghost {
  flex: 1;
  min-height: 36px;
}

.people-card .people-person {
  margin: 0;
  padding: 0 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid #e7eef5;
}

.people-card .people-person:last-child { border-bottom: 0; }

.people-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}

.people-line .work-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.people-line .muted { white-space: nowrap; }

.people-line .pill { justify-self: end; }

.people-line .text-act { justify-self: end; min-width: 36px; text-align: right; }

.people-facts {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.people-fact {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.people-fact > span { color: var(--muted); font-weight: 700; }

.people-fact strong { color: var(--ink); font-weight: 700; word-break: break-all; }

.people-fact-acts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.preview-pill { cursor: pointer; border: 0; font: inherit; }

.people-preview-box {
  min-height: 180px;
  margin: 12px 0;
  padding: 20px;
  border-radius: 12px;
  background: #f4f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.people-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.people-roster span {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.people-roster .empty {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.people-back { color: var(--warn); font-weight: 700; margin-top: 6px; }

.check-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 8px;
}

.people-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
  margin-top: 8px;
}

.people-form .span { grid-column: 1 / -1; }

.people-goalie {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-weight: 800;
}

.people-goalie input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.record-board {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.record-scroll {
  max-height: 440px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.record-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.record-search input { margin: 0; }

.record-search .btn { min-height: 42px; }

.record-item {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}

.record-item .work-title { grid-column: 2; }
.record-item .work-time { grid-row: 1 / span 2; align-self: center; }
.record-item .muted { grid-column: 2; }
.record-item-score {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--brand-deep);
  font-weight: 800;
}

.record-item.on {
  border-color: var(--brand);
  background: #eef4ff;
}

.record-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.record-score span { font-size: 22px; font-weight: 800; }
.record-score span:last-child { text-align: right; }
.record-score strong { font-size: 36px; color: var(--brand-deep); }

.record-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 10px 0;
  font-weight: 800;
  color: var(--brand);
}

.record-sheet .title { margin-top: 12px; }

.age-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.age-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 36px;
  margin: 0;
  padding: 0 4px 0 12px;
  border: 0;
  border-radius: 999px;
  background: #fff4e8;
  color: var(--warn);
  font-weight: 800;
  cursor: pointer;
}

.age-mark span:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b6bcb 0%, #14d4c8 100%);
  color: #fff;
}

.age-mark.done {
  background: #e7f6f1;
  color: #0f6b4c;
}

.age-mark.wait {
  background: #eef2f5;
  color: var(--muted);
  cursor: not-allowed;
}

.age-mark.wait span:last-child {
  background: #d5dee6;
  color: #5a6b7a;
}

.age-mark.done span:last-child {
  background: #fff;
  color: var(--brand);
  box-shadow: inset 0 0 0 2px var(--brand);
}

.age-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.age-team {
  padding: 6px 10px;
  border-radius: 10px;
  background: #f0f6fb;
  font-weight: 700;
}

.rule-line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px 12px;
  margin-top: 12px;
}

.rule-line span { color: var(--muted); }

.scheme-picks,
.scheme-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.scheme-pick {
  min-height: 36px;
  padding: 6px 14px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.scheme-plus { min-width: 42px; font-size: 22px; line-height: 1; }

.team-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.team-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f4f8fb;
}

.team-flag.on { color: #0f6b4c; font-weight: 800; }

.dot-on {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12a36a;
  display: inline-block;
  flex-shrink: 0;
}

.draw-assign { margin-top: 14px; }

.slot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.slot-row input,
.slot-row select { width: auto; min-width: 120px; }

.scheme-pick.on {
  background: #eef4ff;
  color: var(--brand);
}

.scheme-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 10px;
}

.scheme-field {
  margin: 0;
}

.scheme-field span {
  display: block;
  margin-bottom: 4px;
}

.scheme-field .hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.scheme-fields input,
.scheme-fields select,
.draft-line select {
  min-width: 0;
}

.venue-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.venue-row input { flex: 1; min-width: 0; }

.draft-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.draft-line input,
.draft-line select {
  min-width: 140px;
  width: auto;
  flex: 1;
}

.draft-list { margin-top: 12px; }

.draft-line {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .scheme-fields, .rule-line { grid-template-columns: 1fr; }
  .desk, .desk-3, .draw-layout, .time-layout, .time-desk, .time-top, .console-top, .roster-split, .work-board, .now-head, .sched-board, .schedule-view, .people-board, .record-board { grid-template-columns: 1fr; }
  .bj-time, .now-time { text-align: left; }
  .score-card { position: static; }
  .score { font-size: 40px; }
}

.desk-board.skin-neon {
  background: #071833;
  color: #f4fbff;
  box-shadow: inset 0 0 0 2px #37e0ff, 0 0 28px rgba(55, 224, 255, 0.35);
}
.desk-board.skin-neon .desk-banner,
.desk-board.skin-neon .desk-meta,
.desk-board.skin-neon .desk-scoreline,
.desk-board.skin-neon .desk-foot { background: transparent; }
.desk-board.skin-neon .desk-banner h2,
.desk-board.skin-neon .desk-banner p,
.desk-board.skin-neon .desk-en,
.desk-board.skin-neon .desk-zh,
.desk-board.skin-neon .desk-nm,
.desk-board.skin-neon .desk-clock,
.desk-board.skin-neon .desk-score,
.desk-board.skin-neon .desk-period:not(.net-on),
.desk-board.skin-neon .desk-period-scores,
.desk-board.skin-neon .desk-stat strong { color: #f4fbff; }
.desk-board.skin-neon .desk-meta .desk-zh,
.desk-board.skin-neon .desk-stat .desk-en,
.desk-board.skin-neon .desk-stat .desk-zh { color: #9ae9ff; }
.desk-board.skin-neon .desk-clock,
.desk-board.skin-neon .desk-score { text-shadow: 0 0 16px rgba(55, 224, 255, 0.85); }
.desk-board.skin-neon .desk-meta > div:first-child,
.desk-board.skin-neon .desk-meta > div:last-child {
  margin: 1.1cqh 1.2cqh;
  border: 1px solid #37e0ff;
  border-radius: 12px;
  box-shadow: 0 0 14px rgba(55, 224, 255, 0.45);
}
.desk-board.skin-neon .desk-crest { box-shadow: 0 0 12px rgba(55, 224, 255, 0.7); }
.desk-board.skin-neon .desk-stat-pair {
  background: rgba(8, 40, 78, 0.72);
  box-shadow: inset 0 0 0 1px rgba(55, 224, 255, 0.55);
}

.desk-board.skin-gold {
  background: #101114;
  color: #f6edd8;
  box-shadow: inset 0 0 0 1px #c6a15b;
}
.desk-board.skin-gold .desk-banner { background: linear-gradient(180deg, #2a2418 0%, #101114 100%); }
.desk-board.skin-gold .desk-meta,
.desk-board.skin-gold .desk-scoreline,
.desk-board.skin-gold .desk-foot { background: #101114; }
.desk-board.skin-gold .desk-banner h2,
.desk-board.skin-gold .desk-clock,
.desk-board.skin-gold .desk-score,
.desk-board.skin-gold .desk-period:not(.net-on),
.desk-board.skin-gold .desk-period-scores,
.desk-board.skin-gold .desk-stat strong { color: #e4c98a; }
.desk-board.skin-gold .desk-banner p,
.desk-board.skin-gold .desk-en,
.desk-board.skin-gold .desk-nm { color: #f6edd8; }
.desk-board.skin-gold .desk-meta .desk-zh,
.desk-board.skin-gold .desk-stat .desk-en,
.desk-board.skin-gold .desk-stat .desk-zh { color: #b9a27a; }
.desk-board.skin-gold .desk-meta > div:first-child,
.desk-board.skin-gold .desk-meta > div:last-child {
  margin: 1.1cqh 1.2cqh;
  border: 1px solid #c6a15b;
  border-radius: 8px;
}
.desk-board.skin-gold .desk-crest { background: #c6a15b; color: #1a1408; }
.desk-board.skin-gold .desk-crest.away { background: #f4f1ea; color: #1a1408; }
.desk-board.skin-gold .desk-stat-pair {
  background: #1a1b1f;
  box-shadow: inset 0 0 0 1px #c6a15b;
}

.desk-board.skin-arena {
  background: repeating-linear-gradient(135deg, #1b1e25 0 8px, #171a20 8px 16px);
  color: #f7f8fb;
}
.desk-board.skin-arena .desk-banner { background: #15181e; }
.desk-board.skin-arena .desk-meta,
.desk-board.skin-arena .desk-scoreline,
.desk-board.skin-arena .desk-foot { background: transparent; }
.desk-board.skin-arena .desk-banner h2,
.desk-board.skin-arena .desk-banner p,
.desk-board.skin-arena .desk-clock,
.desk-board.skin-arena .desk-period:not(.net-on),
.desk-board.skin-arena .desk-period-scores,
.desk-board.skin-arena .desk-nm { color: #f7f8fb; }
.desk-board.skin-arena .desk-score { color: #f7f8fb; }
.desk-board.skin-arena .desk-scoreline .desk-score-col:nth-child(7) .desk-score { color: #e23d3d; }
.desk-board.skin-arena .desk-stat strong { color: #f7f8fb; }
.desk-board.skin-arena .desk-meta > div:first-child,
.desk-board.skin-arena .desk-meta > div:last-child {
  margin: 1.1cqh 1.2cqh;
  border-radius: 10px;
  padding: 0.4cqh 0.2cqh;
}
.desk-board.skin-arena .desk-meta > div:first-child { background: #3ec4ef; }
.desk-board.skin-arena .desk-meta > div:first-child .desk-en,
.desk-board.skin-arena .desk-meta > div:first-child .desk-zh,
.desk-board.skin-arena .desk-meta > div:first-child .desk-nm { color: #062033; }
.desk-board.skin-arena .desk-meta > div:last-child { background: #e23d3d; }
.desk-board.skin-arena .desk-meta > div:last-child .desk-en,
.desk-board.skin-arena .desk-meta > div:last-child .desk-zh,
.desk-board.skin-arena .desk-meta > div:last-child .desk-nm { color: #fff; }
.desk-board.skin-arena .desk-stat .desk-en,
.desk-board.skin-arena .desk-stat .desk-zh { color: #c5cad3; }
.desk-board.skin-arena .desk-stat-pair { background: rgba(12, 14, 18, 0.55); }
.desk-board.skin-arena .desk-crest { background: #3ec4ef; color: #062033; }
.desk-board.skin-arena .desk-crest.away { background: #e23d3d; color: #fff; }
