/* Blue Sprint: flat racing geometry; content remains upright and selectable. */
html[data-theme="blue"]{--color-paper:#eef2fa;--color-paper-2:#e6ecf7;--color-paper-3:#d5deed;--color-surface:#fff;--color-ink:#0a0c14;--color-ink-2:#252b3a;--color-muted:#535d71;--color-faint:#657188;--color-rule:#c6cfe0;--color-rule-strong:#8d9bb5;--color-field:#080a10;--color-field-2:#17213a;--color-accent:#043bff;--color-accent-hover:#0030cd;--color-accent-ink:#17358a;--color-on-accent:#fff;--color-accent-soft:#e2eaff;--color-focus:#0540ff;--color-success:#1742c9;--color-success-soft:#e8edff;--color-code:#101725;--color-code-ink:#e8efff;--color-code-rule:#303d5a;--color-mint:#e5ecff;--color-mint-ink:#17358a;--color-mint-line:#c2d0f4;--color-apricot:#dfe7ff;--color-sky:#c6d8ff;--color-pattern:#083aff18;--color-on-field:#f3f6ff;--color-on-field-muted:#b5c1dd;--color-code-muted:#9baac7;--color-overlay:#080d20a1;--radius-card:0px;--radius-panel:0px;--radius-control:2px}
html[data-theme="blue"] body{background:#eef2fa}html[data-theme="blue"] .app-shell{background:transparent}html[data-theme="blue"] .app-shell:before,html[data-theme="blue"] .app-shell:after{display:none}html[data-theme="blue"] .mast{background:#08090b;color:#fff;border:0;box-shadow:none}html[data-theme="blue"] .mast-inner{max-width:none;padding:0 3vw;min-height:72px;gap:36px}html[data-theme="blue"] .brand{color:#fff;gap:10px}html[data-theme="blue"] .brand-mark{background:none;color:#fff;border:0;font-size:27px;font-style:italic;font-weight:900;width:auto;height:auto;letter-spacing:-2px}html[data-theme="blue"] .brand-name{font-size:24px;white-space:nowrap}html[data-theme="blue"] .brand:after{content:'//';color:#164bff;font-weight:900;font-size:35px;margin-left:12px;font-style:italic}html[data-theme="blue"] .primary-nav{align-self:stretch;gap:8px}html[data-theme="blue"] .nav-button{color:#d7dcec;border:0;font-size:18px;min-width:110px;padding:20px 28px;border-radius:0;transform:skewX(-16deg);background:transparent}html[data-theme="blue"] .nav-button.active{background:#043bff;color:#fff;box-shadow:inset 0 -3px #fff}html[data-theme="blue"] .nav-button:hover{background:#16234f;color:white}html[data-theme="blue"] .account,html[data-theme="blue"] .account-name{color:#cbd2e6}html[data-theme="blue"] .account .icon-button{color:white}html[data-theme="blue"] .app-footer{background:#090b10;color:#aab4cd;padding:12px 3vw;border:0;font-size:12px}html[data-theme="blue"] .button{border-radius:0;box-shadow:none}html[data-theme="blue"] .button.primary{background:#043bff;color:var(--color-on-accent);border-color:#043bff}html[data-theme="blue"] .button.primary:hover{background:#0031ce}html[data-theme="blue"] .button .icon{transition:transform .2s}html[data-theme="blue"] .button:hover .icon{transform:translateX(3px)}
html[data-theme="blue"] .sprint-page{background:#053bff;min-width:0;max-width:none}html[data-theme="blue"] .sprint-stage{min-height:650px;display:grid;grid-template-columns:minmax(250px,30%) minmax(0,1fr);position:relative;padding:30px 4vw 30px 3vw;background:linear-gradient(116deg,#0838e8 0%,#003fff 65%,#032dcc 100%);overflow:hidden}html[data-theme="blue"] .sprint-stage:before{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(115deg,transparent 0 110px,#ffffff05 111px 113px,transparent 114px 180px)}html[data-theme="blue"] .sprint-score{color:white;position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;gap:34px;padding-right:34px;animation:sprint-arrive .5s both}html[data-theme="blue"] .sprint-number{font-family:Arial,system-ui,sans-serif;font-style:italic;letter-spacing:-.095em;font-size:clamp(130px,23vw,340px);line-height:.88;font-weight:1000;margin:8px 0 24px -12px}html[data-theme="blue"] .sprint-stat{border-left:2px solid #ffffffb0;padding-left:14px;display:grid;gap:4px}html[data-theme="blue"] .sprint-stat>span{font-size:18px}html[data-theme="blue"] .sprint-stat>b{font-size:clamp(20px,2.2vw,33px);font-weight:600;white-space:nowrap}html[data-theme="blue"] .sprint-segments{display:flex;gap:6px;margin:10px 6px 0 0}html[data-theme="blue"] .sprint-segments i{height:13px;flex:1;min-width:0;background:#ffffff42;transform:skew(-20deg);transition:background .3s}html[data-theme="blue"] .sprint-segments i.filled{background:white;animation:segment-charge .5s both}html[data-theme="blue"] .sprint-sheet{position:relative;isolation:isolate;min-width:0;padding:28px 4vw 24px 5vw;display:flex;flex-direction:column;animation:sprint-arrive .45s both}html[data-theme="blue"] .sprint-sheet:before{content:'';position:absolute;inset:0 -30px 0 -25px;background:#f5f8ff;transform:skew(-14deg);z-index:-1}html[data-theme="blue"] .sprint-kicker{display:flex;align-items:center;gap:24px;font-size:16px;font-weight:800;margin-bottom:24px}html[data-theme="blue"] .sprint-kicker>span{white-space:nowrap}html[data-theme="blue"] .sprint-kicker:after{content:'';height:1px;background:#8d96a7;flex:1;order:0}html[data-theme="blue"] .finish-check{order:1;width:42px;height:25px;transform:skew(-20deg);background:conic-gradient(#111 25%,transparent 0 50%,#111 0 75%,transparent 0) 0 0/17px 17px}html[data-theme="blue"] .sprint-sheet h1{font-size:clamp(30px,4.2vw,62px);line-height:1.13;letter-spacing:-.04em;max-width:100%;margin-bottom:40px;overflow-wrap:anywhere}html[data-theme="blue"] .sprint-sheet h2{font-size:24px;margin-bottom:16px;padding-left:24px;position:relative}html[data-theme="blue"] .sprint-sheet h2:before{content:'';width:8px;height:24px;background:#043bff;position:absolute;left:3px;top:1px;transform:skew(-20deg)}html[data-theme="blue"] .sprint-questions{margin:0;padding:0;list-style:none;flex:1}html[data-theme="blue"] .sprint-question{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;border:0;border-bottom:1px solid #c6cfdf;padding:11px 0;background:transparent;text-align:left;color:#111728;transition:background .18s,transform .18s}html[data-theme="blue"] .sprint-question:hover{background:#e2eaff;transform:translateX(4px)}html[data-theme="blue"] .sprint-question em{font:900 italic 17px Arial;background:#e0e5ee;text-align:center;transform:skew(-12deg)}html[data-theme="blue"] .sprint-question strong{font-size:17px;line-height:1.4}html[data-theme="blue"] .sprint-question>span{font-size:13px;color:#586276;white-space:nowrap}html[data-theme="blue"] .sprint-question>span.answer-done{color:#073aff}html[data-theme="blue"] .sprint-action{display:flex;justify-content:flex-end;padding-top:32px;padding-bottom:2px}html[data-theme="blue"] .sprint-cta{position:relative;background:#050607;color:#fff;font-weight:900;font-style:italic;font-size:27px;padding:16px 38px;border:0;min-height:65px;clip-path:polygon(8% 0,100% 0,92% 100%,0 100%);min-width:250px;flex-direction:row-reverse;gap:22px;transition:background .2s,transform .2s}html[data-theme="blue"] .sprint-cta:hover{background:#043bff;transform:translateX(5px)}html[data-theme="blue"] .sprint-cta .icon{width:28px;height:28px}html[data-theme="blue"] .sprint-ready{padding:40px 0;color:#56637c;flex:1}html[data-theme="blue"] .sprint-error{color:#fff;padding:30px;display:grid;gap:20px}html[data-theme="blue"] .sprint-track{background:#07090d;display:flex;gap:18px;align-items:stretch;padding:30px max(30px,4vw);overflow-x:auto;position:relative;scrollbar-color:#2d50a9 #0e1220;scrollbar-width:thin}html[data-theme="blue"] .track-stop{position:relative;display:grid;grid-template-rows:auto 1fr auto;gap:7px;flex:1 0 120px;min-width:120px;max-width:220px;min-height:130px;padding:14px 19px;border:1px solid #485266;background:#141820;color:#f7f8fb;transform:skew(-12deg);text-align:left;transition:background .2s,border-color .2s,translate .2s}html[data-theme="blue"] .track-stop>strong{font:900 italic 32px Arial}html[data-theme="blue"] .track-stop>span{font-size:14px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}html[data-theme="blue"] .track-stop>small{font-size:12px;color:#c1cada}html[data-theme="blue"] .track-stop.selected{background:#043bff;border:2px solid #fff;translate:0 -5px}html[data-theme="blue"] .track-stop.selected:after{content:'';height:3px;position:absolute;bottom:0;left:0;right:0;background:white;transform-origin:left;animation:track-charge .45s ease-out}html[data-theme="blue"] .track-stop.selected small{background:white;color:#0035dd;text-align:center;font-weight:800}html[data-theme="blue"] .track-stop:not(:disabled):hover{background:#123b96;translate:0 -5px}html[data-theme="blue"] .track-stop:disabled{opacity:1;background:#12151b;color:#abb0bc;border-color:#4a515f}html[data-theme="blue"] .track-stop:disabled small{color:#a5adbc}html[data-theme="blue"] .track-stop:disabled>strong{font-size:28px}html[data-theme="blue"] .track-stop:focus-visible{outline:3px solid #fff;outline-offset:4px}html[data-theme="blue"] .sprint-stage[aria-busy=true]{opacity:.65;transition:opacity .15s}
html[data-theme="blue"] .login-screen{background:#043bff;grid-template-columns:minmax(300px,.9fr) minmax(0,1.1fr)}
html[data-theme="blue"] .login-identity{background:#080b13;color:#fff;padding:48px;min-height:100dvh;gap:56px}
html[data-theme="blue"] .login-identity .brand-mark{background:none;color:#fff}
html[data-theme="blue"] .login-identity:before{content:"";position:absolute;inset:-20% -45%;width:auto;height:auto;border:0;border-radius:0;transform:skewX(-16deg);background:repeating-linear-gradient(90deg,transparent 0 150px,#1242e6 151px 166px,transparent 167px 184px,#164cff 185px 195px,transparent 196px 330px);opacity:.3}
html[data-theme="blue"] .login-identity:after{content:"";position:absolute;width:80px;height:44px;right:40px;bottom:170px;top:auto;left:auto;border-radius:0;transform:skewX(-16deg);background:conic-gradient(#fff 25%,transparent 0 50%,#fff 0 75%,transparent 0) 0 0/28px 28px;opacity:.8}
html[data-theme="blue"] .login-title h1{color:white;font-size:clamp(48px,6vw,88px);font-style:italic;font-weight:900;letter-spacing:-.055em;max-width:8ch}
html[data-theme="blue"] .login-rule{color:#c8d3ec;border-color:#354362;position:relative;font-size:14px}
html[data-theme="blue"] .login-access{background:#043bff;padding:64px 7vw;position:relative;isolation:isolate}
html[data-theme="blue"] .login-access:before{content:"";position:absolute;inset:38px 22px;background:#f5f8ff;clip-path:polygon(8% 0,100% 0,92% 100%,0 100%);z-index:-1;pointer-events:none}
html[data-theme="blue"] .login-box{max-width:400px;width:100%;gap:28px;animation:sprint-arrive .4s both}
html[data-theme="blue"] .login-box h2{font-size:32px;font-weight:850}
html[data-theme="blue"] .login-form .button{min-height:54px;font-size:18px;clip-path:polygon(4% 0,100% 0,96% 100%,0 100%)}
html[data-theme="blue"] .login-form input{background:white;border:1px solid #bdc8df;border-radius:0;min-height:50px}
html[data-theme="blue"] .question-nav .active{border-color:#043bff}html[data-theme="blue"] .attempt-page{background:#eef2fa}html[data-theme="blue"] .run-result{animation:sprint-arrive .25s both}
@keyframes sprint-arrive{from{opacity:0;transform:translate(22px,6px)}to{opacity:1;transform:translate(0,0)}}@keyframes track-charge{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes segment-charge{from{opacity:.35}to{opacity:1}}
@media(min-width:1600px){html[data-theme="blue"] .sprint-stage{min-height:720px}html[data-theme="blue"] .sprint-sheet{padding-top:40px;padding-bottom:36px}html[data-theme="blue"] .sprint-question{padding:15px 0}}
@media(max-width:1000px){html[data-theme="blue"] .mast-inner{gap:20px}html[data-theme="blue"] .brand-name{font-size:20px}html[data-theme="blue"] .nav-button{min-width:85px;padding:18px}html[data-theme="blue"] .sprint-stage{grid-template-columns:26% minmax(0,1fr);padding:26px 5vw 26px 3vw;min-height:600px}html[data-theme="blue"] .sprint-score{padding-right:15px;gap:24px}html[data-theme="blue"] .sprint-number{font-size:25vw}html[data-theme="blue"] .sprint-stat>span{font-size:14px}html[data-theme="blue"] .sprint-stat>b{font-size:20px;white-space:normal}html[data-theme="blue"] .sprint-sheet{padding-left:4vw;padding-right:0}html[data-theme="blue"] .sprint-sheet h1{font-size:36px}html[data-theme="blue"] .sprint-kicker{font-size:13px}html[data-theme="blue"] .sprint-question{gap:9px}html[data-theme="blue"] .sprint-question strong{font-size:15px}html[data-theme="blue"] .sprint-track{gap:18px}html[data-theme="blue"] .sprint-cta{font-size:23px}}
@media(max-width:700px){html[data-theme="blue"] .mast-inner{padding:12px 20px;gap:12px;flex-wrap:wrap}html[data-theme="blue"] .brand-name{font-size:20px}html[data-theme="blue"] .brand-mark{font-size:23px}html[data-theme="blue"] .brand:after{font-size:28px;margin-left:4px}html[data-theme="blue"] .primary-nav{order:3;width:100%;padding-left:6px}html[data-theme="blue"] .nav-button{padding:9px 20px;min-height:42px;font-size:16px;flex:1}html[data-theme="blue"] .account{margin-left:auto}html[data-theme="blue"] .account-name{font-size:12px}html[data-theme="blue"] .sprint-stage{display:flex;flex-direction:column;min-height:0;padding:24px 20px 28px}html[data-theme="blue"] .sprint-score{display:grid;grid-template-columns:105px 1fr;gap:12px 16px;padding:0 0 24px}html[data-theme="blue"] .sprint-number{font-size:100px;grid-row:span 2;align-self:center;margin:0;letter-spacing:-9px}html[data-theme="blue"] .sprint-stat{padding-left:12px;gap:1px}html[data-theme="blue"] .sprint-stat>span{font-size:12px}html[data-theme="blue"] .sprint-stat>b{font-size:17px}html[data-theme="blue"] .sprint-segments{margin-top:5px;gap:5px}html[data-theme="blue"] .sprint-segments i{height:7px}html[data-theme="blue"] .sprint-sheet{padding:23px 18px}html[data-theme="blue"] .sprint-sheet:before{transform:none;inset:0;clip-path:polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px)}html[data-theme="blue"] .sprint-kicker{margin-bottom:18px;gap:10px}html[data-theme="blue"] .finish-check{width:27px;height:20px;background-size:14px 14px}html[data-theme="blue"] .sprint-sheet h1{font-size:30px;margin-bottom:27px}html[data-theme="blue"] .sprint-sheet h2{font-size:19px;margin-bottom:10px}html[data-theme="blue"] .sprint-question{grid-template-columns:25px minmax(0,1fr);gap:6px 9px;padding:10px 0}html[data-theme="blue"] .sprint-question strong{font-size:15px}html[data-theme="blue"] .sprint-question>span{grid-column:2;font-size:12px}html[data-theme="blue"] .sprint-question em{font-size:14px}html[data-theme="blue"] .sprint-action{padding-top:24px}html[data-theme="blue"] .sprint-cta{min-width:0;width:100%;min-height:56px;font-size:22px;padding:12px 24px}html[data-theme="blue"] .sprint-track{padding:22px 25px;gap:18px}html[data-theme="blue"] .track-stop{flex:0 0 123px;min-height:128px}html[data-theme="blue"] .app-footer{padding:12px 20px;flex-wrap:wrap;gap:5px}html[data-theme="blue"] .login-screen{grid-template-columns:1fr}html[data-theme="blue"] .login-identity{padding:28px;min-height:300px;gap:28px}html[data-theme="blue"] .login-title h1{font-size:48px;max-width:none}html[data-theme="blue"] .login-identity:after{right:25px;bottom:94px;width:45px;height:26px;background-size:18px 18px;opacity:.45}html[data-theme="blue"] .login-rule{font-size:12px;padding-top:16px;max-width:100%}html[data-theme="blue"] .login-access{padding:44px 30px 52px}html[data-theme="blue"] .login-access:before{inset:15px 12px;clip-path:polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px)}html[data-theme="blue"] .login-box{gap:22px}html[data-theme="blue"] .login-box h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){html[data-theme="blue"] *,html[data-theme="blue"] *:before,html[data-theme="blue"] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Pale accents use dark ink; solid actions have their own inverse text token. */
html[data-theme="blue"] .day-button[data-current="true"] .day-number{color:var(--color-on-accent)}
html[data-theme="blue"] .markdown-prompt blockquote{color:var(--color-accent-ink)}
html[data-theme="blue"] .markdown-prompt blockquote :is(p,li,strong,em){color:inherit}
html[data-theme="blue"] .markdown-prompt blockquote code{color:var(--color-accent-ink)}
html[data-theme="blue"] .markdown-prompt blockquote .prompt-code,html[data-theme="blue"] .markdown-prompt blockquote .prompt-code code{color:var(--color-code-ink)}
html[data-theme="blue"] .report-overview .report-score{color:#b6c7ff}
html[data-theme="blue"] .report-overview.all-correct .report-score{color:var(--color-success-soft)}
html[data-theme="blue"] .answer-input.code{caret-color:#b6c7ff}

html[data-theme="blue"] .sprint-segments.continuous i{background:linear-gradient(to right,#fff var(--completion),#ffffff42 var(--completion));min-height:9px}
html[data-theme="blue"] .sprint-track{scroll-padding-inline:24px}
html[data-theme="blue"] .sprint-stage{background:#043bff}
@keyframes sprint-arrive{from{opacity:0;transform:translate(22px,6px)}to{opacity:1;transform:translate(0,0)}}
html[data-theme="blue"] .sprint-stage[aria-busy=true]{opacity:1;cursor:progress}
html[data-theme="blue"] .sprint-stage[aria-busy=true] .sprint-cta,html[data-theme="blue"] .sprint-cta:disabled{opacity:1;background:#d5deed;color:#17358a;transform:none}
@media(max-width:60rem){
 html[data-theme="blue"] .primary-nav{background:#f5f8ff;border-top-color:#b8c5dc}
 html[data-theme="blue"] .primary-nav .nav-button{color:#354263;transform:none}
 html[data-theme="blue"] .primary-nav .nav-button.active{background:#043bff;color:#fff}
 html[data-theme="blue"] .primary-nav .nav-button:focus-visible{outline-color:#17358a;outline-offset:-4px}
}
@media(max-width:60rem) and (hover:hover){html[data-theme="blue"] .primary-nav .nav-button:hover:not(.active){background:#e2eaff;color:#17358a}}

/* Keep the sidebar and paper edge independent of expanded task height. */
@media (min-width: 701px) {
  html[data-theme="blue"] .sprint-score { align-self: start; justify-content: flex-start; padding-top: 48px; }
  html[data-theme="blue"] .sprint-sheet::before {
    transform: none;
    clip-path: polygon(48px 0, 100% 0, 100% calc(100% - 48px), calc(100% - 48px) 100%, 0 100%, 0 48px);
  }
}

/* Only the task list grows; changing days must not move the schedule. */
html[data-theme="blue"] .sprint-stage {
  height: clamp(440px, calc(100dvh - 240px), 820px);
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  padding-block: 20px;
}
html[data-theme="blue"] .sprint-score {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  padding-top: 16px;
  gap: 22px;
}
html[data-theme="blue"] .sprint-number {
  font-size: clamp(90px, 18dvh, 180px);
  margin-bottom: 8px;
}
html[data-theme="blue"] .sprint-sheet {
  min-height: 0;
  padding-block: 20px;
}
html[data-theme="blue"] .sprint-sheet > :not(.training-home-tasks):not(.sprint-questions) { flex-shrink: 0; }
html[data-theme="blue"] .sprint-sheet h1 {
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 650;
  line-height: 1.25;
  margin-bottom: 16px;
}
html[data-theme="blue"] .sprint-sheet .training-home-tasks {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
html[data-theme="blue"] .sprint-sheet .training-task-toolbar,
html[data-theme="blue"] .sprint-sheet .training-lock-note { flex-shrink: 0; }
html[data-theme="blue"] .sprint-sheet .training-task-toolbar { margin-top: 8px; }
html[data-theme="blue"] .sprint-sheet .training-task-list,
html[data-theme="blue"] .sprint-sheet .sprint-questions {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  padding: 3px;
}
html[data-theme="blue"] .sprint-track { padding-block: 18px; }
html[data-theme="blue"] .track-stop { min-height: 112px; }
@media (max-width: 700px) {
  html[data-theme="blue"] .sprint-stage { height: clamp(620px, calc(100dvh - 200px), 820px); }
  html[data-theme="blue"] .sprint-score { flex-shrink: 0; padding-top: 0; gap: 12px 16px; }
  html[data-theme="blue"] .sprint-number { font-size: 100px; margin: 0; }
  html[data-theme="blue"] .sprint-sheet { flex: 1; }
  html[data-theme="blue"] .sprint-sheet h1 { font-size: 28px; }
}
html[data-theme="blue"] .sprint-sheet .training-task-list:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

html[data-theme="blue"] .sprint-sheet:has(.training-home-tasks) .sprint-action{padding-top:14px}
html[data-theme="blue"] .sprint-sheet:has(.training-home-tasks) .sprint-cta{min-height:44px;font-size:15px;padding:10px 24px}

/* ---------- Blue Sprint Precision Polish (Preserves Blue Racing Identity) ---------- */
html[data-theme="blue"] {
  --color-paper: #f1f4fa;
  --color-paper-2: #e8eef8;
  --color-paper-3: #d8e1f0;
  --color-surface: #ffffff;
  --color-ink: #0f172a;
  --color-ink-2: #334155;
  --color-muted: #526077;
  --color-faint: #64748b;
  --color-rule: #dbe3f0;
  --color-rule-strong: #bcc8dc;
  --color-field: #0b0f19;
  --color-field-2: #162036;
  --color-accent: #1447e6;
  --color-accent-hover: #0f3bc4;
  --color-accent-ink: #133185;
  --color-accent-soft: #e9f0ff;
  --color-focus: #1447e6;
  --radius-card: 12px;
  --radius-panel: 14px;
  --radius-control: 8px;
}

html[data-theme="blue"] body {
  background: var(--color-paper);
  font-family: var(--font-sans, "Inter", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif);
  font-synthesis: none;
}

/* Unified Carbon-Slate Masthead with Upright Labels inside Slanted Racing Tab */
html[data-theme="blue"] .mast {
  background: #0b0f19;
  border-bottom: 1px solid rgb(255 255 255 / .08);
}

html[data-theme="blue"] .mast-inner {
  min-height: 66px;
  padding-inline: clamp(20px, 3vw, 44px);
  gap: 28px;
}

html[data-theme="blue"] .brand {
  gap: 8px;
}

html[data-theme="blue"] .brand-mark {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 23px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.05em;
}

html[data-theme="blue"] .brand-name {
  font-size: 19px;
  font-weight: 680;
  letter-spacing: -0.015em;
}

html[data-theme="blue"] .brand::after {
  content: "//";
  color: #3b6eff;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 25px;
  font-weight: 800;
  font-style: italic;
  margin-left: 8px;
  letter-spacing: -0.06em;
}

html[data-theme="blue"] .primary-nav {
  gap: 6px;
}

html[data-theme="blue"] .nav-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 16px 26px;
  border-radius: 0;
  color: #b7c3db;
  font-size: 15px;
  font-weight: 600;
  transform: none;
  background: transparent;
  transition: color 150ms ease;
}

html[data-theme="blue"] .nav-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(-16deg);
  background: transparent;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

html[data-theme="blue"] .nav-button:hover {
  background: transparent;
  color: #ffffff;
}

html[data-theme="blue"] .nav-button:hover::before {
  background: rgb(255 255 255 / .08);
}

html[data-theme="blue"] .nav-button.active {
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

html[data-theme="blue"] .nav-button.active::before {
  background: linear-gradient(180deg, #1d51f0 0%, #1447e6 100%);
  box-shadow: inset 0 -3px 0 #ffffff;
}

/* Unified Top-Right Account Controls (Bell + Username + Logout) */
html[data-theme="blue"] .account {
  gap: 10px;
}

html[data-theme="blue"] .account-name {
  color: #cbd5e7;
  font-size: 13.5px;
  font-weight: 500;
  padding-inline: 2px;
}

html[data-theme="blue"] .account .icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: 8px;
  background: rgb(255 255 255 / .05);
  color: #eef3ff;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

html[data-theme="blue"] .account .icon-button:hover {
  background: rgb(255 255 255 / .13);
  border-color: rgb(255 255 255 / .3);
  color: #ffffff;
}

html[data-theme="blue"] .app-footer {
  background: #0b0f19;
  color: #8f9db7;
  border-top: 1px solid rgb(255 255 255 / .07);
  padding: 12px clamp(20px, 3vw, 44px);
}

/* Default Buttons in Blue Theme use Crisp 8px Radius */
html[data-theme="blue"] .button {
  border-radius: 8px;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 120ms ease;
}

html[data-theme="blue"] .button.primary {
  background: linear-gradient(180deg, #1d51f0 0%, #1447e6 100%);
  border-color: #1447e6;
  color: #ffffff;
  box-shadow: 0 1px 2px rgb(15 52 190 / .22), 0 4px 12px -2px rgb(20 71 230 / .28);
}

html[data-theme="blue"] .button.primary:hover:not(:disabled) {
  background: #0f3bc4;
  border-color: #0f3bc4;
}

/* Layered Racing-Cobalt Stage */
html[data-theme="blue"] .sprint-page {
  background: #0b0f19;
}

html[data-theme="blue"] .sprint-stage {
  background:
    radial-gradient(ellipse 55% 65% at 14% 18%, rgb(92 148 255 / .28), transparent 68%),
    linear-gradient(125deg, #1039c7 0%, #1548e8 54%, #0c2ea3 100%);
  padding: 22px clamp(20px, 3.5vw, 48px);
}

html[data-theme="blue"] .sprint-stage::before {
  background: repeating-linear-gradient(115deg, transparent 0 110px, rgb(255 255 255 / .045) 111px 112px, transparent 113px 180px);
}

html[data-theme="blue"] .sprint-number {
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-style: italic;
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-shadow: 0 12px 30px rgb(6 22 86 / .28);
  margin: 0 0 10px -6px;
}

html[data-theme="blue"] .sprint-stat {
  border-left: 2px solid rgb(255 255 255 / .52);
  padding-left: 14px;
  gap: 5px;
}

html[data-theme="blue"] .sprint-stat > span {
  font-size: 13.5px;
  font-weight: 500;
  color: rgb(255 255 255 / .82);
  letter-spacing: 0.01em;
}

html[data-theme="blue"] .sprint-stat > b {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

html[data-theme="blue"] .sprint-segments {
  gap: 5px;
  margin-top: 8px;
}

html[data-theme="blue"] .sprint-segments i {
  height: 8px;
  border-radius: 2px;
  background: rgb(255 255 255 / .24);
  transform: skewX(-18deg);
}

html[data-theme="blue"] .sprint-segments i.filled {
  background: #ffffff;
  box-shadow: 0 0 10px rgb(255 255 255 / .35);
}

/* Precision Chamfered Content Sheet */
html[data-theme="blue"] .sprint-sheet {
  padding: 26px clamp(24px, 3.2vw, 44px) 22px clamp(28px, 3.6vw, 48px);
  filter: drop-shadow(0 18px 38px rgb(6 18 66 / .26));
}

@media (min-width: 701px) {
  html[data-theme="blue"] .sprint-sheet::before {
    inset: 0;
    background: #f8faff;
    clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
  }
}

html[data-theme="blue"] .sprint-kicker {
  gap: 16px;
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
}

html[data-theme="blue"] .sprint-kicker::after {
  background: #d5dfef;
}

html[data-theme="blue"] .finish-check {
  width: 34px;
  height: 20px;
  opacity: .75;
  background: conic-gradient(#1e293b 25%, transparent 0 50%, #1e293b 0 75%, transparent 0) 0 0/13px 13px;
}

html[data-theme="blue"] .sprint-sheet h1 {
  color: #0f172a;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

html[data-theme="blue"] .sprint-sheet h2 {
  font-size: 17px;
  font-weight: 680;
  color: #1e293b;
  padding-left: 16px;
  margin-bottom: 12px;
}

html[data-theme="blue"] .sprint-sheet h2::before {
  width: 5px;
  height: 17px;
  left: 0;
  top: 2px;
  border-radius: 2px;
  background: #1447e6;
}

html[data-theme="blue"] .sprint-question {
  padding: 12px 10px;
  border-radius: 8px;
  border-bottom: 1px solid #e4eaf4;
}

html[data-theme="blue"] .sprint-question:hover {
  background: #edf3ff;
  transform: translateX(3px);
}

html[data-theme="blue"] .sprint-question em {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 26px;
  border-radius: 6px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  background: #e9effa;
  color: #274487;
  transform: none;
}

html[data-theme="blue"] .sprint-question strong {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

html[data-theme="blue"] .sprint-question > span.answer-done {
  color: #1447e6;
  font-weight: 600;
}

html[data-theme="blue"] .sprint-ready {
  padding: 22px 20px;
  border: 1px dashed #cfd9ea;
  border-radius: 10px;
  background: #ffffff;
  color: #526077;
  font-size: 14px;
  flex: none;
  margin-top: 6px;
}

/* Refined Racing Primary CTA (Crisp Upright Text, Clean Bevel) */
html[data-theme="blue"] .sprint-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 190px;
  min-height: 48px;
  padding: 11px 28px;
  border: 1px solid #0f172a;
  border-radius: 10px;
  background: #0e1525;
  color: #ffffff;
  font-style: normal;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
  clip-path: none;
  box-shadow: 0 2px 6px rgb(10 18 38 / .18), 0 10px 24px -10px rgb(10 18 38 / .35);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 140ms ease;
}

html[data-theme="blue"] .sprint-cta:hover:not(:disabled) {
  background: #1447e6;
  border-color: #1447e6;
  box-shadow: 0 4px 14px -2px rgb(20 71 230 / .42);
  transform: translateY(-1px);
}

html[data-theme="blue"] .sprint-cta .icon {
  width: 18px;
  height: 18px;
}

/* Bottom Telemetry Track Rail: Upright Crisp Cards without Skewed Text */
html[data-theme="blue"] .sprint-track {
  background: #0b0f19;
  padding: 18px clamp(20px, 3.5vw, 48px) 22px;
  gap: 14px;
  border-top: 1px solid rgb(255 255 255 / .08);
}

html[data-theme="blue"] .track-stop {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  min-width: 148px;
  max-width: 228px;
  min-height: 108px;
  padding: 14px 16px;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 10px;
  background: #131a29;
  color: #e2e8f6;
  transform: none;
  overflow: hidden;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

html[data-theme="blue"] .track-stop > strong {
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-style: italic;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #f8fafc;
}

html[data-theme="blue"] .track-stop > span {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #cbd5e7;
}

html[data-theme="blue"] .track-stop > small {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgb(255 255 255 / .07);
  color: #9fb0cc;
  font-size: 11.5px;
  font-weight: 550;
}

html[data-theme="blue"] .track-stop:not(:disabled):hover {
  background: #1a243a;
  border-color: rgb(118 158 255 / .4);
  transform: translateY(-2px);
  translate: none;
}

html[data-theme="blue"] .track-stop.selected {
  background: linear-gradient(145deg, #1a4ff0 0%, #1039c4 100%);
  border: 1px solid rgb(174 205 255 / .55);
  box-shadow: 0 10px 24px -8px rgb(20 71 230 / .55), inset 0 1px 0 rgb(255 255 255 / .22);
  transform: translateY(-2px);
  translate: none;
}

html[data-theme="blue"] .track-stop.selected::after {
  inset: auto 14px 0 14px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: rgb(255 255 255 / .78);
}

html[data-theme="blue"] .track-stop.selected > span {
  color: rgb(255 255 255 / .92);
}

html[data-theme="blue"] .track-stop.selected small {
  background: rgb(255 255 255 / .18);
  color: #ffffff;
  font-weight: 650;
  text-align: left;
}

html[data-theme="blue"] .track-stop:disabled {
  background: #0f1420;
  border-color: rgb(255 255 255 / .06);
  color: #7c89a1;
}

html[data-theme="blue"] .track-stop:disabled > strong {
  font-size: 24px;
  color: #8c98b0;
}

html[data-theme="blue"] .track-stop:disabled > span {
  color: #7b879e;
}

html[data-theme="blue"] .track-stop:disabled small {
  background: rgb(255 255 255 / .04);
  color: #6e7b93;
}

/* Mobile Refinements: Prevent Bottom-Nav Overlap & Card Clipping */
@media (max-width: 60rem) {
  html[data-theme="blue"] .primary-nav {
    background: rgb(255 255 255 / .96);
    backdrop-filter: blur(12px);
    border-top: 1px solid #dbe3f0;
    box-shadow: 0 -4px 16px rgb(15 28 56 / .06);
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  html[data-theme="blue"] .primary-nav .nav-button {
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 9px;
    color: #475569;
  }
  html[data-theme="blue"] .primary-nav .nav-button::before {
    display: none;
  }
  html[data-theme="blue"] .primary-nav .nav-button.active {
    background: #1447e6;
    color: #ffffff;
  }
}

@media (max-width: 700px) {
  html[data-theme="blue"] .sprint-stage {
    height: auto;
    min-height: 0;
    padding: 20px 16px 24px;
  }
  html[data-theme="blue"] .sprint-score {
    overflow: visible;
    padding-bottom: 18px;
  }
  html[data-theme="blue"] .sprint-number {
    font-size: 84px;
    letter-spacing: -0.05em;
  }
  html[data-theme="blue"] .sprint-sheet {
    padding: 20px 16px 18px;
  }
  html[data-theme="blue"] .sprint-sheet::before {
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  }
  html[data-theme="blue"] .sprint-sheet .training-task-list,
  html[data-theme="blue"] .sprint-sheet .sprint-questions {
    overflow: visible;
  }
  html[data-theme="blue"] .sprint-cta {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }
  html[data-theme="blue"] .sprint-track {
    padding: 18px 16px calc(76px + env(safe-area-inset-bottom));
  }
  html[data-theme="blue"] .track-stop {
    flex: 0 0 144px;
    min-height: 102px;
  }
  html[data-theme="blue"] .app-footer {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
}
