/* Yoga Scoring — styles */
:root {
  --bg: #f7f4ee; --surface: #ffffff; --surface-2: #f1ede5; --ink: #1d2a26; --muted: #66736e; --line: #e3ddd2;
  --brand: #0f5e4d; --brand-2: #137a63; --brand-ink: #ffffff; --brand-soft: #e1efe9;
  --accent: #d9771f; --accent-soft: #fbead9;
  --ok: #1d7a4f; --warn: #a86500; --err: #b42318; --live: #d92d20;
  --gold: #c9971c; --silver: #8a949c; --bronze: #a8643a;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,30,25,.05), 0 4px 16px rgba(20,30,25,.05);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111715; --surface: #18201d; --surface-2: #1f2925; --ink: #e8eeeb; --muted: #94a39d; --line: #2a3632;
    --brand: #3fb08f; --brand-2: #56c3a2; --brand-ink: #0b1210; --brand-soft: #1b3029; --accent: #f0a050; --accent-soft: #3a2a1a;
    --shadow: 0 1px 2px rgba(0,0,0,.3);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h2 { font-size: 1.1rem; font-weight: 650; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 5px; font-size: .9em; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .strong { font-weight: 600; }
.center { text-align: center; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.grow { flex: 1; } .mt { margin-top: 1.4rem; } [hidden] { display: none !important; }
.inline { display: inline; margin: 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 1.15rem; font-family: var(--display); }
.brand:hover { text-decoration: none; }
.brand b { color: var(--brand); font-weight: 700; }
.brand-mark { color: var(--brand); display: grid; place-items: center; }
.nav { display: flex; align-items: center; gap: 14px; margin-left: auto; flex-wrap: wrap; font-size: .92rem; }
.nav a { color: var(--ink); }
.nav a.btn { color: var(--brand-ink); }
.nav a.btn-ghost { color: var(--brand); }
.who { color: var(--muted); } .who small { background: var(--surface-2); padding: 1px 7px; border-radius: 99px; margin-left: 4px; text-transform: capitalize; }
@media (max-width: 640px) {
  .topbar { position: static; }
  .topbar-in { gap: 6px 12px; padding: 8px 14px; }
  .nav { gap: 6px 12px; font-size: .84rem; margin-left: 0; width: 100%; }
  .who small { display: none; }
}
button.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; }
button.link:hover { color: var(--err); }

/* ---------- Layout ---------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 24px 16px 60px; }
.wrap.wide { max-width: 1280px; }
.page-head, .board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.narrow { max-width: 460px; margin: 30px auto; }
.card.empty { text-align: center; color: var(--muted); padding: 34px 20px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: var(--brand-ink); border: 1px solid var(--brand);
  padding: 9px 16px; border-radius: 10px; font: 600 .92rem var(--font); cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--brand-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-current { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); opacity: 1 !important; }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn-sm { padding: 5px 11px; font-size: .84rem; border-radius: 8px; }
.btn-block { width: 100%; }
.icon-btn { background: none; border: 1px solid transparent; color: var(--muted); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: .9rem; }
.icon-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.icon-btn:disabled { opacity: .3; }
.form { display: grid; gap: 12px; }
.form h3 { margin: 8px 0 0; font-size: .95rem; color: var(--muted); }
label { display: grid; gap: 5px; font-size: .88rem; font-weight: 500; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
textarea { resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
.span2 { grid-column: span 2; } .end { display: flex; justify-content: flex-end; }
@media (max-width: 760px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid2, .grid4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 140px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.check input { width: auto; }
.checkgrid { display: grid; gap: 6px; max-height: 320px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }
.checkgrid .check { padding: 6px 8px; border-radius: 8px; } .checkgrid .check:hover { background: var(--surface-2); }

/* ---------- Flash & toasts ---------- */
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; border: 1px solid; font-size: .92rem; }
.flash-ok { background: #e8f5ee; border-color: #b9e0ca; color: #135c38; }
.flash-err { background: #fdecea; border-color: #f5c2bd; color: #8c1d13; }
.flash-warn { background: #fdf3e1; border-color: #f1d49e; color: #7a4b00; }
@media (prefers-color-scheme: dark) { .flash-ok, .flash-err, .flash-warn { background: var(--surface-2); border-color: var(--line); color: var(--ink); } }
.warn-box { background: var(--accent-soft); padding: 10px 12px; border-radius: 10px; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 99; }
.toast { background: #1d2a26; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .9rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: opacity .4s, transform .4s; }
.toast-err { background: var(--err); } .toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- Badges & tags ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 .74rem var(--font); text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 99px; vertical-align: middle; }
.badge-draft { background: var(--surface-2); color: var(--muted); }
.badge-live { background: #fde9e7; color: var(--live); }
.badge-completed { background: var(--brand-soft); color: var(--brand); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.tag { display: inline-block; font-size: .75rem; background: var(--surface-2); color: var(--muted); padding: 2px 8px; border-radius: 6px; text-transform: capitalize; }
.tag-strong { background: var(--brand-soft); color: var(--brand); font-weight: 700; text-transform: none; }
.tag-admin { background: var(--accent-soft); color: var(--accent); }
.tag-judge { background: var(--brand-soft); color: var(--brand); }

/* ---------- Tables ---------- */
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 16px; }
.table-card.scroll { overflow-x: auto; }
.table-tools { padding: 12px; border-bottom: 1px solid var(--line); }
.table-tools input { max-width: 300px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.dim td { opacity: .55; }
.tbl th.num { text-align: right; }
.edit-row td { background: var(--surface-2); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.tabs .count { background: var(--surface-2); border-radius: 99px; padding: 0 7px; font-size: .78rem; margin-left: 3px; }

/* ---------- Admin bits ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.checklist li.ok { color: var(--ok); } .checklist li.todo { color: var(--muted); }
.status-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rowlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.rowlist li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); }
.rowlist.numbered { counter-reset: r; } .rowlist.numbered li::before { counter-increment: r; content: counter(r); width: 22px; text-align: center; color: var(--muted); font-weight: 600; }
.inline-edit { display: flex; gap: 6px; flex: 1; margin: 0; } .inline-edit input { padding: 6px 9px; background: var(--surface); }
.danger-zone summary { cursor: pointer; color: var(--err); font-weight: 600; }
.danger-zone .inline-form input { max-width: 160px; }
.cred-card { border-color: var(--brand); }
.cred { display: grid; gap: 6px; background: var(--surface-2); padding: 12px; border-radius: 10px; margin-bottom: 12px; }
.cred div { display: flex; gap: 12px; } .cred span { width: 90px; color: var(--muted); } .cred b { font-family: ui-monospace, monospace; word-break: break-all; }

/* ---------- Event cards ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 26px; }
.event-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink); display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.event-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--brand); }
.event-card h3 { font-family: var(--display); font-size: 1.25rem; margin: 6px 0 0; }
.ec-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ec-cta { margin-top: auto; padding-top: 8px; color: var(--brand); font-weight: 600; font-size: .9rem; }
.muted-card { opacity: .75; }
.live-card { border-left: 4px solid var(--live); }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 30px; max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.hero h1 em { color: var(--brand); font-style: italic; }
.lead { font-size: 1.08rem; color: var(--muted); }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 10px 0 12px; }

/* ---------- Judge ---------- */
.picker { display: inline-grid; margin: 0 12px 14px 0; min-width: 220px; }
.round-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.round-tabs a { flex: 0 0 auto; display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); min-width: 140px; }
.round-tabs a:hover { text-decoration: none; border-color: var(--brand); }
.round-tabs a.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.round-tabs a.done:not(.on) .rt-prog { color: var(--ok); }
.rt-name { font-weight: 600; font-size: .9rem; } .rt-prog { font-size: .78rem; opacity: .8; }
.score-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.score-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.score-row { display: grid; grid-template-columns: 64px 1fr 110px auto 120px; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; transition: background .3s, border-color .3s; }
.score-row .chest { font-weight: 700; font-size: 1.05rem; color: var(--brand); text-align: center; background: var(--brand-soft); border-radius: 8px; padding: 6px 0; }
.score-row .pname { font-weight: 600; display: grid; } .score-row .pname small { font-weight: 400; color: var(--muted); }
.score-input { font-size: 1.35rem; font-weight: 700; text-align: center; padding: 8px; font-variant-numeric: tabular-nums; }
.score-row .state { font-size: .82rem; color: var(--muted); }
.score-row.saved { border-color: #b9e0ca; background: rgba(29,122,79,.05); } .score-row.saved .state { color: var(--ok); }
.score-row.bad { border-color: var(--err); } .score-row.bad .state { color: var(--err); }
.score-row.locked { opacity: .7; } .score-row.saving { opacity: .7; }
.score-row.pulse { background: rgba(29,122,79,.15); }
@media (max-width: 640px) {
  .score-row { grid-template-columns: 52px 1fr 92px; row-gap: 6px; }
  .score-row .save-btn { grid-column: 2; justify-self: start; } .score-row .state { grid-column: 3; text-align: center; }
  .score-input { font-size: 1.25rem; }
}

/* ---------- Coordinator ---------- */
.toolbar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .picker { margin: 0; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--live); padding: 6px 4px; }
.live-pill.off { color: var(--muted); } .live-pill.off .dot { background: var(--muted); animation: none; }
.coord-tbl td.mark { font-weight: 600; font-size: 1.05rem; } .coord-tbl td.mark.empty { color: var(--line); }
.coord-tbl tr.row-screen td { background: var(--accent-soft); }
.st { font-size: .78rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.st-wait { background: var(--surface-2); color: var(--muted); }
.st-ready { background: #fdf3e1; color: var(--warn); }
.st-pub { background: var(--brand-soft); color: var(--brand); }
.st-screen { background: var(--accent); color: #fff; }

/* ---------- Public scoreboard ---------- */
.board-meta { display: grid; justify-items: end; gap: 4px; }
.now-on { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.now-label { display: inline-flex; gap: 6px; align-items: center; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.view-toggle { margin: -6px 0 12px; display: flex; justify-content: flex-end; font-size: .88rem; }
.score-tbl th, .score-tbl td { padding: 9px 10px; }
.score-tbl .round-h { text-align: center; border-left: 1px solid var(--line); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .82rem; }
.score-tbl .rmax { display: block; font-weight: 400; color: var(--muted); font-size: .7rem; }
.max-pill { font-size: .8rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 99px; }
.max-field { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--muted); }
.max-field input { width: 58px; padding: 6px; text-align: center; }
.tag-superadmin { background: var(--accent); color: #fff; }
.score-tbl .jh { font-size: .7rem; padding: 4px 8px; }
.score-tbl.with-marks td.mark:first-of-type, .score-tbl .jh:first-of-type { border-left: 1px solid var(--line); }
.score-tbl td.mark { color: var(--muted); font-size: .9rem; }
.score-tbl td.mark.empty, .score-tbl td.empty { color: var(--line); }
.score-tbl td.rt { font-weight: 650; }
.score-tbl.with-marks td.rt, .score-tbl.with-marks th.rt { background: rgba(15,94,77,.04); border-right: 1px solid var(--line); }
.score-tbl:not(.with-marks) td.rt { border-left: 1px solid var(--line); }
.score-tbl td.total { font-weight: 800; font-size: 1.1rem; color: var(--brand); }
.score-tbl th.total-h { color: var(--brand); }
.score-tbl .rank { font-weight: 800; font-size: 1.05rem; text-align: center; width: 54px; }
.score-tbl .rank.medal { color: #fff; }
.score-tbl .rank.m1 { background: var(--gold); } .score-tbl .rank.m2 { background: var(--silver); } .score-tbl .rank.m3 { background: var(--bronze); }
.score-tbl .sticky { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 170px; }
.score-tbl th.sticky { background: var(--surface-2); }
.score-tbl .pn { display: block; font-weight: 600; }
.flash-row td { animation: rowflash 2s ease; }
@keyframes rowflash { 0%, 30% { background: var(--accent-soft); } 100% { background: transparent; } }
.legend { margin-top: -6px; }

.site-foot { max-width: 1280px; margin: 0 auto; padding: 18px 16px 30px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); }
.site-foot a { color: var(--muted); } .site-foot a:hover { color: var(--brand); }
.login-card .center a { display: block; margin-top: 4px; }

/* ---------- Big screen ---------- */
.display-page { background: #0b1411; color: #f3efe6; overflow: hidden; }
.bare { padding: 0; }
.screen { height: 100vh; display: flex; flex-direction: column; padding: 2.2vh 3vw; background: radial-gradient(ellipse at top left, #164a3d 0%, #0b1411 55%); }
.scr-head { display: flex; align-items: center; gap: 2vw; font-size: 2.2vh; }
.scr-brand { font-family: var(--display); font-size: 3vh; } .scr-brand b { color: #f0a050; }
.scr-event { opacity: .7; flex: 1; text-align: right; }
.scr-fs { background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 8px; width: 4vh; height: 4vh; cursor: pointer; opacity: .5; }
.scr-body { flex: 1; display: grid; grid-template-columns: 1fr minmax(260px, 28vw); gap: 3vw; align-items: center; min-height: 0; }
.scr-main { display: grid; gap: 4vh; }
.scr-chest { display: inline-block; font-size: 2.6vh; font-weight: 700; color: #0b1411; background: #f0a050; border-radius: 999px; padding: .2em .9em; }
.scr-who h1 { font-family: var(--display); font-size: clamp(32px, 8vh, 110px); margin: 1.5vh 0 .5vh; line-height: 1.05; }
.scr-who p { font-size: 2.8vh; opacity: .75; margin: 0; }
.scr-round { margin-top: 1.5vh; font-size: 3vh; color: #8fe0c4; font-weight: 600; }
.scr-max { color: #f3efe6; opacity: .55; font-weight: 400; font-size: 2.2vh; }
.scr-marks { display: flex; gap: 1.6vw; flex-wrap: wrap; }
.mk { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 2vh; padding: 1.6vh 1.8vw; min-width: 11vh; text-align: center; }
.mk span, .tot span { display: block; font-size: 2vh; opacity: .65; text-transform: uppercase; letter-spacing: .1em; }
.mk b { font-size: 7vh; font-weight: 700; font-variant-numeric: tabular-nums; }
.scr-totals { display: flex; gap: 2vw; flex-wrap: wrap; }
.tot { padding: 1.6vh 2vw; border-radius: 2vh; background: rgba(255,255,255,.05); }
.tot b { font-size: 6vh; font-variant-numeric: tabular-nums; }
.tot.big { background: #f0a050; color: #0b1411; } .tot.big span { opacity: .8; } .tot.big b { font-size: 9vh; }
.enter .mk, .enter .tot { animation: pop .5s both; animation-delay: calc(var(--i) * .25s + .2s); }
.enter .scr-who { animation: rise .5s both; }
@keyframes pop { from { opacity: 0; transform: translateY(2vh) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(3vh); } to { opacity: 1; transform: none; } }
.scr-board { background: rgba(255,255,255,.05); border-radius: 2vh; padding: 2.4vh 1.6vw; align-self: stretch; overflow: hidden; }
.scr-board h2 { font-size: 2.2vh; text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-bottom: 1.6vh; }
.scr-board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1vh; }
.scr-board li { display: grid; grid-template-columns: 4vh 1fr auto; gap: 1vw; align-items: center; font-size: 2.6vh; padding: 1vh 1vw; border-radius: 1.2vh; }
.scr-board li.me { background: rgba(240,160,80,.22); }
.scr-board .r { font-weight: 800; color: #8fe0c4; } .scr-board .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .scr-board .t { font-weight: 700; font-variant-numeric: tabular-nums; }
.scr-idle { grid-column: 1 / -1; text-align: center; display: grid; justify-items: center; gap: 1vh; }
.scr-idle p { font-family: var(--display); font-size: 5vh; margin: 0; }
.scr-idle span { opacity: .6; font-size: 2.4vh; }
.scr-idle-mark { font-size: 12vh; color: #f0a050; opacity: .85; }
.scr-idle .scr-board { margin-top: 4vh; width: min(640px, 80vw); text-align: left; }
@media (max-aspect-ratio: 1/1) { .scr-body { grid-template-columns: 1fr; align-content: start; overflow: auto; } }
label.mini { display: grid; gap: 3px; font-size: .78rem; flex: 1 1 160px; }
label.mini input, label.mini select { width: 100%; }
.inline-form label.mini + .btn { align-self: end; }
.edit-row .inline-form { align-items: flex-end; }

/* ---------- How it works ---------- */
.how { margin: 10px 0 30px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.how-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.how-card h3 { font-family: var(--display); font-size: 1.15rem; margin: 6px 0 2px; }
.how-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.how-card .btn { align-self: flex-start; }
.how-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.ec-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.ec-caps { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 3px; font-size: .86rem; color: var(--muted); }
.ec-caps li::before { content: '✓ '; color: var(--ok); font-weight: 700; }
div.event-card:hover { transform: none; border-color: var(--line); }
.assign-box { flex: 1 1 100%; display: grid; gap: 6px; margin-top: 4px; }
.mini-label { font-size: .78rem; font-weight: 500; }
.assign-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.assign-list .check { font-size: .88rem; }
.assign-list .badge { font-size: .62rem; padding: 1px 6px; }
.assign-list input[type=checkbox] { flex: 0 0 auto; width: auto; margin: 0; }
.assign-list .check { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
