:root {
  color-scheme: light;
  --page:#edf1f4; --paper:#fff; --ink:#203040; --deep:#172839; --muted:#546576;
  --line:#dce4eb; --accent:#12665c; --mint:#deeee7; --warn:#83501c; --error:#a22e3c;
  font: 16px/1.55 "Inter", system-ui, sans-serif;
}
* { box-sizing:border-box }
[hidden] { display:none !important }
body { margin:0; color:var(--ink); background:var(--page) }
a { color:var(--accent) }
.shell { max-width:1440px; min-height:100vh; margin:auto }
.top { background:var(--deep); color:#fff; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px clamp(16px,4vw,55px) }
.brand { display:inline-flex; align-items:center; gap:12px; color:#fff; font-weight:750; text-decoration:none; white-space:nowrap; line-height:1.2; letter-spacing:.03em }
.brand small { display:block; font-size:.75rem; font-weight:500; color:#cedade; margin-top:4px; letter-spacing:0 }
.monogram { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:#cfe8dd; color:var(--deep); font-size:1.4rem; font-weight:850 }
#nav { display:flex; flex-wrap:wrap; gap:5px }
#nav button { color:#e1ebf2; background:transparent; border-color:transparent; min-height:40px; padding:7px 12px }
#nav button:hover, #nav button[aria-current="page"] { background:#30485d; color:white }
#main { padding:clamp(16px,3.5vw,45px); outline:none }
h1,h2,h3,p { margin:0 }
h1 { font-size:clamp(1.85rem,4vw,2.6rem); letter-spacing:-.045em; line-height:1.15 }
h2 { font-size:1.22rem; line-height:1.25 }
h3 { font-size:1rem }
p { overflow-wrap:anywhere }
.panel { background:var(--paper); border:1px solid var(--line); border-radius:17px; padding:clamp(16px,2.8vw,28px) }
.hero { background:var(--deep); color:white; display:flex; align-items:end; justify-content:space-between; gap:20px }
.hero p { color:#d0dde7 }
.hero .primary { background:#d8ece4; color:#173e3a }
.stack { display:grid; gap:15px }
.spaced { margin-top:22px }
.grid { display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr)) }
.metrics .panel { min-width:0 }
.arrange { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr); gap:16px; align-items:start }
.inline { display:flex; align-items:center; flex-wrap:wrap; gap:8px }
.between { justify-content:space-between }
.muted { color:var(--muted) }
.subtle { font-size:.86rem; color:var(--muted) }
.metric { font-size:1.7rem; font-weight:780; font-variant-numeric:tabular-nums }
.badge { padding:4px 9px; background:var(--mint); color:var(--accent); border-radius:7px; font-size:.82rem; font-weight:700 }
.badge.warning { background:#f8eddf; color:var(--warn) }
button,input,textarea,select { font:inherit }
button,.link-button { color:var(--ink); background:white; border:1px solid var(--line); border-radius:10px; min-height:44px; padding:9px 14px; font-weight:650; cursor:pointer; text-decoration:none }
button:hover:not(:disabled), .link-button:hover { border-color:var(--accent); background:#f2f9f6 }
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible { outline:3px solid #47978a; outline-offset:2px }
button:disabled { cursor:default; opacity:.62 }
button.primary { color:white; background:var(--accent); border-color:var(--accent) }
button.primary:hover:not(:disabled) { background:#0a554c; color:white }
button.selected { background:var(--mint); border-color:#3d8275; color:#164e46 }
button.danger { color:var(--error) }
button.choice { text-align:left; display:flex; align-items:flex-start; gap:12px; line-height:1.45; width:100%; overflow-wrap:anywhere }
.letter { display:grid; place-items:center; flex:0 0 27px; min-height:26px; background:#eff3f6; border-radius:6px; font-weight:800 }
.number-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(36px,1fr)); gap:6px }
.number-grid button { padding:0; min-height:37px; font-variant-numeric:tabular-nums }
.number-grid button.current { outline:2px solid var(--accent); outline-offset:-2px }
.deadline { color:var(--deep); font-weight:800; font-variant-numeric:tabular-nums; white-space:nowrap }
.question { font-size:1.11rem; white-space:pre-wrap }
.figure { display:block; max-width:100%; max-height:500px; height:auto; border:1px solid var(--line); border-radius:9px; margin:auto }
label { display:grid; gap:5px; font-weight:630 }
input:not([type="checkbox"]),textarea,select { min-height:44px; border:1px solid #b4c1cd; border-radius:9px; padding:9px 11px; width:100%; color:var(--ink); background:white }
textarea { min-height:114px; resize:vertical }
.login { max-width:510px; margin:clamp(10px,5vh,70px) auto 0 }
.login .link-button { display:inline-flex; align-items:center; justify-content:center }
.list { display:grid; gap:8px }
.list button { text-align:left }
table { border-collapse:collapse; width:100%; font-size:.91rem }
th,td { text-align:left; padding:8px; border-bottom:1px solid var(--line) }
.scroller { overflow:auto }
.score { padding:10px; border:1px solid var(--line); border-radius:10px }
.check { display:flex; gap:8px; align-items:center }
.notice-block { border:1px solid var(--line); border-radius:10px; padding:12px; white-space:pre-wrap; overflow-wrap:anywhere }
#notice { position:fixed; inset:auto 16px 16px auto; padding:12px 16px; max-width:min(420px,calc(100vw - 32px)); background:var(--deep); color:white; border-radius:10px; box-shadow:0 8px 24px #0a182a33 }
@media(max-width:720px){
  .top { flex-wrap:wrap; gap:12px }
  .arrange { grid-template-columns:minmax(0,1fr) }
  .hero { align-items:start; flex-direction:column }
  #nav { width:100%; gap:3px; flex-wrap:nowrap; overflow:auto }
  #nav button { flex:1 0 auto; padding-inline:7px; font-size:.88rem }
  .metrics { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px }
  .metrics .panel { padding:10px }
  .metrics .subtle { font-size:.75rem }
  .number-grid { grid-template-columns:repeat(auto-fill,minmax(35px,1fr)) }
}
dialog { max-width:min(460px,calc(100vw - 32px)); color:var(--ink) }
dialog::backdrop { background:#172839aa }
.score.selected { background:var(--mint); border-color:#3d8275 }
