:root {
    color-scheme: dark;
    --navy-950: #020711;
    --navy-900: #06101e;
    --navy-850: #09182a;
    --panel: rgba(8, 24, 43, 0.88);
    --panel-bright: rgba(12, 38, 66, 0.92);
    --line: rgba(82, 179, 255, 0.27);
    --line-bright: rgba(88, 202, 255, 0.72);
    --cyan: #42d8ff;
    --ice: #d8f4ff;
    --muted: #8ca8bc;
    --white: #f5fbff;
    --red: #fa4959;
    --green: #44e09a;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--navy-950);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--white);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 127, 210, 0.18), transparent 34rem),
        linear-gradient(180deg, #071425 0%, #020711 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(75, 171, 229, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(75, 171, 229, 0.12) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 12px clamp(20px, 4vw, 64px);
    border-bottom: 1px solid var(--line);
    background: rgba(3, 12, 23, 0.88);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--line-bright);
    border-radius: 50%;
    color: var(--cyan);
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow:
        inset 0 0 18px rgba(66, 216, 255, 0.16),
        0 0 22px rgba(66, 216, 255, 0.12);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 0.98rem;
    letter-spacing: 0.025em;
}

.brand small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.environment {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.environment-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

.landing-shell,
.workflow-shell {
    width: min(1480px, calc(100% - 40px));
    margin: 28px auto 60px;
}

.hero-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #020713;
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.48),
        0 0 55px rgba(0, 128, 210, 0.08);
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.hero-hitboxes {
    position: absolute;
    inset: 0;
}

.hero-hitbox {
    position: absolute;
    bottom: 6.5%;
    width: 21.7%;
    height: 22.5%;
    border: 1px solid transparent;
    border-radius: 14px;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.hero-hitbox:hover,
.hero-hitbox:focus-visible {
    border-color: var(--cyan);
    outline: none;
    background: rgba(50, 192, 255, 0.08);
    box-shadow:
        inset 0 0 34px rgba(66, 216, 255, 0.15),
        0 0 24px rgba(66, 216, 255, 0.28);
    transform: translateY(-3px);
}

.hitbox-one {
    left: 5.1%;
}

.hitbox-two {
    left: 28.2%;
}

.hitbox-three {
    left: 51.3%;
}

.hitbox-four {
    left: 74.4%;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 40px;
    align-items: end;
    margin: 58px 0 24px;
}

.kicker,
.workflow-eyebrow {
    color: var(--cyan);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.section-heading h1,
.workflow-banner h1 {
    margin: 8px 0 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.section-heading p,
.workflow-banner p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.workflow-card {
    position: relative;
    display: flex;
    min-height: 310px;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background:
        linear-gradient(145deg, rgba(16, 45, 76, 0.83), rgba(5, 17, 31, 0.94));
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.workflow-card::after {
    position: absolute;
    inset: auto -30% -55% 15%;
    height: 70%;
    content: "";
    background: radial-gradient(circle, rgba(40, 172, 255, 0.15), transparent 66%);
}

.workflow-card:hover {
    z-index: 2;
    border-color: var(--line-bright);
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.workflow-icon {
    position: absolute;
    top: 22px;
    right: 22px;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--line-bright);
    border-radius: 12px;
    color: var(--cyan);
    font-size: 1.6rem;
    box-shadow: inset 0 0 18px rgba(66, 216, 255, 0.12);
}

.workflow-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-top: 76px;
}

.workflow-card h2 {
    margin: 8px 0 12px;
    font-size: 1.35rem;
}

.workflow-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.91rem;
    line-height: 1.6;
}

.workflow-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.73rem;
}

.workflow-action strong {
    color: var(--cyan);
    letter-spacing: 0.1em;
}

.status-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(6, 20, 36, 0.86);
}

.status-strip div {
    padding: 20px 24px;
    border-right: 1px solid var(--line);
}

.status-strip div:last-child {
    border-right: 0;
}

.status-strip span,
.status-strip strong {
    display: block;
}

.status-strip span {
    color: var(--muted);
    font-size: 0.62rem;
    letter-spacing: 0.15em;
}

.status-strip strong {
    margin-top: 7px;
    font-size: 0.84rem;
}

.status-strip i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.workflow-shell {
    max-width: 1180px;
}

.back-link {
    display: inline-block;
    margin: 12px 0 28px;
    color: var(--cyan);
    font-size: 0.82rem;
    font-weight: 700;
}

.workflow-banner {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 30px;
    align-items: center;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 50%, rgba(33, 179, 255, 0.16), transparent 22rem),
        var(--panel);
}

.workflow-banner-icon {
    display: grid;
    width: 100px;
    height: 100px;
    place-items: center;
    border: 1px solid var(--line-bright);
    border-radius: 22px;
    color: var(--cyan);
    font-size: 3rem;
    box-shadow:
        inset 0 0 30px rgba(66, 216, 255, 0.13),
        0 0 26px rgba(66, 216, 255, 0.12);
}

.workflow-banner p {
    max-width: 760px;
    margin-top: 18px;
}

.workflow-stage-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 18px;
    margin-top: 18px;
}

.stage-card {
    position: relative;
    min-height: 320px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.stage-primary {
    background:
        linear-gradient(145deg, rgba(14, 43, 72, 0.9), rgba(5, 17, 31, 0.96));
}

.stage-number {
    position: absolute;
    top: 24px;
    right: 28px;
    color: rgba(104, 205, 255, 0.22);
    font-size: 4rem;
    font-weight: 900;
}

.stage-card h2 {
    margin: 12px 0;
    font-size: 1.7rem;
}

.stage-card p {
    color: var(--muted);
    line-height: 1.7;
}

.next-build {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    margin-top: 36px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(4, 15, 28, 0.7);
}

.next-build strong {
    color: var(--cyan);
}

.next-build span {
    color: var(--muted);
    line-height: 1.5;
}

dl {
    margin-top: 28px;
}

dl div {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

dt {
    color: var(--muted);
}

dd {
    margin: 0;
    font-weight: 700;
}

dd.ready {
    color: var(--green);
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px clamp(20px, 4vw, 64px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.72rem;
}

@media (max-width: 1000px) {
    .workflow-grid,
    .status-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-strip div:nth-child(2) {
        border-right: 0;
    }

    .status-strip div:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 760px) {
    .environment {
        display: none;
    }

    .landing-shell,
    .workflow-shell {
        width: min(100% - 22px, 1480px);
        margin-top: 12px;
    }

    .hero-frame {
        border-radius: 10px;
    }

    .section-heading,
    .workflow-stage-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        gap: 16px;
        margin-top: 38px;
    }

    .workflow-grid,
    .status-strip {
        grid-template-columns: 1fr;
    }

    .status-strip div,
    .status-strip div:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .status-strip div:last-child {
        border-bottom: 0;
    }

    .workflow-banner {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .workflow-banner-icon {
        width: 76px;
        height: 76px;
    }

    footer {
        flex-direction: column;
    }
}

/* BUILD 003 — Existing SCIF Intake */

.intake-shell,
.facility-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 28px auto 70px;
}

.intake-header,
.facility-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

.intake-header h1,
.facility-header h1 {
    margin: 8px 0 12px;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.intake-header p,
.facility-header p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.intake-progress,
.readiness-ring {
    display: grid;
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
    place-content: center;
    text-align: center;
    border: 1px solid var(--line-bright);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(37, 173, 255, 0.15), transparent 65%);
    box-shadow:
        inset 0 0 28px rgba(66, 216, 255, 0.13),
        0 0 26px rgba(66, 216, 255, 0.1);
}

.intake-progress strong,
.readiness-ring strong {
    color: var(--cyan);
    font-size: 1.5rem;
}

.intake-progress span,
.readiness-ring span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
}

.demo-warning {
    margin-bottom: 18px;
    padding: 16px 20px;
    border: 1px solid rgba(250, 192, 73, 0.38);
    border-radius: 12px;
    color: #dfc991;
    background: rgba(70, 48, 7, 0.28);
    font-size: 0.82rem;
    line-height: 1.6;
}

.demo-warning strong {
    margin-right: 10px;
    color: #ffce65;
    letter-spacing: 0.08em;
}

.intake-form {
    display: grid;
    gap: 16px;
}

.form-section {
    display: grid;
    grid-template-columns: 245px 1fr;
    gap: 34px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.form-section-heading {
    display: flex;
    gap: 16px;
}

.form-section-heading > span {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line-bright);
    border-radius: 10px;
    color: var(--cyan);
    font-weight: 800;
}

.form-section-heading h2 {
    margin: 0 0 7px;
    font-size: 1.06rem;
}

.form-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.field {
    display: grid;
    gap: 8px;
}

.field-wide {
    grid-column: 1 / -1;
}

.field > span {
    color: #a9c2d4;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 45px;
    padding: 11px 13px;
    border: 1px solid rgba(93, 163, 210, 0.3);
    border-radius: 9px;
    outline: none;
    color: var(--white);
    background: rgba(2, 12, 23, 0.88);
    font: inherit;
    font-size: 0.88rem;
}

.field textarea {
    min-height: 100px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(66, 216, 255, 0.1);
}

.form-submit-bar,
.facility-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    border: 1px solid var(--line-bright);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(11, 50, 82, 0.93), rgba(4, 19, 34, 0.96));
}

.form-submit-bar strong,
.form-submit-bar span {
    display: block;
}

.form-submit-bar span,
.facility-action-row > span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.76rem;
}

.form-submit-bar button,
.primary-action {
    padding: 15px 20px;
    border: 1px solid var(--cyan);
    border-radius: 9px;
    color: #00111e;
    background: var(--cyan);
    font-weight: 900;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.form-submit-bar button:hover,
.primary-action:hover {
    background: #8be8ff;
    box-shadow: 0 0 24px rgba(66, 216, 255, 0.25);
}

.facility-action-row {
    margin-bottom: 18px;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-panel {
    min-height: 330px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel);
}

.dashboard-panel h2 {
    margin: 9px 0 22px;
}

.facility-details div {
    gap: 30px;
}

.facility-details dt,
.facility-details dd {
    max-width: 50%;
    overflow-wrap: anywhere;
}

.facility-details dd {
    text-align: right;
}

.status-callout {
    display: grid;
    gap: 5px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.status-callout strong {
    font-size: 1.15rem;
}

.status-callout span {
    color: var(--muted);
    font-size: 0.8rem;
}

.status-good {
    border-color: rgba(68, 224, 154, 0.4);
    background: rgba(18, 97, 66, 0.18);
}

.status-warning {
    border-color: rgba(255, 196, 75, 0.42);
    background: rgba(99, 67, 8, 0.2);
}

.status-danger {
    border-color: rgba(250, 73, 89, 0.48);
    background: rgba(100, 20, 32, 0.2);
}

.status-neutral {
    background: rgba(58, 97, 126, 0.15);
}

.document-list,
.audit-list {
    display: grid;
    gap: 10px;
}

.document-row,
.audit-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(2, 13, 24, 0.65);
}

.document-row strong,
.document-row span,
.audit-row strong,
.audit-row span,
.audit-row small {
    display: block;
}

.document-row span,
.audit-row span,
.document-row small,
.audit-row small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.72rem;
}

.audit-row {
    justify-content: flex-start;
}

.audit-row i {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

.empty-state {
    padding: 38px 20px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 820px) {
    .intake-header,
    .facility-header {
        align-items: flex-start;
    }

    .intake-progress,
    .readiness-ring {
        width: 100px;
        height: 100px;
        flex-basis: 100px;
    }

    .form-section,
    .facility-grid {
        grid-template-columns: 1fr;
    }

    .form-section {
        gap: 24px;
    }
}

@media (max-width: 620px) {
    .intake-shell,
    .facility-shell {
        width: min(100% - 22px, 1180px);
    }

    .intake-header,
    .facility-header,
    .form-submit-bar,
    .facility-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .intake-progress,
    .readiness-ring {
        width: 100%;
        height: auto;
        padding: 18px;
        border-radius: 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-wide {
        grid-column: auto;
    }
}

/* BUILD 004 — Five-Year Revalidation */

.revalidation-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 28px auto 70px;
}

.revalidation-page-header,
.revalidation-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 28px;
}

.revalidation-page-header h1,
.revalidation-dashboard-header h1 {
    margin: 8px 0 12px;
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.revalidation-page-header p,
.revalidation-dashboard-header p {
    margin: 0;
    color: var(--muted);
}

.revalidation-symbol {
    display: grid;
    flex: 0 0 118px;
    width: 118px;
    height: 118px;
    place-items: center;
    border: 1px solid var(--line-bright);
    border-radius: 28px;
    color: var(--cyan);
    font-size: 4rem;
    background: rgba(15, 57, 91, 0.45);
    box-shadow:
        inset 0 0 28px rgba(66, 216, 255, 0.15),
        0 0 24px rgba(66, 216, 255, 0.12);
}

.baseline-import,
.revalidation-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(5, 20, 36, 0.92);
}

