/* Public scoreboard */
.board-page,.login-page,.workspace-page {
  --ink:#182f31; --muted:#586b70; --line:#dce4e3; --accent:#14624e;
  background:#f6f8f7; color:var(--ink);
}
.board-limit { width:calc(100% - 72px); max-width:1200px; margin-inline:auto; }
.board-mast { border-bottom:1px solid var(--line); background:white; }
.board-mast .board-limit { height:65px; display:flex; align-items:center; justify-content:space-between; }
.wordmark { display:inline-flex; align-items:center; gap:10px; font-size:21px; font-weight:750; }
.wordmark .brand-mark,.workspace-page .brand-mark { background:#194e40; color:#d8f87e; width:35px; height:35px; border-radius:7px; }
.wordmark .brand-mark .icon,.workspace-page .brand-mark .icon { width:24px; height:24px; }
.account-link { display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; padding:7px 1px; }
.account-link:hover { color:var(--accent); text-decoration:underline; text-underline-offset:4px; }
.account-link .icon { width:16px; height:16px; }
.board-main { padding:30px 0 56px; }
.board-titlebar,.board-tools,.period-strip,.board-tabs,.as-of,.auto-control { display:flex; align-items:center; }
.board-titlebar,.period-strip { justify-content:space-between; gap:15px; }
.board-titlebar { margin-bottom:14px; }
.board-titlebar h1 { font-size:32px; line-height:1.4; }
.board-tools { gap:17px; }
.auto-control { gap:7px; font-size:13px; font-weight:550; cursor:pointer; position:relative; }
.auto-control small { font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.auto-control input { position:absolute; opacity:0; width:33px; height:22px; margin:0; }
.switch-track { pointer-events:none; width:32px; height:19px; border-radius:20px; background:#839390; padding:3px; transition:background .16s; }
.switch-track::after { content:''; display:block; border-radius:50%; width:13px; height:13px; background:white; transition:transform .16s; }
.auto-control input:checked + .switch-track { background:#187458; }
.auto-control input:checked + .switch-track::after { transform:translateX(13px); }
.auto-control input:focus-visible + .switch-track { outline:3px solid #287e73; outline-offset:3px; }
.refresh-button { min-height:35px; border-radius:6px; }
.refresh-button[aria-busy=true] svg { animation:board-spin .85s linear infinite; }
@keyframes board-spin { to { transform:rotate(360deg); } }
.period-strip { border-bottom:1px solid var(--line); margin-bottom:19px; }
.board-tabs { gap:24px; }
.board-tabs a { font-size:14px; padding:10px 1px 11px; color:#60716d; border-bottom:3px solid transparent; }
.board-tabs a:hover { color:var(--accent); }
.board-tabs a[aria-current=page] { border-bottom-color:var(--accent); color:var(--accent); font-weight:700; }
.as-of { gap:6px; color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.board-main .range-form { margin:-3px 0 16px; }
.refresh-message:not(:empty),.connection-status:not([hidden]) { padding:9px 13px; background:#fff0df; color:#874719; margin-bottom:12px; }
.standings { display:grid; grid-template-columns:minmax(260px,1fr) minmax(0,1.5fr); color:#fff; background:#174c40; border-radius:8px; overflow:hidden; }
.team-score { padding:29px 0 28px 34px; display:flex; flex-direction:column; justify-content:center; }
.score-label { display:flex; align-items:center; gap:9px; color:#ddf0e9; font-weight:600; }
.score-label .icon { color:#c3ed85; }
.team-number { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; line-height:1; margin:12px 0 19px; }
.team-number b { color:#e6ffac; font-size:57px; font-weight:720; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; max-width:100%; }
.team-number span { font-size:15px; color:#d6e6de; }
.team-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; color:#c3dcd2; font-size:12px; }
.team-meta span { display:inline-flex; gap:6px; align-items:center; }
.team-meta .icon { width:15px; height:15px; }
.podium { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; align-items:end; padding:19px 24px 0; isolation:isolate; position:relative; }
.podium::before { content:''; z-index:-1; position:absolute; inset:0; background-image:radial-gradient(#a3d5ae38 .8px,transparent 1px); background-size:11px 11px; mask-image:linear-gradient(100deg,transparent,#000 48%); }
.podium-lane { --metal:#d4e3e4; --face:#37635d; --pedestal:#437367; --edge:#92b2a9; min-width:0; text-align:center; }
.medal-1 { --metal:#ffdc85; --face:#675932; --pedestal:#86703f; --edge:#d4b876; }
.medal-3 { --metal:#f2c19b; --face:#694f40; --pedestal:#755b4a; --edge:#bc977d; }
.podium-person { display:flex; flex-direction:column; align-items:center; min-width:0; padding-bottom:9px; }
.podium-face { color:var(--metal); background:var(--face); border:2px solid var(--metal); display:grid; place-items:center; width:46px; height:46px; border-radius:50%; margin-bottom:5px; }
.podium-face .avatar { width:100%; height:100%; background:transparent; color:var(--metal); font-size:18px; font-weight:650; }
.medal-1 .podium-face { width:54px; height:54px; }
.podium-person strong { display:block; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:15px; }
.podium-person small { color:#d8e9df; font-size:12px; }
.podium-base { height:42px; color:var(--metal); display:flex; align-items:center; justify-content:center; background:repeating-linear-gradient(105deg,transparent 0 12px,#ffffff0b 12px 13px),var(--pedestal); border-top:3px solid var(--edge); border-radius:4px 4px 0 0; }
.medal-1 .podium-base { height:60px; }.medal-3 .podium-base { height:32px; }
.podium-base span { font:italic 700 24px/1 Arial,sans-serif; }
.rank-sheet { margin-top:22px; background:white; border-block:1px solid var(--line); }
.rank-sheet .section-heading { padding:16px 22px; }
.rank-sheet th,.rank-sheet td { padding-inline:22px; }
.ranking th:nth-child(1) { width:13%; }.ranking .bar-col { width:30%; }.ranking .num { width:18%; }
.ranking .score { font-size:17px; }
.ranking .place { min-width:42px; font-variant-numeric:tabular-nums; color:#5d6e70; font-weight:650; }
.ranking .place-1 { color:#946411; }.ranking .place-2 { color:#4e6978; }.ranking .place-3 { color:#9c5c3b; }
.ranking .avatar { width:35px; height:35px; }
.ranking progress { height:6px; max-width:200px; }
.ranking progress::-webkit-progress-value { background:#73aa90; }
.ranking tbody tr:hover,.workspace-page tbody tr:hover { background:#f8faf8; }
.board-page .empty { padding:34px 15px; }

/* Management workspace */
.workspace-page .rail { background:#fff; color:var(--ink); border-right:1px solid var(--line); }
.workspace-page .brand { min-height:82px; padding-inline:22px; gap:10px; }
.workspace-page .brand small,.workspace-page .rail-foot small { color:#647874; }
.workspace-page .nav-label { color:#657874; margin-top:15px; }
.workspace-page .nav-item { min-height:43px; padding:10px 13px; border-radius:6px; color:#435852; margin-bottom:5px; }
.workspace-page .nav-item:hover { background:#f0f5f1; }
.workspace-page .nav-item.active { background:#e4f2e8; color:#1d634a; box-shadow:inset 3px 0 #32946d; }
.workspace-page .rail-foot { border-top-color:var(--line); color:#223e35; }
.workspace-page .rail-foot-icon { color:#235742; background:#eaf1e7; }
.workspace-page .topbar { height:60px; }
.workspace-page main { max-width:1450px; padding:30px 34px 50px; }
.workspace-page main:focus,.login-page main:focus { outline:0; }
.workspace-page main[aria-busy=true] { cursor:progress; }
.workspace-page .pagehead { margin-bottom:21px; }
.workspace-page h1,.login-page h1 { font-size:27px; }
.workspace-page .button,.login-page .button { border-radius:6px; min-height:38px; }
.workspace-page .table-section { border-color:var(--line); }
.workspace-page .section-heading { min-height:58px; padding-inline:20px; }
.workspace-page th { background:#edf2ef; color:#53675f; font-size:12px; }
.workspace-page td,.workspace-page th { padding-inline:20px; }
.workspace-page td { padding-block:12px; }
.workspace-page .status { padding:4px 8px; border-radius:4px; background:#f0f2f1; color:#566660; }
.workspace-page .status.filled { background:#e7f3eb; color:#236744; }
.workspace-page input.count-input { width:94px; }
.workspace-page .tool,.login-page .tool { border-color:#cfdcd4; }
.workspace-page .tool-title,.login-page .tool-title { background:#f9fcfa; }
.workspace-page .form-actions,.login-page .form-actions { background:white; }
.entry-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-block:1px solid var(--line); background:white; padding:19px 0; }
.entry-summary>div { padding:0 22px; min-width:0; }
.entry-summary>div+div { border-left:1px solid var(--line); }
.summary-label { display:flex; align-items:center; gap:7px; color:#526760; font-size:13px; }
.summary-label .icon { color:#387957; width:16px; height:16px; }
.entry-summary>div:nth-child(2) .icon { color:#456eb1; }.entry-summary>div:nth-child(3) .icon { color:#946f37; }
.entry-summary p { color:var(--muted); font-size:12px; margin-top:5px; }
.entry-summary b { color:var(--ink); font-size:25px; line-height:1.3; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.workspace-page .date-bar { margin:21px 0 14px; }
.workspace-page .connection-status { margin:12px 24px; }
.login-page main { width:calc(100% - 36px); max-width:440px; padding:50px 0; }
@media(max-width:900px) {
  .standings { grid-template-columns:minmax(210px,.85fr) minmax(0,1.35fr); }
  .team-score { padding:20px; }.team-number b { font-size:43px; }
  .podium { padding-inline:12px; }
}
@media(max-width:650px) {
  .board-limit { width:calc(100% - 30px); }.board-mast .board-limit { height:53px; }
  .board-main { padding:20px 0 32px; }
  .board-titlebar { align-items:flex-start; flex-direction:column; gap:11px; margin-bottom:8px; }
  .board-titlebar h1 { font-size:26px; }.board-tools { width:100%; justify-content:space-between; }
  .board-tabs { gap:15px; }.board-tabs a { font-size:13px; }.period-strip { gap:5px; margin-bottom:12px; }
  .as-of { font-size:10px; gap:3px; }.standings { grid-template-columns:1fr; }
  .team-score { padding:16px 17px 6px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:5px 10px; }
  .team-number { margin:0; gap:4px; }.team-number b { font-size:31px; }.team-number span { font-size:12px; }
  .team-meta { grid-column:1/-1; font-size:11px; }.podium { padding:12px 12px 0; }
  .podium-face { width:34px; height:34px; }.medal-1 .podium-face { width:40px; height:40px; }
  .podium-person { padding-bottom:5px; }.podium-person strong { font-size:13px; }
  .podium-base { height:28px; }.medal-1 .podium-base { height:39px; }.medal-3 .podium-base { height:22px; }
  .podium-base span { font-size:17px; }.rank-sheet { margin-top:16px; }
  .rank-sheet .section-heading,.rank-sheet td,.rank-sheet th { padding-inline:11px; }
  .rank-sheet .section-heading small { font-size:10px; }.ranking .num { width:26%; }.ranking .score { font-size:15px; }
  .workspace-page main { padding:22px 14px 32px; }.workspace-page .topbar { height:52px; }
  .workspace-page .topbar .account-link { font-size:12px; }
  .workspace-page h1 { font-size:23px; }.workspace-page th,.workspace-page td { padding-inline:6px; }
  .workspace-page .section-heading { padding-inline:10px; }
  .workspace-page input.count-input { width:62px; }
  .entry-summary { padding:14px 0; }.entry-summary>div { padding-inline:9px; }
  .summary-label { font-size:12px; gap:4px; }.entry-summary b { font-size:21px; }
  .workspace-page .date-bar { margin:16px 0 10px; }
}
@media(prefers-reduced-motion:reduce) {
  .refresh-button[aria-busy=true] svg { animation:none; }
  .switch-track,.switch-track::after { transition:none; }
}
