:root {
    color-scheme: light;
    --ink: #152f2d;
    --muted: #647875;
    --paper: #f7f7f2;
    --surface: #ffffff;
    --line: #dce4df;
    --brand: #0c6b60;
    --brand-deep: #084a43;
    --accent: #dff3eb;
    --warning: #8b5c12;
    --shadow: 0 18px 50px rgba(17, 55, 50, 0.1);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.entry-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    background:
        radial-gradient(circle at 12% 18%, rgba(126, 205, 184, 0.24), transparent 32rem),
        linear-gradient(135deg, #f8faf5 0%, #edf5f0 100%);
}
.entry-hero { padding: clamp(2rem, 7vw, 7rem); display: flex; flex-direction: column; justify-content: space-between; gap: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; font-weight: 750; letter-spacing: .04em; }
.brand-mark { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: .8rem; color: white; background: var(--brand); box-shadow: 0 8px 24px rgba(12, 107, 96, .24); }
.eyebrow { margin: 0 0 1rem; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 14ch; margin-bottom: 1.5rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 6.7rem); font-weight: 500; line-height: .97; letter-spacing: -.045em; }
.entry-lead { max-width: 40rem; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.7; }
.entry-panel { margin: clamp(1rem, 4vw, 3rem); padding: clamp(2rem, 5vw, 4rem); align-self: center; border: 1px solid rgba(255,255,255,.8); border-radius: 2rem; background: rgba(255,255,255,.86); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.entry-panel h2 { font-size: 1.6rem; }
.status-row { display: flex; align-items: center; gap: .65rem; margin: 1.6rem 0; color: var(--brand-deep); font-weight: 700; }
.status-dot { width: .65rem; height: .65rem; border-radius: 50%; background: #22a77e; box-shadow: 0 0 0 .35rem #e1f6ee; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: .75rem 1.2rem; border: 0; border-radius: .8rem; color: white; background: var(--brand); font-weight: 750; text-decoration: none; }
.button:hover { background: var(--brand-deep); }
.fine-print { margin: 1.2rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }

.app-page { min-height: 100vh; display: grid; grid-template-columns: 17rem 1fr; background: #f4f6f2; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 1.5rem 1rem; color: #eaf4f1; background: #102f2c; }
.sidebar .brand { padding: .4rem .7rem 1.8rem; color: white; }
.nav-label { margin: 1rem .75rem .55rem; color: #88aaa5; font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.navigation { display: grid; gap: .3rem; }
.nav-item { width: 100%; display: flex; align-items: center; gap: .75rem; padding: .78rem .85rem; border: 0; border-radius: .7rem; color: #bcd0cd; background: transparent; font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.nav-item:hover, .nav-item.is-active { color: white; background: rgba(255,255,255,.1); }
.nav-icon { width: 1.65rem; color: #77b9ad; font-size: .7rem; font-weight: 900; letter-spacing: .04em; }
.workspace { min-width: 0; }
.topbar { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1.2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); }
.environment { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .82rem; }
.environment::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #22a77e; }
.context-pill { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-size: .78rem; }
.workspace-content { padding: clamp(1.4rem, 4vw, 3.5rem); }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.panel-heading h1 { max-width: none; margin: 0; font-family: inherit; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 750; line-height: 1.05; letter-spacing: -.04em; }
.panel-heading p { max-width: 42rem; margin: .75rem 0 0; color: var(--muted); line-height: 1.6; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { min-height: 12rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 1.15rem; background: var(--surface); box-shadow: 0 8px 28px rgba(23, 56, 51, .05); }
.card-kicker { color: var(--brand); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card h3 { margin: .8rem 0 .6rem; font-size: 1.08rem; }
.card p { color: var(--muted); line-height: 1.55; }
.placeholder { max-width: 48rem; padding: clamp(2rem, 5vw, 4rem); border: 1px dashed #b8c9c4; border-radius: 1.4rem; background: rgba(255,255,255,.65); }
.placeholder-badge { display: inline-block; margin-bottom: 1rem; padding: .35rem .6rem; border-radius: 999px; color: var(--warning); background: #fff2d8; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.placeholder h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.placeholder p { color: var(--muted); line-height: 1.7; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
    .entry-page { grid-template-columns: 1fr; }
    .entry-panel { margin-top: 0; }
    .app-page { grid-template-columns: 1fr; }
    .sidebar { position: static; width: 100%; height: auto; }
    .navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .entry-hero { padding: 1.5rem; }
    .entry-panel { margin: 1rem; padding: 1.5rem; }
    .navigation { grid-template-columns: 1fr; }
    .topbar { align-items: flex-start; flex-direction: column; }
}

:focus-visible { outline: 3px solid #74cdbb; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

/* RW passwordless authentication */
.auth-body { min-height: 100vh; background: #edf4f0; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); background: radial-gradient(circle at 12% 12%, rgba(119,185,173,.22), transparent 30rem), radial-gradient(circle at 90% 85%, rgba(12,107,96,.11), transparent 34rem), linear-gradient(145deg,#f8faf6,#eaf3ef); }
.auth-card { width: min(100%, 31rem); overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 1.75rem; background: rgba(255,255,255,.94); box-shadow: 0 24px 70px rgba(16,47,44,.14); }
.auth-brand { display: flex; align-items: center; gap: .75rem; padding: 1.5rem 1.75rem; border-bottom: 1px solid #e7eeea; color: var(--ink); text-decoration: none; }
.auth-brand-mark { width: 2.65rem; height: 2.65rem; display: grid; place-items: center; border-radius: .85rem; color: white; background: linear-gradient(145deg,var(--brand),var(--brand-deep)); box-shadow: 0 8px 22px rgba(12,107,96,.25); font-size: .78rem; font-weight: 850; letter-spacing: .05em; }
.auth-brand > span:last-child { display: grid; gap: .08rem; }
.auth-brand strong { font-size: 1rem; letter-spacing: .04em; }
.auth-brand small { color: var(--muted); font-size: .69rem; }
.auth-content { padding: clamp(1.75rem, 6vw, 3rem); }
.auth-eyebrow { margin-bottom: .75rem; color: var(--brand); font-size: .7rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.auth-content h1 { max-width: none; margin-bottom: .85rem; font-family: inherit; font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 760; line-height: 1.08; letter-spacing: -.04em; }
.auth-lead { margin-bottom: 1.75rem; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.auth-lead strong { color: var(--ink); }
.auth-form { display: grid; gap: .7rem; }
.auth-form label, .code-fieldset legend { color: var(--ink); font-size: .78rem; font-weight: 750; }
.auth-form input[type="email"] { width: 100%; height: 3.35rem; padding: 0 1rem; border: 1px solid #cbd9d4; border-radius: .8rem; color: var(--ink); background: #fbfdfc; font: inherit; transition: border-color .16s,box-shadow .16s,background .16s; }
.auth-form input[type="email"]::placeholder { color: #94a6a2; }
.auth-form input[type="email"]:focus { border-color: var(--brand); outline: 0; background: white; box-shadow: 0 0 0 4px rgba(12,107,96,.11); }
.auth-primary { width: 100%; min-height: 3.35rem; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; margin-top: .45rem; padding: .8rem 1.2rem; border: 0; border-radius: .8rem; color: white; background: var(--brand); box-shadow: 0 8px 20px rgba(12,107,96,.18); font: inherit; font-size: .9rem; font-weight: 780; text-decoration: none; cursor: pointer; transition: transform .16s,background .16s,box-shadow .16s; }
.auth-primary:hover { background: var(--brand-deep); box-shadow: 0 10px 24px rgba(8,74,67,.22); transform: translateY(-1px); }
.auth-note { display: grid; grid-template-columns: 1.6rem 1fr; gap: .75rem; margin-top: 1.4rem; padding: .9rem; border-radius: .75rem; color: var(--muted); background: #f3f7f5; font-size: .76rem; line-height: 1.5; }
.auth-note > span { width: 1.45rem; height: 1.45rem; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: var(--accent); font-weight: 850; }
.auth-note p { margin: 0; }
.auth-note strong { color: var(--ink); }
.auth-card footer { padding: 1rem 1.75rem; border-top: 1px solid #e7eeea; color: #7b8d89; background: #fafcfb; font-size: .68rem; text-align: center; }
.code-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.code-fieldset legend { margin-bottom: .7rem; }
.code-inputs { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(.35rem,2vw,.55rem); }
.code-inputs input { min-width: 0; width: 100%; aspect-ratio: .82; border: 1px solid #cbd9d4; border-radius: .7rem; color: var(--ink); background: #fbfdfc; font: 700 clamp(1.2rem,5vw,1.55rem)/1 inherit; text-align: center; caret-color: var(--brand); }
.code-inputs input:focus { border-color: var(--brand); outline: 0; background: white; box-shadow: 0 0 0 3px rgba(12,107,96,.11); }
.auth-actions { display: grid; justify-items: center; gap: .75rem; margin-top: 1.35rem; }
.auth-actions form { margin: 0; }
.auth-actions a,.auth-link { border: 0; padding: 0; color: var(--brand); background: transparent; font: inherit; font-size: .78rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.auth-link:disabled { color: #8ea09c; cursor: default; }
.auth-security { margin: 1.4rem 0 0; color: #7b8d89; font-size: .7rem; line-height: 1.5; text-align: center; }
.auth-status { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; margin-bottom: 1.25rem; border-radius: 50%; font-size: 1.35rem; font-weight: 850; }
.auth-status-success { color: #0b6b4f; background: #dff3eb; }
.auth-status-error { color: #9a3f35; background: #fae8e5; }
@media (max-width: 480px) { .auth-page { align-items: stretch; padding: 0; } .auth-card { min-height: 100vh; border: 0; border-radius: 0; } .auth-content { padding-top: 2.25rem; } }

/* Clinical UI Foundation */
.clinical-app { min-height: 100vh; display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); background: #f3f6f3; }
.clinical-sidebar { position: sticky; top: 0; height: 100vh; padding: 1.4rem 1rem; color: #e9f4f0; background: #102d2b; }
.clinical-brand { padding: .35rem .65rem 1.8rem; color: white; text-decoration: none; }
.clinical-brand span:last-child { display: grid; gap: .1rem; }
.clinical-brand small { color: #91aea9; font-size: .68rem; font-weight: 600; letter-spacing: .04em; }
.clinical-navigation { display: grid; gap: .3rem; }
.clinical-nav-item { width: 100%; min-height: 3rem; display: grid; grid-template-columns: 2rem 1fr; align-items: center; gap: .65rem; padding: .7rem .8rem; border: 0; border-radius: .75rem; color: #b9cfca; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.clinical-nav-item > span { color: #6ea99f; font-size: .65rem; letter-spacing: .08em; }
.clinical-nav-item > strong { font-size: .88rem; font-weight: 650; }
.clinical-nav-item:hover, .clinical-nav-item.is-active { color: white; background: rgba(255, 255, 255, .1); }
.clinical-workspace { min-width: 0; }
.clinical-header { min-height: 4.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem clamp(1.2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .92); }
.header-caption { margin: .25rem 0 0; color: var(--muted); font-size: .76rem; }
.session-state { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--brand-deep); background: white; font-size: .78rem; font-weight: 700; }
.session-state span { width: .48rem; height: .48rem; border-radius: 50%; background: #22a77e; box-shadow: 0 0 0 .25rem #e1f6ee; }
.view-scope-switch { display:grid; gap:.05rem; padding:.5rem .75rem; border:1px solid #bcd8d0; border-radius:.7rem; color:var(--brand-deep); background:#f7fbf9; text-decoration:none; font-size:.72rem; }
.view-scope-switch span { color:var(--muted); font-size:.62rem; text-transform:uppercase; }
.patient-context-banner { display: flex; justify-content: space-between; gap: 2rem; padding: 1.4rem clamp(1.2rem, 4vw, 3rem); border-bottom: 1px solid #c8ded7; background: linear-gradient(110deg, #e8f5ef, #f8fbf9); }
.context-label { margin: 0 0 .35rem; color: var(--brand); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.patient-context-banner h1 { max-width: none; margin: 0 0 .35rem; font-family: inherit; font-size: 1.25rem; font-weight: 750; letter-spacing: -.02em; }
.patient-context-banner p { margin: 0; color: var(--muted); font-size: .84rem; }
.context-permissions { max-width: 42rem; text-align: right; }
.context-permissions > span { color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.context-permissions ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; margin: .45rem 0 0; padding: 0; list-style: none; }
.context-permissions li { padding: .3rem .5rem; border: 1px solid #c6ded6; border-radius: 999px; color: var(--brand-deep); background: rgba(255,255,255,.75); font-size: .67rem; }
.context-permissions p { margin-top: .45rem; }
.clinical-content { padding: clamp(1.4rem, 4vw, 3.5rem); }
.clinical-content .panel-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.045em; }
.foundation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.foundation-card { min-height: 12rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 1rem; background: white; box-shadow: 0 8px 28px rgba(23, 56, 51, .05); }
.foundation-card > span { color: var(--brand); font-size: .68rem; font-weight: 850; letter-spacing: .1em; }
.foundation-card h3 { margin: 1.5rem 0 .55rem; font-size: 1.05rem; }
.foundation-card p { color: var(--muted); line-height: 1.55; }
.safe-placeholder { max-width: 50rem; padding: clamp(2rem, 6vw, 5rem); border: 1px dashed #afc6c0; border-radius: 1.25rem; background: rgba(255, 255, 255, .7); }
.safe-placeholder > span { display: inline-block; margin-bottom: 1rem; padding: .32rem .55rem; border-radius: 999px; color: var(--warning); background: #fff2d8; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.safe-placeholder h2 { margin-bottom: .75rem; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.safe-placeholder p { color: var(--muted); line-height: 1.65; }
.access-state-page { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; background: radial-gradient(circle at 20% 20%, #e3f3ec, transparent 34rem), #f5f7f3; }
.access-state-card { width: min(100%, 38rem); padding: clamp(2rem, 6vw, 4rem); border: 1px solid var(--line); border-radius: 1.5rem; background: white; box-shadow: var(--shadow); }
.access-state-card .brand { margin-bottom: 3.5rem; text-decoration: none; }
.access-state-card h1 { max-width: none; margin-bottom: 1rem; font-family: inherit; font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 750; line-height: 1.05; }
.access-state-card > p:not(.eyebrow):not(.fine-print) { color: var(--muted); font-size: 1.02rem; line-height: 1.65; }

@media (max-width: 960px) {
    .clinical-app { grid-template-columns: 1fr; }
    .clinical-sidebar { position: static; width: 100%; height: auto; }
    .clinical-brand { padding-bottom: 1rem; }
    .clinical-navigation { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .foundation-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
    .clinical-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .clinical-header, .patient-context-banner { align-items: flex-start; flex-direction: column; }
    .context-permissions { max-width: 100%; text-align: left; }
    .context-permissions ul { justify-content: flex-start; }
}

@media (max-width: 420px) {
    .clinical-navigation { grid-template-columns: 1fr; }
}

/* UI-2 Patient Overview */
.patient-overview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.patient-overview-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.045em; }
.patient-overview-heading > div:first-child > p:last-child { max-width: 44rem; margin: .75rem 0 0; color: var(--muted); line-height: 1.6; }
.access-assurance { display: grid; grid-template-columns: auto 1fr; column-gap: .65rem; align-items: center; min-width: 14rem; padding: .8rem 1rem; border: 1px solid #bddbd1; border-radius: .9rem; background: #edf8f3; }
.access-assurance > span { grid-row: 1 / 3; width: .65rem; height: .65rem; border-radius: 50%; background: #15916e; box-shadow: 0 0 0 .3rem #d8f1e7; }
.access-assurance strong { font-size: .78rem; }
.access-assurance small { color: var(--muted); font-size: .68rem; }
.patient-overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.overview-section, .model-metadata { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: white; box-shadow: 0 8px 28px rgba(23, 56, 51, .04); }
.section-kicker { margin: 0 0 .55rem; color: var(--brand); font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.overview-section h3, .model-metadata h3 { margin: 0 0 1.25rem; font-size: 1.15rem; }
.overview-list, .metadata-grid { margin: 0; }
.overview-list > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid #edf0ed; }
.overview-list dt, .metadata-grid dt { color: var(--muted); font-size: .78rem; }
.overview-list dd, .metadata-grid dd { margin: 0; font-size: .85rem; font-weight: 700; overflow-wrap: anywhere; }
.status-badge, .read-only-badge { display: inline-flex; padding: .3rem .55rem; border-radius: 999px; color: var(--brand-deep); background: var(--accent); font-size: .68rem; font-weight: 800; }
.permission-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.permission-list li { padding: .45rem .65rem; border: 1px solid #c8ded7; border-radius: .65rem; color: var(--brand-deep); background: #f7fbf9; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .7rem; }
.model-metadata { margin-top: 1rem; }
.model-metadata-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.metadata-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.metadata-grid > div { min-width: 0; padding: .9rem; border: 1px solid #e4ebe7; border-radius: .75rem; background: #fafcfb; }
.metadata-grid dd { margin-top: .45rem; }
.metadata-hash { grid-column: span 2; }
.metadata-hash code { font-size: .7rem; font-weight: 600; word-break: break-all; }
.empty-state { margin: .75rem 0 0; padding: 1rem; border-radius: .75rem; color: var(--muted); background: #f5f7f5; line-height: 1.55; }
.future-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.future-modules article { padding: 1.1rem; border: 1px dashed #bdcbc6; border-radius: .85rem; background: rgba(255,255,255,.55); }
.future-modules span { color: var(--muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.future-modules h3 { margin: .6rem 0 .35rem; font-size: .95rem; }
.future-modules p { margin: 0; color: var(--muted); font-size: .75rem; }

@media (max-width: 800px) {
    .patient-overview-heading { align-items: flex-start; flex-direction: column; }
    .patient-overview-grid, .future-modules { grid-template-columns: 1fr; }
    .metadata-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .metadata-grid { grid-template-columns: 1fr; }
    .metadata-hash { grid-column: auto; }
}

/* UI-3 Documents */
.documents-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.documents-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.045em; }
.documents-heading > div:first-child > p:last-child { max-width: 45rem; margin: .75rem 0 0; color: var(--muted); line-height: 1.6; }
.documents-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.documents-actions span { padding: .4rem .6rem; border: 1px dashed #bdcbc6; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.7); font-size: .66rem; }
.documents-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem); gap: 1rem; align-items: start; }
.document-list { display: grid; gap: .65rem; }
.document-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, auto) auto; align-items: center; gap: 1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: .9rem; background: white; box-shadow: 0 6px 20px rgba(23,56,51,.035); }
.document-type { color: var(--brand); font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.document-main h3 { margin: .35rem 0; font-size: 1rem; }
.document-main p { margin: 0; color: var(--muted); font-size: .72rem; }
.document-state { display: grid; gap: .18rem; color: var(--muted); font-size: .68rem; }
.document-state strong { margin-top: .25rem; color: #126b54; }
.document-state .automatic { color: #7c5a13; }
.document-state .pending { color: #7b6f6c; }
.document-link, .back-link { color: var(--brand); font-size: .76rem; font-weight: 800; text-decoration: none; }
.document-link::after { content: " →"; }
.verification-readonly { padding: 1.25rem; border: 1px solid var(--line); border-radius: .9rem; background: white; }
.verification-readonly h3 { margin: 0 0 1rem; }
.verification-readonly ul { display: grid; gap: .65rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.verification-readonly li { display: grid; gap: .2rem; padding-bottom: .65rem; border-bottom: 1px solid #edf0ed; font-size: .75rem; }
.verification-readonly li span, .verification-readonly p, .verification-readonly small { color: var(--muted); }
.document-detail { display: grid; gap: 1rem; }
.document-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.document-detail-header h3 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.document-metadata { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .65rem; margin: 0; }
.document-metadata > div, .document-status-grid > section, .provenance-card { padding: 1.1rem; border: 1px solid var(--line); border-radius: .85rem; background: white; }
.document-metadata dt, .compact-list dt { color: var(--muted); font-size: .7rem; }
.document-metadata dd, .compact-list dd { margin: .35rem 0 0; font-size: .8rem; font-weight: 700; overflow-wrap: anywhere; }
.document-status-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.document-status-grid h4, .provenance-card h4 { margin: 0 0 .8rem; }
.compact-list { display: grid; gap: .55rem; margin: 0; }
.compact-list > div { display: flex; justify-content: space-between; gap: 1rem; padding-top: .55rem; border-top: 1px solid #edf0ed; }
.human-status { padding: .85rem; border-radius: .7rem; color: var(--muted); background: #f5f7f5; font-size: .78rem; font-weight: 750; }
.human-status.is-verified { color: #126b54; background: #e6f5ee; }
.human-status.is-automatic { color: #7c5a13; background: #fff5df; }
.documents-future { margin-top: 1.5rem; }
.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; }

@media (max-width: 980px) {
    .documents-layout { grid-template-columns: 1fr; }
    .document-row { grid-template-columns: minmax(0,1fr) auto; }
    .document-state { grid-column: 1 / -1; }
    .document-metadata { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
    .documents-heading { align-items: flex-start; flex-direction: column; }
    .documents-actions { justify-content: flex-start; }
    .document-status-grid, .document-metadata { grid-template-columns: 1fr; }
}

/* UI-4 Clinical Memory */
.memory-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; }
.memory-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.045em; }
.memory-heading > div:first-child > p:last-child { max-width: 46rem; margin: .75rem 0 0; color: var(--muted); line-height: 1.6; }
.memory-boundary { display: grid; gap: .35rem; min-width: 18rem; padding: .85rem; border: 1px solid var(--line); border-radius: .85rem; background: white; }
.memory-boundary span { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .68rem; }
.memory-boundary strong { color: var(--brand-deep); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.memory-time-note { display: flex; gap: 1rem; margin-bottom: 1rem; padding: .9rem 1rem; border-left: .25rem solid #4a9b8a; border-radius: .55rem; color: var(--muted); background: #edf7f3; font-size: .75rem; line-height: 1.5; }
.memory-time-note strong { flex: 0 0 auto; color: var(--brand-deep); }
.memory-section { margin-top: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: white; box-shadow: 0 8px 28px rgba(23,56,51,.035); }
.memory-section > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.memory-section > header h3 { margin: 0; font-size: 1.2rem; }
.fact-kind-badge, .source-kind-badge, .projection-kind-badge { padding: .32rem .55rem; border-radius: 999px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .65rem; font-weight: 800; }
.fact-kind-badge { color: #126b54; background: #e6f5ee; }
.source-kind-badge { color: #355e7a; background: #eaf3f8; }
.projection-kind-badge { color: #745716; background: #fff3d8; }
.memory-safe-state { padding: 1rem; border-radius: .7rem; color: var(--muted); background: #f5f7f5; line-height: 1.55; }
.memory-safe-state code { font-size: .72rem; }
.clinical-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.clinical-timeline li { position: relative; display: grid; grid-template-columns: 10rem minmax(0,1fr); gap: 1rem; padding: 0 0 1.25rem 1.25rem; border-left: 2px solid #d5e5df; }
.clinical-timeline li::before { content: ""; position: absolute; left: -.4rem; top: .2rem; width: .65rem; height: .65rem; border: 2px solid white; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px #8ebdb2; }
.clinical-timeline time { color: var(--muted); font-size: .72rem; }
.clinical-timeline li > div > span { color: var(--brand); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.clinical-timeline h4 { margin: .3rem 0; font-size: .95rem; }
.clinical-timeline small { color: var(--muted); }
.provenance-line { margin: .65rem 0 0; padding-top: .65rem; border-top: 1px solid #edf0ed; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.fact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.fact-card { padding: 1rem; border: 1px solid #e2eae6; border-radius: .8rem; background: #fbfcfb; }
.fact-card-heading { display: flex; justify-content: space-between; gap: 1rem; color: var(--brand); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.fact-card-heading strong { color: var(--muted); }
.fact-value { margin: 1rem 0; font-size: 1.15rem; font-weight: 750; overflow-wrap: anywhere; }
.fact-value small { color: var(--muted); font-size: .7rem; }
.fact-card dl, .source-grid dl { display: grid; gap: .35rem; margin: 0; }
.fact-card dl > div, .source-grid dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .7rem; }
.fact-card dt, .source-grid dt { color: var(--muted); }
.fact-card dd, .source-grid dd { margin: 0; font-weight: 700; text-align: right; }
.parameter-list { display: grid; gap: .75rem; }
.parameter-card { border: 1px solid #e2eae6; border-radius: .8rem; overflow: hidden; }
.parameter-card > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; background: #f4f8f6; }
.parameter-card header span { color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.parameter-card h4 { margin: .2rem 0 0; }
.parameter-points { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; padding: .75rem; }
.parameter-points > div { display: grid; gap: .3rem; padding: .8rem; border: 1px solid #edf0ed; border-radius: .65rem; }
.parameter-points time, .parameter-points small, .parameter-points span { color: var(--muted); font-size: .65rem; }
.parameter-points strong { font-size: .9rem; }
.source-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.source-grid article { padding: 1rem; border: 1px solid #e2eae6; border-radius: .75rem; background: #fafcfb; }
.source-grid article > span { color: #355e7a; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.source-grid h4 { margin: .55rem 0 1rem; font-size: .9rem; }
.projection-section { border-color: #e7d9b9; background: #fffdf8; }
.projection-list { display: grid; gap: .5rem; }
.projection-list article { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 1rem; padding: .75rem; border: 1px solid #eee4cf; border-radius: .65rem; background: white; font-size: .72rem; }
.projection-list span, .projection-list time { color: var(--muted); }
.analysis-boundary { margin-top: 1rem; padding: 1rem; border: 1px dashed #c5bbb0; border-radius: .7rem; }
.analysis-boundary p { margin: .4rem 0 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }

@media (max-width: 900px) {
    .memory-heading { align-items: flex-start; flex-direction: column; }
    .memory-boundary { width: 100%; }
    .fact-grid, .source-grid { grid-template-columns: 1fr; }
    .parameter-points { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
    .memory-time-note { flex-direction: column; }
    .clinical-timeline li { grid-template-columns: 1fr; }
    .parameter-points { grid-template-columns: 1fr; }
    .projection-list article { grid-template-columns: 1fr; }
}

/* UI-5 Clinical Intelligence */
.intelligence-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; }
.intelligence-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.045em; }
.intelligence-heading > div:first-child > p:last-child { max-width: 46rem; margin: .75rem 0 0; color: var(--muted); line-height: 1.6; }
.intelligence-boundary { display: grid; gap: .3rem; min-width: 20rem; padding: 1rem; border: 1px solid #dfcfad; border-radius: .9rem; background: #fffbf2; }
.intelligence-boundary strong { color: #76550d; }
.intelligence-boundary span { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .72rem; font-weight: 800; }
.intelligence-boundary small { color: var(--muted); line-height: 1.45; }
.derived-badge { display: inline-flex; padding: .32rem .55rem; border-radius: 999px; color: #76550d; background: #fff0cc; font-size: .66rem; font-weight: 850; text-transform: uppercase; }
.intelligence-safe-state { padding: 1.2rem; border: 1px solid var(--line); border-radius: .85rem; color: var(--muted); background: white; }
.intelligence-safe-state strong { color: var(--text); }
.intelligence-safe-state p { margin: .45rem 0 0; line-height: 1.55; }
.intelligence-safe-state a { display: inline-block; margin-top: .8rem; color: var(--brand); font-weight: 750; text-decoration: none; }
.analysis-list { display: grid; gap: .75rem; }
.analysis-list > article { display: grid; grid-template-columns: minmax(12rem, .8fr) minmax(18rem, 1.4fr) auto; align-items: center; gap: 1.25rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: .9rem; background: white; box-shadow: 0 6px 20px rgba(23,56,51,.035); }
.analysis-list h3 { margin: .6rem 0 .3rem; font-size: 1rem; }
.analysis-list p { margin: 0; color: var(--muted); font-size: .7rem; }
.analysis-list dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; margin: 0; }
.analysis-list dl > div { padding: .55rem; border-radius: .55rem; background: #f7f9f7; }
.analysis-list dt { color: var(--muted); font-size: .64rem; }
.analysis-list dd { margin: .3rem 0 0; font-size: .72rem; font-weight: 750; overflow-wrap: anywhere; }
.analysis-list a, .analysis-detail > header a { color: var(--brand); font-size: .74rem; font-weight: 800; text-decoration: none; }
.intelligence-future { display: grid; gap: .35rem; margin-top: 1rem; padding: 1rem; border: 1px dashed #c5bbb0; border-radius: .8rem; background: rgba(255,255,255,.6); }
.intelligence-future span { color: var(--warning); font-size: .65rem; font-weight: 850; text-transform: uppercase; }
.intelligence-future p { margin: 0; color: var(--muted); font-size: .72rem; }
.analysis-detail { display: grid; gap: 1rem; }
.analysis-detail > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: .9rem; background: white; }
.analysis-detail > header h3 { margin: .65rem 0 .3rem; }
.analysis-detail > header p { margin: 0; color: var(--muted); font-size: .72rem; }
.analysis-assurance { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; padding: .9rem 1rem; border-left: .25rem solid #c18a17; border-radius: .55rem; color: #69562e; background: #fff6e2; font-size: .72rem; }
.analysis-metadata-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.analysis-metadata-grid > section, .structured-output, .analysis-related { padding: 1.1rem; border: 1px solid var(--line); border-radius: .85rem; background: white; }
.analysis-metadata-grid h4, .structured-output h4, .analysis-related h4 { margin: 0 0 .85rem; }
.analysis-metadata-grid dl { display: grid; gap: .45rem; margin: 0; }
.analysis-metadata-grid dl > div { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; border-top: 1px solid #edf0ed; font-size: .7rem; }
.analysis-metadata-grid dt { color: var(--muted); }
.analysis-metadata-grid dd { margin: 0; font-weight: 750; text-align: right; overflow-wrap: anywhere; }
.restricted-note, .derived-disclaimer { margin: .8rem 0 0; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.structured-output pre { max-height: 24rem; margin: 0; padding: 1rem; overflow: auto; border-radius: .65rem; color: #24413d; background: #f4f7f5; font: .72rem/1.55 ui-monospace, "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.analysis-related > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .8rem; }
.evidence-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem; }
.evidence-grid article { padding: .85rem; border: 1px solid #e4ebe7; border-radius: .7rem; background: #fafcfb; }
.evidence-grid span { color: var(--brand); font-size: .64rem; font-weight: 850; text-transform: uppercase; }
.evidence-grid h5 { margin: .55rem 0 .35rem; font-size: .82rem; }
.evidence-grid p { margin: 0; color: var(--muted); font-size: .68rem; }
.review-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.review-list li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .8rem; padding: .75rem; border: 1px solid #e4ebe7; border-radius: .65rem; font-size: .7rem; }
.review-list li > span { padding: .25rem .45rem; border-radius: 999px; color: #76550d; background: #fff0cc; font-weight: 800; }
.review-list time, .review-list small { color: var(--muted); }

@media (max-width: 980px) {
    .intelligence-heading { align-items: flex-start; flex-direction: column; }
    .intelligence-boundary { width: 100%; }
    .analysis-list > article { grid-template-columns: 1fr; }
    .evidence-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .analysis-metadata-grid { grid-template-columns: 1fr; }
    .review-list li { grid-template-columns: 1fr; }
}

/* Clinical Workspace — real patient product surface */
.navigation-separator { height: 1px; margin: .8rem 0; background: rgba(255,255,255,.14); }
.lab-nav-item { border: 1px solid rgba(255,255,255,.14); }
.today-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; }
.today-summary-grid .foundation-card h3 { margin: .55rem 0; font-size: 2rem; }
.today-summary-grid .foundation-card a, .today-section a { color: var(--brand); font-size: .72rem; font-weight: 800; text-decoration: none; }
.today-section, .settings-card { margin-top: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: .9rem; background: white; }
.today-section > header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.today-section h3, .settings-card h3 { margin: .2rem 0; }
.settings-card { max-width: 42rem; }
.settings-card p { color: var(--muted); }
@media (max-width: 900px) { .today-summary-grid { grid-template-columns: 1fr; } }

/* BUILD-030 — wspólna prezentacja Laboratorium populacji */
.nav-soon { display: block; margin-top: .12rem; color: #76948f; font-size: .58rem; font-weight: 650; }
.lab-content, .patient-lab-content { width: min(100%, 92rem); margin-inline: auto; }
.lab-heading h1, .patient-hero h1 { max-width: none; font-family: inherit; }
.population-summary-grid { display: grid; gap: 1rem; }
.population-summary { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: white; box-shadow: 0 8px 28px rgba(23,56,51,.05); }
.population-summary h2 { margin: .75rem 0 .4rem; }
.population-summary p, .section-description { margin: 0; color: var(--muted); line-height: 1.55; }
.cohort-section { margin-top: 1.25rem; }
.synthetic-patient-list { display: grid; gap: .7rem; }
.synthetic-patient-card { display: grid; grid-template-columns: 3.25rem minmax(0,1fr) auto; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid #e2eae6; border-radius: .9rem; background: #fbfcfb; }
.patient-avatar { width: 3.25rem; height: 3.25rem; display: grid; place-items: center; border-radius: 1rem; color: white; background: linear-gradient(145deg,var(--brand),var(--brand-deep)); font-weight: 850; }
.patient-kicker { color: var(--brand); font-size: .67rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.patient-card-main h3 { margin: .25rem 0 .3rem; font-size: 1rem; }
.patient-card-main > p { margin: 0 0 .7rem; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.patient-vitals { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; margin: 0; }
.patient-vitals > div { display: flex; gap: .35rem; font-size: .68rem; }
.patient-vitals dt { color: var(--muted); }
.patient-vitals dd { margin: 0; font-weight: 750; }
.patient-card-actions { display: grid; justify-items: end; gap: .75rem; }
.button-compact { min-height: 2.5rem; padding: .55rem .85rem; font-size: .75rem; }
.validation-badge { display: inline-flex; align-items: center; width: fit-content; padding: .35rem .6rem; border-radius: 999px; font-size: .65rem; font-weight: 850; white-space: nowrap; }
.validation-pass { color: #0f654e; background: #e0f3eb; }
.validation-fail { color: #913f36; background: #f9e7e4; }
.validation-insufficient_data { color: #805c16; background: #fff1d4; }
.patient-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 1.2rem 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.1rem; background: linear-gradient(120deg,#e9f5ef,#fff); }
.patient-hero h1 { margin: 0 0 .55rem; font-size: clamp(2rem,4vw,3.2rem); }
.patient-hero p { max-width: 48rem; margin: 0; color: var(--muted); }
.patient-section-nav { position: sticky; top: .5rem; z-index: 3; display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem; border: 1px solid var(--line); border-radius: .9rem; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(23,56,51,.08); }
.patient-section-nav a { padding: .55rem .7rem; border-radius: .6rem; color: var(--brand-deep); font-size: .7rem; font-weight: 750; text-decoration: none; }
.patient-section-nav a:hover { background: var(--accent); }
.profile-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .7rem; margin: 0; }
.profile-grid > div { padding: 1rem; border-radius: .75rem; background: #f5f8f6; }
.profile-grid dt { color: var(--muted); font-size: .68rem; }
.profile-grid dd { margin: .4rem 0 0; font-weight: 800; }
.temporal-note, .safety-callout { margin-bottom: 1rem; padding: .9rem 1rem; border-left: .25rem solid var(--brand); border-radius: .6rem; color: var(--muted); background: #edf7f3; font-size: .75rem; line-height: 1.55; }
.safety-callout { border-left-color: #b68116; background: #fff7e6; }
.safety-callout strong { color: #6e5117; }
.safety-callout p { margin: .3rem 0 0; }
.lab-timeline h3 { margin: .3rem 0; font-size: .95rem; }
.parameter-trend-card > header { align-items: flex-start; }
.parameter-trend-card > header h3 { margin: .25rem 0 0; }
.trend-current { display: flex; align-items: center; gap: .75rem; }
.trend-arrow { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; color: var(--brand-deep); background: var(--accent); font-size: 1.25rem; font-weight: 900; }
.trend-line { position: relative; height: 3.5rem; margin: 1rem; border-bottom: 1px solid #d7e4df; background: linear-gradient(180deg,rgba(223,243,235,.5),transparent); }
.trend-line::after { content: ""; position: absolute; left: .6rem; right: .6rem; top: 50%; height: 2px; background: var(--brand); transform: rotate(-4deg); transform-origin: center; }
.trend-line span { position: absolute; z-index: 1; left: calc(.6rem + (100% - 1.2rem) * var(--point-index) / max(1, calc(var(--point-count) - 1))); top: calc(65% - var(--point-index) * 5%); width: .65rem; height: .65rem; border: 2px solid white; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px #82b6aa; transform: translate(-50%,-50%); }
.fact-readable { display: grid; gap: .45rem; margin: 1rem 0; }
.fact-readable > div { display: flex; justify-content: space-between; gap: 1rem; padding-top: .4rem; border-top: 1px solid #e8eeeb; font-size: .72rem; }
.fact-readable dt { color: var(--muted); }
.fact-readable dd { margin: 0; font-weight: 750; text-align: right; }
.intelligence-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.intelligence-cards article { padding: 1rem; border: 1px solid #e2eae6; border-radius: .8rem; background: #fafcfb; }
.intelligence-cards article > span { color: var(--brand); font-size: .66rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.intelligence-cards h3 { margin: .65rem 0; font-size: .95rem; line-height: 1.45; }
.intelligence-cards p, .intelligence-cards dl { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.intelligence-cards dl > div { margin-top: .5rem; }
.intelligence-cards dd { margin: .2rem 0 0; color: var(--ink); font-weight: 700; }
.validation-table { overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; }
.validation-row { display: grid; grid-template-columns: 1fr 1fr .65fr; }
.validation-row > * { min-width: 0; padding: 1rem; border-right: 1px solid var(--line); }
.validation-row > *:last-child { border-right: 0; }
.validation-row + .validation-row { border-top: 1px solid var(--line); }
.validation-row > div { display: grid; align-content: start; gap: .4rem; }
.validation-row span { color: var(--muted); font-size: .67rem; }
.validation-header { color: var(--brand-deep); background: #edf6f2; font-size: .68rem; letter-spacing: .08em; }

@media (max-width: 900px) {
    .synthetic-patient-card { grid-template-columns: 3.25rem minmax(0,1fr); }
    .patient-card-actions { grid-column: 2; justify-items: start; }
    .profile-grid, .intelligence-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
    .population-summary, .patient-hero { align-items: flex-start; flex-direction: column; }
    .synthetic-patient-card { grid-template-columns: 1fr; }
    .patient-card-actions { grid-column: auto; justify-items: start; }
    .patient-avatar { width: 2.6rem; height: 2.6rem; }
    .profile-grid, .intelligence-cards { grid-template-columns: 1fr; }
    .validation-row { grid-template-columns: 1fr; }
    .validation-row > * { border-right: 0; border-bottom: 1px solid var(--line); }
    .validation-row > *:last-child { border-bottom: 0; }
    .validation-header { display: none; }
    .patient-section-nav { position: static; }
}

.workflow-notice { margin: 1rem 0; padding: .9rem 1rem; border: 1px solid #e5c98d; border-radius: .75rem; background: #fff8e8; color: #6b511c; }
.workflow-notice.is-success { border-color: #9bcbbb; background: #edf8f3; color: #1d5d4f; }
.document-upload-panel { display: grid; grid-template-columns: minmax(14rem,.7fr) minmax(20rem,1.3fr); gap: 1.5rem; margin: 1rem 0 1.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: #f8fbf9; }
.document-upload-panel[hidden] { display: none; }
.document-upload-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.document-upload-form label, .document-controls label { display: grid; gap: .35rem; color: var(--muted); font-size: .72rem; font-weight: 700; }
.document-upload-form input, .document-upload-form select, .document-controls input, .document-controls select { width: 100%; min-height: 2.7rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: .55rem; background: white; color: var(--ink); }
.document-upload-form small { font-weight: 500; line-height: 1.45; }
.document-upload-form .button { align-self: end; }
.document-controls { display: grid; grid-template-columns: minmax(14rem,1fr) minmax(10rem,.35fr) minmax(10rem,.35fr); gap: .75rem; margin: 1rem 0; padding: .9rem; border: 1px solid var(--line); border-radius: .8rem; background: #fafcfb; }
.integrated-document-viewer { overflow: hidden; margin: 1rem 0; border: 1px solid var(--line); border-radius: .9rem; background: #eef2f0; }
.viewer-toolbar { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border-bottom: 1px solid var(--line); background: white; }
.viewer-toolbar strong { margin-right: auto; }
.viewer-toolbar button { width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: .4rem; background: white; cursor: pointer; }
.viewer-canvas { height: min(70vh,50rem); overflow: auto; }
.viewer-canvas iframe { width: 100%; height: 100%; border: 0; background: white; }
.admin-verification-layout { display: grid; grid-template-columns: minmax(16rem,.38fr) minmax(30rem,1fr); gap: 1rem; }
.verification-queue-list { display: grid; gap: .55rem; align-content: start; }
.verification-queue-list a { display: grid; gap: .3rem; padding: .85rem; border: 1px solid var(--line); border-radius: .65rem; color: inherit; text-decoration: none; background: white; }
.candidate-card { margin: .75rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: white; }
.candidate-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; margin-top: .75rem; }
.candidate-actions label { display: grid; gap: .3rem; font-size: .7rem; }
.processing-audit-list { display: grid; gap: .35rem; padding: 0; list-style: none; }
.processing-audit-list li { display: grid; grid-template-columns: 10rem 7rem 1fr; gap: .5rem; padding: .5rem; border-bottom: 1px solid var(--line); font-size: .7rem; }
@media (max-width: 850px) { .document-upload-panel, .admin-verification-layout { grid-template-columns: 1fr; } .document-controls, .document-upload-form { grid-template-columns: 1fr; } }

/* Public RW platform entry */
.public-home {
    --public-night: #050b18;
    --public-night-soft: #0a1427;
    --public-ink: #0b1730;
    --public-muted: #64718a;
    --public-cyan: #38e4d1;
    --public-blue: #3b82f6;
    --public-violet: #8b5cf6;
    min-width: 320px;
    overflow: hidden;
    color: var(--public-ink);
    background: #f7f9fc;
}
.public-home h1, .public-home h2, .public-home h3 { max-width: none; margin: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.public-home p { margin-bottom: 0; }
.public-hero { position: relative; min-height: min(960px,100vh); overflow: hidden; color: #f3f8ff; background: radial-gradient(circle at 75% 44%,rgba(37,99,235,.15),transparent 28rem), linear-gradient(145deg,#050914,#081326 64%,#071120); isolation: isolate; }
.public-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .24; background-image: linear-gradient(rgba(128,184,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(128,184,255,.08) 1px,transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom,black,transparent 92%); }
.public-hero::after { content: ""; position: absolute; right: -10%; bottom: -45%; z-index: -1; width: 72rem; height: 72rem; border: 1px solid rgba(64,218,214,.12); border-radius: 50%; box-shadow: 0 0 0 8rem rgba(65,105,225,.025),0 0 0 18rem rgba(139,92,246,.018); }
.public-aurora { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.public-aurora-one { top: -12rem; right: 7%; width: 34rem; height: 28rem; background: rgba(30,132,255,.19); }
.public-aurora-two { right: 32%; bottom: -15rem; width: 30rem; height: 30rem; background: rgba(64,224,208,.12); }
.public-header { width: min(calc(100% - 4rem),92rem); min-height: 6.2rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2.5rem; margin: 0 auto; border-bottom: 1px solid rgba(170,205,255,.13); }
.public-logo { display: inline-flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.public-logo-mark { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid rgba(89,222,220,.6); border-radius: .55rem; color: #e9ffff; background: linear-gradient(145deg,rgba(49,196,201,.18),rgba(55,102,230,.22)); box-shadow: inset 0 0 20px rgba(71,220,212,.1),0 0 24px rgba(53,202,210,.12); font-size: .8rem; font-weight: 850; letter-spacing: .05em; }
.public-logo > span:last-child { display: grid; gap: .08rem; }
.public-logo strong { color: #fff; font-size: .92rem; letter-spacing: .16em; }
.public-logo small { color: #8090ad; font-size: .57rem; letter-spacing: .12em; text-transform: uppercase; }
.public-nav { display: flex; justify-content: center; gap: clamp(1.1rem,2.4vw,2.5rem); }
.public-nav a { color: #9eabc1; font-size: .72rem; font-weight: 650; letter-spacing: .04em; text-decoration: none; transition: color .2s; }
.public-nav a:hover { color: #fff; }
.public-nav-cta { padding: .72rem 1rem; border: 1px solid rgba(67,226,214,.38); border-radius: .5rem; color: #d9fffa; background: rgba(39,196,188,.08); font-size: .7rem; font-weight: 750; text-decoration: none; }
.public-hero-layout { width: min(calc(100% - 4rem),92rem); min-height: calc(min(960px,100vh) - 10.7rem); display: grid; grid-template-columns: minmax(0,1.1fr) minmax(28rem,.9fr); align-items: center; gap: clamp(3rem,7vw,8rem); margin: 0 auto; padding: 5rem 0 6.5rem; }
.public-hero-copy { position: relative; z-index: 1; }
.public-overline,.public-kicker { color: #36cfc3; font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.public-overline { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.5rem!important; }
.public-overline span { width: 1.8rem; height: 1px; background: var(--public-cyan); }
.public-home .public-hero h1 { margin: 0; color: #f5f8ff; font-size: clamp(3.7rem,6.6vw,7.2rem); font-weight: 430; line-height: .91; letter-spacing: -.065em; }
.public-hero h1 em { color: transparent; background: linear-gradient(90deg,#50e5da,#63a7ff 55%,#a98cff); background-clip: text; -webkit-background-clip: text; font-style: normal; font-weight: 560; }
.public-hero-lead { max-width: 43rem; margin-top: 2rem!important; color: #9ba9c0; font-size: clamp(1rem,1.4vw,1.18rem); line-height: 1.75; }
.public-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.public-button { min-height: 3.3rem; display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: .8rem 1.25rem; border-radius: .48rem; font-size: .75rem; font-weight: 780; letter-spacing: .02em; text-decoration: none; transition: transform .2s,box-shadow .2s,border-color .2s; }
.public-button:hover { transform: translateY(-2px); }
.public-button-primary { color: #04131d; background: linear-gradient(110deg,#49dfd1,#65baf7); box-shadow: 0 12px 35px rgba(50,203,198,.16); }
.public-button-ghost { border: 1px solid rgba(181,203,239,.22); color: #c9d4e6; background: rgba(255,255,255,.025); }
.public-intelligence-map { position: relative; width: min(100%,34rem); aspect-ratio: 1; justify-self: end; }
.map-orbit { position: absolute; inset: 8%; border: 1px solid rgba(91,181,231,.18); border-radius: 50%; }
.map-orbit::before,.map-orbit::after { content: ""; position: absolute; border-radius: 50%; background: #59e1d3; box-shadow: 0 0 16px #3ed6cf; }
.map-orbit::before { top: 12%; left: 8%; width: .35rem; height: .35rem; }
.map-orbit::after { right: 8%; bottom: 12%; width: .25rem; height: .25rem; }
.map-orbit-inner { inset: 25%; border-style: dashed; border-color: rgba(132,116,255,.22); }
.map-orbit-inner::before { top: auto; bottom: 4%; left: 25%; background: #8e7af8; box-shadow: 0 0 16px #8e7af8; }
.map-core { position: absolute; top: 50%; left: 50%; width: 8.5rem; height: 8.5rem; display: grid; place-content: center; justify-items: center; transform: translate(-50%,-50%); border: 1px solid rgba(88,224,216,.45); border-radius: 50%; background: radial-gradient(circle at 35% 30%,rgba(66,222,214,.24),rgba(23,59,111,.22) 45%,rgba(5,13,30,.92)); box-shadow: 0 0 60px rgba(42,178,202,.16),inset 0 0 32px rgba(49,165,201,.16); }
.map-core::before { content: ""; position: absolute; inset: -.85rem; border: 1px solid rgba(106,146,248,.12); border-radius: 50%; }
.map-core span { font-size: 1.65rem; font-weight: 800; letter-spacing: .08em; }
.map-core small { margin-top: .3rem; color: #72d9d0; font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; }
.map-node { position: absolute; min-width: 6.1rem; padding: .75rem .85rem; border: 1px solid rgba(118,174,236,.22); border-radius: .5rem; background: rgba(9,21,43,.82); box-shadow: 0 14px 40px rgba(0,0,0,.24); backdrop-filter: blur(12px); }
.map-node span { display: block; color: #52d9cf; font-size: .5rem; letter-spacing: .1em; }
.map-node strong { display: block; margin: .16rem 0; color: #eef7ff; font-size: .86rem; letter-spacing: .08em; }
.map-node small { color: #71819f; font-size: .54rem; text-transform: uppercase; }
.map-node-rw { top: 3%; left: 10%; }
.map-node-vca { top: 32%; right: -2%; }
.map-node-eye { bottom: 5%; left: 12%; }
.public-signal-bar { position: absolute; right: 0; bottom: 0; left: 0; min-height: 4.5rem; display: flex; align-items: center; justify-content: center; gap: clamp(1rem,4vw,4rem); border-top: 1px solid rgba(154,196,237,.12); color: #667794; background: rgba(4,10,23,.55); font-size: .57rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; backdrop-filter: blur(10px); }
.public-signal-bar i { width: .3rem; height: .3rem; border-radius: 50%; background: #38d4c9; box-shadow: 0 0 12px #38d4c9; }
.public-section { width: min(calc(100% - 4rem),86rem); margin: 0 auto; padding: clamp(6rem,10vw,10rem) 0; }
.public-intro { display: grid; grid-template-columns: 9rem minmax(0,1.4fr) minmax(18rem,.6fr); gap: clamp(2rem,6vw,7rem); align-items: start; }
.public-section-index { display: grid; gap: .3rem; color: #9aa6b9; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.public-section-index span { color: #1bc4b6; font-size: .75rem; font-weight: 800; }
.public-kicker { color: #139e94; }
.public-intro h2,.public-section-heading h2,.partnership-copy h2 { margin-top: 1.1rem; font-size: clamp(2.3rem,4.2vw,4.35rem); font-weight: 520; line-height: 1.08; letter-spacing: -.055em; }
.public-intro-text,.public-section-heading > p,.partnership-copy > p:last-child { color: var(--public-muted); font-size: .98rem; line-height: 1.8; }
.public-technologies { width: 100%; padding-right: max(2rem,calc((100% - 86rem)/2)); padding-left: max(2rem,calc((100% - 86rem)/2)); background: #eef2f7; }
.public-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 3.5rem; }
.public-section-heading > p { max-width: 29rem; }
.public-pillar-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.public-pillar { position: relative; min-height: 32rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 1.6rem; border: 1px solid #dbe2ec; border-radius: .75rem; background: #f9fbfd; transition: transform .24s,box-shadow .24s; }
.public-pillar:hover { transform: translateY(-4px); box-shadow: 0 22px 55px rgba(19,38,74,.09); }
.public-pillar::after { content: ""; position: absolute; top: 10%; right: -6rem; width: 13rem; height: 13rem; border: 1px solid currentColor; border-radius: 50%; opacity: .08; box-shadow: 0 0 0 2.5rem currentColor,0 0 0 5rem currentColor; }
.pillar-number { color: #8490a4; font-size: .58rem; font-weight: 800; letter-spacing: .12em; }
.pillar-symbol { position: relative; z-index: 1; align-self: center; color: #1abcae; font-size: clamp(3rem,5vw,5rem); font-weight: 250; letter-spacing: -.06em; }
.public-pillar-vca .pillar-symbol { color: #3e7cec; }
.public-pillar-eye .pillar-symbol { color: #8462dd; }
.public-pillar p { color: #168f87; font-size: .58rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.public-pillar h3 { margin: .55rem 0 1rem; font-size: 1.45rem; font-weight: 650; letter-spacing: -.03em; }
.public-pillar div > span { display: block; color: var(--public-muted); font-size: .86rem; line-height: 1.65; }
.public-ip-notice { display: block; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid #dde4ee; color: #63708a; font-size: .66rem; line-height: 1.5; }
.public-applications { width: 100%; padding-right: max(2rem,calc((100% - 86rem)/2)); padding-left: max(2rem,calc((100% - 86rem)/2)); color: #edf4ff; background: #091327; }
.application-heading > p { color: #8796af; }
.application-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid rgba(152,183,227,.16); border-left: 1px solid rgba(152,183,227,.16); }
.application-grid article { min-height: 21rem; padding: 1.5rem; border-right: 1px solid rgba(152,183,227,.16); border-bottom: 1px solid rgba(152,183,227,.16); }
.application-grid article > span { color: #52627e; font-size: .55rem; letter-spacing: .1em; }
.application-icon { width: 3.6rem; height: 3.6rem; display: grid; place-items: center; margin: 3rem 0 3.5rem; border: 1px solid rgba(59,218,208,.28); border-radius: 50%; color: #44d9cf; font-size: 1.2rem; }
.application-grid h3 { font-size: 1.05rem; font-weight: 650; }
.application-grid p { margin-top: .8rem; color: #8391a9; font-size: .8rem; line-height: 1.65; }
.public-partnership { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(22rem,.65fr); gap: clamp(3rem,8vw,9rem); align-items: center; }
.partnership-copy > p:last-child { max-width: 42rem; margin-top: 1.7rem; }
.partnership-card { padding: clamp(2rem,4vw,3.5rem); border: 1px solid #d8e1ec; border-radius: .8rem; background: white; box-shadow: 0 18px 55px rgba(31,49,83,.07); }
.partnership-card > span { color: #149d93; font-size: .62rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.partnership-card h3 { margin: 4rem 0 1.3rem; font-size: clamp(1.8rem,3vw,2.7rem); font-weight: 540; letter-spacing: -.04em; }
.partnership-card a { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid #e2e7ee; color: #235c9e; font-size: .8rem; font-weight: 700; text-decoration: none; }
.public-platform-entry { width: min(calc(100% - 4rem),86rem); min-height: 25rem; display: flex; align-items: center; justify-content: space-between; gap: 4rem; margin: 0 auto 5rem; padding: clamp(2.5rem,6vw,6rem); overflow: hidden; border-radius: 1rem; color: white; background: radial-gradient(circle at 84% 20%,rgba(56,228,209,.14),transparent 24rem),linear-gradient(135deg,#081326,#0c1c36); }
.public-platform-entry > div { max-width: 48rem; }
.public-platform-entry h2 { margin: 1rem 0; font-size: clamp(2.2rem,4vw,4.2rem); font-weight: 510; line-height: 1.06; letter-spacing: -.055em; }
.public-platform-entry p:last-child { color: #91a2bd; line-height: 1.7; }
.public-platform-entry .public-button { flex: 0 0 auto; }
.public-footer { width: min(calc(100% - 4rem),86rem); min-height: 9rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; margin: auto; border-top: 1px solid #dce2ea; color: #68758b; }
.public-footer .public-logo strong { color: #12203a; }
.public-footer p { font-size: .7rem; }
.public-footer > div { display: flex; justify-content: flex-end; gap: 1.5rem; }
.public-footer > div a { font-size: .7rem; text-decoration: none; }

@media (max-width: 1180px) {
    .public-header { grid-template-columns: auto 1fr; }
    .public-nav { display: none; }
    .public-nav-cta { justify-self: end; }
    .public-hero-layout { grid-template-columns: minmax(0,1.15fr) minmax(22rem,.75fr); }
    .public-intelligence-map { transform: scale(.88); transform-origin: right center; }
    .public-intro { grid-template-columns: 6rem 1fr; }
    .public-intro-text { grid-column: 2; }
    .application-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
    .public-header,.public-hero-layout,.public-section,.public-platform-entry,.public-footer { width: min(calc(100% - 2rem),86rem); }
    .public-header { min-height: 5.2rem; }
    .public-nav-cta { padding: .65rem .75rem; }
    .public-hero { min-height: auto; }
    .public-hero-layout { min-height: auto; grid-template-columns: 1fr; padding: 5rem 0 8rem; }
    .public-intelligence-map { width: min(100%,28rem); justify-self: center; transform: none; }
    .public-signal-bar { min-height: 3.8rem; }
    .public-intro { grid-template-columns: 1fr; }
    .public-intro-text { grid-column: auto; }
    .public-section-index { display: none; }
    .public-section-heading { align-items: flex-start; flex-direction: column; }
    .public-pillar-grid { grid-template-columns: 1fr; }
    .public-pillar { min-height: 24rem; }
    .public-partnership { grid-template-columns: 1fr; }
    .public-platform-entry { align-items: flex-start; flex-direction: column; }
    .public-footer { grid-template-columns: 1fr auto; }
    .public-footer > p { display: none; }
}
@media (max-width: 560px) {
    .public-header { gap: .75rem; }
    .public-logo small { display: none; }
    .public-nav-cta { font-size: .62rem; }
    .public-home .public-hero h1 { font-size: clamp(3rem,15.5vw,4.6rem); }
    .public-hero-lead { font-size: .94rem; }
    .public-actions { display: grid; }
    .public-intelligence-map { width: 22rem; max-width: 100%; }
    .map-node { min-width: 5rem; padding: .55rem .65rem; }
    .map-core { width: 6.8rem; height: 6.8rem; }
    .public-signal-bar { gap: .7rem; padding: 0 .8rem; font-size: .46rem; letter-spacing: .08em; }
    .public-section { padding: 5rem 0; }
    .public-technologies,.public-applications { padding-right: 1rem; padding-left: 1rem; }
    .public-intro h2,.public-section-heading h2,.partnership-copy h2 { font-size: 2.35rem; }
    .application-grid { grid-template-columns: 1fr; }
    .application-grid article { min-height: 17rem; }
    .application-icon { margin: 2rem 0; }
    .partnership-card h3 { margin-top: 2.5rem; }
    .public-platform-entry { margin-bottom: 2rem; padding: 2rem; }
    .public-footer { min-height: 7rem; }
    .public-footer > div { display: none; }
}

/* Public home visual redesign V2 — isolated from Clinical Workspace and LAB. */
.public-home-v2 {
    --public-ink: #f5f8ff;
    --public-muted: #94a4bd;
    --public-line: rgba(129, 169, 220, .16);
    --public-cyan: #42e4da;
    --public-blue: #55a8ff;
    --public-violet: #9f7cff;
    width: 100%;
    overflow: hidden;
    color: var(--public-ink);
    background: #050914;
}
.public-home-v2 *, .public-home-v2 *::before, .public-home-v2 *::after { box-sizing: border-box; }
.public-home-v2 a { color: inherit; }
.public-home-v2 .public-section { width: min(calc(100% - 5rem), 92rem); margin: 0 auto; padding: clamp(5rem, 8vw, 8.5rem) 0; }
.public-home-v2 .public-kicker { margin: 0 0 1.25rem; color: #40dcd2; font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }

.public-home-v2 .public-hero {
    min-height: min(980px, 100svh);
    background: radial-gradient(circle at 75% 42%, rgba(38, 103, 226, .2), transparent 32rem), linear-gradient(140deg, #030711 0%, #071225 57%, #07172d 100%);
}
.public-home-v2 .public-hero::before { opacity: .16; background-size: 58px 58px; }
.public-home-v2 .public-hero::after { display: none; }
.public-home-v2 .public-data-grid { position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 40%, rgba(51, 205, 226, .025) 40.2%, transparent 40.5%), radial-gradient(circle at 73% 52%, transparent 0 16rem, rgba(74, 166, 255, .08) 16.1rem 16.2rem, transparent 16.3rem 23rem, rgba(149, 106, 255, .055) 23.1rem 23.2rem, transparent 23.3rem); }
.public-home-v2 .public-aurora { filter: blur(70px); animation: publicAurora 14s ease-in-out infinite alternate; }
.public-home-v2 .public-aurora-one { width: 36rem; height: 36rem; top: 10%; right: 4%; background: rgba(25, 130, 232, .15); }
.public-home-v2 .public-aurora-two { width: 24rem; height: 24rem; right: 30%; bottom: -8%; background: rgba(92, 44, 210, .12); animation-delay: -6s; }
@keyframes publicAurora { to { transform: translate3d(2rem, -1rem, 0) scale(1.12); } }

.public-home-v2 .public-header { width: min(calc(100% - 5rem), 92rem); min-height: 7.5rem; border-color: rgba(135, 176, 229, .12); }
.public-home-v2 .public-logo-mark { background: linear-gradient(150deg, rgba(53, 224, 215, .18), rgba(83, 111, 237, .19)); box-shadow: inset 0 0 0 1px rgba(68, 226, 216, .25), 0 0 30px rgba(34, 132, 226, .1); }
.public-home-v2 .public-nav { gap: 2.6rem; }
.public-home-v2 .public-nav a { color: #aebbd0; transition: color .2s ease, transform .2s ease; }
.public-home-v2 .public-nav a:hover { color: #fff; transform: translateY(-1px); }
.public-home-v2 .public-nav-cta { padding: .9rem 1.2rem; background: rgba(38, 162, 204, .08); border-color: rgba(67, 219, 213, .25); box-shadow: 0 0 26px rgba(50, 195, 220, .08); }
.public-home-v2 .public-nav-cta:hover { background: rgba(50, 211, 207, .16); border-color: rgba(67, 219, 213, .45); }

.public-home-v2 .public-hero-layout { width: min(calc(100% - 5rem), 92rem); min-height: calc(min(980px, 100svh) - 10.8rem); grid-template-columns: minmax(30rem, .82fr) minmax(34rem, 1.18fr); gap: clamp(1rem, 3vw, 4rem); padding: 3.4rem 0 5.8rem; }
.public-home-v2 .public-hero-copy { z-index: 4; }
.public-home-v2 .public-overline { font-size: .66rem; letter-spacing: .2em; }
.public-home-v2 .public-home h1 { max-width: 49rem; }
.public-home-v2.public-home .public-hero h1 { font-size: clamp(4rem, 6vw, 7rem); line-height: .92; }
.public-home-v2 .public-hero-lead { max-width: 39rem; margin-top: 1.75rem !important; font-size: clamp(1rem, 1.1vw, 1.16rem); }
.public-home-v2 .public-button { min-height: 3.85rem; border-radius: .55rem; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.public-home-v2 .public-button:hover { transform: translateY(-2px); }
.public-home-v2 .public-button-primary { color: #06111e; background: linear-gradient(105deg, #43ded5, #63b9ff); box-shadow: 0 16px 42px rgba(53, 186, 224, .16); }
.public-home-v2 .public-button-primary:hover { box-shadow: 0 20px 54px rgba(53, 186, 224, .26); }

.public-human-ecosystem { position: relative; z-index: 2; width: 100%; min-height: 39rem; align-self: stretch; isolation: isolate; }
.public-human-ecosystem::before { content: ""; position: absolute; inset: 7% -8% 0 2%; z-index: -2; border-radius: 50%; background: radial-gradient(circle, rgba(46, 145, 235, .12), transparent 62%); filter: blur(10px); }
.public-human-ecosystem img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; border-radius: 48% 0 0 42%; opacity: .82; filter: saturate(.94) contrast(1.04); }
.public-human-ecosystem::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, #061022 0%, rgba(6, 16, 34, .74) 9%, transparent 37% 82%, rgba(6, 17, 34, .3) 100%), linear-gradient(0deg, #061022 0%, transparent 20% 80%, rgba(6, 16, 34, .35) 100%); }
.human-visual-halo { position: absolute; top: 50%; left: 57%; z-index: -2; width: 27rem; height: 27rem; border: 1px solid rgba(75, 215, 225, .16); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 4.5rem rgba(60, 119, 235, .025), 0 0 0 9rem rgba(132, 94, 246, .016), inset 0 0 80px rgba(46, 194, 221, .08); animation: publicPulse 6s ease-in-out infinite; }
@keyframes publicPulse { 50% { transform: translate(-50%, -50%) scale(1.035); opacity: .78; } }
.ecosystem-node { position: absolute; z-index: 4; display: grid; gap: .22rem; min-width: 10.5rem; padding: .85rem 1rem; border: 1px solid rgba(111, 173, 239, .25); border-radius: .65rem; background: rgba(5, 14, 29, .92); box-shadow: 0 14px 38px rgba(0, 0, 0, .25), inset 0 0 30px rgba(77, 169, 231, .04); }
.ecosystem-node span { color: #fff; font-size: 1rem; font-weight: 820; letter-spacing: .05em; }
.ecosystem-node small { color: #8fa6c3; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.ecosystem-node-rw { top: 10%; left: 2%; min-width: 12rem; border-color: rgba(65, 229, 218, .42); box-shadow: 0 14px 42px rgba(37, 188, 210, .11); }
.ecosystem-node-rw::after { content: "Platforma główna"; color: #44ddd5; font-size: .48rem; letter-spacing: .14em; text-transform: uppercase; }
.ecosystem-node-vca { top: 34%; right: -2%; }
.ecosystem-node-eye { right: 4%; bottom: 10%; }
.ecosystem-line { position: absolute; z-index: 1; height: 1px; transform-origin: left center; background: linear-gradient(90deg, rgba(65, 226, 216, .8), rgba(75, 147, 250, .08)); box-shadow: 0 0 10px rgba(65, 226, 216, .4); }
.ecosystem-line::after { content: ""; position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #55e3db; animation: publicSignal 3.4s linear infinite; }
.ecosystem-line-rw { top: 28%; left: 20%; width: 38%; transform: rotate(19deg); }
.ecosystem-line-vca { top: 45%; left: 62%; width: 26%; transform: rotate(-12deg); }
.ecosystem-line-eye { top: 67%; left: 58%; width: 29%; transform: rotate(23deg); }
@keyframes publicSignal { from { left: 0; opacity: 0; } 20%, 80% { opacity: 1; } to { left: 100%; opacity: 0; } }
.public-home-v2 .public-signal-bar { height: 3.3rem; border-color: rgba(121, 164, 218, .12); background: rgba(3, 8, 17, .38); }

.public-home-v2 .public-intro { grid-template-columns: 8rem minmax(0, 1.25fr) minmax(17rem, .55fr); gap: 3.5rem; align-items: end; }
.public-home-v2 .public-intro h2 { font-size: clamp(2.5rem, 4.1vw, 4.7rem); line-height: 1.03; }
.public-home-v2 .public-intro-text { padding: 0 0 .5rem 2rem; border-left: 1px solid rgba(77, 219, 215, .22); color: #7789a4; line-height: 1.8; }

.public-home-v2 .public-technologies { width: 100%; max-width: none; padding: clamp(5rem, 8vw, 8.5rem) max(2.5rem, calc((100% - 92rem) / 2)); background: linear-gradient(180deg, #071327, #061020); }
.public-home-v2 .public-section-heading { margin-bottom: 3rem; }
.public-home-v2 .public-section-heading h2 { max-width: 48rem; font-size: clamp(2.5rem, 4.4vw, 4.8rem); line-height: 1.02; }
.public-home-v2 .public-section-heading > p { color: #8899b2; }
.public-pillar-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; }
.public-pillar-secondary { display: grid; gap: 1rem; }
.public-home-v2 .public-pillar { position: relative; display: grid; overflow: hidden; min-height: 19rem; padding: 2.2rem; border: 1px solid rgba(117, 163, 219, .16); border-radius: 1rem; background: rgba(6, 16, 32, .78); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.public-home-v2 .public-pillar:hover { transform: translateY(-4px); border-color: rgba(91, 209, 220, .32); box-shadow: 0 24px 60px rgba(0, 0, 0, .22); }
.public-home-v2 .public-pillar-rw { min-height: 39rem; background: radial-gradient(circle at 50% 28%, rgba(45, 195, 219, .15), transparent 16rem), linear-gradient(155deg, rgba(9, 29, 52, .96), rgba(5, 13, 28, .92)); }
.public-home-v2 .public-pillar-vca { background: radial-gradient(circle at 24% 35%, rgba(71, 147, 245, .12), transparent 12rem), rgba(6, 16, 32, .86); }
.public-home-v2 .public-pillar-eye { background: radial-gradient(circle at 76% 30%, rgba(151, 104, 247, .12), transparent 12rem), rgba(6, 16, 32, .86); }
.public-home-v2 .pillar-copy { z-index: 2; align-self: end; max-width: 31rem; }
.public-home-v2 .pillar-copy > p { margin-bottom: .65rem; color: #43dcd4; font-size: .6rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.public-home-v2 .pillar-copy h3 { margin-bottom: .75rem; color: #f5f8ff; font-size: clamp(1.55rem, 2.4vw, 2.55rem); }
.public-home-v2 .pillar-copy > span { display: block; color: #93a3ba; line-height: 1.65; }
.public-home-v2 .pillar-number { position: absolute; top: 1.5rem; right: 1.6rem; color: rgba(150, 181, 220, .38); font-size: .66rem; letter-spacing: .15em; }
.public-home-v2 .public-ip-notice { display: block; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid rgba(115, 157, 211, .14); color: #70829d; font-size: .65rem; line-height: 1.5; }
.pillar-visual { position: absolute; z-index: 0; top: 2.2rem; left: 2.2rem; width: 11rem; height: 11rem; border: 1px solid rgba(74, 215, 219, .16); border-radius: 50%; }
.pillar-visual::before, .pillar-visual::after { content: ""; position: absolute; border: 1px solid rgba(102, 150, 231, .11); border-radius: 50%; inset: 1.2rem; }
.pillar-visual::after { inset: 3.1rem; }
.pillar-visual b { position: absolute; inset: 0; display: grid; place-items: center; color: #eef9ff; font-size: 1.2rem; letter-spacing: .05em; }
.pillar-visual span, .pillar-visual i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #46e0d7; box-shadow: 0 0 12px currentColor; }
.pillar-visual span { top: 14%; left: 22%; }
.pillar-visual i { right: 8%; bottom: 32%; color: #9579ff; background: #9579ff; }
.pillar-visual-rw { top: 4rem; left: 50%; width: 19rem; height: 19rem; transform: translateX(-50%); }
.pillar-visual-rw b { font-size: 2.2rem; }

.public-home-v2 .public-medical-story { display: grid; grid-template-columns: .77fr 1.23fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.medical-story-copy h2 { max-width: 35rem; font-size: clamp(2.7rem, 4.7vw, 5rem); line-height: 1; }
.medical-story-copy > p:not(.public-kicker) { max-width: 36rem; margin-top: 1.5rem; color: #8d9db4; line-height: 1.75; }
.medical-flow { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 2rem; }
.medical-flow span { padding: .68rem .78rem; border: 1px solid rgba(83, 188, 215, .19); border-radius: .4rem; color: #cad7e8; background: rgba(16, 40, 66, .55); font-size: .68rem; }
.medical-flow i { color: #3ccfc9; font-style: normal; }
.clinical-fragment { overflow: hidden; border: 1px solid rgba(117, 165, 221, .19); border-radius: 1rem; background: #0b1729; box-shadow: 0 42px 90px rgba(0, 0, 0, .34), 0 0 70px rgba(38, 164, 207, .07); transform: perspective(1000px) rotateY(-3deg) rotateX(1deg); }
.clinical-fragment-top { display: flex; justify-content: space-between; padding: .85rem 1rem; border-bottom: 1px solid rgba(120, 166, 219, .13); color: #8fa2bb; font-size: .6rem; }
.clinical-fragment-top span i { display: inline-block; width: 6px; height: 6px; margin-right: .4rem; border-radius: 50%; background: #41ded5; box-shadow: 0 0 12px #41ded5; }
.clinical-fragment-body { display: grid; grid-template-columns: 4rem 1fr; min-height: 25rem; }
.clinical-fragment-body aside { display: grid; align-content: start; gap: 1.1rem; justify-items: center; padding-top: 1.2rem; border-right: 1px solid rgba(120, 166, 219, .11); }
.clinical-fragment-body aside b { font-size: .82rem; }
.clinical-fragment-body aside span { width: 1rem; height: 1rem; border: 1px solid rgba(139, 174, 215, .26); border-radius: .22rem; }
.clinical-fragment-body aside span.active { background: #45dcd3; box-shadow: 0 0 16px rgba(69, 220, 211, .42); }
.clinical-fragment-main { padding: 1.4rem; }
.fragment-patient { display: flex; align-items: center; gap: .8rem; padding-bottom: 1.3rem; border-bottom: 1px solid rgba(122, 164, 214, .13); }
.fragment-avatar { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border-radius: .6rem; color: #06131d; background: linear-gradient(135deg, #44ded5, #68b9ff); font-size: .7rem; font-weight: 800; }
.fragment-patient div { display: grid; gap: .15rem; }
.fragment-patient small { color: #7187a3; font-size: .55rem; }
.fragment-patient strong { font-size: .85rem; }
.fragment-patient em { margin-left: auto; padding: .35rem .55rem; border-radius: 2rem; color: #56ded6; background: rgba(69, 222, 214, .08); font-size: .52rem; font-style: normal; }
.fragment-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1rem 0; }
.fragment-metrics div { padding: .9rem; border: 1px solid rgba(120, 166, 219, .12); border-radius: .5rem; background: rgba(12, 30, 50, .72); }
.fragment-metrics small { display: block; color: #7187a3; font-size: .5rem; }
.fragment-metrics strong { display: block; margin-top: .35rem; font-size: 1.15rem; }
.fragment-timeline { position: relative; display: grid; gap: 1rem; padding: .8rem 0 .5rem 1.6rem; }
.fragment-timeline > span { position: absolute; top: .4rem; bottom: 0; left: .35rem; width: 1px; background: linear-gradient(#48dbd4, rgba(93, 139, 207, .1)); }
.fragment-timeline div { position: relative; display: grid; gap: .25rem; padding: .75rem; border-radius: .45rem; background: rgba(13, 32, 53, .75); }
.fragment-timeline div::before { content: ""; position: absolute; top: 1rem; left: -1.42rem; width: 7px; height: 7px; border-radius: 50%; background: #4bdcd4; box-shadow: 0 0 10px #4bdcd4; }
.fragment-timeline small { color: #6e849e; font-size: .5rem; }
.fragment-timeline b { color: #cbd7e8; font-size: .63rem; font-weight: 650; }

.public-home-v2 .public-applications { width: 100%; max-width: none; padding: clamp(5rem, 8vw, 8.5rem) max(2.5rem, calc((100% - 92rem) / 2)); background: #071326; }
.application-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; }
.application-card { position: relative; overflow: hidden; min-height: 21rem; border: 1px solid rgba(119, 164, 218, .16); border-radius: .8rem; background: #0a172a; }
.application-card-large { min-height: 27rem; }
.application-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.05); transition: transform .7s ease, filter .4s ease; }
.application-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(3, 9, 20, .22) 50%, rgba(3, 9, 20, .96) 100%); }
.application-card:hover img { transform: scale(1.035); filter: saturate(.98) contrast(1.03); }
.application-card > div { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 2rem; }
.application-card span { color: #4adcd4; font-size: .58rem; font-weight: 800; letter-spacing: .18em; }
.application-card h3 { margin-top: .45rem; font-size: clamp(1.55rem, 2.3vw, 2.5rem); }
.application-card p { max-width: 29rem; margin-top: .5rem !important; color: #9cabbe; line-height: 1.55; }

.public-home-v2 .public-platform-preview { display: grid; grid-template-columns: .62fr 1.38fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.platform-preview-copy h2 { font-size: clamp(2.6rem, 4vw, 4.5rem); line-height: 1.03; }
.platform-preview-copy > p:not(.public-kicker) { margin: 1.4rem 0 2rem; color: #8d9db4; line-height: 1.75; }
.platform-window { overflow: hidden; border: 1px solid rgba(112, 164, 222, .2); border-radius: 1rem; background: #eff4fa; box-shadow: 0 42px 90px rgba(0, 0, 0, .38), 0 0 80px rgba(62, 175, 220, .08); transform: perspective(1200px) rotateY(-3deg); }
.platform-window-bar { display: flex; align-items: center; gap: .4rem; height: 2.5rem; padding: 0 .9rem; color: #6a7890; background: #dce6f1; font-size: .55rem; }
.platform-window-bar i { width: 6px; height: 6px; border-radius: 50%; background: #8da0b7; }
.platform-window-bar span { margin-left: .5rem; }
.platform-window-body { display: grid; grid-template-columns: 9.5rem 1fr; min-height: 28rem; color: #152238; }
.platform-window-body aside { display: grid; align-content: start; gap: .9rem; padding: 1.4rem 1rem; color: #8fa1b7; background: #0a1526; font-size: .58rem; }
.platform-window-body aside b { margin-bottom: 1rem; color: #fff; font-size: 1rem; }
.platform-window-body aside span:nth-of-type(2) { color: #fff; }
.platform-dashboard { padding: 1.6rem; }
.platform-dashboard-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.platform-dashboard-head small { color: #78889c; font-size: .55rem; }
.platform-dashboard-head h3 { margin-top: .3rem; color: #13213a; font-size: 1.2rem; }
.platform-dashboard-head > span { color: #7e8da0; font-size: .52rem; }
.platform-dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: .8rem; margin-top: 1.2rem; }
.platform-trend, .platform-observation { min-height: 17rem; padding: 1.2rem; border: 1px solid #d8e2ed; border-radius: .65rem; background: #fff; }
.platform-trend small, .platform-observation small { color: #8491a2; font-size: .55rem; }
.platform-trend strong, .platform-observation strong { display: block; margin-top: .55rem; color: #1b2a41; }
.platform-trend strong em { color: #18a69f; font-style: normal; }
.platform-trend svg { width: 100%; margin-top: 2.5rem; overflow: visible; }
.platform-trend path { fill: none; stroke: #20bbb1; stroke-width: 3; }
.platform-trend circle { fill: #fff; stroke: #20bbb1; stroke-width: 3; }
.platform-observation p { margin-top: 1.4rem !important; color: #5f6d80; font-size: .72rem; line-height: 1.65; }
.platform-observation span { display: block; margin-top: 2.3rem; padding-top: .9rem; border-top: 1px solid #e2e8ef; color: #8794a5; font-size: .58rem; }

.public-home-v2 .public-partnership { position: relative; overflow: hidden; width: min(calc(100% - 5rem), 92rem); margin-bottom: 3rem; padding: clamp(3rem, 6vw, 6rem); border: 1px solid #dce7f1; border-radius: 1rem; color: #14233a; background: radial-gradient(circle at 85% 20%, rgba(68, 218, 210, .16), transparent 18rem), linear-gradient(135deg, #f8fbfe, #eaf2f8); }
.public-home-v2 .partnership-copy { position: relative; z-index: 2; max-width: 59rem; }
.public-home-v2 .partnership-copy h2 { color: #11213a; font-size: clamp(2.5rem, 4.3vw, 4.8rem); line-height: 1.02; }
.public-home-v2 .partnership-copy > p:not(.public-kicker) { max-width: 48rem; margin-top: 1.3rem !important; color: #64758a; line-height: 1.7; }
.partnership-link { position: relative; z-index: 2; display: inline-flex; gap: 1rem; align-items: center; margin-top: 2rem; padding: 1rem 1.25rem; border-radius: .5rem; color: #f7fbff !important; background: #0b1a2e; font-size: .72rem; font-weight: 800; text-decoration: none; }
.partnership-orbit { position: absolute; right: -6rem; bottom: -12rem; width: 34rem; height: 34rem; border: 1px solid rgba(18, 110, 155, .11); border-radius: 50%; }
.partnership-orbit::before, .partnership-orbit::after { content: ""; position: absolute; border: 1px solid rgba(32, 155, 180, .11); border-radius: 50%; inset: 5rem; }
.partnership-orbit::after { inset: 10rem; }
.partnership-orbit span, .partnership-orbit i, .partnership-orbit b { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #16bdb4; box-shadow: 0 0 18px rgba(22, 189, 180, .6); }
.partnership-orbit span { top: 18%; left: 19%; }.partnership-orbit i { top: 46%; right: 2%; }.partnership-orbit b { bottom: 22%; left: 30%; }

.public-home-v2 .public-platform-entry { width: min(calc(100% - 5rem), 92rem); padding: 4rem; border: 1px solid rgba(106, 166, 226, .18); border-radius: 1rem; background: radial-gradient(circle at 80% 45%, rgba(69, 189, 224, .11), transparent 22rem), #071326; }
.public-home-v2 .public-platform-entry h2 { max-width: 50rem; font-size: clamp(2.3rem, 3.7vw, 4rem); }
.public-home-v2 .public-platform-entry p:not(.public-kicker) { max-width: 46rem; color: #8fa0b8; }
.public-home-v2 .public-footer { width: min(calc(100% - 5rem), 92rem); }

@media (prefers-reduced-motion: reduce) {
    .public-home-v2 *, .public-home-v2 *::before, .public-home-v2 *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 1180px) {
    .public-home-v2 .public-header, .public-home-v2 .public-hero-layout, .public-home-v2 .public-section, .public-home-v2 .public-platform-entry, .public-home-v2 .public-footer, .public-home-v2 .public-partnership { width: min(calc(100% - 3rem), 92rem); }
    .public-home-v2 .public-hero-layout { grid-template-columns: minmax(27rem, .85fr) minmax(28rem, 1.15fr); }
    .public-home-v2.public-home .public-hero h1 { font-size: clamp(3.8rem, 6.4vw, 5.6rem); }
    .public-home-v2 .public-nav { gap: 1.35rem; }
    .public-home-v2 .public-technologies, .public-home-v2 .public-applications { padding-right: 1.5rem; padding-left: 1.5rem; }
}
@media (max-width: 900px) {
    .public-home-v2 .public-nav { display: none; }
    .public-home-v2 .public-hero { min-height: auto; }
    .public-home-v2 .public-hero-layout { min-height: 0; grid-template-columns: 1fr; padding: 4rem 0 2rem; }
    .public-home-v2 .public-hero-copy { max-width: 44rem; }
    .public-home-v2 .public-human-ecosystem { min-height: 38rem; margin-top: -2rem; }
    .public-home-v2 .public-intro, .public-home-v2 .public-medical-story, .public-home-v2 .public-platform-preview { grid-template-columns: 1fr; }
    .public-home-v2 .public-intro { gap: 2rem; }
    .public-home-v2 .public-intro-text { max-width: 39rem; }
    .public-pillar-layout { grid-template-columns: 1fr; }
    .public-home-v2 .public-pillar-rw { min-height: 34rem; }
    .public-home-v2 .public-pillar-secondary { grid-template-columns: 1fr 1fr; }
    .clinical-fragment, .platform-window { transform: none; }
    .application-grid { grid-template-columns: 1fr 1fr; }
    .application-card, .application-card-large { min-height: 22rem; }
    .public-home-v2 .public-platform-preview { gap: 3rem; }
}
@media (max-width: 620px) {
    .public-home-v2 .public-header, .public-home-v2 .public-hero-layout, .public-home-v2 .public-section, .public-home-v2 .public-platform-entry, .public-home-v2 .public-footer, .public-home-v2 .public-partnership { width: min(calc(100% - 2rem), 92rem); }
    .public-home-v2 .public-header { min-height: 5rem; }
    .public-home-v2 .public-logo small { display: none; }
    .public-home-v2 .public-nav-cta { padding: .72rem .8rem; font-size: .58rem; }
    .public-home-v2 .public-hero-layout { padding-top: 3.3rem; }
    .public-home-v2.public-home .public-hero h1 { font-size: clamp(3rem, 14.5vw, 4.2rem); line-height: .95; }
    .public-home-v2 .public-hero-lead { font-size: .92rem; line-height: 1.65; }
    .public-home-v2 .public-actions { display: grid; }
    .public-home-v2 .public-human-ecosystem { min-height: 30rem; margin: 0; }
    .public-human-ecosystem img { inset: 0 -22% 0 -10%; width: 132%; object-position: 60% 50%; }
    .human-visual-halo { left: 52%; width: 19rem; height: 19rem; }
    .ecosystem-node { min-width: 7.4rem; padding: .6rem .65rem; }
    .ecosystem-node span { font-size: .75rem; }
    .ecosystem-node small { font-size: .42rem; }
    .ecosystem-node-rw { top: 2%; left: 0; min-width: 8.4rem; }
    .ecosystem-node-vca { top: 30%; right: 0; }
    .ecosystem-node-eye { top: 42%; right: auto; bottom: auto; left: 2%; }
    .ecosystem-line-rw { top: 22%; left: 23%; }.ecosystem-line-vca { top: 43%; left: 59%; }.ecosystem-line-eye { top: 55%; left: 26%; }
    .public-home-v2 .public-signal-bar { gap: .55rem; font-size: .42rem; letter-spacing: .05em; }
    .public-home-v2 .public-section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
    .public-home-v2 .public-intro { grid-template-columns: 1fr; }
    .public-home-v2 .public-intro h2, .public-home-v2 .public-section-heading h2, .medical-story-copy h2, .platform-preview-copy h2, .public-home-v2 .partnership-copy h2 { font-size: 2.35rem; }
    .public-home-v2 .public-section-index { display: none; }
    .public-home-v2 .public-intro-text { padding-left: 1rem; }
    .public-home-v2 .public-section-heading { gap: 1.5rem; }
    .public-home-v2 .public-pillar-secondary { grid-template-columns: 1fr; }
    .public-home-v2 .public-pillar-rw { min-height: 28rem; }
    .public-home-v2 .public-pillar { min-height: 22rem; padding: 1.5rem; }
    .pillar-visual-rw { width: 14rem; height: 14rem; }
    .medical-flow i { display: none; }
    .medical-flow span { flex: 1 1 45%; text-align: center; }
    .clinical-fragment-body { grid-template-columns: 2.8rem 1fr; min-height: 23rem; }
    .clinical-fragment-main { padding: .85rem; }
    .fragment-metrics { gap: .35rem; }
    .fragment-metrics div { padding: .55rem; }
    .fragment-metrics small { font-size: .42rem; }
    .fragment-metrics strong { font-size: .9rem; }
    .application-grid { grid-template-columns: 1fr; }
    .application-card, .application-card-large { min-height: 22rem; }
    .application-card > div { padding: 1.4rem; }
    .application-card h3 { font-size: 1.75rem; }
    .platform-window-body { grid-template-columns: 3.1rem 1fr; min-height: 24rem; }
    .platform-window-body aside { justify-items: center; padding: 1rem .4rem; }
    .platform-window-body aside span { width: 1rem; height: 1rem; overflow: hidden; color: transparent; border: 1px solid #30445e; border-radius: .2rem; }
    .platform-dashboard { padding: .8rem; }
    .platform-dashboard-head > span { display: none; }
    .platform-dashboard-grid { grid-template-columns: 1fr; }
    .platform-trend, .platform-observation { min-height: 10rem; }
    .platform-trend svg { margin-top: .8rem; }
    .platform-observation span { margin-top: 1rem; }
    .public-home-v2 .public-partnership { padding: 2rem; }
    .public-home-v2 .public-platform-entry { padding: 2rem; }
    .public-home-v2 .public-footer { grid-template-columns: 1fr auto; }
}

/* Public Home rebuilt from the approved compact reference. */
.public-home-reference {
    --ref-navy: #020d1c;
    --ref-navy-2: #061a33;
    --ref-blue: #536bff;
    --ref-violet: #785dff;
    --ref-cyan: #10c9bd;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
    background: #f7f9fc;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.public-home-reference *, .public-home-reference *::before, .public-home-reference *::after { box-sizing: border-box; }
.public-home-reference h1, .public-home-reference h2, .public-home-reference h3, .public-home-reference p { max-width: none; margin: 0; }
.public-home-reference a { color: inherit; text-decoration: none; }
.reference-hero { position: relative; min-height: 470px; overflow: hidden; background: radial-gradient(circle at 74% 46%, rgba(20, 100, 210, .18), transparent 26rem), linear-gradient(120deg, #020a17 0%, #031126 55%, #061b35 100%); }
.reference-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(85, 145, 213, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(85, 145, 213, .045) 1px, transparent 1px); background-size: 60px 60px; mask-image: linear-gradient(to bottom, black, transparent 92%); }
.reference-header { position: relative; z-index: 6; width: min(calc(100% - 6rem), 1780px); height: 54px; display: grid; grid-template-columns: 280px 1fr auto; align-items: center; margin: 0 auto; }
.reference-logo { display: flex; gap: .75rem; align-items: center; width: max-content; }
.reference-logo strong { font-size: 2.25rem; font-weight: 850; letter-spacing: -.065em; line-height: 1; }
.reference-logo span { font-size: .62rem; font-weight: 800; letter-spacing: .06em; line-height: 1.15; text-transform: uppercase; }
.reference-nav { display: flex; gap: clamp(1.5rem, 2.5vw, 3rem); justify-content: center; font-size: .67rem; font-weight: 750; }
.reference-nav a { color: #f4f6fb; transition: color .2s ease; }
.reference-nav a:hover { color: #6adbd8; }
.reference-header-cta { display: inline-flex; gap: .8rem; align-items: center; justify-content: center; min-height: 38px; padding: 0 1.15rem; border-radius: 2rem; background: linear-gradient(90deg, #5568e9, #6383d8); font-size: .64rem; font-weight: 800; box-shadow: 0 10px 25px rgba(64, 91, 214, .22); }
.reference-hero-main { position: relative; z-index: 2; width: min(calc(100% - 6rem), 1780px); height: 334px; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 2rem; margin: 0 auto; }
.reference-hero-copy { position: relative; z-index: 4; align-self: center; padding-bottom: .8rem; }
.public-home-reference .reference-hero-copy h1 { color: #f8f9ff; font-size: clamp(2.8rem, 3.55vw, 4.4rem); font-weight: 760; line-height: .99; letter-spacing: -.045em; }
.reference-hero-copy h1 em { color: transparent; background: linear-gradient(90deg, #4c72f2, #7f5bf5); background-clip: text; -webkit-background-clip: text; font-style: normal; }
.reference-hero-copy > p { max-width: 40rem; margin-top: 1.35rem; color: #e0e6ef; font-size: clamp(.82rem, .82vw, 1rem); line-height: 1.55; }
.reference-actions { display: flex; gap: .8rem; margin-top: 1.25rem; }
.reference-button { display: inline-flex; gap: 1rem; min-height: 38px; align-items: center; justify-content: center; padding: 0 1.35rem; border-radius: 2rem; font-size: .64rem; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.reference-button:hover { transform: translateY(-2px); }
.reference-button-primary { background: linear-gradient(90deg, #5268ed, #6759f0); box-shadow: 0 12px 28px rgba(75, 78, 226, .24); }
.reference-button-secondary { border: 1px solid rgba(255, 255, 255, .65); background: rgba(4, 15, 32, .52); }
.reference-ecosystem { position: relative; width: 100%; height: 100%; min-width: 0; }
.reference-ecosystem .reference-original-hero { position: absolute; inset: 0 0 0 auto; width: 100%; height: 100%; display: block; object-fit: contain; object-position: right center; opacity: 1; filter: none; }
.reference-values { position: relative; z-index: 8; width: min(calc(100% - 6rem), 1780px); height: 82px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; margin: 0 auto; padding: 0 1.8rem; border: 1px solid rgba(95, 137, 201, .13); border-radius: .7rem .7rem 0 0; background: linear-gradient(100deg, #07162d, #081d3a 55%, #071831); box-shadow: 0 16px 36px rgba(1, 8, 20, .24); }
.reference-values article { display: grid; grid-template-columns: 2.6rem 1fr; gap: .8rem; align-items: center; min-width: 0; padding: 0 1.25rem; border-right: 1px solid rgba(111, 145, 190, .12); }
.reference-values article:last-child { border-right: 0; }
.reference-values article > span { color: #f3f6fb; font-size: 2rem; line-height: 1; }
.reference-values article div { display: grid; gap: .35rem; }
.reference-values b { font-size: .68rem; }
.reference-values small { max-width: 16rem; color: #c0cad8; font-size: .54rem; line-height: 1.45; }

.reference-light-section { width: min(calc(100% - 6rem), 1780px); display: grid; grid-template-columns: 350px 1fr; gap: 2.2rem; align-items: center; margin: 0 auto; color: #071225; background: #f7f9fc; }
.reference-technologies { min-height: 235px; padding: 22px 0; }
.reference-applications { min-height: 223px; padding: 18px 0; border-top: 1px solid #e7ebf1; }
.reference-section-intro small { display: block; margin-bottom: .55rem; color: #4968ed; font-size: .55rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.reference-section-intro h2 { color: #071225; font-size: clamp(1.45rem, 1.5vw, 1.9rem); line-height: 1.1; }
.reference-section-intro p { max-width: 20rem; margin-top: .85rem; color: #4d5b70; font-size: .7rem; line-height: 1.55; }
.reference-technology-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.reference-tech-card { position: relative; min-height: 170px; display: grid; align-content: start; padding: 1.2rem; border: 1px solid #e8edf4; border-radius: .55rem; background: #fff; box-shadow: 0 10px 26px rgba(19, 44, 82, .07); }
.reference-tech-card > div { display: flex; align-items: flex-start; justify-content: space-between; }
.reference-tech-card h3 { font-size: 2.1rem; line-height: 1; }
.reference-tech-card > div span { display: grid; width: 3.4rem; height: 3.4rem; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 1.35rem; }
.reference-tech-card > b { max-width: 9.5rem; margin-top: .35rem; color: #172238; font-size: .68rem; line-height: 1.25; }
.reference-tech-card > p { margin-top: auto; color: #39475a; font-size: .62rem; line-height: 1.4; }
.reference-tech-card > small { position: absolute; right: 1rem; bottom: .8rem; left: 1rem; color: #68768a; font-size: .48rem; line-height: 1.3; }
.reference-tech-vca > p { margin-bottom: 1.45rem; }
.reference-tech-rw { color: #09a99e; }.reference-tech-vca { color: #7057e7; }.reference-tech-eye { color: #286ac6; }

.reference-application-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.reference-application-cards article { overflow: hidden; min-width: 0; height: 169px; border: 1px solid #e5eaf1; border-radius: .5rem; background: #fff; box-shadow: 0 8px 22px rgba(18, 44, 80, .06); }
.reference-application-cards img { width: 100%; height: 96px; display: block; object-fit: cover; filter: saturate(.85); }
.reference-application-cards div { padding: .65rem .8rem; }
.reference-application-cards h3 { overflow: hidden; color: #101c30; font-size: .68rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.reference-application-cards p { margin-top: .32rem; color: #566478; font-size: .52rem; line-height: 1.35; }

.reference-partnership { width: min(calc(100% - 6rem), 1780px); min-height: 80px; display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; margin: 0 auto 12px; padding: .8rem 1.5rem; border-radius: .6rem; background: linear-gradient(100deg, #06152c, #071d3b 58%, #06162e); box-shadow: 0 12px 28px rgba(4, 16, 36, .18); }
.reference-partner-icon { font-size: 2rem; }
.reference-partnership h2 { color: #fff; font-size: .8rem; }
.reference-partnership p { margin-top: .28rem; color: #c3cfdf; font-size: .58rem; }
.reference-partnership > a { display: inline-flex; gap: 3.5rem; min-width: 15rem; min-height: 38px; align-items: center; justify-content: center; border-radius: 2rem; background: linear-gradient(90deg, #5064ed, #6658ef); font-size: .63rem; font-weight: 800; }

.reference-section-focus { animation: reference-focus .85s ease; }
@keyframes reference-focus { 45% { box-shadow: inset 0 0 0 2px rgba(79, 101, 237, .38); } }
.reference-dialog { width: min(92vw, 31rem); padding: 2rem; border: 1px solid rgba(116, 142, 216, .3); border-radius: 1rem; color: #f7f9ff; background: linear-gradient(145deg, #07172e, #0a2344); box-shadow: 0 28px 80px rgba(0, 8, 22, .5); }
.reference-dialog::backdrop { background: rgba(1, 7, 18, .72); backdrop-filter: blur(5px); }
.reference-dialog-close { position: absolute; top: .75rem; right: .8rem; width: 2rem; height: 2rem; border: 0; color: #dce5f4; background: transparent; font-size: 1.5rem; cursor: pointer; }
.reference-dialog small { color: #66d8d2; font-size: .65rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.public-home-reference .reference-dialog h2 { margin-top: .65rem; color: #fff; font-size: 1.65rem; }
.public-home-reference .reference-dialog p { margin-top: .75rem; color: #cad5e5; font-size: .9rem; line-height: 1.6; }
.reference-dialog-action { display: inline-flex; gap: 2.5rem; align-items: center; margin-top: 1.35rem; padding: .75rem 1.1rem; border-radius: 2rem; background: linear-gradient(90deg, #5064ed, #6658ef); font-size: .75rem; font-weight: 800; }

@media (min-width: 981px) and (max-height: 900px) {
    .reference-hero { min-height: 390px; }
    .reference-header { height: 50px; }
    .reference-hero-main { height: 270px; }
    .reference-values { height: 70px; }
    .reference-technologies { min-height: 180px; padding: 12px 0; }
    .reference-applications { min-height: 175px; padding: 10px 0; }
    .reference-tech-card { min-height: 148px; padding: .85rem; }
    .reference-tech-card h3 { font-size: 1.7rem; }
    .reference-tech-card > div span { width: 2.7rem; height: 2.7rem; }
    .reference-application-cards article { height: 145px; }
    .reference-application-cards img { height: 76px; }
    .reference-application-cards div { padding: .45rem .65rem; }
    .reference-partnership { min-height: 66px; margin-bottom: 8px; }
}

@media (min-width: 981px) and (max-height: 800px) {
    .reference-hero { min-height: 350px; }
    .reference-header { height: 46px; }
    .reference-hero-main { height: 244px; }
    .reference-values { height: 60px; }
    .reference-values small { display: none; }
    .reference-technologies { min-height: 150px; padding: 9px 0; }
    .reference-applications { min-height: 145px; padding: 8px 0; }
    .reference-tech-card { min-height: 130px; padding: .7rem; }
    .reference-tech-card > p, .reference-tech-card > small { display: none; }
    .reference-application-cards article { height: 125px; }
    .reference-application-cards img { height: 64px; }
    .reference-partnership { min-height: 62px; margin-bottom: 6px; }
}

@media (max-width: 1280px) {
    .reference-header, .reference-hero-main, .reference-values, .reference-light-section, .reference-partnership { width: min(calc(100% - 2.5rem), 1780px); }
    .reference-header { grid-template-columns: 220px 1fr auto; }
    .reference-nav { gap: 1.2rem; }
    .reference-hero-main { grid-template-columns: .9fr 1.1fr; }
    .reference-light-section { grid-template-columns: 280px 1fr; }
    .reference-values article { padding: 0 .65rem; }
}
@media (max-width: 980px) {
    .reference-hero { min-height: auto; }
    .reference-header { grid-template-columns: 1fr auto; }
    .reference-nav { display: none; }
    .reference-hero-main { height: auto; grid-template-columns: 1fr; padding: 3rem 0 1rem; }
    .reference-hero-copy { max-width: 42rem; }
    .reference-ecosystem { height: 360px; }
    .reference-values { height: auto; grid-template-columns: 1fr 1fr; padding: .8rem; }
    .reference-values article { min-height: 68px; }
    .reference-light-section { grid-template-columns: 1fr; padding: 2.5rem 0; }
    .reference-technologies, .reference-applications { min-height: 0; }
    .reference-section-intro p { max-width: 35rem; }
    .reference-partnership { margin-top: 1rem; }
}
@media (max-width: 650px) {
    .reference-header, .reference-hero-main, .reference-values, .reference-light-section, .reference-partnership { width: min(calc(100% - 2rem), 1780px); }
    .reference-header { height: 60px; }
    .reference-logo strong { font-size: 1.8rem; }
    .reference-logo span { font-size: .5rem; }
    .reference-header-cta { min-height: 34px; padding: 0 .8rem; font-size: .54rem; }
    .reference-hero-main { padding-top: 2.4rem; }
    .public-home-reference .reference-hero-copy h1 { font-size: clamp(2.55rem, 12.6vw, 3.7rem); }
    .reference-hero-copy > p { font-size: .82rem; }
    .reference-actions { display: grid; }
    .reference-button { width: 100%; }
    .reference-ecosystem { height: 320px; }
    .reference-ecosystem .reference-original-hero { right: 0; width: 100%; }
    .reference-values { grid-template-columns: 1fr; }
    .reference-values article { border-right: 0; border-bottom: 1px solid rgba(111, 145, 190, .12); }
    .reference-values article:last-child { border-bottom: 0; }
    .reference-technology-cards { grid-template-columns: 1fr; }
    .reference-tech-card { min-height: 160px; }
    .reference-application-cards { grid-template-columns: 1fr 1fr; }
    .reference-application-cards article { height: 180px; }
    .reference-application-cards img { height: 105px; }
    .reference-partnership { grid-template-columns: 2.5rem 1fr; padding: 1rem; }
    .reference-partnership > a { grid-column: 1 / -1; width: 100%; min-width: 0; }
}

/* VCA public page — implementation of the approved reference composition. */
.vca-public-page { --vca-blue:#1478ff; --vca-cyan:#00c8f4; --vca-dark:#020b19; color:#0b1629; background:#f7f9fc; font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
.vca-public-page *, .vca-public-page *::before, .vca-public-page *::after { box-sizing:border-box; }
.vca-public-page h1,.vca-public-page h2,.vca-public-page h3,.vca-public-page p { max-width:none; margin:0; }
.vca-public-page a { color:inherit; text-decoration:none; }
.vca-hero { color:#fff; background:radial-gradient(circle at 73% 43%,rgba(25,87,185,.2),transparent 26rem),linear-gradient(115deg,#020b18,#04152c 62%,#020b18); }
.vca-header { width:min(calc(100% - 5rem),1160px); height:62px; display:grid; grid-template-columns:240px 1fr auto; align-items:center; margin:0 auto; border-bottom:1px solid rgba(124,161,210,.2); }
.vca-brand { width:max-content; display:flex; align-items:center; gap:.65rem; }
.vca-brand strong { color:#fff; font-size:2rem; font-weight:880; letter-spacing:-.06em; line-height:1; }
.vca-brand span { color:#fff; font-size:.57rem; font-weight:820; letter-spacing:.06em; line-height:1.15; text-transform:uppercase; }
.vca-header nav { display:flex; justify-content:center; gap:2.2rem; font-size:.7rem; font-weight:760; }
.vca-header nav a { position:relative; padding:1.4rem 0; }
.vca-header nav a:hover,.vca-header nav .is-active { color:#5fdcf7; }
.vca-header nav .is-active::after { content:""; position:absolute; right:0; bottom:.7rem; left:0; height:2px; background:#15bff0; }
.vca-platform-entry,.vca-hero-actions>a,.vca-partnership>a { display:inline-flex; align-items:center; justify-content:center; gap:2rem; min-height:40px; padding:0 1.3rem; border-radius:2rem; color:#fff; background:linear-gradient(90deg,#0879ff,#2779ee); box-shadow:0 10px 25px rgba(15,112,241,.25); font-size:.67rem; font-weight:820; }
.vca-hero-grid { width:min(calc(100% - 5rem),1160px); height:360px; min-height:0; display:grid; grid-template-columns:.9fr 1.1fr; align-items:center; margin:0 auto; }
.vca-hero-copy { position:relative; z-index:2; padding:1.2rem 0 1.5rem; }
.vca-ecosystem-label { display:flex; width:max-content; overflow:hidden; margin-bottom:1rem; border:1px solid rgba(31,177,244,.25); border-radius:2rem; color:#40cff2; background:rgba(9,32,61,.65); font-size:.53rem; }
.vca-ecosystem-label span,.vca-ecosystem-label b { padding:.35rem .65rem; }
.vca-ecosystem-label span { color:#9ab1cc; border-right:1px solid rgba(31,177,244,.22); text-transform:uppercase; }
.vca-public-page .vca-hero-copy h1 { display:grid; color:#fff; font-size:2rem; line-height:1; letter-spacing:-.035em; }
.vca-hero-copy h1 em { color:#147cff; font-size:3.9rem; font-style:normal; }
.vca-hero-copy h1 span { margin-top:.25rem; }
.vca-hero-copy h2 { margin-top:1.15rem; color:#20c9ed; font-size:1rem; }
.vca-hero-copy>p { max-width:31rem; margin-top:1rem; color:#e1e8f2; font-size:.75rem; font-weight:560; line-height:1.65; }
.vca-hero-actions { display:flex; align-items:center; gap:1.2rem; margin-top:1.1rem; }
.vca-hero-actions small { display:flex; max-width:11rem; gap:.55rem; color:#d8e3ef; font-size:.59rem; font-weight:700; line-height:1.35; }
.vca-hero-actions small span { color:#1ed6f4; font-size:1.2rem; }
.vca-hero-visual { height:360px; min-width:0; }
.vca-hero-visual img { width:100%; height:100%; display:block; object-fit:contain; object-position:right center; mix-blend-mode:screen; -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.35) 8%,rgba(0,0,0,.8) 18%,#000 32%,#000 100%); mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.35) 8%,rgba(0,0,0,.8) 18%,#000 32%,#000 100%); }
.vca-explanation { width:min(calc(100% - 5rem),1160px); min-height:205px; display:grid; grid-template-columns:340px 1fr; align-items:center; gap:2.5rem; margin:0 auto; padding:1.4rem 0; }
.vca-explanation-copy h2,.vca-applications>h2 { font-size:1.65rem; letter-spacing:-.035em; }.vca-explanation-copy h2 em,.vca-applications>h2 em { color:var(--vca-blue); font-style:normal; }
.vca-explanation-copy>p { margin-top:.65rem; color:#334055; font-size:.68rem; line-height:1.55; }
.vca-explanation-copy ul { display:grid; gap:.4rem; margin:.8rem 0 0; padding:0; list-style:none; color:#1f2d40; font-size:.62rem; }
.vca-explanation-copy li::before { content:"✓"; display:inline-grid; width:1rem; height:1rem; place-items:center; margin-right:.45rem; border-radius:50%; color:#fff; background:var(--vca-blue); font-size:.55rem; }
.vca-flow { min-height:170px; display:grid; grid-template-columns:1fr auto 1fr auto 1fr auto 1fr; align-items:center; padding:1rem 1.3rem; border:1px solid #e8edf5; border-radius:.7rem; background:#fff; box-shadow:0 10px 28px rgba(28,55,89,.06); }
.vca-flow article { display:grid; justify-items:center; gap:.35rem; text-align:center; }
.vca-flow article>span { width:4.8rem; height:4.8rem; display:grid; place-items:center; border:1px solid #54a3fa; border-radius:50%; color:#126df0; font-size:2rem; }
.vca-flow article b { font-size:.74rem; text-transform:uppercase; }.vca-flow article small { max-width:7rem; color:#405069; font-size:.56rem; line-height:1.35; }
.vca-flow>i { color:#1478ff; font-size:1.3rem; font-style:normal; }
.vca-flow .vca-flow-core>span { color:#7365ff; border:0; background:radial-gradient(circle at 35% 30%,#11356c,#020d23); box-shadow:0 0 24px rgba(28,85,203,.32); font-size:1.35rem; font-weight:850; }
.vca-flow article>.vca-flow-visual { position:relative; overflow:hidden; border-color:rgba(26,164,247,.55); background:radial-gradient(circle at 42% 35%,#f8fdff 0,#edf8ff 48%,#e8edff 100%); box-shadow:inset 0 0 0 1px rgba(255,255,255,.8),0 8px 22px rgba(33,104,188,.13); }
.vca-flow-visual::after { content:""; position:absolute; inset:7%; border:1px solid rgba(64,137,242,.16); border-radius:50%; }
.vca-flow-visual img { position:relative; z-index:1; width:100%; height:100%; display:block; object-fit:contain; filter:drop-shadow(0 5px 9px rgba(16,119,201,.24)); }
.vca-flow-human img { padding:.35rem .85rem .2rem; }
.vca-flow-motion img { padding:.16rem; }
.vca-flow-context { background:radial-gradient(circle at center,#f7fbff 0,#eef4ff 58%,#eeeaff 100%)!important; }
.vca-flow-context img { padding:.08rem; }
.vca-applications { width:min(calc(100% - 5rem),1160px); margin:0 auto; padding:.7rem 0 1.6rem; }
.vca-applications>h2 { margin-bottom:1rem; text-align:center; }
.vca-application-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:.85rem; }
.vca-application-grid article { overflow:hidden; min-width:0; border:1px solid #e6ebf2; border-radius:.65rem; background:#fff; box-shadow:0 8px 24px rgba(28,55,89,.07); }
.vca-application-media { width:100%; aspect-ratio:16/9; display:block; overflow:hidden; }
.vca-application-grid img { width:100%; height:100%; display:block; object-fit:cover; object-position:center; }
.vca-application-grid article>div { padding:.75rem .85rem .9rem; }
.vca-application-grid h3 { color:#086be9; font-size:.78rem; }.vca-application-grid ul { display:grid; gap:.32rem; margin:.55rem 0 0; padding:0; list-style:none; color:#344158; font-size:.54rem; line-height:1.35; }.vca-application-grid li::before { content:"•"; margin-right:.4rem; color:#1379f7; }
.vca-rw-ecosystem { position:relative; min-height:225px; display:grid; grid-template-columns:260px 1fr 215px; align-items:center; gap:1.5rem; padding:1.7rem max(calc((100% - 1160px)/2),2.5rem) 2.4rem; color:#fff; background:radial-gradient(circle at 60% 45%,rgba(35,49,150,.2),transparent 25rem),linear-gradient(110deg,#020b18,#03162d 60%,#020a17); }
.vca-rw-copy h2 { font-size:1.25rem; line-height:1.3; }.vca-rw-copy p { margin-top:.75rem; color:#c8d4e3; font-size:.64rem; line-height:1.55; }
.vca-equation { display:flex; align-items:center; justify-content:center; gap:.85rem; }.vca-equation article { width:6.6rem; height:6.6rem; display:grid; place-content:center; gap:.2rem; border:1px solid #0cd0dd; border-radius:50%; text-align:center; background:#06172c; }.vca-equation article b { color:#17dddf; font-size:1.5rem; }.vca-equation article small { color:#dce7f2; font-size:.5rem; }.vca-equation .vca { border-color:#167cff; }.vca-equation .vca b { color:#438cff; }.vca-equation .eye { border-color:#8867f5; }.vca-equation .eye b { color:#9b7aff; }.vca-equation>i { font-size:1.4rem; font-style:normal; }.vca-person { width:6.2rem; height:6.2rem; display:grid; place-items:center; filter:drop-shadow(0 0 12px rgba(40,201,242,.38)); }.vca-person img { width:100%; height:100%; display:block; object-fit:contain; }
.vca-benefits { display:grid; gap:.9rem; margin:0; padding:0; list-style:none; font-size:.69rem; font-weight:750; }.vca-benefits li::before { content:"◇"; margin-right:.65rem; color:#18c9f1; font-size:1.1rem; }
.vca-parent-note { position:absolute; right:0; bottom:.55rem; left:0; color:#768aa4; font-size:.56rem; text-align:center; }.vca-parent-note strong { color:#11d3da; }
.vca-partnership { width:min(calc(100% - 5rem),1160px); min-height:130px; display:grid; grid-template-columns:300px 1fr auto; align-items:center; gap:2rem; margin:0 auto; padding:1.2rem 0; }.vca-partnership h2 { color:#126fe6; font-size:1.2rem; }.vca-partnership p { margin-top:.55rem; color:#39475c; font-size:.62rem; line-height:1.55; }.vca-partnership ul { display:grid; grid-template-columns:repeat(6,1fr); gap:.6rem; margin:0; padding:0; list-style:none; }.vca-partnership li { display:grid; justify-items:center; gap:.3rem; color:#0d70ef; font-size:1.5rem; text-align:center; }.vca-partnership li span { color:#18263a; font-size:.53rem; font-weight:700; }.vca-partnership>a { min-width:13rem; }
.vca-footer { min-height:52px; display:grid; grid-template-columns:220px 1fr auto auto; align-items:center; gap:1.2rem; padding:0 max(calc((100% - 1160px)/2),2.5rem); color:#8999ad; background:#020b18; font-size:.58rem; }.vca-footer .vca-brand strong { font-size:1.6rem; }.vca-footer .vca-brand span { font-size:.48rem; }.vca-footer nav a { color:#c8d3df; }
.reference-tech-link { position:absolute; right:1rem; bottom:.8rem; color:#5c55df; font-size:.51rem; font-weight:850; }
.reference-tech-vca>small { right:6.5rem; }

@media (max-width:1000px) {
 .vca-header,.vca-hero-grid,.vca-explanation,.vca-applications,.vca-partnership { width:min(calc(100% - 2rem),1160px); }
 .vca-header { grid-template-columns:1fr auto; }.vca-header nav { display:none; }
 .vca-hero-grid { grid-template-columns:1fr 1fr; }.vca-explanation { grid-template-columns:1fr; }.vca-flow { min-height:0; }
 .vca-rw-ecosystem { grid-template-columns:1fr; padding-inline:2rem; text-align:center; }.vca-benefits { grid-template-columns:repeat(3,1fr); }.vca-parent-note { position:static; grid-column:1; }
 .vca-partnership { grid-template-columns:1fr; }.vca-partnership>a { width:max-content; }
 .vca-footer { grid-template-columns:1fr auto; padding:1rem; }.vca-footer p,.vca-footer small { display:none; }
}
@media (max-width:700px) {
 .vca-header { height:58px; }.vca-platform-entry { min-height:34px; padding:0 .8rem; font-size:.55rem; }.vca-brand strong { font-size:1.7rem; }
 .vca-hero-grid { height:auto; grid-template-columns:1fr; }.vca-hero-copy { padding-top:2rem; }.vca-hero-copy h1 em { font-size:3.3rem; }.vca-hero-actions { align-items:flex-start; flex-direction:column; }.vca-hero-visual { height:310px; }
 .vca-explanation { padding-block:2rem; }.vca-flow { grid-template-columns:1fr 1fr; gap:1rem; }.vca-flow>i { display:none; }
 .vca-application-grid { grid-template-columns:1fr; }
 .vca-equation { flex-wrap:wrap; }.vca-equation article { width:5rem; height:5rem; }.vca-person { width:100%; }
 .vca-benefits { grid-template-columns:1fr; text-align:left; }.vca-partnership ul { grid-template-columns:repeat(3,1fr); }.vca-partnership>a { width:100%; }
}

.clinical-view-switch{display:flex;flex-wrap:wrap;gap:.25rem;padding:.25rem;border:1px solid #bcd8d0;border-radius:.75rem;background:#f7fbf9}.clinical-view-switch a{padding:.45rem .6rem;border-radius:.55rem;color:var(--muted);text-decoration:none;font-size:.62rem;font-weight:850}.clinical-view-switch a.is-active{color:#fff;background:var(--brand-deep)}
@media(max-width:700px){.clinical-view-switch{width:100%}.clinical-view-switch a{flex:1;text-align:center}}