.baseline-import div,
.revalidation-metrics div {
    padding: 20px;
    border-right: 1px solid var(--line);
}

.baseline-import div:last-child,
.revalidation-metrics div:last-child {
    border-right: 0;
}

.baseline-import span,
.baseline-import strong,
.revalidation-metrics span,
.revalidation-metrics strong {
    display: block;
}

.baseline-import span,
.revalidation-metrics span {
    color: var(--muted);
    font-size: 0.63rem;
    letter-spacing: 0.13em;
}

.baseline-import strong,
.revalidation-metrics strong {
    margin-top: 7px;
    font-size: 0.9rem;
}

.facility-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
    margin-top: 24px;
}

.facility-selection-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background:
        linear-gradient(145deg, rgba(15, 44, 74, 0.88), rgba(4, 17, 31, 0.96));
}

.selection-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-score {
    display: grid;
    width: 47px;
    height: 47px;
    place-items: center;
    border: 1px solid var(--line-bright);
    border-radius: 50%;
    color: var(--cyan);
    font-size: 0.75rem;
    font-weight: 800;
}

.facility-selection-card h2 {
    margin: 18px 0;
}

.facility-selection-card dl {
    margin-bottom: 24px;
}

.facility-selection-card dl div {
    gap: 16px;
}

.facility-selection-card dd {
    text-align: right;
}

.full-action {
    display: block;
    text-align: center;
}

.ring-ready {
    border-color: var(--green);
    box-shadow:
        inset 0 0 28px rgba(68, 224, 154, 0.18),
        0 0 26px rgba(68, 224, 154, 0.16);
}

.ao-gate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 18px;
    padding: 22px 26px;
    border: 1px solid rgba(255, 194, 71, 0.38);
    border-radius: 13px;
    background: rgba(74, 49, 6, 0.22);
}

.ao-gate strong,
.ao-gate span {
    display: block;
}

.ao-gate strong {
    color: #ffd36f;
    letter-spacing: 0.05em;
}

.ao-gate span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.78rem;
}

.ao-ready {
    border-color: rgba(68, 224, 154, 0.48);
    background: rgba(15, 85, 57, 0.24);
}

.ao-ready strong {
    color: var(--green);
}

.ao-ready button {
    padding: 13px 18px;
    border: 1px solid var(--green);
    border-radius: 8px;
    color: #00180f;
    background: var(--green);
    font-weight: 900;
}

.revalidation-section {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel);
}

.compact-heading {
    margin: 0 0 22px;
}

.compact-heading h2 {
    margin: 7px 0 0;
    font-size: 1.8rem;
}

.matrix-list {
    display: grid;
    gap: 10px;
}

.matrix-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(3, 15, 28, 0.72);
}

.matrix-index {
    display: grid;
    place-items: center;
    border-right: 1px solid var(--line);
    color: var(--cyan);
    font-weight: 900;
    background: rgba(11, 43, 70, 0.7);
}

.matrix-content {
    padding: 18px;
}

.matrix-title {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.matrix-title h3 {
    margin: 0 0 5px;
}

.matrix-title p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.matrix-status {
    align-self: flex-start;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-complete {
    border-color: rgba(68, 224, 154, 0.42);
}

.status-complete .matrix-status {
    color: var(--green);
    border-color: rgba(68, 224, 154, 0.42);
}

.status-deficient {
    border-color: rgba(250, 73, 89, 0.5);
}

.status-deficient .matrix-status {
    color: #ff7b87;
    border-color: rgba(250, 73, 89, 0.5);
}

.status-in-progress .matrix-status {
    color: #ffd36f;
    border-color: rgba(255, 194, 71, 0.4);
}

.matrix-form {
    display: grid;
    grid-template-columns: 180px 1fr 90px;
    gap: 10px;
    margin-top: 16px;
}

.matrix-form select,
.matrix-form input,
.matrix-form button,
.finding-create-form input,
.finding-create-form select,
.finding-create-form textarea,
.finding-create-form button,
.finding-status-form select,
.finding-status-form button {
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid rgba(92, 165, 211, 0.3);
    border-radius: 8px;
    color: var(--white);
    background: rgba(2, 11, 21, 0.92);
    font: inherit;
    font-size: 0.78rem;
}

.matrix-form button,
.finding-create-form button,
.finding-status-form button {
    color: var(--cyan);
    border-color: var(--line-bright);
    font-weight: 900;
    cursor: pointer;
}

.revalidation-two-column {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
    margin-top: 18px;
}

.finding-list {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.finding-card {
    padding: 17px;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: 10px;
    background: rgba(3, 15, 28, 0.75);
}

.severity-critical,
.severity-high {
    border-left-color: var(--red);
}

.severity-moderate {
    border-left-color: #ffca56;
}

.severity-low {
    border-left-color: var(--cyan);
}

.finding-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.finding-header span {
    color: var(--muted);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
}

.finding-header h3 {
    margin: 4px 0 0;
}

.finding-header > strong {
    color: var(--cyan);
    font-size: 0.7rem;
}

.finding-card p,
.finding-card small {
    color: var(--muted);
    line-height: 1.5;
}

.finding-status-form {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 9px;
    margin-top: 14px;
}

.finding-create-form {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(2, 13, 24, 0.65);
}

.finding-create-form h3 {
    margin: 0 0 5px;
}

.finding-create-form > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.finding-create-form textarea {
    min-height: 82px;
    resize: vertical;
}

@media (max-width: 950px) {
    .facility-selection-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .baseline-import,
    .revalidation-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .baseline-import div:nth-child(2),
    .revalidation-metrics div:nth-child(2) {
        border-right: 0;
    }

    .baseline-import div:nth-child(-n+2),
    .revalidation-metrics div:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .revalidation-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .revalidation-shell {
        width: min(100% - 22px, 1240px);
    }

    .revalidation-page-header,
    .revalidation-dashboard-header,
    .ao-gate {
        align-items: stretch;
        flex-direction: column;
    }

    .revalidation-symbol {
        width: 80px;
        height: 80px;
        flex-basis: 80px;
        font-size: 2.6rem;
    }

    .facility-selection-grid,
    .baseline-import,
    .revalidation-metrics {
        grid-template-columns: 1fr;
    }

    .baseline-import div,
    .baseline-import div:nth-child(2),
    .revalidation-metrics div,
    .revalidation-metrics div:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .matrix-item {
        grid-template-columns: 1fr;
    }

    .matrix-index {
        min-height: 40px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .matrix-title {
        flex-direction: column;
    }

    .matrix-form {
        grid-template-columns: 1fr;
    }
}

/* BUILD 005 — New Accreditation */

.accreditation-audit {
    margin-top: 18px;
}

.accreditation-audit h2 {
    margin: 8px 0 22px;
}

.status-blocked {
    border-color: rgba(250, 73, 89, 0.52);
}

.status-blocked .matrix-status {
    color: #ff7b87;
    border-color: rgba(250, 73, 89, 0.52);
}

.status-not-applicable {
    opacity: 0.76;
}

/* BUILD 006 — Self Inspection */

.status-compliant {
    border-color: rgba(68, 224, 154, 0.42);
}

.status-compliant .matrix-status {
    color: var(--green);
    border-color: rgba(68, 224, 154, 0.42);
}

.status-observation .matrix-status {
    color: #ffd36f;
    border-color: rgba(255, 194, 71, 0.42);
}

.status-deficient {
    border-color: rgba(250, 73, 89, 0.52);
}

.status-deficient .matrix-status {
    color: #ff7b87;
    border-color: rgba(250, 73, 89, 0.52);
}

/* BUILD 007 — Accreditation Command Center */

.global-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    margin-right: 30px;
}

.global-nav a {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.global-nav a:hover {
    color: var(--cyan);
}

.facility-action-buttons {
    display: flex;
    gap: 12px;
}

.secondary-action {
    padding: 15px 20px;
    border: 1px solid var(--line-bright);
    border-radius: 9px;
    color: var(--cyan);
    font-weight: 900;
    letter-spacing: 0.05em;
}

.command-shell {
    width: min(1420px, calc(100% - 40px));
    margin: 38px auto 70px;
}

.command-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 30px;
}

.command-header h1 {
    margin: 8px 0 12px;
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.command-header p {
    margin: 0;
    color: var(--muted);
}

.agent-status {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 290px;
    padding: 17px 20px;
    border: 1px solid rgba(68, 224, 154, 0.4);
    border-radius: 12px;
    background: rgba(17, 81, 58, 0.22);
}

.agent-status i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px var(--green);
}

.agent-status strong,
.agent-status span {
    display: block;
}

.agent-status strong {
    color: var(--green);
    font-size: 0.71rem;
    letter-spacing: 0.08em;
}

.agent-status span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.69rem;
}

.command-metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.command-metrics article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background:
        linear-gradient(145deg, rgba(13, 42, 70, 0.9), rgba(4, 17, 30, 0.96));
}

.command-metrics span,
.command-metrics strong,
.command-metrics small {
    display: block;
}

.command-metrics span {
    color: var(--muted);
    font-size: 0.62rem;
    letter-spacing: 0.13em;
}

.command-metrics strong {
    margin: 8px 0;
    color: var(--cyan);
    font-size: 2rem;
}

.command-metrics small {
    color: var(--muted);
    font-size: 0.7rem;
}

.command-metrics .metric-alert {
    border-color: rgba(250, 73, 89, 0.45);
}

.command-metrics .metric-alert strong {
    color: #ff7b87;
}

.command-layout {
    display: grid;
    grid-template-columns: 1.65fr 0.75fr;
    gap: 18px;
}

.command-panel {
    padding: 27px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel);
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.panel-heading h2 {
    margin: 7px 0 0;
}

.panel-heading > span {
    color: var(--muted);
    font-size: 0.65rem;
    letter-spacing: 0.11em;
}

.recommendation-list,
.quick-action-list {
    display: grid;
    gap: 10px;
}

.recommendation {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 17px;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: 10px;
    background: rgba(2, 13, 24, 0.72);
}

.priority-critical {
    border-left-color: var(--red);
}

.priority-high {
    border-left-color: #ff9d56;
}

.priority-moderate {
    border-left-color: #ffd463;
}

.priority-low {
    border-left-color: var(--green);
}

.recommendation-priority {
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recommendation h3 {
    margin: 0 0 5px;
    font-size: 0.94rem;
}

.recommendation p {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
}

.recommendation a {
    color: var(--cyan);
    font-size: 0.68rem;
    font-weight: 900;
    white-space: nowrap;
}

.quick-action-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(2, 13, 24, 0.7);
}

.quick-action-list a:hover {
    border-color: var(--line-bright);
}

.quick-action-list a > span {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 1px solid var(--line-bright);
    border-radius: 9px;
    color: var(--cyan);
}

.quick-action-list strong,
.quick-action-list small {
    display: block;
}

.quick-action-list small {
    margin-top: 3px;
    color: var(--muted);
}

.portfolio-panel {
    margin-top: 18px;
}

.portfolio-table-wrap {
    overflow-x: auto;
}

.portfolio-table {
    width: 100%;
    border-collapse: collapse;
}

.portfolio-table th,
.portfolio-table td {
    padding: 15px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

.portfolio-table th {
    color: var(--muted);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
}

.portfolio-table td {
    color: #b9ccda;
    font-size: 0.78rem;
}

.portfolio-table td:last-child a {
    color: var(--cyan);
    font-weight: 900;
}

.table-score {
    color: var(--cyan);
    font-weight: 900;
}

.authority-banner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    padding: 19px 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(4, 18, 32, 0.9);
    font-size: 0.75rem;
}

.authority-banner strong {
    color: var(--cyan);
    letter-spacing: 0.08em;
}

@media (max-width: 1050px) {
    .command-metrics {
        grid-template-columns: repeat(3, 1fr);
    }

    .command-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .global-nav {
        display: none;
    }

    .command-shell {
        width: min(100% - 22px, 1420px);
    }

    .command-header,
    .authority-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .command-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .recommendation {
        grid-template-columns: 1fr;
    }

    .facility-action-buttons {
        flex-direction: column;
    }
}

/* BUILD 009 — Evidence and Document Management */

.evidence-shell {
    width: min(1480px, calc(100% - 40px));
    margin: 38px auto 70px;
}

.evidence-metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.evidence-metrics article {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(13, 42, 70, 0.9), rgba(4, 17, 30, 0.96));
}

