:root{--bg:#fff;--surface:#eef1ee;--surface-2:#e2e7e3;--line:#b9c3bb;--line-strong:#7b8a80;--text:#0a120c;--muted:#465149;--green:#0a7233;--green-dark:#06511f;--red:#bc1f1f;--red-dark:#8d1414;--amber:#8a5a00;--blue:#10457f;--tap:48px;--radius:14px;--pad:16px;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;-webkit-text-size-adjust:100%}*{box-sizing:border-box}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);overscroll-behavior-y:contain;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,system-ui,sans-serif;font-size:18px;line-height:1.35}button{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}:focus-visible{outline:3px solid var(--blue);outline-offset:2px}h1,h2,h3{margin:0;line-height:1.15}.app{flex-direction:column;min-height:100%;display:flex}.app.fixed{height:100vh;height:100dvh;min-height:0;overflow:hidden}.topbar{z-index:5;padding:calc(var(--safe-top) + 10px) var(--pad) 10px;background:var(--green-dark);color:#fff;border-bottom:3px solid var(--green);align-items:center;gap:8px;display:flex;position:sticky;top:0}.topbar h1{letter-spacing:-.01em;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:20px;font-weight:800;overflow:hidden}.topbar .back{color:#fff;background:#ffffff29;border:0;border-radius:10px;min-width:44px;min-height:40px;padding:0 12px;font-weight:700}.screen{padding:var(--pad);padding-bottom:calc(var(--pad) + 84px + var(--safe-bottom));flex-direction:column;flex:1;gap:14px;display:flex}.screen.flush{gap:0;padding:0}.nav{z-index:6;background:var(--bg);border-top:2px solid var(--line);padding-bottom:var(--safe-bottom);grid-auto-columns:1fr;grid-auto-flow:column;display:grid;position:fixed;bottom:0;left:0;right:0}.nav button{min-height:60px;color:var(--muted);background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:6px 2px;font-size:13px;font-weight:700;display:flex}.nav button .glyph{font-size:20px;line-height:1}.nav button[aria-current=page]{color:var(--green)}.card{background:var(--bg);border:2px solid var(--line);border-radius:var(--radius);padding:var(--pad);flex-direction:column;gap:10px;display:flex}.card.tint{background:var(--surface)}.card h2{font-size:22px;font-weight:800}.eyebrow{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-size:14px;font-weight:800}.muted{color:var(--muted)}.small{font-size:15px}.criterion{font-size:19px;font-weight:600}.btn{min-height:var(--tap);border:2px solid var(--line-strong);background:var(--bg);cursor:pointer;border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:12px 18px;font-size:17px;font-weight:800;display:flex}.btn:disabled{opacity:.45}.btn.primary{background:var(--green);border-color:var(--green-dark);color:#fff;min-height:60px;font-size:19px}.btn.danger{background:var(--bg);border-color:var(--red);color:var(--red-dark)}.btn.block{width:100%}.row{flex-wrap:wrap;gap:10px;display:flex}.row.tight{gap:6px}.row>.grow{flex:1}.badge{border:2px solid var(--line-strong);background:var(--bg);white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:5px 11px;font-size:14px;font-weight:800;display:inline-flex}.badge.net{border-color:var(--blue);color:var(--blue)}.badge.remap{border-color:var(--amber);color:var(--amber)}.badge.type-cal{border-color:var(--green);color:var(--green-dark)}.badge.type-diff{border-color:var(--blue);color:var(--blue)}.badge.type-var{border-color:var(--amber);color:var(--amber)}.badge.type-mix{border-color:var(--red);color:var(--red-dark)}.divider{background:var(--line);border:0;height:2px;margin:4px 0}.empty{border:2px dashed var(--line);border-radius:var(--radius);text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:10px;padding:28px 20px;display:flex}.field{flex-direction:column;gap:8px;display:flex}.field>label{font-weight:800}.seg{border:2px solid var(--line-strong);border-radius:12px;grid-auto-columns:1fr;grid-auto-flow:column;gap:0;display:grid;overflow:hidden}.seg button{min-height:var(--tap);border:0;border-right:2px solid var(--line-strong);background:var(--bg);padding:10px 6px;font-weight:800}.seg button:last-child{border-right:0}.seg button[aria-pressed=true]{background:var(--green);color:#fff}.toggle-row{min-height:var(--tap);border-bottom:2px solid var(--surface-2);justify-content:space-between;align-items:center;gap:12px;padding:8px 0;display:flex}.toggle-row:last-child{border-bottom:0}.toggle{border:2px solid var(--line-strong);background:var(--bg);border-radius:999px;min-width:84px;min-height:44px;padding:0 14px;font-weight:800}.toggle[aria-pressed=true]{background:var(--green);border-color:var(--green-dark);color:#fff}select,input[type=number]{font:inherit;min-height:var(--tap);border:2px solid var(--line-strong);background:var(--bg);color:var(--text);border-radius:12px;width:100%;padding:8px 12px}.setscreen{flex-direction:column;flex:1;min-height:0;display:flex}.set-head{max-height:22vh;padding:12px var(--pad);border-bottom:2px solid var(--line);flex-direction:column;flex:none;gap:8px;display:flex;overflow-y:auto}.set-head .line1{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.set-head .level-n{color:var(--muted);font-size:16px;font-weight:800}.set-head .title{font-size:20px;font-weight:800}.set-body{padding:12px var(--pad);flex-direction:column;flex:1;justify-content:center;gap:8px;min-height:0;display:flex;overflow-y:auto}.call{letter-spacing:-.02em;text-align:center;text-wrap:balance;font-size:clamp(30px,9.5vw,52px);font-weight:900;line-height:1.02}.call-group{text-align:center;letter-spacing:.14em;color:var(--muted);font-size:15px;font-weight:900}.club{text-align:center;font-size:clamp(34px,12vw,60px);font-weight:900;line-height:1}.progress{padding:8px var(--pad);border-top:2px solid var(--line);justify-content:space-between;align-items:center;gap:10px;font-weight:800;display:flex}.pips{padding:0 var(--pad) 8px;flex-wrap:wrap;gap:5px;display:flex}.pip{border:2px solid var(--line-strong);background:var(--bg);color:#fff;border-radius:6px;justify-content:center;align-items:center;width:22px;height:22px;font-size:12px;font-weight:900;display:flex}.pip.ok{background:var(--green);border-color:var(--green-dark)}.pip.no{background:var(--red);border-color:var(--red-dark)}.pip.now{border-color:var(--text);border-width:3px}.judge{padding:0 var(--pad) calc(10px + var(--safe-bottom));grid-template-columns:1fr 1fr;gap:10px;display:grid}.judge button{color:#fff;border:0;border-radius:18px;justify-content:center;align-items:center;min-height:min(24vh,200px);font-size:64px;font-weight:900;display:flex;box-shadow:inset 0 -6px #00000040}.judge button:active{transform:translateY(2px)}.judge .yes{background:var(--green)}.judge .no{background:var(--red)}.set-foot{padding:0 var(--pad) calc(14px + var(--safe-bottom));gap:10px;display:flex}.set-foot .btn{flex:1;min-height:46px}.sheet-backdrop{z-index:20;background:#00000073;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--bg);width:100%;padding:var(--pad);padding-bottom:calc(var(--pad) + var(--safe-bottom));border-top:3px solid var(--line);border-radius:20px 20px 0 0;flex-direction:column;gap:12px;display:flex}.tag-grid{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.tag-grid.two{grid-template-columns:repeat(2,1fr)}.tag-grid button{border:2px solid var(--line-strong);background:var(--surface);border-radius:12px;min-height:64px;font-size:16px;font-weight:800}.outcome{text-align:center;padding:24px var(--pad);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:16px;display:flex;overflow-y:auto}.outcome .verdict{letter-spacing:-.02em;font-size:clamp(38px,13vw,64px);font-weight:900}.outcome.promoted .verdict{color:var(--green)}.outcome.demoted .verdict{color:var(--red)}.outcome .score{font-size:26px;font-weight:800}.list{flex-direction:column;gap:10px;display:flex}.list-item{text-align:left;background:var(--bg);border:2px solid var(--line);width:100%;min-height:var(--tap);cursor:pointer;border-radius:12px;align-items:center;gap:12px;padding:12px 14px;display:flex}.list-item .grow{flex:1;min-width:0}.pill{color:#fff;white-space:nowrap;border-radius:999px;padding:4px 10px;font-size:13px;font-weight:900}.pill.promoted{background:var(--green)}.pill.demoted{background:var(--red)}.pill.stayed{background:var(--muted)}.level-row{border:2px solid var(--line);background:var(--bg);border-radius:12px;gap:10px;padding:10px 12px;display:flex}.level-row.current{border-color:var(--green);background:#eaf6ee;border-width:3px}.level-row .n{min-width:34px;color:var(--muted);font-size:18px;font-weight:900}.attempt-row{border-bottom:2px solid var(--surface-2);grid-template-columns:34px 1fr auto;align-items:center;gap:10px;padding:10px 12px;display:grid}.attempt-row:last-child{border-bottom:0}.mark{font-size:20px;font-weight:900}.mark.ok{color:var(--green)}.mark.no{color:var(--red)}.stat-grid{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.stat{border:2px solid var(--line);text-align:center;border-radius:12px;padding:10px}.stat .value{font-size:26px;font-weight:900}.stat .label{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:13px;font-weight:800}.chart{width:100%;height:auto;display:block}.chart .grid-line{stroke:var(--line);stroke-width:1px}.chart .axis-label{fill:var(--muted);font-size:12px;font-weight:700}.chart .step{fill:none;stroke:var(--green);stroke-width:3px;stroke-linejoin:round;stroke-linecap:round}.chart .dot-promoted{fill:var(--green)}.chart .dot-demoted{fill:var(--red)}.chart .dot-stayed{fill:var(--muted)}.banner{border:3px solid var(--green);border-radius:var(--radius);background:#eaf6ee;flex-direction:column;gap:10px;padding:14px;display:flex}.error-screen{color:var(--red-dark);padding:24px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}@media (min-width:620px){.sheet{border-radius:20px;max-width:620px;margin-inline:auto}.sheet-backdrop{padding:var(--pad);align-items:center}.screen,.set-head,.set-body,.outcome,.progress,.pips,.judge,.set-foot{width:100%;max-width:620px;margin-inline:auto}}
