@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/manrope-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --canvas: #f7f8fc;
  --surface: #fff;
  --surface-soft: #fafafd;
  --ink: #25243b;
  --muted: #706f83;
  --border: #e8e8f0;
  --control-border: #bab8cb;
  --primary: #6854d6;
  --primary-hover: #5541bf;
  --on-primary: #fff;
  --lavender: #efecfc;
  --lavender-ink: #5842bf;
  --banner: #eeebfb;
  --banner-ink: #332667;
  --success: #23745b;
  --mint: #eaf5ef;
  --warning: #925b19;
  --peach: #fcf1e6;
  --error: #ad334b;
  --error-soft: #fdf0f2;
  --track: #eeedf4;
  --shadow: 0 8px 28px rgb(43 36 76 / 7%);
  --sidebar-width: 236px;
  --header-height: 76px;
  --radius: 18px;
  --control-radius: 10px;
  --motion: 160ms;
}

[data-theme='dark'] {
  color-scheme: dark;
  --canvas: #171723;
  --surface: #20202f;
  --surface-soft: #262636;
  --ink: #f0effa;
  --muted: #b0aec4;
  --border: #373548;
  --control-border: #77738e;
  --primary: #ae9aff;
  --primary-hover: #c0b0ff;
  --on-primary: #27203e;
  --lavender: #34304c;
  --lavender-ink: #c8b9ff;
  --banner: #302b49;
  --banner-ink: #e4dcff;
  --success: #8bd9b7;
  --mint: #233b33;
  --warning: #f5c080;
  --peach: #403328;
  --error: #f5a6b5;
  --error-soft: #432733;
  --track: #3a364e;
  --shadow: 0 8px 28px rgb(0 0 0 / 15%);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Manrope, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; text-decoration: none; }
a, button, summary { transition: background-color var(--motion), color var(--motion), border-color var(--motion); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; }
h1 { font-size: clamp(26px, 2.25vw, 34px); font-weight: 750; letter-spacing: -1.1px; text-wrap: balance; }
h2 { font-size: 17px; font-weight: 750; letter-spacing: -.35px; }
h3 { font-size: 14px; font-weight: 700; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 1px; }
::selection { background: var(--lavender); color: var(--lavender-ink); }
.icon { display: inline-block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-sm { width: 17px; height: 17px; }
.muted { color: var(--muted); }
.success { color: var(--success); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 100; border-radius: 8px; padding: 12px 20px; background: var(--primary); color: var(--on-primary); }
.skip-link:focus { top: 12px; }

/* A calm, persistent workspace shell. */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 32px 18px 18px; background: var(--surface); border-right: 1px solid var(--border); }
@media (min-width: 861px) {
  /* Short viewports must keep the lower sidebar controls reachable. */
  .sidebar { overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; }
  .sidebar > * { flex-shrink: 0; }
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; font-size: 18px; font-weight: 800; letter-spacing: -.6px; }
.brand-mark { width: 39px; height: 39px; color: var(--primary); }
.brand-caption { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.workspace-label { margin: 46px 14px 14px; color: var(--muted); font-size: 12px; font-weight: 600; }
.primary-nav { display: flex; flex-direction: column; gap: 7px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 13px; min-height: 48px; padding: 12px 15px; border-radius: 10px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.nav-link:hover { color: var(--ink); background: var(--surface-soft); }
.nav-link.active { background: var(--lavender); color: var(--lavender-ink); }
.nav-link.active::before { position: absolute; inset: 15px auto 15px -18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); content: ''; }
.nav-count { min-width: 25px; margin-left: auto; padding: 1px 6px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 6px; font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.sidebar-bottom { margin-top: auto; padding-top: 34px; }
.sidebar-note { padding: 18px; border-radius: 14px; background: var(--surface-soft); border: 1px solid var(--border); }
.note-symbol { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: var(--lavender); color: var(--lavender-ink); }
.sidebar-note h2 { margin-top: 12px; font-size: 13px; letter-spacing: -.2px; }
.sidebar-note p { margin: 8px 0 6px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.sidebar-note .text-button { padding-inline: 0; font-size: 12px; }
.engine-summary { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 72px; margin-top: 14px; padding: 10px 9px; background: none; border: 0; border-radius: 10px; text-align: left; }
.engine-summary:hover { background: var(--surface-soft); }
.engine-summary > span:nth-child(2) { flex: 1; }
.engine-summary strong, .engine-summary small { display: block; }
.engine-summary strong { font-size: 12px; color: var(--ink); font-weight: 700; }
.engine-summary small { margin-top: 2px; font-size: 11px; color: var(--muted); }
.engine-summary > .icon { color: var(--muted); }
.engine-dot, .status-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--muted); }
.engine-dot.ready, .connection-status.ready .status-dot { background: var(--success); }
.connection-status.error .status-dot { background: var(--error); }
.workspace { min-width: 0; margin-left: var(--sidebar-width); }
.workspace-header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; min-height: var(--header-height); padding: 14px 40px; border-bottom: 1px solid var(--border); background: var(--surface); }
.location { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); }
.location > span:last-child { color: var(--ink); font-weight: 600; }
.location .icon { width: 12px; height: 12px; color: var(--control-border); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.connection-status { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); margin-right: 10px; }
.main-content { max-width: 1320px; margin-inline: auto; padding: 36px 40px 0; outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.date-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.surface { min-width: 0; padding: 25px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.section-heading > div { min-width: 0; }
.section-description { margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.subtle-label { color: var(--muted); font-size: 11.5px; }
.section-heading .subtle-label { display: inline-block; margin-bottom: 5px; }
.surface-footer { display: flex; align-items: center; gap: 7px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11.5px; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0 22px; color: var(--muted); font-size: 11.5px; }
.workspace-footer .text-button { color: var(--muted); font-size: 11.5px; }

/* Controls have visible labels, comfortable hit areas, and clear states. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 45px; padding: 11px 18px; border: 1px solid transparent; border-radius: var(--control-radius); font-size: 12.5px; font-weight: 700; line-height: 1.5; text-align: center; }
.button-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 3px 5px rgb(104 84 214 / 10%); }
.button-primary:hover:not(:disabled) { background: var(--primary-hover); }
.button-secondary { border-color: var(--border); background: var(--surface); color: var(--ink); }
.button-secondary:hover { border-color: var(--control-border); background: var(--surface-soft); }
.button-small { min-height: 40px; padding: 9px 14px; font-size: 12px; }
.button-full { width: 100%; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid transparent; border-radius: 10px; color: var(--muted); }
.icon-button:hover { background: var(--surface-soft); color: var(--primary); }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 6px 2px; border: 0; background: transparent; color: var(--primary); font-size: 12px; font-weight: 650; line-height: 1.5; }

/* --------------------------------------------------- landing & auth screen */
body[data-auth='out'] .app-shell,
body[data-setup='out'] .app-shell { display: none; }
.landing-screen { min-height: 100dvh; display: flex; flex-direction: column; background: var(--canvas); }
.landing-header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; min-height: var(--header-height); padding: 14px 40px; border-bottom: 1px solid var(--border); background: var(--surface); }
.landing-header .auth-brand { margin-bottom: 0; }
.landing-actions { display: flex; align-items: center; gap: 10px; }
.landing-body { width: 100%; max-width: 1180px; margin-inline: auto; padding: 36px 40px 12px; display: flex; flex-direction: column; gap: 24px; flex: 1; }
.landing-banner { padding: 38px 42px; align-items: center; }
.landing-banner h1 { margin-top: 18px; font-size: clamp(26px, 2.35vw, 35px); font-weight: 780; line-height: 1.28; letter-spacing: -1px; color: var(--banner-ink); }
.landing-banner p { max-width: 450px; margin: 15px 0 24px; font-size: 13px; line-height: 1.85; color: color-mix(in srgb, var(--banner-ink) 82%, var(--surface)); }
.landing-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.landing-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.landing-pillar { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.landing-pillar h2 { font-size: 15.5px; margin-top: 3px; }
.landing-pillar p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.landing-trust { display: flex; flex-direction: column; }
.trust-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.trust-list li { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; }
.trust-list li + li { border-top: 1px solid var(--border); }
.trust-list li > .icon { flex-shrink: 0; margin-top: 2px; color: var(--success); }
.trust-list strong { display: block; font-size: 12.5px; font-weight: 700; }
.trust-list p { margin-top: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.landing-trust-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
.landing-footer { margin-top: auto; border-top: 1px solid var(--border); }
.landing-footer-links { display: flex; align-items: center; gap: 18px; }

.auth-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--canvas); }
.auth-card { width: 100%; max-width: 420px; padding: 34px 32px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.auth-card-top .auth-brand { margin-bottom: 0; }
.auth-back { font-size: 11.5px; white-space: nowrap; }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; color: var(--primary); font-size: 15px; font-weight: 800; }
.auth-brand .brand-caption { display: block; margin-left: 1px; color: var(--muted); font-size: 11px; font-weight: 650; }
.auth-brand .brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.auth-card h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.3px; }
.auth-card #auth-sub { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.auth-card .button-full { margin-top: 18px; }
.auth-card .auth-note { display: flex; gap: 8px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; line-height: 1.6; }
.auth-card .auth-note .icon { flex-shrink: 0; margin-top: 2px; color: var(--muted); }

.account-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; padding: 5px 11px; background: var(--lavender); color: var(--lavender-ink); border-radius: 999px; font-size: 11px; font-weight: 700; overflow: hidden; white-space: nowrap; }
.account-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#signout { white-space: nowrap; }