.evidence-metrics span,
.evidence-metrics strong {
    display: block;
}

.evidence-metrics span {
    color: var(--muted);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
}

.evidence-metrics strong {
    margin-top: 8px;
    color: var(--cyan);
    font-size: 1.45rem;
}

.evidence-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 18px;
    align-items: start;
}

.evidence-upload-form {
    display: grid;
    gap: 16px;
}

.evidence-file-field {
    padding: 16px;
    border: 1px dashed var(--line-bright);
    border-radius: 10px;
    background: rgba(12, 48, 77, 0.25);
}

.evidence-upload-button {
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--cyan);
    border-radius: 9px;
    color: #00131e;
    background: var(--cyan);
    font-weight: 900;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.artifact-list {
    display: grid;
    gap: 13px;
}

.artifact-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: 11px;
    background: rgba(2, 13, 24, 0.76);
}

.review-pending-review {
    border-left-color: #ffd05b;
}

.review-accepted {
    border-left-color: var(--green);
}

.review-needs-revision {
    border-left-color: var(--red);
}

.review-superseded {
    border-left-color: #778796;
    opacity: 0.75;
}

.artifact-card-header {
    display: flex;
    justify-content: space-between;
    gap: 22px;
}

.artifact-card-header span,
.artifact-card-header small {
    color: var(--muted);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

.artifact-card-header h3 {
    margin: 5px 0;
}

.artifact-card-header > strong {
    align-self: flex-start;
    color: var(--cyan);
    font-size: 0.68rem;
    white-space: nowrap;
}

.artifact-card > p {
    color: var(--muted);
    font-size: 0.79rem;
    line-height: 1.55;
}

.artifact-metadata {
    display: grid;
    grid-template-columns: 1fr 0.6fr 0.8fr;
    gap: 12px;
    margin: 16px 0;
}

.artifact-metadata span {
    color: var(--muted);
    font-size: 0.59rem;
    letter-spacing: 0.08em;
}

.artifact-metadata strong {
    display: block;
    margin-top: 4px;
    color: var(--white);
    overflow-wrap: anywhere;
}

.hash-value {
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(0, 7, 14, 0.7);
}

.hash-value span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
}

.hash-value code {
    color: #86cbe8;
    font-size: 0.66rem;
    overflow-wrap: anywhere;
}

.artifact-actions {
    display: flex;
    gap: 18px;
    margin: 15px 0;
}

.artifact-actions a {
    color: var(--cyan);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.artifact-review-form {
    display: grid;
    grid-template-columns: 180px 1fr 120px;
    gap: 9px;
}

.artifact-review-form select,
.artifact-review-form input,
.artifact-review-form button {
    min-height: 39px;
    padding: 8px 10px;
    border: 1px solid rgba(92, 165, 211, 0.3);
    border-radius: 8px;
    color: var(--white);
    background: rgba(1, 9, 18, 0.94);
    font: inherit;
    font-size: 0.72rem;
}

.artifact-review-form button {
    color: var(--cyan);
    border-color: var(--line-bright);
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 1050px) {
    .evidence-metrics {
        grid-template-columns: repeat(3, 1fr);
    }

    .evidence-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .evidence-shell {
        width: min(100% - 22px, 1480px);
    }

    .evidence-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .artifact-metadata,
    .artifact-review-form {
        grid-template-columns: 1fr;
    }

    .artifact-card-header,
    .artifact-actions {
        flex-direction: column;
    }
}

/* BUILD 010-AIRGAP — Offline Assistant */

.assistant-shell {
    width: min(1480px, calc(100% - 40px));
    margin: 38px auto 70px;
}

.airgap-status {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 290px;
    padding: 17px 20px;
    border: 1px solid rgba(68, 224, 154, 0.46);
    border-radius: 12px;
    background: rgba(15, 82, 57, 0.24);
}

.airgap-status i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px var(--green);
}

.airgap-status strong,
.airgap-status span {
    display: block;
}

.airgap-status strong {
    color: var(--green);
    font-size: 0.72rem;
    letter-spacing: 0.09em;
}

.airgap-status span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.69rem;
}

.airgap-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 18px;
    border: 1px solid rgba(68, 224, 154, 0.35);
    border-radius: 12px;
    background: rgba(5, 38, 28, 0.36);
}

.airgap-banner div {
    padding: 17px 20px;
    border-right: 1px solid rgba(68, 224, 154, 0.22);
}

.airgap-banner div:last-child {
    border-right: 0;
}

.airgap-banner strong,
.airgap-banner span {
    display: block;
}

.airgap-banner strong {
    color: var(--muted);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
}

.airgap-banner span {
    margin-top: 6px;
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 900;
}

.assistant-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 18px;
    align-items: start;
}

.assistant-sidebar {
    position: sticky;
    top: 92px;
}

.assistant-sidebar h2 {
    margin: 7px 0 18px;
}

.assistant-context-form {
    display: grid;
    gap: 10px;
}

.assistant-context-form select,
.assistant-context-form button,
.assistant-question-form textarea,
.assistant-question-form button {
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--white);
    background: rgba(1, 10, 20, 0.94);
    font: inherit;
}

.assistant-context-form select {
    min-height: 46px;
    padding: 10px;
}

.assistant-context-form button {
    min-height: 42px;
    color: var(--cyan);
    border-color: var(--line-bright);
    font-weight: 900;
    cursor: pointer;
}

.assistant-scope {
    margin: 22px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    background: rgba(2, 13, 24, 0.68);
    font-size: 0.75rem;
}

.assistant-scope strong {
    color: var(--white);
}

.assistant-scope ul {
    margin: 12px 0 0;
    padding-left: 18px;
    line-height: 1.7;
}

.conversation-label {
    display: block;
    margin-bottom: 10px;
}

.conversation-list {
    display: grid;
    gap: 8px;
}

.conversation-list a {
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(2, 13, 24, 0.7);
}

.conversation-list strong,
.conversation-list span {
    display: block;
}

.conversation-list strong {
    overflow: hidden;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-list span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.62rem;
}

.assistant-workspace {
    min-height: 720px;
}

.assistant-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.assistant-identity h2 {
    margin: 5px 0 0;
}

.assistant-orb {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid var(--line-bright);
    border-radius: 50%;
    color: var(--cyan);
    font-weight: 900;
    box-shadow:
        inset 0 0 22px rgba(66, 216, 255, 0.15),
        0 0 22px rgba(66, 216, 255, 0.13);
}

.message-list {
    display: grid;
    gap: 16px;
    min-height: 360px;
    padding: 24px 0;
}

.message {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: start;
}

.message > div {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line-bright);
    border-radius: 10px;
    color: var(--cyan);
    font-size: 0.7rem;
    font-weight: 900;
}

.message section {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(2, 13, 24, 0.72);
}

.message-user section {
    background: rgba(11, 45, 74, 0.72);
}

.message section > span {
    color: var(--muted);
    font-size: 0.61rem;
    letter-spacing: 0.08em;
}

.message p {
    margin: 8px 0 0;
    color: #d4e4ee;
    line-height: 1.7;
    white-space: pre-wrap;
}

.assistant-starters {
    display: grid;
    gap: 10px;
    align-content: center;
    min-height: 330px;
}

.assistant-starters strong {
    margin-bottom: 6px;
    color: var(--muted);
}

.assistant-starters span {
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #b8d1df;
    background: rgba(2, 13, 24, 0.65);
}

.assistant-question-form {
    display: grid;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.assistant-question-form textarea {
    min-height: 125px;
    padding: 15px;
    resize: vertical;
}

.confirmation-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

.assistant-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.assistant-submit-row > span {
    color: var(--muted);
    font-size: 0.7rem;
}

.assistant-submit-row button {
    padding: 13px 18px;
    color: #00131e;
    border-color: var(--cyan);
    background: var(--cyan);
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 950px) {
    .airgap-banner {
        grid-template-columns: repeat(2, 1fr);
    }

    .assistant-layout {
        grid-template-columns: 1fr;
    }

    .assistant-sidebar {
        position: static;
    }
}

@media (max-width: 680px) {
    .assistant-shell {
        width: min(100% - 22px, 1480px);
    }

    .airgap-banner {
        grid-template-columns: 1fr;
    }

    .airgap-banner div {
        border-right: 0;
        border-bottom: 1px solid rgba(68, 224, 154, 0.22);
    }

    .assistant-submit-row {
        align-items: stretch;
        flex-direction: column;
    }
}

/* BUILD 010-AIRGAP-R1 — Sidebar boundary repair */

.assistant-layout {
    min-width: 0;
}

.assistant-sidebar {
    min-width: 0;
    overflow: hidden;
}

.assistant-context-form {
    width: 100%;
    min-width: 0;
}

.assistant-context-form select,
.assistant-context-form button {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.assistant-context-form select {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assistant-workspace {
    min-width: 0;
}

@media (max-width: 900px) {
    .assistant-sidebar {
        overflow: visible;
    }
}

/* BUILD 011 — Executive Report */

.executive-shell {
    width: min(1420px, calc(100% - 40px));
    margin: 38px auto 70px;
}

.executive-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.executive-header h1 {
    margin: 8px 0 12px;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.executive-header p {
    margin: 0;
    color: var(--muted);
}

.executive-export {
    padding: 15px 20px;
    border: 1px solid var(--cyan);
    border-radius: 9px;
    color: #00131e;
    background: var(--cyan);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.executive-score-row {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.executive-score {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background:
        radial-gradient(circle at 12% 50%, rgba(38, 178, 255, 0.16), transparent 17rem),
        var(--panel);
}

.executive-score h2 {
    margin: 8px 0;
    font-size: 1.8rem;
}

.executive-score p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.executive-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.executive-metrics article {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel);
}

.executive-metrics span,
.executive-metrics strong {
    display: block;
}

.executive-metrics span {
    color: var(--muted);
    font-size: 0.57rem;
    letter-spacing: 0.1em;
}

.executive-metrics strong {
    margin-top: 8px;
    color: var(--cyan);
    font-size: 1.5rem;
}

.executive-metrics .executive-alert {
    border-color: rgba(250, 73, 89, 0.46);
}

.executive-metrics .executive-alert strong {
    color: #ff7b87;
}

.executive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.executive-record-list {
    display: grid;
    gap: 9px;
}

.executive-record-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(2, 13, 24, 0.72);
}

.executive-record-list a:hover {
    border-color: var(--line-bright);
}

.executive-record-list strong,
.executive-record-list span {
    display: block;
}

.executive-record-list span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.7rem;
}

.executive-record-list b {
    color: var(--cyan);
    font-size: 1rem;
}

.executive-authority {
    margin-top: 18px;
}

@media (max-width: 980px) {
    .executive-score-row,
    .executive-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .executive-shell {
        width: min(100% - 22px, 1420px);
    }

    .executive-header,
    .executive-score {
        align-items: stretch;
        flex-direction: column;
    }

    .executive-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* BUILD 013 — SCIF Identifier Registry */

.scif-id-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 18px;
    padding: 24px 27px;
    border: 1px solid var(--line-bright);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(13, 58, 94, 0.94), rgba(4, 20, 35, 0.97));
}

.scif-id-panel strong,
.scif-id-panel small {
    display: block;
}

.scif-id-panel strong {
    margin-top: 7px;
    color: var(--cyan);
    font-size: 1.8rem;
    letter-spacing: 0.08em;
}

.scif-id-panel small {
    margin-top: 5px;
    color: var(--muted);
}

.immutable-badge {
    padding: 10px 13px;
    border: 1px solid rgba(68, 224, 154, 0.45);
    border-radius: 999px;
    color: var(--green);
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.09em;
}

.identifier-preview {
    display: grid;
    gap: 7px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(2, 13, 24, 0.72);
}

.identifier-preview span {
    color: var(--muted);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
}

.identifier-preview strong {
    color: var(--cyan);
    font-size: 1.3rem;
    letter-spacing: 0.1em;
}

.identifier-preview code {
    color: #c5d8e4;
}

.organization-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 38px auto 70px;
}

.organization-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 18px;
    align-items: start;
}

.organization-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.organization-form button {
    min-height: 45px;
    border: 1px solid var(--cyan);
    border-radius: 9px;
    color: #00131e;
    background: var(--cyan);
    font-weight: 900;
    cursor: pointer;
}

.organization-list {
    display: grid;
    gap: 10px;
}

.organization-list article {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 17px;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(2, 13, 24, 0.72);
}

.organization-list article > strong {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--line-bright);
    border-radius: 10px;
    color: var(--cyan);
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.organization-list h3 {
    margin: 0 0 5px;
}

.organization-list span {
    color: var(--muted);
    font-size: 0.7rem;
}

