:root {
  --ink: #102d31;
  --ink-strong: #082f33;
  --muted: #5c7073;
  --soft: #edf5f2;
  --surface: #ffffff;
  --canvas: #f6f8f5;
  --line: #d9e6e0;
  --brand: #056d71;
  --brand-dark: #034b4f;
  --brand-soft: #d9f0ed;
  --lime: #c7f36b;
  --lime-hover: #a9da4f;
  --accent: #a9651d;
  --accent-soft: #fff2df;
  --danger: #b42318;
  --danger-soft: #fff0ed;
  --success: #167a4a;
  --success-soft: #e6f6ec;
  --shadow: 0 20px 52px rgba(8, 47, 51, .09);
  --shadow-raised: 0 28px 70px rgba(8, 47, 51, .16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --focus: 0 0 0 3px #dfffa2, 0 0 0 6px #082f33;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); font: 16px/1.55 "Segoe UI", Tahoma, Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; top: -60px; left: 16px; padding: 10px 14px; border-radius: 8px; color: #fff; background: var(--ink-strong); transition: top .15s ease; }
.skip-link:focus { top: 16px; }

.shell { min-height: 100dvh; background: var(--surface); }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.page-section { padding: 96px 0; }
.eyebrow { margin: 0 0 10px; color: var(--brand-dark); font-size: .75rem; font-weight: 800; letter-spacing: .135em; text-transform: uppercase; }
.section-heading { max-width: 720px; margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.05; letter-spacing: -.055em; text-wrap: balance; }
.section-copy { max-width: 650px; margin: 14px 0 0; color: var(--muted); }

/* Landing */
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #f7fffb; background: rgba(8, 47, 51, .96); backdrop-filter: blur(14px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; text-decoration: none; }
.brand__latin { font-size: 1.12rem; font-weight: 780; letter-spacing: -.03em; }
.brand__arabic { display: inline-block; padding: .16em 0 .08em; color: var(--brand); font-family: Tahoma, "Segoe UI", Arial, sans-serif; font-size: 1.43rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.site-header .brand__arabic { color: var(--lime); }
.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 10px 12px; border: 0; color: rgba(247, 255, 251, .78); background: transparent; font-weight: 700; text-decoration: none; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--lime); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 999px; color: #fff; background: var(--brand); box-shadow: 0 5px 12px rgba(3, 75, 79, .12); font-weight: 800; line-height: 1.2; text-decoration: none; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.button:hover { background: var(--brand-dark); box-shadow: 0 8px 18px rgba(3, 75, 79, .17); }
.button:active { transform: translateY(1px); box-shadow: none; }
.site-header .button { color: var(--ink-strong); background: var(--lime); box-shadow: none; }
.site-header .button:hover { background: var(--lime-hover); }
.button--secondary { border-color: var(--line); color: var(--ink); background: var(--surface); box-shadow: none; }
.button--secondary:hover { border-color: var(--brand); color: var(--brand-dark); background: #f5fbf8; }
.button--danger { color: var(--danger); border-color: #f4c6bd; background: #fff; }
.button--danger:hover { color: #fff; background: var(--danger); }
.button--small { min-height: 38px; padding: 8px 13px; font-size: .9rem; }
.button--text { min-height: 36px; padding: 5px; color: var(--brand-dark); background: transparent; box-shadow: none; }
.button--text:hover { background: var(--brand-soft); box-shadow: none; }

.hero { position: relative; overflow: hidden; padding: 82px 0 66px; background: var(--soft); }
.hero::before, .hero::after { position: absolute; content: ""; pointer-events: none; border-radius: 50%; }
.hero::before { right: -12vw; top: -20vw; width: 56vw; height: 56vw; border: 1px solid rgba(5, 109, 113, .15); }
.hero::after { left: -13vw; bottom: -24vw; width: 39vw; height: 39vw; background: rgba(199, 243, 107, .16); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(32px, 6vw, 86px); }
.hero h1 { max-width: 690px; margin: 0; font-size: clamp(2.7rem, 5.7vw, 5rem); line-height: .97; letter-spacing: -.075em; text-wrap: balance; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero-copy { max-width: 590px; margin: 25px 0; color: #39565a; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-note { max-width: 570px; margin: 19px 0 0; color: var(--muted); font-size: .86rem; }
.preview-card { position: relative; padding: 22px; border: 1px solid rgba(5, 109, 113, .12); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .9); box-shadow: var(--shadow); }
.preview-topline, .dash-card__topline, .tracker-toolbar, .list-item__header, .detail-header, .modal-header, .next-card__topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preview-label { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.preview-metric { margin: 22px 0 18px; font-size: 2.5rem; font-weight: 850; letter-spacing: -.07em; }
.preview-list, .mini-list, .record-list, .followup-history, .next-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.preview-row, .record-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.preview-row strong, .record-row strong { display: block; font-size: .92rem; }
.preview-row span, .record-row span { display: block; color: var(--muted); font-size: .82rem; }

.hero--welcome { min-height: 570px; padding-block: clamp(86px, 12vw, 145px) clamp(82px, 10vw, 120px); color: #f9fffc; background: var(--ink-strong); }
.hero--welcome::before { right: -12vw; top: -23vw; width: min(58vw, 780px); height: min(58vw, 780px); border: 1px solid rgba(199, 243, 107, .28); }
.hero--welcome::after { left: -12vw; bottom: -32vw; width: min(47vw, 640px); height: min(47vw, 640px); background: rgba(5, 109, 113, .68); }
.welcome-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(305px, .68fr); align-items: center; gap: clamp(38px, 7vw, 116px); }
.welcome-copy { max-width: 710px; }
.hero--welcome .eyebrow { color: var(--lime); }
.hero--welcome h1 { max-width: 720px; }
.welcome-copy .hero-copy { margin-bottom: 28px; color: rgba(249, 255, 252, .79); }
.hero--welcome .button:not(.button--text) { color: var(--ink-strong); background: var(--lime); box-shadow: none; }
.hero--welcome .button:not(.button--text):hover { background: var(--lime-hover); }
.welcome-secondary { align-self: center; min-height: 44px; padding-inline: 10px; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.welcome-secondary:hover { color: var(--lime); background: transparent; }
.hero--welcome .trust-note { color: rgba(249, 255, 252, .62); }
.welcome-steps { position: relative; padding: 30px; border: 1px solid rgba(255, 255, 255, .26); border-radius: var(--radius-xl); color: var(--ink-strong); background: #f9fffc; box-shadow: var(--shadow-raised); }
.welcome-steps::before { position: absolute; top: 0; left: 30px; width: 62px; height: 5px; content: ""; border-radius: 0 0 6px 6px; background: var(--lime); }
.welcome-steps .eyebrow { color: var(--brand-dark); }
.welcome-steps h2 { max-width: 305px; margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.92rem); line-height: 1.1; letter-spacing: -.045em; }
.welcome-steps ol { display: grid; gap: 17px; margin: 27px 0 0; padding: 0; counter-reset: welcome-step; list-style: none; }
.welcome-steps li { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 11px; color: #294347; font-weight: 750; }
.welcome-steps li::before { display: grid; place-items: center; width: 34px; height: 34px; content: counter(welcome-step, decimal-leading-zero); counter-increment: welcome-step; border-radius: 50%; color: var(--ink-strong); background: var(--lime); font-size: .7rem; font-weight: 850; }
.how-it-works { position: relative; overflow: hidden; background: #fff; }
.how-it-works::before { position: absolute; top: 76px; right: max(20px, calc((100vw - var(--max)) / 2)); width: 84px; height: 4px; content: ""; border-radius: 999px; background: var(--lime); }
.welcome-demo { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 820px; margin-top: 54px; padding: 21px 23px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--soft); }
.welcome-demo p { margin: 0; color: var(--muted); font-size: .92rem; }
.welcome-demo strong { color: var(--ink); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.feature-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.feature-number { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 28px; border-radius: 50%; color: var(--brand-dark); background: var(--brand-soft); font-size: .84rem; font-weight: 850; }
.feature-card h3 { margin: 0; font-size: 1.1rem; letter-spacing: -.025em; }
.feature-card p { margin: 10px 0 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; counter-reset: step; }
.step { position: relative; min-height: 166px; padding: 30px 25px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; counter-increment: step; }
.step::before { display: grid; place-items: center; content: counter(step, decimal-leading-zero); width: 38px; height: 38px; margin-bottom: 29px; border-radius: 50%; color: var(--ink-strong); background: var(--lime); font-size: .72rem; font-weight: 850; }
.step h3 { margin: 0; font-size: 1.08rem; letter-spacing: -.025em; }
.step p { margin: 8px 0 0; color: var(--muted); }
.site-footer { padding: 32px 0; border-top: 1px solid rgba(255,255,255,.13); color: rgba(249,255,252,.68); background: var(--ink-strong); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; }

/* Application shell */
.app-shell { min-height: 100dvh; background: var(--canvas); }
.app-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); }
.app-header-row { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.app-nav { display: flex; gap: 4px; margin-right: auto; padding: 4px; border-radius: 999px; background: var(--soft); }
.app-nav button { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-weight: 750; }
.app-nav button:hover { color: var(--brand-dark); }
.app-nav button[aria-current="page"] { color: #fff; background: var(--brand-dark); box-shadow: 0 3px 8px rgba(3, 75, 79, .18); }
.app-main { padding: 52px 0 82px; }
.app-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.app-page-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.12rem); line-height: 1; letter-spacing: -.065em; text-wrap: balance; }
.app-page-header p { max-width: 630px; margin: 10px 0 0; color: var(--muted); }
.demo-banner { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; margin: 0 0 26px; border: 1px solid #ead7a9; border-radius: var(--radius-sm); color: #6c4a10; background: #fff9e9; font-size: .91rem; }
.demo-banner strong { color: #573704; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 34px; }
.metric-card { min-height: 156px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 8px 22px rgba(8, 47, 51, .025); }
.metric-card:first-child { border-color: #b7d9d2; background: #eef8f5; }
.metric-card__label { color: var(--muted); font-size: .83rem; font-weight: 800; letter-spacing: .015em; }
.metric-card__value { margin-top: 9px; font-size: 2.2rem; font-weight: 850; letter-spacing: -.075em; }
.metric-card__hint { margin-top: 7px; color: var(--muted); font-size: .83rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 8px 22px rgba(8, 47, 51, .025); }
.panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 24px 24px 0; }
.panel__header h2 { margin: 0; font-size: 1.16rem; letter-spacing: -.03em; }
.panel__header p { margin: 5px 0 0; color: var(--muted); font-size: .87rem; }
.panel__content { padding: 20px 24px 24px; }
.next-card { padding: 16px 0; border-top: 1px solid var(--line); }
.next-card:first-child { padding-top: 0; border-top: 0; }
.next-card h3 { margin: 6px 0; font-size: .98rem; }
.next-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.next-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.priority-label { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-dark); font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.priority-label--attention { color: var(--danger); }
.empty-state { padding: 38px 18px; text-align: center; }
.empty-state h3 { margin: 0; }
.empty-state p { max-width: 380px; margin: 7px auto 16px; color: var(--muted); }
.empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.tracker-toolbar { flex-wrap: wrap; margin-bottom: 22px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.filter-group { display: flex; flex: 1 1 460px; flex-wrap: wrap; gap: 8px; }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid #b8ccc6; border-radius: 10px; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); }
.search-input { flex: 1 1 210px; }
.select { width: auto; min-width: 145px; }
.textarea { min-height: 96px; resize: vertical; }
.tracker-section { margin-top: 32px; }
.tracker-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.tracker-section__heading h2 { margin: 0; font-size: 1.18rem; letter-spacing: -.03em; }
.tracker-section__heading p { margin: 0; color: var(--muted); font-size: .88rem; }
.record-list { gap: 11px; }
.record-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 7px 18px rgba(8, 47, 51, .02); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.record-card:hover { border-color: #99c8bc; box-shadow: var(--shadow); transform: translateY(-1px); }
.record-main { min-width: 0; }
.record-title-row { display: flex; align-items: flex-start; gap: 9px; flex-wrap: wrap; }
.record-title { margin: 0; font-size: 1.04rem; letter-spacing: -.025em; }
.record-company { margin: 3px 0 0; color: var(--muted); font-size: .9rem; }
.record-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 0 0; color: var(--muted); font-size: .82rem; }
.record-actions { display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.badge { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px; border: 1px solid transparent; border-radius: 999px; font-size: .72rem; font-weight: 850; letter-spacing: .01em; white-space: nowrap; }
.badge--Saved { color: #5d4b06; border-color: #e8d697; background: #fff8dc; }
.badge--Applied, .badge--Assessment { color: #064a68; border-color: #a4d7e8; background: #e7f7fc; }
.badge--Interview { color: #4d3377; border-color: #d5c5f3; background: #f2eeff; }
.badge--Offer { color: #0b6039; border-color: #b5e5c9; background: #e8f8ee; }
.badge--Rejected, .badge--Withdrawn { color: #6a3a35; border-color: #e5c7c1; background: #fdf0ed; }
.badge--attention { color: #8a1c13; border-color: #efb8b1; background: var(--danger-soft); }
.badge--demo { color: #71501a; border-color: #e7d097; background: #fff8e6; }
.attention-message { display: flex; align-items: flex-start; gap: 7px; margin: 12px 0 0; color: var(--danger); font-size: .85rem; font-weight: 720; }
.attention-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--danger); }

/* Forms, details, and role check */
.dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: 0 28px 76px rgba(8, 47, 51, .3); background: #fff; }
.dialog::backdrop { background: rgba(8, 47, 51, .62); backdrop-filter: blur(3px); }
.dialog__inner { overflow: auto; max-height: calc(100dvh - 24px); }
.modal-header { position: sticky; z-index: 1; top: 0; padding: 22px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.modal-header h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.035em; }
.icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fff; font-size: 1.4rem; line-height: 1; transition: border-color .15s ease, background .15s ease; }
.icon-button:hover { color: var(--brand-dark); border-color: var(--brand); background: var(--brand-soft); }
.modal-body { padding: 24px; }
.quick-role-check { margin-top: 24px; padding: 18px; border: 1px solid #b8dce6; border-radius: var(--radius-md); background: #f1faf8; }
.quick-role-check h3 { margin: 0; font-size: 1rem; }
.quick-role-check p { margin: 5px 0 14px; color: var(--muted); font-size: .88rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid--three { grid-template-columns: repeat(3, 1fr); }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, fieldset legend { color: #25424b; font-size: .87rem; font-weight: 800; }
.field small, .field-help { color: var(--muted); font-size: .8rem; }
.required { color: var(--danger); }
.field-error { min-height: 1.1em; color: var(--danger); font-size: .8rem; font-weight: 650; }
.fieldset { grid-column: 1 / -1; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.fieldset legend { padding: 0 6px; }
.fieldset p { margin: 0 0 13px; color: var(--muted); font-size: .85rem; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); }
.error-summary { display: none; margin: 0 0 18px; padding: 13px; border: 1px solid #efb8b1; border-radius: 10px; color: #831b13; background: var(--danger-soft); }
.error-summary.is-visible { display: block; }
.error-summary p { margin: 0 0 4px; font-weight: 800; }
.error-summary ul { margin: 0; padding-left: 20px; }

.detail-section { padding: 20px 0; border-top: 1px solid var(--line); }
.detail-section:first-child { padding-top: 0; border-top: 0; }
.detail-section h3 { margin: 0 0 8px; font-size: 1rem; }
.detail-section p { margin: 0; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.detail-data { padding: 12px; border-radius: 11px; background: var(--soft); }
.detail-data span { display: block; color: var(--muted); font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
.detail-data strong { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: .89rem; }
.guidance { padding: 14px; border-radius: 11px; color: #294048; background: var(--brand-soft); font-size: .9rem; }
.followup-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 13px; }
.history-item { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.history-item strong { color: var(--ink); }
.copy-area { width: 100%; min-height: 105px; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fdfefe; resize: vertical; }

.wizard { width: min(820px, 100%); margin-inline: auto; }
.wizard__intro { max-width: 690px; }
.wizard__intro h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.15rem); line-height: 1.03; letter-spacing: -.06em; }
.wizard__intro > p:last-child { margin: 10px 0 0; color: var(--muted); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 32px 0 18px; padding: 0; list-style: none; }
.progress__step { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--surface); font-size: .8rem; }
.progress__step > span { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; border: 1px solid #b8ccc6; border-radius: 50%; font-size: .76rem; font-weight: 800; }
.progress__step strong { overflow-wrap: anywhere; }
.progress__step.is-current { border-color: var(--brand); color: var(--brand-dark); background: #f1faf8; }
.progress__step.is-current > span { border-color: var(--brand); color: #fff; background: var(--brand); }
.progress__step.is-complete { color: var(--brand-dark); }
.progress__step.is-complete > span { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.wizard-card { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 12px 30px rgba(8, 47, 51, .04); }
.wizard-card__header { margin-bottom: 23px; }
.wizard-card__header h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.03em; }
.wizard-card__header p { margin: 7px 0 0; color: var(--muted); font-size: .92rem; }
.assessment-result { margin-top: 4px; }
.assessment-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.assessment-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fcfefe; }
.assessment-card--next { border-color: #b8dce6; background: #ecf8fb; }
.assessment-card h2 { margin: 0 0 8px; font-size: 1rem; }
.assessment-card p, .assessment-card ul { margin: 0; color: var(--muted); font-size: .88rem; }
.assessment-card ul { padding-left: 19px; }
.assessment-card li + li { margin-top: 4px; }
.assessment-card__note { margin-bottom: 8px !important; color: #25424b !important; font-weight: 700; }
.assessment-how-it-works { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.assessment-how-it-works summary { cursor: pointer; color: var(--brand-dark); font-size: .92rem; font-weight: 800; }
.assessment-how-it-works__content { margin-top: 14px; }
.assessment-how-it-works__content > p { margin: 0 0 10px; color: var(--muted); font-size: .88rem; }
.assessment-context, .fixture-label { margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; color: #25424b; background: var(--brand-soft); font-size: .88rem; }
.fixture-label { border: 1px solid #e8d697; color: #6c4a10; background: #fff9e9; }
.assessment-sources { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 22px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.assessment-sources legend { padding: 0 6px; }
.assessment-sources label, .check-label { display: flex; align-items: center; gap: 8px; color: #25424b; font-size: .9rem; font-weight: 700; }
.assessment-sources input, .check-label input { width: 18px; height: 18px; accent-color: var(--brand); }
.profile-section, .cv-section, .manual-section { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.profile-section--quick { margin-top: 0; padding-top: 0; border-top: 0; }
.section-label h3 { margin: 0; font-size: 1rem; }
.section-label p { margin: 4px 0 14px; color: var(--muted); font-size: .88rem; }
.optional-profile-fields { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.optional-profile-fields summary { cursor: pointer; color: var(--brand-dark); font-size: .92rem; font-weight: 800; }
.optional-profile-fields__content { margin-top: 16px; }
.is-hidden { display: none; }
.cv-textarea { min-height: 170px; }
.pdf-status { margin-top: 14px; padding: 14px; border: 1px solid #ead7a9; border-radius: 10px; color: #6c4a10; background: #fff9e9; font-size: .88rem; }
.pdf-status p { margin: 5px 0; }
.fixture-loader { margin-top: 22px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.fixture-loader summary { cursor: pointer; color: var(--brand-dark); font-weight: 800; }
.fixture-loader p { color: var(--muted); font-size: .86rem; }
.fixture-loader label { display: block; margin-bottom: 5px; color: #25424b; font-size: .84rem; font-weight: 800; }
.fixture-loader .select { width: 100%; margin-bottom: 10px; }
.form-actions--compact { margin-top: 14px; padding-top: 14px; }
.processing-state { display: grid; place-items: start; min-height: 210px; padding: 30px 0; }
.processing-state h2 { margin: 0; font-size: 1.22rem; }
.processing-state p { max-width: 580px; margin: 8px 0 0; color: var(--muted); }
.processing-state--error h2 { color: var(--danger); }
.evidence-list { display: grid; gap: 10px; }
.evidence-card { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fcfefe; }
.evidence-card--attention { border-color: #efb8b1; background: var(--danger-soft); }
.evidence-card h4, .evidence-card h5 { margin: 0 0 7px; font-size: .93rem; text-transform: capitalize; }
.evidence-card h4 span { display: inline-block; margin-left: 5px; color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.evidence-card p { margin: 7px 0 0; color: var(--muted); font-size: .86rem; }
.evidence-quote { padding-left: 10px; border-left: 3px solid var(--brand-soft); color: #39545d !important; }
.assessment-note { margin-top: 12px !important; color: var(--brand-dark) !important; font-weight: 700; }
.badge--assessment { color: #16566b; border-color: #b8dce6; background: #ecf8fb; }
.finding { padding: 13px 0; border-top: 1px solid var(--line); }
.finding:first-child { padding-top: 0; border-top: 0; }
.finding h3 { margin: 0 0 5px; font-size: .95rem; }
.finding p, .finding ul { margin: 0; color: var(--muted); font-size: .88rem; }
.finding ul { padding-left: 19px; }
.disclaimer { padding: 13px; margin: 18px 0 0; border-left: 4px solid var(--brand); border-radius: 6px; color: #25424b; background: var(--brand-soft); font-size: .87rem; }

.share-prompt { position: fixed; z-index: 80; right: 20px; bottom: 20px; width: min(400px, calc(100% - 40px)); padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.share-prompt h2 { margin: 0; font-size: 1rem; }
.share-prompt p { margin: 7px 0 15px; color: var(--muted); font-size: .9rem; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: min(390px, calc(100% - 40px)); padding: 13px 15px; border-radius: 10px; color: #fff; background: var(--ink-strong); box-shadow: var(--shadow); }

/* Interview preparation */
.interview-spotlight { padding: 40px 0 18px; }
.interview-spotlight__card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 34px; padding: 32px; border: 1px solid #b9d9cf; border-radius: var(--radius-lg); background: linear-gradient(125deg, #edf8f4 0%, #ffffff 58%); box-shadow: 0 12px 26px rgba(8, 47, 51, .06); }
.interview-spotlight__intro h2 { margin: 5px 0 12px; font-size: clamp(1.8rem, 3vw, 2.45rem); }
.interview-spotlight__intro > p:not(.eyebrow) { max-width: 50ch; color: var(--muted); }
.interview-spotlight__privacy { font-size: .88rem; }
.interview-spotlight__intro .button { margin-top: 8px; }
.interview-checklist { padding: 20px; border: 1px solid #d3e4de; border-radius: 15px; background: rgba(255, 255, 255, .9); }
.interview-checklist__header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.interview-checklist__header h3 { margin: 0; font-size: 1rem; }
.interview-progress { color: var(--brand-dark); font-size: .82rem; font-weight: 750; white-space: nowrap; }
.interview-checklist fieldset, .interview-prep-checklist { margin: 0; padding: 0; border: 0; }
.interview-checklist__item { display: flex; align-items: flex-start; gap: 11px; padding: 13px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.interview-checklist__item:first-of-type { border-top: 0; }
.interview-checklist__item input { flex: 0 0 auto; width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--brand); }
.interview-checklist__item span { display: grid; gap: 3px; }
.interview-checklist__item strong { color: var(--ink-strong); font-size: .94rem; }
.interview-checklist__item small { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.interview-checklist__item input:checked + span strong { color: #276756; text-decoration: line-through; text-decoration-thickness: 1px; }
.interview-checklist__example { color: #276756 !important; font-style: italic; }
.interview-prep-page { padding-bottom: 42px; }
.interview-connected-notice { display: grid; gap: 4px; margin: 0 0 21px; padding: 14px 17px; border-left: 5px solid var(--lime); border-radius: 11px; color: #effff6; background: var(--ink-strong); }
.interview-connected-notice span { color: rgba(239, 255, 246, .8); font-size: .9rem; }
.interview-connected-notice--standalone { color: #234c48; border: 1px solid #bddbd3; border-left: 5px solid var(--lime); background: #f1f9f5; }
.interview-connected-notice--standalone span { color: #426561; }
.interview-prep-form { display: grid; gap: 21px; }
.interview-prep-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; }
.interview-prep-panel { min-width: 0; margin: 0; }
.interview-prep-panel .panel__header { margin-bottom: 18px; }
.interview-prep-panel > .form-grid,
.interview-prep-panel > .interview-prep-checklist,
.interview-prep-panel > .star-grid,
.interview-prep-panel > .field { min-width: 0; margin-inline: 24px; margin-bottom: 24px; }
.interview-prep-panel > .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.interview-prep-panel .form-grid > .field,
.interview-prep-panel .star-grid > .field { min-width: 0; }
.interview-prep-panel .input,
.interview-prep-panel .textarea,
.interview-prep-checklist .interview-checklist__item span { min-width: 0; }
.interview-prep-checklist { display: grid; gap: 2px; }
.interview-prep-checklist .interview-checklist__item { min-width: 0; padding-inline: 3px; }
.star-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.star-grid .textarea { min-height: 128px; }
.interview-prep-form > .form-actions { align-items: center; }
.interview-prep-form > .form-actions .button { flex: 0 1 auto; min-width: 170px; }
@media (max-width: 900px) {
  .interview-prep-panel > .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .interview-prep-layout, .star-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .interview-prep-panel > .form-grid { grid-template-columns: 1fr; }
  .interview-prep-panel > .form-grid,
  .interview-prep-panel > .interview-prep-checklist,
  .interview-prep-panel > .star-grid,
  .interview-prep-panel > .field { margin-inline: 18px; margin-bottom: 18px; }
  .interview-prep-form > .form-actions .button { flex-basis: 100%; }
}
.connection-options { display: grid; gap: 13px; margin: 16px 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.connection-options legend { padding: 0 5px; color: var(--ink-strong); font-weight: 750; }
.connection-options label { color: var(--ink-strong); }
.connection-options input { accent-color: var(--brand); }

/* Polished application surfaces */
.app-page-header > div { max-width: 720px; }
.app-page-header .eyebrow::after { display: inline-block; width: 34px; height: 3px; margin: 0 0 3px 10px; content: ""; border-radius: 999px; background: var(--lime); }

.metric-card { position: relative; overflow: hidden; }
.metric-card:first-child { border-color: var(--ink-strong); color: #f9fffc; background: var(--ink-strong); box-shadow: 0 16px 32px rgba(8, 47, 51, .16); }
.metric-card:first-child::after { position: absolute; right: -14px; bottom: -21px; width: 92px; height: 92px; content: ""; border: 1px solid rgba(199, 243, 107, .48); border-radius: 50%; }
.metric-card:first-child .metric-card__label,
.metric-card:first-child .metric-card__hint { color: rgba(249, 255, 252, .76); }
.metric-card:first-child .metric-card__value { color: var(--lime); }
.dashboard-grid > .panel:first-child { border-color: #bddbd3; background: linear-gradient(145deg, #ffffff 0%, #f2faf7 100%); }
.dashboard-grid > .panel:first-child .panel__header { position: relative; }
.dashboard-grid > .panel:first-child .panel__header::before { width: 5px; height: 38px; margin-top: 2px; content: ""; border-radius: 999px; background: var(--lime); }
.dashboard-grid > .panel:first-child .panel__header > div { flex: 1; }
.dashboard-grid > .panel:first-child .next-card { padding: 17px; border: 1px solid rgba(5, 109, 113, .11); border-radius: 14px; background: rgba(255, 255, 255, .84); }
.dashboard-grid > .panel:first-child .next-card + .next-card { margin-top: 10px; }
.dashboard-grid > .panel:first-child .next-card:first-child { border-top: 1px solid rgba(5, 109, 113, .11); }
.mini-list .panel + .panel { margin-top: 20px; }
.mini-list .panel__header { padding-bottom: 2px; }

.tracker-toolbar { align-items: end; gap: 13px; padding: 17px; border-color: #c9ddd7; background: linear-gradient(110deg, #f0f8f5, #ffffff 58%); box-shadow: 0 8px 20px rgba(8, 47, 51, .025); }
.filter-group { display: grid; grid-template-columns: minmax(220px, 1.55fr) repeat(3, minmax(128px, .72fr)); align-items: end; gap: 10px; }
.tracker-toolbar .input,
.tracker-toolbar .select { width: 100%; min-width: 0; background: rgba(255, 255, 255, .92); }
.tracker-toolbar > .button { flex: 0 0 auto; }
.tracker-section { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 8px 22px rgba(8, 47, 51, .02); }
.tracker-section + .tracker-section { margin-top: 24px; }
.tracker-section[aria-labelledby="saved-title"] { border-color: #c5dfd7; background: linear-gradient(135deg, #f5fbf8, #ffffff 48%); }
.tracker-section__heading { align-items: flex-start; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tracker-section__heading h2 { display: flex; align-items: center; gap: 9px; }
.tracker-section__heading h2::before { flex: 0 0 auto; width: 8px; height: 8px; content: ""; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(199, 243, 107, .22); }
.tracker-section .record-card { border-color: #d7e5e0; background: rgba(255, 255, 255, .92); }
.tracker-section .record-card:hover { border-color: #83bdae; }

.dialog { border: 1px solid rgba(255, 255, 255, .25); }
.modal-header { position: relative; color: #f9fffc; border-bottom: 0; background: var(--ink-strong); }
.modal-header::after { position: absolute; right: 24px; bottom: 0; left: 24px; height: 4px; content: ""; border-radius: 999px 999px 0 0; background: var(--lime); }
.modal-header .icon-button { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.modal-header .icon-button:hover { color: var(--ink-strong); border-color: var(--lime); background: var(--lime); }
#opportunity-form .form-grid { gap: 18px; }
#opportunity-form .field .select { width: 100%; min-width: 0; }
#opportunity-form .field:nth-child(1),
#opportunity-form .field:nth-child(2) { padding: 15px; border: 1px solid #d2e5df; border-radius: 14px; background: #f5fbf8; }
#opportunity-form .field:nth-child(3),
#opportunity-form .field:nth-child(4) { padding: 15px; border: 1px solid #dbe5df; border-radius: 14px; background: #fbfdfc; }
#opportunity-form .field:nth-child(n+6):nth-child(-n+9) { padding: 14px; border: 1px solid #e1e9e5; border-radius: 14px; background: #fafcfb; }
#opportunity-form .field:nth-child(1) label::before,
#opportunity-form .field:nth-child(3) label::before,
#opportunity-form .field:nth-child(6) label::before { display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; content: ""; border-radius: 50%; background: var(--lime); }
#opportunity-form .form-actions { margin-top: 28px; }
.quick-role-check { border-color: #bddbd3; border-left: 5px solid var(--lime); border-radius: 14px; background: linear-gradient(105deg, #edf8f3, #f9fdfb); }
.quick-role-check .button--secondary { border-color: #9cc8bb; background: #fff; }

@media (max-width: 900px) {
  .hero-grid, .welcome-layout, .dashboard-grid, .assessment-layout, .interview-spotlight__card { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .hero--welcome { min-height: 0; }
  .welcome-steps { max-width: 620px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-card { max-width: 620px; }
  .filter-group { grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(125px, 1fr)); }
  .tracker-section { padding: 21px; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 28px, var(--max)); }
  .site-nav .nav-link { display: none; }
  .header-row { min-height: 68px; }
  .app-header-row { flex-wrap: wrap; gap: 6px 10px; padding: 9px 0; }
  .app-nav { order: 3; width: 100%; overflow-x: auto; }
  .app-nav button { flex: 0 0 auto; }
  .app-main { padding-top: 34px; }
  .app-page-header { display: grid; gap: 16px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 142px; padding: 17px; }
  .metric-card__value { font-size: 1.9rem; }
  .record-card { grid-template-columns: 1fr; gap: 12px; padding: 17px; }
  .record-actions { justify-content: flex-start; }
  .tracker-toolbar { align-items: stretch; padding: 14px; }
  .filter-group { grid-template-columns: 1fr 1fr; }
  .filter-group .search-input { grid-column: 1 / -1; }
  .tracker-toolbar > .button { align-self: flex-start; }
  .tracker-section { padding: 18px; }
  .tracker-section__heading { align-items: flex-start; }
  #opportunity-form .field:nth-child(1),
  #opportunity-form .field:nth-child(2),
  #opportunity-form .field:nth-child(3),
  #opportunity-form .field:nth-child(4),
  #opportunity-form .field:nth-child(n+6):nth-child(-n+9) { padding: 13px; }
  .form-grid, .form-grid--three, .detail-grid, .assessment-cards, .star-grid, .interview-prep-layout { grid-template-columns: 1fr; }
  .interview-spotlight { padding-top: 27px; }
  .interview-spotlight__card { gap: 22px; padding: 22px; }
  .interview-checklist { padding: 16px; }
  .form-actions { justify-content: stretch; }
  .form-actions .button { flex: 1 1 auto; }
  .followup-form { grid-template-columns: 1fr; }
  .site-footer .footer-row { flex-direction: column; }
  .page-section { padding: 72px 0; }
  .hero--welcome { padding-block: 76px 70px; }
  .welcome-demo { align-items: flex-start; flex-direction: column; margin-top: 38px; }
  .progress { gap: 6px; }
  .progress__step { align-items: flex-start; padding: 8px; }
  .progress__step strong { font-size: .72rem; line-height: 1.2; }
  .assessment-sources { display: grid; gap: 12px; }
  .fixture-loader .button { width: 100%; }
  .evidence-card { padding: 11px; }
}
@media (max-width: 440px) {
  .metric-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero--welcome { padding-block: 62px 58px; }
  .hero h1 { font-size: 2.7rem; }
  .hero-actions .button { width: 100%; }
  .app-page-header .button { width: 100%; }
  .filter-group { flex-basis: 100%; }
  .select { width: 100%; }
  .welcome-steps { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
