/* Shared visual language. Load after the page's existing structural stylesheet. */
:root {
  color-scheme: dark;
  font-family: "Inter", "Arial", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #eaf0de;
  background: #0a0d0b;
  line-height: 1.65;
  font-synthesis: none;
  --green: #c4dfa8;
  --ink: #eeeede;
  --muted: #a0ac9c;
  --line: #303a30;
  --surface: #121b16;
  --surface-raised: #1b2920;
  --surface-deep: #0d120e;
  --accent: #c4dfa8;
  --accent-ink: #101608;
  --amber: #e9bb7a;
  --red: #ffa898;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --round-button: 999px;
  --round-card: 28px;
  --round-panel: 20px;
  --round-field: 16px;
  --jade: #c4dfa8;
  --jade-deep: #91b4a0;
  --cinnabar: #ca806b;
  --paper: #eee7d7;
  --serif: "Songti SC", "STSong", "SimSun", serif;
}

html { scroll-padding-top: 28px; scrollbar-color: #465440 #0a0d0b; }
body { background: #0a0d0b; color: var(--ink); font-size: 15px; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: #e4ff9d; }
main { min-width: 0; max-width: 1320px; padding: 32px 32px 64px; }
body.home-page main#app { padding-top: 36px; padding-bottom: 56px; }
h1, h2, h3, h4, h5, strong { color: var(--ink); }
h1, h2 { font-weight: 560; }
body:not(.home-page) main h1,
body.home-page #app h1 {
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.25;
  letter-spacing: -.055em;
  margin: 8px 0 16px;
}
body:not(.home-page) main h2,
body.home-page #app h2 { letter-spacing: -.035em; }
body:not(.home-page) main :is(h1, h2), body.home-page #app :is(h1, h2) { text-wrap: balance; }
p { color: #bec8b8; }
small, .muted, .hint, .source-label, .template-note, .sha-label,
.privacy-note, .header-note, .draft-state, .saved-provider, .action-hint {
  color: var(--muted);
}
.eyebrow {
  color: var(--accent);
  font: 11px/1.7 var(--mono);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin: 0 9px 4px 0;
  background: currentColor;
}
::selection { color: #0a0d0b; background: #d1ff5e; }

/* One wordmark and navigation rhythm across the existing page shells. */
body > header,
body > header.site-header,
body > header.workspace-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 30px;
  min-height: 86px;
  height: auto;
  max-width: none;
  padding: 20px max(32px, calc((100vw - 1400px) / 2 + 32px));
  margin: 0;
  background: #0a0d0b;
  border-bottom: 1px solid var(--line);
}
body > header .brand {
  flex-shrink: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.045em;
}
body > header .brand > span:not(.brand-mark) { color: inherit; }
body > header .brand > span > small,
body > header .brand > span:only-child { color: var(--muted); }
body > header .brand small {
  font: 9px/1.6 var(--mono);
  color: var(--muted);
  letter-spacing: .09em;
  margin-top: 4px;
}
.brand-mark {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  width: 35px;
  height: 35px;
}
body > header nav,
body > header .m2-navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 12px;
  min-width: 0;
}
body > header nav a { color: #b9c4b2; text-decoration: none; padding: 5px 0; }
body > header nav a:hover,
body > header nav a[aria-current] { color: var(--accent); }
body > header nav a[aria-current] { box-shadow: 0 1px var(--accent); }
#identity { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.header-badge { color: #c7d3be; background: #171f13; border-color: #35432a; border-radius: var(--round-button); }
.header-badge i, .tiny-dot { background: var(--accent); }
.site-footer { max-width: 1400px; border-color: var(--line); color: var(--muted); padding: 28px 32px; }
.site-footer span:first-child { color: var(--ink); font-weight: 500; }

/* Controls keep their original roles and dimensions. Accent is reserved for action/state. */
button, .button {
  border: 1px solid #3a4735;
  border-radius: var(--round-button);
  background: linear-gradient(145deg, #24352b, #17231c);
  color: #d5dfcc;
  box-shadow: none;
  font-weight: 500;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
button:hover, .button:hover { color: var(--ink); background: #253020; border-color: #7f9860; box-shadow: none; }
button.primary, .button.primary,
.form-footer > button,
.next-step-card > button,
.hero-actions .button,
button[type="submit"]:not(.secondary):not(.provider-card) {
  color: var(--accent-ink);
  background: linear-gradient(135deg, #e0edc6, var(--jade));
  border-color: #d3e6bb;
  box-shadow: inset 0 1px #ffffff60, 0 4px 18px #10241533;
}
button.primary:hover, .button.primary:hover,
.form-footer > button:hover,
.next-step-card > button:hover,
button[type="submit"]:not(.secondary):not(.provider-card):hover { background: #e1ff93; border-color: #e1ff93; }
button.secondary, .button.secondary { color: #c0cdb7; background: #171d16; border-color: var(--line); }
button.secondary:hover, .button.secondary:hover { color: var(--ink); background: #253020; }
button.quiet-button { background: transparent; border-color: transparent; color: var(--muted); }
button.quiet-button:hover { background: #19221a; color: var(--ink); }
button:disabled { opacity: .48; box-shadow: none; }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  background: #0d120e;
  color: var(--ink);
  border-color: #3a4535;
  border-radius: var(--round-field);
  min-width: 0;
  max-width: 100%;
  caret-color: var(--accent);
}
input::placeholder, textarea::placeholder { color: #88937f; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 2px solid #91b444; outline-offset: 2px; border-color: #a2c657; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
label, .field label, legend { color: #c7d2bc; }
label small, .field > small { color: var(--muted); }
fieldset { border-color: var(--line); border-radius: var(--round-field); min-width: 0; }
pre, .code,
.passport-card pre, .content-column pre {
  color: #cfddb9;
  background: #090d0a;
  border: 1px solid #2f392b;
  border-radius: var(--round-field);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
}
code { font-family: var(--mono); color: #d1dcbf; overflow-wrap: anywhere; }
details, .form-section + .form-section, .form-footer { border-color: var(--line); }
summary { color: #c4d8a0; }

/* Quiet surfaces and precise lines replace the former pastel card palette. */
body :is(.card, .rail, .skill, .candidate, .toolbar, .stat, .workspace-sidebar,
  .assessment-record, .assessment-queue-item, .assessment-editor-row,
  .stage-record, .formal-readiness, .evidence-card) {
  background: linear-gradient(145deg, #1c2a2090, var(--surface) 70%);
  border-color: #394a3e;
  border-radius: var(--round-card);
  box-shadow: inset 0 1px #edf7e008, 0 14px 36px #0000001c;
}
body :is(.block, .beginner-detail .block, .intro-panel, .next-step-card,
  .goal, .passport-facts section, .jit-learning, .reflection-outcome,
  .assessment-skill, .assessment-source-catalog, .assessment-factors > div,
  .assessment-empty, .assessment-promotion, .project-summary,
  .start-passed, .completion, .preset-info, .review-preview, .preview-diff) {
  background: #19211a;
  border-color: #364232;
  border-radius: var(--round-card);
  color: #c5d1ba;
}
body :is(.loading, .empty, .loading-state) { color: var(--muted); background: #101610; border-color: var(--line); border-radius: var(--round-card); }
body :is(.notice, .notice-info, .learning-entry, .learning-enabled) {
  color: #d0dbbf;
  background: #1a2115;
  border-color: #3b462d;
  border-radius: var(--round-card);
}
.notice p, .notice li { color: #becaae; }
body :is(.warning, .banner, .stage-lock, .task-warning,
  .passport-missing, .documentation-skip, .assessment-pending, .draft-state.dirty,
  .recheck-gates .gate-blocked) {
  color: #efd0a3;
  background: #2b2114;
  border-color: #6a5230;
  border-radius: var(--round-card);
}
body :is(.warning, .banner, .stage-lock, .task-warning,
  .documentation-skip, .assessment-pending) p,
.task-warning li { color: #dfc39b; }
body .error { color: var(--red); background: #2b1914; border-color: #784539; border-radius: var(--round-card); }
#error { color: var(--red); }
body .error:empty, #error:empty { padding: 0; border: 0; }
body :is(.toast, #notice) { background: #d1ff5e; color: #101608; border: 1px solid #d1ff5e; border-radius: var(--round-field); box-shadow: 0 14px 40px #0008; }
#notice:empty { border: 0; }
.pill, .tag, .badge, .header-badge, .assessment-status, .provider-total {
  color: #c9e3a8;
  background: #26321d;
  border-color: #445735;
  border-radius: var(--round-button);
}
body :is(.tag.preparation, .badge.hold, .assessment-status.is-pending) { color: #f3c890; background: #2e2315; border-color: #6d5330; }
.tag.learning { color: var(--accent); background: #222e15; border-color: #566b37; }
.success { color: var(--accent); }

/* A shared type scale keeps introductions proportional to the work below. */
.intro, .workspace-top, .settings-intro, .assessment-page-intro { margin-bottom: 24px; }
.intro p:not(.eyebrow), .workspace-top p, .settings-intro p { color: #acbba2; line-height: 1.85; }
.batch { border-color: var(--line); padding-left: 34px; }
.batch strong { font: 500 62px/1.1 var(--mono); color: var(--accent); }
.batch span, .batch small { color: var(--muted); }
.list-heading { padding: 24px 0 12px; margin-top: 24px; border-bottom: 1px solid var(--line); gap: 16px; }
.list-heading h2 { font-size: 23px; }
#count { color: var(--muted); }
.toolbar { gap: 14px; padding: 24px; margin: 24px 0; }
.toolbar label, .toolbar label:first-child { flex: 1 1 155px; min-width: 0; max-width: 100%; }
.toolbar input, .toolbar select { width: 100%; max-width: 100%; min-width: 0; }
.stat span { color: var(--muted); }
.stat strong { color: #d1ff5e; font-size: 30px; font-weight: 450; font-variant-numeric: tabular-nums; }
.row, .actions, .top-actions { max-width: 100%; }

/* Profile and Sandbox keep their familiar function below the new homepage. */
.dashboard-toolbar { border-color: var(--line); }
.breadcrumb, .account { color: var(--muted); }
.breadcrumb span { color: #526049; }
.user-avatar { color: var(--accent); background: #29341d; }
.intro-panel h2, .next-step-card h2 { color: var(--ink); }
.section-number, .quiet-list span, .aside-note { color: #a1b281; }
.quiet-list { color: #c4d1b4; }
.aside-note { border-color: #38452f; }
.section-heading > span { color: var(--accent); background: #242e1a; border-radius: var(--round-button); }
.section-heading p { color: var(--muted); }
.skill { color: var(--muted); }
.skill::before { background: var(--accent); border-radius: 0; }
.skill strong { color: var(--ink); font-weight: 500; }
.example-option { color: #c6d4b7; background: #1e281a; border-color: #3c4b31; border-radius: var(--round-button); }
.example-option:hover { background: #2a371f; }
.node { color: var(--muted); background: #121911; border-color: var(--line); border-radius: var(--round-button); }
.node.active { color: var(--accent); background: #233019; border-color: #59783e; }
.arrow { color: #abc97e; }
.completion-icon, .check-icon { color: var(--accent); background: #27331e; border-color: #526d35; }
.evidence-card a { overflow-wrap: anywhere; }
.workspace-content h3 { color: #c8dba9; }
.progress-summary > div > span { color: #abc48a; }
body.home-page #app .steps li { color: #a7b59d; border-radius: var(--round-button); }
body.home-page #app .steps li.done { color: #c2d69f; }
body.home-page #app .steps li.active { color: var(--accent); background: #26331b; }
body.home-page #app .step-marker { color: #b6c59f; background: #192115; border-color: #465637; border-radius: var(--round-button); }
body.home-page #app .steps li.done .step-marker { color: #cae6a0; background: #283819; border-color: #526d36; }
body.home-page #app .steps li.active .step-marker { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
body.home-page #app :is(.hero-visual, .contribution-window, .evidence-float, .journey-grid article) { background: #172015; border-color: #3b4b30; border-radius: var(--round-card); box-shadow: none; }
body.home-page #app .window-bar { background: #0e140d; border-color: var(--line); color: var(--muted); }
body.home-page #app :is(.journey-icon, .evidence-icon, .review-avatar) { color: #c0d999; background: #29371e; border-color: #445935; border-radius: var(--round-field); }
body.home-page #app :is(.mini-brand, .demo-label, .visual-bottom, .hero-tags, .text-link, .landing-bottom, .journey-caption) { color: #9fae91; }
body.home-page #app .hero-tags span::before { color: var(--accent); }
body.home-page #app .merge-preview { color: #d1c5ef; background: #28213a; }
body.home-page #app .evidence-float strong, body.home-page #app .landing-bottom strong { color: #deebc8; }
body.home-page #app .journey-caption { border-color: var(--line); }

/* Workspace: chapter rail, stage forms, and secondary evidence. */
.workspace-top h1 { max-width: 25em; }
.rail { padding: 22px 12px; }
.rail .eyebrow { font-size: 10px; }
.steps button, .detail-steps button { color: #a7b59d; }
.steps button:hover, .detail-steps button:hover { color: var(--ink); background: #1d2817; }
.steps button[aria-current], .detail-steps button[aria-current] { color: var(--accent); background: #26331b; border-color: #465833; }
.step-number { color: #c3d0b4; border-color: #49593c; border-radius: var(--round-button); }
.step-done .step-number { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.steps small, .detail-steps small { color: #a3b38e; }
.goal { border-left: 2px solid var(--accent); }
.goal strong { color: #c1d59f; }
.guide-grid { border-color: var(--line); }
.guide-grid h3 { color: #c4d7a6; }
.guide-grid p, .record-guide, .record-guide strong { color: #c4d0b9; }
.side-column .card { background: #111712; }
.side-column h2 { color: #e1eccf; font-weight: 500; }
.github-detail summary, .jargon summary, .jargon p,
.mentor-history summary, .completed-record summary, .formal-readiness > summary { color: #c1d69f; }
.answer, .activity li, .mentor-history, .mentor-record, .jargon,
.practice-summary, .practice-row, .teaching-checklist { border-color: var(--line); }
.activity small { color: var(--muted); }
.activity strong { color: #abc988; }
.start-check { background: #191e14; border-color: #3d4530; border-radius: var(--round-field); }
.start-check p { color: #b7c1a8; }
.start-status { color: #efc18a; }
.start-passed .start-status { color: var(--accent); }
.jit-return { border-color: #87a94b; }
.stage-record > summary::before { color: var(--accent); }
.stage-record[open] > summary { border-color: var(--line); }
.stage-record > summary > small, .jit-learning summary small { color: var(--muted); }
.reflection-outcome { border-left-color: var(--accent); }

/* Candidate and task pages use editorial rows, then readable evidence blocks. */
.repository-heading { background: #141d11; border-left-color: var(--accent); border-radius: 0; margin-top: 34px; }
.repository-heading h3 { font-weight: 500; }
.repository-heading p, .title p, .title small, .task-card p,
.block ul, .block small, .status small, .metric small, .metric em { color: var(--muted); }
.candidate > summary { padding-top: 24px; padding-bottom: 24px; }
.candidate[open] { border-color: #6a844b; }
.candidate[open] > summary { background: #16200f; }
.rank { color: #a6bf84; font-family: var(--mono); }
.title h3 { color: #e4edda; font-size: 19px; font-weight: 550; line-height: 1.5; }
.metric strong { color: #ddf6b3; font-weight: 450; }
.detail, .score-row, .criterion-evidence, .evidence,
.beginner-detail .summary-grid { border-color: var(--line); }
.detail details summary, .evidence > summary, footer summary { color: #c0d99b; }
.beginner-detail .task-summary, .task-card .task-summary,
.beginner-detail .block ul { color: #d3dfc4; }
.summary-grid strong { color: #e2edce; font-weight: 500; }
.recheck-gates li { color: #c8d6bc; background: #182118; border-color: #86a161; border-radius: var(--round-field); }
.recheck-gates .gate-unknown { border-color: #8d9b93; }
.project-summary code { color: #cdd8bb; }
#projectVerification [data-project-message] { color: #d5e4bc; }

/* Diagnostics and evidence assessment. */
.choice { color: #d3ddc5; }
.choice input { width: auto; }
.diagnostic-main .question { margin-top: 24px; }
.diagnostic-main .summary-grid > .block { border: 1px solid #3b492f; }
.assessment-tabs button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.assessment-skill > .assessment-heading > strong { color: #cde3af; }
.assessment-balance { color: #e0f1c4; font-weight: 450; }
.assessment-balance > span, .assessment-record summary small,
.assessment-queue-item summary small, .assessment-gate .assessment-criteria,
.assessment-observation > small, .assessment-review > small,
.assessment-promotion > small { color: var(--muted); }
.assessment-record > summary::before, .assessment-queue-item > summary::before { color: var(--accent); }
.assessment-history, .assessment-gate .assessment-criteria,
.assessment-observation, .assessment-review, .assessment-promotion,
.assessment-source-catalog article, .assessment-admin, .assessment-unavailable { border-color: var(--line); }
.assessment-factors dt { color: var(--muted); }
.assessment-factors dd { color: var(--ink); }
.assessment-editor-row button { background: #19221a; color: #c5d3b4; }

/* API directory: one vivid selection, muted alternative provider tiles. */
.provider-search { background: #0d120e; border-color: #3a4535; border-radius: var(--round-field); }
.provider-search span { color: #b4c599; }
.provider-search input { background: transparent; border: 0; }
.provider-search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.provider-search input:focus { outline: 0; }
.provider-filters button { background: #1b2318; color: #b2c3a0; border-color: #34412a; }
.provider-filters button[aria-pressed="true"] { color: var(--accent); background: #29391a; border-color: #779f45; }
.provider-cards { gap: 10px; scrollbar-color: #637d45 transparent; }
.provider-card { background: #182016; color: #c5d1b9; border-color: #2d3827; border-radius: var(--round-field); }
.provider-card:hover { background: #23311b; color: #e0f0c8; border-color: #6d8b4a; }
.provider-card.selected { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.provider-mark { background: #293822; color: #d3e7b3; border: 1px solid #486337; border-radius: var(--round-button); box-shadow: none; }
.provider-card[data-category="cloud"] .provider-mark { color: #aacfe1; background: #1c2c2c; border-color: #3f6061; }
.provider-card[data-category="coding"] .provider-mark { color: #d8c4f2; background: #292334; border-color: #59426f; }
.provider-card.selected .provider-mark { color: #17220b; background: #b4dc50; border-color: #8aaf2d; }
.provider-empty, .catalog-footer, .preset-info p, .settings-main label small { color: var(--muted); }
.preset-info { border-left: 2px solid var(--accent); }
.advanced-connection { border-color: var(--line); }
.advanced-connection summary { color: #c3d8a3; }
.advanced-connection summary span { color: var(--muted); }
.settings-main input:focus, .settings-main select:focus,
.settings-main button:focus-visible { outline-color: var(--accent); }
.settings-main dl dt { color: var(--muted); }

/* Space is reserved for the separate hero-zone and its own scene stylesheet. */
@media (max-width: 980px) {
  body > header,
  body > header.site-header,
  body > header.workspace-header { padding-left: 24px; padding-right: 24px; gap: 15px 24px; }
  body > header .header-note { display: none; }
  main { padding-left: 24px; padding-right: 24px; }
  .candidate > summary { grid-template-columns: 24px minmax(0, 1fr) 24px; gap: 10px 16px; }
  .candidate > summary .title { grid-column: 2; }
  .candidate > summary .metric { display: block; grid-row: 2; grid-column: 2 / -1; width: 50%; margin-left: 0; justify-self: start; }
  .candidate > summary .metric + .metric { grid-column: 2 / -1; margin-left: 0; justify-self: end; }
  .candidate > summary .status { grid-row: 3; grid-column: 2 / -1; }
  .candidate > summary .arrow { grid-column: 3; grid-row: 1; justify-self: end; }
  .task-card { align-items: flex-start; }
}
@media (max-width: 760px) {
  body > header,
  body > header.site-header,
  body > header.workspace-header { min-height: 0; padding: 18px 18px 15px; gap: 12px; }
  body > header .brand { font-size: 18px; }
  body > header nav, body > header .m2-navigation { flex-basis: 100%; gap: 5px 17px; font-size: 11px; }
  body > header #identity { width: 100%; margin-left: 0; font-size: 10px; }
  .header-badge { font-size: 10px; padding: 5px 8px; }
  main, .settings-main, .verification-main { padding: 30px 18px 60px; }
  body.home-page main#app { padding: 50px 18px 60px; }
  body:not(.home-page) main h1, body.home-page #app h1 { font-size: 30px; line-height: 1.3; letter-spacing: -.035em; margin-bottom: 14px; }
  .intro, .workspace-top, .settings-intro, .assessment-page-intro { margin-bottom: 20px; }
  .intro { align-items: flex-start; gap: 18px; }
  .intro p:not(.eyebrow) { font-size: 13px; }
  .intro > div:first-child { min-width: 0; }
  .batch { min-width: 66px; padding: 3px 0 3px 12px; }
  .batch strong { font-size: 34px; }
  .batch span, .batch small { font-size: 10px; }
  .card, .side-column .card, .assessment-page-content { padding: 20px; }
  .rail { padding: 17px 12px; }
  .guide-grid { gap: 16px; }
  .stage-record > summary > small { white-space: normal; text-align: right; max-width: 90px; }
  .stage-record { padding: 13px 12px; }
  .toolbar { padding: 18px; gap: 12px; }
  .toolbar label, .toolbar label:first-child { flex-basis: 140px; }
  .list-heading { flex-wrap: wrap; gap: 12px; }
  .list-heading h2 { font-size: 22px; }
  .task-card { flex-direction: column; gap: 18px; }
  .candidate > summary { padding: 19px 15px; gap: 10px; }
  .title h3 { font-size: 17px; }
  .candidate > summary .metric strong { font-size: 20px; }
  .detail { padding: 0 15px 18px; }
  .score-row { align-items: flex-start; gap: 10px; font-size: 12px; }
  .score-row > span:last-child { text-align: right; }
  .repository-heading { padding: 15px 14px; }
  .provider-cards { gap: 8px; }
  .provider-card { min-height: 66px; }
  .provider-name { font-size: 12px; }
  .connection-heading { flex-wrap: wrap; }
  .catalog-footer { align-items: flex-start; flex-wrap: wrap; gap: 7px; }
  .advanced-connection summary span { float: none; display: block; margin-top: 3px; }
  .settings-main dl { grid-template-columns: 75px minmax(0, 1fr); font-size: 12px; }
  .site-footer { padding: 24px 18px; margin-top: 32px; }
}
@media (max-width: 420px) {
  .intro { flex-wrap: wrap; }
  .intro .batch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; border-left: 0; padding: 0; }
  .intro .batch strong { font-size: 26px; }
  .intro .batch small { flex-basis: 100%; }
  body:not(.home-page) main h1, body.home-page #app h1 { font-size: 29px; }
  .toolbar label, .toolbar label:first-child { flex-basis: 125px; }
  .assessment-heading > a { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button, .button, .provider-card { transition: none; }
}

/* Shared entrance and quiet standby never intercept navigation. */
.entry-loader[hidden]{display:none}
.entry-loader.is-loading{animation:fc-entry-dismiss .25s 1.6s both}
@keyframes fc-entry-dismiss{from{opacity:1;visibility:visible}to{opacity:0;visibility:hidden}}
.entry-loader{position:fixed;inset:0;z-index:50;background:#0a0d0bf5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .42s,visibility .42s}.entry-loader.is-loading{opacity:1;visibility:visible}.entry-loader.is-loaded{opacity:0;visibility:hidden}
.loader-orbit{position:relative;display:grid;place-items:center;width:115px;height:115px;perspective:300px;margin-bottom:10px}.loader-orbit i{position:absolute;inset:5px;border:1px solid #d1ff5e;transform:rotateY(55deg) rotateZ(25deg);animation:fc-orbit 2.4s linear infinite}.loader-orbit i:nth-child(2){inset:14px;border-color:#88a955;animation-direction:reverse;animation-duration:3.5s}.loader-orbit i:nth-child(3){inset:28px;border-color:#4b6134;animation-duration:1.8s}.loader-orbit b{font:44px/1 Arial,sans-serif;color:#d1ff5e;font-weight:300}.loader-word{font:10px/1.8 ui-monospace,monospace;letter-spacing:4px;text-align:center;color:#a5b78a}.loader-word span{display:block;font-size:14px;letter-spacing:2px;color:#eaf0de;margin-top:8px}.entry-loader small{font:10px ui-monospace,monospace;color:#64754e;letter-spacing:1px}.loader-track{width:140px;height:1px;background:#313e23;overflow:hidden}.loader-track span{display:block;width:50%;height:100%;background:#d1ff5e;animation:fc-loading 1.2s ease-in-out infinite}
.motion-toggle{position:fixed;right:20px;bottom:18px;z-index:25;display:flex;align-items:center;gap:9px;border:1px solid #596548;color:#bac6aa;background:#0d120bed;backdrop-filter:blur(9px);padding:7px 11px;font-size:10px;font-weight:400;border-radius:2px;box-shadow:none}.motion-toggle:hover{color:#d1ff5e;background:#1c2415;box-shadow:none}.motion-toggle>span:first-child{font-size:13px;min-width:10px}.idle-signal{position:fixed;right:23px;bottom:70px;z-index:24;display:flex;align-items:center;gap:12px;padding:12px;background:#0c120bdd;border:1px solid #36472c;pointer-events:none;animation:fc-idle-in .8s ease both}.idle-signal[hidden]{display:none}.idle-signal small{font-size:10px;letter-spacing:1px;color:#91a578}.idle-orbit{position:relative;display:block;width:33px;height:33px;perspective:120px}.idle-orbit i{position:absolute;inset:0;border:1px solid #a4d154;animation:fc-orbit 7s linear infinite}.idle-orbit i:nth-child(2){inset:5px;animation-direction:reverse;animation-duration:11s}.idle-orbit i:nth-child(3){inset:12px;background:#d1ff5e;border:0;animation:fc-breathe 3s ease-in-out infinite}
.loading,.loading-state{color:#9aaa89}.loading:before,.loading-state:before{content:'';display:block;width:30px;height:30px;border:1px solid #456035;border-top-color:#d1ff5e;transform:rotate(45deg);margin:0 auto 20px;animation:fc-spin 2s linear infinite}
@keyframes fc-orbit{to{transform:rotateY(235deg) rotateZ(205deg)}}@keyframes fc-loading{0%{transform:translateX(-110%)}100%{transform:translateX(300%)}}@keyframes fc-spin{to{transform:rotate(405deg)}}@keyframes fc-breathe{50%{opacity:.35;transform:scale(.65)}}@keyframes fc-idle-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
html[data-motion=paused]{scroll-behavior:auto}html[data-motion=paused] *,html[data-motion=paused] *:before,html[data-motion=paused] *:after{animation:none!important;transition:none!important}
@media(max-width:600px){.motion-toggle{right:14px;bottom:14px;padding:7px 9px;font-size:9px}.idle-signal{right:14px;bottom:61px;padding:10px}.idle-signal small{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}.entry-loader{display:none}}

/* Jade, a moon window and a small seal: rounded contours with clear controls. */
body:not(.home-page) main {
  background-image: radial-gradient(circle at calc(100% - 115px) 110px,
    transparent 0 61px, #acc7ad1b 62px 63px, transparent 64px 82px,
    #acc7ad0d 83px 84px, transparent 85px);
  background-repeat: no-repeat;
}
body:not(.home-page) main h1,
body.home-page #app h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.035em;
}
.eyebrow::before {
  width: 6px;
  height: 6px;
  margin: 0 10px 1px 0;
  border-radius: 2px;
  background: var(--cinnabar);
}
body > header nav a,
body > header .m2-navigation a {
  padding: 7px 12px;
  border-radius: var(--round-button);
  transition: background .18s ease, color .18s ease;
}
body > header nav a:hover,
body > header nav a[aria-current] {
  background: #26392c;
  color: #d6e9c6;
  box-shadow: none;
}
button, .button {
  min-height: 42px;
  border-radius: var(--round-button);
}
button:hover, .button:hover {
  border-color: #90b496;
  box-shadow: inset 0 1px #eff9df0a;
}
button:disabled { box-shadow: none; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  border-radius: var(--round-field);
  border-color: #405447;
  box-shadow: inset 0 2px 8px #00000012;
  transition: border-color .18s ease, background .18s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: #b8cfa9;
  outline-color: #a7c99d;
  background-color: #142018;
}
body :is(.block, .beginner-detail .block, .goal, .passport-facts section,
  .jit-learning, .reflection-outcome, .assessment-skill, .assessment-factors > div,
  .assessment-empty, .assessment-promotion, .project-summary, .start-passed,
  .completion, .preset-info, .review-preview, .preview-diff, .start-check,
  .stage-record, .assessment-editor-row, .formal-readiness) {
  border-radius: var(--round-panel);
}
body :is(.notice, .notice-info, .learning-entry, .learning-enabled, .warning,
  .banner, .stage-lock, .task-warning, .passport-missing, .documentation-skip,
  .assessment-pending, .error, .toast, #notice) {
  border-radius: var(--round-panel);
}
body :is(.rail, .workspace-sidebar, .toolbar, .intro-panel, .next-step-card) {
  border-radius: var(--round-card);
}
.pill, .tag, .badge, .header-badge, .assessment-status, .provider-total,
body .draft-state.dirty { border-radius: var(--round-button); }
.step-number, .step-marker, .completion-icon, .check-icon,
body.home-page #app .step-marker { border-radius: 50%; }
.steps button, .detail-steps button,
body.home-page #app .steps li { border-radius: 16px; }
.steps button, .detail-steps button { min-height: 40px; }
body.home-page #app .steps li.active { background: #283a28; }
.skill::before { height: 3px; width: 24px; border-radius: 999px; background: var(--jade-deep); }
body .repository-heading {
  border-left: 0;
  border: 1px solid #394a3c;
  border-radius: var(--round-panel);
  background: linear-gradient(105deg, #26392990, #142018);
}
body .recheck-gates li, .node, .example-option { border-radius: 14px; }
pre, .code, .passport-card pre, .content-column pre { border-radius: 18px; }
.provider-card { border-radius: 18px; background: linear-gradient(145deg, #253329, #182219); }
.provider-card:hover { background: #2c4031; border-color: #8aa98e; }
.provider-card.selected { background: linear-gradient(135deg, #dfebc5, #bad69f); border-color: #cfe1b7; }
.provider-mark { border-radius: 50%; }
.provider-card.selected .provider-mark { background: #a5c088; border-color: #93b074; }
.provider-search { border-radius: var(--round-button); padding-left: 17px; }
.provider-search input { box-shadow: none; background: transparent; }
.provider-search input:focus { background: transparent; }
.provider-filters button { border-radius: var(--round-button); }
.provider-filters button[aria-pressed="true"] { background: #304434; border-color: #8eb08b; color: #d0e4bf; }
.assessment-tabs button[aria-pressed="true"] { background: var(--jade); }
.entry-loader { background: radial-gradient(ellipse at 50% 45%, #1a2b22f8, #0a0d0bfa 65%); }
.loader-orbit i, .idle-orbit i, .loading:before, .loading-state:before { border-radius: 50%; }
.loader-orbit b { font: 38px/1 var(--serif); color: var(--cinnabar); }
.loader-word span { font-family: var(--serif); font-size: 18px; letter-spacing: .15em; color: var(--paper); }
.loader-track, .loader-track span { border-radius: 999px; }
.motion-toggle { min-height: 42px; border-radius: 999px; padding: 9px 16px; border-color: #70826a; background: #17221ae8; }
.motion-toggle:hover { background: #26372a; }
.idle-signal { border-radius: 999px; }
@media (max-width:760px) {
  :root { --round-card: 24px; --round-panel: 18px; --round-field: 14px; }
  body > header nav, body > header .m2-navigation { gap: 5px 7px; }
  body > header nav a, body > header .m2-navigation a { padding: 6px 9px; }
  body:not(.home-page) main { background-position: 55px -30px; }
  .motion-toggle { min-height: 42px; padding: 8px 13px; }
  .idle-signal { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; }
  .idle-signal small { display: none; }
}
@media (prefers-reduced-motion:reduce) {
  body > header nav a, body > header .m2-navigation a,
  input, select, textarea { transition: none; }
}

/* Readable controls, shorter cards and a fuller working canvas. */
button, .button {
  min-height: 44px; padding: 10px 17px;
  font-size: 14px; line-height: 1.5; letter-spacing: 0;
}
body > header nav, body > header .m2-navigation { font-size: 14px; }
body > header nav a { line-height: 1.5; }
.muted, .hint { font-size: 14px; line-height: 1.7; }
label, .field label { font-size: 14px; line-height: 1.55; }
label small, .field > small { font-size: 12px; line-height: 1.6; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  font-size: 15px; line-height: 1.5; padding: 11px 13px;
}
.pill, .tag, .badge, .assessment-status, .provider-total {
  font-size: 12px; line-height: 1.5; padding: 5px 10px;
}
.card { padding: 24px; }
.list-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 28px; align-items: start; max-width: none;
}
.list-intro > :not(.actions) { grid-column: 1; }
.list-intro > .actions {
  grid-column: 2; grid-row: 1 / span 3; align-self: center;
  flex-direction: column; align-items: stretch; gap: 10px;
}
.list-intro .plain-link { font-size: 13px; text-align: center; }
.task-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.task-item { display: flex; flex-direction: column; align-items: flex-start; }
.task-item h2 { font-size: 21px; line-height: 1.4; margin: 14px 0 8px; }
.task-item > p { margin: 5px 0; font-size: 14px; }
.task-item > .actions {
  margin-top: auto; padding-top: 20px; width: 100%; gap: 12px;
}
.task-item .actions > a:not(.button) { font-size: 13px; }
body:not(.home-page) main .workspace-top h1 { font-size: clamp(29px, 2.7vw, 36px); }
.side-column .card { padding: 20px; }
.side-column p, .side-column li, .side-column label { font-size: 13px; line-height: 1.65; }
.side-column button { font-size: 13px; padding: 10px 13px; }
.side-column select, .side-column textarea { font-size: 14px; padding: 10px 12px; }
.side-column h2 { font-size: 18px; }
.steps button, .detail-steps button { font-size: 14px; line-height: 1.45; }
.steps small, .detail-steps small { font-size: 11px; }
.form-bottom .hint, .source-label, .action-hint, .draft-state { font-size: 12px; }
.settings-main { max-width: 1320px; }
.settings-intro .muted { max-width: 720px; }
.provider-heading h2 { font-size: 23px; }
.provider-heading .muted { font-size: 14px; }
.provider-filters button { font-size: 13px; padding: 8px 13px; min-height: 38px; }
.provider-card { min-height: 60px; padding: 10px 12px; gap: 10px; }
.provider-name { font-size: 14px; line-height: 1.45; }
.provider-search input { font-size: 14px; padding: 11px 0; }
.settings-main .actions button { font-size: 14px; }
.advanced-fields select { font-size: 14px; }
.motion-toggle { font-size: 12px; min-height: 42px; padding: 9px 14px; }
body.home-page #app .dashboard-toolbar { padding: 14px 0; margin-bottom: 22px; }
body.home-page #app .page-heading { margin: 24px 0 18px; }
body.home-page #app .page-heading .muted { font-size: 15px; }
body.home-page #app .skills { margin: 22px 0 14px; gap: 14px; }
body.home-page #app .skill { padding: 20px; font-size: 14px; }
body.home-page #app .skill::before { margin-bottom: 10px; }
body.home-page #app .skill strong { font-size: 24px; line-height: 1.3; margin: 12px 0 5px; }
body.home-page #app .skill small { font-size: 12px; }
body.home-page #app .next-step-card { padding: 26px; margin-top: 24px; }
body.home-page #app .next-step-card h2 { font-size: 28px; line-height: 1.35; margin: 9px 0 12px; }
body.home-page #app .next-step-card > button { margin-top: 10px; }
@media (max-width:1100px) {
  .task-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-intro { column-gap: 20px; }
}
@media (max-width:760px) {
  main, .settings-main, .verification-main { padding: 24px 18px 56px; }
  body > header nav, body > header .m2-navigation { font-size: 13px; }
  .workspace-header nav { gap: 4px; }
  .workspace-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; padding: 8px 7px; }
  .card { padding: 20px; }
  .list-intro { display: block; }
  .list-intro > .actions { flex-direction: row; align-items: center; margin-top: 16px; gap: 14px; }
  .task-list { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
  .task-item h2 { font-size: 21px; }
  .task-item > .actions { padding-top: 16px; }
  body:not(.home-page) main .workspace-top h1 { font-size: 29px; }
  .provider-card { min-height: 64px; padding: 10px; gap: 8px; }
  .provider-name { font-size: 13px; }
  .provider-filters button { min-height: 44px; font-size: 12px; padding: 8px 11px; }
  .provider-heading h2 { font-size: 21px; }
  .motion-toggle { font-size: 12px; min-height: 44px; padding: 9px 13px; }
  body.home-page #app .skills { gap: 10px; }
  body.home-page #app .skill { padding: 17px 14px; font-size: 13px; }
  body.home-page #app .skill strong { font-size: 21px; }
  body.home-page #app .skill small { font-size: 11px; }
  body.home-page #app .next-step-card { padding: 22px; }
  body.home-page #app .next-step-card h2 { font-size: 24px; }
}

/* Gongbi dragon and phoenix illustrations connect the operational pages to the cover. */
.heritage-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.heritage-glyph { display: block; width: 100%; height: auto; pointer-events: none; }
img.heritage-glyph { object-fit: contain; aspect-ratio: 1; user-select: none; }
.heritage-brand {
  display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px;
  margin-right: 10px; border: 1px solid #9bb68a55; border-radius: 50%;
  color: #cadcb4; background: radial-gradient(circle at 32% 24%, #31503770, transparent 80%);
}
.heritage-brand .heritage-glyph { width: 30px; height: 30px; }
body > header .brand { display: inline-flex; align-items: center; }
body:not(.home-page) main { position: relative; z-index: 1; background-image: none; }
.heritage-field { position: absolute; top: 90px; left: 0; right: 0; height: 400px; z-index: 0; overflow: hidden; pointer-events: none; }
.heritage-field .heritage-glyph { position: absolute; }
.heritage-field .heritage-dragon { width: 255px; top: 8px; right: 30px; filter: saturate(.45) brightness(.75); opacity: .13; }
.heritage-field .heritage-phoenix { width: 175px; top: 30px; right: 220px; filter: saturate(.50) brightness(.8); opacity: .14; }
.heritage-field .heritage-cloud { width: 240px; top: 90px; right: 45px; color: #b8c7a6; opacity: .15; }
.loader-orbit .loader-phoenix { display: grid; place-items: center; width: 92px; height: 92px; color: #d59e83; }
.loader-phoenix .heritage-glyph { width: 92px; height: 92px; }
.idle-orbit > .heritage-glyph { position: absolute; inset: 3px; width: 27px; height: 27px; color: #d5a88b; }
@media (max-width:760px) {
  .heritage-brand { width: 32px; height: 32px; flex-basis: 32px; margin-right: 8px; }
  .heritage-brand .heritage-glyph { width: 28px; height: 28px; }
  .heritage-field { top: 128px; height: 360px; }
  .heritage-field .heritage-dragon { width: 175px; right: -32px; top: 8px; opacity: .09; }
  .heritage-field .heritage-phoenix { width: 120px; right: 88px; top: 8px; opacity: .10; }
  .heritage-field .heritage-cloud { width: 190px; right: -20px; top: 85px; opacity: .09; }
}