.organization-list b {
    color: var(--green);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

@media (max-width: 850px) {
    .organization-layout {
        grid-template-columns: 1fr;
    }

    .scif-id-panel {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .organization-shell {
        width: min(100% - 22px, 1180px);
    }
}

/* BUILD 014 — Controlled Geography */

.location-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 30px auto 70px;
}

.project-location-action {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

@media (max-width: 680px) {
    .location-shell {
        width: min(100% - 22px, 1180px);
    }

    .project-location-action {
        justify-content: stretch;
    }

    .project-location-action a {
        width: 100%;
        text-align: center;
    }
}

/* ==================================================================
   BUILD 015 — VIEW-ONLY COMMUNITY AND COOP DIRECTORY
   ================================================================== */

.directory-shell {
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 80px;
}

.directory-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 24px;
}

.directory-hero h1 {
    margin: 8px 0 10px;
    color: #f4f9ff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.directory-hero p {
    max-width: 760px;
    margin: 0;
    color: #8fa8bc;
    line-height: 1.6;
}

.view-only-seal {
    min-width: 150px;
    min-height: 150px;
    border: 1px solid rgba(54, 207, 255, 0.52);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #44d8ff;
    background:
        radial-gradient(
            circle,
            rgba(22, 171, 216, 0.13),
            rgba(2, 14, 28, 0.88)
        );
    box-shadow:
        0 0 34px rgba(29, 178, 225, 0.13),
        inset 0 0 24px rgba(29, 178, 225, 0.08);
    text-align: center;
}

.view-only-seal strong {
    font-size: 18px;
    letter-spacing: 0.08em;
}

.view-only-seal span {
    margin-top: 5px;
    color: #7896ac;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.directory-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 18px 0;
    border: 1px solid rgba(28, 198, 240, 0.28);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(4, 26, 42, 0.74);
}

.directory-trust-grid > div {
    padding: 17px 20px;
    border-right: 1px solid rgba(28, 198, 240, 0.22);
}

.directory-trust-grid > div:last-child {
    border-right: 0;
}

.directory-trust-grid span,
.directory-metrics span,
.directory-location span,
.directory-capacity-grid span {
    display: block;
    margin-bottom: 5px;
    color: #718da2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.directory-trust-grid strong {
    color: #69e8c3;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.directory-filter-panel {
    margin-top: 18px;
    padding: 28px;
    border: 1px solid rgba(36, 159, 210, 0.31);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(7, 35, 58, 0.97),
            rgba(4, 23, 40, 0.98)
        );
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.directory-filter-heading,
.directory-results-heading,
.directory-filter-actions,
.directory-card-top,
.directory-card-footer,
.directory-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.directory-filter-heading h2,
.directory-results-heading h2,
.directory-detail-card h2 {
    margin: 5px 0 0;
    color: #f3f8fd;
}

.directory-reset,
.directory-back-link {
    color: #48d7ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-decoration: none;
}

.directory-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.directory-search-field {
    grid-column: span 2;
}

.directory-filter-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(39, 125, 166, 0.25);
}

.directory-filter-actions span {
    color: #728da2;
    font-size: 12px;
}

.directory-filter-actions button {
    border: 0;
    border-radius: 8px;
    padding: 14px 22px;
    color: #002234;
    background: #48d7ff;
    font-weight: 900;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.directory-results-heading {
    margin: 36px 0 18px;
}

.directory-sort-note {
    color: #718ba0;
    font-size: 12px;
}

.directory-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.directory-card,
.directory-detail-card {
    border: 1px solid rgba(33, 143, 192, 0.3);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(7, 35, 58, 0.97),
            rgba(4, 22, 38, 0.98)
        );
}

.directory-card {
    padding: 24px;
}

.directory-identifier {
    color: #48d7ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.directory-card h3 {
    margin: 7px 0 4px;
    color: #f2f8fd;
    font-size: 21px;
}

.directory-card-top p {
    margin: 0;
    color: #8099ad;
    font-size: 13px;
}

.directory-view-badge {
    padding: 7px 9px;
    border: 1px solid rgba(77, 226, 190, 0.38);
    border-radius: 6px;
    color: #66e6c2;
    background: rgba(24, 151, 121, 0.09);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.directory-location {
    margin: 21px 0;
    padding: 17px;
    border: 1px solid rgba(40, 137, 180, 0.2);
    border-radius: 10px;
    background: rgba(1, 18, 32, 0.5);
}

.directory-location strong {
    display: block;
    color: #e9f5fc;
}

.directory-location small {
    display: block;
    margin-top: 5px;
    color: #7893a8;
}

.directory-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(41, 139, 181, 0.24);
    border-radius: 10px;
    overflow: hidden;
}

.directory-metrics > div {
    padding: 14px;
    border-right: 1px solid rgba(41, 139, 181, 0.2);
}

.directory-metrics > div:last-child {
    border-right: 0;
}

.directory-metrics strong {
    color: #f2f8fd;
    font-size: 14px;
}

.directory-status-row {
    margin: 17px 0;
}

.directory-status-row > span {
    color: #6f899e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.directory-status-row strong {
    margin-left: 7px;
    color: #dbeaf4;
}

.directory-card-footer {
    padding-top: 17px;
    border-top: 1px solid rgba(38, 126, 166, 0.24);
}

.directory-card-footer span {
    color: #748ea2;
    font-size: 11px;
}

.directory-card-footer a {
    color: #48d7ff;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.directory-empty {
    padding: 54px 24px;
    border: 1px dashed rgba(48, 159, 204, 0.35);
    border-radius: 14px;
    background: rgba(5, 27, 45, 0.72);
    text-align: center;
}

.directory-empty strong,
.directory-empty span {
    display: block;
}

.directory-empty strong {
    color: #eaf5fc;
    font-size: 18px;
}

.directory-empty span {
    margin-top: 7px;
    color: #748fa4;
}

.directory-back-link {
    display: inline-block;
    margin-bottom: 24px;
}

.directory-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.directory-detail-card {
    padding: 28px;
}

.directory-detail-list {
    margin: 22px 0 0;
}

.directory-detail-list > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(37, 124, 164, 0.2);
}

.directory-detail-list > div:last-child {
    border-bottom: 0;
}

.directory-detail-list dt {
    color: #7892a7;
}

.directory-detail-list dd {
    margin: 0;
    color: #edf6fb;
    font-weight: 700;
    text-align: right;
}

.directory-capacity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.directory-capacity-grid > div {
    padding: 20px;
    border: 1px solid rgba(52, 198, 224, 0.27);
    border-radius: 10px;
    background: rgba(4, 25, 42, 0.72);
}

.directory-capacity-grid strong {
    color: #50dfff;
    font-size: 22px;
}

.directory-notes {
    min-height: 120px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid rgba(38, 132, 173, 0.24);
    border-radius: 10px;
    color: #a8bdcc;
    background: rgba(2, 18, 31, 0.58);
    line-height: 1.65;
}

.directory-boundary {
    margin-top: 16px;
    padding: 13px;
    border-left: 3px solid #55dfbd;
    color: #86a2b5;
    background: rgba(28, 138, 111, 0.08);
    font-size: 12px;
}

@media (max-width: 980px) {
    .directory-filter-grid,
    .directory-card-grid,
    .directory-detail-grid {
        grid-template-columns: 1fr;
    }

    .directory-search-field {
        grid-column: span 1;
    }

    .directory-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .directory-trust-grid > div:nth-child(2) {
        border-right: 0;
    }

    .directory-trust-grid > div:nth-child(-n+2) {
        border-bottom: 1px solid rgba(28, 198, 240, 0.22);
    }
}

@media (max-width: 680px) {
    .directory-shell {
        width: min(100% - 28px, 1220px);
        padding-top: 30px;
    }

    .directory-hero,
    .directory-filter-heading,
    .directory-results-heading,
    .directory-filter-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .view-only-seal {
        min-width: 112px;
        min-height: 112px;
    }

    .directory-trust-grid,
    .directory-metrics,
    .directory-capacity-grid {
        grid-template-columns: 1fr;
    }

    .directory-trust-grid > div,
    .directory-metrics > div {
        border-right: 0;
        border-bottom: 1px solid rgba(28, 198, 240, 0.2);
    }

    .directory-trust-grid > div:last-child,
    .directory-metrics > div:last-child {
        border-bottom: 0;
    }
}

/* ==================================================================
   BUILD 016 — PROJECT ASSIGNMENT AND WORKFLOW VISIBILITY
   ================================================================== */

.project-command-panel {
    margin: 24px 0;
    padding: 26px;
    border: 1px solid rgba(44, 187, 231, 0.34);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(7, 37, 60, 0.98),
            rgba(4, 23, 40, 0.98)
        );
}

.project-command-heading,
.project-assignment-submit,
.project-board-hero,
.project-board-card-head,
.project-board-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.project-command-heading h2 {
    margin: 5px 0;
    color: #f3f8fd;
}

.project-command-heading p {
    max-width: 680px;
    margin: 0;
    color: #7893a8;
    line-height: 1.55;
}

.project-command-summary,
.project-contact-strip,
.project-board-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 22px;
    border: 1px solid rgba(42, 151, 196, 0.25);
    border-radius: 10px;
    overflow: hidden;
}

.project-command-summary > div,
.project-contact-strip > div,
.project-board-metrics > div {
    padding: 16px;
    border-right: 1px solid rgba(42, 151, 196, 0.22);
    background: rgba(2, 21, 36, 0.52);
}

.project-command-summary > div:last-child,
.project-contact-strip > div:last-child,
.project-board-metrics > div:last-child {
    border-right: 0;
}

.project-command-summary span,
.project-contact-strip span,
.project-board-grid span,
.project-next-action span,
.project-board-metrics span,
.project-stage-banner span {
    display: block;
    margin-bottom: 6px;
    color: #708ba0;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.project-command-summary strong,
.project-contact-strip strong {
    color: #e9f4fa;
    font-size: 13px;
}

.project-assignment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(40, 139, 181, 0.24);
}

.project-assignment-submit {
    padding-top: 5px;
}

.project-assignment-submit span {
    color: #708ba0;
    font-size: 11px;
}

.project-assignment-submit button {
    border: 0;
    border-radius: 8px;
    padding: 14px 20px;
    color: #002233;
    background: #4ad9ff;
    font-weight: 900;
    cursor: pointer;
}

.project-contact-strip {
    grid-template-columns: 1fr 2fr 1fr;
}

.assignment-history {
    margin-top: 24px;
}

.assignment-history-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(39, 128, 168, 0.22);
}

.assignment-history-row div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.assignment-history-row strong {
    color: #dcecf5;
}

.assignment-history-row span,
.assignment-history-row small {
    color: #718da2;
    font-size: 11px;
}

.project-board-shell {
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 80px;
}

.project-board-hero h1 {
    margin: 8px 0;
    color: #f5f9fd;
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: -0.045em;
}

.project-board-hero p {
    max-width: 760px;
    color: #88a1b4;
    line-height: 1.6;
}

.project-board-seal {
    min-width: 145px;
    min-height: 145px;
    border: 1px solid rgba(75, 217, 255, 0.45);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4bd9ff;
    background: rgba(4, 31, 50, 0.82);
    text-align: center;
}

.project-board-seal strong {
    letter-spacing: 0.09em;
}

.project-board-seal span {
    margin-top: 6px;
    color: #7691a5;
    font-size: 10px;
    text-transform: uppercase;
}

.project-board-metrics strong {
    color: #5ee4bf;
    font-size: 22px;
}

.project-board-list {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.project-board-card {
    padding: 24px;
    border: 1px solid rgba(40, 153, 201, 0.3);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(7, 35, 58, 0.98),
            rgba(4, 21, 37, 0.98)
        );
}

.project-board-id {
    color: #49d8ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.project-board-card h2 {
    margin: 6px 0 4px;
    color: #f2f8fc;
}

.project-board-card p {
    margin: 0;
    color: #7c95a8;
}

.project-assignment-badge {
    padding: 8px 11px;
    border: 1px solid rgba(83, 226, 190, 0.36);
    border-radius: 7px;
    color: #61e4bf;
    background: rgba(27, 145, 116, 0.1);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.project-stage-banner {
    margin: 20px 0;
    padding: 18px;
    border-left: 3px solid #46d8ff;
    background: rgba(4, 25, 42, 0.7);
}

.project-stage-banner strong,
.project-stage-banner small {
    display: block;
}

.project-stage-banner strong {
    color: #edf7fc;
    font-size: 17px;
}

.project-stage-banner small {
    margin-top: 5px;
    color: #7791a5;
}

.project-board-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(41, 139, 181, 0.23);
    border-radius: 10px;
    overflow: hidden;
}

