:root {
    color-scheme: light;
    --graphite: #111817;
    --deep: #18211f;
    --deep-raised: #202c29;
    --teal: #087f6a;
    --teal-hover: #066b5a;
    --soft-teal: #e7f5f1;
    --canvas: #f5f7f6;
    --card: #fff;
    --text: #17201e;
    --text-secondary: #586560;
    --border: #d7dedb;
    --information: #2563a6;
    --caution: #a85f06;
    --critical: #b42318;
    --confirmed: #247a4a;
    --focus: #f2b84b;
    --radius-sm: 4px;
    --radius: 6px;
    --content: 1180px;
    --font: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 20rem; background: var(--canvas); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body, button { font-family: var(--font); }
a { color: var(--teal-hover); text-underline-offset: .2em; }
a:hover { color: var(--teal); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button { font-size: 1rem; }
img, svg { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { color: var(--text); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
h1 { font-size: clamp(2.65rem, 6vw, 5.4rem); }
h1[tabindex="-1"]:focus { outline: none; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.14rem; }
code { font-family: var(--mono); font-size: .875em; }

.skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; transform: translateY(-160%); padding: .75rem 1rem; background: #fff; color: var(--graphite); border: 2px solid var(--graphite); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.content-width { width: min(calc(100% - 3rem), var(--content)); margin-inline: auto; }
.narrow-content { max-width: 760px; }
.public-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.public-main:focus { outline: none; }

/* Brand and public navigation */
.public-header { position: relative; z-index: 20; background: var(--graphite); border-bottom: 1px solid rgb(255 255 255 / 10%); color: #fff; }
.header-inner { width: min(calc(100% - 3rem), var(--content)); min-height: 76px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand-mark { min-height: 44px; display: inline-flex; align-items: center; gap: .7rem; color: var(--graphite); text-decoration: none; }
.brand-name { font-size: 1.48rem; font-weight: 750; letter-spacing: -.035em; }
.brand-symbol { width: 1.55rem; height: 1.55rem; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 3px; transform: skewY(-18deg); }
.brand-symbol span { display: block; background: var(--teal); border-radius: 1px; }
.brand-symbol span:nth-child(1) { height: 45%; }
.brand-symbol span:nth-child(2) { height: 72%; }
.brand-symbol span:nth-child(3) { height: 100%; }
.public-header .brand-mark, .brand-on-dark, .footer-brand { color: #fff; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.desktop-nav a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #d9e2df; font-size: .94rem; font-weight: 600; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a.active:not(.login-link) { color: #fff; }
.desktop-nav .login-link { min-height: 44px; padding: 0 1rem; border: 1px solid #6c7975; border-radius: var(--radius-sm); color: #fff; }
.desktop-nav .login-link:hover, .desktop-nav .login-link.active { background: #fff; border-color: #fff; color: var(--graphite); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { min-width: 56px; min-height: 44px; display: grid; place-items: center; border: 1px solid #63706c; border-radius: var(--radius-sm); color: #fff; cursor: pointer; list-style: none; font-weight: 650; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 250px; padding: .65rem; display: grid; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px rgb(0 0 0 / 18%); }
.mobile-nav nav a { min-height: 48px; display: flex; align-items: center; padding: .5rem .75rem; color: var(--text); text-decoration: none; font-weight: 650; }
.mobile-nav nav a:hover, .mobile-nav nav a.active { background: var(--soft-teal); color: var(--teal-hover); }

/* Shared type and actions */
.eyebrow, .section-kicker { margin: 0 0 .85rem; color: var(--teal-hover); font-size: .77rem; font-weight: 750; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.eyebrow-on-dark, .section-kicker-light { color: #72c7b5; }
.section-kicker-caution { color: var(--caution); }
.section-lede, .hero-lede { color: var(--text-secondary); font-size: clamp(1.1rem, 2vw, 1.28rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 700; line-height: 1.2; text-decoration: none; transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--teal); color: #fff; }
.button-primary:hover { background: var(--teal-hover); color: #fff; }
.button-secondary-dark { border-color: #73807c; color: #fff; }
.button-secondary-dark:hover { background: #fff; border-color: #fff; color: var(--graphite); }
.button-outline, .button-outline-dark { border-color: var(--teal); color: var(--teal-hover); }
.button-outline:hover, .button-outline-dark:hover { background: var(--teal); color: #fff; }
.button-light { background: #fff; color: var(--graphite); }
.button-light:hover { background: var(--soft-teal); color: var(--graphite); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: .45rem; color: var(--teal-hover); font-weight: 700; text-decoration-thickness: 1px; }
.text-link-light { color: #fff; }
.text-link-light:hover { color: #bce9dd; }
.environment-badge { width: fit-content; min-height: 28px; display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .55rem; background: var(--soft-teal); border: 1px solid #b6d9d0; border-radius: 3px; color: var(--teal-hover); font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }

/* Homepage */
.home-hero { position: relative; min-height: 680px; overflow: hidden; display: grid; align-items: center; background: var(--graphite); color: #fff; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 42%, rgb(8 127 106 / 12%)); }
.hero-content { position: relative; z-index: 2; padding-block: clamp(5.5rem, 11vw, 9rem) 5rem; }
.home-hero h1 { max-width: 920px; margin: 0; color: #fff; font-size: clamp(3.1rem, 7vw, 6.5rem); letter-spacing: -.055em; line-height: .98; }
.home-hero h1 span { color: #72c7b5; }
.home-hero .hero-lede { max-width: 690px; margin: 1.8rem 0 2.2rem; color: #c7d2ce; }
.hero-structure { position: absolute; inset: 0 0 0 auto; width: 48%; opacity: .45; background-image: linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px); background-size: 48px 48px; clip-path: polygon(28% 0,100% 0,100% 100%,0 100%); }
.hero-structure::before, .hero-structure::after, .hero-structure span { content: ""; position: absolute; width: 2px; background: rgb(105 203 181 / 55%); transform: rotate(26deg); transform-origin: bottom; }
.hero-structure::before { height: 78%; right: 24%; bottom: -5%; }
.hero-structure::after { height: 58%; right: 45%; bottom: -4%; }
.hero-structure span:nth-child(1) { height: 42%; right: 10%; bottom: 0; }
.hero-structure span:nth-child(2) { width: 62%; height: 2px; right: 5%; top: 32%; transform: rotate(-9deg); }
.hero-structure span:nth-child(3) { width: 72%; height: 2px; right: 2%; top: 58%; transform: rotate(7deg); }
.hero-principles { margin-top: 4.5rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; color: #bac6c2; font-size: .84rem; font-weight: 650; letter-spacing: .045em; text-transform: uppercase; }
.hero-principles span { display: inline-flex; align-items: center; gap: .65rem; }
.hero-principles i { color: #6fbbaa; font-family: var(--mono); font-size: .72rem; font-style: normal; }
.section { padding-block: clamp(5rem, 9vw, 8rem); background: #fff; }
.section-compact { padding-block: clamp(4rem, 7vw, 6rem); }
.section-soft { background: var(--canvas); }
.two-column-intro, .privacy-grid, .boundary-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(2.5rem, 8vw, 7rem); align-items: start; }
.two-column-intro h2, .privacy-grid h2, .boundary-grid h2 { margin: 0; }
.two-column-intro p:first-child { margin-top: 0; }
.process-flow { margin-top: 5rem; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.process-flow article { position: relative; padding: 2.25rem 1.75rem 0 0; }
.process-flow article::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--teal); transform: rotate(45deg); }
.process-flow span { color: var(--teal); font-family: var(--mono); font-size: .76rem; }
.process-flow h3 { margin: .8rem 0 .55rem; }
.process-flow p { margin: 0; color: var(--text-secondary); font-size: .94rem; }
.section-heading { max-width: 720px; margin-bottom: 3rem; }
.section-heading h2, .split-heading h2, .centered-heading h2 { margin: 0; }
.section-heading > p:last-child { color: var(--text-secondary); }
.split-heading { max-width: none; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4rem; align-items: end; }
.split-heading > p { margin: 0; }
.centered-heading { margin-inline: auto; text-align: center; }
.workflow-grid, .trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.workflow-grid article, .trust-grid article { min-height: 230px; padding: 2rem; background: #fff; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.workflow-grid h3, .trust-grid h3 { margin: 1.4rem 0 .6rem; }
.workflow-grid p, .trust-grid p { margin: 0; color: var(--text-secondary); }
.line-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #a8c8c0; color: var(--teal-hover); font-size: 1.2rem; }
.evidence-story-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(3rem, 9vw, 8rem); align-items: center; }
.evidence-story h2 { margin: 0; }
.evidence-illustration { position: relative; min-height: 430px; background: var(--canvas); border: 1px solid var(--border); overflow: hidden; }
.evidence-illustration::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 32px 32px; opacity: .5; }
.evidence-card { position: absolute; z-index: 1; display: grid; padding: 1.2rem; background: #fff; border: 1px solid var(--border); }
.evidence-card span { color: var(--text-secondary); font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.evidence-card strong { margin-top: .35rem; }
.evidence-card-main { inset: 72px 70px auto 52px; min-height: 210px; box-shadow: 0 12px 30px rgb(17 24 23 / 8%); }
.evidence-card-main strong { color: var(--teal-hover); font-family: var(--mono); }
.evidence-card-main i { width: 88%; height: 8px; margin-top: 1.4rem; background: #e2e7e5; }
.evidence-card-main i:nth-of-type(2) { width: 64%; margin-top: .65rem; }
.evidence-card-main i:nth-of-type(3) { width: 72%; margin-top: .65rem; }
.evidence-card-review { right: 30px; bottom: 42px; border-left: 4px solid var(--caution); }
.evidence-card-history { left: 28px; bottom: 20px; border-left: 4px solid var(--confirmed); }
.human-section { background: var(--deep); color: #d6dfdc; }
.human-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(3rem, 10vw, 9rem); }
.human-section h2 { margin: 0; color: #fff; }
.human-section p { font-size: 1.08rem; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.principle-grid article { min-height: 245px; padding: 2rem 1.6rem; background: #fff; }
.principle-grid > article > span { width: 46px; height: 46px; display: grid; place-items: center; background: var(--soft-teal); color: var(--teal-hover); font-weight: 700; }
.principle-grid h3 { margin: 2.25rem 0 .65rem; }
.principle-grid p { margin: 0; color: var(--text-secondary); }
.privacy-section .info-banner { margin-top: 2rem; }
.pilot-strip { padding-block: 3.5rem; background: #e8f2ef; border-block: 1px solid #cbded9; }
.pilot-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.pilot-strip h2 { margin: 1rem 0 .4rem; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.pilot-strip p { max-width: 720px; margin: 0; color: var(--text-secondary); }
.final-cta { padding-block: clamp(4rem, 8vw, 6.5rem); background: var(--teal-hover); color: #fff; }
.final-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.final-cta h2 { max-width: 700px; margin: 0; color: #fff; }
.final-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* Public interior pages */
.page-hero { padding-block: clamp(5rem, 10vw, 8rem); background: var(--graphite); color: #fff; border-top: 1px solid rgb(255 255 255 / 8%); }
.page-hero h1 { max-width: 980px; margin: 0; color: #fff; font-size: clamp(2.8rem, 6vw, 5.5rem); }
.page-hero .hero-lede { max-width: 770px; margin: 1.6rem 0 0; color: #c7d2ce; }
.page-hero .hero-actions { margin-top: 2rem; }
.product-steps { max-width: 900px; margin: 3rem 0 0 auto; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.product-steps li { display: grid; grid-template-columns: 70px 1fr; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--border); }
.product-steps li > span { color: var(--teal); font-family: var(--mono); font-size: .8rem; }
.product-steps h3 { margin: 0 0 .45rem; font-size: 1.3rem; }
.product-steps p { margin: 0; color: var(--text-secondary); }
.check-list { border-top: 1px solid var(--border); }
.check-list p { display: grid; grid-template-columns: 30px 1fr; padding: 1rem 0; margin: 0; border-bottom: 1px solid var(--border); }
.check-list span { color: var(--teal); font-weight: 800; }
.check-list p:not(:first-child) span { color: var(--caution); }
.trust-grid article > span { color: var(--teal); font-family: var(--mono); font-size: 1.35rem; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.comparison-grid article { padding: clamp(1.5rem, 4vw, 2.75rem); background: #fff; border: 1px solid var(--border); }
.comparison-grid h2 { margin: 0; font-size: 1.8rem; }
.icon-list { margin: 1.8rem 0 0; padding: 0; list-style: none; }
.icon-list li { position: relative; padding: .72rem 0 .72rem 2rem; border-top: 1px solid var(--border); }
.icon-list li::before { position: absolute; left: 0; top: .72rem; font-weight: 800; }
.positive-list li::before { content: "✓"; color: var(--confirmed); }
.gated-list li::before { content: "×"; color: var(--caution); }

/* Notices, login and error states */
.info-banner { display: grid; grid-template-columns: 28px 1fr; gap: .7rem; padding: 1rem; background: #edf4fb; border: 1px solid #bed0e5; border-left: 4px solid var(--information); border-radius: var(--radius-sm); color: #1d456c; }
.info-banner-icon { width: 22px; height: 22px; display: grid; place-items: center; background: var(--information); border-radius: 50%; color: #fff; font-size: .75rem; font-weight: 800; }
.caution-banner { background: #fff8eb; border-color: #e5c996; border-left-color: var(--caution); color: #684109; }
.caution-banner .info-banner-icon { background: var(--caution); }
.caution-banner strong, .caution-banner span { display: block; }
.login-page { min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); background: #fff; }
.login-panel { width: min(100% - 3rem, 620px); margin: 0 auto; padding-block: clamp(3rem, 8vw, 7rem); }
.back-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--text-secondary); font-weight: 650; text-decoration: none; }
.login-heading { margin: 3.5rem 0 2rem; }
.login-heading h1 { margin: .4rem 0 1rem; font-size: clamp(2.5rem, 5vw, 4rem); }
.login-heading > p:last-child { color: var(--text-secondary); font-size: 1.1rem; }
.login-mark { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 1.5rem; background: var(--soft-teal); color: var(--teal); font-size: 1.4rem; }
.disabled-access { margin-top: 2rem; padding: 1.5rem; background: var(--canvas); border: 1px solid var(--border); }
.disabled-access > span { display: block; margin-bottom: .75rem; font-size: .82rem; font-weight: 700; }
.disabled-access button { width: 100%; min-height: 48px; border: 1px solid #c8cecc; background: #e7eae9; color: #6a7471; cursor: not-allowed; font-weight: 700; }
.disabled-access p { margin: .75rem 0 0; color: var(--text-secondary); font-size: .85rem; }
.login-links { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.login-footnote { margin-top: 2.5rem; color: var(--text-secondary); font-size: .85rem; }
.portal-form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.form-field { display: grid; gap: .45rem; }
.form-field label { font-weight: 750; }
.form-field input, .form-field select, .form-field textarea, .context-selector select { width: 100%; min-height: 48px; padding: .7rem .8rem; border: 1px solid #9da9a5; border-radius: var(--radius-sm); background: #fff; color: var(--text); font: inherit; }
.form-field textarea { min-height: 126px; resize: vertical; }
.form-field small { color: var(--text-secondary); font-size: .76rem; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .context-selector select:focus { outline: 3px solid rgb(29 119 100 / 28%); outline-offset: 1px; border-color: var(--teal-hover); }
.validation-message, .validation-errors, .form-error { color: var(--critical); font-size: .82rem; font-weight: 650; }
.validation-errors { margin: 0; padding-left: 1.25rem; }
.form-error { margin: 0; padding: .75rem; background: #fff0ef; border-left: 4px solid var(--critical); }
.error-banner { margin-block: 1rem; background: #fff0ef; border-color: #e0aaa6; color: #7d211b; }
.error-banner .info-banner-icon { background: var(--critical); }
.login-context { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2.5rem, 6vw, 6rem); background: var(--deep); color: #c8d2cf; }
.login-context h2 { max-width: 550px; margin: 0 0 1.5rem; color: #fff; }
.login-context > div p:last-child { max-width: 600px; }
.login-context ul { margin: 3rem 0 0; padding: 0; list-style: none; border-top: 1px solid #44514d; }
.login-context li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #44514d; }
.login-context li span { color: #70bbaa; font-family: var(--mono); font-size: .75rem; }
.access-unavailable { min-height: calc(100vh - 76px); display: grid; place-items: center; padding-block: 5rem; text-align: center; }
.access-unavailable h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 5rem); }
.access-unavailable .hero-actions { justify-content: center; margin-top: 2rem; }
.access-unavailable .info-banner { margin: 2rem 0; text-align: left; }
.large-status-icon { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 1.5rem; background: var(--soft-teal); color: var(--teal); font-size: 1.7rem; }
.not-found { width: min(calc(100% - 3rem), 780px); margin: clamp(5rem, 11vw, 9rem) auto; padding: clamp(2rem, 5vw, 4rem); background: #fff; border: 1px solid var(--border); }
.not-found h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.not-found > p:not(.eyebrow) { color: var(--text-secondary); font-size: 1.1rem; }
.not-found-code { color: #dfe5e2; font-family: var(--mono); font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; }

/* Footer */
.public-footer { padding: 4rem max(1.5rem, calc((100% - var(--content)) / 2)); background: var(--graphite); color: #aebbb7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 4rem; }
.footer-grid p { max-width: 350px; }
.footer-owner { color: #e3ebe8; font-weight: 650; }
.public-footer nav { display: grid; align-content: start; }
.public-footer nav a { min-height: 44px; display: flex; align-items: center; color: #cbd6d2; text-decoration: none; }
.public-footer nav a:hover { color: #fff; }
.footer-status { display: grid; align-content: start; gap: .75rem; }
.footer-status p { margin: 0; }
.footer-status a { min-height: 44px; display: inline-flex; align-items: center; color: #c4eade; }
.footer-base { margin-top: 3rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid #37423f; font-size: .8rem; }

/* Portal preview */
.preview-shell { min-height: 100vh; background: var(--canvas); }
.operational-shell { min-height: 100vh; background: var(--canvas); }
.operational-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem clamp(1rem, 4vw, 3rem); background: var(--graphite); color: #fff; }
.operational-header .brand { color: #fff; }
.operational-header nav { display: flex; align-items: center; gap: .35rem; }
.operational-header nav a, .operational-header nav button { min-height: 44px; display: inline-flex; align-items: center; padding: .55rem .8rem; border: 0; border-radius: var(--radius-sm); background: transparent; color: #d4dedb; font: inherit; font-size: .82rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.operational-header nav a:hover, .operational-header nav a.active, .operational-header nav button:hover { background: #263935; color: #fff; }
.operational-main { width: min(calc(100% - 3rem), 1380px); margin-inline: auto; padding-block: 2rem 3rem; }
.operational-main:focus { outline: none; }
.operational-loading, .empty-state { padding: 1.35rem; color: var(--text-secondary); }
.health-state { min-width: 160px; display: grid; gap: .15rem; padding: .8rem 1rem; background: #fff; border: 1px solid var(--border); }
.health-state span, .health-state small, .context-summary span, .context-summary small { color: var(--text-secondary); font-size: .68rem; text-transform: uppercase; }
.health-state strong { color: var(--teal-hover); }
.context-selector { display: grid; grid-template-columns: 1fr minmax(260px, .6fr); align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding: 1.1rem 1.25rem; }
.context-selector h2 { margin: 0; font-size: 1.2rem; }
.context-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 1.25rem; background: var(--border); border: 1px solid var(--border); }
.context-summary > div { min-width: 0; display: grid; gap: .25rem; padding: 1rem; background: #fff; }
.context-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operational-grid { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); gap: 1.25rem; margin-bottom: 1.25rem; }
.panel-form { margin: 0; padding: 1.25rem; }
.submission-outcome { display: grid; gap: .2rem; margin: 0 1.25rem 1.25rem; padding: 1rem; background: var(--soft-teal); border-left: 4px solid var(--teal); }
.submission-outcome span, .submission-outcome small { color: var(--text-secondary); font-size: .72rem; }
.operational-list { margin: 0; padding: 0; list-style: none; }
.operational-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.operational-list li > div { min-width: 0; display: grid; gap: .3rem; }
.operational-list li > div:last-child { justify-items: end; align-content: start; }
.operational-list strong { overflow-wrap: anywhere; }
.operational-list span, .operational-list time { color: var(--text-secondary); font-size: .75rem; }
.audit-panel { margin-bottom: 1.25rem; }
.preview-warning { position: sticky; z-index: 50; top: 0; min-height: 46px; display: flex; justify-content: center; align-items: center; border-width: 0 0 1px; border-radius: 0; background: #fff3d6; border-color: #dfba6c; color: #5d3a06; font-size: .88rem; font-weight: 750; text-align: center; }
.preview-warning .info-banner-icon { flex: 0 0 auto; background: var(--caution); }
.preview-frame { min-height: calc(100vh - 46px); display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.portal-sidebar { position: sticky; top: 46px; height: calc(100vh - 46px); display: flex; flex-direction: column; padding: 1.35rem 1rem; background: var(--graphite); color: #bcc8c4; overflow-y: auto; }
.sidebar-brand { padding: 0 .65rem 1.25rem; border-bottom: 1px solid #34403c; }
.sidebar-context { margin: 1.25rem .65rem; display: grid; gap: .35rem; }
.sidebar-context strong { margin-top: .55rem; color: #fff; font-size: .83rem; line-height: 1.35; }
.sidebar-context > span:last-child { font-size: .78rem; }
.environment-badge-dark { background: #203b35; border-color: #39645a; color: #9dd8c9; }
.portal-nav-list { margin: 0; padding: 0; list-style: none; }
.portal-nav-list li { margin-bottom: .15rem; }
.portal-nav-list a, .portal-nav-list li > span { min-height: 46px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: .45rem; padding: .55rem .65rem; border-radius: var(--radius-sm); color: #c5d0cc; text-decoration: none; font-size: .9rem; }
.portal-nav-list a:hover, .portal-nav-list a.active { background: #22332f; color: #fff; }
.portal-nav-list a.active { border-left: 3px solid #5fc1ab; padding-left: calc(.65rem - 3px); }
.portal-nav-list li > span { color: #8d9a96; }
.portal-nav-list small { color: #82908b; font-size: .63rem; text-transform: uppercase; }
.sidebar-return { min-height: 44px; margin: auto .65rem 0; display: flex; align-items: center; color: #a7d8cc; font-size: .82rem; }
.preview-workspace { min-width: 0; }
.context-bar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .75rem 1.75rem; background: #fff; border-bottom: 1px solid var(--border); }
.context-location { display: grid; }
.context-location span { color: var(--text-secondary); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.context-location strong { font-size: .84rem; }
.context-actions { display: flex; align-items: center; gap: 1.3rem; }
.context-actions > a { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: .83rem; font-weight: 650; }
.synthetic-user { display: flex; align-items: center; gap: .65rem; }
.user-avatar { width: 36px; height: 36px; display: grid; place-items: center; background: var(--soft-teal); border: 1px solid #c0dcd5; color: var(--teal-hover); font-size: .75rem; font-weight: 800; }
.synthetic-user > span:last-child { display: grid; }
.synthetic-user strong { font-size: .79rem; }
.synthetic-user small { color: var(--text-secondary); font-size: .69rem; }
.preview-mobile-nav { display: none; }
.preview-main { width: min(calc(100% - 3rem), 1380px); margin-inline: auto; padding-block: 2rem 3rem; }
.preview-main:focus { outline: none; }
.preview-page-heading { margin-bottom: 2rem; display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.preview-page-heading h1 { margin: 0; font-size: clamp(2rem, 3.5vw, 2.8rem); }
.preview-page-heading p:last-child { margin: .35rem 0 0; color: var(--text-secondary); }
.data-date { display: grid; text-align: right; }
.data-date span { color: var(--text-secondary); font-size: .7rem; text-transform: uppercase; }
.data-date strong { font-size: .82rem; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.panel-heading { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; border-bottom: 1px solid var(--border); }
.panel-heading .section-kicker { margin-bottom: .25rem; }
.panel-heading h2 { margin: 0; font-size: 1.25rem; }
.compact-heading { min-height: auto; margin-bottom: .85rem; padding: 0; border: 0; }
.preview-label { padding: .2rem .45rem; background: #edf0ef; color: var(--text-secondary); font-size: .67rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; margin-bottom: 1.25rem; }
.metric-card { min-height: 126px; display: flex; align-items: center; gap: 1rem; padding: 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.metric-symbol { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid currentColor; font-weight: 800; }
.info-symbol { color: var(--information); background: #edf4fb; }
.critical-symbol { color: var(--critical); background: #fff0ee; }
.caution-symbol { color: var(--caution); background: #fff7e8; }
.neutral-symbol { color: #5f6c68; background: #eff2f1; }
.metric-card > div { display: grid; }
.metric-card strong { color: var(--text); font-size: 1.6rem; line-height: 1.1; }
.metric-card span:not(.metric-symbol) { font-size: .82rem; font-weight: 700; }
.metric-card small { margin-top: .2rem; color: var(--text-secondary); font-size: .68rem; }
.queue-panel { margin-bottom: 1.25rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { padding: .9rem 1.15rem; border-bottom: 1px solid #e3e8e6; text-align: left; vertical-align: middle; }
th { background: #fafbfb; color: var(--text-secondary); font-size: .68rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td code { color: var(--teal-hover); font-weight: 650; }
.status-badge { width: fit-content; min-height: 26px; display: inline-flex; align-items: center; gap: .42rem; padding: .2rem .48rem; border: 1px solid var(--border); border-radius: 3px; background: #f6f8f7; color: #4d5a56; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.status-shape { width: 7px; height: 7px; flex: 0 0 auto; background: currentColor; transform: rotate(45deg); }
.status-information { background: #eef5fc; border-color: #bdd2e8; color: #1d5d96; }
.status-caution { background: #fff8eb; border-color: #e6cc9c; color: #8d5208; }
.status-critical { background: #fff1ef; border-color: #e6bdb8; color: #9e2218; }
.preview-lower-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.25rem; margin-bottom: 1.25rem; }
.activity-list { margin: 0; padding: 1.15rem 1.35rem; list-style: none; }
.activity-list li { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: .65rem; padding-bottom: 1.2rem; }
.activity-list li > span { width: 8px; height: 8px; margin-top: .45rem; background: var(--teal); transform: rotate(45deg); }
.activity-list li:not(:last-child)::after { content: ""; position: absolute; top: 1rem; bottom: 0; left: 3px; width: 1px; background: var(--border); }
.activity-list div { display: grid; }
.activity-list strong { font-size: .82rem; }
.activity-list p { margin: .1rem 0; color: var(--text-secondary); font-size: .77rem; }
.activity-list time { color: var(--text-secondary); font-size: .67rem; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; background: var(--border); }
.evidence-grid > div { min-width: 0; padding: .85rem 1.1rem; background: #fff; }
.evidence-grid dt { color: var(--text-secondary); font-size: .64rem; font-weight: 750; text-transform: uppercase; }
.evidence-grid dd { margin: .25rem 0 0; font-size: .79rem; }
.evidence-grid dd code { overflow-wrap: anywhere; color: var(--teal-hover); }
.provenance-mark { color: var(--confirmed); }
.panel-note { margin: 0; padding: .85rem 1.1rem; background: #fafbfb; color: var(--text-secondary); font-size: .7rem; }
.data-status-panel { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding: 1.35rem; align-items: center; }
.data-status-panel h2 { margin: 0; font-size: 1.25rem; }
.data-status-panel p:last-child { margin: .3rem 0 0; color: var(--text-secondary); font-size: .82rem; }
.data-status-panel ul { display: grid; grid-template-columns: repeat(2, auto); gap: .55rem 1.5rem; margin: 0; padding: 0; list-style: none; font-size: .78rem; font-weight: 650; }
.data-status-panel li { display: flex; align-items: center; gap: .45rem; }
.data-status-panel li span { color: var(--teal); font-weight: 800; }

#blazor-error-ui { display: none; position: fixed; z-index: 1000; inset: auto 0 0; padding: 1rem; background: #fff3cd; border-top: 1px solid #d7b767; color: #382d00; }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

@media (max-width: 1100px) {
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .preview-lower-grid { grid-template-columns: 1fr; }
    .operational-grid { grid-template-columns: 1fr; }
    .process-flow { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
    .workflow-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .principle-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .mobile-nav { display: block; }
    .home-hero { min-height: 620px; }
    .hero-structure { width: 68%; opacity: .25; }
    .two-column-intro, .privacy-grid, .boundary-grid, .human-grid, .evidence-story-grid, .split-heading { grid-template-columns: 1fr; gap: 2.25rem; }
    .evidence-story-grid { gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .login-page { grid-template-columns: 1fr; }
    .login-context { min-height: 520px; }
    .preview-frame { grid-template-columns: 1fr; }
    .context-summary { grid-template-columns: 1fr; }
    .context-selector { grid-template-columns: 1fr; }
    .portal-sidebar { display: none; }
    .context-bar { position: relative; }
    .preview-mobile-nav { display: block; }
    .preview-mobile-nav summary { min-height: 44px; display: flex; align-items: center; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: .78rem; font-weight: 700; list-style: none; }
    .preview-mobile-nav summary::-webkit-details-marker { display: none; }
    .preview-mobile-nav > div { position: absolute; z-index: 20; top: calc(100% - .5rem); left: 1rem; width: min(340px, calc(100vw - 2rem)); max-height: calc(100vh - 110px); overflow-y: auto; display: grid; gap: .4rem; padding: 1rem; background: #fff; border: 1px solid var(--border); box-shadow: 0 10px 24px rgb(0 0 0 / 12%); font-size: .76rem; }
    .preview-mobile-nav nav { margin-top: .6rem; display: grid; border-top: 1px solid var(--border); }
    .preview-mobile-nav nav a, .preview-mobile-nav nav > span, .preview-mobile-return { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .45rem .35rem; border-bottom: 1px solid #e7ebe9; color: var(--text); text-decoration: none; }
    .preview-mobile-nav nav a { color: var(--teal-hover); font-weight: 750; }
    .preview-mobile-nav nav > span { color: var(--text-secondary); }
    .preview-mobile-nav nav small { font-size: .58rem; text-transform: uppercase; }
    .preview-mobile-return { margin-top: .35rem; color: var(--teal-hover); font-weight: 700; }
    .context-location { display: none; }
}

@media (max-width: 700px) {
    .content-width, .header-inner, .preview-main { width: min(calc(100% - 2rem), var(--content)); }
    .header-inner { min-height: 68px; }
    .home-hero { min-height: auto; }
    .hero-content { padding-block: 4.75rem 3rem; }
    .home-hero h1 { font-size: clamp(2.75rem, 14vw, 4.7rem); }
    .hero-principles { margin-top: 3rem; display: grid; }
    .section { padding-block: 4.25rem; }
    .process-flow { grid-template-columns: 1fr; }
    .workflow-grid, .trust-grid, .principle-grid, .comparison-grid { grid-template-columns: 1fr; }
    .workflow-grid article, .trust-grid article, .principle-grid article { min-height: 0; }
    .evidence-illustration { min-height: 360px; }
    .evidence-card-main { inset: 48px 32px auto 28px; }
    .evidence-card-review { right: 14px; }
    .evidence-card-history { left: 14px; }
    .pilot-strip-inner, .footer-base { align-items: flex-start; flex-direction: column; }
    .final-cta-inner { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid > div:first-child { grid-column: auto; }
    .login-context { min-height: 600px; padding: 2rem 1.5rem; }
    .preview-warning { min-height: 58px; padding: .55rem .75rem; font-size: .76rem; line-height: 1.3; }
    .context-bar { min-height: 64px; padding: .6rem 1rem; }
    .context-actions > a, .synthetic-user > span:last-child { display: none; }
    .preview-page-heading { align-items: start; flex-direction: column; gap: .75rem; }
    .operational-main { width: min(calc(100% - 2rem), var(--content)); }
    .operational-header { align-items: flex-start; flex-direction: column; }
    .operational-header nav { width: 100%; overflow-x: auto; }
    .data-date { text-align: left; }
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 110px; }
    .queue-panel .table-wrap { overflow: visible; }
    .queue-panel table, .queue-panel tbody { display: block; }
    .queue-panel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
    .queue-panel tr { display: grid; grid-template-columns: repeat(2, 1fr); margin: .8rem; padding: .8rem; border: 1px solid var(--border); }
    .queue-panel td { display: grid; gap: .15rem; padding: .55rem; border: 0; }
    .queue-panel td::before { content: attr(data-label); color: var(--text-secondary); font-size: .61rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
    .evidence-grid { grid-template-columns: 1fr; }
    .data-status-panel { grid-template-columns: 1fr; }
    .data-status-panel ul { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
    .header-inner { width: calc(100% - 1.5rem); }
    .mobile-nav nav { right: -.25rem; width: calc(100vw - 1.5rem); }
    .button { width: 100%; }
    .hero-actions, .final-actions, .login-links { align-items: stretch; flex-direction: column; }
    .home-hero h1 { font-size: 2.75rem; }
    .evidence-illustration { min-height: 330px; }
    .evidence-card-main { min-height: 190px; }
    .queue-panel tr { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
    .status-shape, .activity-list li > span, .brand-symbol span { forced-color-adjust: none; background: currentColor; }
    .button, .info-banner, .panel, .metric-card { border: 1px solid CanvasText; }
}
