:root {
  color-scheme: light;
  --navy-950: #031b2c;
  --navy-900: #052b47;
  --navy-800: #0b3b5d;
  --navy-100: #dce9f0;
  /* Text-role colors below are WCAG 2.1 AA-verified (>=4.5:1) against every real background they are
     used on in this stylesheet (page background, card/paper surfaces, and their own "-soft" tint
     pairing for status pills), computed and checked 13 August 2026 — see
     docs/AUDIT_FINDINGS_2026-08-13.md, Phase 11. --gold is intentionally left at its original,
     brighter brand value for large/decorative use (numerals, borders, fills with dark text on top);
     see --gold-text for the darker, AA-safe variant used where gold appears as normal-size text on a
     light background. */
  --red: #c81f2c;
  --red-soft: #fff0f1;
  --gold: #f0b429;
  --gold-text: #8a6208;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #17222c;
  --muted: #485258;
  --line: #e2ded4;
  --green: #0f6e4a;
  --green-soft: #e7f7f0;
  --shadow: 0 14px 34px rgba(3, 27, 44, .08);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --cream: #0e1820;
  --paper: #14222c;
  --white: #172832;
  --ink: #eef5f7;
  --muted: #9cb0bb;
  --line: #2b3d47;
  --navy-100: #263e4b;
  --red: #f56b7a;
  --red-soft: #3b1c23;
  --green: #3fc98f;
  --green-soft: #12392e;
  --gold-text: #f0b429;
  --shadow: 0 14px 34px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(240, 180, 41, .6); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.muted { color: var(--muted); }

.network-banner { position: fixed; inset: 0 0 auto; z-index: 100; padding: 8px; text-align: center; color: #fff; background: var(--red); font-size: 13px; font-weight: 700; }

/* Public landing experience */
.landing-view { position: relative; overflow: hidden; color: var(--navy-950); background: radial-gradient(circle at 8% 9%, rgba(240,180,41,.11), transparent 24%), radial-gradient(circle at 92% 28%, rgba(200,31,44,.07), transparent 25%), #f7f4ed; }
.landing-view::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .22; background-image: linear-gradient(rgba(5,43,71,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(5,43,71,.035) 1px,transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom,#000,transparent 72%); }
.landing-view > * { position: relative; z-index: 1; }
.landing-header { width: min(1440px, calc(100% - 48px)); height: 88px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.landing-brand { min-width: 240px; }
.landing-brand .brand-logo { width: 44px; height: 44px; }
.landing-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); }
.landing-nav a { position: relative; color: var(--navy-900); text-decoration: none; font-size: 12px; font-weight: 750; }
.landing-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--red); transition: right .22s ease; }
.landing-nav a:hover::after { right: 0; }
.landing-signin { min-height: 43px; padding: 10px 17px; color: #fff; border: 0; border-radius: 999px; background: var(--navy-900); font-size: 12px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.landing-signin:hover { transform: translateY(-2px); background: var(--navy-800); box-shadow: 0 10px 24px rgba(5,43,71,.22); }
.landing-signin span { margin-left: 14px; }
.landing-hero { width: min(1440px, calc(100% - 48px)); min-height: 700px; margin: 0 auto; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(36px, 6vw, 94px); padding: 44px 0 80px; }
.hero-copy { position: relative; z-index: 2; }
.landing-kicker { margin: 0 0 20px; color: var(--red); font-size: 10px; line-height: 1.4; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.landing-kicker > span { width: 28px; height: 1px; display: inline-block; margin: 0 9px 3px 0; background: currentColor; }
.landing-kicker.light { color: var(--gold); }
.landing-hero h1, .landing-section h2, .connected-section h2, .security-section h2, .landing-cta h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -.055em; }
.landing-hero h1 { max-width: 690px; font-size: clamp(58px, 6.7vw, 108px); line-height: .88; }
.landing-hero h1 em { display: block; color: var(--red); font-style: italic; }
.hero-lede { max-width: 620px; margin: 32px 0 0; color: #53616b; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.landing-primary, .landing-secondary { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 13px 23px; border-radius: 999px; font-size: 12px; font-weight: 850; text-decoration: none; }
.landing-primary { color: #fff; border: 1px solid var(--red); background: var(--red); box-shadow: 0 14px 30px rgba(200,31,44,.2); transition: transform .18s ease, box-shadow .18s ease; }
.landing-primary:hover { transform: translateY(-3px); box-shadow: 0 19px 35px rgba(200,31,44,.26); }
.landing-secondary { color: var(--navy-900); border: 1px solid #d7d4cc; background: transparent; }
.landing-secondary:hover { border-color: var(--navy-900); }
.hero-proof { display: flex; gap: clamp(24px, 4vw, 52px); margin-top: 54px; padding-top: 25px; border-top: 1px solid #ddd8ce; }
.hero-proof div { display: grid; gap: 3px; }
.hero-proof strong { color: var(--navy-900); font-family: Georgia, serif; font-size: 25px; }
.hero-proof span { color: #6a747a; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.hero-visual { min-height: 620px; position: relative; border: 1px solid rgba(255,255,255,.7); border-radius: 230px 230px 26px 26px; overflow: hidden; box-shadow: 0 34px 90px rgba(3,27,44,.23),0 0 0 10px rgba(255,255,255,.35); isolation: isolate; }
.hero-visual > img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.hero-visual::after { content: ""; position: absolute; inset: -35% -80%; z-index: 1; transform: rotate(18deg); background: linear-gradient(90deg,transparent 42%,rgba(255,255,255,.18) 50%,transparent 58%); animation: landingSheen 9s ease-in-out infinite; pointer-events: none; }
.hero-visual-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(3,27,44,.58)); }
.floating-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px; padding: 13px 16px; color: var(--navy-900); border: 1px solid rgba(255,255,255,.7); border-radius: 15px; background: rgba(255,255,255,.9); box-shadow: 0 15px 38px rgba(3,27,44,.16); backdrop-filter: blur(14px); }
.floating-card-top { top: 25%; left: 20px; }
.floating-card-bottom { right: 20px; bottom: 21%; }
.floating-card small, .floating-card strong { display: block; }
.floating-card small { margin-bottom: 2px; color: #71808a; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.floating-card strong { font-size: 11px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #18a66b; box-shadow: 0 0 0 5px rgba(24,166,107,.12); }
.float-icon { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; border-radius: 9px; background: var(--navy-900); }
.hero-stamp { width: 118px; height: 118px; position: absolute; left: 25px; bottom: 25px; z-index: 2; display: grid; place-items: center; align-content: center; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(3,27,44,.45); backdrop-filter: blur(10px); text-align: center; }
.hero-stamp strong { color: var(--gold); font-family: Georgia, serif; font-size: 22px; }
.hero-stamp span { margin-top: 4px; font-size: 8px; line-height: 1.35; letter-spacing: .1em; text-transform: uppercase; }
.trust-strip { min-height: 105px; display: flex; align-items: center; justify-content: center; gap: clamp(35px, 6vw, 100px); padding: 20px 5vw; color: #fff; background: var(--navy-950); }
.trust-strip p { margin: 0; color: var(--gold); font-family: Georgia, serif; font-style: italic; font-size: 17px; }
.trust-strip div { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); }
.trust-strip span { color: rgba(255,255,255,.7); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.trust-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.landing-section { padding: clamp(82px, 10vw, 150px) max(24px, calc((100vw - 1440px) / 2)); }
.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: end; margin-bottom: 66px; }
.section-heading h2, .journey-intro h2 { font-size: clamp(48px, 5.8vw, 86px); line-height: .95; }
.section-heading > p { max-width: 510px; margin: 0 0 7px; color: #5e6b73; font-size: 15px; line-height: 1.8; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.capability-card { min-height: 320px; position: relative; padding: 28px; border: 1px solid #dedbd2; border-radius: 22px; background: #fffdf8; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.capability-card:hover, .capability-card:focus { transform: translateY(-7px); border-color: var(--gold); box-shadow: 0 22px 48px rgba(3,27,44,.1); outline: none; }
.capability-card::after { content: ""; position: absolute; right: -55px; bottom: -70px; width: 150px; height: 150px; border: 1px solid rgba(240,180,41,.22); border-radius: 50%; transition: transform .35s ease; }
.capability-card:hover::after { transform: scale(1.18); }
@keyframes landingSheen { 0%,60% { transform: translateX(-30%) rotate(18deg); } 85%,100% { transform: translateX(42%) rotate(18deg); } }
@media (prefers-reduced-motion: reduce) { .hero-visual::after { animation: none; } .capability-card,.landing-signin,.landing-primary { transition: none; } }
.capability-featured { color: #fff; border-color: var(--navy-900); background: var(--navy-900); }
.capability-number { color: #8a959c; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.capability-icon { width: 46px; height: 46px; display: grid; place-items: center; margin: 27px 0 24px; color: var(--navy-900); border-radius: 14px; background: #e5edf1; font-size: 21px; }
.capability-featured .capability-icon { color: var(--navy-950); background: var(--gold); }
.capability-card h3 { margin: 0; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.capability-card p { max-width: 360px; color: #68747b; font-size: 12px; line-height: 1.7; }
.capability-featured p { color: rgba(255,255,255,.68); }
.capability-card ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; padding: 0; list-style: none; }
.capability-card li { padding: 6px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: rgba(255,255,255,.78); font-size: 8px; text-transform: uppercase; }
.card-arrow { position: absolute; right: 24px; bottom: 22px; font-size: 18px; transition: transform .2s ease; }
.capability-card:hover .card-arrow { transform: translate(3px,-3px); }
.capability-image-card { min-height: 385px; grid-row: span 2; padding: 0; color: #fff; }
.capability-image-card img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.capability-image-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(3,27,44,.9)); }
.capability-image-card div { position: absolute; inset: auto 28px 27px; z-index: 2; }
.capability-image-card h3 { font-size: 32px; line-height: 1.08; }
.connected-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 760px; color: #fff; background: var(--navy-900); }
.connected-image { min-height: 650px; position: relative; overflow: hidden; }
.connected-image img { width: 100%; height: 100%; position: absolute; object-fit: cover; filter: saturate(.75); }
.connected-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 45%, var(--navy-900)), linear-gradient(0deg, rgba(3,27,44,.4), transparent); }
.connected-image > span { position: absolute; left: 9%; bottom: 8%; z-index: 2; font-family: Georgia, serif; font-size: clamp(21px,2.3vw,34px); font-style: italic; }
.connected-copy { display: grid; align-content: center; padding: clamp(60px, 8vw, 130px); }
.connected-section h2 { font-size: clamp(54px, 6vw, 90px); line-height: .93; }
.connected-copy > p:not(.landing-kicker) { max-width: 630px; margin: 28px 0 30px; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.8; }
.sync-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.sync-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.sync-steps li > span { color: var(--gold); font-family: Georgia, serif; }
.sync-steps strong, .sync-steps small { display: block; }
.sync-steps strong { font-family: Georgia, serif; font-size: 17px; }
.sync-steps small { margin-top: 5px; color: rgba(255,255,255,.55); line-height: 1.5; }
.text-cta { width: fit-content; margin-top: 27px; padding: 0 0 8px; color: #fff; border: 0; border-bottom: 1px solid var(--gold); background: transparent; font-weight: 800; }
.text-cta span { margin-left: 22px; color: var(--gold); }
.journey-section { background: #fffdf8; }
.journey-intro { text-align: center; }
.journey-track { display: grid; grid-template-columns: repeat(5, 1fr); margin: 65px 0; border-top: 1px solid #d9d6ce; }
.journey-track article { position: relative; padding: 28px 24px 20px; border-right: 1px solid #e4e1d9; }
.journey-track article::before { content: ""; width: 10px; height: 10px; position: absolute; top: -6px; left: 23px; border: 3px solid #fffdf8; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.journey-track span { color: var(--red); font-size: 9px; font-weight: 900; }
.journey-track strong { display: block; margin-top: 20px; font-family: Georgia, serif; font-size: 22px; }
.journey-track p { color: #6b767c; font-size: 11px; line-height: 1.6; }
.outcome-banner { min-height: 520px; position: relative; display: flex; align-items: center; padding: clamp(28px,7vw,100px); border-radius: 28px; overflow: hidden; color: #fff; }
.outcome-banner > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 37%; }
.outcome-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,27,44,.91), rgba(3,27,44,.2)); }
.outcome-banner > div { position: relative; z-index: 2; }
.outcome-banner h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(38px,5vw,70px); font-weight: 500; line-height: 1; }
.outcome-banner button, .landing-cta button { margin-top: 30px; padding: 13px 20px; color: var(--navy-950); border: 0; border-radius: 999px; background: var(--gold); font-size: 11px; font-weight: 850; }
.security-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding: clamp(80px,10vw,145px) max(24px,calc((100vw - 1440px)/2)); }
.security-section h2 { font-size: clamp(42px,4.8vw,72px); line-height: .98; }
.security-grid { display: grid; gap: 8px; }
.security-grid article { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 22px 0; border-bottom: 1px solid #ddd8ce; }
.security-grid article > span { width: 42px; height: 42px; grid-row: span 2; display: grid; place-items: center; color: #fff; border-radius: 12px; background: var(--navy-900); }
.security-grid strong { font-family: Georgia, serif; font-size: 20px; }
.security-grid p { margin: 5px 0 0; color: #657178; font-size: 11px; line-height: 1.6; }
.landing-cta { min-height: 500px; display: grid; place-items: center; align-content: center; padding: 70px 24px; color: #fff; background: radial-gradient(circle at 15% 20%,rgba(240,180,41,.16),transparent 20%), radial-gradient(circle at 90% 90%,rgba(200,31,44,.22),transparent 25%),var(--navy-950); text-align: center; }
.landing-cta h2 { font-size: clamp(58px,7vw,100px); line-height: .9; }
.landing-cta button { min-height: 55px; padding-inline: 25px; }
.landing-cta button span { margin-left: 25px; }
.landing-footer { min-height: 260px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; padding: 58px max(24px,calc((100vw - 1440px)/2)); color: #fff; background: #021521; }
.landing-footer > p { margin: 10px 0; color: rgba(255,255,255,.5); text-align: right; font-family: Georgia, serif; font-style: italic; }
.landing-footer nav { display: flex; gap: 24px; align-items: center; }
.landing-footer nav a, .landing-footer nav button { padding: 0; color: rgba(255,255,255,.68); border: 0; background: transparent; text-decoration: none; font-size: 10px; }
.landing-footer > small { color: rgba(255,255,255,.34); text-align: right; font-size: 9px; }
.back-home { margin: 0 0 24px; padding: 0; color: var(--muted); border: 0; background: transparent; font-size: 11px; font-weight: 750; }
.back-home:hover { color: var(--red); }

/* Phase 13 (17 August 2026): a single shared, subtle entrance for the two login-view panels -
   fade plus a small rise, staggered slightly so the story side leads. Neutralized entirely under
   prefers-reduced-motion by the existing "*, *::before, *::after" rule further down this file,
   which now also zeroes `animation` in addition to `transition` - see that rule for the opt-out. */
@keyframes niitLoginRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.login-panel .login-card { animation: niitLoginRise .55s .08s ease-out both; }

.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); }
.login-story { min-height: 100vh; padding: clamp(32px, 5vw, 72px); color: #fff; background: radial-gradient(circle at 78% 18%, rgba(240, 180, 41, .22), transparent 24%), linear-gradient(140deg, var(--navy-950), var(--navy-800)); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; animation: niitLoginRise .55s ease-out both; }
.login-story::after { content: ""; width: 420px; height: 420px; border: 90px solid rgba(255,255,255,.035); border-radius: 50%; position: absolute; right: -140px; bottom: -160px; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-light { color: #fff; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.brand-mark { width: 42px; height: 42px; border-radius: 12px 12px 12px 4px; display: grid; place-items: center; background: var(--gold); color: var(--navy-950); font-size: 22px; font-weight: 900; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.brand strong { display: block; letter-spacing: -.02em; }
.brand em { color: var(--red); font-style: normal; }
.brand small { display: block; margin-top: 2px; opacity: .65; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.story-copy { max-width: 760px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 7px; color: var(--navy-800); font-size: 11px; line-height: 1.2; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.brand-light + .story-copy .eyebrow { color: var(--gold); }
/* .gold is used as a standalone utility class on the light cream/white dashboard body (section
   eyebrows like "Platform engine online"), not just inside the dark login hero, so it needs the
   AA-safe --gold-text variant rather than the brighter --gold used for large/decorative or
   dark-background contexts. See docs/AUDIT_FINDINGS_2026-08-13.md, Phase 11. */
.gold { color: var(--gold-text); }
.eyebrow.red { color: var(--red); }
.story-copy h1 { max-width: 680px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(48px, 6vw, 82px); line-height: .98; letter-spacing: -.045em; }
.story-copy > p:last-child { max-width: 600px; margin: 28px 0 0; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.65; }
.story-stats { display: flex; gap: clamp(24px, 5vw, 72px); z-index: 1; }
.story-stats div { display: flex; flex-direction: column; }
.story-stats strong { color: var(--gold); font-family: Georgia, serif; font-size: 32px; }
.story-stats span { color: rgba(255,255,255,.65); font-size: 12px; }
.login-panel { padding: 32px; display: grid; place-items: center; background: var(--cream); }
.login-card { width: min(430px, 100%); padding: clamp(28px, 5vw, 48px); border: 1px solid var(--line); border-radius: 28px 28px 28px 8px; background: var(--paper); box-shadow: var(--shadow); }
.login-card h2 { margin: 0; font-family: Georgia, serif; font-size: 36px; }
.login-card form { display: grid; gap: 10px; margin-top: 30px; }
.access-controls { display: grid; gap: 8px; margin-top: 22px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--cream) 48%, transparent); }
.access-controls small { font-size: 10px; line-height: 1.5; }
.field-label { margin-top: 7px; color: var(--ink); font-size: 12px; font-weight: 750; }
.portal-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.portal-choice { min-height: 43px; padding: 8px; color: var(--navy-900); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 10px; font-weight: 800; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.portal-choice:hover { border-color: var(--gold); transform: translateY(-1px); }
.portal-choice.active { color: #fff; border-color: var(--navy-900); background: var(--navy-900); box-shadow: 0 6px 14px rgba(5,43,71,.15); }
label { color: var(--ink); font-size: 12px; font-weight: 750; }
label small { color: var(--muted); font-weight: 500; }
input, select, textarea { width: 100%; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; transition: border-color .16s ease, box-shadow .16s ease; }
.login-card input:focus, .login-card select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(240, 180, 41, .16); }
textarea { resize: vertical; line-height: 1.5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--cream); line-height: 1.5; }
.consent-row input { width: 18px; flex: 0 0 18px; margin-top: 2px; }
.credential-box { padding: 18px; overflow-wrap: anywhere; color: var(--navy-900); border: 2px dashed var(--gold); border-radius: 12px; background: var(--cream); text-align: center; font-size: 18px; font-weight: 850; letter-spacing: .04em; white-space: pre-wrap; }
.password-field { display: flex; border: 1px solid var(--line); border-radius: 11px; background: var(--white); transition: border-color .16s ease, box-shadow .16s ease; }
.password-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(240, 180, 41, .16); }
.password-field input { border: 0; background: transparent; }
.password-field input:focus { box-shadow: none; }
.password-toggle { width: 46px; flex: 0 0 46px; display: grid; place-items: center; color: var(--navy-900); border: 0; border-left: 1px solid var(--line); border-radius: 0 10px 10px 0; background: transparent; transition: background-color .16s ease; }
.password-toggle:hover { background: var(--navy-100); }
.password-toggle svg { grid-area: 1 / 1; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.text-button { color: var(--red); border: 0; background: transparent; font-size: 12px; font-weight: 800; }
.primary-button, .secondary-button { min-height: 40px; border-radius: 10px; padding: 9px 15px; border: 1px solid transparent; font-weight: 800; transition: background-color .16s ease, transform .12s ease, box-shadow .16s ease; }
.primary-button { color: #fff; background: var(--navy-900); box-shadow: 0 7px 16px rgba(5, 43, 71, .18); }
.primary-button:hover { background: var(--navy-800); transform: translateY(-1px); box-shadow: 0 10px 20px rgba(5, 43, 71, .22); }
.primary-button:active { transform: translateY(0); box-shadow: 0 5px 12px rgba(5, 43, 71, .18); }
.primary-button:disabled { cursor: progress; opacity: .82; transform: none; }
.secondary-button { color: var(--navy-900); border-color: var(--line); background: var(--paper); }
.secondary-button:hover { border-color: var(--gold); }
.full { width: 100%; margin-top: 8px; }
.form-error { min-height: 18px; margin: 0; color: var(--red); font-size: 12px; }
.security-note { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: 11px; }
.security-note span { color: var(--green); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; z-index: 30; display: flex; flex-direction: column; padding: 24px 16px 18px; color: #fff; background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 24px; }
.main-nav { display: grid; gap: 3px; overflow-y: auto; padding-right: 4px; }
.nav-group { margin: 16px 10px 5px; color: rgba(255,255,255,.4); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 12px; color: rgba(255,255,255,.7); border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: 13px; font-weight: 650; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: var(--navy-950); background: var(--gold); font-weight: 850; }
.nav-icon { width: 23px; text-align: center; font-size: 16px; }
.sidebar-foot { margin-top: auto; }
.sync-card { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.05); }
.sync-card strong, .sync-card small { display: block; }
.sync-card strong { font-size: 11px; }
.sync-card small { margin-top: 2px; color: rgba(255,255,255,.5); font-size: 9px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #4dd599; box-shadow: 0 0 0 4px rgba(77,213,153,.12); }
.status-dot.offline { background: #f06b75; box-shadow: 0 0 0 4px rgba(240,107,117,.12); }
.logout-button { width: 100%; margin-top: 8px; padding: 10px 12px; color: rgba(255,255,255,.6); border: 0; background: transparent; text-align: left; font-size: 12px; }
.logout-button:hover { color: #fff; }

.workspace { min-width: 0; }
.topbar { min-height: 82px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px clamp(18px, 3vw, 38px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(16px); }
.breadcrumb { margin: 0 0 2px; color: var(--muted); font-size: 10px; }
.topbar h1 { margin: 0; font-family: Georgia, serif; font-size: 23px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.compact-select { width: auto; min-width: 58px; height: 38px; padding: 6px 8px; border-radius: 10px; }
.search-box { min-width: 230px; display: flex; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.search-box input { border: 0; background: transparent; padding: 9px 3px; font-size: 12px; }
.icon-button { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 17px; }
.profile-button { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border: 0; background: transparent; text-align: left; color: var(--ink); }
.profile-button > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--red); font-size: 11px; font-weight: 850; }
.profile-button strong, .profile-button small { display: block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-button strong { font-size: 11px; }
.profile-button small { color: var(--muted); font-size: 9px; }
.content { padding: clamp(20px, 3vw, 38px); }

.hero-card { min-height: 188px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(26px, 4vw, 48px); color: #fff; border-radius: 26px 26px 26px 7px; background: radial-gradient(circle at 85% 20%, rgba(240,180,41,.28), transparent 20%), linear-gradient(110deg, var(--navy-900), var(--navy-800)); box-shadow: var(--shadow); }
.hero-card h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 49px); letter-spacing: -.03em; }
.hero-card p:last-child { max-width: 660px; margin: 10px 0 0; color: rgba(255,255,255,.68); }
.hero-date { width: 106px; height: 106px; flex: 0 0 106px; display: grid; place-items: center; align-content: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(255,255,255,.08); }
.hero-date span { color: var(--gold); font-family: Georgia, serif; font-size: 40px; line-height: 1; }
.hero-date small { margin-top: 4px; color: rgba(255,255,255,.65); font-size: 9px; letter-spacing: .1em; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.metric-card { min-height: 124px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 5px 16px rgba(3,27,44,.03); }
.metric-card-top { display: flex; align-items: center; justify-content: space-between; }
.metric-card .metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--navy-900); background: var(--navy-100); }
.metric-card:nth-child(2) .metric-icon { color: var(--red); background: var(--red-soft); }
.metric-card:nth-child(3) .metric-icon { color: #8a6100; background: #fff6d9; }
.metric-card:nth-child(4) .metric-icon { color: var(--green); background: var(--green-soft); }
.metric-card strong { display: block; margin-top: 14px; font-family: Georgia, serif; font-size: 28px; }
.metric-card small { color: var(--muted); }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.panel { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.span-two { grid-column: span 2; }
.span-three { grid-column: span 3; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.panel-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 20px; }
.activity-list { display: grid; }
.activity-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.activity-item:first-child { border-top: 0; }
.activity-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--navy-900); background: var(--navy-100); }
.activity-item strong, .activity-item small { display: block; }
.activity-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.activity-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.activity-item time { color: var(--muted); font-size: 9px; }
.attention-panel { color: #fff; background: linear-gradient(145deg, #b81e2b, var(--red)); border: 0; }
.attention-panel .eyebrow, .attention-panel .panel-heading h3 { color: #fff; }
.approval-summary { display: grid; gap: 14px; }
.approval-number { font-family: Georgia, serif; font-size: 66px; line-height: 1; }
.approval-summary p { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.6; }
.approval-summary button { color: var(--red); background: #fff; }
.quick-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.quick-link { min-height: 94px; padding: 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 13px; background: var(--white); text-align: left; }
.quick-link:hover { border-color: var(--gold); transform: translateY(-1px); }
.quick-link span { display: block; margin-bottom: 15px; font-size: 19px; }
.quick-link strong { font-size: 11px; }

.resource-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 14px; }
.commerce-panel { margin-bottom: 20px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(circle at 92% 12%, rgba(240,180,41,.18), transparent 24%), var(--paper); box-shadow: var(--shadow); }
.commerce-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.commerce-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(26px, 3vw, 38px); color: var(--navy-900); }
.commerce-heading p:last-child { max-width: 710px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.secure-badge { flex: 0 0 auto; padding: 7px 10px; color: var(--green); border-radius: 999px; background: var(--green-soft); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.plan-card { position: relative; min-height: 235px; display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.plan-card.featured { color: #fff; border-color: var(--navy-900); background: linear-gradient(145deg, var(--navy-950), var(--navy-800)); }
.plan-card h3 { margin: 8px 0 5px; font-family: Georgia, serif; font-size: 20px; }
.plan-card > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.plan-card.featured > p { color: rgba(255,255,255,.7); }
.plan-price { margin: 18px 0 2px; color: var(--navy-900); font-family: Georgia, serif; font-size: 26px; font-weight: 800; }
.plan-card.featured .plan-price { color: var(--gold-text); }
.plan-cadence { color: var(--muted); font-size: 9px; }
.plan-card.featured .plan-cadence { color: rgba(255,255,255,.6); }
.plan-card button { width: 100%; margin-top: auto; }
.plan-card.featured button { color: var(--navy-950); background: var(--gold); }
.discount-note { margin-top: 5px; color: var(--green); font-size: 9px; font-weight: 800; }
.plan-card.featured .discount-note { color: #7ce1b8; }
.resource-tabs { display: flex; gap: 5px; overflow-x: auto; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.resource-tab { white-space: nowrap; padding: 8px 12px; color: var(--muted); border: 0; border-radius: 8px; background: transparent; font-size: 11px; font-weight: 750; }
.resource-tab.active { color: #fff; background: var(--navy-900); }
.toolbar-actions { display: flex; gap: 7px; }
.user-report-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.user-report-actions select { min-width: 170px; }
.resource-guidance { margin: 0 0 12px; padding: 12px 15px; color: var(--navy-800); border: 1px solid rgba(19,91,68,.18); border-left: 4px solid var(--green); border-radius: 10px; background: var(--green-soft); font-size: 11px; line-height: 1.55; }
.support-launcher { position: fixed; right: 22px; bottom: 22px; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 12px 16px; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: linear-gradient(135deg,var(--navy-900),var(--navy-800)); box-shadow: 0 14px 38px rgba(3,27,44,.28); font-size: 11px; }
.support-launcher span { display: grid; width: 25px; height: 25px; place-items: center; color: var(--navy-950); border-radius: 50%; background: var(--gold); }
.support-dialog { width: min(430px,calc(100vw - 24px)); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.support-dialog::backdrop { background: rgba(3,27,44,.42); backdrop-filter: blur(3px); }
.support-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px; color: #fff; background: linear-gradient(135deg,var(--navy-950),var(--navy-800)); }
.support-head h2 { margin: 3px 0 0; font-family: Georgia,serif; }
.support-messages { max-height: 310px; min-height: 150px; overflow-y: auto; padding: 18px; }
.support-message { width: fit-content; max-width: 88%; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px 12px 12px 3px; color: var(--navy-900); background: var(--cream); font-size: 11px; line-height: 1.5; }
.support-message.user { margin-left: auto; color: #fff; border-radius: 12px 12px 3px 12px; background: var(--navy-800); }
.support-suggestions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 12px; }
.support-suggestion { padding: 8px 10px; color: var(--green); border: 1px solid rgba(19,91,68,.22); border-radius: 999px; background: var(--green-soft); font-size: 10px; font-weight: 800; }
.support-form { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.support-form input { min-width: 0; flex: 1; }
.support-privacy { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 9px; }
.table-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: 0 8px 25px rgba(3,27,44,.04); }
.table-meta { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table-meta p { margin: 0; color: var(--muted); font-size: 11px; }
.table-meta span { color: var(--navy-800); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 17px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); background: color-mix(in srgb, var(--cream) 48%, transparent); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
td { font-size: 11px; }
.record-cell { min-width: 260px; }
.record-cell strong, .record-cell small { display: block; }
.record-cell strong { font-size: 12px; }
.record-cell small { margin-top: 4px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 9px; font-weight: 850; }
.status-pill.pending, .status-pill.draft { color: #8a6100; background: #fff6d9; }
.status-pill.rejected, .status-pill.archived { color: var(--red); background: var(--red-soft); }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.mini-button { padding: 5px 8px; color: var(--navy-900); border: 1px solid var(--line); border-radius: 7px; background: var(--white); font-size: 9px; font-weight: 800; }
.mini-button.approve { color: var(--green); }
.mini-button.reject { color: var(--red); }
.empty-state { min-height: 310px; display: grid; place-items: center; align-content: center; padding: 30px; text-align: center; }
.empty-state span { color: var(--gold-text); font-size: 42px; }
.empty-state h3 { margin: 8px 0 3px; font-family: Georgia, serif; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }

.modal { width: min(620px, calc(100% - 28px)); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 30px 80px rgba(3,27,44,.26); }
.modal::backdrop { background: rgba(3, 16, 25, .66); backdrop-filter: blur(4px); }
.modal form { display: grid; gap: 10px; padding: 8px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.modal h2 { margin: 0; font-family: Georgia, serif; font-size: 27px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row > div { display: grid; gap: 7px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.record-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.record-field { min-width: 0; }
.record-field-wide { grid-column: 1 / -1; }
.record-field label { display: block; }
.record-field input, .record-field select, .record-field textarea { width: 100%; }
.advanced-details { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.advanced-details summary { cursor: pointer; font-weight: 700; }
.compact-modal { max-width: 470px; }
.account-list { margin: 0; }
.account-list div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.account-list dt { color: var(--muted); font-size: 11px; }
.account-list dd { margin: 0; text-align: right; font-size: 11px; font-weight: 750; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; max-width: 380px; padding: 13px 16px; color: #fff; border-radius: 11px; background: var(--navy-950); box-shadow: var(--shadow); font-size: 12px; }
.toast.error { background: var(--red); }
.mobile-only { display: none; }

.programme-hero, .kpi-hero { min-height: 230px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 52px); color: #fff; border-radius: 28px 28px 28px 8px; background: radial-gradient(circle at 86% 8%, rgba(240,180,41,.3), transparent 26%), radial-gradient(circle at 12% 110%, rgba(220,38,53,.25), transparent 28%), linear-gradient(115deg, var(--navy-950), var(--navy-800)); box-shadow: var(--shadow); overflow: hidden; }
.programme-hero h2, .kpi-hero h2 { max-width: 760px; margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 54px); letter-spacing: -.035em; }
.programme-hero p:not(.eyebrow), .kpi-hero p:not(.eyebrow) { max-width: 690px; margin: 12px 0 0; color: rgba(255,255,255,.7); line-height: 1.6; }
.programme-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.gold-button, .ghost-button { min-height: 43px; padding: 10px 16px; border-radius: 11px; font-weight: 850; }
.gold-button { color: var(--navy-950); border: 1px solid var(--gold); background: var(--gold); }
.ghost-button { color: #fff; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); }
.programme-seal { width: 145px; height: 145px; flex: 0 0 145px; display: grid; place-items: center; align-content: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 10px rgba(255,255,255,.025); }
.programme-seal strong { color: var(--gold); font-family: Georgia, serif; font-size: 46px; line-height: 1; }
.programme-seal span { margin-top: 7px; color: rgba(255,255,255,.66); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.programme-layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.6fr); gap: 16px; }
.programme-projects-panel { align-self: start; position: sticky; top: 100px; }
.programme-project-list { display: grid; gap: 8px; max-height: 680px; overflow-y: auto; }
.programme-project { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 13px; background: var(--white); text-align: left; }
.programme-project:hover { border-color: var(--gold); transform: translateY(-1px); }
.programme-project.active { color: #fff; border-color: var(--navy-900); background: var(--navy-900); box-shadow: 0 9px 22px rgba(5,43,71,.17); }
.programme-project strong, .programme-project small { display: block; }
.programme-project strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.programme-project small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.programme-project.active small { color: rgba(255,255,255,.63); }
.programme-project > span { color: var(--green); font-family: Georgia, serif; font-size: 16px; font-weight: 800; }
.programme-project.active > span { color: var(--gold); }
.journey-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.journey-heading h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(25px, 3vw, 36px); }
.journey-heading .muted { margin: 7px 0 0; font-size: 11px; }
.progress-orbit { width: 92px; height: 92px; flex: 0 0 92px; display: grid; place-items: center; align-content: center; border: 8px solid var(--navy-100); border-top-color: var(--gold); border-radius: 50%; }
.progress-orbit strong { color: var(--navy-900); font-family: Georgia, serif; font-size: 23px; }
.progress-orbit span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.progress-track { height: 7px; margin: 20px 0; border-radius: 999px; background: var(--navy-100); overflow: hidden; }
.progress-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .3s ease; }
.journey-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.stage-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: programme-stage; }
.stage-card { counter-increment: programme-stage; position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 13px; padding: 16px 0; border-top: 1px solid var(--line); }
.stage-card::before { content: counter(programme-stage); width: 31px; height: 31px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-size: 10px; font-weight: 850; }
.stage-card.approved::before { content: "✓"; color: #fff; border-color: var(--green); background: var(--green); }
.stage-card.pending_approval::before { color: #8a6100; border-color: var(--gold); background: #fff6d9; }
.stage-card.revision_required::before { content: "!"; color: #fff; border-color: var(--red); background: var(--red); }
.stage-card.locked { opacity: .55; }
.stage-card h4 { margin: 0; font-size: 13px; }
.stage-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.stage-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 9px; }
.stage-actions { display: flex; align-items: flex-start; gap: 5px; }
.programme-spotlight { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.programme-spotlight article { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.programme-spotlight h3 { margin: 0; font-family: Georgia, serif; font-size: 18px; }
.programme-spotlight p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.spotlight-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; color: var(--navy-900); border-radius: 11px; background: var(--navy-100); }
.programme-modal #programmeIdeaFields, .programme-modal #stageSubmissionFields, .programme-modal #stageReviewFields { display: grid; gap: 8px; }
.kpi-controls { min-width: 190px; padding: 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.07); }
.kpi-controls label { display: block; margin-bottom: 7px; color: rgba(255,255,255,.7); }
.kpi-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.kpi-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.kpi-card-head { display: flex; justify-content: space-between; gap: 12px; }
.kpi-card h4 { margin: 0; font-family: Georgia, serif; font-size: 19px; }
.kpi-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.kpi-score { color: var(--green); font-family: Georgia, serif; font-size: 24px; font-weight: 800; }
.kpi-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.kpi-stats div { padding: 10px; border-radius: 10px; background: color-mix(in srgb, var(--cream) 58%, transparent); }
.kpi-stats strong, .kpi-stats span { display: block; }
.kpi-stats strong { color: var(--navy-900); font-size: 16px; }
.kpi-stats span { margin-top: 3px; color: var(--muted); font-size: 8px; text-transform: uppercase; }

@media (max-width: 1180px) {
  .landing-hero { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-visual { min-height: 560px; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .connected-copy { padding: 70px 48px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-links { grid-template-columns: repeat(3, 1fr); }
  .search-box { min-width: 170px; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programme-spotlight { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .landing-header { height: 76px; }
  .landing-nav { display: none; }
  .landing-hero { grid-template-columns: 1fr; padding-top: 45px; }
  .landing-hero h1 { max-width: 760px; }
  .hero-visual { min-height: 570px; }
  .trust-strip { flex-direction: column; gap: 16px; }
  .section-heading, .security-section { grid-template-columns: 1fr; gap: 30px; }
  .connected-section { grid-template-columns: 1fr; }
  .connected-image { min-height: 500px; }
  .connected-image::after { background: linear-gradient(0deg,var(--navy-900),transparent 55%); }
  .journey-track { grid-template-columns: 1fr 1fr; border-top: 0; }
  .journey-track article { border-top: 1px solid #d9d6ce; }
  .login-view { grid-template-columns: 1fr; }
  .login-story { min-height: 46vh; }
  .story-copy h1 { font-size: clamp(40px, 10vw, 68px); }
  .login-panel { min-height: 54vh; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; transform: translateX(-102%); width: 270px; transition: transform .2s ease; box-shadow: 24px 0 50px rgba(0,0,0,.2); }
  .sidebar.open { transform: translateX(0); }
  .scrim { position: fixed; inset: 0; z-index: 25; background: rgba(2,15,24,.55); }
  .mobile-only { display: grid; }
  .sidebar .mobile-only { color: #fff; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.06); }
  .topbar { position: sticky; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .span-three { grid-column: span 2; }
  .quick-links { grid-template-columns: repeat(3, 1fr); }
  .programme-layout { grid-template-columns: 1fr; }
  .programme-projects-panel { position: static; }
  .programme-project-list { grid-template-columns: repeat(2, minmax(0,1fr)); max-height: none; }
}

@media (max-width: 680px) {
  .landing-header, .landing-hero { width: min(100% - 30px, 1440px); }
  .landing-header { gap: 12px; }
  .landing-brand { min-width: 0; }
  .landing-brand .brand-logo { width: 38px; height: 38px; }
  .landing-brand small { display: none; }
  .landing-signin { min-height: 39px; padding: 8px 13px; }
  .landing-signin span { margin-left: 5px; }
  .landing-hero { padding: 48px 0 64px; }
  .landing-hero h1 { font-size: clamp(55px,19vw,82px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .landing-primary, .landing-secondary { width: 100%; }
  .hero-proof { gap: 16px; justify-content: space-between; }
  .hero-proof span { font-size: 7px; }
  .hero-visual { min-height: 480px; border-radius: 150px 150px 22px 22px; }
  .floating-card-top { top: 28%; left: 12px; }
  .floating-card-bottom { right: 12px; bottom: 17%; }
  .hero-stamp { width: 92px; height: 92px; left: 14px; bottom: 14px; }
  .trust-strip div { flex-wrap: wrap; justify-content: center; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-image-card { min-height: 400px; grid-row: auto; }
  .connected-image { min-height: 380px; }
  .connected-copy { padding: 70px 24px; }
  .journey-track { grid-template-columns: 1fr; }
  .outcome-banner { min-height: 540px; padding: 28px; }
  .outcome-banner::after { background: linear-gradient(0deg,rgba(3,27,44,.9),rgba(3,27,44,.15)); }
  .outcome-banner > div { margin-top: auto; }
  .landing-footer { grid-template-columns: 1fr; }
  .landing-footer > p, .landing-footer > small { text-align: left; }
  .login-story { padding: 28px 23px; }
  .story-copy { margin: 70px 0; }
  .story-stats { gap: 22px; }
  .story-stats strong { font-size: 25px; }
  .login-panel { padding: 18px; }
  .topbar { align-items: flex-start; padding: 12px 14px; }
  .topbar > div:nth-child(2) { flex: 1; }
  .topbar h1 { font-size: 18px; }
  .search-box, .profile-button > span:last-child { display: none; }
  .compact-select { min-width: 52px; }
  .content { padding: 14px; }
  .hero-card { align-items: flex-start; min-height: 210px; }
  .hero-date { width: 74px; height: 74px; flex-basis: 74px; }
  .hero-date span { font-size: 28px; }
  .metric-grid, .overview-grid { grid-template-columns: 1fr; }
  .span-two, .span-three { grid-column: span 1; }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .resource-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-actions { justify-content: flex-end; }
  .field-row { grid-template-columns: 1fr; }
  .record-fields { grid-template-columns: 1fr; }
  .commerce-heading { flex-direction: column; }
  .plan-grid { grid-template-columns: 1fr; }
  th:nth-child(3), td:nth-child(3), th:nth-child(4), td:nth-child(4) { display: none; }
  .programme-hero, .kpi-hero { align-items: flex-start; flex-direction: column; min-height: 0; padding: 26px 22px; }
  .programme-seal { width: 95px; height: 95px; flex-basis: 95px; }
  .programme-seal strong { font-size: 31px; }
  .programme-project-list, .programme-spotlight, .kpi-card-grid { grid-template-columns: 1fr; }
  .journey-heading { align-items: flex-start; }
  .progress-orbit { width: 72px; height: 72px; flex-basis: 72px; border-width: 6px; }
  .stage-card { grid-template-columns: 31px minmax(0,1fr); }
  .stage-actions { grid-column: 2; }
  .kpi-stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.legal-footer {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 1rem;
  background: #041f34;
  color: #fff;
  font-size: .85rem;
}
.legal-footer a { color: #fff; }
