:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f6f7f9;--panel:#fff;--text:#1f2937;--muted:#64748b;--border:#d7dde6;--accent:#0f766e;--accent-soft:#dff7f3;--warn:#9a3412;--warn-soft:#ffedd5;--bad:#991b1b;--bad-soft:#fee2e2;--none:#475569;--none-soft:#e2e8f0;--shadow:0 1px 2px #0f172a14}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5}header{background:var(--panel);border-bottom:1px solid var(--border)}.topbar{justify-content:space-between;align-items:flex-start;gap:24px;padding:28px 0 22px;display:flex}h1{letter-spacing:0;margin:0;font-size:28px;line-height:1.2}.meta{color:var(--muted);margin-top:8px;font-size:14px}.site-nav{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;display:flex}.nav-link{min-height:34px;color:var(--muted);border:1px solid #0000;border-radius:6px;align-items:center;padding:0 12px;font-size:14px;font-weight:700;text-decoration:none;display:inline-flex}.nav-link:hover,.nav-link:focus-visible{border-color:var(--border);background:var(--panel);color:var(--text);outline:none}.nav-link.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.shell{width:min(1180px,100% - 32px);margin:0 auto}main.shell{padding:24px 0 40px}.topbar>div{flex:0 380px}.site-nav{flex:1}.actions,form{flex-wrap:wrap;align-items:center;gap:16px;display:flex}a{color:var(--accent)}h2{font-size:20px}h3{margin:6px 0}.panel{background:var(--panel);border:1px solid var(--border);border-radius:8px;margin-bottom:16px;padding:16px}.muted{color:var(--muted);font-size:14px}.filters{grid-template-columns:2fr 1fr 1fr 2fr;gap:16px;display:grid}label{gap:6px;min-width:0;font-size:14px;font-weight:650;display:grid}input,select,button,.button{font:inherit;border-radius:7px;min-height:44px;padding:9px 12px}input,select{border:1px solid var(--border);background:var(--panel);width:100%;min-width:0;color:inherit}form label{flex:1}form button{align-self:end}button,.button{background:var(--accent);color:#fff;border:1px solid var(--accent);cursor:pointer;justify-content:center;align-items:center;text-decoration:none;display:inline-flex}button.secondary{background:var(--panel);color:var(--accent)}button:disabled{opacity:.55;cursor:wait}:focus-visible{outline-offset:3px;outline:3px solid #d4921a}.cards{grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:20px;display:grid}.cards .panel{overflow-wrap:anywhere;margin:0}.eyebrow{color:#526173;font-size:13px}.badge{color:var(--warn);background:var(--warn-soft);border-radius:6px;padding:6px 10px}.error{color:#932033;background:#fff1f2;border:1px solid #e1a1ab;border-radius:8px;padding:16px}@media (width<=720px){.filters{grid-template-columns:1fr 1fr}.shell{width:calc(100% - 20px)}.topbar{flex-direction:column;gap:16px}.topbar>div{flex-basis:auto}.site-nav{justify-content:flex-start}}@media (width<=420px){.filters{grid-template-columns:1fr}form{flex-direction:column;align-items:stretch}form button{align-self:stretch}}.tournament-page h2{margin:0 0 16px}.tournament-page h3{font-size:17px}.tournament-page .fields{grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:16px;margin-bottom:16px;display:grid}.tournament-page label{margin:0 0 12px}.tournament-page .actions{margin-top:16px}.tournament-page .actions h2,.tournament-page .actions h3{margin:0}.tournament-page textarea{resize:vertical;width:100%;min-height:88px;font:inherit;color:var(--text);background:var(--panel);border:1px solid var(--border);border-radius:7px;padding:9px 12px}.tournament-page fieldset{border:1px solid var(--border);border-radius:8px;min-width:0;margin:20px 0;padding:16px}.tournament-page legend{padding:0 8px;font-size:15px;font-weight:700}.tournament-page .round{border:1px solid var(--border);background:var(--panel);border-radius:8px;margin:16px 0;padding:16px}.tournament-page .round>.actions{justify-content:space-between;margin:0 0 16px}.tournament-page .deck-list{flex-wrap:wrap;gap:12px 20px;display:flex}.tournament-page .deck-list label{align-items:center;gap:8px;margin:0;display:flex}.tournament-page input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:var(--accent);padding:0}.tournament-page .game{border:1px solid var(--border);background:var(--bg);border-radius:8px;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:12px;margin:16px 0;padding:16px;display:grid}.tournament-page .game h4{grid-column:1/-1;margin:0;font-size:15px}.tournament-page .game label{margin:0}.tournament-page .game button{justify-self:start}.tournament-page .round-meta{grid-template-columns:130px minmax(150px,1fr) repeat(2,minmax(150px,1fr));align-items:start;gap:12px;margin-bottom:12px;display:grid}.tournament-page .round-meta .fields{display:contents}.tournament-page .round-meta label{min-width:0;margin:0;font-size:13px}.tournament-page .round-meta input,.tournament-page .round-meta select{width:100%;min-width:0;min-height:36px;padding:6px 9px;font-size:14px}.tournament-page .opponent-warning{color:var(--bad);order:2;grid-column:1/-1;margin:0;font-size:13px}@media (width<=800px){.tournament-page .round-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}.tournament-page button[aria-pressed=false],.tournament-page .round>.actions button,.tournament-page .game button{background:var(--panel);color:var(--accent)}.tournament-page button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}.tournament-page [role=alert]{color:var(--bad);background:var(--bad-soft);border-radius:7px;padding:12px}.tournament-page [role=status]{color:var(--accent)}.tournament-page .tournament-list li{padding:4px 0;line-height:1.7}.tournament-page .tournament-edit{vertical-align:middle;min-height:28px;color:var(--muted);border-color:var(--border);white-space:nowrap;background:0 0;border-radius:5px;margin-inline-start:8px;padding:2px 9px;font-size:12px;line-height:1.5}.tournament-page .tournament-edit:hover:not(:disabled){color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}.tournament-page .deck-class-e{--deck-class-color:#166534;--deck-class-soft:#dcfce7;--deck-class-border:#86efac}.tournament-page .deck-class-r{--deck-class-color:#854d0e;--deck-class-soft:#fef9c3;--deck-class-border:#fde047}.tournament-page .deck-class-w{--deck-class-color:#1d4ed8;--deck-class-soft:#dbeafe;--deck-class-border:#93c5fd}.tournament-page .deck-class-d{--deck-class-color:#c2410c;--deck-class-soft:#ffedd5;--deck-class-border:#fdba74}.tournament-page .deck-class-ni{--deck-class-color:#78350f;--deck-class-soft:#f3e4d0;--deck-class-border:#d6a977}.tournament-page .deck-class-b{--deck-class-color:#475569;--deck-class-soft:#e2e8f0;--deck-class-border:#94a3b8}.tournament-page .deck-class-nm{--deck-class-color:#0e7490;--deck-class-soft:#cffafe;--deck-class-border:#67e8f9}.tournament-page .deck-class-unknown{--deck-class-color:var(--muted);--deck-class-soft:var(--bg);--deck-class-border:var(--border)}.tournament-page .class-label{border:1px solid var(--deck-class-border);background:var(--deck-class-soft);color:var(--deck-class-color);border-radius:5px;padding:2px 7px;font-weight:600;line-height:1.5;display:inline-block}.tournament-page .class-labels{vertical-align:middle;flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.tournament-page .round-results .class-labels{flex-wrap:nowrap}.tournament-page select.class-choice,.tournament-page select.class-choice option{background:var(--deck-class-soft);color:var(--deck-class-color)}.tournament-page select.class-choice{border-color:var(--deck-class-border)}.tournament-page select.class-choice option:not([class]){background:var(--panel);color:var(--text)}.tournament-page .round-results-scroll{max-width:100%;margin:16px 0;overflow-x:auto}.tournament-page .round-results{border-collapse:collapse;width:max-content;min-width:100%;font-size:14px}.tournament-page .round-results caption{text-align:left;padding:0 0 10px;font-weight:700}.tournament-page .round-results th,.tournament-page .round-results td{border-bottom:1px solid var(--border);text-align:left;white-space:nowrap;vertical-align:middle;padding:12px 16px}.tournament-page .round-results tbody th{font-weight:600}.tournament-page .record-detail{padding:24px}.tournament-page .record-detail h3{margin:0;font-size:21px;line-height:1.45}.tournament-page .record-header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.tournament-page .record-header>div{min-width:0}.tournament-page .record-header .detail-meta{margin-bottom:0}.tournament-page .record-header>button{flex-shrink:0;min-height:32px;padding:4px 10px;font-size:13px}.tournament-page .record-body{border-top:1px solid var(--border);margin-top:20px;padding-top:20px}.tournament-page .detail-meta{color:var(--muted);margin:6px 0 20px;font-size:13px}.tournament-page .record-heading{flex-wrap:wrap;align-items:baseline;gap:6px 20px;display:flex}.tournament-page .record-heading .detail-meta{margin:0}.tournament-page .record-header>.tournament-edit{min-height:28px;padding:2px 9px;font-size:12px}.tournament-page .record-players{flex-wrap:wrap;align-items:stretch;gap:10px;margin-top:16px;display:flex}.tournament-page .record-player{text-align:left;background:var(--panel);min-width:220px;max-width:100%;color:var(--text);border-color:var(--border);flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px;padding:12px 14px;font-size:14px;font-weight:400;display:flex}.tournament-page .record-player[aria-expanded=true]{background:var(--accent-soft);border-color:var(--accent)}.tournament-page .record-player-heading,.tournament-page .record-player-decks{flex-wrap:wrap;align-items:center;gap:8px 12px;display:flex}.tournament-page .record-player-name{font-weight:600}.tournament-page .record-player-score{font-variant-numeric:tabular-nums;font-weight:600}.tournament-page .record-player-label,.tournament-page .record-player-byes{color:var(--muted);font-size:12px}.tournament-page .record-draft{color:var(--muted);font-size:11px}.tournament-page .record-empty{color:var(--muted);margin:16px 0 0;font-size:13px}.tournament-page .view-switch,.tournament-page .history-members{flex-wrap:wrap;gap:8px;margin-bottom:20px;display:flex}.tournament-page .view-switch button,.tournament-page .history-members button{min-height:36px;padding:6px 14px;font-size:14px}.tournament-page .history-player-name{margin:24px 0 12px;font-size:20px}.tournament-page .history-overall{border-bottom:1px solid var(--border);margin-bottom:20px;padding-bottom:16px}.tournament-page .history-overall h4{margin:0 0 10px;font-size:14px}.tournament-page .history-overall dl{flex-wrap:wrap;gap:10px 24px;margin:0;display:flex}.tournament-page .history-overall dl>div{align-items:baseline;gap:8px;display:flex}.tournament-page .history-overall dt{color:var(--muted);font-size:12px}.tournament-page .history-overall dd{font-variant-numeric:tabular-nums;margin:0;font-size:14px;font-weight:600}.tournament-page .history-overall .overall-note{margin:10px 0 0;font-size:12px}.tournament-page .history-details{background:var(--panel);min-height:32px;color:var(--accent);flex-shrink:0;padding:4px 12px;font-size:13px}.tournament-page .round-results.history-table{font-size:13px}.tournament-page .round-results.history-table th,.tournament-page .round-results.history-table td{padding:10px 12px}.tournament-page .history-table tbody th{z-index:1;background:var(--panel);position:sticky;left:0}.tournament-page .history-table thead th:first-child{z-index:2;background:var(--panel);position:sticky;left:0}.tournament-page .history-table tr.is-expanded>*{background:var(--accent-soft)}.tournament-page .history-event-name{text-overflow:ellipsis;max-width:clamp(160px,24vw,280px);display:block;overflow:hidden}.tournament-page .history-draft{margin-left:8px}.tournament-page .history-result-note{text-overflow:ellipsis;max-width:240px;display:block;overflow:hidden}.tournament-page .record-result-note{align-items:baseline;gap:8px;width:100%;min-width:0;max-width:320px;display:flex}.tournament-page .record-result-note>.record-player-label{flex-shrink:0}.tournament-page .record-result-text{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.tournament-page .result-note-full{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.tournament-page .result-note-full>span{color:var(--muted);margin-right:12px;font-size:12px}.tournament-page .history-row-actions{align-items:center;gap:6px;display:flex}.tournament-page .history-row-actions .tournament-edit{margin:0}.tournament-page .history-detail{min-width:0}.tournament-page .history-detail h4{overflow-wrap:anywhere;margin:0;font-size:16px}.tournament-page .overall-note{color:var(--muted);font-size:13px;line-height:1.7}.tournament-page .overall-results .numeric{text-align:right;font-variant-numeric:tabular-nums}.tournament-page .overall-results tbody th{background:var(--panel);position:sticky;left:0}.tournament-page .detail-decks{flex-wrap:wrap;align-items:center;gap:10px 24px;margin-bottom:24px;display:flex}.tournament-page .detail-decks>span:first-child{color:var(--muted);font-size:14px}.tournament-page .round-results caption{clip-path:inset(50%);width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.tournament-page .round-results{font-size:15px}.tournament-page .round-results th,.tournament-page .round-results td{padding:14px 18px}.tournament-page .round-results thead{background:0 0}.tournament-page .round-results thead th{color:var(--muted);border-bottom:2px solid var(--border);font-size:13px;font-weight:600}.tournament-page .round-results .round-number{z-index:1;background:var(--panel);text-align:center;min-width:36px;padding-inline:10px;position:sticky;left:0}.tournament-page .round-results tbody .round-number{font-size:16px;font-weight:500}.tournament-page .round-results .result-cell{font-weight:700}.tournament-page .round-results .result-win{color:#166534}.tournament-page .round-results .result-loss{color:#b42318}.tournament-page .round-results .result-pending{color:var(--muted)}.tournament-page .multi-game-results .game-start{border-left:1px solid var(--border)}.tournament-page .multi-game-results thead .game-heading{text-align:center;color:var(--text)}.tournament-page .multi-game-results thead tr:last-child th{padding-block:8px;font-size:12px}.tournament-page .multi-game-results .empty-game{color:var(--muted);text-align:center}@media (width<=640px){.tournament-page .game{grid-template-columns:minmax(0,1fr)}.tournament-page .game h4{grid-column:auto}.tournament-page fieldset,.tournament-page .round{padding:12px}}