.project-board-grid > div {
    padding: 15px;
    border-right: 1px solid rgba(41, 139, 181, 0.2);
    border-bottom: 1px solid rgba(41, 139, 181, 0.2);
}

.project-board-grid > div:nth-child(3n) {
    border-right: 0;
}

.project-board-grid > div:nth-last-child(-n+3) {
    border-bottom: 0;
}

.project-board-grid strong {
    color: #e9f4fa;
    font-size: 13px;
}

.project-next-action {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
    margin-top: 16px;
}

.project-next-action > div {
    padding: 16px;
    border: 1px solid rgba(40, 137, 180, 0.22);
    border-radius: 9px;
    background: rgba(2, 19, 33, 0.5);
}

.project-next-action strong {
    color: #dcecf5;
}

.project-board-footer {
    margin-top: 17px;
    padding-top: 16px;
    border-top: 1px solid rgba(40, 130, 170, 0.22);
}

.project-board-footer span {
    color: #718ca1;
    font-size: 11px;
}

.project-board-footer a {
    color: #49d8ff;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 900px) {
    .project-command-summary,
    .project-board-metrics,
    .project-board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-command-summary > div:nth-child(2),
    .project-board-metrics > div:nth-child(2) {
        border-right: 0;
    }

    .project-assignment-form,
    .project-next-action,
    .project-contact-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .project-board-shell {
        width: min(100% - 28px, 1220px);
        padding-top: 30px;
    }

    .project-board-hero,
    .project-command-heading,
    .project-assignment-submit,
    .project-board-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-command-summary,
    .project-board-metrics,
    .project-board-grid {
        grid-template-columns: 1fr;
    }

    .project-command-summary > div,
    .project-board-metrics > div,
    .project-board-grid > div {
        border-right: 0;
        border-bottom: 1px solid rgba(40, 137, 180, 0.2);
    }
}

/* ==================================================================
   BUILD 017 — CONTROLLED BASIC ADMINISTRATIVE UPDATES
   ================================================================== */

.admin-update-shell {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 80px;
}

.admin-update-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 22px 0;
}

.admin-update-hero h1 {
    margin: 7px 0;
    color: #f4f9fd;
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: -0.045em;
}

.admin-update-hero p {
    color: #839caf;
}

.admin-update-seal {
    min-width: 140px;
    min-height: 140px;
    border: 1px solid rgba(74, 216, 255, 0.48);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4bd9ff;
    background: rgba(4, 30, 49, 0.86);
    text-align: center;
}

.admin-update-seal strong {
    font-size: 20px;
    letter-spacing: 0.1em;
}

.admin-update-seal span {
    margin-top: 5px;
    color: #7993a7;
    font-size: 10px;
    text-transform: uppercase;
}

.admin-safe-boundary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.admin-safe-boundary > div {
    padding: 20px;
    border: 1px solid rgba(50, 171, 211, 0.28);
    border-radius: 11px;
    background: rgba(5, 31, 50, 0.74);
}

.admin-safe-boundary > div:last-child {
    border-color: rgba(238, 170, 62, 0.32);
    background: rgba(78, 53, 13, 0.16);
}

.admin-safe-boundary span {
    display: block;
    margin-bottom: 8px;
    color: #48d8ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.admin-safe-boundary > div:last-child span {
    color: #f1b94f;
}

.admin-safe-boundary strong {
    color: #adc0cd;
    font-size: 12px;
    line-height: 1.6;
}

.admin-update-form {
    display: grid;
    gap: 18px;
}

.admin-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 17px;
    border: 1px solid rgba(64, 208, 175, 0.3);
    border-radius: 9px;
    color: #a9bdca;
    background: rgba(22, 133, 105, 0.08);
    line-height: 1.55;
}

.admin-confirmation input {
    width: auto;
    margin-top: 4px;
}

.admin-material-warning {
    padding: 22px;
    border: 1px solid rgba(235, 169, 63, 0.38);
    border-radius: 12px;
    background: rgba(91, 61, 13, 0.18);
}

.admin-material-warning strong,
.admin-material-warning span {
    display: block;
}

.admin-material-warning strong {
    color: #f1bc54;
    letter-spacing: 0.07em;
}

.admin-material-warning span {
    margin: 8px 0 15px;
    color: #b2a485;
    line-height: 1.6;
}

.admin-material-warning a,
.admin-location-required a {
    color: #49d8ff;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.admin-location-required {
    padding: 26px;
    border: 1px dashed rgba(61, 185, 226, 0.34);
    border-radius: 11px;
    background: rgba(4, 28, 46, 0.65);
}

.admin-location-required strong,
.admin-location-required span {
    display: block;
}

.admin-location-required strong {
    color: #e9f5fb;
}

.admin-location-required span {
    margin: 7px 0 15px;
    color: #7e98aa;
}

.admin-history-panel {
    margin-top: 22px;
    padding: 26px;
    border: 1px solid rgba(42, 151, 196, 0.28);
    border-radius: 14px;
    background: rgba(5, 30, 49, 0.84);
}

.admin-history-panel h2 {
    color: #edf7fc;
}

.admin-history-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(38, 127, 167, 0.21);
}

.admin-history-row:last-child {
    border-bottom: 0;
}

.admin-history-row div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-history-row strong {
    color: #dfeef6;
}

.admin-history-row span,
.admin-history-row small {
    color: #758fa3;
    font-size: 11px;
}

@media (max-width: 760px) {
    .admin-update-shell {
        width: min(100% - 28px, 1100px);
        padding-top: 30px;
    }

    .admin-update-hero,
    .admin-safe-boundary {
        grid-template-columns: 1fr;
    }

    .admin-update-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==================================================================
   BUILD 017-R1 — INTERNAL FACILITY REGISTRY
   ================================================================== */

.facility-registry-shell {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 80px;
}

.facility-registry-header,
.facility-registry-card-head,
.facility-registry-card-actions,
.facility-registry-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.facility-registry-header h1 {
    margin: 7px 0;
    color: #f4f9fd;
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: -0.045em;
}

.facility-registry-header p {
    max-width: 720px;
    color: #8099ac;
    line-height: 1.6;
}

.facility-registry-count {
    min-width: 135px;
    min-height: 135px;
    border: 1px solid rgba(72, 215, 255, 0.45);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4ad9ff;
    background: rgba(5, 31, 51, 0.85);
}

.facility-registry-count strong {
    font-size: 32px;
}

.facility-registry-count span {
    color: #7590a4;
    font-size: 9px;
    letter-spacing: 0.13em;
}

.facility-registry-actions {
    justify-content: flex-start;
    margin: 20px 0;
}

.facility-registry-grid {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.facility-registry-card {
    padding: 25px;
    border: 1px solid rgba(39, 151, 198, 0.3);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(7, 35, 58, 0.98),
            rgba(4, 22, 38, 0.98)
        );
}

.facility-registry-card-head > div > span {
    color: #49d8ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.facility-registry-card h2 {
    margin: 6px 0 4px;
    color: #f1f8fc;
}

.facility-registry-card p {
    margin: 0;
    color: #7d96a9;
}

.facility-registry-readiness {
    color: #55e0bc;
    font-size: 27px;
}

.facility-registry-details {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 21px 0;
    border: 1px solid rgba(38, 134, 176, 0.24);
    border-radius: 10px;
    overflow: hidden;
}

.facility-registry-details > div {
    padding: 15px;
    border-right: 1px solid rgba(38, 134, 176, 0.21);
}

.facility-registry-details > div:last-child {
    border-right: 0;
}

.facility-registry-details span,
.facility-registry-coordination span {
    display: block;
    margin-bottom: 6px;
    color: #708ba0;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.facility-registry-details strong {
    color: #e8f3f9;
    font-size: 12px;
}

.facility-registry-coordination {
    padding: 16px;
    border-left: 3px solid #4ad9ff;
    background: rgba(3, 24, 40, 0.65);
}

.facility-registry-coordination strong,
.facility-registry-coordination small {
    display: block;
}

.facility-registry-coordination strong {
    color: #e7f2f8;
}

.facility-registry-coordination small {
    margin-top: 4px;
    color: #7690a4;
}

.facility-registry-card-actions {
    justify-content: flex-start;
    margin-top: 18px;
}

@media (max-width: 900px) {
    .facility-registry-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facility-registry-details > div {
        border-bottom: 1px solid rgba(38, 134, 176, 0.21);
    }
}

@media (max-width: 640px) {
    .facility-registry-shell {
        width: min(100% - 28px, 1200px);
        padding-top: 30px;
    }

    .facility-registry-header,
    .facility-registry-card-head,
    .facility-registry-card-actions,
    .facility-registry-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .facility-registry-details {
        grid-template-columns: 1fr;
    }
}

/* ==================================================================
   BUILD 018 — SSO CHIEF PILOT TESTING CENTER
   ================================================================== */

.pilot-shell {
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 80px;
}

.pilot-hero,
.pilot-section-heading,
.pilot-toolbar,
.pilot-form-submit,
.pilot-scenario-title,
.pilot-latest-result,
.pilot-issue-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.pilot-hero h1 {
    margin: 7px 0;
    color: #f4f9fd;
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: -0.045em;
}

.pilot-hero p {
    max-width: 760px;
    color: #819aada;
    color: #819aad;
    line-height: 1.6;
}

.pilot-readiness-ring {
    min-width: 145px;
    min-height: 145px;
    border: 1px solid rgba(72, 215, 255, 0.48);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4bd9ff;
    background: rgba(5, 31, 51, 0.86);
}

.pilot-readiness-ring strong {
    font-size: 28px;
}

.pilot-readiness-ring span {
    color: #7792a6;
    font-size: 9px;
    letter-spacing: 0.13em;
}

.pilot-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 18px 0;
    border: 1px solid rgba(42, 153, 198, 0.28);
    border-radius: 11px;
    overflow: hidden;
}

.pilot-metrics > div {
    padding: 17px;
    border-right: 1px solid rgba(42, 153, 198, 0.22);
    background: rgba(5, 31, 50, 0.76);
}

.pilot-metrics > div:last-child {
    border-right: 0;
}

.pilot-metrics span {
    display: block;
    color: #718ca1;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.pilot-metrics strong {
    display: block;
    margin-top: 6px;
    color: #58e1bd;
    font-size: 23px;
}

.pilot-toolbar {
    margin-bottom: 18px;
    justify-content: flex-start;
}

.pilot-toolbar span {
    color: #758fa3;
    font-size: 11px;
}

.pilot-panel {
    margin-top: 18px;
    padding: 26px;
    border: 1px solid rgba(40, 151, 198, 0.29);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(7, 35, 58, 0.98),
            rgba(4, 22, 38, 0.98)
        );
}

.pilot-panel h2 {
    margin: 5px 0;
    color: #eff7fb;
}

.pilot-section-heading p {
    max-width: 480px;
    color: #7892a6;
    font-size: 12px;
    line-height: 1.55;
}

.pilot-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(38, 132, 173, 0.24);
}

.pilot-form-submit {
    justify-content: flex-end;
}

.pilot-form-submit button,
.pilot-issue-form button {
    border: 0;
    border-radius: 8px;
    padding: 13px 19px;
    color: #002232;
    background: #4ad9ff;
    font-weight: 900;
    cursor: pointer;
}

.pilot-participant-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.pilot-participant-grid > div {
    padding: 15px;
    border: 1px solid rgba(44, 150, 191, 0.23);
    border-radius: 9px;
    background: rgba(3, 23, 39, 0.63);
}

.pilot-participant-grid strong,
.pilot-participant-grid span {
    display: block;
}

.pilot-participant-grid strong {
    color: #e5f1f7;
}

.pilot-participant-grid span {
    margin-top: 4px;
    color: #7791a4;
    font-size: 11px;
}

.pilot-scenario-list,
.pilot-issue-list {
    display: grid;
    gap: 13px;
    margin-top: 22px;
}

.pilot-scenario {
    display: grid;
    grid-template-columns: 100px 1fr;
    border: 1px solid rgba(40, 143, 185, 0.24);
    border-radius: 11px;
    overflow: hidden;
    background: rgba(3, 23, 39, 0.58);
}