@media (max-width: 640px) {
  /* Space is scarce on phones: the email moves out of the header entirely. */
  .account-chip { display: none; }
}
.text-button:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 4px; }
.soft-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 7px; color: var(--lavender-ink); background: var(--lavender); font-size: 11px; font-weight: 650; line-height: 1.5; }
.count-badge { display: inline-flex; justify-content: center; align-items: center; min-width: 29px; height: 29px; border-radius: 8px; background: var(--lavender); color: var(--lavender-ink); font-size: 12px; font-weight: 700; }
.field-label { display: block; margin: 17px 0 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.required-label, .optional-label { color: var(--muted); font-size: 10.5px; font-weight: 500; }
.field-label .required-label, .field-label .optional-label { margin-left: 5px; }
input[type='text'], input[type='search'], input[type='email'], input[type='password'], textarea, select { width: 100%; min-width: 0; min-height: 45px; padding: 11px 13px; border: 1px solid var(--control-border); border-radius: var(--control-radius); background: var(--surface); color: var(--ink); font-size: 12.5px; transition: border-color var(--motion); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { display: block; resize: vertical; line-height: 1.75; }
input[aria-invalid='true'], textarea[aria-invalid='true'], .dropzone.invalid { border-color: var(--error); }
input[type='checkbox'] { flex-shrink: 0; width: 17px; height: 17px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.field-hint { margin-top: 8px; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.field-error { color: var(--error); font-size: 12px; margin-top: 7px; }
.notice { display: flex; align-items: flex-start; gap: 11px; margin: 18px 0; padding: 15px 17px; border-radius: 10px; font-size: 12px; line-height: 1.75; }
.notice > .icon { margin-top: 2px; }
.notice > p, .notice > span { flex: 1; min-width: 0; }
.notice-error { background: var(--error-soft); color: var(--error); border: 1px solid color-mix(in srgb, var(--error) 20%, transparent); }
.notice-error .text-button { color: var(--error); white-space: nowrap; }
.notice-neutral { background: var(--lavender); color: var(--lavender-ink); }
.compact-notice { padding: 12px; font-size: 11.5px; }
.compact-notice a { display: block; margin-top: 3px; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.input-with-icon { position: relative; flex: 1; min-width: 0; }
.input-with-icon > .icon { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: var(--muted); }
.input-with-icon input { padding-left: 42px; }
.empty-inline { color: var(--muted); font-size: 11.5px; }
.mini-note { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .3px; }
.plan-step-text { display: block; }
.empty-state-inline strong { display: block; color: var(--ink); font-size: 13px; font-weight: 650; }
.empty-state-inline p { margin-top: 5px; }
.empty-state-inline a { display: inline-flex; margin-top: 9px; }

/* The career trajectory is illustrative, never a fabricated data chart. */
.career-banner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px; position: relative; overflow: hidden; padding: 32px 36px; border-radius: 20px; background: var(--banner); }
.banner-content { position: relative; z-index: 1; }
.banner-content .soft-badge { background: color-mix(in srgb, var(--surface) 65%, transparent); }
.banner-content h2 { margin-top: 18px; font-size: clamp(24px, 2.05vw, 32px); font-weight: 750; line-height: 1.32; letter-spacing: -.9px; color: var(--banner-ink); }
.banner-content p { max-width: 370px; margin: 14px 0 24px; font-size: 12.5px; line-height: 1.85; color: color-mix(in srgb, var(--banner-ink) 80%, var(--surface)); }
.banner-footnote { display: block; margin-top: 14px; font-size: 10.5px; color: color-mix(in srgb, var(--banner-ink) 78%, var(--surface)); }
.career-illustration { position: relative; align-self: center; width: 100%; max-width: 430px; height: 268px; }
.trajectory-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-grid { stroke: var(--primary); stroke-opacity: .1; stroke-dasharray: 3 6; }
.art-area { fill: var(--primary); opacity: .05; }
.art-path-muted { stroke: var(--primary); stroke-width: 12; opacity: .07; }
.art-path { stroke: var(--primary); stroke-width: 3.5; stroke-linecap: round; }
.art-halo { fill: var(--primary); opacity: .12; }
.art-node { fill: var(--primary); stroke: var(--banner); stroke-width: 3; }
.art-check { stroke: var(--on-primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art-label { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; background: var(--surface); box-shadow: var(--shadow); border-radius: 9px; color: var(--ink); font-size: 10.5px; font-weight: 650; white-space: nowrap; }
.art-label > .icon { color: var(--primary); }
.art-label-cv { top: 76%; left: 7%; transform: rotate(-5deg); }
.art-label-market { top: 43%; left: 40%; transform: rotate(3deg); }
.art-label-next { top: 3%; right: 2%; transform: rotate(-4deg); }
.metric-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0; padding: 22px 8px; border-radius: 15px; border: 1px solid var(--border); background: var(--surface); }
.metric { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 0 22px; }
.metric + .metric { border-left: 1px solid var(--border); }
.metric > div { min-width: 0; }
.metric-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; }
.violet { background: var(--lavender); color: var(--lavender-ink); }
.mint { background: var(--mint); color: var(--success); }
.peach { background: var(--peach); color: var(--warning); }
.metric-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10.5px; }
.metric strong { display: block; font-size: 23px; font-weight: 750; line-height: 1.35; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.metric strong.text-value { font-size: 16px; letter-spacing: -.4px; }
.metric-note { display: block; margin-top: 5px; color: var(--muted); font-size: 10.5px; }
.overview-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.workflow-list { list-style: none; padding: 0; margin: 0; }
.workflow-list li { position: relative; display: flex; align-items: center; gap: 14px; padding: 17px 0; }
.workflow-list li + li { border-top: 1px solid var(--border); }
.workflow-list li > div { flex: 1; min-width: 0; }
.step-number { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-soft); color: var(--muted); font-size: 12px; font-weight: 650; }
.workflow-list li:first-child .step-number { background: var(--lavender); border-color: var(--lavender); color: var(--lavender-ink); }
.workflow-list h3 { font-size: 12.5px; font-weight: 700; }
.workflow-list p { margin-top: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.workflow-list .icon-button { min-width: 32px; width: 32px; }
.family-bars { display: flex; flex-direction: column; gap: 19px; margin-top: 20px; }
.family-item { min-width: 0; }
.family-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 11.5px; }
.family-label span { color: var(--muted); }
.family-label strong { font-weight: 650; font-variant-numeric: tabular-nums; }
.bar-track { height: 6px; overflow: hidden; border-radius: 6px; background: var(--track); }
.bar-fill { height: 100%; width: var(--fill, 0%); border-radius: inherit; background: var(--primary); }
.family-item:nth-child(2) .bar-fill { opacity: .8; }
.family-item:nth-child(n+3) .bar-fill { opacity: .65; }
.history-surface { margin-top: 24px; }
.history-surface .section-heading { margin-bottom: 9px; }
.history-row { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-top: 1px solid var(--border); }
.history-row:first-child { border-top: 0; }
.history-icon { width: 35px; height: 35px; display: grid; place-items: center; flex-shrink: 0; border-radius: 9px; background: var(--surface-soft); color: var(--primary); }
.history-info { flex: 1; min-width: 0; }
.history-info strong { display: block; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.history-info small { color: var(--muted); font-size: 10.5px; }
.history-score { color: var(--primary); font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; }
.history-score small { color: var(--muted); font-size: 10.5px; font-weight: 500; margin-right: 8px; }
.history-row .text-button { min-height: 44px; padding-inline: 10px; }
.coach-nudge { display: flex; align-items: center; gap: 18px; margin-top: 26px; padding: 23px 4px; }
.coach-nudge > div { flex: 1; min-width: 0; }
.coach-nudge h2 { font-size: 14px; }
.coach-nudge p { margin-top: 4px; color: var(--muted); font-size: 12px; }

/* CV first, then a readable comparison and a prioritized decision list. */
.analysis-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.analysis-inputs { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cv-surface { padding: 22px; }
.cv-surface .section-heading { margin-bottom: 20px; }
.cv-surface .section-heading h2 { font-size: 16px; }
.cv-label-row { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; margin-bottom: 10px; }
.cv-label-row .field-label { margin: 0; }
.segmented-control { display: flex; gap: 4px; padding: 4px; border-radius: 9px; background: var(--surface-soft); border: 1px solid var(--border); margin-bottom: 12px; }
.segment { flex: 1; min-height: 36px; padding: 7px 10px; border: 1px solid transparent; background: none; border-radius: 7px; color: var(--muted); font-size: 11.5px; font-weight: 650; }
.segment:hover { color: var(--primary); }
.segment.active { background: var(--surface); border-color: var(--border); color: var(--primary); box-shadow: 0 2px 4px rgb(0 0 0 / 3%); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 208px; padding: 25px 14px; border: 1.5px dashed var(--control-border); border-radius: 12px; background: var(--surface-soft); text-align: center; }
.dropzone:hover, .dropzone.drag-over { background: var(--lavender); border-color: var(--primary); }
.dropzone.loaded { border-style: solid; border-color: color-mix(in srgb, var(--success) 45%, var(--border)); background: var(--mint); }
.upload-symbol { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--primary); box-shadow: 0 3px 8px rgb(43 36 76 / 4%); }
.dropzone strong { max-width: 100%; font-size: 12px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.dropzone > span:not(.upload-symbol) { margin-top: 4px; font-size: 11px; color: var(--muted); }
.dropzone small { margin-top: 15px; font-size: 10px; color: var(--muted); }
.cv-surface > .field-hint { margin-top: 12px; font-size: 10.5px; }
.cv-surface .button-full { margin-top: 22px; }
.privacy-note { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.privacy-note .icon { width: 13px; height: 13px; margin-top: 2px; }
.compact-surface { padding: 20px 22px; }
.compact-surface h2 { font-size: 13px; }
.compact-history .history-row { gap: 8px; padding-block: 12px; }
.compact-history .history-icon, .compact-history .history-score { display: none; }
.compact-history .history-row .text-button { font-size: 11px; padding-inline: 4px; }
.analysis-results { min-width: 0; }
.results-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 565px; padding: 45px 35px; text-align: center; }
.empty-graphic { position: relative; width: 145px; height: 122px; margin-bottom: 25px; }
.empty-document { position: absolute; top: 0; left: 10px; width: 85px; height: 110px; padding: 17px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; transform: rotate(-9deg); border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); box-shadow: var(--shadow); color: var(--primary); }
.empty-document > .icon { width: 25px; height: 25px; margin-bottom: 4px; }
.empty-document i { width: 100%; height: 4px; border-radius: 2px; background: var(--border); }
.empty-document i:last-child { width: 65%; }
.empty-target { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 72px; height: 72px; background: var(--lavender); color: var(--primary); border: 5px solid var(--surface); border-radius: 20px; transform: rotate(8deg); }
.empty-target > .icon { width: 33px; height: 33px; stroke-width: 1.4; }
.results-empty h2 { font-size: 22px; letter-spacing: -.7px; max-width: 390px; text-wrap: balance; }
.results-empty > p { max-width: 370px; margin-top: 13px; color: var(--muted); font-size: 12.5px; line-height: 1.85; }
.result-promises { display: flex; justify-content: center; flex-wrap: wrap; gap: 13px; max-width: 400px; margin-top: 26px; }
.result-promises span { display: flex; gap: 6px; align-items: center; font-size: 10.5px; color: var(--muted); }
.result-promises .icon { color: var(--primary); }
.results-empty > .benchmark-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 10.5px; }
.analysis-results #results { display: flex; flex-direction: column; gap: 20px; }
.analysis-loading { min-height: 550px; padding: 45px 35px; text-align: center; }
.loading-orbit { display: grid; place-items: center; width: 64px; height: 64px; margin: 20px auto 24px; background: var(--lavender); border-radius: 18px; color: var(--primary); }
.loading-orbit > .icon { width: 34px; height: 34px; }
.analysis-loading h2 { font-size: 20px; }
.analysis-loading p { max-width: 370px; margin: 12px auto 35px; color: var(--muted); font-size: 12.5px; }
.analysis-loading .skeleton { margin-bottom: 20px; }
.alignment-surface .section-heading { margin-bottom: 12px; }
.alignment-surface h2 { font-size: 19px; overflow-wrap: anywhere; }
.alignment-summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.alignment-summary > div:first-child { flex: 1; }
.alignment-score { display: block; margin-top: 3px; font-size: 54px; line-height: 1.3; letter-spacing: -2.5px; font-weight: 750; font-variant-numeric: tabular-nums; }
.alignment-score span { margin-left: 3px; font-size: 24px; color: var(--muted); font-weight: 500; letter-spacing: -.5px; }
.alignment-summary p { max-width: 320px; margin: 4px 0 20px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.benchmark-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 102px; height: 118px; padding: 15px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-soft); color: var(--primary); }
.benchmark-badge > .icon { width: 26px; height: 26px; margin-bottom: 9px; }
.benchmark-badge strong { color: var(--ink); font-size: 15px; }
.benchmark-badge span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.comparison-bars { display: flex; flex-direction: column; gap: 15px; margin-top: 12px; }
.comparison-item > div:first-child { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 7px; font-size: 11px; color: var(--muted); }
.comparison-item strong { color: var(--ink); font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.comparison-item .bar-track { height: 8px; }
.comparison-item.secondary .bar-fill { background: var(--muted); }
#result-corpus { margin-top: 18px; }
.salary-line { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 13px 14px; background: var(--surface-soft); border-radius: 10px; font-size: 11px; color: var(--muted); }
.salary-line .icon { margin-top: 2px; color: var(--primary); }
.salary-line strong { display: block; color: var(--ink); font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 3px 0 16px; }
.filter-chip { min-height: 36px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 10.5px; font-weight: 600; }
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--lavender); color: var(--lavender-ink); border-color: var(--lavender); }
.gap-item { padding: 18px 0; border-top: 1px solid var(--border); }
.gap-item-header { display: flex; align-items: center; gap: 12px; }
.gap-rank { display: grid; place-items: center; flex-shrink: 0; min-width: 28px; height: 28px; border-radius: 7px; color: var(--muted); background: var(--surface-soft); font-size: 11px; font-weight: 600; }
.gap-name { flex: 1; min-width: 0; }
.gap-name h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; overflow-wrap: anywhere; }
.tier { display: inline-block; padding: 2px 7px; background: var(--surface-soft); color: var(--muted); border-radius: 5px; font-size: 9px; font-weight: 600; }
.tier.core { background: var(--lavender); color: var(--lavender-ink); }
.tier.differentiator { background: var(--mint); color: var(--success); }
.gap-name p { margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.gap-coverage { text-align: right; }
.gap-coverage strong { display: block; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.4; }
.gap-coverage span { font-size: 9.5px; color: var(--muted); }
.gap-item .bar-track { margin: 12px 0 0 40px; height: 5px; }
.gap-evidence { margin-left: 40px; margin-top: 10px; font-size: 10px; color: var(--muted); }
.gap-evidence summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; min-height: 30px; }
.gap-evidence summary::marker, .report-details summary::marker, .source-options summary::marker { content: ''; }
.gap-evidence summary::-webkit-details-marker, .report-details summary::-webkit-details-marker, .source-options summary::-webkit-details-marker { display: none; }
.gap-evidence summary .icon { width: 12px; height: 12px; }
.gap-evidence[open] summary > .icon { transform: rotate(90deg); }
.gap-evidence > a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; padding-block: 6px; color: var(--primary); overflow-wrap: anywhere; }
.gap-evidence > a:hover { text-decoration: underline; }
.plan-link { margin-top: 16px; font-size: 11.5px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 7px; font-size: 10.5px; overflow-wrap: anywhere; }
.skill-chip small { color: var(--muted); font-size: 9.5px; }
.skill-chip.strength { background: var(--mint); border-color: var(--mint); color: var(--success); }
.skill-chip.edge { background: var(--peach); border-color: var(--peach); color: var(--warning); }
.skill-chip.strength small, .skill-chip.edge small { color: inherit; }
.small-heading { margin: 23px 0 12px; font-size: 12px; }
#cv-skill-preview { margin-top: 12px; }
#cv-skill-preview .skill-chip { padding: 3px 7px; font-size: 10px; }
.report-details { padding: 0; overflow: hidden; }
.report-details > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 65px; padding: 20px 25px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; }
.report-details > summary:hover { color: var(--primary); }
.report-details[open] > summary > .icon { transform: rotate(90deg); }
.report-details > .prose, .report-details > .evidence-list { padding: 0 25px 25px; }
.prose { font-size: 12.5px; line-height: 1.85; overflow-wrap: anywhere; }
.prose h2 { font-size: 16px; margin: 23px 0 10px; }
.prose h3 { font-size: 14px; margin: 22px 0 9px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 10px 0; max-width: 75ch; }
.prose ul, .prose ol { margin: 12px 0; padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose blockquote { margin: 18px 0; padding: 13px 17px; border-left: 3px solid var(--primary); background: var(--surface-soft); color: var(--muted); border-radius: 0 8px 8px 0; font-size: 11.5px; }
.prose code { background: var(--surface-soft); border: 1px solid var(--border); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.citation-link { display: inline; min-height: 0; border: 0; background: none; color: var(--primary); padding: 2px; font-size: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.evidence-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); font-size: 12px; }
.evidence-row > div { flex: 1; min-width: 0; }
.evidence-row strong { display: block; font-weight: 650; }
.evidence-row p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.evidence-number { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; background: var(--lavender); border-radius: 6px; color: var(--primary); font-size: 10px; font-weight: 700; }
.evidence-row > a { color: var(--primary); }

.evidence-flash { animation: evidence-flash 1.6s ease; border-radius: 6px; }
@keyframes evidence-flash {
  0%, 60% { background: var(--lavender); }
  100% { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .evidence-flash { animation: none; }
  .evidence-flash[style] { background: var(--lavender); }
}

/* An actionable timeline, with locally remembered progress. */
.centered-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 435px; padding: 60px 25px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; margin-bottom: 22px; }
.empty-icon > .icon { width: 31px; height: 31px; }
.centered-empty h2 { font-size: 24px; letter-spacing: -.65px; }
.centered-empty > p { max-width: 430px; margin: 13px 0 26px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.plan-summary { display: flex; align-items: center; gap: 18px; padding: 22px 25px; margin-bottom: 24px; }
.plan-summary > div:nth-child(2) { flex: 1; min-width: 0; }
.plan-summary h2 { overflow-wrap: anywhere; }
.plan-summary p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.plan-progress-track { width: 180px; height: 7px; border-radius: 5px; background: var(--track); overflow: hidden; }
.plan-progress-track > div { height: 100%; width: var(--fill, 0%); background: var(--primary); border-radius: inherit; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.plan-card { position: relative; overflow: hidden; padding: 26px 23px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.plan-card::before { position: absolute; inset: 0 0 auto; height: 3px; background: var(--primary); content: ''; }
.plan-card:nth-child(2)::before { background: var(--success); }
.plan-card:nth-child(3)::before { background: var(--warning); }
.plan-phase { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.plan-phase strong { font-size: 27px; font-weight: 750; color: var(--ink); line-height: 1.4; letter-spacing: -1px; }
.plan-phase strong span { font-size: 13px; font-weight: 500; letter-spacing: 0; margin-left: 3px; }
.plan-card h2 { font-size: 15px; margin: 17px 0 5px; }
.plan-card > p { color: var(--muted); font-size: 11.5px; }
.plan-steps { display: flex; flex-direction: column; margin-top: 22px; list-style: none; padding-left: 0; }
.plan-step { padding: 15px 0; border-top: 1px solid var(--border); }
.plan-step label { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.plan-step input { margin-top: 4px; }
.plan-step span { min-width: 0; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.plan-step:has(input:checked) span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--control-border); }

/* Market collection is distinct from filtering already collected roles. */
.market-fetch { padding: 26px 28px; }
.market-fetch .field-label { margin-top: 0; }
.search-action { display: flex; align-items: center; gap: 12px; }
.source-options { margin-top: 18px; }
.source-options summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; list-style: none; font-size: 11.5px; color: var(--muted); }
.source-options summary > span { font-size: 10px; padding: 2px 6px; background: var(--surface-soft); border-radius: 5px; }
.source-options summary .icon { width: 12px; height: 12px; }
.source-options[open] summary > .icon { transform: rotate(90deg); }
.source-options fieldset { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 15px 0 0; margin: 0; border: 0; }
.source-options fieldset label { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.source-options fieldset label:has(input:checked) { background: var(--surface-soft); }
.source-options label input { margin-top: 3px; }
.source-options label strong, .source-options label small { display: block; }
.source-options label strong { font-size: 11.5px; font-weight: 700; }
.source-options label small { margin-top: 3px; color: var(--muted); font-size: 9.5px; }
.source-options .field-hint { margin-top: 14px; }
.ingest-log { margin-top: 18px; font-size: 12px; overflow-wrap: anywhere; }
.ingest-summary { display: flex; align-items: center; gap: 8px; padding: 13px 15px; background: var(--mint); color: var(--success); border-radius: 8px; }
.ingest-summary.partial { background: var(--peach); color: var(--warning); }
.ingest-summary.failure { background: var(--error-soft); color: var(--error); }
.ingest-source { display: flex; align-items: flex-start; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: 11px; }
.ingest-source strong { min-width: 85px; font-weight: 650; }
.ingest-source > span { flex: 1; min-width: 0; }
.ingest-source .source-error { color: var(--error); }
.ingest-loading { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 9px; background: var(--surface-soft); color: var(--muted); }
.market-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.market-aside { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.market-aside .surface { padding: 22px; }
.market-aside h2 { font-size: 14px; }
.job-filters { display: flex; gap: 10px; margin-bottom: 22px; }
.job-filters select { max-width: 185px; font-size: 11px; }
.job-filters input { font-size: 11.5px; }
.job-row { padding: 21px 0; border-top: 1px solid var(--border); }
.job-heading { display: flex; align-items: flex-start; gap: 13px; }
.company-initial { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-soft); color: var(--muted); font-size: 14px; font-weight: 750; }
.job-row:nth-child(3n+1) .company-initial { background: var(--lavender); color: var(--lavender-ink); border-color: var(--lavender); }
.job-row:nth-child(3n+2) .company-initial { background: var(--mint); color: var(--success); border-color: var(--mint); }
.job-heading > div { flex: 1; min-width: 0; }
.job-heading h3 { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.job-heading a:hover h3 { color: var(--primary); }
.job-heading p { color: var(--muted); font-size: 11px; margin-top: 2px; overflow-wrap: anywhere; }
.job-date { color: var(--muted); font-size: 9.5px; white-space: nowrap; }
.job-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0 55px; }
.job-tag { padding: 3px 7px; border-radius: 5px; border: 1px solid var(--border); color: var(--muted); font-size: 9.5px; line-height: 1.5; }
.job-tag.salary { background: var(--mint); border-color: var(--mint); color: var(--success); }
.job-list-footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.job-list-footer .field-hint { margin: 0; font-size: 10px; }
.source-activity { display: flex; flex-direction: column; gap: 17px; }
.source-row { display: flex; align-items: flex-start; gap: 10px; }
.source-row > .icon { color: var(--success); margin-top: 3px; }
.source-row.failed > .icon { color: var(--error); }
.source-row.waiting > .icon { color: var(--muted); }
.source-row > div { flex: 1; min-width: 0; }
.source-row strong { display: block; font-size: 12px; font-weight: 650; }
.source-row small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; overflow-wrap: anywhere; }
.source-status { padding: 2px 6px; border-radius: 5px; background: var(--mint); color: var(--success); font-size: 9px; white-space: nowrap; }
.source-row.failed .source-status { color: var(--error); background: var(--error-soft); }
.source-row.waiting .source-status { color: var(--muted); background: var(--surface-soft); }

/* A conversational coach, with evidence close to each answer. */
.coach-layout { display: grid; grid-template-columns: minmax(0, 1fr) 258px; gap: 24px; align-items: start; }
.coach-workspace { display: flex; flex-direction: column; min-height: 625px; padding: 0; overflow: hidden; }
.coach-welcome { display: flex; flex-direction: column; align-items: center; padding: 40px 30px 30px; text-align: center; }
.coach-avatar { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--surface)); background: var(--lavender); color: var(--primary); border-radius: 16px; }
.coach-avatar .icon { width: 27px; height: 27px; }
.coach-welcome h2 { margin-top: 19px; font-size: 24px; letter-spacing: -.8px; }
.coach-welcome > p { max-width: 360px; margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.question-suggestions { display: flex; flex-direction: column; width: 100%; gap: 10px; margin-top: 27px; text-align: left; }
.question-card { display: grid; grid-template-columns: 24px 1fr 17px; column-gap: 11px; row-gap: 3px; align-items: center; padding: 15px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); text-align: left; }
.question-card:hover { background: var(--surface-soft); border-color: var(--control-border); }
.question-card > .icon:first-child { grid-row: 1 / 3; color: var(--primary); }
.question-card > strong { font-size: 11.5px; color: var(--ink); font-weight: 650; }
.question-card > span { grid-column: 2; font-size: 10.5px; color: var(--muted); }
.question-card > .icon:last-child { grid-column: 3; grid-row: 1 / 3; color: var(--muted); }
.coach-composer { margin-top: auto; padding: 20px 25px 17px; background: var(--surface-soft); border-top: 1px solid var(--border); }
.coach-role { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--muted); font-size: 10.5px; }
.coach-role input { min-height: 28px; height: 28px; max-width: 220px; padding: 3px 8px; border: 0; border-radius: 5px; background: transparent; font-size: 10.5px; color: var(--primary); }
.coach-role label { white-space: nowrap; }
.composer-input { display: flex; align-items: flex-end; gap: 10px; padding: 6px; border: 1px solid var(--control-border); border-radius: 12px; background: var(--surface); }
.composer-input:focus-within { border-color: var(--primary); }
.composer-input textarea { flex: 1; min-height: 52px; max-height: 170px; border: 0; padding: 9px 8px; background: transparent; font-size: 12px; resize: vertical; }
.composer-input textarea:focus-visible { outline: none; }
.composer-input .button { min-height: 42px; padding: 9px 13px; font-size: 11px; }
.coach-composer > .field-hint { margin-top: 8px; font-size: 9.5px; text-align: center; }
.coach-tools { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.tool-button { width: 36px; min-width: 36px; height: 36px; border: 1px solid var(--control-border); border-radius: 9px; color: var(--muted); }
.tool-button:hover:not(:disabled) { background: var(--surface-soft); color: var(--primary); }
.tool-button:disabled { opacity: 0.45; cursor: not-allowed; }
#btn-mic.recording { color: #b3261e; border-color: #b3261e; background: rgb(179 38 30 / 8%); animation: mic-pulse 1.4s ease-in-out infinite; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 6px rgb(179 38 30 / 12%); } }
.voice-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px dashed var(--control-border); border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 600; }
.voice-pill:hover { border-color: var(--primary); color: var(--primary); }
.voice-pill.on { border-style: solid; border-color: var(--primary); background: var(--primary-soft, rgb(104 84 214 / 10%)); color: var(--primary); }
.mic-status { font-size: 10.5px; color: var(--muted); }
.mic-status.error { color: var(--error); font-weight: 600; }
.attach-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.attach-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 340px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); font-size: 10.5px; }
.attach-chip .chip-icon { color: var(--primary); display: inline-flex; }
.attach-chip strong { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-chip small { color: var(--muted); white-space: nowrap; }
.attach-chip .chip-remove { display: inline-flex; border: 0; background: transparent; color: var(--muted); padding: 2px; cursor: pointer; border-radius: 6px; }
.attach-chip .chip-remove:hover { color: #b3261e; background: var(--surface-soft); }
.attach-sent { display: block; margin-top: 6px; color: var(--muted); }
.coach-aside .surface { padding: 24px; }
.coach-aside h2 { margin-top: 18px; font-size: 17px; }
.coach-aside p { margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.coach-facts { margin: 23px 0 16px; padding: 0; font-size: 11px; }
.coach-facts > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--border); }
.coach-facts dt { color: var(--muted); }
.coach-facts dd { margin: 0; font-weight: 650; }
.small-print { color: var(--muted); font-size: 11px; line-height: 1.8; padding: 20px 7px; }
.coach-conversation { display: flex; flex-direction: column; gap: 28px; padding: 30px 25px; }
.question-message { display: flex; justify-content: flex-end; }
.question-message > p { max-width: 88%; padding: 13px 17px; border-radius: 13px 13px 3px 13px; background: var(--lavender); color: var(--lavender-ink); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer-message { display: flex; align-items: flex-start; gap: 12px; }
.answer-message > .coach-avatar { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; }
.answer-message > .coach-avatar .icon { width: 17px; height: 17px; }
.answer-body { flex: 1; min-width: 0; }
.answer-label { display: flex; align-items: center; gap: 9px; margin: 4px 0 12px; font-size: 11px; font-weight: 700; }
.answer-label > small { color: var(--muted); font-size: 9px; font-weight: 500; }
.answer-sources { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.answer-sources h3 { font-size: 11px; margin-bottom: 10px; color: var(--muted); }
.answer-sources .evidence-row { font-size: 11px; padding-block: 10px; }
.answer-sources .evidence-row:first-of-type { border-top: 0; }
.answer-sources .evidence-row p { font-size: 10px; }
.answer-loading { display: flex; align-items: center; gap: 9px; padding: 5px 0 20px; color: var(--muted); font-size: 12px; }
.coach-workspace > .notice { margin-inline: 25px; }

/* Accessible feedback and one restrained loading animation. */
.skeleton { position: relative; overflow: hidden; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 8px; }
.skeleton::after { position: absolute; inset: 0; content: ''; background: var(--border); opacity: .3; animation: breathe 1.7s ease-in-out infinite; }
.skeleton-line { min-height: 28px; width: 100%; }
.skeleton-block { min-height: 110px; width: 100%; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; flex-shrink: 0; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .7; } }
dialog { max-width: 580px; width: calc(100% - 36px); max-height: calc(100dvh - 60px); padding: 30px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 90px rgb(20 16 42 / 20%); }
dialog::backdrop { background: rgb(29 26 48 / 45%); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
dialog > h2 { font-size: 26px; letter-spacing: -.9px; margin-bottom: 24px; }
.method-status { display: flex; flex-direction: column; gap: 5px; padding: 13px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 9px; color: var(--muted); font-size: 11px; }
.method-status strong { color: var(--ink); font-weight: 650; }
.toast { position: fixed; bottom: 25px; left: calc(50% + var(--sidebar-width) / 2); transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 11px; max-width: calc(100% - 50px); padding: 8px 10px 8px 17px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-size: 12px; }
.toast > .icon { color: var(--success); }
.toast .icon-button { width: 32px; min-width: 32px; height: 32px; padding: 6px; }
.noscript-note { position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 80; padding: 18px; border-radius: 12px; background: var(--surface); color: var(--error); border: 1px solid var(--error); }

@media (min-width: 1600px) { .main-content { padding-top: 44px; } .career-banner { padding-block: 38px; } }
@media (max-width: 1240px) {
  :root { --sidebar-width: 212px; }
  .sidebar { padding-inline: 14px; }
  .brand { gap: 9px; padding-inline: 5px; font-size: 16px; }
  .brand-mark { width: 35px; height: 35px; }
  .nav-link { font-size: 12.5px; }
  .nav-link.active::before { left: -14px; }
  .main-content { padding-inline: 28px; }
  .workspace-header { padding-inline: 28px; }
  .career-banner { padding: 28px; }
  .metric { padding-inline: 16px; gap: 12px; }
  .metric-icon { width: 39px; height: 39px; border-radius: 10px; }
  .metric strong { font-size: 21px; }
  .metric-label, .metric-note { font-size: 10px; }
  .analysis-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 20px; }
  .market-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 20px; }
  .coach-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 20px; }
  .source-options fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-filters { flex-direction: column; }
  .job-filters select { max-width: none; }
  .plan-grid { gap: 15px; }
  .plan-card { padding-inline: 18px; }
}
@media (max-width: 1050px) {
  .career-banner { grid-template-columns: 1.25fr 1fr; }
  .career-illustration { height: 220px; }
  .art-label { padding: 7px 9px; font-size: 9px; }
  .art-label .icon { width: 13px; height: 13px; }
  .banner-content h2 { font-size: 26px; }
  .banner-content p { font-size: 12px; }
  .overview-grid { gap: 18px; grid-template-columns: 1fr 1fr; }
  .surface { padding: 22px; }
  .overview-grid .section-heading { flex-wrap: wrap; gap: 3px; }
  .metric { align-items: flex-start; }
  .metric-icon { width: 32px; height: 32px; border-radius: 8px; }
  .metric-icon .icon { width: 18px; height: 18px; }
  .metric strong.text-value { font-size: 14px; }
  .connection-status { display: none; }
  .analysis-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 16px; }
  .cv-surface { padding: 19px; }
  .market-layout, .coach-layout { grid-template-columns: minmax(0, 1fr); }
  .market-aside { display: grid; grid-template-columns: 1fr 1fr; }
  .coach-aside { display: none; }
  .job-filters { flex-direction: row; }
  .job-filters select { max-width: 180px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-progress-track { width: 120px; }
  .benchmark-badge { display: none; }
}
@media (max-width: 860px) {
  :root { --sidebar-width: 0px; --header-height: 68px; }
  html { scroll-padding-top: 85px; }
  .sidebar { inset: auto 0 0; width: auto; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--border); box-shadow: 0 -5px 20px rgb(43 36 76 / 3%); }
  .sidebar > .brand, .workspace-label, .sidebar-bottom { display: none; }
  .primary-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .nav-link { flex-direction: column; justify-content: center; gap: 4px; min-height: 56px; padding: 7px 3px; border-radius: 9px; font-size: 10px; text-align: center; }
  .nav-link .icon { width: 20px; height: 20px; }
  .nav-count, .nav-link.active::before { display: none !important; }
  .workspace { margin-left: 0; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .workspace-header, .landing-header { padding-inline: 28px; }
  .landing-body { padding: 28px 28px 12px; }
  .landing-pillars { grid-template-columns: 1fr; gap: 16px; }
  .main-content { padding-top: 28px; }
  .page-heading { gap: 16px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { font-size: 13px; }
  .date-label { font-size: 11px; }
  .banner-content h2, .landing-banner h1 { font-size: 29px; }
  .career-illustration { height: 250px; }
  .metric { padding-inline: 17px; }
  .metric-icon { width: 36px; height: 36px; }
  .analysis-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 18px; }
  .analysis-results .surface { padding: 22px; }
  .analysis-results .report-details { padding: 0; }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); left: 50%; }
  .coach-aside { display: block; }
  .coach-layout { grid-template-columns: minmax(0, 1fr) 215px; }
}
@media (max-width: 680px) {
  .main-content { padding: 24px 20px 0; }
  .workspace-header, .landing-header { padding: 12px 20px; }
  .landing-body { padding: 22px 20px 10px; gap: 20px; }
  .landing-actions > .desktop-only, .location > .desktop-only { display: none; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 23px; }
  .page-heading > .date-label, .page-heading > .text-button { display: none; }
  .page-heading h1 { font-size: 27px; letter-spacing: -.8px; }
  .page-heading p { font-size: 13px; }
  .career-banner { grid-template-columns: 1fr; padding: 28px; gap: 8px; }
  .banner-content h2, .landing-banner h1 { font-size: 28px; }
  .banner-content p { max-width: 440px; font-size: 13px; }
  .banner-content .button { font-size: 13px; }
  .banner-footnote { font-size: 11px; }
  .career-illustration { width: 100%; max-width: 340px; height: 194px; justify-self: center; margin-top: 15px; }
  .art-label { font-size: 10px; }
  .art-label-cv { top: 73%; }
  .art-label-next { top: 0; }
  .metric-strip { grid-template-columns: 1fr; padding: 7px 20px; margin: 20px 0; }
  .metric { align-items: center; padding: 18px 0; gap: 16px; }
  .metric + .metric { border-left: 0; border-top: 1px solid var(--border); }
  .metric-label, .metric-note { font-size: 12px; }
  .metric strong { font-size: 25px; }
  .metric strong.text-value { font-size: 18px; }
  .metric-icon { width: 46px; height: 46px; border-radius: 12px; }
  .metric-icon .icon { width: 22px; height: 22px; }
  .overview-grid { grid-template-columns: 1fr; gap: 20px; }
  .overview-grid .section-heading { flex-wrap: nowrap; align-items: center; }
  .surface { padding: 22px; }
  h2 { font-size: 18px; }
  .section-description { font-size: 12.5px; }
  .workflow-list h3 { font-size: 14px; }
  .workflow-list p { font-size: 12px; }
  .family-label { font-size: 12.5px; }
  .surface-footer { font-size: 11.5px; }
  .history-score small { display: none; }
  .history-row { gap: 10px; }
  .history-info strong { font-size: 13px; }
  .history-info small { font-size: 11px; }
  .coach-nudge { flex-wrap: wrap; padding-block: 17px; }
  .coach-nudge h2 { font-size: 15px; }
  .coach-nudge p { font-size: 12px; }
  .coach-nudge > .button { width: 100%; }
  .analysis-layout { grid-template-columns: 1fr; gap: 22px; }
  .cv-surface { padding: 23px; }
  .analysis-inputs > .compact-surface { display: none; }
  .results-empty { min-height: 440px; padding: 35px 24px; }
  .results-empty h2 { font-size: 23px; }
  .results-empty p { font-size: 13px; }
  .results-empty .benchmark-note { font-size: 11px; }
  .field-label, .cv-label-row .field-label { font-size: 13px; }
  input[type='text'], input[type='search'], input[type='email'], input[type='password'], textarea, select { font-size: 16px; }
  .field-hint { font-size: 12px; }
  .required-label, .optional-label { font-size: 11px; }
  .segment { min-height: 40px; font-size: 12px; }
  .dropzone { min-height: 210px; }
  .dropzone strong { font-size: 14px; }
  .dropzone > span:not(.upload-symbol) { font-size: 12px; }
  .dropzone small { font-size: 11px; }
  .cv-surface .button-full { font-size: 14px; }
  .privacy-note { font-size: 11px; }
  .cv-surface > .field-hint { font-size: 12px; }
  .analysis-inputs .notice { font-size: 12px; }
  .analysis-results .surface { padding: 24px; }
  .alignment-surface h2 { font-size: 20px; }
  .alignment-summary p { font-size: 12.5px; }
  .alignment-score { font-size: 58px; }
  .comparison-item > div:first-child { font-size: 12px; }
  .salary-line { font-size: 12px; }
  .filter-chip { min-height: 40px; font-size: 11px; padding-inline: 9px; }
  .gap-name h3 { font-size: 14px; }
  .gap-name p { font-size: 11px; }
  .gap-coverage span { font-size: 10px; }
  .tier { font-size: 10px; }
  .gap-evidence { font-size: 11px; }
  .gap-evidence > a { font-size: 12px; }
  .skill-chip { font-size: 12px; }
  .skill-chip small { font-size: 10.5px; }
  .plan-link { font-size: 12px; }
  .analysis-results .report-details { padding: 0; }
  .report-details > summary { font-size: 14px; padding-inline: 24px; }
  .prose { font-size: 14px; }
  .prose h2 { font-size: 18px; }
  .prose h3 { font-size: 16px; }
  .plan-summary { flex-wrap: wrap; padding: 22px; gap: 14px; }
  .plan-summary h2 { font-size: 16px; }
  .plan-progress-track { width: 100%; }
  .plan-card { padding: 25px; }
  .plan-card h2 { font-size: 17px; }
  .plan-step span { font-size: 14px; }
  .plan-step input { width: 20px; height: 20px; }
  .market-fetch { padding: 22px; }
  .market-fetch .section-heading { flex-direction: column; gap: 10px; }
  .search-action { flex-direction: column; align-items: stretch; }
  .search-action .button { width: 100%; font-size: 13px; }
  .source-options fieldset { grid-template-columns: 1fr 1fr; }
  .source-options label small { font-size: 10px; }
  .source-options fieldset label { padding: 10px; }
  .source-options label strong { font-size: 12px; }
  .source-options summary { font-size: 12px; }
  .market-layout { grid-template-columns: 1fr; gap: 20px; }
  .market-aside { grid-template-columns: 1fr; }
  .job-filters { flex-direction: column; }
  .job-filters input, .job-filters select { font-size: 16px; }
  .job-filters select { max-width: none; }
  .job-date { display: none; }
  .job-heading h3 { font-size: 14px; }
  .job-heading p { font-size: 12px; }
  .job-tag { font-size: 10.5px; }
  .job-tags { margin-left: 0; }
  .job-list-footer { flex-wrap: wrap; }
  .coach-layout { grid-template-columns: 1fr; }
  .coach-aside { display: none; }
  .coach-welcome { padding: 35px 23px 26px; }
  .coach-welcome h2 { font-size: 24px; }
  .coach-welcome > p { font-size: 13px; }
  .question-card { padding: 16px 12px; }
  .question-card strong { font-size: 12px; }
  .question-card span { font-size: 11px; }
  .coach-composer { padding: 18px; }
  .coach-role input { font-size: 16px; }
  .coach-role label { font-size: 12px; }
  .composer-input { flex-direction: column; align-items: stretch; }
  .composer-input textarea { font-size: 16px; width: 100%; }
  .composer-input .button { align-self: flex-end; min-width: 120px; font-size: 12px; }
  .coach-conversation { padding: 25px 20px; }
  .question-message > p { font-size: 14px; }
  .answer-message { gap: 9px; }
  .answer-label { font-size: 12px; }
  .answer-label small { font-size: 10px; }
  .answer-sources .evidence-row { font-size: 12px; }
  .answer-sources .evidence-row p { font-size: 11px; }
  .workspace-footer { align-items: flex-start; font-size: 10px; gap: 12px; }
  .workspace-footer .text-button { font-size: 10px; min-height: 0; padding: 0; }
  .workspace-footer .icon { width: 13px; height: 13px; }
  dialog { padding: 24px; }
  dialog > h2 { font-size: 24px; }
}
@media (max-width: 390px) {
  .main-content { padding-inline: 16px; }
  .workspace-header { padding-inline: 16px; }
  .header-actions { gap: 4px; }
  .location { font-size: 12px; }
  .button-small { font-size: 11px; padding-inline: 10px; }
  .career-banner { padding: 25px; }
  .banner-content h2 { font-size: 26px; }
  .nav-link { font-size: 9.5px; }
  .overview-grid .section-heading .subtle-label { display: none; }
  .surface { padding: 20px; }
  .section-heading { gap: 10px; }
  .section-heading h2 { font-size: 16px; }
  .filter-row { gap: 5px; }
  .filter-chip { font-size: 10px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .sidebar, .workspace-header, .workspace-footer, .analysis-inputs, .filter-row, .plan-link, .toast, .icon-button, .coach-composer { display: none !important; }
  .workspace { margin: 0; padding: 0; }
  .main-content { padding: 0; max-width: none; }
  .analysis-layout { display: block; }
  .surface { break-inside: avoid; box-shadow: none; }
}
