/* TraceCraft workbench. This final layer intentionally preserves the original
   runtime selectors while giving every learning surface one visual language. */
:root {
  --bg: #111315;
  --surface: #191c1f;
  --raised: #202427;
  --line: #303538;
  --muted: #a3aaa7;
  --text: #f1f3ed;
  --lime: #c4f26d;
  --mint: #afd7c6;
  --purple: #bfb0e8;
  --warm: #e4bc91;
  --red: #ffaaa2;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { background: var(--bg); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { border-radius: 7px; }
button { min-height: 38px; padding: 9px 14px; font-size: 13px; font-weight: 500; }
button:hover:not(:disabled) { border-color: #737e72; }
button:disabled { opacity: .5; }
input, select, textarea { background: #131618; font-size: 13px; }
input::placeholder, textarea::placeholder { color: #7f8984; opacity: 1; }
input[type="checkbox"] { accent-color: var(--lime); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; }
h1 { font-size: 34px; line-height: 1.2; }
h2 { font-size: 22px; line-height: 1.35; }
h3 { font-size: 16px; line-height: 1.4; }
p { line-height: 1.7; }
small { line-height: 1.6; }
::selection { color: #eff7e8; background: #435431; }
.eyebrow { font-size: 10px; letter-spacing: .12em; font-weight: 600; color: var(--muted); }
.primary, .training-wrap a.primary { color: #17200d; background: var(--lime); border-color: var(--lime); font-weight: 600; }
.primary:hover:not(:disabled), a.primary:hover { background: #d3fa91; border-color: #d3fa91; color: #17200d; }
a.primary { min-height: 39px; padding: 10px 16px; border-radius: 7px; font-size: 13px; }
.ghost { background: #202427; border-color: #363d3e; color: #e4e9e2; }
.ghost:hover:not(:disabled) { background: #292f30; }
.text-btn { min-height: 30px; font-size: 12px; font-weight: 500; color: #bfc9ba; }
.text-btn:hover { color: var(--lime); }
.chip { border-radius: 5px; font-size: 10px; font-weight: 500; padding: 3px 7px; background: #1b1f22; }
.chip.green { background: #252e20; border-color: #3f5032; color: #c4ed90; }
.panel { border-radius: var(--radius); background: var(--surface); border-color: var(--line); box-shadow: none; }
.panel-head { margin-bottom: 18px; }
.notice { background: #22251e; color: #cbd1c0; border-color: #434b3b; border-radius: 8px; font-size: 13px; }
.notice.danger { background: #2c2020; color: var(--red); border-color: #71433f; }
.danger { color: var(--red); }
.divider { border-color: var(--line); }

/* Shell */
.sidebar { width: 216px; background: #151719; border-right-color: #2c3032; padding: 24px 14px 18px; }
.brand { font-size: 21px; letter-spacing: -.7px; padding: 0 9px; gap: 9px; }
.brand-mark { width: 28px; height: 29px; border-radius: 7px; font-size: 23px; background: var(--lime); color: #171d13; }
.brand sup { font-size: 10px; color: #99a092; margin-left: -3px; }
.workspace-label { margin: 34px 11px 11px; color: #838d87; font-size: 10px; letter-spacing: .12em; }
.sidebar .nav { display: flex; flex-direction: column; gap: 3px; padding: 0; margin-top: 0; }
.nav a, .sidebar .nav a { padding: 9px 11px; gap: 10px; min-height: 38px; color: #abb2ad; border-radius: 6px; font-size: 12px; }
.nav a .icon { width: 17px; height: 17px; opacity: .85; }
.nav a:hover { color: #e9eee3; background: #242a27; }
.nav a.active { color: #dcf5b8; background: #2b3424; box-shadow: none; }
.nav a.active .icon { color: var(--lime); opacity: 1; }
.nav .small-badge { border-color: #46523b; color: #c2d4ae; background: transparent; font-size: 10px; }
.nav-group-label, .nav-section-label { display: block; margin: 23px 11px 9px; color: #87918b; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nav-section { display: flex; flex-direction: column; gap: 3px; }
.sidebar-bottom { padding-top: 20px; }
.day-card { background: #1e2420; border-color: #343d32; border-radius: 8px; padding: 13px; margin-bottom: 17px; }
.day-card .row { gap: 8px; }
.day-card .icon { width: 16px; height: 16px; color: var(--lime); }
.day-card strong { font-size: 11px; font-weight: 550; }
.day-card p { font-size: 11px; color: #a3afa0; margin: 7px 0; }
.day-card .training-sidebar-link { min-height: 30px; padding: 7px 0; font-size: 10px; border: 0; background: transparent; }
.profile { border-top: 1px solid var(--line); padding: 16px 6px 0; gap: 9px; }
.avatar { width: 30px; height: 30px; background: #272e29; border-color: #424d40; color: #d4e4c1; font-size: 10px; }
.profile strong { font-size: 11px; font-weight: 550; }
.profile small { font-size: 10px; }
.main-shell { margin-left: 216px; min-width: 0; }
.topbar { height: 57px; padding: 0 32px; border-bottom-color: #2b3032; background: #141618; }
.breadcrumb { gap: 12px; font-size: 11px; }
.breadcrumb span:first-child { color: #858e88; }
.top-actions { gap: 15px; }
.search-btn { border-color: #343a3d; background: #1b1e21; border-radius: 6px; min-height: 30px; min-width: 175px; padding: 6px 10px; font-size: 10px; }
.search-btn .icon { width: 14px; height: 14px; }
.key { color: #a7aea8; border-color: #424943; font-size: 10px; padding: 0 4px; border-radius: 3px; }
.top-stat { color: #a8b69f; font-size: 10px; }
.top-stat .icon { color: var(--lime); }
.shell-status { display: inline-flex; align-items: center; gap: 6px; color: #b3bcb0; font-size: 10px; }
.shell-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #a4c978; }
.mobile-nav-toggle { display: none; }
.sidebar .nav > .nav-section { flex-shrink: 0; }
.nav-more { margin-top: 20px; padding-top: 12px; border-top: 1px solid #303937; flex-shrink: 0; }
.nav-more > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; list-style: none; cursor: pointer; color: #8f9e93; font-size: 10px; padding: 9px 11px; min-height: 34px; border-radius: 5px; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary .icon { width: 13px; height: 13px; }
.nav-more[open] > summary .icon { transform: rotate(90deg); }
.nav-more > summary:hover { color: #d7e2cc; background: #242d26; }
.nav-more > .nav-section { margin-top: 7px; }
.nav-more:not([open]) > .nav-section { display: none; }
.sidebar .shell-status { display: flex; align-items: flex-start; gap: 9px; padding: 0 7px 17px; font-size: 10px; color: #b8c3af; }
.sidebar .shell-status::before { content: none; }
.shell-status-dot { width: 5px; height: 5px; background: #accd87; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.shell-status small { display: block; font-size: 9px; color: #7e9279; margin-top: 3px; }
.profile > .icon { margin-left: auto; width: 14px; height: 14px; color: #83987b; }
.shell-today-link { display: inline-flex; align-items: center; gap: 7px; color: #b4c3a6; font-size: 10px; white-space: nowrap; }
.shell-today-link .icon { width: 14px; height: 14px; color: #adc98c; }
.shell-today-link:hover { color: #daf0bc; }
.content-design { max-width: 1600px; }
.content { padding: 32px 32px 36px; max-width: 1510px; }
.footer-note { margin-top: 34px; padding-top: 17px; border-color: var(--line); font-size: 10px; color: #858e85; line-height: 1.7; }
.section-intro { margin-bottom: 26px; }
.section-intro .eyebrow { margin-bottom: 10px; }
.section-intro h1 { margin: 10px 0 12px; font-size: 32px; }
.section-intro p { font-size: 14px; max-width: 810px; margin-bottom: 0; }
.session-bar { background: #252d20; border-color: #536744; border-radius: 8px; }
dialog { background: #1a1e20; border-color: #4a5449; border-radius: 12px; padding: 26px; }
dialog::backdrop { background: #080b0bd9; backdrop-filter: blur(4px); }
.search-result { background: #22272a; border-color: #343d3c; border-radius: 7px; padding: 12px 14px; }
.search-result small { font-size: 11px; }
#toast { background: #2b3525; border-color: #61764d; color: #e1efce; border-radius: 8px; font-size: 13px; bottom: 22px; }

/* Today: one assignment, one timer, then the actual work. */
.training-wrap { max-width: 1220px; margin: 0 auto; }
.training-wrap p { font-size: 14px; line-height: 1.75; }
.training-wrap small { font-size: 11px; line-height: 1.7; }
.training-wrap h2 { font-size: 22px; margin: 9px 0 14px; }
.training-wrap .panel { padding: 24px; }
.training-wrap a { color: #c6d6bc; }
.daily-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.daily-heading .eyebrow { font-size: 10px; letter-spacing: .13em; }
.daily-heading h1 { font-size: 34px; margin: 9px 0 8px; letter-spacing: -.045em; }
.daily-heading p { font-size: 14px; margin: 0; }
.daily-path-link { flex-shrink: 0; display: block; width: 192px; padding: 5px 0 3px; }
.daily-path-link > span:first-child { display: block; color: #8e9a90; font-size: 10px; font-weight: 600; letter-spacing: .13em; }
.daily-path-link > strong { display: block; font-size: 17px; letter-spacing: -.025em; color: #ecf1e6; margin-top: 5px; }
.daily-path-link > strong > span { color: #8e978c; font-size: 13px; font-weight: 400; }
.daily-path-track { display: block; height: 3px; background: #333b30; margin: 11px 0 6px; border-radius: 4px; overflow: hidden; }
.daily-path-track > span { display: block; background: var(--lime); height: 100%; }
.daily-path-link > small { display: flex; justify-content: space-between; font-size: 10px; color: #9da994; }
.daily-start-grid { display: grid; grid-template-columns: minmax(0,1fr) 262px; gap: 18px; }
.training-wrap .daily-assignment { background: #1d2122; border-color: #444d3d; border-top: 2px solid #9ac85d; padding: 23px 26px 25px; }
.daily-assignment-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.daily-assignment-meta .chip { font-size: 10px; letter-spacing: .08em; padding: 4px 7px; background: #2a3523; }
.daily-assignment-meta .dot { width: 4px; height: 4px; }
.daily-day { color: #a9b5a2; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .05em; }
.daily-assignment > .eyebrow { color: #a0aaa2; font-size: 10px; letter-spacing: .09em; }
.training-wrap .daily-assignment h2 { font-size: 26px; letter-spacing: -.035em; line-height: 1.25; margin: 8px 0 13px; }
.daily-task-copy { max-width: 630px; }
.daily-task-copy p { color: #b9c0b9; font-size: 14px; line-height: 1.8; margin: 0 0 8px; }
.daily-assignment-bottom { display: flex; gap: 22px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.daily-assignment-bottom a.primary { gap: 21px; font-size: 12px; min-height: 38px; padding: 9px 14px; }
.daily-assignment-bottom .text-btn { font-size: 11px; color: #aebba2; }
.training-wrap .daily-focus { padding: 23px; display: flex; flex-direction: column; justify-content: center; background: #1a1d1f; }
.daily-focus-title { display: flex; align-items: center; justify-content: space-between; }
.daily-focus-title .eyebrow { font-size: 10px; color: #a6afa6; }
.daily-focus-dot { width: 6px; height: 6px; border: 1px solid #7d9870; border-radius: 50%; }
.daily-clock { display: block; color: #edf3e7; font: 52px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 400; letter-spacing: -3px; margin: 25px 0 7px; font-variant-numeric: tabular-nums; }
.daily-focus > p { font-size: 10px; margin-bottom: 14px; color: #9fa99e; white-space: nowrap; }
.daily-focus .session-progress { background: #323b30; width: 100%; height: 3px; margin: 0 0 20px; }
.session-progress > div { background: var(--lime); }
.daily-timer-actions { display: flex; align-items: center; gap: 16px; }
.daily-timer-actions .primary { min-height: 35px; padding: 8px 12px; font-size: 11px; }
.daily-timer-actions .text-btn { font-size: 11px; color: #9aa795; }
.daily-focus > small { font-size: 10px; line-height: 1.7; margin-top: 18px; color: #929e90; }
.daily-evidence-strip { display: flex; align-items: center; gap: 25px; border-bottom: 1px solid var(--line); margin: 0 0 26px; padding: 23px 1px; flex-wrap: wrap; }
.daily-evidence-strip > div { display: flex; align-items: center; gap: 8px; }
.daily-evidence-strip strong { color: #e1eacf; font-size: 16px; font-weight: 600; }
.daily-evidence-strip span { color: #aab4a4; font-size: 11px; }
.daily-evidence-strip .evidence-dot { width: 5px; height: 5px; background: #a9cc7f; border-radius: 50%; margin-right: 3px; }
.daily-evidence-strip > small { color: #7f8d7c; font-size: 10px; margin-left: auto; }
.daily-work-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: 20px; align-items: start; }
.daily-agenda .panel-head { margin-bottom: 16px; }
.daily-agenda .panel-head h2, .daily-review .panel-head h2 { font-size: 19px; margin: 7px 0 0; }
.daily-agenda .panel-head .eyebrow, .daily-review .panel-head .eyebrow { font-size: 10px; }
.session-block { padding: 15px 0; gap: 9px; grid-template-columns: 17px 21px minmax(0,1fr) 31px; border-top-color: #303731; }
.session-block input { width: 15px; height: 15px; margin: 3px 0 0; }
.session-block .block-number { font-size: 10px; line-height: 21px; color: #87977e; }
.session-block strong { font-size: 13px; font-weight: 550; line-height: 1.5; }
.session-block small { font-size: 11px; line-height: 1.7; margin-top: 4px; color: #939f8e; }
.session-block .block-minutes { font-size: 10px; line-height: 21px; color: #a9be96; }
.session-block:has(input:checked) strong { color: #a4b099; }
.session-block:has(input:checked) .block-number { color: #b9d997; }
.daily-agenda-note { display: block; padding-top: 13px; border-top: 1px solid var(--line); color: #879680; font-size: 10px !important; }
.daily-side-stack { display: flex; flex-direction: column; gap: 18px; }
.training-wrap .daily-design-preview { padding: 23px 23px 17px; overflow: hidden; background: #191e21; border-color: #3c4547; }
.daily-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.daily-preview-head .eyebrow { color: #a6b7bb; font-size: 10px; }
.daily-preview-head .chip { color: #bacacc; background: #263034; border-color: #445359; font-size: 10px; }
.training-wrap .daily-design-preview h2 { font-size: 23px; color: #f1f3ed; margin: 17px 0 8px; letter-spacing: -.04em; }
.daily-design-preview > p { font-size: 12px; line-height: 1.7; color: #9fafb1; margin: 0; max-width: 350px; }
.daily-network { width: calc(100% + 18px); height: auto; margin: 20px -9px 13px; color: #8ea3a0; }
.daily-preview-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #323d3e; padding-top: 10px; }
.daily-preview-bottom > span { font: 10px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; color: #8fa3a0; }
.daily-preview-bottom .text-btn { color: #cde5d0; font-size: 11px; gap: 12px; }
.daily-review .panel-head { margin-bottom: 17px; }
.daily-review-count { display: grid; place-items: center; border: 1px solid #444e3c; background: #283020; color: #c4d5ae; width: 29px; height: 29px; border-radius: 7px; font: 12px ui-monospace, monospace; }
.daily-review-empty { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0 22px; }
.daily-check-icon { color: #bad891; border: 1px solid #3e4c33; border-radius: 50%; width: 25px; height: 25px; display: grid; place-items: center; font-size: 11px; flex-shrink: 0; }
.daily-review-empty strong { display: block; font-size: 12px; color: #c8d5bc; font-weight: 500; margin: 2px 0 4px; }
.daily-review-empty p { font-size: 11px; margin: 0; max-width: 240px; color: #8f9f88; }
.daily-review > small { display: block; border-top: 1px solid var(--line); padding-top: 12px; font-size: 10px; color: #8d9d85; }
.review-link { font-size: 12px; color: #d0dcc4; padding: 13px 0; }
.review-link > span:first-child > small { display: block; font-size: 10px; letter-spacing: .07em; color: #91a283; margin-bottom: 3px; }
.review-link > span:last-child { font-size: 10px; color: #b7cd9e; align-self: center; }
.daily-coaching { display: flex; gap: 12px; align-items: flex-start; padding: 0 6px; }
.daily-coaching-mark { color: #9cb980; font-size: 21px; line-height: 1; }
.daily-coaching p { margin: 0; color: #a5afa0; font-size: 11px; line-height: 1.8; max-width: 350px; }
.training-wrap .daily-reflection { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 30px; margin-top: 22px; padding: 25px; }
.daily-reflection .eyebrow { font-size: 10px; }
.daily-reflection h2 { font-size: 23px; margin: 12px 0; }
.daily-reflection p { font-size: 12px; color: #bcc5b7; }
.daily-reflection .daily-reflection-hint { color: #899980; font-size: 11px; }
.training-wrap .daily-reflection textarea { background: #12181a; border-color: #3c473e; border-radius: 7px; min-height: 132px; margin: 0; padding: 13px; font-size: 12px; line-height: 1.8; }
.daily-reflection .training-actions { margin: 12px 0 8px; gap: 20px; }
.daily-reflection .training-actions button { font-size: 11px; min-height: 36px; }
.daily-reflection .training-actions .text-btn { color: #adc497; }
.daily-reflection small { font-size: 10px; color: #93a088; }
.training-backup { padding-top: 22px; margin-top: 25px; gap: 20px; }
.training-backup strong { font-size: 12px; color: #cbd5c1; font-weight: 500; }
.training-backup p { color: #8b9982; font-size: 10px; line-height: 1.7; }
.training-backup .training-actions button { min-height: 34px; font-size: 10px; padding: 7px 10px; background: transparent; }

/* SQL and Python workbenches */
.training-toolbar { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 10px; margin: 24px 0 20px; }
.training-toolbar label { font-size: 11px; }
.training-toolbar select { background: #202528; border-color: #41494a; min-height: 36px; max-width: 440px; font-size: 12px; }
.training-toolbar button { font-size: 11px; min-height: 35px; }
.training-toolbar .chip { font-size: 10px; background: transparent; padding: 6px 8px; }
.workbench-grid { gap: 18px; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); align-items: start; }
.training-wrap .workbench-editor, .training-wrap .result-panel { padding: 23px; }
.workbench-editor > .eyebrow { font-size: 10px; color: #a6b59b; }
.workbench-editor > h2, .result-panel > h2 { font-size: 21px; margin-top: 9px; }
.workbench-editor > p, .result-panel > p { font-size: 12px; line-height: 1.8; }
.workbench-editor label { color: #b9cbb0; font-size: 11px; margin-top: 19px; }
.workbench-code { background: #101416; border-color: #3b4543; border-radius: 7px; min-height: 320px; font: 13px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; color: #e0e9d4; padding: 16px; margin-top: 10px; }
.training-wrap .input-contract { padding: 9px 12px; background: #262d2d; border-radius: 6px; border: 1px solid #3b4340; }
.training-wrap details { font-size: 12px; line-height: 1.8; }
.training-wrap summary { color: #bfcdb6; font-size: 11px; }
.workbench-empty { border: 1px dashed #414d3c; background: #181e20; border-radius: 8px; padding: 42px 17px; margin: 20px 0; }
.workbench-empty > span { font-size: 32px; color: #7f9a6c; }
.workbench-empty h3 { font-size: 15px; color: #c4d5b6; }
.workbench-empty p { color: #8f9f86; font-size: 11px; }
.training-actions { gap: 9px; margin-top: 16px; }
.training-actions button { min-height: 37px; font-size: 11px; }
.training-wrap .training-help { margin: 22px 0; background: #1b2022; padding: 22px 24px; }
.training-help .panel-head h2 { font-size: 19px; }
.training-help > p { font-size: 12px; }
.training-help > small { display: block; font-size: 10px; margin-top: 13px; }
.training-wrap textarea:not(.workbench-code) { border-color: #394435; background: #121719; border-radius: 7px; font-size: 13px; }
.code-output { background: #101618; border-color: #37413e; border-radius: 7px; color: #d3dfc9; font-size: 12px; }
.result-table-wrap { border-color: #3b4543; border-radius: 7px; }
.result-table caption { color: #a8b69c; background: #242c2d; font-size: 10px; }
.result-table th { background: #222c2d; color: #c4d6b6; }
.result-table td { color: #cad6c0; font-size: 11px; }
.result-table th, .result-table td { border-color: #37423e; padding: 9px 12px; }
.result-table td em { color: #a4ad9b; }
.training-week-grid { gap: 20px; }
.training-week { background: #1b2022; }
.training-week h2 { font-size: 21px; }
.training-week p { font-size: 12px; }
.day-assignment { color: #d5dfcd; padding: 14px 5px; gap: 10px; }
.day-assignment.selected { background: #2c382d; border-radius: 5px; }
.day-assignment strong { font-size: 12px; font-weight: 500; }
.day-assignment small { color: #97a78a; }
.deliverable { background: #252c29; border-left-color: #88a96b; padding: 12px 14px; border-radius: 0 6px 6px 0; }
.deliverable > strong { color: #c4dcae; font-size: 10px; }
.deliverable p { color: #aab99c; font-size: 12px; }
.training-sources { color: #9cb389; font-size: 10px; line-height: 2; }
.training-sources a { color: #adc49a; text-decoration: underline; text-decoration-color: #536746; text-underline-offset: 3px; }
.design-questions { color: #cbd5c9; font-size: 13px; }
.design-check { color: #bfcbb9; font-size: 12px; }

/* Bring the original tools into the same workbench without changing behavior. */
.hero { background: #1c2224; border-color: #414b4b; border-radius: 12px; }
.hero h1 { font-size: 40px; }
.hero .enable-3d { background: #20282a; border-color: #414e4d; border-radius: 6px; }
.greeting h1 { font-size: 28px; }
.quest-panel { background: #1b2022; }
.quest-step { border-color: #353e39; }
.step-number { color: #b9c9a8; border-color: #44533a; border-radius: 5px; }
.circle-time { border-color: #50653d; border-right-color: var(--lime); }
.path-card { border-radius: 10px; }
.path-card:hover { transform: none; border-color: #62764f; }
.path-card p { font-size: 11px; }
.path-icon { background: #2b352c; border-color: #4b5d3d; border-radius: 7px; }
.stage p, .book-card p, .settings-grid p { font-size: 13px; }
.topics span { background: #262e2e; color: #c1cbc4; font-size: 10px; }
.stage .stage-bottom { border-color: #37413f; }
.stage summary { color: #aecb96; }
.book-card { background: #1b1f22; border-radius: 10px; }
.book-card .book-mark { background: #2d372b; border-color: #526746; }
.book-card h2 { font-size: 18px; }
.editor-wrap { background: #101719; }
.editor { color: #dae5cc; font-size: 13px; }
.line-numbers { color: #869478; }
.code-head, .code-foot { background: #1e2527; border-color: #3b4544; }
.code-head h2 { font-size: 22px; }
.code-head p { font-size: 13px; }
.code-panel { border-radius: 10px; }
.trace-note { background: #23302c; border-color: #44594e; color: #c0dbad; border-radius: 7px; }
.trace-note p { color: #b6cca6; }
.trace-line { color: #9aaa8b; font-size: 11px; }
.trace-line.current { color: #d3f2b2; background: #334337; }
.memory { background: #232c29; border-color: #49594a; border-radius: 7px; }
.memory small { color: #afc19b; }
.array-cell strong { background: #2c3c31; border-color: #567151; border-radius: 5px; }
.block-list { background: #151d20; }
.code-block { background: #29392e; border-color: #536b50; border-radius: 6px; }
.prompt-text { color: #dce6d5; font-size: 17px; }
.rubric-item { color: #c5d2bd; border-color: #384a2f; font-size: 13px; }
.pipeline button { background: #1f292c; border-color: #42524d; border-radius: 7px; }
.pipeline button.active { background: #344335; border-color: #829976; }
.pipeline-arrow { color: #9fb48a; }
.metric { background: #202a2b; border-color: #47594b; border-radius: 7px; }
.metric small { color: #aabc98; font-size: 10px; }
.evidence { background: #202a2c; border-color: #435850; border-radius: 7px; }
.evidence p { font-size: 12px; color: #b2c6a4; }
.evidence small { color: #a6c58e; }
.settings-grid .panel { background: var(--surface); }
.settings-grid .field { font-size: 12px; }
.provider-row { font-size: 13px; }
.provider-row small { font-size: 11px; }

@media (min-width: 1600px) {
  .content { padding-top: 38px; }
  .daily-start-grid { grid-template-columns: minmax(0,1fr) 292px; }
  .daily-clock { font-size: 57px; }
  .daily-task-copy p { font-size: 14px; }
  .daily-assignment-bottom { margin-top: 25px; }
}
@media (max-width: 1250px) {
  .content { padding: 28px 26px 34px; }
  .topbar { padding: 0 26px; }
  .daily-start-grid { grid-template-columns: minmax(0,1fr) 235px; gap: 16px; }
  .training-wrap .daily-assignment { padding: 22px; }
  .training-wrap .daily-focus { padding: 20px; }
  .daily-clock { font-size: 47px; }
  .daily-work-grid { gap: 16px; }
  .training-wrap .panel { padding: 21px; }
  .daily-evidence-strip { gap: 20px; }
  .daily-evidence-strip > small { display: none; }
  .training-backup { flex-direction: row; align-items: center; }
}
@media (max-width: 1080px) {
  .sidebar { width: 190px; padding-left: 11px; padding-right: 11px; }
  .main-shell { margin-left: 190px; }
  .brand { font-size: 19px; padding: 0 7px; gap: 7px; }
  .nav a, .sidebar .nav a { font-size: 11px; padding: 9px 10px; gap: 9px; }
  .content { padding: 25px 23px 32px; }
  .topbar { padding: 0 23px; }
  .top-stat, .shell-status { display: none; }
  .daily-heading h1 { font-size: 31px; }
  .daily-path-link { width: 160px; }
  .daily-heading { gap: 20px; }
  .daily-heading p { font-size: 12px; }
  .daily-start-grid { grid-template-columns: minmax(0,1fr) 218px; }
  .daily-assignment h2 { font-size: 24px !important; }
  .daily-assignment-meta { margin-bottom: 18px; }
  .daily-task-copy p { font-size: 12px; }
  .daily-clock { font-size: 44px; }
  .daily-focus > p { font-size: 10px; }
  .daily-work-grid { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); }
  .training-wrap .daily-agenda, .training-wrap .daily-review, .training-wrap .daily-design-preview { padding: 19px; }
  .daily-preview-bottom > span { display: none; }
  .daily-preview-bottom { justify-content: flex-end; }
  .daily-evidence-strip { gap: 17px; }
  .daily-evidence-strip span { font-size: 10px; }
  .workbench-grid { grid-template-columns: 1fr; }
  .training-toolbar .chip { margin-left: 0; }
  .training-wrap .daily-reflection { gap: 24px; padding: 23px; }
  .training-backup { flex-direction: column; align-items: flex-start; }
  .training-backup .training-actions { margin-top: 0; }
}
@media (max-width: 860px) {
  .daily-path-link { width: 140px; }
  .daily-start-grid { grid-template-columns: minmax(0,1fr); }
  .training-wrap .daily-focus { display: grid; grid-template-columns: 1fr auto; gap: 0 24px; padding: 21px 23px; }
  .daily-focus-title { grid-column: 1; }
  .daily-clock { margin: 11px 0 3px; font-size: 43px; grid-column: 1; }
  .daily-focus > p { margin: 2px 0 0; grid-column: 1; }
  .daily-focus .session-progress { grid-column: 1; margin: 12px 0 0; }
  .daily-timer-actions { grid-column: 2; grid-row: 2; }
  .daily-focus > small { grid-column: 2; grid-row: 3 / span 2; margin-top: 0; max-width: 185px; }
  .daily-work-grid { grid-template-columns: 1fr; }
  .daily-side-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .daily-coaching { grid-column: 1 / -1; }
  .daily-network { margin-top: 15px; margin-bottom: 15px; }
  .daily-preview-head { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .daily-preview-head .chip { font-size: 10px; }
  .training-wrap .daily-design-preview h2 { font-size: 21px; }
  .daily-design-preview > p { font-size: 11px; }
  .daily-review-empty { flex-direction: column; gap: 9px; }
  .training-wrap .daily-reflection { grid-template-columns: 1fr; gap: 14px; }
  .daily-reflection h2 { margin: 9px 0; }
  .daily-reflection p { margin-bottom: 7px; }
  .daily-reflection .daily-reflection-hint { margin-bottom: 0; }
  .training-week-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; padding: 15px 17px 0; display: block; border-right: 0; background: #15191a; }
  .sidebar { position: relative; }
  .brand { padding: 0; font-size: 21px; gap: 9px; }
  .brand-mark { width: 26px; height: 28px; }
  .brand sup { font-size: 10px; }
  .workspace-label, .sidebar-bottom { display: none; }
  .sidebar .sidebar-bottom { display: block; position: absolute; top: 12px; right: 17px; padding: 0; }
  .sidebar-bottom .shell-status { display: none; }
  .sidebar-bottom .profile { border: 0; padding: 0; min-height: 34px; gap: 7px; }
  .sidebar-bottom .profile > span:not(.avatar) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .sidebar-bottom .profile > .avatar { width: 27px; height: 27px; }
  .sidebar-bottom .profile > .icon { width: 14px; height: 14px; margin-left: 0; }
  .sidebar .nav { flex-direction: row; margin-top: 14px; overflow-x: auto; overflow-y: hidden; padding-bottom: 10px; gap: 4px; scrollbar-width: thin; }
  .nav-section { flex-direction: row; flex-shrink: 0; align-items: center; gap: 4px; }
  .nav-group-label, .nav-section-label { display: none; }
  .nav-more { margin: 0; padding: 0; border: 0; }
  .nav-more[open] { display: flex; align-items: center; gap: 4px; }
  .nav-more > summary { white-space: nowrap; min-height: 36px; padding: 8px 10px; gap: 8px; font-size: 10px; }
  .nav-more > .nav-section { margin-top: 0; }
  .nav-more[open] > summary .icon { transform: rotate(180deg); }
  .shell-today-link { font-size: 9px; gap: 5px; }
  .shell-today-link .icon { width: 12px; height: 12px; }
  .nav a, .sidebar .nav a { font-size: 11px; min-height: 36px; padding: 8px 10px; gap: 7px; white-space: nowrap; }
  .nav a .icon { width: 15px; height: 15px; }
  .main-shell { margin-left: 0; }
  .topbar { height: 48px; padding: 0 18px; background: #141819; gap: 10px; }
  .breadcrumb { font-size: 10px; gap: 8px; }
  .top-actions { gap: 11px; }
  .top-actions > .avatar { width: 24px; height: 24px; font-size: 10px; }
  .search-btn { min-width: 0; background: transparent; border: 0; padding: 5px; min-height: 30px; font-size: 0; gap: 0; }
  .search-btn .icon { width: 17px; height: 17px; }
  .search-btn .key { display: none; }
  .content { padding: 24px 18px 30px; }
  .daily-heading { align-items: flex-start; margin-bottom: 22px; gap: 16px; }
  .daily-heading .eyebrow { font-size: 10px; letter-spacing: .1em; }
  .daily-heading h1 { font-size: 29px; margin-top: 8px; }
  .daily-heading p { font-size: 11px; max-width: 270px; }
  .daily-path-link { width: 125px; margin-top: 1px; }
  .daily-path-link > span:first-child { font-size: 10px; letter-spacing: .08em; }
  .daily-path-link > strong { font-size: 15px; }
  .daily-path-link > small { font-size: 10px; }
  .daily-path-track { margin-top: 9px; }
  .training-wrap .daily-assignment { padding: 21px; }
  .daily-assignment-meta { margin-bottom: 18px; }
  .daily-assignment-meta .chip { font-size: 10px; }
  .daily-assignment > .eyebrow { font-size: 10px; }
  .training-wrap .daily-assignment h2 { font-size: 25px !important; }
  .daily-task-copy p { font-size: 12px; }
  .daily-assignment-bottom { gap: 20px; margin-top: 20px; }
  .daily-assignment-bottom a.primary { min-height: 40px; font-size: 12px; }
  .daily-assignment-bottom .text-btn { min-height: 40px; }
  .training-wrap .daily-focus { padding: 19px 21px; }
  .daily-clock { font-size: 42px; }
  .daily-timer-actions .primary { min-height: 40px; }
  .daily-timer-actions .text-btn { min-height: 40px; }
  .daily-evidence-strip { padding: 20px 0; margin-bottom: 22px; gap: 18px; }
  .daily-evidence-strip .evidence-dot { display: none; }
  .daily-evidence-strip > div { gap: 6px; }
  .daily-evidence-strip strong { font-size: 16px; }
  .daily-evidence-strip span { font-size: 10px; }
  .training-wrap .daily-agenda, .training-wrap .daily-review, .training-wrap .daily-design-preview { padding: 21px; }
  .session-block { padding: 16px 0; grid-template-columns: 17px 20px minmax(0,1fr) 30px; }
  .session-block input { width: 16px; height: 16px; }
  .session-block strong { font-size: 13px; }
  .session-block small { font-size: 11px; }
  .daily-agenda .panel-head h2, .daily-review .panel-head h2 { font-size: 21px; }
  .training-wrap .daily-reflection { padding: 21px; }
  .daily-reflection .training-actions button { min-height: 40px; font-size: 11px; }
  .daily-reflection .training-actions { gap: 20px; }
  .training-wrap .daily-reflection textarea { min-height: 145px; font-size: 13px; }
  .training-backup { margin-top: 24px; gap: 13px; }
  .training-backup .training-actions { gap: 10px; flex-wrap: wrap; }
  .training-backup .training-actions button { min-height: 40px; font-size: 11px; }
  .training-wrap .section-intro h1, .section-intro h1 { font-size: 28px; line-height: 1.2; }
  .section-intro .eyebrow { font-size: 10px; }
  .section-intro p { font-size: 12px; line-height: 1.8; }
  .training-toolbar { margin: 20px 0 18px; }
  .training-toolbar select { width: 100%; max-width: none; min-height: 40px; font-size: 12px; }
  .training-toolbar label { font-size: 11px; }
  .training-toolbar button { min-height: 40px; }
  .training-wrap .workbench-editor, .training-wrap .result-panel, .training-wrap .training-help { padding: 19px; }
  .workbench-code { font-size: 12px; min-height: 300px; padding: 13px; }
  .training-actions button { min-height: 40px; }
  .training-actions .text-btn { padding: 8px 0; }
  .training-wrap .panel-head { align-items: flex-start; }
  .result-table th, .result-table td { padding: 9px 11px; }
  .design-check { font-size: 12px; }
  .training-week p { font-size: 12px; }
  .day-assignment { padding: 15px 4px; }
  .footer-note { margin-top: 28px; flex-direction: column; gap: 6px; font-size: 10px; }
  #toast { left: 50%; font-size: 12px; padding: 12px 15px; }
  .provider-row { align-items: flex-start; font-size: 12px; }
  .provider-row strong { font-size: 12px; }
  .provider-row small { font-size: 10px; }
}
@media (max-width: 520px) {
  .daily-heading { display: block; }
  .daily-heading h1 { font-size: 31px; }
  .daily-heading p { max-width: none; }
  .daily-path-link { width: 100%; margin-top: 19px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 12px; padding: 0; }
  .daily-path-link > span:first-child { display: none; }
  .daily-path-link > strong { margin: 0; font-size: 12px; white-space: nowrap; }
  .daily-path-link > strong > span { font-size: 10px; }
  .daily-path-track { margin: 0; }
  .daily-path-link > small { font-size: 10px; gap: 5px; white-space: nowrap; }
  .daily-assignment-meta .chip { font-size: 10px; }
  .daily-day { font-size: 10px; }
  .daily-assignment-bottom { gap: 13px; }
  .daily-assignment-bottom a.primary { gap: 15px; padding: 9px 12px; font-size: 11px; }
  .daily-assignment-bottom .text-btn { font-size: 10px; }
  .training-wrap .daily-focus { gap: 0 18px; }
  .daily-clock { font-size: 39px; letter-spacing: -2px; }
  .daily-focus-title .eyebrow { font-size: 10px; }
  .daily-focus-dot { display: none; }
  .daily-focus > p { font-size: 10px; }
  .daily-timer-actions { gap: 11px; }
  .daily-timer-actions .primary { padding: 8px 10px; font-size: 10px; }
  .daily-timer-actions .text-btn { font-size: 10px; }
  .daily-focus > small { max-width: 156px; font-size: 10px; }
  .daily-evidence-strip { display: grid; grid-template-columns: 1fr 1.1fr .65fr; gap: 13px; }
  .daily-evidence-strip > div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .daily-evidence-strip span { font-size: 10px; line-height: 1.6; }
  .daily-evidence-strip strong { font-size: 19px; }
  .daily-side-stack { display: flex; flex-direction: column; }
  .daily-design-preview > p { font-size: 12px; max-width: none; }
  .daily-preview-head { align-items: center; flex-wrap: nowrap; }
  .daily-preview-head .chip { font-size: 10px; }
  .daily-preview-bottom { justify-content: space-between; }
  .daily-preview-bottom > span { display: inline; }
  .daily-preview-bottom .text-btn { min-height: 40px; }
  .daily-network { margin: 17px -9px 10px; }
  .daily-review-empty { flex-direction: row; }
  .daily-review-empty p { max-width: none; }
  .daily-reflection .training-actions { justify-content: space-between; gap: 10px; }
}
@media (max-width: 360px) {
  .content { padding-left: 13px; padding-right: 13px; }
  .training-wrap .daily-assignment, .training-wrap .daily-focus, .training-wrap .daily-agenda { padding: 17px; }
  .daily-timer-actions { gap: 7px; }
  .daily-focus > small { max-width: 143px; }
  .daily-path-link { gap: 0 9px; }
  .daily-path-link > small { font-size: 10px; }
  .daily-preview-bottom > span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
/* Account review extends the existing charcoal and lime workspace. */
.progress-wrap { max-width: 1020px; margin-inline: auto; }
.progress-wrap .panel { margin-bottom: 24px; }
.backend-practice { margin-block: 24px; }
.backend-practice ul { padding-left: 20px; line-height: 2.2; }
.progress-wrap .section-intro h1 { margin-top: 0; }
.progress-wrap p { max-width: 72ch; }
.sync-account { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.sync-account > div:first-child { flex: 1 1 420px; }
.sync-account .small-note { flex-basis: 100%; margin-bottom: 0; }
.sync-message { min-height: 1.5em; color: var(--text); overflow-wrap: anywhere; }
.sync-copies { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.sync-copies > section { min-width: 0; }
.sync-copies button { margin: 8px 8px 0 0; }
.sync-summary { margin: 16px 0; font-variant-numeric: tabular-nums; }
.sync-summary > div { display: flex; gap: 16px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sync-summary dd { margin: 0; font-weight: 600; }
.sync-delete input { display: block; width: min(100%,240px); margin: 8px 0 16px; }
.progress-wrap button, .progress-wrap input { min-height: 44px; }
.progress-wrap button:disabled { opacity: .5; cursor: not-allowed; }
.progress-wrap button:focus-visible, .progress-wrap input:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
@media (max-width: 640px) {
  .sync-copies { grid-template-columns: 1fr; gap: 24px; }
  .sync-copies > section + section { border-top: 1px solid var(--line); padding-top: 24px; }
  .sync-account .training-actions, .progress-wrap .training-actions { width: 100%; }
  .sync-account form, .sync-account form button { width: 100%; }
}
.mobile-menu { display: none; }
.email-signin { width: 100%; display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.email-signin p { color: var(--muted); }
.email-signin form { display: grid; gap: 12px; }
.email-signin input { width: 100%; min-height: 48px; font-size: 16px; padding: 12px; }
.email-signin label, .milestone-review > label { font-weight: 600; font-size: 14px; }
.email-signin .small-note { font-size: 12px; line-height: 1.7; }
.signin-secondary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.verified-label { display: inline-block; color: var(--mint); font-size: 12px; margin-top: 4px; }
.path-context { display: flex; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 24px; color: var(--muted); font-size: 12px; }
.curriculum-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 40px; align-items: start; }
.curriculum-nav { display: grid; gap: 4px; position: sticky; top: 24px; }
.curriculum-nav button { display: grid; gap: 6px; width: 100%; padding: 16px; text-align: left; color: var(--text); border: 1px solid transparent; background: transparent; }
.curriculum-nav button span { color: var(--muted); font-size: 11px; }
.curriculum-nav button strong { line-height: 1.45; font-size: 14px; font-weight: 500; }
.curriculum-nav button small { color: var(--muted); }
.curriculum-nav button.selected { background: #262f22; border-color: #475d35; }
.curriculum-nav button.selected strong { color: #d8f1b9; }
.curriculum-detail { min-width: 0; }
.curriculum-overview h2 { font-size: 28px; line-height: 1.25; margin-top: 0; }
.curriculum-location { font-size: 12px !important; color: var(--mint); }
.curriculum-facts { display: grid; gap: 16px; margin: 24px 0; }
.curriculum-facts dt { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.curriculum-facts dd { margin: 0; line-height: 1.6; }
.curriculum-concepts { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-left: 18px; color: var(--muted); }
.curriculum-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.curriculum-section > h3 { font-size: 20px; margin: 0 0 12px; }
.curriculum-section ul { padding-left: 20px; line-height: 1.9; }
.curriculum-section details { margin-top: 20px; }
.curriculum-section summary { padding: 10px 0; min-height: 44px; cursor: pointer; }
.curriculum-lessons { display: grid; gap: 0; }
.curriculum-lessons a { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.curriculum-lessons a > span:first-child { width: 48px; flex-shrink: 0; color: var(--muted); font-size: 12px; }
.curriculum-lessons a strong { flex: 1; font-size: 14px; font-weight: 500; }
.milestone-check { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 0; line-height: 1.7; }
.milestone-check input { flex-shrink: 0; margin-top: 5px; }
.milestone-review textarea { margin-top: 10px; min-height: 140px; width: 100%; }
.milestone-review > label:last-of-type { display: block; margin-top: 22px; }
@media (max-width: 1100px) {
  .curriculum-layout { grid-template-columns: 210px minmax(0,1fr); gap: 26px; }
  .email-signin { grid-template-columns: 1fr; gap: 24px; }
  .email-signin form { max-width: 460px; }
}
@media (max-width: 760px) {
  .sidebar > .nav { display: none; }
  .mobile-menu { display: block; margin-top: 16px; }
  .mobile-menu > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; font-size: 14px; cursor: pointer; list-style: none; }
  .mobile-menu > summary::-webkit-details-marker { display: none; }
  .mobile-menu > summary > span:last-child { display: flex; align-items: center; gap: 8px; color: var(--muted); }
  .mobile-menu > summary .icon { width: 18px; height: 18px; }
  .mobile-menu nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 0 16px; }
  .mobile-menu nav > details { grid-column: 1 / -1; }
  .mobile-menu nav details > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .mobile-menu nav a { display: flex; gap: 8px; align-items: center; min-height: 46px; padding: 10px; font-size: 13px; border-radius: 6px; }
  .mobile-menu nav a.active { background: #2b3424; color: #dcf5b8; }
  .mobile-menu nav > details > summary { padding: 14px 10px; min-height: 46px; }
  .mobile-menu .small-badge { display: none; }
  .curriculum-layout { grid-template-columns: 1fr; gap: 28px; }
  .curriculum-nav { position: static; grid-template-columns: 1fr 1fr; gap: 6px; }
  .curriculum-nav button { padding: 12px; background: var(--surface); border-color: var(--line); }
  .curriculum-nav button strong { font-size: 13px; }
  .curriculum-nav button small { display: none; }
  .curriculum-detail h2 { font-size: 27px; }
  .curriculum-detail p, .curriculum-section li { font-size: 16px; }
  .path-context { gap: 8px; flex-direction: column; font-size: 13px; }
  .curriculum-section .day-assignment { min-height: 60px; }
  .curriculum-section .day-assignment small { font-size: 12px; }
  .email-signin form { max-width: none; }
  .email-signin h2 { font-size: 23px; line-height: 1.3; }
  .email-signin p { font-size: 16px; }
  .email-signin .small-note { font-size: 13px; }
  .top-actions .search-btn { min-width: 44px; min-height: 44px; }
}
