/* Shared palette for the existing interface and the new presentation layer. */
:root {
  color-scheme: light;
  --bg: #f6f8fa;
  --surface: #fff;
  --surface-soft: #f4f7f8;
  --surface-raised: #fafcfc;
  --ink: #172d35;
  --muted: #647982;
  --line: #e1e9ec;
  --green: #087f72;
  --light: #e6f5f0;
  --white: var(--surface);
  --accent-line: #b9ddd1;
  --on-accent: #fff;
  --violet: #7561c7;
  --violet-light: #f0ecfc;
  --peach: #a96d43;
  --peach-light: #fbf0e5;
  --warning: #865d13;
  --warning-bg: #fff6e3;
  --warning-line: #ecdbb5;
  --danger: #ad464a;
  --danger-bg: #fcecef;
  --danger-line: #ebc7cc;
  --shadow: 0 12px 35px #17333d08;
  --focus: #0b887922;
  --image-bg: #eef3f3;
  --checker: #e4eae8;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101a21;
  --surface: #18262f;
  --surface-soft: #1c2d37;
  --surface-raised: #20333d;
  --ink: #e5f0f2;
  --muted: #a3b6bf;
  --line: #30444e;
  --green: #6edac0;
  --light: #203f3a;
  --accent-line: #3d7468;
  --on-accent: #102c26;
  --violet: #c2b5ff;
  --violet-light: #332f4d;
  --peach: #ecc2a1;
  --peach-light: #41342d;
  --warning: #f1d194;
  --warning-bg: #3b3224;
  --warning-line: #6a5734;
  --danger: #f1a3ab;
  --danger-bg: #402c34;
  --danger-line: #71404a;
  --shadow: 0 12px 35px #00000018;
  --focus: #6edac025;
  --image-bg: #122029;
  --checker: #263b43;
}
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { font-size: 14px; line-height: 1.7; }
svg { width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
button, a, input, textarea, select, summary { touch-action: manipulation; }
button { transition: background .18s, border-color .18s, color .18s, box-shadow .18s; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--focus); }
::selection { background: var(--light); color: var(--ink); }
.skip-link { position: fixed; right: 20px; top: -70px; background: var(--green); color: var(--on-accent); padding: 12px 20px; border-radius: 12px; z-index: 200; }
.skip-link:focus { top: 15px; }
.sidebar { width: 260px; padding: 32px 22px 24px; background: var(--surface); z-index: 25; }
.brand { gap: 13px; padding: 0 8px; font-size: 32px; }
.brand-mark { background: #163f39; color: #a5ebd4; width: 48px; height: 48px; border-radius: 16px 16px 5px 16px; }
.brand small { font-size: 11px; margin-top: 8px; }
.sidebar-label { color: var(--muted); margin: 40px 14px 15px; font-size: 11px; }
#nav { display: flex; flex-direction: column; gap: 8px; margin: 0; overflow: visible; }
#nav button { min-height: 52px; font-size: 13px; padding: 12px 14px; margin: 0; color: var(--muted); border: 1px solid transparent; gap: 12px; }
#nav button:hover { background: var(--surface-soft); color: var(--ink); }
#nav button.active { background: var(--light); color: var(--green); border-color: var(--accent-line); }
#nav .icon { display: grid; place-items: center; width: 22px; }
.nav-step { margin-right: auto; width: 23px; height: 23px; font-size: 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; opacity: .8; }
#nav button.active .nav-step { border-color: var(--accent-line); }
.sidebar-note { margin-top: 36px; padding: 23px 18px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 16px; }
.sidebar-note > span { display: block; font-size: 29px; color: var(--green); margin-bottom: 9px; }
.sidebar-note strong { font-size: 13px; }
.sidebar-note p { font-size: 11px; color: var(--muted); margin: 8px 0 0; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.sidebar-bottom p { font-size: 11px; color: var(--muted); margin: 9px 0 0; }
main { margin-right: 260px; padding: 0 clamp(24px, 3.3vw, 60px); min-width: 0; }
.workspace-header { height: 84px; position: sticky; top: 0; background: var(--bg); z-index: 12; margin-bottom: 25px; gap: 16px; }
.header-location, .header-controls { display: flex; align-items: center; gap: 12px; }
.header-controls { gap: 8px; }
.header-tool { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-height: 39px; font-size: 11px; white-space: nowrap; }
.header-tool svg { width: 17px; height: 17px; }
.header-tool:hover { color: var(--green); border-color: var(--accent-line); }
#header-actions { margin-right: 12px; gap: 10px; padding-right: 17px; border-right: 1px solid var(--line); }
#header-actions > .subtext { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.avatar { background: var(--violet-light); color: var(--violet); font-size: 12px; width: 35px; height: 35px; }
.icon-button { display: inline-grid; place-items: center; padding: 8px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); background: var(--surface); width: 40px; height: 40px; }
.menu-toggle, .sidebar-backdrop { display: none; }
.breadcrumb { font-size: 11px; }
.breadcrumb span { margin: 0 9px; }
.breadcrumb b { font-weight: 600; }
#content { outline: none; min-height: 50vh; }
.page-heading { margin: 28px 0 24px; align-items: flex-start; }
h1 { font-size: clamp(25px, 2.3vw, 34px); font-weight: 750; letter-spacing: -.5px; }
.eyebrow { font-size: 11px; letter-spacing: 0; font-weight: 600; margin-bottom: 10px; }
.page-heading .subtext { max-width: 680px; line-height: 1.95; }
.page-heading > .button { margin-top: 23px; }
.button, button.primary { background: var(--green); color: var(--on-accent); min-height: 44px; border-radius: 11px; font-weight: 600; padding: 11px 20px; font-size: 12px; }
.button.green { background: var(--green); color: var(--on-accent); }
.button:hover:not(:disabled) { box-shadow: 0 4px 18px var(--focus); filter: brightness(.96); }
.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); border-radius: 10px; min-height: 40px; font-size: 12px; }
.secondary:hover:not(:disabled) { border-color: var(--accent-line); background: var(--light); color: var(--green); }
.text-button:hover { color: var(--green); }
.chip.active { background: var(--green); color: var(--on-accent); border-color: var(--green); }
.panel, .job, .card, .identity-summary, .stat { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); border-radius: 17px; }
.panel { padding: clamp(22px, 2.5vw, 32px); }
.panel h2 { font-size: 20px; margin-bottom: 22px; }
.panel h2:focus, .request-review h2:focus { outline: none; }
.banner { background: var(--light); border-color: var(--accent-line); padding: 24px 28px; border-radius: 17px; }
.banner h3 { font-size: 17px; }
.banner p { color: var(--muted); max-width: 640px; line-height: 1.9; }
.stats { margin: 24px 0; gap: 15px; }
.stat { padding: 19px 23px; gap: 15px; }
.stat strong { font-size: 29px; font-weight: 600; }
.stat span { font-size: 11px; }
.stat > div { display: flex; flex-direction: column; gap: 3px; }
.stat-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: var(--green); background: var(--light); flex-shrink: 0; }
.stat-icon.violet { color: var(--violet); background: var(--violet-light); }
.stat-icon.peach { color: var(--peach); background: var(--peach-light); }
.library-overview { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin: 22px 0 25px; }
.library-overview .banner { margin: 0; padding: 20px; flex-wrap: wrap; gap: 15px; }
.library-overview .banner h3 { font-size: 15px; }
.library-overview .banner .spark { font-size: 27px; margin-left: 12px; }
.library-overview .banner p { font-size: 11px; }
.library-overview .banner .button { font-size: 11px; min-height: 39px; padding: 9px 15px; margin-right: auto; }
.library-overview .stats { margin: 0; gap: 10px; }
.library-overview .stat { padding: 20px 12px; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 9px; }
.library-overview .stat span { font-size: 10px; }
#journey { margin-top: 6px; padding: 17px 21px 19px; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; }
.journey-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; font-size: 10px; color: var(--muted); }
.journey-label > span { font-weight: 600; }
.journey-label button { border: 0; background: transparent; color: var(--green); padding: 0; font-size: 10px; }
.journey-label svg { width: 14px; height: 14px; margin-right: 4px; }
.journey-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body[data-mode="admin"] .journey-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.journey-step { display: flex; align-items: center; text-align: right; gap: 11px; border: 1px solid transparent; border-radius: 12px; padding: 12px; background: transparent; color: var(--muted); position: relative; }
.journey-step:hover { background: var(--surface-soft); }
.journey-step strong { display: block; font-size: 11px; font-weight: 600; }
.journey-step small { display: block; font-size: 9px; margin-top: 4px; opacity: .9; }
.journey-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); flex-shrink: 0; font-size: 12px; background: var(--surface-soft); }
.journey-step.is-current { background: var(--light); border-color: var(--accent-line); color: var(--green); }
.journey-step.is-current .journey-number { background: var(--green); color: var(--on-accent); border-color: var(--green); }
.current-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: auto; flex-shrink: 0; }
.library-tabs { padding: 7px; margin-top: 28px; background: var(--surface); border-radius: 14px; }
.library-tab { padding: 15px 12px; font-size: 12px; min-width: 0; }
.library-tab.active { color: var(--green); }
.library-tab b { background: var(--surface-soft); font-size: 10px; }
.library-tab.active b { background: var(--surface); }
.category-filters { margin: 23px 0 18px; }
.toolbar { margin-bottom: 25px; }
.search { min-height: 42px; background: var(--surface); border-radius: 11px; font-size: 12px; max-width: 300px; }
.grid { gap: 23px; }
.card { transition: transform .2s, box-shadow .2s; }
.card-image { background: var(--image-bg); }
.card-image img { padding: 9px; }
.card-body { padding: 19px; }
.card-title { align-items: flex-start; gap: 12px; }
.card h3 { font-size: 13px; line-height: 1.85; }
.badge { background: var(--surface-soft); color: var(--muted); white-space: nowrap; border-radius: 7px; padding: 4px 9px; }
.badge.good { color: var(--green); background: var(--light); }
.badge.revision { color: var(--violet); background: var(--violet-light); }
.slide-count { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.rating { border-color: var(--line); padding-top: 12px; margin-top: 16px; }
.star { font-size: 25px; color: var(--muted); opacity: .45; }
.star.on { color: #d6a347; opacity: 1; }
.star:hover { opacity: 1; }
.use-reference { background: var(--light); color: var(--green); border-color: var(--accent-line); margin-top: 15px; font-weight: 600; }
.field { gap: 8px; margin-bottom: 20px; }
.field label { font-size: 12px; }
.field small { font-size: 11px; line-height: 1.85; }
input, textarea, select { background: var(--surface-raised); border-color: var(--line); border-radius: 10px; min-height: 44px; font-size: 12px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
textarea { min-height: 115px; line-height: 1.9; }
input[type="checkbox"], input[type="radio"] { min-height: 0; }
input[type="file"] { padding: 12px; background: var(--surface-soft); border-style: dashed; overflow: hidden; }
input[type="file"]::file-selector-button { border: 1px solid var(--line); border-radius: 7px; padding: 7px 12px; margin-left: 12px; background: var(--surface); color: var(--green); font: inherit; cursor: pointer; }
input[type="color"] { background: var(--surface); }
.create-stepper { display: flex; gap: 10px; margin: 27px 0 20px; }
.create-stepper button { flex: 1; display: flex; justify-content: center; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 12px; color: var(--muted); }
.create-stepper button span { width: 25px; height: 25px; border-radius: 50%; background: var(--surface-soft); display: grid; place-items: center; font-size: 11px; }
.create-stepper button.is-active { border-color: var(--accent-line); color: var(--green); background: var(--light); font-weight: 600; }
.create-stepper button.is-active span { background: var(--green); color: var(--on-accent); }
.create-stepper button.is-done { color: var(--green); }
#generate-form { scroll-margin-top: 102px; }
.kind-choices { gap: 14px; margin-top: 22px; }
.kind-choice { background: var(--surface-raised); border-radius: 13px; min-height: 166px; }
.kind-choice.selected { border-color: var(--green); background: var(--light); }
.kind-choice strong { font-size: 14px; }
.kind-symbol { color: var(--green); }
.random-selection { background: var(--light); color: var(--green); }
.random-selection p { color: var(--muted); }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 28px; }
.wizard-actions .subtext { font-size: 11px; }
.request-context { background: var(--surface-soft); padding: 22px; margin-bottom: 25px; }
.request-attachments { margin-top: 26px; }
.request-review .eyebrow { margin-bottom: 8px; }
.request-review h2 { margin-bottom: 10px; }
#review-eligibility:not(:empty) { margin-top: 20px; }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; margin: 25px 0 20px; }
.review-grid > div { border-bottom: 1px solid var(--line); padding: 15px 0; }
.review-grid dt { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.review-grid dd { margin: 0; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.review-brief { padding: 20px; background: var(--surface-soft); border-radius: 12px; }
.review-brief strong { font-size: 12px; }
.review-brief p { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); margin-bottom: 0; }
.review-attachments { display: flex; gap: 10px; color: var(--green); font-size: 11px; margin-top: 18px; }
.review-attachments svg { width: 17px; height: 17px; }
.review-note { display: flex; align-items: flex-start; gap: 12px; padding: 17px 20px; margin-top: 25px; background: var(--violet-light); color: var(--violet); border-radius: 12px; }
.review-note p { font-size: 11px; margin: 0; }
.review-note svg { width: 18px; height: 18px; margin-top: 3px; }
.request-review .actions { border-top: 1px solid var(--line); padding-top: 23px; margin-top: 25px; }
.request-review #generate-button { margin-right: auto; }
.profile-outline { background: var(--surface); border: 1px solid var(--line); padding: 23px 25px; border-radius: 16px; margin: 20px 0; }
.profile-outline strong { display: block; font-size: 14px; }
.profile-outline small { display: block; font-size: 11px; color: var(--muted); margin-top: 7px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.profile-links button { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: 11px; padding: 9px 12px; border-radius: 10px; }
.profile-links button:hover { color: var(--green); border-color: var(--accent-line); }
.profile-links span { color: var(--green); }
#profile-form > .panel:first-of-type { padding-bottom: 30px; }
.profile-section { scroll-margin-top: 110px; }
.profile-section + .profile-section { margin-top: 25px; padding-top: 28px; }
.section-title > span { background: var(--light); color: var(--green); }
.profile-save { background: var(--surface); border-color: var(--accent-line); bottom: 16px; z-index: 4; }
.identity-guide { background: var(--surface); padding: 18px 23px; }
.identity-guide.complete { background: var(--light); border-color: var(--accent-line); }
.identity-guide p { color: var(--muted); }
.identity-checklist span { color: var(--green); }
.identity-summary { padding: 22px 25px; }
.identity-summary strong { font-size: 16px; }
.identity-summary small { color: var(--muted); }
.notice { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-line); font-size: 12px; }
.notice.success, .quality-report, .language-report.passed { background: var(--light); color: var(--green); border-color: var(--accent-line); }
.quality-report p, .language-report p { font-size: 11px; }
.job { padding: 28px; margin: 22px 0; }
.job-head h2 { line-height: 1.8; }
.caption { background: var(--surface-soft); color: var(--ink); padding: 22px; border: 1px solid var(--line); }
.job-slides figure { flex-basis: 245px; }
.job-slides img { background: var(--image-bg); }
.clients-table td, .clients-table th { padding: 20px 12px; }
.clients-table td:first-child { overflow-wrap: anywhere; }
.clients-table tr:last-child td { border-bottom: none; }
dialog { background: var(--surface); border: 1px solid var(--line); color: var(--ink); padding: 30px; border-radius: 21px; box-shadow: 0 30px 100px #0004; }
dialog::backdrop { background: #0b1c2abb; backdrop-filter: blur(5px); }
#welcome-modal { width: min(620px, calc(100vw - 32px)); padding: 32px 37px; max-height: calc(100dvh - 40px); }
.welcome-top { display: flex; justify-content: space-between; align-items: center; }
.welcome-tag { color: var(--green); font-size: 11px; background: var(--light); border-radius: 30px; padding: 6px 14px; }
.welcome-top .icon-button { border: 0; background: var(--surface-soft); width: 33px; height: 33px; }
.welcome-top .icon-button svg { width: 17px; height: 17px; }
.welcome-symbol { width: 62px; height: 62px; display: grid; place-items: center; color: var(--green); background: var(--light); border: 1px solid var(--accent-line); border-radius: 20px 20px 7px 20px; margin: 24px 0 15px; }
.welcome-symbol svg { width: 34px; height: 34px; }
#welcome-title { font-size: 27px; margin-bottom: 9px; }
.welcome-description { color: var(--muted); font-size: 12px; margin: 0; }
.welcome-steps { list-style: none; padding: 0; margin: 24px 0 27px; display: grid; gap: 18px; }
.welcome-steps li { display: flex; gap: 15px; align-items: flex-start; }
.welcome-step-icon { width: 42px; height: 42px; border-radius: 13px; background: var(--surface-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; margin-top: 3px; }
.welcome-steps li:nth-child(2) .welcome-step-icon { background: var(--violet-light); color: var(--violet); }
.welcome-steps li:nth-child(3) .welcome-step-icon { background: var(--peach-light); color: var(--peach); }
.welcome-steps small { font-size: 9px; color: var(--muted); }
.welcome-steps h2 { font-size: 13px; margin: 3px 0 4px; }
.welcome-steps p { font-size: 11px; color: var(--muted); margin: 0; line-height: 1.9; }
.welcome-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 23px; }
.welcome-actions > .button { min-width: 180px; }
.welcome-hint { font-size: 9px; color: var(--muted); margin: 15px 0 0; }
.login-layout #content { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(30px, 5vw, 80px); min-height: 70vh; }
.login-panel { width: 100%; max-width: 410px; margin: 0; padding: 35px 30px; }
.login-panel h1 { font-size: 24px; }
.login-panel .eyebrow { font-size: 11px; }
.login-panel form { margin-top: 27px; }
.login-panel .button { margin-top: 8px; }
.login-intro { padding: 30px 0; }
.login-intro h2 { font-size: clamp(35px, 3.5vw, 48px); margin: 24px 0 20px; line-height: 1.55; letter-spacing: -1px; }
.login-intro h2 span { color: var(--green); }
.login-intro > p { max-width: 370px; font-size: 13px; color: var(--muted); line-height: 2; }
.login-cards { display: flex; flex-direction: column; gap: 20px; margin-top: 34px; }
.login-cards > div { display: grid; grid-template-columns: 43px 1fr; gap: 3px 13px; align-items: center; }
.login-cards svg { grid-row: span 2; width: 43px; height: 43px; padding: 11px; background: var(--light); color: var(--green); border-radius: 13px; }
.login-cards > div:nth-child(2) svg { background: var(--violet-light); color: var(--violet); }
.login-cards > div:nth-child(3) svg { background: var(--peach-light); color: var(--peach); }
.login-cards strong { font-size: 12px; }
.login-cards small { font-size: 10px; color: var(--muted); }
#toast { background: #163e38; color: #f2fff9; max-width: min(420px, calc(100vw - 32px)); }
footer { font-size: 10px; color: var(--muted); padding-top: 40px; }
footer span { color: var(--green); }
@media (min-width: 1700px) { main { padding-right: 65px; padding-left: 65px; } .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1200px) {
  .sidebar { width: 230px; padding-right: 17px; padding-left: 17px; }
  main { margin-right: 230px; padding: 0 27px; }
  .header-tool { padding: 8px 10px; }
  #header-actions > .subtext { max-width: 110px; }
  .journey-steps { gap: 5px; }
  .journey-step { padding: 10px 7px; gap: 7px; }
  .journey-step strong { font-size: 10px; }
  .journey-step small { font-size: 9px; }
  .current-dot { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-overview { grid-template-columns: 1fr; gap: 16px; }
  .library-overview .banner { flex-wrap: nowrap; }
  .library-overview .stat { flex-direction: row; padding: 16px; }
  .login-layout #content { gap: 30px; }
}
@media (max-width: 900px) {
  .shell { display: block; }
  .sidebar { position: fixed; inset: 0 0 0 auto; width: min(300px, 85vw); padding: 32px 23px; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .22s; border-left: 1px solid var(--line); border-bottom: 0; z-index: 60; overflow-y: auto; }
  .menu-open .sidebar { transform: translateX(0); }
  .menu-open { overflow: hidden; }
  .sidebar-label, .sidebar-bottom { display: block; }
  .sidebar-label { margin-top: 32px; }
  .sidebar-bottom { margin-top: 25px; }
  .brand { font-size: 31px; }
  .brand small { font-size: 11px; }
  .brand-mark { width: 48px; height: 48px; }
  #nav button { font-size: 13px; width: 100%; white-space: normal; }
  #nav .icon { font-size: 20px; }
  .sidebar-backdrop { position: fixed; inset: 0; display: block; background: #07121c99; backdrop-filter: blur(3px); border: 0; width: 100%; height: 100%; z-index: 50; border-radius: 0; }
  .menu-toggle { display: inline-grid; }
  main { margin-right: 0; padding: 0 25px; }
  .workspace-header { height: 75px; margin-bottom: 23px; }
  .journey-steps { gap: 8px; }
  .journey-step { padding: 12px; }
  .journey-step strong { font-size: 11px; }
  .journey-step small { font-size: 9px; }
  .login-layout #content { gap: 40px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 85px; }
  main { padding: 0 16px; }
  .workspace-header { height: 68px; gap: 8px; margin-bottom: 19px; }
  .header-controls, .header-location { gap: 6px; }
  .header-tool { width: 35px; height: 35px; min-height: 35px; padding: 8px; border-radius: 9px; }
  .header-tool > span { display: none; }
  .header-tool svg { width: 18px; height: 18px; }
  .menu-toggle { width: 35px; height: 35px; padding: 8px; }
  .breadcrumb { font-size: 10px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .breadcrumb span { margin: 0 4px; }
  #header-actions { padding-right: 8px; margin-right: 3px; gap: 6px; }
  #header-actions > .subtext { display: none; }
  #header-actions .text-button { font-size: 10px; }
  .avatar { width: 30px; height: 30px; }
  #journey { padding: 14px 13px; border-radius: 14px; }
  .journey-label { font-size: 10px; margin-bottom: 12px; }
  .journey-steps, body[data-mode="admin"] .journey-steps { gap: 6px; }
  .journey-step { flex-direction: column; text-align: center; padding: 10px 3px; gap: 8px; border-radius: 10px; }
  .journey-step strong { font-size: 9px; font-weight: 600; }
  .journey-step small { display: none; }
  .journey-number { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
  .page-heading { gap: 12px; margin-top: 24px; }
  h1 { font-size: 24px; line-height: 1.6; }
  .page-heading .subtext { font-size: 11px; }
  .page-heading > .button { padding: 10px 12px; margin-top: 22px; font-size: 10px; }
  .eyebrow { font-size: 10px; }
  .banner { padding: 20px; gap: 17px; }
  .banner h3 { font-size: 14px; }
  .banner p { font-size: 11px; }
  .banner .spark { font-size: 28px; margin-left: 12px; }
  .banner .button { align-self: stretch; }
  .library-overview { gap: 14px; margin: 18px 0 22px; }
  .library-overview .banner { padding: 18px; }
  .library-overview .banner { flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 12px; }
  .library-overview .banner-copy { flex: 1; min-width: 0; }
  .library-overview .banner .spark, .library-overview .banner p { display: none; }
  .library-overview .banner h3 { font-size: 12px; margin: 0; line-height: 1.8; }
  .library-overview .banner .button { margin-right: 0; min-height: 42px; }
  .library-overview .stat { flex-direction: column; padding: 13px 9px; gap: 5px; }
  .library-overview .stat span { font-size: 9px; }
  .stats { gap: 8px; margin: 19px 0; }
  .stat { padding: 13px 9px; gap: 6px; align-items: center; flex-direction: column; text-align: center; border-radius: 12px; }
  .stat strong { font-size: 23px; }
  .stat span { font-size: 9px; }
  .stat-icon { width: 32px; height: 32px; border-radius: 9px; }
  .stat-icon svg { width: 18px; height: 18px; }
  .result-overview .stat { flex-direction: row; text-align: right; flex-wrap: wrap; justify-content: center; }
  .library-tabs { margin: 23px 0 17px; gap: 4px; padding: 5px; }
  .library-tab { padding: 11px 5px; gap: 5px; font-size: 10px; flex-wrap: wrap; }
  .library-tab span { font-size: 19px; }
  .library-tab b { padding: 2px 6px; min-width: 20px; font-size: 9px; }
  .category-filters { gap: 7px; margin-top: 17px; }
  .category-filters > span { margin-left: 2px; }
  .chip { padding: 7px 12px; font-size: 10px; }
  .toolbar { gap: 12px; margin-bottom: 20px; }
  .search { max-width: none; font-size: 11px; }
  .grid { gap: 13px; }
  .card { border-radius: 13px; }
  .card-image img { padding: 6px; }
  .card-body { padding: 13px; }
  .card-title { flex-direction: column; gap: 7px; }
  .card h3 { font-size: 11px; }
  .card-meta { font-size: 9px; gap: 5px; }
  .card-meta .text-button { font-size: 10px; white-space: nowrap; }
  .rating { gap: 1px; flex-wrap: wrap; padding-top: 10px; margin-top: 11px; }
  .star { font-size: 23px; padding: 1px 2px; }
  .rating-label { font-size: 8px; margin-top: 3px; }
  .use-reference { font-size: 10px; padding: 8px; width: 100%; }
  .slide-count { bottom: 9px; left: 9px; padding: 4px 7px; font-size: 9px; }
  .panel { padding: 21px 17px; border-radius: 14px; }
  .panel h2 { font-size: 18px; }
  .create-stepper { gap: 6px; margin-top: 22px; }
  .create-stepper button { font-size: 10px; padding: 11px 6px; flex-direction: column; gap: 7px; }
  .create-stepper button span { width: 23px; height: 23px; }
  .kind-choices { gap: 8px; }
  .kind-choice { padding: 24px 5px 13px; min-height: 158px; }
  .kind-choice.selected { padding: 23px 4px 12px; }
  .kind-choice strong { font-size: 11px; }
  .kind-choice small { font-size: 9px; }
  .kind-symbol { font-size: 30px; }
  .eligible-count { font-size: 9px; }
  .wizard-actions { gap: 12px; flex-wrap: wrap; }
  .wizard-actions .subtext { width: 100%; }
  .wizard-actions .button { margin-right: auto; font-size: 11px; }
  .request-context { padding: 17px 13px; }
  .form-grid { gap: 5px; }
  .review-grid { gap: 0 15px; }
  .review-grid dd { font-size: 11px; }
  .review-brief { padding: 17px; }
  .request-review .actions { gap: 9px; }
  .request-review #generate-button { width: 100%; order: -1; }
  .request-review .actions .secondary { flex: 1; font-size: 10px; }
  .identity-summary { padding: 17px; }
  .identity-summary .secondary { font-size: 10px; }
  .identity-guide { padding: 17px; }
  .identity-guide p { font-size: 11px; }
  .profile-outline { padding: 18px; }
  .profile-outline strong { font-size: 13px; }
  .profile-links { gap: 8px; }
  .profile-links button { font-size: 10px; padding: 8px 10px; }
  .profile-save { bottom: 10px; padding: 15px; }
  .profile-save .subtext { font-size: 11px; }
  .job { padding: 20px 16px; }
  .job-head h2 { font-size: 17px; }
  .job-head { gap: 10px; }
  .job-slides figure { flex-basis: 190px; }
  .caption { padding: 17px; font-size: 12px; }
  dialog { padding: 22px 18px; border-radius: 17px; max-height: calc(100dvh - 30px); }
  #welcome-modal { padding: 24px 22px; width: calc(100vw - 28px); }
  .welcome-symbol { width: 51px; height: 51px; margin-top: 18px; }
  #welcome-title { font-size: 22px; }
  .welcome-steps { gap: 18px; margin: 23px 0; }
  .welcome-steps h2 { font-size: 12px; }
  .welcome-steps p { font-size: 10px; }
  .welcome-steps li { gap: 11px; }
  .welcome-step-icon { width: 36px; height: 36px; }
  .welcome-step-icon svg { width: 19px; height: 19px; }
  .welcome-actions { padding-top: 20px; }
  .welcome-actions > .button { min-width: 130px; font-size: 11px; }
  .welcome-actions .text-button { font-size: 10px; }
  .login-layout #content { grid-template-columns: 1fr; gap: 22px; min-height: 0; }
  .login-intro { padding: 10px 5px; }
  .login-intro h2 { font-size: 35px; margin-top: 18px; }
  .login-intro > p { font-size: 12px; }
  .login-cards { display: none; }
  .login-panel { max-width: none; padding: 26px 22px; }
  .login-panel h1 { font-size: 22px; }
  .clients-table th, .clients-table td { padding: 15px 7px; }
  .client-actions { flex-direction: column; }
  .client-actions .button { font-size: 10px; padding: 9px 11px; }
}
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } .breadcrumb { max-width: 120px; } .journey-step strong { font-size: 8px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