.pilot-scenario-code {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #4bd9ff;
    background: rgba(8, 57, 83, 0.58);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.pilot-scenario-body {
    padding: 18px;
}

.pilot-scenario-title span {
    color: #4bd9ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.pilot-scenario-title h3 {
    margin: 5px 0;
    color: #ecf5fa;
}

.pilot-scenario-title > strong {
    color: #9cb1c0;
    font-size: 11px;
    text-transform: uppercase;
}

.pilot-scenario.status-pass {
    border-color: rgba(75, 220, 182, 0.38);
}

.pilot-scenario.status-pass .pilot-scenario-title > strong {
    color: #58e0bd;
}

.pilot-scenario.status-fail {
    border-color: rgba(240, 91, 91, 0.42);
}

.pilot-scenario.status-fail .pilot-scenario-title > strong {
    color: #ff8484;
}

.pilot-scenario.status-blocked {
    border-color: rgba(238, 176, 65, 0.42);
}

.pilot-scenario.status-blocked .pilot-scenario-title > strong {
    color: #efbc59;
}

.pilot-scenario-body p {
    color: #8aa2b3;
    line-height: 1.55;
}

.pilot-scenario-body small {
    color: #6f899c;
}

.pilot-latest-result {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(39, 130, 168, 0.21);
    color: #7690a4;
    font-size: 10px;
}

.pilot-latest-result strong {
    color: #c5d5df;
}

.pilot-issue {
    padding: 20px;
    border: 1px solid rgba(235, 170, 68, 0.3);
    border-radius: 11px;
    background: rgba(69, 47, 13, 0.12);
}

.pilot-issue-head span {
    color: #ecb953;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.pilot-issue-head h3 {
    margin: 5px 0;
    color: #eef6fa;
}

.pilot-issue-head > strong {
    color: #edbd61;
    font-size: 11px;
}

.pilot-issue > p {
    color: #96aab8;
    line-height: 1.55;
}

.pilot-issue-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid rgba(188, 133, 45, 0.23);
}

@media (max-width: 900px) {
    .pilot-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pilot-participant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pilot-issue-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .pilot-shell {
        width: min(100% - 28px, 1220px);
        padding-top: 30px;
    }

    .pilot-hero,
    .pilot-section-heading,
    .pilot-toolbar,
    .pilot-scenario-title,
    .pilot-issue-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pilot-metrics,
    .pilot-form,
    .pilot-participant-grid {
        grid-template-columns: 1fr;
    }

    .pilot-scenario {
        grid-template-columns: 1fr;
    }
}

/* BUILD 019-SI — Self-inspection human review */
.si-review-launch{margin:18px 0;padding:22px 26px;border:1px solid rgba(53,203,255,.34);border-radius:14px;background:linear-gradient(110deg,rgba(5,39,66,.94),rgba(3,24,43,.94));display:flex;align-items:center;justify-content:space-between;gap:24px}.si-review-launch h2{margin:4px 0 6px}.si-review-launch p{margin:0;color:#8ea9bd}.si-review-launch a,.si-review-form button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border:1px solid #39d1ff;border-radius:8px;background:#40cff5;color:#001827;font-weight:900;letter-spacing:.04em;text-decoration:none;cursor:pointer}.si-review-launch-ready{box-shadow:inset 3px 0 #38e6a4}.si-review-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;margin-top:18px}.si-review-badge{min-width:190px;padding:18px;border:1px solid rgba(53,203,255,.4);border-radius:14px;text-align:center;background:rgba(3,27,47,.92)}.si-review-badge span{display:block;color:#79a0b8;font-size:.72rem;letter-spacing:.16em}.si-review-badge strong{display:block;margin-top:7px;color:#45d8ff;font-size:1.15rem}.si-review-badge.status-approved,.si-review-badge.status-completed{border-color:rgba(55,232,165,.55)}.si-review-badge.status-approved strong,.si-review-badge.status-completed strong{color:#39e8a5}.si-review-form{display:grid;gap:14px;margin-top:20px}.si-review-form label{display:grid;gap:7px}.si-review-form label>span{color:#9cb6c8;font-size:.78rem;font-weight:700;letter-spacing:.05em}.si-review-form input,.si-review-form textarea{width:100%;box-sizing:border-box;border:1px solid rgba(70,167,214,.34);border-radius:8px;background:#001522;color:#eaf7ff;padding:13px}.si-review-form textarea{min-height:110px;resize:vertical}.si-review-form button:disabled{opacity:.38;cursor:not-allowed}.si-decision-buttons{display:flex;gap:10px;flex-wrap:wrap}.si-review-form .button-return{background:transparent;color:#ffbe55;border-color:#ffbe55}.si-certification{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start}.si-certification input{width:auto;margin-top:3px}.si-return-comments{display:grid;gap:5px;margin-top:14px;padding:14px;border-left:3px solid #ffbe55;background:rgba(255,175,45,.08)}.si-complete-panel{display:grid;gap:8px;margin-top:18px;padding:18px;border:1px solid rgba(55,232,165,.45);border-radius:10px;background:rgba(25,118,86,.15);color:#39e8a5}@media(max-width:900px){.si-review-grid{grid-template-columns:1fr}.si-review-launch{align-items:flex-start;flex-direction:column}.si-review-badge{width:100%;box-sizing:border-box}}

/* BUILD 020-WF */

.wf-governance-launch {
    max-width: 1080px;
    margin: 18px auto;
    padding: 20px 24px;
    box-sizing: border-box;
    border: 1px solid rgba(54, 207, 255, 0.42);
    border-radius: 13px;
    background:
        linear-gradient(
            110deg,
            rgba(5, 45, 73, 0.96),
            rgba(3, 24, 43, 0.96)
        );
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.wf-governance-launch h2 {
    margin: 4px 0;
}

.wf-governance-launch a,
.wf-download,
.wf-gov-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 20px;
    border: 1px solid #3bd2fa;
    border-radius: 8px;
    background: #40cef3;
    color: #001a28;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
}

.wf-gov-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 18px;
    margin-top: 18px;
}

.wf-gov-badge {
    min-width: 185px;
    padding: 18px;
    border: 1px solid rgba(56, 207, 255, 0.45);
    border-radius: 14px;
    background: rgba(2, 28, 48, 0.94);
    text-align: center;
}

.wf-gov-badge span {
    display: block;
    color: #85a9bb;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
}

.wf-gov-badge strong {
    display: block;
    margin-top: 7px;
    color: #3bd7ff;
}

.wf-gov-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.wf-gov-form label {
    display: grid;
    gap: 7px;
}

.wf-gov-form label span {
    color: #9eb8c8;
    font-size: 0.8rem;
    font-weight: 700;
}

.wf-gov-form input,
.wf-gov-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 13px;
    border: 1px solid rgba(75, 172, 217, 0.36);
    border-radius: 8px;
    background: #001521;
    color: #edfaff;
}

.wf-gov-form textarea {
    min-height: 105px;
}

.wf-gov-form button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.wf-gov-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wf-gov-form .wf-return-button {
    background: transparent;
    color: #ffc15b;
    border-color: #ffc15b;
}

.wf-check {
    display: flex !important;
    grid-template-columns: auto 1fr !important;
    align-items: flex-start;
}

.wf-check input {
    width: auto;
    margin-top: 3px;
}

.wf-return {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-left: 3px solid #ffc15b;
    background: rgba(255, 190, 70, 0.08);
}

.wf-complete {
    display: grid;
    gap: 7px;
    margin: 16px 0;
    padding: 17px;
    border: 1px solid rgba(53, 231, 165, 0.46);
    border-radius: 9px;
    background: rgba(27, 121, 88, 0.15);
    color: #3ce8a7;
}

.wf-download {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .wf-gov-grid {
        grid-template-columns: 1fr;
    }

    .wf-governance-launch {
        align-items: flex-start;
        flex-direction: column;
    }

    .wf-gov-badge {
        width: 100%;
        box-sizing: border-box;
    }
}

/* BUILD 021-WVR */

.waiver-shell {
    max-width: 1180px;
}

.waiver-filter {
    display: grid;
    grid-template-columns: 1fr 220px auto;
    gap: 10px;
    margin: 18px 0;
}

.waiver-filter input,
.waiver-filter select,
.waiver-filter button,
.waiver-form input,
.waiver-form select,
.waiver-form textarea,
.wf-gov-form select {
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid rgba(65, 183, 230, 0.35);
    border-radius: 8px;
    background: #001522;
    color: #ecfaff;
}

.waiver-filter button {
    color: #3bd7ff;
    font-weight: 800;
}

.waiver-list {
    display: grid;
    gap: 12px;
}

.waiver-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border: 1px solid rgba(62, 176, 224, 0.3);
    border-radius: 12px;
    background: rgba(5, 34, 56, 0.94);
    color: #eefaff;
    text-decoration: none;
}

.waiver-card:hover {
    border-color: #3bd7ff;
}

.waiver-card span,
.waiver-card small {
    display: block;
    color: #7ea7bb;
}

.waiver-card h2 {
    margin: 6px 0;
}

.waiver-card > div:last-child {
    text-align: right;
}

.waiver-card > div:last-child strong {
    display: block;
    color: #3ce7a5;
}

.waiver-form {
    display: grid;
    gap: 18px;
}

.waiver-form textarea {
    min-height: 110px;
}

.waiver-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 16px 0;
    border: 1px solid rgba(60, 180, 227, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.waiver-summary > div {
    padding: 15px;
    border-right: 1px solid rgba(60, 180, 227, 0.2);
}

.waiver-summary > div:last-child {
    border: 0;
}

.waiver-summary span {
    display: block;
    color: #729bb0;
    font-size: 0.7rem;
    letter-spacing: 0.13em;
}

.waiver-summary strong {
    display: block;
    margin-top: 6px;
}

.waiver-narrative {
    display: grid;
    gap: 7px;
}

.waiver-narrative strong {
    color: #3bd7ff;
}

.waiver-narrative p {
    margin: 0 0 13px;
    color: #a5bdca;
    white-space: pre-wrap;
}

.waiver-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.waiver-secondary {
    margin-top: 20px;
    padding: 14px;
    border: 1px solid rgba(255, 187, 72, 0.28);
    border-radius: 9px;
}

.waiver-secondary summary {
    cursor: pointer;
    color: #ffc15b;
    font-weight: 800;
}

.waiver-document {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px;
    margin: 10px 0;
    padding: 13px;
    border: 1px solid rgba(65, 183, 230, 0.25);
    border-radius: 8px;
    color: #dff7ff;
    text-decoration: none;
}

.waiver-document strong {
    color: #3bd7ff;
}

.waiver-document small {
    grid-column: 1 / -1;
    color: #789caf;
}

@media (max-width: 900px) {
    .waiver-filter {
        grid-template-columns: 1fr;
    }

    .waiver-summary {
        grid-template-columns: 1fr 1fr;
    }

    .waiver-card {
        flex-direction: column;
    }

    .waiver-card > div:last-child {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .waiver-summary,
    .waiver-date-row {
        grid-template-columns: 1fr;
    }
}

/* BUILD 021-SI-R1 */

.inspection-card-approved {
    border-color: rgba(55, 231, 164, 0.48);
    box-shadow:
        inset 0 3px 0 rgba(55, 231, 164, 0.72);
}

.inspection-approval-summary {
    margin: 16px 0;
    padding: 15px;
    border: 1px solid rgba(55, 231, 164, 0.38);
    border-radius: 10px;
    background: rgba(21, 113, 80, 0.14);
}

.inspection-approved-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

.inspection-approved-heading > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #3de6a7;
    border-radius: 50%;
    color: #3de6a7;
    font-weight: 900;
}

.inspection-approved-heading strong {
    display: block;
    color: #3de6a7;
    letter-spacing: 0.05em;
}

.inspection-approved-heading small {
    display: block;
    margin-top: 3px;
    color: #91b3a7;
}

.inspection-approval-summary dl {
    margin: 0;
}

.inspection-approval-summary dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid rgba(55, 231, 164, 0.15);
}

.inspection-approval-summary dt {
    color: #82a99c;
}

.inspection-approval-summary dd {
    margin: 0;
    color: #e9fff7;
    text-align: right;
}

.inspection-card-actions {
    display: grid;
    gap: 9px;
}

.inspection-card-actions .secondary-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid rgba(57, 209, 255, 0.64);
    border-radius: 8px;
    color: #42d7ff;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.inspection-card-actions .secondary-action:hover {
    border-color: #42d7ff;
    background: rgba(45, 181, 225, 0.1);
}

.inspection-progress-summary,
.inspection-empty-summary {
    margin: 15px 0;
    padding: 13px;
    border: 1px solid rgba(66, 189, 235, 0.25);
    border-radius: 8px;
    background: rgba(3, 29, 48, 0.7);
    color: #91aec0;
}

.inspection-progress-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
}

.inspection-progress-summary span {
    color: #40d5ff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.inspection-progress-summary strong {
    color: #40d5ff;
}

.inspection-progress-summary small {
    grid-column: 1 / -1;
}

/* ==================================================================
   BUILD 021-RDY-R1 — TRANSPARENT BASELINE READINESS
   ================================================================== */

