:root{--bg: #faf9fc;--surface: #ffffff;--text: #111014;--muted: #5f5b6b;--line: #e2dfe9;--accent: #8b5cf6;--accent-press: #7c3aed;--on-accent: #ffffff;--accent-ink: #6d28d9;--accent-soft: #efe9fe;--live: #157a3c;--live-soft: #e2f3e7;--warn: #8a4b00;--warn-soft: #fff1dc;--danger: #b3261e;--danger-soft: #fde9e7;--radius: 14px;--gutter: 16px;color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #111014;--surface: #1d1b23;--text: #ffffff;--muted: #aaa5b6;--line: #33303c;--accent-ink: #c4b1fd;--accent-soft: #2a2140;--live: #6fd897;--live-soft: #16301f;--warn: #ffb65c;--warn-soft: #33250f;--danger: #ff8a80;--danger-soft: #3a1714;color-scheme:dark}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font:17px/1.4 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;-webkit-tap-highlight-color:transparent}h1,h2,h3,p{margin:0}a{color:inherit}button,input,select{font:inherit;color:inherit}.page{max-width:640px;margin:0 auto;padding:calc(env(safe-area-inset-top) + 8px) var(--gutter) 32px;display:flex;flex-direction:column;gap:14px}.page.narrow{max-width:420px;padding-top:48px}.class-page{padding-bottom:calc(96px + env(safe-area-inset-bottom))}.muted{color:var(--muted)}.bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px}.logo{display:flex;align-items:center;gap:6px;margin-left:-8px}.logo img{display:block;height:44px;width:auto}.logo.large img{height:88px}.logo-tag{padding:3px 9px;border-radius:999px;background:var(--accent-soft);color:var(--accent-ink);font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.logo.large{flex-direction:column;align-items:flex-start;margin-bottom:8px}.logo.large .logo-tag{margin-left:20px}.back{display:inline-flex;align-items:center;min-height:44px;padding-right:12px;font-weight:600;text-decoration:none;color:var(--accent-ink)}.pill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;font-size:14px;font-weight:700;white-space:nowrap;background:var(--live-soft);color:var(--live)}.pill .dot{width:8px;height:8px;border-radius:50%;background:currentColor}.pill.sending{background:var(--warn-soft);color:var(--warn)}.pill.offline{background:var(--danger-soft);color:var(--danger)}.class-head h1{font-size:24px;line-height:1.2}.eyebrow,.label,.list-head{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.list-head{margin:10px 0 6px}.group{margin:10px 0 4px;font-size:15px}.button,button.primary,button.secondary,button.danger{display:flex;align-items:center;justify-content:center;min-height:52px;padding:12px 18px;border:0;border-radius:var(--radius);font-weight:700;text-align:center;text-decoration:none;cursor:pointer;background:var(--surface);color:var(--text);box-shadow:inset 0 0 0 1.5px var(--line)}.button.primary,button.primary{background:var(--accent);color:var(--on-accent);box-shadow:none}button.danger{color:var(--danger);box-shadow:inset 0 0 0 1.5px var(--danger)}.big{min-height:60px;font-size:18px}button:disabled{opacity:.45;cursor:default}button.link{border:0;padding:8px 0;background:none;color:var(--accent-ink);font-weight:600;text-decoration:underline;cursor:pointer}.tick{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:136px;padding:18px 20px;border:0;border-radius:20px;background:var(--accent);color:var(--on-accent);text-align:left;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;transition:transform 80ms}.tick:active{background:var(--accent-press);transform:scale(.985)}.tick-label{font-size:15px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;opacity:.85}.tick-who{font-size:28px;font-weight:800;line-height:1.15}.tick-horse{font-size:20px;font-weight:600}.stack{display:flex;flex-direction:column;gap:14px}label{display:flex;flex-direction:column;gap:6px;font-weight:600}input,select{min-height:52px;padding:10px 14px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);font-size:18px;width:100%}input:focus,select:focus{outline:3px solid var(--accent);outline-offset:1px}.note{padding:10px 14px;border-radius:12px;font-weight:600}.note.warn{background:var(--warn-soft);color:var(--warn)}.note.error{background:var(--danger-soft);color:var(--danger)}.card{padding:16px;border-radius:var(--radius);background:var(--surface);display:flex;flex-direction:column;gap:10px}.card h2{font-size:19px}.day h3{font-size:15px;margin-bottom:6px;display:flex;align-items:center;gap:8px}.today{padding:2px 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent-ink);font-size:12px}.arena-buttons{display:grid;gap:8px}.foot{margin-top:12px;color:var(--muted);font-size:15px}.class-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.class-list a{display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 12px;border-radius:12px;background:var(--surface);text-decoration:none}.class-list .current a{box-shadow:inset 0 0 0 2px var(--accent)}.class-list .num{min-width:28px;font-weight:800;color:var(--muted);text-align:center}.class-list .main{flex:1;min-width:0;display:flex;flex-direction:column}.class-list small{color:var(--muted);font-size:14px}.status{font-size:13px;font-weight:700;white-space:nowrap;color:var(--muted)}.status.running{color:var(--accent-ink)}.status.finished{opacity:.7}.entry-row{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;margin-bottom:6px;padding:8px 12px;border:0;border-radius:12px;background:var(--surface);text-align:left;cursor:pointer}.draw{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 6px;border-radius:10px;background:var(--bg);font-weight:800;font-size:17px}.draw.late{background:var(--warn-soft);color:var(--warn)}.who{flex:1;min-width:0;display:flex;flex-direction:column}.who strong,.who span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.who span{color:var(--muted)}.tag{padding:2px 8px;border-radius:999px;background:var(--warn-soft);color:var(--warn);font-size:13px;font-weight:700}.aside{color:var(--muted);font-size:15px;font-variant-numeric:tabular-nums;white-space:nowrap}.now .entry-row{box-shadow:inset 0 0 0 2px var(--accent)}.nobody{padding:18px 12px;border-radius:12px;background:var(--surface);color:var(--muted)}.pace{color:var(--muted);font-size:15px;font-variant-numeric:tabular-nums}.panel{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:var(--radius);background:var(--surface)}.earlier summary{padding:12px 0;font-weight:700;cursor:pointer}.earlier summary:first-letter{text-transform:uppercase}.actions{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);z-index:5}.actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:56px;padding:4px;border:0;border-radius:12px;background:var(--bg);font-size:15px;font-weight:700;cursor:pointer;min-width:0}.actions small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:500;color:var(--muted)}.sheet-backdrop{position:fixed;inset:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;background:#00000073}.sheet{width:100%;max-width:640px;max-height:88vh;display:flex;flex-direction:column;border-radius:20px 20px 0 0;background:var(--bg)}.sheet header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 8px 6px var(--gutter)}.sheet h2{font-size:19px}.sheet .close{min-width:48px;min-height:48px;border:0;background:none;font-size:30px;line-height:1;cursor:pointer}.sheet-body{overflow-y:auto;padding:4px var(--gutter) calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px}.sheet-body .entry-row{margin-bottom:0}.checklist{display:flex;flex-direction:column;gap:6px}.checklist label{flex-direction:row;align-items:center;gap:14px;min-height:60px;padding:8px 14px;border-radius:12px;background:var(--surface);font-weight:400;cursor:pointer}.checklist label.on{box-shadow:inset 0 0 0 2px var(--accent)}.checklist input{width:26px;min-height:26px;height:26px;accent-color:var(--accent);flex:none}.toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translate(-50%);z-index:20;width:calc(100% - 2 * var(--gutter));max-width:600px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 8px 12px 16px;border-radius:14px;background:var(--text);color:var(--bg);font-weight:600}.toast button{min-height:44px;padding:0 16px;border:0;border-radius:10px;background:var(--bg);color:var(--text);font-weight:800;cursor:pointer}.queue-row{display:flex;gap:8px;align-items:stretch}.queue-row .entry-row{flex:1;min-width:0}.gate-btn{flex:none;width:88px;white-space:nowrap;margin-bottom:6px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);color:var(--muted);font-size:15px;font-weight:800;cursor:pointer}.gate-btn.due{border-color:var(--warn);background:var(--warn-soft);color:var(--warn)}.gate-btn.on{border-color:transparent;background:var(--live-soft);color:var(--live)}.slot .label{margin-bottom:6px}.pause-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:14px;background:var(--warn-soft);color:var(--warn)}.pause-banner strong{display:block;font-size:19px}.pause-banner span{font-weight:600}.pause-banner .secondary{min-height:44px;flex:none}.pause-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pause-buttons .secondary{min-height:48px}.pause-row{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px;padding:6px 8px 6px 14px;border:1.5px dashed var(--warn);border-radius:12px;color:var(--warn);font-weight:700}.pause-row .link{color:var(--warn)}.seg{display:grid;grid-template-columns:1fr 1fr;gap:6px}.seg button,.chips button{min-height:48px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);font-weight:700;cursor:pointer}.seg button.on,.chips button.on{border-color:var(--accent);background:var(--accent);color:var(--on-accent)}.chips{display:flex;flex-wrap:wrap;gap:6px}.chips button{min-width:76px;padding:0 12px}