.baseline-readiness-panel {
    margin: 22px 0;
    padding: 26px;
    border: 1px solid rgba(50, 204, 255, 0.28);
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            rgba(8, 39, 67, 0.96),
            rgba(3, 21, 39, 0.96)
        );
}

.baseline-readiness-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 22px;
}

.baseline-readiness-heading h2 {
    margin: 7px 0 8px;
}

.baseline-readiness-heading p,
.readiness-boundary {
    color: #8da9bd;
}

.readiness-score-summary {
    min-width: 190px;
    padding: 18px;
    border: 1px solid rgba(50, 204, 255, 0.3);
    border-radius: 12px;
    text-align: center;
    background: rgba(1, 18, 32, 0.7);
}

.readiness-score-summary strong {
    display: block;
    color: #42d5ff;
    font-size: 2rem;
}

.readiness-score-summary span {
    color: #8da9bd;
    font-size: 0.76rem;
}

.readiness-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(50, 204, 255, 0.18);
    border-radius: 11px;
    overflow: hidden;
}

.readiness-summary-grid div {
    padding: 15px;
    border-right: 1px solid rgba(50, 204, 255, 0.18);
}

.readiness-summary-grid div:last-child {
    border-right: 0;
}

.readiness-summary-grid span,
.readiness-summary-grid strong {
    display: block;
}

.readiness-summary-grid span {
    color: #7796ac;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.readiness-summary-grid strong {
    margin-top: 5px;
    color: #edfaff;
    font-size: 1.15rem;
}

.readiness-missing-fields {
    margin-top: 18px;
    padding: 17px;
    border: 1px solid rgba(255, 187, 64, 0.32);
    border-radius: 10px;
    background: rgba(88, 57, 8, 0.18);
}

.readiness-missing-fields ul {
    color: #d7e8f2;
}

.readiness-missing-fields a {
    color: #42d5ff;
    font-weight: 800;
    text-decoration: none;
}

.document-requirement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-top: 18px;
}

.document-requirement {
    display: flex;
    gap: 13px;
    padding: 17px;
    border: 1px solid rgba(50, 204, 255, 0.2);
    border-radius: 11px;
    background: rgba(1, 18, 32, 0.68);
}

.document-requirement-complete {
    border-color: rgba(43, 220, 153, 0.38);
    background: rgba(18, 82, 62, 0.18);
}

.document-requirement-missing {
    border-color: rgba(255, 187, 64, 0.32);
}

.document-requirement-status {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 1px solid #36cffb;
    border-radius: 50%;
    color: #36cffb;
    font-weight: 900;
}

.document-requirement-complete .document-requirement-status {
    border-color: #2bdc99;
    color: #2bdc99;
}

.document-requirement span {
    color: #42d5ff;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.document-requirement h3 {
    margin: 5px 0 7px;
    color: #f0f9ff;
    font-size: 1rem;
}

.document-requirement p {
    color: #8da9bd;
    font-size: 0.78rem;
    line-height: 1.45;
}

.readiness-document-links {
    margin-top: 10px;
}

.readiness-document-links a {
    display: block;
    margin-top: 5px;
    color: #42d5ff;
    font-size: 0.7rem;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.baseline-upload-form {
    margin-top: 18px;
    padding: 19px;
    border: 1px solid rgba(50, 204, 255, 0.24);
    border-radius: 11px;
    background: rgba(0, 13, 25, 0.54);
}

.baseline-upload-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 15px;
}

.baseline-upload-heading h3 {
    margin: 5px 0 0;
}

.baseline-upload-heading > span {
    color: #7796ac;
    font-size: 0.72rem;
}

.baseline-upload-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.3fr auto;
    align-items: end;
    gap: 12px;
}

.baseline-upload-grid label span {
    display: block;
    margin-bottom: 6px;
    color: #94adbe;
    font-size: 0.72rem;
    font-weight: 800;
}

.baseline-upload-grid input,
.baseline-upload-grid select {
    width: 100%;
    min-height: 43px;
    padding: 9px 11px;
    box-sizing: border-box;
    border: 1px solid rgba(50, 204, 255, 0.25);
    border-radius: 7px;
    color: #effbff;
    background: #031421;
}

.baseline-upload-grid button {
    min-height: 43px;
    padding: 0 18px;
    border: 0;
    border-radius: 7px;
    color: #00121d;
    background: #42d5ff;
    font-weight: 900;
    cursor: pointer;
}

.baseline-complete-callout {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    padding: 17px;
    border: 1px solid rgba(43, 220, 153, 0.42);
    border-radius: 10px;
    color: #2bdc99;
    background: rgba(18, 82, 62, 0.2);
}

.baseline-complete-callout span {
    color: #b4d8ca;
}

.readiness-boundary {
    margin: 17px 0 0;
    font-size: 0.72rem;
}

@media (max-width: 1050px) {
    .readiness-summary-grid,
    .document-requirement-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .baseline-upload-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .baseline-readiness-heading,
    .baseline-upload-heading {
        display: block;
    }

    .readiness-score-summary {
        margin-top: 16px;
    }

    .readiness-summary-grid,
    .document-requirement-grid,
    .baseline-upload-grid {
        grid-template-columns: 1fr;
    }

    .readiness-summary-grid div {
        border-right: 0;
        border-bottom: 1px solid rgba(50, 204, 255, 0.18);
    }
}

/* ==================================================================
   BUILD 021-SI-R2 — SELF-INSPECTION BASELINE ELIGIBILITY
   ================================================================== */

.si-baseline-gate {
    margin: 22px 0;
    padding: 23px;
    border: 1px solid rgba(255, 187, 64, 0.38);
    border-radius: 14px;
    background: rgba(70, 45, 7, 0.2);
}

.si-baseline-gate-ready {
    border-color: rgba(43, 220, 153, 0.42);
    background: rgba(18, 82, 62, 0.2);
}

.si-baseline-gate-override {
    border-color: rgba(72, 197, 255, 0.42);
    background: rgba(10, 62, 88, 0.22);
}

.si-baseline-gate-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
}

.si-baseline-gate-heading h2 {
    margin: 7px 0;
}

.si-baseline-gate-heading p,
.si-baseline-boundary {
    color: #91aabe;
}

.si-baseline-score {
    min-width: 150px;
    padding: 16px;
    border: 1px solid rgba(64, 210, 255, 0.35);
    border-radius: 50%;
    text-align: center;
    background: rgba(0, 17, 30, 0.65);
}

.si-baseline-score strong,
.si-baseline-score span {
    display: block;
}

.si-baseline-score strong {
    color: #43d4ff;
    font-size: 1.65rem;
}

.si-baseline-score span {
    color: #8eabba;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
}

.si-baseline-blockers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
    margin: 18px 0;
}

.si-baseline-blockers > div {
    padding: 15px;
    border: 1px solid rgba(255, 187, 64, 0.3);
    border-radius: 9px;
    background: rgba(1, 18, 31, 0.62);
}

.si-baseline-blockers strong {
    color: #ffca68;
}

.si-baseline-blockers li {
    margin-top: 6px;
    color: #d9e7ef;
}

.si-override-record {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 18px;
    border: 1px solid rgba(64, 210, 255, 0.22);
    border-radius: 9px;
    overflow: hidden;
}

.si-override-record div {
    padding: 13px;
    border-right: 1px solid rgba(64, 210, 255, 0.2);
}

.si-override-record div:last-child {
    border-right: 0;
}

.si-override-record dt {
    color: #7896aa;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.si-override-record dd {
    margin: 5px 0 0;
    color: #effaff;
    font-weight: 800;
}

.si-override-justification {
    display: grid;
    gap: 5px;
    margin-top: 13px;
    padding: 13px;
    border-left: 3px solid #43d4ff;
    color: #c6dce8;
    background: rgba(0, 18, 32, 0.5);
}

.si-override-controls {
    margin: 14px 0;
    padding: 16px;
    border: 1px solid rgba(255, 187, 64, 0.38);
    border-radius: 9px;
    background: rgba(70, 45, 7, 0.18);
}

.si-override-controls legend {
    padding: 0 7px;
    color: #ffca68;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.si-override-controls p {
    color: #c8b98d;
}

.si-override-controls label {
    display: block;
    margin-top: 12px;
}

.si-override-controls input[type="text"],
.si-override-controls input:not([type]),
.si-override-controls textarea {
    width: 100%;
    box-sizing: border-box;
}

.si-baseline-boundary {
    margin: 16px 0 0;
    font-size: 0.72rem;
}

@media (max-width: 800px) {
    .si-baseline-gate-heading {
        display: block;
    }

    .si-baseline-score {
        margin-top: 16px;
    }

    .si-baseline-blockers,
    .si-override-record {
        grid-template-columns: 1fr;
    }

    .si-override-record div {
        border-right: 0;
        border-bottom: 1px solid rgba(64, 210, 255, 0.2);
    }
}

/* ==================================================================
   BUILD 022-DCM — SCIF DECOMMISSIONING
   ================================================================== */

.decommission-shell {
    width: min(1140px, calc(100% - 50px));
    margin: 38px auto 70px;
}

.decommission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    margin: 26px 0;
}

.decommission-header h1 {
    margin: 7px 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.decommission-header p {
    color: #8ea9bc;
}

.decommission-icon {
    display: grid;
    width: 100px;
    height: 100px;
    place-items: center;
    border: 1px solid rgba(65, 212, 255, 0.42);
    border-radius: 22px;
    color: #42d5ff;
    font-size: 3rem;
    background: rgba(9, 53, 79, 0.42);
}

.decommission-facility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
    margin-top: 22px;
}

.decommission-facility-card,
.decommission-summary,
.decommission-facility-launch {
    padding: 22px;
    border: 1px solid rgba(65, 212, 255, 0.25);
    border-radius: 14px;
    background: rgba(7, 35, 57, 0.88);
}

.decommission-facility-card dl {
    margin: 18px 0;
}

.decommission-facility-card dl div {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid rgba(65, 212, 255, 0.14);
}

.decommission-facility-card dt {
    color: #7895a9;
}

.decommission-facility-card dd {
    color: #f1fbff;
    font-weight: 800;
}

.decommission-facility-card .full-action {
    display: block;
    margin-top: 10px;
    text-align: center;
}

.decommission-intake {
    margin-top: 20px;
}

.decommission-blocker {
    display: flex;
    gap: 16px;
    margin: 18px 0;
    padding: 17px;
    border: 1px solid rgba(255, 184, 64, 0.4);
    border-radius: 10px;
    color: #ffcb69;
    background: rgba(82, 52, 5, 0.26);
}

.decommission-blocker span {
    color: #d9cda8;
}

.decommission-status-banner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 0;
    padding: 17px;
    border: 1px solid rgba(255, 184, 64, 0.35);
    border-radius: 11px;
    color: #ffcb69;
    background: rgba(82, 52, 5, 0.2);
}

.decommission-status-banner.status-completed {
    border-color: rgba(43, 220, 153, 0.42);
    color: #2bdc99;
    background: rgba(18, 82, 62, 0.22);
}

.decommission-status-banner span {
    color: #a9bfcc;
}

.decommission-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 18px 0;
}

.decommission-summary div {
    padding: 10px 16px;
    border-right: 1px solid rgba(65, 212, 255, 0.16);
}

.decommission-summary div:last-child {
    border-right: 0;
}

.decommission-summary span,
.decommission-summary strong {
    display: block;
}

.decommission-summary span {
    color: #7895a9;
    font-size: 0.67rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.decommission-summary strong {
    margin-top: 5px;
    color: #f0faff;
}

.decommission-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.decommission-evidence-form {
    display: grid;
    gap: 12px;
    margin-top: 17px;
}

.decommission-evidence-form label span {
    display: block;
    margin-bottom: 5px;
    color: #91aabd;
    font-size: 0.72rem;
    font-weight: 800;
}

.decommission-evidence-form input,
.decommission-evidence-form select {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid rgba(65, 212, 255, 0.24);
    border-radius: 7px;
    color: #edfaff;
    background: #031522;
}

.decommission-evidence-form button {
    min-height: 43px;
    border: 0;
    border-radius: 7px;
    color: #00121c;
    background: #42d5ff;
    font-weight: 900;
}

.decommission-cancel-form {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 184, 64, 0.2);
}

.decommission-facility-launch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin: 20px 0;
}

.decommission-facility-launch h2 {
    margin: 6px 0;
}

.decommission-facility-launch p {
    color: #8ea9bc;
}

.decommission-facility-launch a {
    flex: 0 0 auto;
    padding: 13px 18px;
    border: 1px solid #42d5ff;
    border-radius: 7px;
    color: #42d5ff;
    font-weight: 900;
    text-decoration: none;
}

.decommission-facility-complete {
    border-color: rgba(43, 220, 153, 0.4);
    background: rgba(18, 82, 62, 0.2);
}

@media (max-width: 900px) {
    .decommission-facility-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .decommission-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .decommission-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .decommission-facility-grid,
    .decommission-summary {
        grid-template-columns: 1fr;
    }

    .decommission-header,
    .decommission-facility-launch,
    .decommission-status-banner {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==================================================================
   BUILD 023-DAC — DE-ACCREDITATION AND INVENTORY REPORTING
   ================================================================== */

.dac-authority-notice,
.inventory-submission,
.inventory-accepted,
.inventory-return {
    border: 1px solid rgba(58, 211, 255, 0.28);
    border-radius: 10px;
    background: rgba(5, 31, 49, 0.72);
    padding: 16px 18px;
    margin: 16px 0;
    display: grid;
    gap: 5px;
}

.dac-authority-notice strong,
.inventory-submission strong {
    color: #42d5ff;
    letter-spacing: 0.1em;
}

.inventory-return {
    border-color: rgba(255, 174, 63, 0.55);
    background: rgba(75, 48, 9, 0.28);
}

.inventory-return strong {
    color: #ffbd51;
}

.inventory-accepted {
    border-color: rgba(49, 225, 156, 0.5);
    background: rgba(12, 70, 55, 0.3);
}

.inventory-accepted strong {
    color: #42e4a7;
}

.dac-decision-form .field-wide,
.inventory-action-form .field-wide {
    grid-column: 1 / -1;
}

.inventory-update-grid {
    display: grid;
    gap: 22px;
    margin-top: 24px;
}

.inventory-update-card {
    border: 1px solid rgba(50, 167, 222, 0.3);
    border-radius: 14px;
    padding: 24px;
    background:
        linear-gradient(
            135deg,
            rgba(7, 35, 59, 0.95),
            rgba(4, 20, 37, 0.97)
        );
}

.inventory-update-card.is-overdue {
    border-color: rgba(255, 92, 92, 0.7);
    box-shadow: inset 4px 0 rgba(255, 76, 76, 0.75);
}

.inventory-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(78, 176, 220, 0.2);
}

.inventory-card-heading h2 {
    margin: 7px 0 3px;
}

.inventory-card-heading p {
    margin: 0;
}

.inventory-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 105px;
    padding: 8px 13px;
    border: 1px solid rgba(66, 213, 255, 0.45);
    border-radius: 999px;
    color: #42d5ff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.inventory-status.status-overdue,
.inventory-status.status-returned {
    color: #ff8585;
    border-color: rgba(255, 100, 100, 0.55);
}

.inventory-status.status-accepted {
    color: #42e4a7;
    border-color: rgba(49, 225, 156, 0.55);
}

.inventory-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 18px 0;
    border: 1px solid rgba(55, 150, 197, 0.18);
    background: rgba(55, 150, 197, 0.18);
}

.inventory-facts > div {
    display: grid;
    gap: 6px;
    padding: 15px;
    background: rgba(3, 23, 39, 0.94);
}

.inventory-facts span {
    color: #7895a9;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.inventory-action-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.inventory-action-form label {
    display: grid;
    gap: 7px;
}

.inventory-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    grid-column: 1 / -1;
}

.inventory-update-card .wf-download {
    display: inline-flex;
    margin: 12px 12px 0 0;
}

@media (max-width: 900px) {
    .inventory-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .inventory-card-heading {
        display: grid;
    }

    .inventory-facts,
    .inventory-action-form {
        grid-template-columns: 1fr;
    }
}

/* ==================================================================
   BUILD 023-UI-R1 — NEW ACCREDITATION DASHBOARD LAYOUT REPAIR
   ================================================================== */

.revalidation-dashboard-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

.revalidation-dashboard-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.revalidation-dashboard-header .readiness-ring {
    position: relative;
    flex: 0 0 auto;
    inset: auto;
    margin: 0;
}

.project-command-panel {
    position: relative;
    inset: auto;
    clear: both;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    box-sizing: border-box;
    overflow: hidden;
    margin: 24px 0;
}

.project-command-heading {
    width: 100%;
    box-sizing: border-box;
}

.project-command-summary,
.project-assignment-form,
.project-contact-strip,
.assignment-history {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.project-assignment-form input,
.project-assignment-form select,
.project-assignment-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.project-assignment-form textarea {
    min-height: 96px;
    resize: vertical;
}

.project-assignment-submit {
    width: 100%;
    box-sizing: border-box;
}

.scif-id-panel,
.project-location-action,
.revalidation-metrics,
.ao-gate,
.wf-governance-launch,
.revalidation-section {
    position: relative;
    clear: both;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .project-command-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .project-assignment-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .project-command-summary > div:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 760px) {
    .revalidation-dashboard-header {
        align-items: flex-start;
    }

    .project-command-heading,
    .project-assignment-submit {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-command-summary,
    .project-assignment-form,
    .project-contact-strip {
        grid-template-columns: 1fr;
    }

    .project-assignment-submit button {
        width: 100%;
    }
}

/* ==================================================================
   BUILD 023-INV-UI-R1 — INVENTORY UPDATE CENTER VISUAL REFINEMENT
   ================================================================== */

.inventory-update-page {
    position: relative;
    width: min(1180px, calc(100% - 56px));
    min-height: calc(100vh - 230px);
    margin: 0 auto;
    padding: 44px 0 80px;
    box-sizing: border-box;
}

.inventory-update-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 760px;
    height: 340px;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(17, 129, 190, 0.12) 0%,
            rgba(5, 43, 74, 0.06) 45%,
            transparent 72%
        );
    pointer-events: none;
}

.inventory-update-page > * {
    position: relative;
    z-index: 1;
}

.inventory-update-page > .back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 31px;
    color: #45d7ff;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.025em;
    text-decoration: none;
    transition:
        color 160ms ease,
        transform 160ms ease;
}

.inventory-update-page > .back-link:hover {
    color: #8ae9ff;
    transform: translateX(-3px);
}

.inventory-update-page .page-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
    min-height: 150px;
    margin-bottom: 25px;
}

.inventory-update-page .page-heading-row > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.inventory-update-page .page-heading-row .kicker {
    display: block;
    margin-bottom: 12px;
    color: #46d9ff;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.inventory-update-page .page-heading-row h1 {
    margin: 0;
    color: #f4f9fd;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 850;
    letter-spacing: -0.052em;
    line-height: 0.98;
}

.inventory-update-page .page-heading-row p {
    max-width: 735px;
    margin: 18px 0 0;
    color: #89a4b8;
    font-size: 1rem;
    line-height: 1.65;
}

.inventory-update-page .status-orb {
    position: relative;
    flex: 0 0 136px;
    width: 136px;
    height: 136px;
    border: 1px solid rgba(66, 214, 255, 0.56);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #52ddff;
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(36, 170, 225, 0.18),
            rgba(3, 29, 49, 0.94) 69%
        );
    box-shadow:
        inset 0 0 28px rgba(45, 190, 239, 0.1),
        0 0 32px rgba(19, 122, 173, 0.1);
    font-size: 2.35rem;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.inventory-update-page .status-orb::before,
.inventory-update-page .status-orb::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(65, 215, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.inventory-update-page .status-orb::before {
    inset: 9px;
}

.inventory-update-page .status-orb::after {
    inset: 18px;
}

.inventory-update-page .status-orb span {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 2px;
    color: #8baabd;
    font-size: 0.55rem;
    font-weight: 850;
    letter-spacing: 0.19em;
}

.inventory-update-page .demo-banner {
    min-height: 62px;
    margin: 0 0 25px;
    padding: 17px 21px;
    border: 1px solid rgba(231, 169, 54, 0.38);
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 17px;
    box-sizing: border-box;
    color: #c1ad84;
    background:
        linear-gradient(
            100deg,
            rgba(78, 52, 12, 0.27),
            rgba(28, 27, 24, 0.75)
        );
    font-size: 0.8rem;
    line-height: 1.5;
}

.inventory-update-page .demo-banner strong {
    flex: 0 0 auto;
    color: #ffc45c;
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.inventory-update-page .empty-state-panel {
    position: relative;
    min-height: 285px;
    border: 1px solid rgba(54, 174, 226, 0.29);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 48px;
    box-sizing: border-box;
    text-align: center;
    background:
        linear-gradient(
            145deg,
            rgba(7, 38, 63, 0.97),
            rgba(3, 21, 38, 0.98)
        );
    box-shadow:
        inset 0 1px rgba(124, 223, 255, 0.04),
        0 22px 70px rgba(0, 5, 14, 0.21);
}

.inventory-update-page .empty-state-panel::before {
    content: "✓";
    width: 72px;
    height: 72px;
    margin-bottom: 23px;
    border: 1px solid rgba(67, 216, 255, 0.53);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4bdcff;
    background:
        linear-gradient(
            145deg,
            rgba(13, 83, 120, 0.45),
            rgba(5, 34, 57, 0.82)
        );
    box-shadow:
        inset 0 0 24px rgba(50, 201, 248, 0.09),
        0 0 25px rgba(45, 189, 235, 0.08);
    font-size: 2.25rem;
    font-weight: 500;
}

.inventory-update-page .empty-state-panel::after {
    content: "REPORTING QUEUE CLEAR";
    display: block;
    margin-top: 24px;
    color: #4bdcff;
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.inventory-update-page .empty-state-panel h2 {
    max-width: 650px;
    margin: 0;
    color: #f0f7fb;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.025em;
}

.inventory-update-page .empty-state-panel p {
    max-width: 650px;
    margin: 13px 0 0;
    color: #829fb3;
    font-size: 0.93rem;
    line-height: 1.65;
}

.inventory-update-page .inventory-update-grid {
    display: grid;
    gap: 22px;
    margin-top: 0;
}

.inventory-update-page .inventory-update-card {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.inventory-update-page .inventory-card-heading h2 {
    color: #f1f8fc;
    font-size: 1.55rem;
}

.inventory-update-page .inventory-card-heading p {
    color: #7f9baf;
}

.inventory-update-page .inventory-action-form input,
.inventory-update-page .inventory-action-form select,
.inventory-update-page .inventory-action-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.inventory-update-page .inventory-action-form button {
    min-height: 46px;
    padding: 0 21px;
    border: 1px solid #46d8ff;
    border-radius: 8px;
    color: #002233;
    background: #47d6fb;
    font-weight: 900;
    cursor: pointer;
}

.inventory-update-page .inventory-action-form .button-return {
    color: #ffbf59;
    background: transparent;
    border-color: #ffbf59;
}

@media (max-width: 900px) {
    .inventory-update-page {
        width: min(100% - 38px, 1180px);
        padding-top: 34px;
    }

    .inventory-update-page .page-heading-row {
        gap: 25px;
    }

    .inventory-update-page .status-orb {
        flex-basis: 115px;
        width: 115px;
        height: 115px;
        font-size: 2rem;
    }

    .inventory-update-page .inventory-facts {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .inventory-update-page {
        width: min(100% - 26px, 1180px);
        padding-top: 25px;
    }

    .inventory-update-page .page-heading-row {
        align-items: flex-start;
    }

    .inventory-update-page .status-orb {
        flex: 0 0 90px;
        width: 90px;
        height: 90px;
        font-size: 1.55rem;
    }

    .inventory-update-page .status-orb span {
        font-size: 0.47rem;
    }

    .inventory-update-page .demo-banner {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .inventory-update-page .empty-state-panel {
        min-height: 260px;
        padding: 34px 22px;
    }

    .inventory-update-page .inventory-facts,
    .inventory-update-page .inventory-action-form {
        grid-template-columns: 1fr;
    }
}

/* ==================================================================
   BUILD 024-ORG — CONTROLLED ORGANIZATION LINKAGE
   ================================================================== */

.org-control-note,
.org-concept-guidance {
    display: block;
    margin-top: 7px;
    color: #7192a8;
    font-size: 0.68rem;
    line-height: 1.45;
}

.intake-form select[name="organization_id"] {
    border-color: rgba(67, 211, 255, 0.45);
    background:
        linear-gradient(
            135deg,
            rgba(3, 28, 46, 0.98),
            rgba(2, 20, 35, 0.98)
        );
}

.intake-form select[name="organization_id"]:focus {
    border-color: #46d8ff;
    box-shadow:
        0 0 0 2px rgba(70, 216, 255, 0.1),
        0 0 22px rgba(35, 173, 224, 0.08);
}

.intake-form select[name="organization_id"] + .org-control-note {
    padding-left: 11px;
    border-left: 2px solid rgba(70, 216, 255, 0.35);
}
