* {
    box-sizing: border-box;
}

:root {
    --ink: #f8fafc;
    --muted: #cbd5e1;
    --surface: #111827;
    --surface-strong: #0f172a;
    --line: rgba(148, 163, 184, 0.28);
    --accent-a: #06b6d4;
    --accent-b: #f59e0b;
    --accent-c: #22c55e;
}

body {
    margin: 0;
    color: var(--ink);
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 8%, rgba(6, 182, 212, 0.12), transparent 35%),
        radial-gradient(circle at 92% 15%, rgba(34, 197, 94, 0.11), transparent 28%),
        linear-gradient(140deg, #0b0f14, #0b0f14 45%, #101822);
    font-family: "Sora", "Avenir Next", "Trebuchet MS", sans-serif;
}

body.session-locked {
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.14), transparent 28%),
        radial-gradient(circle at 82% 14%, rgba(74, 222, 128, 0.1), transparent 22%),
        linear-gradient(145deg, #040814, #091224 48%, #0a1628);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 72px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 72px);
    opacity: 0.2;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 92%);
}

body.mode-executive {
    background:
        radial-gradient(circle at 14% 8%, rgba(34, 211, 238, 0.16), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(16, 185, 129, 0.12), transparent 25%),
        linear-gradient(140deg, #060a11, #0a1019 44%, #111b28);
}

body.mode-operator {
    background:
        radial-gradient(circle at 12% 10%, rgba(59, 130, 246, 0.16), transparent 28%),
        radial-gradient(circle at 86% 10%, rgba(245, 158, 11, 0.12), transparent 24%),
        linear-gradient(140deg, #060910, #0b111a 44%, #161e2a);
}

body.mode-audit {
    background:
        radial-gradient(circle at 10% 8%, rgba(167, 243, 208, 0.1), transparent 26%),
        radial-gradient(circle at 88% 12%, rgba(96, 165, 250, 0.12), transparent 24%),
        linear-gradient(140deg, #060911, #0a0f18 44%, #111827);
}

.is-hidden {
    display: none !important;
}

.login-shell {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    align-items: start;
    justify-items: center;
    padding: 24px;
    isolation: isolate;
    overflow-y: auto;
    overflow-x: hidden;
}

.login-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(34, 211, 238, 0.18), transparent 30%),
        radial-gradient(circle at 80% 16%, rgba(74, 222, 128, 0.12), transparent 24%),
        rgba(2, 6, 23, 0.74);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.login-card {
    position: relative;
    width: min(1380px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 32px;
    padding: 22px 24px;
    background:
        radial-gradient(circle at 82% 0%, rgba(34, 211, 238, 0.12), transparent 26%),
        radial-gradient(circle at 16% 12%, rgba(59, 130, 246, 0.08), transparent 22%),
        linear-gradient(155deg, rgba(10, 16, 28, 0.98), rgba(5, 10, 20, 0.96));
    box-shadow: 0 48px 140px rgba(2, 6, 23, 0.42);
    margin-block: 22px;
}

.login-utility-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 2px 0 20px;
}

.login-utility-brand {
    display: grid;
    gap: 4px;
}

.login-utility-brand .eyebrow,
.login-utility-brand .agent-hint {
    margin: 0 !important;
}

.login-utility-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.login-utility-link {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    background: rgba(4, 10, 22, 0.24);
    color: rgba(226, 232, 240, 0.82);
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.login-utility-link.is-primary {
    color: #ecfeff;
    border-color: rgba(34, 211, 238, 0.24);
    background: linear-gradient(180deg, rgba(8, 47, 73, 0.28), rgba(4, 10, 22, 0.68));
}

.login-utility-link.is-active:not(.is-primary),
.login-utility-link:hover:not(.is-primary),
.login-utility-link:focus-visible:not(.is-primary) {
    color: #ecfeff;
    border-color: rgba(34, 211, 238, 0.28);
    background: rgba(8, 47, 73, 0.42);
}

.login-utility-link.is-active.is-primary,
.login-utility-link.is-primary:hover,
.login-utility-link.is-primary:focus-visible {
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.1) inset, 0 6px 18px rgba(6, 182, 212, 0.12);
}

.login-card h1 {
    margin: 10px 0 8px;
    font-size: clamp(32px, 3.8vw, 64px);
    line-height: 0.92;
    letter-spacing: -0.035em;
    max-width: 7ch;
}

.login-portal-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(760px, 1.66fr);
    gap: 38px;
    align-items: stretch;
}

.login-panel {
    min-width: 0;
}

.login-panel-context {
    border: none;
    border-radius: 0;
    padding: 14px 0 14px 2px;
    background: none;
    min-height: 100%;
    display: grid;
    align-content: start;
    gap: 22px;
}

.login-brandbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
}

.login-monogram-wrap {
    position: relative;
    width: 66px;
    height: 66px;
}

.login-monogram {
    position: relative;
    z-index: 1;
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    border: 1px solid rgba(34, 211, 238, 0.3);
    background:
        radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.3), transparent 42%),
        linear-gradient(180deg, rgba(11, 19, 35, 0.94), rgba(3, 10, 22, 0.92));
    color: #ecfeff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 16px 34px rgba(8, 47, 73, 0.32);
}

.login-monogram-ring {
    position: absolute;
    inset: -8px;
    border-radius: 24px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.08) inset;
}

.login-brand-copy .eyebrow {
    margin: 0 0 4px !important;
}

.login-brand-copy .agent-hint {
    margin: 0 !important;
}

.login-minimal-copy {
    display: grid;
    gap: 10px;
    max-width: 16rem;
}

.login-minimal-copy .agent-hint {
    margin: 0 !important;
    max-width: 22ch;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(203, 213, 225, 0.72);
}

.login-signal-cluster {
    display: flex;
    gap: 8px;
    align-self: start;
    opacity: 0.72;
}

.login-signal-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.34);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.login-signal-dot.is-live {
    background: #22c55e;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.65);
    animation: loginPulse 1.8s ease-in-out infinite;
}

.login-identity-rail {
    display: grid;
    gap: 10px;
    max-width: 18rem;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.login-identity-line {
    display: grid;
    gap: 3px;
}

.login-identity-line strong {
    color: #ecfeff;
    font-size: 16px;
    font-weight: 650;
}

.login-identity-line.is-emphasis strong {
    font-size: 18px;
}

.login-identity-rail .agent-hint {
    margin: 0 !important;
    color: rgba(203, 213, 225, 0.74);
    line-height: 1.45;
    max-width: 24ch;
}

.login-panel-access {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 30px;
    padding: 46px;
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.22), transparent 34%),
        linear-gradient(160deg, rgba(7, 12, 22, 0.992), rgba(3, 8, 18, 0.985));
    align-self: stretch;
    display: grid;
    align-content: start;
    gap: 20px;
    box-shadow: 0 34px 100px rgba(2, 6, 23, 0.34);
    position: relative;
    overflow: hidden;
}

.login-panel-access::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 22%),
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.1), transparent 30%);
}

.login-view-panel {
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.login-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.login-panel-header .eyebrow {
    margin: 0 !important;
}

.login-panel-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.2), rgba(148, 163, 184, 0.08));
}

.login-info-stack,
.login-plan-grid {
    display: grid;
    gap: 10px;
}

.login-info-card,
.login-plan-card {
    display: grid;
    gap: 6px;
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(4, 10, 22, 0.54);
}

.login-info-card strong,
.login-plan-card strong {
    font-size: 15px;
    color: #ecfeff;
}

.login-info-card span,
.login-plan-card span {
    color: #cbd5e1;
    line-height: 1.45;
    font-size: 13px;
}

.login-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
    margin-top: 10px;
}

.login-field {
    display: grid;
    gap: 7px;
    color: #dbe7f5;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.login-field input,
.login-field select {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.72);
    color: var(--ink);
    padding: 13px 14px;
    font-size: 14px;
}

.login-field input:focus,
.login-field select:focus {
    outline: none;
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.login-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.login-action-notes {
    display: grid;
    gap: 3px;
}

.login-action-notes .agent-hint {
    margin: 0 !important;
    font-size: 12px;
    line-height: 1.4;
}

.login-role-brief,
.login-memory-band {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.login-memory-band strong {
    display: block;
    margin-top: 5px;
    font-size: 16px;
    letter-spacing: 0.01em;
}

.login-role-brief {
    margin-top: 0;
    padding: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.1), transparent 30%),
        rgba(2, 6, 23, 0.5);
}

.login-role-brief-compact,
.login-memory-band-compact {
    padding: 14px 16px;
}

.login-role-brief h3 {
    margin: 6px 0 8px;
    font-size: 20px;
}

.login-capability-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.login-capability-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(4, 11, 24, 0.62);
}

.login-capability-item strong {
    display: block;
    font-size: 13px;
}

.login-capability-item span {
    color: #dbe7f5;
    font-size: 12px;
}

.login-capability-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.95), rgba(34, 197, 94, 0.85));
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.5);
    flex: none;
}

.login-memory-band {
    margin-top: 0;
    padding: 16px;
    display: grid;
    gap: 12px;
}

.login-memory-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.login-access-header h3 {
    margin: 4px 0 6px;
    font-size: 30px;
}

.login-access-header .agent-hint {
    margin: 0 !important;
}

.login-role-brief-compact {
    margin-top: 6px;
}

.login-memory-band-compact {
    margin-top: 0;
}

.login-status {
    margin-top: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.48);
    color: #cbd5e1;
    font-size: 13px;
    letter-spacing: 0.01em;
}

.login-status.success {
    border-color: rgba(74, 222, 128, 0.34);
    color: #dcfce7;
    background: rgba(20, 83, 45, 0.24);
}

.login-status.error {
    border-color: rgba(248, 113, 113, 0.34);
    color: #fee2e2;
    background: rgba(127, 29, 29, 0.24);
}

.login-proof-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}

.login-handoff {
    position: fixed;
    inset: 0;
    z-index: 160;
    background:
        radial-gradient(circle at 50% 28%, rgba(34, 211, 238, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(3, 8, 20, 0.92), rgba(3, 8, 20, 0.98));
    display: grid;
    place-items: center;
    overflow: hidden;
}

.login-handoff-grid {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 96px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 96px);
}

.login-handoff-copy {
    position: relative;
    text-align: center;
    padding: 28px 36px;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.login-handoff-mark {
    width: 148px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    background:
        radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.26), transparent 42%),
        linear-gradient(180deg, rgba(11, 19, 35, 0.94), rgba(3, 10, 22, 0.92));
    box-shadow: 0 16px 34px rgba(8, 47, 73, 0.24);
}

.login-handoff-logo {
    width: 108px;
    height: auto;
    opacity: 0.96;
}

.login-handoff-copy h2 {
    margin: 2px 0 4px;
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -0.04em;
}

.login-handoff-copy .agent-hint {
    margin: 0 !important;
    font-size: 14px;
    max-width: 34ch;
    color: rgba(226, 232, 240, 0.76);
}

body.session-locked .page {
    display: none;
}

body:not(.session-locked) .login-shell {
    display: none;
}

body.auth-transition .login-shell {
    display: none;
}

.page {
    max-width: 1050px;
    margin: 0 auto;
    padding: 28px 16px 44px;
}

.top-impact-strip {
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.12);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.top-impact-strip h2 {
    margin: 2px 0 0;
    font-size: clamp(20px, 3.4vw, 32px);
}

.momentum-indicator {
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(17, 24, 39, 0.65);
}

#momentum-title {
    color: #86efac;
}

.authority-banner {
    border: 1px solid rgba(59, 130, 246, 0.42);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: rgba(59, 130, 246, 0.08);
}

.state-strip {
    border: 1px solid rgba(34, 197, 94, 0.36);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.12), rgba(2, 6, 23, 0.82));
}

.high-priority-panel {
    position: relative;
    overflow: hidden;
}

.high-priority-panel::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.92), rgba(34, 197, 94, 0.45), transparent 88%);
    opacity: 0.9;
}

#current-state-headline {
    margin: 8px 0 4px !important;
    color: #ecfeff;
}

#current-state-detail {
    margin: 0 0 10px !important;
}

.workflow-progress,
.setup-milestones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 2px;
}

.workflow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.7);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}

.workflow-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
}

.workflow-pill.complete {
    border-color: rgba(34, 197, 94, 0.38);
    color: #bbf7d0;
}

.workflow-pill.complete::before {
    background: #22c55e;
}

.workflow-pill.active {
    border-color: rgba(34, 211, 238, 0.42);
    color: #cffafe;
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.workflow-pill.active::before {
    background: #22d3ee;
    box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.16);
    animation: workflowPulse 1.6s ease-in-out infinite;
}

.workflow-pill.idle::before {
    background: rgba(148, 163, 184, 0.42);
}

#environment-badge,
#workflow-step,
#learning-loop-summary {
    font-size: 18px;
}

body.mode-audit [data-scope="executive"],
body.mode-audit [data-scope="operator"] {
    display: none !important;
}

body.mode-operator [data-scope="executive"],
body.mode-operator [data-scope="audit"] {
    display: none !important;
}

body.mode-executive [data-scope="operator"],
body.mode-executive [data-scope="audit"] {
    display: none !important;
}

body.mode-audit .analyst-shell,
body.mode-executive #operator-mode-panel {
    display: none !important;
}

[data-scope="shared"] {
    display: block;
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.15);
}

.control-bar {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    margin: -2px 0 10px;
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(10px);
    font-size: 12px;
}

.app-brand-rail {
    display: inline-flex;
    align-items: center;
    margin-right: 2px;
}

.app-brand-logo {
    width: 108px;
    height: auto;
    opacity: 0.96;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.trust-item {
    min-width: 0;
    flex: 1 1 180px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(2, 6, 23, 0.5);
    color: #cbd5e1;
    font-size: 12px;
}

.trust-item strong {
    display: inline;
    margin-top: 0;
    margin-left: 6px;
    font-size: 13px;
    color: #e2e8f0;
}

.authority-banner h2 {
    margin: 2px 0 4px;
    font-size: clamp(16px, 2.5vw, 24px);
}

.authority-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.authority-brand-copy {
    display: grid;
    gap: 6px;
}

.authority-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.authority-logo {
    width: 132px;
    height: auto;
    opacity: 0.96;
}

.authority-brand-caption {
    margin: 3px 0 0;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.56);
}

#business-support {
    max-width: 58ch;
    color: rgba(203, 213, 225, 0.58);
}

#environment-mode {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
}

.mode-actions {
    display: grid;
    gap: 8px;
}

.morning-brief-btn {
    white-space: nowrap;
    align-self: flex-start;
}

body:not(.show-exec-details) .executive-secondary {
    display: none;
}

#exec-data-line {
    margin-top: 4px !important;
    color: #cbd5e1;
}

.status-banner,
.daily-hook-panel {
    margin-bottom: 10px;
}

.daily-brief-toggle {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #e2e8f0;
}

.daily-brief-toggle input {
    accent-color: #22c55e;
}

#exposure-limit-input {
    width: 140px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.75);
    color: var(--ink);
    padding: 6px 8px;
}

.analyst-shell {
    margin-top: 10px;
}

.decision-spine {
    border-color: rgba(34, 197, 94, 0.55);
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.14), rgba(2, 6, 23, 0.9));
}

.flagship-decision-panel {
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.16), transparent 30%),
        linear-gradient(145deg, rgba(22, 163, 74, 0.16), rgba(2, 6, 23, 0.92));
    border-color: rgba(74, 222, 128, 0.62);
    box-shadow: 0 18px 44px rgba(3, 8, 20, 0.28);
}

.executive-voice {
    border-color: rgba(59, 130, 246, 0.45);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.12), rgba(2, 6, 23, 0.9));
}

.executive-voice-message p {
    margin: 8px 0;
    line-height: 1.45;
}

.optional-proof {
    display: none;
}

body.show-proof .optional-proof {
    display: block;
}

#connected-systems-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.operations-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 12px;
}

.operations-split h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.morning-brief-panel {
    margin-top: 10px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 12px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.6);
}

.morning-brief-panel h3 {
    margin: 0 0 6px;
    font-size: 14px;
}

.fraud-upload-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0 6px;
}

.fraud-upload-row input[type="file"] {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.68);
    color: var(--ink);
    padding: 6px 8px;
}

.morning-brief-panel p {
    margin: 4px 0;
    font-size: 13px;
}

.morning-brief-panel.is-hidden {
    display: none;
}

.authority-flow {
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    color: #bfdbfe;
    font-size: 12px;
}

.flow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}

.flow-chips {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.flow-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    background: rgba(2, 6, 23, 0.6);
}

.flow-chip.monitor { border-color: rgba(34, 197, 94, 0.55); }
.flow-chip.predict { border-color: rgba(6, 182, 212, 0.55); }
.flow-chip.execute { border-color: rgba(245, 158, 11, 0.55); }

.operating-mode-strip {
    margin-top: 8px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(2, 6, 23, 0.45);
}

.top-authority {
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: linear-gradient(130deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.04));
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.top-authority h1 {
    margin: 0;
    font-size: clamp(18px, 2.8vw, 26px);
}

.top-authority p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

#header-live-status {
    margin-top: 8px !important;
    color: #a5f3fc;
}

.decision-authority {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(17, 24, 39, 0.85);
}

.decision-authority h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.todays-decisions {
    border-color: rgba(239, 68, 68, 0.48);
    background: linear-gradient(140deg, rgba(185, 28, 28, 0.18), rgba(15, 23, 42, 0.92));
}

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

.today-decision-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: rgba(2, 6, 23, 0.62);
    transition: border-color 180ms ease, transform 180ms ease;
}

.today-decision-card:hover {
    border-color: rgba(34, 211, 238, 0.45);
    transform: translateY(-1px);
}

.today-decision-card h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
}

.today-decision-card .impact-line {
    margin: 6px 0 8px;
    color: #bbf7d0;
    font-weight: 700;
}

.decision-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.decision-chip {
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    color: #cffafe;
    background: rgba(8, 47, 73, 0.34);
}

.activity-feed .feed-item {
    border-left: 2px solid rgba(34, 211, 238, 0.3);
    padding-left: 10px;
    margin: 6px 0;
}

.decision-review-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.review-open-btn.is-active {
    border-color: rgba(34, 197, 94, 0.8);
    background: rgba(34, 197, 94, 0.15);
}

.decision-review-detail {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.46);
}

.mapping-guide-panel {
    margin-top: 8px;
    border-color: rgba(34, 211, 238, 0.28);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 40%),
        rgba(15, 23, 42, 0.58);
    animation: setupFadeIn 220ms ease;
}

.mapping-guide-panel h3 {
    margin: 0 0 10px;
}

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

.validation-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.62);
}

.validation-card strong {
    color: #f8fafc;
}

.validation-list {
    margin: 0;
    padding-left: 18px;
    color: #cbd5e1;
}

.validation-list li + li {
    margin-top: 6px;
}

.validation-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.7);
    font-size: 12px;
    color: #e2e8f0;
}

.validation-status.good {
    border-color: rgba(34, 197, 94, 0.36);
    color: #bbf7d0;
}

.validation-status.warn {
    border-color: rgba(245, 158, 11, 0.38);
    color: #fde68a;
}

.validation-status.error {
    border-color: rgba(248, 113, 113, 0.4);
    color: #fecaca;
}

.confirmation-ready {
    color: #bbf7d0;
}

.confirmation-hold {
    color: #fde68a;
}

.decision-review-detail h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.decision-review-detail p {
    margin: 6px 0;
    font-size: 13px;
}

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

.rollback-center th,
.rollback-center td {
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 8px 6px;
    font-size: 13px;
}

.header {
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 18px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--accent-a);
    font-weight: 700;
}

.header h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4.8vw, 52px);
    font-weight: 700;
    line-height: 1.03;
    max-width: 14ch;
}

.subtitle {
    margin: 0 0 14px;
    color: var(--muted);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    margin: 12px 0 14px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.65);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    color: #e2e8f0;
}

.agent-panel,
.quick-actions {
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
}

.monitor-panel {
    border: 1px solid var(--line);
    background: linear-gradient(130deg, rgba(59, 130, 246, 0.11), rgba(22, 163, 74, 0.1));
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
}

.command-center-hero {
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 30%),
        linear-gradient(140deg, rgba(15, 23, 42, 0.96), rgba(8, 15, 28, 0.94));
    border-color: rgba(34, 211, 238, 0.28);
    box-shadow: 0 26px 80px rgba(2, 6, 23, 0.38);
    position: relative;
    overflow: hidden;
}

.command-center-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.08), transparent 18%),
        linear-gradient(115deg, transparent 0%, rgba(34, 211, 238, 0.06) 38%, transparent 62%);
    opacity: 0.7;
}

.command-center-hero .results-header h2 {
    font-size: clamp(22px, 3vw, 30px);
}

.command-center-footer {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 12px;
    margin-top: 12px;
}

.monitor-controls {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.monitor-controls .agent-hint {
    margin-right: auto !important;
}

.hero-insight {
    border: 1px solid rgba(239, 68, 68, 0.45);
    background: rgba(127, 29, 29, 0.18);
    border-radius: 12px;
    padding: 10px;
    margin: 8px 0 10px;
}

.hero-insight h3 {
    margin: 0 0 4px;
    font-size: 14px;
}

.hero-insight p {
    margin: 0;
    color: #fee2e2;
}

.money-counter {
    border: 1px solid rgba(34, 197, 94, 0.45);
    background: rgba(22, 163, 74, 0.16);
    border-radius: 12px;
    padding: 9px 10px;
    margin-bottom: 10px;
}

.money-value {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: #dcfce7;
    letter-spacing: 0.02em;
}

#mh-live-sync,
#mh-action-mode {
    width: 100%;
    margin-top: 0 !important;
}

.scale-proof {
    margin-top: 12px;
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 12px;
    padding: 12px;
    background: rgba(2, 6, 23, 0.44);
}

.scale-proof-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.scale-proof-header h3 {
    margin: 0;
    font-size: 14px;
    color: #e2e8f0;
}

.scale-pill {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.55);
}

.scale-pill.good {
    border-color: rgba(34, 197, 94, 0.6);
    color: #dcfce7;
    background: rgba(22, 163, 74, 0.2);
}

.scale-pill.warn {
    border-color: rgba(245, 158, 11, 0.6);
    color: #fef3c7;
    background: rgba(180, 83, 9, 0.22);
}

.impact-success {
    margin: 10px auto 0;
    display: inline-block;
    border: 1px solid rgba(34, 197, 94, 0.55);
    background: rgba(34, 197, 94, 0.12);
    color: #dcfce7;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.exec-badge {
    margin: 8px auto 0;
    display: inline-block;
    border: 1px solid rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
    color: #dcfce7;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.exec-badge.is-hidden {
    display: none;
}

.risk-live-badge {
    margin-top: 6px;
    display: inline-block;
    border: 1px solid rgba(34, 197, 94, 0.45);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.12);
}

.impact-success.pop {
    animation: slideImpact 380ms ease-out;
}

@keyframes slideImpact {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.kpi-snapshot {
    margin: 10px auto 0;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 12px;
    padding: 10px;
    background: rgba(2, 6, 23, 0.45);
    max-width: 520px;
    text-align: left;
}

.kpi-snapshot.is-hidden {
    display: none;
}

.kpi-bars {
    margin-top: 5px;
    display: grid;
    gap: 4px;
}

.kpi-bar {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.7), rgba(34, 197, 94, 0.9));
    transition: width 520ms ease;
}

.kpi-bar.current {
    opacity: 0.55;
}

.kpi-bar.current.danger {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.72), rgba(248, 113, 113, 0.78));
}

.next-actions {
    margin: 10px auto 0;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.next-actions.is-hidden {
    display: none;
}

.action-btn {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
}

#action-execute-all {
    border-color: rgba(34, 197, 94, 0.65);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.24), rgba(34, 211, 238, 0.2));
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

#action-execute-all:hover,
#action-execute-all:focus-visible {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.95);
    outline: none;
}

.kpi-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.kpi-row + .kpi-row {
    margin-top: 6px;
}

.kpi-label {
    color: var(--muted);
}

.tiny-trend {
    display: inline-flex;
    align-items: end;
    gap: 2px;
    margin-left: 6px;
    vertical-align: middle;
}

.tiny-trend i {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.9), rgba(34, 197, 94, 0.85));
}

.tiny-trend i:nth-child(1) { height: 6px; }
.tiny-trend i:nth-child(2) { height: 8px; }
.tiny-trend i:nth-child(3) { height: 10px; }
.tiny-trend i:nth-child(4) { height: 12px; }

.trend-arrow {
    display: inline-block;
    min-width: 12px;
    font-weight: 700;
    text-align: center;
}

.trend-arrow.up {
    color: #4ade80;
}

.trend-arrow.down {
    color: #f59e0b;
}

.forecast-badge {
    margin: 8px auto 0;
    display: inline-block;
    border: 1px solid rgba(34, 211, 238, 0.45);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(34, 211, 238, 0.1);
    color: #cffafe;
    font-size: 12px;
    font-weight: 700;
}

.forecast-badge.is-hidden {
    display: none;
}

.kpi-value {
    font-weight: 700;
}

.kpi-value.tone-good {
    color: #86efac;
}

.kpi-value.tone-warn {
    color: #fde68a;
}

.kpi-value.tone-risk {
    color: #fdba74;
}

.csv-upload {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.settings-tools {
    margin-top: 10px;
}

.settings-tools select.mini-btn {
    min-width: 180px;
    appearance: none;
    color: #e2e8f0;
}

#mapping-name-input {
    min-width: 180px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(2, 6, 23, 0.62);
    color: #e2e8f0;
}

.setup-helper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 12px;
    margin: 6px 0 12px;
    padding: 12px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 35%),
        linear-gradient(140deg, rgba(8, 47, 73, 0.42), rgba(2, 6, 23, 0.7));
}

.setup-helper-copy h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.setup-helper-copy .agent-hint {
    margin: 0 !important;
    color: #dbeafe;
}

.setup-helper-chips {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
}

.setup-chip {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    padding: 8px 10px;
    background: rgba(2, 6, 23, 0.62);
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.2;
}

.setup-chip strong {
    color: #a7f3d0;
    font-weight: 700;
}

.agent-panel h2,
.quick-actions h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.agent-panel p,
.quick-actions p {
    margin: 0;
    color: var(--muted);
}

.agent-hint {
    margin-top: 10px !important;
    font-size: 12px;
}

.agent-hint code {
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1px 6px;
}

.agent-controls {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.agent-command-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

#agent-panel-status {
    margin: 0;
}

.premium-top-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(9, 15, 28, 0.96), rgba(7, 12, 23, 0.92));
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.34);
}

.premium-top-nav-left,
.premium-top-nav-center,
.premium-top-nav-right,
.premium-wordmark,
.profile-menu-actions,
.recommendation-meta,
.premium-threat-main,
.premium-threat-actions,
.agent-command-actions,
.save-timeline-entry,
.save-timeline-proof,
.details-drawer-grid {
    display: flex;
    gap: 12px;
}

.premium-top-nav-left,
.premium-top-nav-right,
.premium-wordmark,
.save-timeline-proof {
    align-items: center;
}

.premium-top-nav-center {
    justify-content: center;
}

.premium-top-nav-right {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.premium-wordmark {
    flex-direction: column;
    gap: 2px;
}

.premium-wordmark strong {
    font-size: 16px;
    letter-spacing: 0.02em;
}

.premium-wordmark span,
.nav-chip {
    color: rgba(203, 213, 225, 0.72);
    font-size: 12px;
}

.nav-chip {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.72);
}

.profile-menu-shell {
    position: relative;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(8, 12, 22, 0.98);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.38);
    z-index: 20;
}

.profile-menu-label {
    font-size: 12px;
    color: rgba(203, 213, 225, 0.74);
    margin-bottom: 8px;
}

.revenue-control-card,
.auctor-loop-panel,
.saved-by-auctor-panel,
.next-best-action-panel,
.ai-cro-brief-panel,
.executive-details-drawer,
.proof-page,
.exec-dashboard.executive-premium {
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(7, 12, 23, 0.98), rgba(9, 15, 28, 0.92));
    box-shadow: 0 16px 54px rgba(2, 6, 23, 0.28);
}

.exec-dashboard.executive-premium {
    padding: 24px;
}

.revenue-control-grid {
    margin-top: 16px;
}

.revenue-control-recommendation,
.next-best-action-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(34, 197, 94, 0.14);
}

.recommendation-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.recommendation-meta {
    flex-wrap: wrap;
    margin-top: 8px;
    color: rgba(203, 213, 225, 0.76);
    font-size: 13px;
}

.auctor-loop {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.auctor-loop-step {
    position: relative;
    padding: 16px 14px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.56);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 110px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.auctor-loop-step.is-current {
    border-color: rgba(34, 197, 94, 0.44);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.18), 0 0 32px rgba(34, 197, 94, 0.16);
}

.auctor-loop-step.is-done {
    border-color: rgba(34, 197, 94, 0.24);
}

.auctor-loop-step.is-locked {
    opacity: 0.66;
}

.auctor-loop-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(34, 197, 94, 0.14);
}

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

.premium-threat-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(100px, 0.7fr)) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.56);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.premium-threat-row:hover,
.save-timeline-entry:hover,
.exec-dashboard.executive-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
}

.premium-threat-main {
    align-items: center;
    flex-wrap: wrap;
}

.threat-tag {
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: rgba(220, 252, 231, 0.86);
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.premium-threat-stat {
    color: rgba(226, 232, 240, 0.86);
    font-size: 13px;
}

.save-timeline-entry {
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.save-timeline-entry:last-child {
    border-bottom: none;
}

.saved-by-auctor-timeline {
    margin-top: 8px;
}

.proof-page {
    margin-top: 18px;
    padding: 26px;
}

#agent-goal {
    min-height: 86px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.6);
    color: var(--ink);
    padding: 12px;
    font: inherit;
}

#agent-goal::placeholder {
    color: #94a3b8;
}

#agent-goal:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.5);
    outline-offset: 2px;
}

.company-context {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.company-context input {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.6);
    color: var(--ink);
    padding: 10px;
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.company-context input::placeholder {
    color: #94a3b8;
}

.company-context select {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.6);
    color: var(--ink);
    padding: 10px;
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.company-context input:focus-visible,
.company-context select:focus-visible {
    outline: none;
    border-color: rgba(34, 211, 238, 0.72);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
    transform: translateY(-1px);
}

#admin-token {
    grid-column: 1 / -1;
}

#openai-key {
    grid-column: 1 / -1;
}

#connect-openai-btn {
    grid-column: span 1;
}

#openai-status {
    grid-column: span 1;
    align-self: center;
}

.agent-button {
    appearance: none;
    border: 1px solid rgba(34, 211, 238, 0.55);
    background: linear-gradient(130deg, rgba(34, 211, 238, 0.22), rgba(163, 230, 53, 0.22));
    color: #ecfeff;
    border-radius: 12px;
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease;
}

.agent-button:hover,
.agent-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, 0.85);
    outline: none;
}

.agent-button.secondary {
    background: rgba(2, 6, 23, 0.6);
    border-color: var(--line);
    color: var(--ink);
}

.agent-button.primary-cta {
    border-color: rgba(34, 197, 94, 0.9);
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.95), rgba(6, 182, 212, 0.9));
    color: #f0fdf4;
    min-height: 70px;
    padding: 8px 30px;
    font-size: 18px;
    box-shadow: 0 10px 28px rgba(6, 182, 212, 0.24), 0 0 0 1px rgba(34, 197, 94, 0.25) inset;
    transition: transform 190ms ease, box-shadow 190ms ease, filter 190ms ease;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    text-align: center;
}

.agent-button.primary-cta:hover,
.agent-button.primary-cta:focus-visible {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.3), 0 0 20px rgba(34, 197, 94, 0.25);
    filter: brightness(1.05);
}

.cta-main {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.cta-sub {
    font-size: 10px;
    letter-spacing: 0.08em;
    opacity: 0.95;
}

.agent-button.primary-cta.pulse {
    animation: ctaPulse 700ms ease-out;
}

@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 10px 25px rgba(22, 163, 74, 0.28);
    }
}

.button-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.button {
    appearance: none;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: 14px;
    padding: 14px;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button-title {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.button-note {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(248, 250, 252, 0.46);
    background: var(--surface-strong);
    outline: none;
}

.button.is-running {
    border-color: var(--accent-a);
}

.results {
    margin-top: 22px;
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 16px;
}

.history-panel {
    margin-top: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 16px;
}

.settings-panel .history-panel {
    margin-top: 12px;
    background: rgba(15, 23, 42, 0.45);
}

.settings-actions {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.36);
}

.history-toggle {
    margin-top: 12px;
}

.history-toggle summary {
    cursor: pointer;
    font-weight: 700;
    color: #cbd5e1;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.results h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.6);
}

.status.running {
    color: #67e8f9;
    border-color: rgba(34, 211, 238, 0.6);
}

.status.success {
    color: #bef264;
    border-color: rgba(163, 230, 53, 0.6);
}

.status.error {
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.65);
}

.status.idle {
    color: var(--muted);
}

#result-title {
    margin: 0 0 8px;
    font-size: 14px;
}

#result-meta {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--muted);
}

#result-meta.result-meta-flash {
    animation: resultMetaFlash 320ms ease-out;
}

@keyframes resultMetaFlash {
    0% {
        color: #ecfeff;
        transform: translateY(2px);
    }
    100% {
        color: var(--muted);
        transform: translateY(0);
    }
}

.result-output {
    margin: 0;
    border: 1px solid var(--line);
    padding: 12px;
    min-height: 140px;
    overflow: auto;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.68);
    color: #e2e8f0;
    font-family: "Sora", "Avenir Next", "Trebuchet MS", sans-serif;
    line-height: 1.45;
}

.settings-panel {
    margin-top: 14px;
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.6);
    border-radius: 14px;
    padding: 10px 12px 12px;
}

.settings-panel summary {
    cursor: pointer;
    font-weight: 700;
    color: #cbd5e1;
    list-style: none;
}

.settings-panel summary::-webkit-details-marker {
    display: none;
}

.settings-panel[open] summary {
    margin-bottom: 10px;
}

.result-card {
    font-family: "Sora", "Avenir Next", "Trebuchet MS", sans-serif;
}

.result-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.metric {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.42);
}

.metric-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.metric-value {
    font-size: 18px;
    font-weight: 700;
}

.bar-chart {
    margin: 8px 0 12px;
    display: grid;
    gap: 8px;
}

.bar-row {
    display: grid;
    grid-template-columns: 130px 1fr 58px;
    gap: 8px;
    align-items: center;
    font-size: 12px;
}

.chart-trend {
    font-style: normal;
    font-weight: 700;
    margin-left: 4px;
}

.chart-trend.up {
    color: #4ade80;
}

.chart-trend.down {
    color: #f59e0b;
}

.chart-trend.flat {
    color: #cbd5e1;
}

.value-tone.good {
    color: #86efac;
}

.value-tone.warn {
    color: #fde68a;
}

.value-tone.risk {
    color: #fdba74;
}

.risk-banner {
    border: 1px solid rgba(249, 115, 22, 0.55);
    background: rgba(249, 115, 22, 0.12);
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0 12px;
}

.risk-banner.low {
    border-color: rgba(163, 230, 53, 0.55);
    background: rgba(163, 230, 53, 0.12);
}

.risk-banner h3 {
    margin: 0 0 4px;
}

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

.visual-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.42);
    padding: 10px;
}

.visual-card h4 {
    margin: 0 0 8px;
    font-size: 13px;
}

.trend-line {
    display: flex;
    align-items: end;
    gap: 6px;
    height: 80px;
}

.trend-point {
    flex: 1;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.95), rgba(34, 211, 238, 0.25));
    border-radius: 6px 6px 2px 2px;
}

.heat-grid {
    display: grid;
    gap: 6px;
}

.heat-row {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 8px;
    align-items: center;
}

.heat-chip {
    height: 12px;
    border-radius: 999px;
}

.leaderboard-list {
    margin: 0;
    padding-left: 18px;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 12px;
}

.impact-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: rgba(34, 211, 238, 0.08);
}

.impact-card .metric-label {
    margin-bottom: 3px;
}

.activity-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.activity-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px;
    background: rgba(15, 23, 42, 0.42);
}

.activity-time {
    font-size: 12px;
    color: var(--accent-a);
    margin-bottom: 4px;
}

.bar-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22d3ee, #a3e635);
}

.bar-target {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 2px;
    background: #f97316;
}

.result-list {
    margin: 0;
    padding-left: 18px;
}

.result-list li {
    margin: 4px 0;
}

.agent-plan-list {
    margin: 0 0 14px;
    padding-left: 18px;
}

.agent-plan-list li {
    margin: 6px 0;
}

.agent-plan-list div {
    color: var(--muted);
    font-size: 13px;
}

.agent-steps {
    display: grid;
    gap: 10px;
}

.agent-step-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.38);
}

.agent-step-card h4 {
    margin: 0;
    font-size: 14px;
}

.agent-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.empty-state {
    color: var(--muted);
    font-family: "Sora", "Avenir Next", "Trebuchet MS", sans-serif;
}

.history-output {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: rgba(2, 6, 23, 0.68);
    min-height: 90px;
}

.history-list {
    margin: 0;
    padding-left: 18px;
}

.history-list li {
    margin: 6px 0;
}

.approval-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mini-btn {
    appearance: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.65);
    color: var(--ink);
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
}

.mini-btn:hover {
    border-color: rgba(248, 250, 252, 0.46);
}

.mini-btn.is-active {
    border-color: rgba(34, 197, 94, 0.85);
    background: rgba(34, 197, 94, 0.16);
}

.exec-dashboard {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
}

.supporting-panel {
    background: linear-gradient(180deg, rgba(13, 20, 33, 0.9), rgba(10, 16, 28, 0.86));
    border-color: rgba(148, 163, 184, 0.18);
}

.proof-panel {
    background:
        linear-gradient(180deg, rgba(10, 20, 35, 0.95), rgba(6, 12, 22, 0.9)),
        var(--surface);
    border-color: rgba(34, 211, 238, 0.22);
}

.executive-summary-panel {
    background:
        linear-gradient(150deg, rgba(15, 23, 42, 0.95), rgba(11, 18, 32, 0.92)),
        var(--surface);
    border-color: rgba(148, 163, 184, 0.22);
}

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

.summary-column {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    padding: 12px;
    background: rgba(2, 6, 23, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.summary-column .eyebrow {
    margin-bottom: 8px;
}

.summary-column .feed-item {
    color: #dbe7f5;
}

.exec-fold {
    margin-bottom: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(11, 18, 32, 0.88));
    overflow: hidden;
}

.exec-fold > summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.exec-fold > summary:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent);
}

.exec-fold > summary::-webkit-details-marker {
    display: none;
}

.exec-fold > summary::after {
    content: "Expand";
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.exec-fold[open] > summary::after {
    content: "Collapse";
    color: #a7f3d0;
}

.exec-fold[open] {
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.25);
}

.exec-fold .fold-card {
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    background: transparent;
}

.exec-fold .fold-card:first-of-type {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.enterprise-fold > summary {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.08), rgba(59, 130, 246, 0.08));
}

.governance-fold > summary {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.08), rgba(20, 83, 45, 0.08));
}

.advanced-view {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 16px;
    padding: 8px 12px 12px;
}

.advanced-view > summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: #e2e8f0;
    padding: 6px 2px 8px;
}

.advanced-view > summary::-webkit-details-marker {
    display: none;
}

.advanced-view[open] > summary {
    color: #a7f3d0;
}

.activity-feed .feed-item {
    border-left: 2px solid rgba(34, 211, 238, 0.35);
    padding-left: 10px;
}

.proof-panel .results-header h2::after,
.flagship-decision-panel .results-header h2::after,
.command-center-hero .results-header h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 2px;
    margin-top: 7px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.95), rgba(74, 222, 128, 0.35));
}

.executive-secondary,
.optional-proof,
.governance-panel,
.agent-panel,
.advanced-view {
    border-color: rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(11, 18, 30, 0.92), rgba(7, 13, 23, 0.9));
}

.executive-secondary .metric-value,
.optional-proof .metric-value,
.governance-panel .metric-value {
    color: #dbe7f5;
}

@keyframes setupFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes workflowPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.18);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.06);
    }
}

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

.exec-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
}

.exec-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: rgba(2, 6, 23, 0.45);
}

.exec-card h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.score-card .score-big {
    font-size: clamp(38px, 6vw, 54px);
    line-height: 1;
    font-weight: 800;
}

.score-card.tone-good {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(22, 163, 74, 0.15);
}

.score-card.tone-warn {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(180, 83, 9, 0.15);
}

.score-card.tone-risk {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(185, 28, 28, 0.16);
}

.gauge {
    width: 124px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    margin: 2px auto 8px;
    background: conic-gradient(#22c55e 0deg, #22c55e 180deg, rgba(148, 163, 184, 0.25) 180deg);
    display: grid;
    place-items: center;
    position: relative;
}

.gauge::before {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: rgba(2, 6, 23, 0.9);
    border: 1px solid var(--line);
}

.gauge-value {
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.segment-heatmap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.seg-cell {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.45);
}

.seg-label {
    font-size: 12px;
    color: #dbeafe;
    margin-bottom: 4px;
}

.seg-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.seg-fill {
    height: 100%;
    border-radius: 999px;
}

.seg-pct {
    margin-top: 4px;
    font-size: 12px;
    color: #e2e8f0;
}

.rep-board {
    display: grid;
    gap: 8px;
}

.rep-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.45);
}

.rep-delta.up { color: #86efac; }
.rep-delta.down { color: #fdba74; }

.action-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.action-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.42);
}

.action-card .agent-hint {
    margin: 4px 0 0 !important;
}

.drilldown-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.drilldown-controls label {
    display: grid;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
}

.drilldown-controls select,
.integration-controls select {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.65);
    color: var(--ink);
    padding: 6px 8px;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.table-wrap th,
.table-wrap td {
    border-bottom: 1px solid var(--line);
    padding: 6px;
    text-align: left;
}

.table-wrap th {
    color: #cbd5e1;
    font-weight: 600;
}

.trend-charts {
    display: grid;
    gap: 8px;
}

.trend-line-mini {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 70px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.42);
}

.trend-line-mini i {
    width: 10px;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.95), rgba(34, 197, 94, 0.7));
}

.alert-feed {
    display: grid;
    gap: 8px;
}

.alert-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.45);
}

.alert-item.warn { border-color: rgba(245, 158, 11, 0.5); }
.alert-item.risk { border-color: rgba(239, 68, 68, 0.45); }
.alert-item.good { border-color: rgba(34, 197, 94, 0.45); }

.integration-icons {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.integration-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.45);
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot.good { background: #22c55e; }
.dot.warn { background: #f59e0b; }
.dot.risk { background: #ef4444; }

.integration-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.toggle-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.command-hero {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 12px;
    margin-bottom: 10px;
}

.command-kpis {
    display: grid;
    gap: 8px;
}

.command-kpis div {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(11, 15, 20, 0.45);
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.command-kpis span {
    color: var(--muted);
    font-size: 12px;
}

.command-kpis strong {
    font-size: 16px;
}

.autonomy-levels {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(11, 15, 20, 0.4);
    margin-bottom: 8px;
}

.autonomy-levels h3 {
    margin: 0 0 4px;
    font-size: 13px;
}

.autonomy-levels p {
    margin: 2px 0;
    font-size: 12px;
    color: #dbeafe;
}

.auto-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 8px;
}

.auto-chip.done {
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(22, 163, 74, 0.16);
}

.auto-chip.wait {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.16);
}

.decision-confidence {
    margin-top: 8px;
}

.confidence-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.24);
    overflow: hidden;
    margin: 4px 0;
}

.confidence-bar i {
    display: block;
    height: 100%;
    width: 93%;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    transition: width 400ms ease;
}

.pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: pulseLive 1.7s infinite;
    vertical-align: middle;
    position: relative;
}

.pulse-dot.warn {
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
}

.pulse-dot.active,
.pulse-dot:not(.warn) {
    animation: commandPulse 1.8s ease-in-out infinite;
}

@keyframes pulseLive {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70% { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes commandPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5), 0 0 0 0 rgba(34, 211, 238, 0.16);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0), 0 0 0 14px rgba(34, 211, 238, 0.04);
    }
}

.thinking {
    position: relative;
    padding-left: 16px;
}

.thinking::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-a);
    transform: translateY(-50%);
    animation: scanBlink 1.2s infinite ease-in-out;
}

@keyframes scanBlink {
    0%,100% { opacity: 0.25; transform: translateY(-50%) scale(0.7); }
    50% { opacity: 1; transform: translateY(-50%) scale(1); }
}

.health-dial {
    width: 150px;
    aspect-ratio: 1/1;
    margin: 6px auto 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#ef4444 0deg, #f59e0b 140deg, #22c55e 290deg, rgba(148,163,184,.22) 290deg);
    position: relative;
    animation: dialPulse 7s ease-in-out infinite;
}

.health-dial::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: rgba(11, 15, 20, 0.95);
    border: 1px solid var(--line);
}

.health-dial > div {
    position: relative;
    z-index: 1;
    font-size: 28px;
    font-weight: 800;
}

.health-dial::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border-top: 2px solid rgba(6, 182, 212, 0.65);
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-left: 2px solid transparent;
    animation: dialSweep 7s linear infinite;
}

@keyframes dialPulse {
    0%, 84%, 100% { transform: rotate(0deg) scale(1); box-shadow: 0 0 0 rgba(6, 182, 212, 0); }
    88% { transform: rotate(-1deg) scale(1.015); box-shadow: 0 0 16px rgba(6, 182, 212, 0.22); }
    92% { transform: rotate(1deg) scale(1.02); box-shadow: 0 0 22px rgba(34, 197, 94, 0.2); }
    96% { transform: rotate(0deg) scale(1.01); box-shadow: 0 0 10px rgba(6, 182, 212, 0.16); }
}

@keyframes dialSweep {
    0% { transform: rotate(0deg); opacity: 0.35; }
    60% { opacity: 0.6; }
    100% { transform: rotate(360deg); opacity: 0.35; }
}

.dial-wrap.two-stack {
    display: grid;
    gap: 10px;
}

.stability-radar-block {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    background: rgba(11, 15, 20, 0.45);
}

.stability-radar {
    width: 170px;
    max-width: 100%;
    aspect-ratio: 1/1;
    margin: 6px auto;
    border-radius: 50%;
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background:
        radial-gradient(circle, rgba(34, 197, 94, 0.22) 0 24%, rgba(234, 179, 8, 0.18) 24% 46%, rgba(249, 115, 22, 0.16) 46% 67%, rgba(239, 68, 68, 0.14) 67% 100%);
}

.radar-zone {
    position: absolute;
    font-size: 10px;
    color: #e2e8f0;
}

.z-critical { left: 6px; bottom: 8px; }
.z-risk { left: 10px; top: 20px; }
.z-watch { right: 10px; top: 20px; }
.z-safe { right: 8px; bottom: 8px; }

.radar-indicator {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    left: 82%;
    top: 26%;
    animation: pulseLive 1.4s infinite;
}

.stability-list p {
    margin: 2px 0;
    font-size: 12px;
}

.warning-panel {
    border: 1px solid rgba(245, 158, 11, 0.52);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(251, 191, 36, 0.08));
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
}

.warning-panel h2 {
    margin: 0 0 4px;
    font-size: clamp(22px, 3.4vw, 30px);
}

.warning-panel p {
    margin: 0;
    font-size: clamp(16px, 2.3vw, 22px);
    color: #fef3c7;
}

.prediction-panel {
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.09);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 14px;
}

.prediction-panel h2 {
    margin: 0 0 10px;
}

.threat-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.threat-card {
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(245, 158, 11, 0.12);
}

.threat-card h3 {
    margin: 0 0 4px;
    font-size: 14px;
}

.threat-card p {
    margin: 2px 0;
    font-size: 12px;
}

.deployment-network .deployment-industries {
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(17, 24, 39, 0.72);
}

.deployment-network .deployment-industries p {
    margin: 3px 0;
    font-size: 12px;
}

.governance-panel .metric-value {
    font-size: 14px;
    line-height: 1.35;
}

.governance-panel .metric p.agent-hint {
    margin: 4px 0 !important;
}

.roi-engine {
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: rgba(17, 24, 39, 0.8);
}

.roi-engine h3 {
    margin: 0 0 6px;
}

.roi-engine p {
    margin: 4px 0;
}

.board-report-output {
    margin-top: 10px;
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 12px;
    padding: 10px;
    background: rgba(6, 182, 212, 0.08);
}

.board-report-output.is-hidden {
    display: none;
}

.board-report-output h3 {
    margin: 0 0 8px;
}

.board-report-output p {
    margin: 4px 0;
}

.prediction-compare {
    display: grid;
    grid-template-columns: 1fr 56px 1fr 1fr;
    gap: 8px;
    align-items: stretch;
}

.prediction-arrow {
    display: grid;
    place-items: center;
    font-size: 28px;
    color: #93c5fd;
    animation: arrowFlow 1.2s infinite ease-in-out;
}

@keyframes arrowFlow {
    0%, 100% { transform: translateX(-3px); opacity: 0.55; }
    50% { transform: translateX(3px); opacity: 1; }
}

.metric.success {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(22, 163, 74, 0.18);
}

.pipeline-risk-graph {
    display: grid;
    gap: 8px;
}

.risk-stack-row {
    display: grid;
    grid-template-columns: 132px 1fr 48px;
    gap: 8px;
    align-items: center;
    font-size: 12px;
}

.risk-stack-track {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.risk-stack-track i {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    border-radius: 999px;
}

.risk-now {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.9), rgba(245, 158, 11, 0.85));
}

.risk-trend {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.55), rgba(34, 197, 94, 0.5));
    opacity: 0.65;
}

.decision-checklist .decision-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: rgba(11, 15, 20, 0.45);
}

.decision-checklist p {
    margin: 6px 0;
    color: #dcfce7;
}

.live-console-panel {
    border-color: rgba(59, 130, 246, 0.35);
}

.live-console {
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 12px;
    background: #070b10;
    color: #93c5fd;
    font-family: "Menlo", "Consolas", monospace;
    font-size: 12px;
    padding: 10px;
    min-height: 120px;
    max-height: 180px;
    overflow: auto;
    display: grid;
    gap: 5px;
}

.timeline-panel .results-header {
    align-items: flex-start;
}

.tempo-badge {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
    background: rgba(17, 24, 39, 0.82);
    min-width: 220px;
}

.tempo-badge p {
    margin: 3px 0;
    font-size: 12px;
}

.action-timeline {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
    background: rgba(17, 24, 39, 0.72);
}

.timeline-time {
    color: #93c5fd;
    font-size: 12px;
    font-weight: 700;
}

.live-console.typing {
    animation: terminalFlash 260ms ease-out;
}

@keyframes terminalFlash {
    from { box-shadow: 0 0 0 rgba(59, 130, 246, 0); }
    to { box-shadow: 0 0 14px rgba(59, 130, 246, 0.25); }
}

@keyframes loginPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.18);
        opacity: 0.8;
    }
}

.integration-icons.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.impact-snapshot {
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: rgba(11, 15, 20, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.impact-snapshot h3 {
    margin: 0 0 6px;
    font-size: 14px;
}

.impact-snapshot p {
    margin: 4px 0;
    color: #dbeafe;
    font-weight: 600;
}

.mode-executive .command-center-hero {
    border-color: rgba(74, 222, 128, 0.32);
}

.mode-audit .command-center-hero {
    border-color: rgba(125, 211, 252, 0.32);
}

.mode-operator .command-center-hero {
    border-color: rgba(245, 158, 11, 0.28);
}

.mode-audit .executive-summary-panel {
    background:
        linear-gradient(145deg, rgba(12, 20, 35, 0.95), rgba(10, 15, 28, 0.92)),
        var(--surface);
}

.mode-operator .proof-panel,
.mode-operator .supporting-panel {
    background: linear-gradient(180deg, rgba(16, 21, 32, 0.95), rgba(10, 16, 26, 0.92));
}

.data-confidence {
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: rgba(17, 24, 39, 0.8);
}

.data-confidence h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.dc-row {
    display: grid;
    grid-template-columns: 140px 1fr 44px;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    margin-bottom: 6px;
}

.dc-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.dc-track i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #06b6d4, #22c55e);
    transition: width 300ms ease;
}

.trust-footer {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.primary-mode-switch {
    align-items: center;
}

.primary-mode-switch .mini-btn {
    min-width: 132px;
}

.executive-hero-strip {
    padding: 24px;
}

.executive-hero-header {
    align-items: flex-start;
}

.executive-hero-helper {
    margin: 4px 0 0;
    color: rgba(203, 213, 225, 0.58);
}

.executive-briefing-shell {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.06), transparent 28%),
        linear-gradient(160deg, rgba(8, 14, 24, 0.82), rgba(5, 11, 20, 0.74));
}

.executive-hero-grid {
    grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.executive-hero-grid .metric:first-child,
.executive-hero-grid .metric-hero {
    border-color: rgba(34, 211, 238, 0.32);
    background:
        linear-gradient(155deg, rgba(7, 18, 30, 0.96), rgba(6, 13, 24, 0.94)),
        rgba(15, 23, 42, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 20px 48px rgba(2, 6, 23, 0.24);
}

.executive-hero-grid .metric .metric-value {
    font-size: clamp(24px, 3vw, 42px);
}

.executive-action-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) auto;
    gap: 16px;
    align-items: end;
    padding: 4px 2px 0;
}

.executive-brief-copy {
    display: grid;
    gap: 6px;
}

.executive-brief-copy .agent-hint {
    margin: 0;
}

.executive-hero-actions {
    align-items: center;
    gap: 10px 14px;
    justify-content: flex-end;
}

.executive-proof-ribbon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    background: rgba(6, 12, 24, 0.58);
}

.executive-proof-primary {
    display: grid;
    gap: 3px;
}

.executive-proof-ribbon strong {
    font-size: 14px;
    color: #ecfeff;
}

.executive-proof-ribbon span {
    font-size: 12px;
    color: rgba(203, 213, 225, 0.74);
}

.executive-proof-ribbon.is-live {
    border-color: rgba(34, 211, 238, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.08), transparent 28%),
        rgba(6, 12, 24, 0.72);
}

.executive-proof-progress {
    min-width: min(440px, 100%);
    margin: 0;
}

.flagship-decision-panel {
    border-color: rgba(148, 163, 184, 0.12);
    background: linear-gradient(165deg, rgba(9, 14, 24, 0.82), rgba(7, 12, 22, 0.78));
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.14);
}

.flagship-decision-panel .results-header h2 {
    font-size: 18px;
}

.flagship-decision-panel .metric-value {
    font-size: clamp(18px, 1.9vw, 28px);
}

.flagship-decision-panel .approval-actions {
    margin-top: 10px;
}

.command-center-hero,
.connected-env-panel,
.deployment-network,
.prediction-panel,
.advanced-view,
.governance-fold .fold-card,
.enterprise-fold .fold-card {
    border-color: rgba(148, 163, 184, 0.1);
}

.command-center-hero .results-header h2,
.connected-env-panel .results-header h2,
.deployment-network .results-header h2,
.prediction-panel h2,
.advanced-view .results-header h2 {
    letter-spacing: 0.01em;
}

.command-center-hero .agent-hint,
.connected-env-panel .agent-hint,
.deployment-network .agent-hint,
.prediction-panel .agent-hint,
.advanced-view .agent-hint {
    color: rgba(203, 213, 225, 0.68);
}

.advanced-view summary,
.enterprise-fold summary,
.operator-command-panel summary {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    background: rgba(5, 10, 18, 0.46);
}

.link-btn {
    border: none;
    background: transparent;
    color: #67e8f9;
    padding: 0;
    min-width: 0;
    font-weight: 600;
}

.link-btn:hover,
.link-btn:focus-visible {
    text-decoration: underline;
    background: transparent;
}

.threat-summary-panel .results-header,
.top-actions-panel .results-header {
    align-items: center;
}

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

.threat-row {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) repeat(3, minmax(0, 0.72fr)) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(7, 12, 22, 0.68), rgba(5, 10, 18, 0.56));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.threat-row button {
    justify-self: end;
}

.threat-row:hover {
    transform: translateY(-1px);
    border-color: rgba(103, 232, 249, 0.24);
}

.threat-row.is-active {
    border-color: rgba(103, 232, 249, 0.34);
    background: linear-gradient(180deg, rgba(8, 16, 28, 0.86), rgba(5, 10, 18, 0.7));
}

.threat-row-main {
    display: grid;
    gap: 2px;
}

.threat-row-main strong {
    font-size: 15px;
}

.threat-meta {
    font-size: 13px;
    color: #dbeafe;
}

.threat-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(8, 15, 30, 0.7);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
}

.threat-status.monitoring {
    border-color: rgba(96, 165, 250, 0.32);
    color: #bfdbfe;
}

.threat-status.ready {
    border-color: rgba(34, 197, 94, 0.32);
    color: #bbf7d0;
}

.threat-status.approval {
    border-color: rgba(245, 158, 11, 0.32);
    color: #fde68a;
}

.empty-state-panel {
    display: grid;
    gap: 8px;
    place-items: start;
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: rgba(7, 12, 22, 0.5);
}

.top-actions-panel .today-decision-card {
    display: grid;
    gap: 8px;
    border-radius: 14px;
    padding: 14px 16px;
    border-color: rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(7, 12, 22, 0.68), rgba(5, 10, 18, 0.58));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.top-actions-panel .today-decision-card .agent-hint {
    margin: 0;
}

.action-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.decision-intelligence-fold summary {
    font-size: 14px;
    letter-spacing: 0.02em;
}

.decision-intelligence-fold:not([open]) .fold-card {
    display: none;
}

.operator-command-panel {
    margin-top: 16px;
}

.operator-command-panel summary {
    cursor: pointer;
    font-weight: 700;
}

.prompt-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 12px;
}

.prompt-chip {
    background: rgba(8, 15, 30, 0.76);
}

.threat-detail-drawer {
    position: fixed;
    top: 86px;
    right: 24px;
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    z-index: 55;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.16), transparent 32%),
        linear-gradient(165deg, rgba(8, 14, 26, 0.98), rgba(4, 10, 20, 0.96));
    box-shadow: 0 28px 72px rgba(2, 6, 23, 0.4);
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateX(18px) scale(0.985);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.threat-detail-drawer.is-open {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

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

.audit-console-card {
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(7, 12, 22, 0.54);
}

.audit-console-card h3,
.audit-console-card p {
    margin: 0;
}

.audit-summary-panel,
.audit-export-panel {
    border-color: rgba(148, 163, 184, 0.1);
    background: linear-gradient(165deg, rgba(9, 14, 24, 0.84), rgba(7, 12, 22, 0.78));
}

.audit-summary-actions {
    margin-top: 14px;
}

.audit-export-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    margin-top: 10px;
}

.audit-field {
    display: grid;
    gap: 6px;
}

.audit-field span {
    font-size: 12px;
    color: rgba(203, 213, 225, 0.72);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.audit-field input,
.audit-field select {
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(5, 10, 18, 0.72);
    color: #f8fafc;
    padding: 0 12px;
}

.audit-ledger-table {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.audit-ledger-row {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(7, 12, 22, 0.68), rgba(5, 10, 18, 0.56));
    overflow: hidden;
}

.audit-ledger-head {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.audit-ledger-row[open] .audit-ledger-head {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.audit-ledger-head:hover {
    background: rgba(8, 15, 30, 0.44);
}

.audit-ledger-kind {
    display: grid;
    gap: 2px;
}

.audit-ledger-kind strong {
    font-size: 14px;
}

.audit-ledger-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 12px;
    font-weight: 700;
    background: rgba(8, 15, 30, 0.7);
}

.audit-ledger-badge.success {
    border-color: rgba(34, 197, 94, 0.28);
    color: #bbf7d0;
}

.audit-ledger-badge.failure {
    border-color: rgba(248, 113, 113, 0.28);
    color: #fecaca;
}

.audit-ledger-detail {
    display: grid;
    gap: 12px;
    padding: 14px;
}

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

.audit-ledger-detail pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.55;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(3, 8, 16, 0.72);
    color: #dbeafe;
}

.audit-ledger-detail h4 {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.62);
}

.proof-link {
    cursor: pointer;
}

.proof-link:hover {
    border-color: rgba(103, 232, 249, 0.28);
}

body.mode-executive .authority-banner {
    margin-bottom: 14px;
}

body.mode-executive section.exec-dashboard[data-scope="executive"]:not(.executive-premium),
body.mode-executive .executive-summary-panel,
body.mode-executive .top-actions-panel,
body.mode-executive .flagship-decision-panel,
body.mode-executive .proof-panel,
body.mode-executive .founder-report-panel:not(.ai-cro-brief-panel) {
    display: none !important;
}

body.mode-executive .command-center-hero,
body.mode-executive .supporting-panel:not(.threat-summary-panel),
body.mode-executive .warning-panel,
body.mode-executive .executive-secondary:not(.proof-panel):not(.founder-report-panel):not(.flagship-decision-panel),
body.mode-executive .top-authority,
body.mode-executive .top-impact-strip,
body.mode-executive .header {
    display: none !important;
}

body.mode-executive .flow-chips,
body.mode-executive .operating-mode-strip {
    display: none !important;
}

body.page-proof .authority-top-row,
body.page-proof .flow-chips,
body.page-proof .operating-mode-strip,
body.page-proof section.exec-dashboard,
body.page-proof details.exec-fold,
body.page-proof .monitor-panel,
body.page-proof .operator-command-panel,
body.page-proof .advanced-view {
    display: none !important;
}

body.page-proof #proof-page {
    display: block !important;
}

body.page-proof .premium-top-nav-center button,
body.page-proof #back-to-exec-btn {
    display: inline-flex;
}

body.mode-executive .authority-top-row {
    align-items: end;
}

body.mode-executive #business-support {
    color: rgba(203, 213, 225, 0.54);
}

body.mode-executive .trust-strip {
    margin-bottom: 10px;
}

body.mode-executive .supporting-panel,
body.mode-executive .top-actions-panel,
body.mode-executive .flagship-decision-panel,
body.mode-executive .proof-panel,
body.mode-executive .founder-report-panel {
    border-color: rgba(148, 163, 184, 0.1);
}

body.mode-operator .state-strip,
body.mode-operator .founder-report-panel,
body.mode-operator .flagship-decision-panel,
body.mode-operator .proof-panel,
body.mode-operator .threat-summary-panel,
body.mode-operator .warning-panel {
    display: none !important;
}

body.mode-audit .state-strip,
body.mode-audit .command-center-hero,
body.mode-audit .threat-summary-panel,
body.mode-audit .top-actions-panel,
body.mode-audit .flagship-decision-panel,
body.mode-audit .proof-panel,
body.mode-audit .warning-panel,
body.mode-audit .operator-command-panel,
body.mode-audit .founder-report-panel {
    display: none !important;
}

body.mode-audit .advanced-view,
body.mode-audit .governance-fold,
body.mode-audit #board-mode-panel,
body.mode-audit .deployment-network,
body.mode-audit .connected-env-panel,
body.mode-audit .prediction-panel,
body.mode-audit .enterprise-fold[data-scope="audit"] {
    display: block !important;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .premium-top-nav,
    .premium-threat-row,
    .auctor-loop {
        grid-template-columns: 1fr;
    }

    .premium-top-nav-center,
    .premium-top-nav-right {
        justify-content: flex-start;
    }

    .save-timeline-entry,
    .recommendation-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

body.mode-executive .exec-dashboard,
body.mode-operator .exec-dashboard,
body.mode-audit .exec-dashboard {
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.18);
}

body.mode-executive .exec-dashboard {
    background:
        linear-gradient(165deg, rgba(11, 16, 26, 0.9), rgba(8, 13, 22, 0.86));
}

body.mode-executive .exec-fold:not(.decision-intelligence-fold) {
    display: none !important;
}

@media (max-width: 700px) {
    .login-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 22px 18px;
    }

    .authority-top-row {
        flex-direction: column;
    }

    .app-brand-logo {
        width: 92px;
    }

    .authority-logo {
        width: 110px;
    }

    .mode-actions {
        width: 100%;
    }

    .morning-brief-btn {
        width: 100%;
    }

    .executive-hero-grid,
    .audit-console-grid,
    .threat-row,
    .audit-export-toolbar,
    .audit-ledger-head,
    .audit-ledger-detail-grid {
        grid-template-columns: 1fr;
    }

    .executive-action-strip {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .executive-hero-actions {
        align-items: flex-start;
        justify-content: flex-start;
    }

    #connected-systems-proof,
    .operations-split {
        grid-template-columns: 1fr;
    }

    .agent-controls {
        grid-template-columns: 1fr;
    }

    .agent-button {
        min-height: 44px;
    }

    .company-context {
        grid-template-columns: 1fr;
    }

    #openai-status,
    #connect-openai-btn {
        grid-column: 1 / -1;
    }

    .button-container {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

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

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

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

    .exec-grid,
    .exec-grid.two-col,
    .action-cards,
    .segment-heatmap {
        grid-template-columns: 1fr;
    }

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

    .command-center-footer,
    .summary-surface {
        grid-template-columns: 1fr;
    }

    .prediction-compare {
        grid-template-columns: 1fr;
    }

    .risk-stack-row {
        grid-template-columns: 1fr;
    }

}

/* Enterprise refinement layer */
:root {
    --surface: #0f1724;
    --surface-strong: #0a121d;
    --line: rgba(148, 163, 184, 0.22);
}

body {
    letter-spacing: 0.01em;
    background:
        radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.16), transparent 35%),
        radial-gradient(circle at 88% 12%, rgba(6, 182, 212, 0.13), transparent 30%),
        linear-gradient(145deg, #070b12, #0b1019 40%, #101a2a);
}

.page {
    max-width: 1380px;
    padding: 14px 14px 28px;
}

.authority-banner,
.exec-dashboard,
.agent-panel,
.quick-actions,
.advanced-view,
.settings-panel,
.results,
.history-panel {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: 0 12px 32px rgba(3, 8, 20, 0.35);
}

.authority-banner {
    background: linear-gradient(145deg, rgba(29, 78, 216, 0.15), rgba(8, 47, 73, 0.24));
    border-color: rgba(59, 130, 246, 0.45);
    margin-bottom: 8px;
    padding: 8px 12px;
}

.control-bar {
    border-color: rgba(125, 211, 252, 0.3);
    background: rgba(2, 6, 23, 0.86);
    margin-bottom: 8px;
    padding: 6px 8px;
}

.results-header h2,
.exec-dashboard h2,
.settings-panel h2,
.agent-panel h2 {
    letter-spacing: 0.02em;
}

.metric-grid {
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 8px;
}

.metric {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.68));
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    padding: 9px;
}

.metric-value {
    font-size: clamp(16px, 1.45vw, 20px);
    font-weight: 760;
    letter-spacing: 0.01em;
}

.status {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(2, 6, 23, 0.72);
}

.status.running {
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.32);
}

.status.success {
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.34);
}

.status.error {
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.34);
}

.mini-btn {
    border-color: rgba(125, 211, 252, 0.26);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.82));
    border-radius: 10px;
    padding: 7px 11px;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.mini-btn:hover,
.mini-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, 0.58);
    box-shadow: 0 8px 16px rgba(8, 47, 73, 0.35);
    outline: none;
}

.agent-button.primary-cta {
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(6, 182, 212, 0.24), 0 0 0 1px rgba(34, 197, 94, 0.32) inset;
}

.agent-button.primary-cta:hover,
.agent-button.primary-cta:focus-visible {
    box-shadow: 0 18px 44px rgba(6, 182, 212, 0.32), 0 0 0 1px rgba(34, 197, 94, 0.5) inset;
}

.decision-spine {
    border-color: rgba(34, 197, 94, 0.62);
    background:
        radial-gradient(circle at 85% 0%, rgba(6, 182, 212, 0.14), transparent 32%),
        linear-gradient(145deg, rgba(22, 163, 74, 0.14), rgba(2, 6, 23, 0.9));
}

.exec-dashboard {
    padding: 11px;
    margin-bottom: 9px;
}

.results-header {
    gap: 8px;
}

.results-header h2,
.exec-dashboard h2 {
    margin: 0;
    font-size: clamp(14px, 1.2vw, 17px);
}

.agent-hint {
    margin-top: 6px !important;
}

.approval-actions {
    margin-top: 6px;
    gap: 6px;
}

.mini-btn {
    font-size: 11px;
    padding: 6px 9px;
}

@media (min-width: 1200px) {
    .metric-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.warning-panel,
.threat-panel,
.prediction-panel {
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.34);
}

.live-console,
.history-output,
.result-output {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.86), rgba(3, 10, 28, 0.78));
    border-color: rgba(96, 165, 250, 0.22);
}

.tiny-trend i {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.95), rgba(34, 197, 94, 0.85));
}

.trust-footer .badge {
    border-color: rgba(125, 211, 252, 0.35);
    background: rgba(8, 20, 39, 0.82);
}

@media (max-width: 980px) {
    .login-portal-grid {
        grid-template-columns: 1fr;
    }

    .login-brandbar {
        grid-template-columns: auto 1fr;
    }

    .login-signal-cluster {
        display: none;
    }

    .login-panel-context {
        min-height: auto;
        padding: 4px 0 0;
    }

    .login-minimal-copy,
    .login-identity-rail {
        max-width: none;
    }

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

@media (max-width: 640px) {
    .login-shell {
        padding: 14px;
    }

    .login-card {
        padding: 12px;
        border-radius: 20px;
        margin-block: 10px 18px;
    }

    .login-panel-context,
    .login-panel-access {
        padding: 18px;
        border-radius: 22px;
    }

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

    .trust-strip {
        grid-template-columns: 1fr;
    }
}

/* Final executive polish layer */
:root {
    --space-1: 6px;
    --space-2: 10px;
    --space-3: 14px;
    --space-4: 18px;
    --space-5: 24px;
}

body {
    line-height: 1.42;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.page {
    max-width: 1240px;
    padding: var(--space-4) var(--space-4) 34px;
}

.authority-banner,
.exec-dashboard,
.agent-panel,
.quick-actions,
.advanced-view,
.settings-panel,
.results,
.history-panel {
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(3, 8, 20, 0.28);
}

.authority-banner {
    padding: var(--space-2) var(--space-3);
}

.exec-dashboard {
    padding: var(--space-3);
    margin-bottom: var(--space-2);
}

.results-header {
    margin-bottom: var(--space-1);
}

.results-header h2,
.exec-dashboard h2 {
    font-size: clamp(14px, 1.15vw, 16px);
    font-weight: 700;
    letter-spacing: 0.015em;
}

.metric {
    border-radius: 12px;
    padding: var(--space-2);
}

.metric-label {
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.88;
}

.metric-value {
    font-size: clamp(16px, 1.3vw, 19px);
    font-weight: 740;
}

.agent-hint,
.empty-state {
    font-size: 12px;
    line-height: 1.45;
}

.status {
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 10px;
}

.mini-btn,
.agent-button {
    border-radius: 10px;
}

.agent-button {
    min-height: 38px;
}

.agent-button.secondary {
    border-color: rgba(148, 163, 184, 0.36);
}

.agent-button.primary-cta {
    min-height: 66px;
    box-shadow: 0 10px 24px rgba(6, 182, 212, 0.2), 0 0 0 1px rgba(34, 197, 94, 0.28) inset;
}

.agent-button.primary-cta:hover,
.agent-button.primary-cta:focus-visible {
    transform: translateY(-1px) scale(1.006);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.24), 0 0 0 1px rgba(34, 197, 94, 0.42) inset;
    filter: brightness(1.02);
}

.agent-button:focus-visible,
.mini-btn:focus-visible,
.button:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.65);
    outline-offset: 2px;
}

.trust-strip {
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.trust-item {
    min-height: 64px;
    display: grid;
    align-content: center;
}

.today-decision-card {
    border-radius: 12px;
    padding: 11px;
}

.activity-feed .feed-item {
    border-left-width: 3px;
}

/* motion restraint */
.pulse-dot {
    animation-duration: 2.4s;
}

.health-dial,
.health-dial::after {
    animation-duration: 9s;
}

.agent-button.primary-cta.pulse {
    animation-duration: 540ms;
}

.live-console.typing {
    animation-duration: 180ms;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Login route refinement */
body.session-locked {
    overflow-y: auto;
}

.login-shell {
    align-items: center;
    padding: 32px 20px;
}

.login-backdrop {
    background:
        radial-gradient(circle at 20% 18%, rgba(34, 211, 238, 0.08), transparent 28%),
        radial-gradient(circle at 82% 16%, rgba(74, 222, 128, 0.06), transparent 22%),
        rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.login-shell::before {
    content: "";
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 86vw);
    height: min(400px, 52vh);
    background: radial-gradient(circle, rgba(58, 123, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.login-card.login-card-minimal {
    width: min(480px, calc(100vw - 32px));
    padding: 16px 20px 18px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background:
        linear-gradient(165deg, rgba(10, 15, 25, 0.92), rgba(7, 12, 22, 0.9));
    box-shadow: 0 24px 64px rgba(2, 6, 23, 0.28);
    display: grid;
    gap: 18px;
    position: relative;
}

.login-card.login-card-minimal .login-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    margin-top: 8px;
    margin-bottom: 18px;
}

.login-logo {
    width: 200px;
    max-width: 60%;
    height: auto;
    opacity: 0.95;
    margin-bottom: 12px;
}

.login-product-descriptor {
    margin: 0 !important;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.system-status {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(58, 123, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3A7BFF;
    box-shadow: 0 0 8px rgba(58, 123, 255, 0.4);
}

.login-card.login-card-minimal .login-center-stack {
    display: grid;
    gap: 12px;
}

.login-card.login-card-minimal #login-kicker {
    margin: 0 !important;
}

.login-card.login-card-minimal h1 {
    margin: 0;
    max-width: none;
    font-size: clamp(30px, 4.8vw, 40px);
    line-height: 1.04;
    letter-spacing: -0.045em;
    text-align: center;
}

.login-card.login-card-minimal #login-subtitle {
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.74);
    text-align: center;
}

.login-access-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    background: rgba(10, 15, 25, 0.85);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.22);
    display: grid;
    gap: 16px;
}

.login-step {
    display: grid;
    gap: 14px;
}

.login-field {
    display: grid;
    gap: 8px;
    color: #dbe7f5;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.login-field input,
.login-field select {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.72);
    color: #f8fafc;
    padding: 13px 14px;
    min-height: 46px;
    font-size: 15px;
}

.login-field input::placeholder {
    color: rgba(203, 213, 225, 0.48);
}

.login-field input:focus,
.login-field select:focus {
    outline: none;
    border-color: rgba(34, 211, 238, 0.44);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.login-primary-btn {
    min-height: 46px;
    border-radius: 14px;
    background: linear-gradient(90deg, #3A7BFF, #18C964);
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.18);
}

.login-primary-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.login-primary-btn:active {
    transform: translateY(1px);
}

.login-demo-link {
    appearance: none;
    background: none;
    border: none;
    color: rgba(186, 230, 253, 0.88);
    font-size: 13px;
    padding: 0;
    cursor: pointer;
    justify-self: start;
}

.login-demo-link:hover,
.login-demo-link:focus-visible {
    color: #ecfeff;
    text-decoration: underline;
}

.login-detected-panel {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(8, 15, 29, 0.62);
}

.login-detected-panel .eyebrow {
    margin: 0 !important;
}

.login-detected-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: rgba(203, 213, 225, 0.78);
}

.login-detected-row strong {
    color: #ecfeff;
    text-align: right;
}

.login-trust-line,
.login-footer-note {
    margin: 0 !important;
    text-align: center;
}

.login-trust-line {
    font-size: 12px;
    color: rgba(203, 213, 225, 0.6);
}

.login-footer-note {
    font-size: 11px;
    color: rgba(203, 213, 225, 0.5);
}

.login-footer-note a {
    color: rgba(186, 230, 253, 0.82);
}

.login-pricing-card {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(4, 10, 22, 0.48);
}

.login-pricing-card .eyebrow,
.login-pricing-card .agent-hint,
.login-pricing-card h3 {
    margin: 0 !important;
}

.login-pricing-card h3 {
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    font-size: 18px;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .login-shell {
        padding: 16px;
    }

    .login-card.login-card-minimal {
        width: calc(100vw - 24px);
        padding: 18px 18px 16px;
        border-radius: 20px;
    }

    .login-logo {
        width: 150px;
        max-width: 68%;
    }

    .login-access-card {
        padding: 18px;
    }
}
.proof-package-shell {
    gap: 18px;
}

.proof-package-item {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(34, 197, 94, 0.12);
    background: rgba(255, 255, 255, 0.82);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.proof-package-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    border-color: rgba(34, 197, 94, 0.28);
}

.proof-package-item.is-active {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 18px 34px rgba(34, 197, 94, 0.12);
}

.proof-tab-strip {
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.revenue-control,
.auctor-loop-shell,
.top-threats,
.next-action,
.saved-timeline,
.ai-brief {
    margin: 18px 24px;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #1f2933;
    background: rgba(9, 14, 20, 0.92);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
}

.revenue-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.revenue-card {
    background: #0e1318;
    border: 1px solid #1f2933;
    padding: 18px;
    border-radius: 10px;
    font-size: 18px;
    display: grid;
    gap: 8px;
}

.label {
    font-size: 12px;
    opacity: .7;
}

.loop-steps {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.loop-step {
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
}

.action-card {
    background: #0e1318;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #1f2933;
}

.action-metrics {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.primary-action {
    background: #00ff9c;
    border: none;
    padding: 10px 16px;
    margin-top: 12px;
    cursor: pointer;
    border-radius: 8px;
    color: #04130d;
    font-weight: 700;
}

.twin-ranked-table {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.twin-ranked-row {
    display: grid;
    grid-template-columns: 1.2fr repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    border: 1px solid #1f2933;
    border-radius: 10px;
    background: #0e1318;
}

.threat-card {
    padding: 14px 16px;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.02);
}

#save-events {
    display: grid;
    gap: 10px;
}

#proof-page-first-win {
    border-color: rgba(34, 197, 94, 0.22);
    box-shadow: 0 20px 44px rgba(34, 197, 94, 0.12);
}

.provider-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.provider-preview-card {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 8px;
}

.provider-preview-card .provider-meta {
    font-size: 12px;
    opacity: 0.72;
}

.invite-admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.invite-admin-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.invite-admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

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

@media (max-width: 640px) {
    .revenue-grid {
        grid-template-columns: 1fr;
    }
}

.approval-actions input[type="range"] {
    width: 96px;
    margin-left: 8px;
    accent-color: #22c55e;
    vertical-align: middle;
}

#agents-list .feed-item,
#agents-proposals .feed-item,
#agent-intervention-timeline .feed-item,
#outcome-ledger-list .feed-item {
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

#agents-list .feed-item:hover,
#agents-proposals .feed-item:hover,
#agent-intervention-timeline .feed-item:hover,
#outcome-ledger-list .feed-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}

/* ═══════════════════════════════════════════════════════
   AUCTOR ENHANCED — Visual Density & Live Data Upgrade
   ═══════════════════════════════════════════════════════ */

/* Monospace numbers for financial data */
.mono, .metric-value, .metric span[id], #metric-protected, #metric-risk, #metric-actions,
#rcc-revenue-protected, #rcc-revenue-risk, #rcc-interventions, #rcc-forecast-stability,
#saved-today-counter, .kpi-value, [data-metric] {
    font-family: "JetBrains Mono", "Menlo", "Consolas", monospace !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* Live pipeline visualization */
.runtime-pipeline {
    display: flex;
    gap: 2px;
    margin: 12px 0 16px;
    padding: 0;
}
.runtime-pipeline .stage {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    border-top: 2px solid rgba(148,163,184,0.15);
    background: rgba(15,23,42,0.6);
    transition: all 0.3s ease;
    position: relative;
}
.runtime-pipeline .stage:first-child { border-radius: 5px 0 0 5px; }
.runtime-pipeline .stage:last-child { border-radius: 0 5px 5px 0; }
.runtime-pipeline .stage.done {
    border-top-color: #00e5a0;
    color: #00e5a0;
}
.runtime-pipeline .stage.active {
    border-top-color: #f59e0b;
    color: #f59e0b;
    background: rgba(245,158,11,0.08);
}
.runtime-pipeline .stage.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #f59e0b;
    border-radius: 1px;
    animation: scanLine 1.5s ease-in-out infinite;
}
@keyframes scanLine {
    0% { width: 0; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 0; left: 100%; }
}
.runtime-pipeline .stage .stage-check {
    display: block;
    font-size: 8px;
    margin-top: 2px;
    font-family: "JetBrains Mono", monospace;
}

/* WebSocket status indicator */
.ws-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.04em;
}
.ws-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}
.ws-dot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0.3;
    animation: wsPulseRing 2s ease infinite;
}
.ws-dot.live { background: #00e5a0; color: #00e5a0; }
.ws-dot.offline { background: #ff3d5c; color: #ff3d5c; }
@keyframes wsPulseRing {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0; transform: scale(2.2); }
}

/* Live event feed */
.live-feed {
    max-height: 280px;
    overflow-y: auto;
    margin-top: 8px;
}
.live-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: background 0.15s;
    font-size: 12px;
}
.live-feed-item:first-child {
    border-left-color: var(--accent-c);
    background: rgba(34,197,94,0.04);
}
.live-feed-item .feed-time {
    min-width: 48px;
    font-size: 9px;
    color: rgba(148,163,184,0.5);
    font-family: "JetBrains Mono", monospace;
    padding-top: 2px;
}
.live-feed-item .feed-type {
    display: inline-flex;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-family: "JetBrains Mono", monospace;
    background: rgba(59,130,246,0.12);
    color: #3b82f6;
    border: 1px solid rgba(59,130,246,0.2);
}
.live-feed-item .feed-type.risk { background: rgba(255,61,92,0.1); color: #ff3d5c; border-color: rgba(255,61,92,0.2); }
.live-feed-item .feed-type.execution { background: rgba(0,229,160,0.1); color: #00e5a0; border-color: rgba(0,229,160,0.2); }
.live-feed-item .feed-type.agent { background: rgba(139,92,246,0.1); color: #a78bfa; border-color: rgba(139,92,246,0.2); }

/* Enhanced metric cards */
.metric {
    position: relative;
    overflow: hidden;
}
.metric::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-a, #06b6d4) 40%, transparent);
    opacity: 0.5;
}

/* Cycle counter badge */
.cycle-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    font-family: "JetBrains Mono", monospace;
    background: rgba(0,229,160,0.08);
    color: #00e5a0;
    border: 1px solid rgba(0,229,160,0.2);
}

/* Status bar at bottom */
.auctor-status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 26px;
    background: rgba(15,23,42,0.95);
    border-top: 1px solid rgba(148,163,184,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 9px;
    color: rgba(148,163,184,0.5);
    font-family: "JetBrains Mono", monospace;
    z-index: 200;
    backdrop-filter: blur(8px);
}
.auctor-status-bar .status-left,
.auctor-status-bar .status-right {
    display: flex;
    gap: 14px;
    align-items: center;
}
.auctor-status-bar .status-live { color: #00e5a0; }

/* Import JetBrains Mono */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ── What-If Simulator layout fix ─────────────────────── */
#twin-objective-input,
#twin-entity-input {
    min-width: 180px;
}
/* When the simulator toolbar has only 3 children, use 3 cols */
h4 + .audit-export-toolbar {
    grid-template-columns: 1.2fr 1fr auto;
    max-width: 640px;
}
h4 + .audit-export-toolbar .agent-button {
    min-height: 42px;
    white-space: nowrap;
    padding: 0 20px;
}

/* ── Targeted Polish (works WITH existing design) ──────── */

/* Hide the duplicate logo below the nav */
.authority-brand-lockup { display: none; }

/* Hide verbose description under the title */
#business-support { display: none; }

/* Hide the wordy operating mode note */
#opmode-note { display: none; }

/* Compact the pipeline slightly */
#runtime-pipeline-wrap { margin-top: 8px; margin-bottom: 4px; }
.runtime-pipeline .stage { padding: 6px 4px; font-size: 8.5px; }

/* Shrink Return to Executive — it's secondary nav */
#back-to-exec-btn { font-size: 11px; padding: 6px 14px; opacity: 0.7; }
#back-to-exec-btn:hover { opacity: 1; }

/* Tighter spacing below the banner */
.authority-banner { margin-bottom: 8px; }

/* ── Visual Cleanup — Show What Matters ────────────────── */

/* Bigger, bolder logo in nav */
.app-brand-logo { width: 148px; height: auto; }

/* Hide elements that don't earn their space */
.flow-chips { display: none; }              /* Redundant with pipeline */
.operating-mode-strip { display: none; }    /* Settings, not dashboard */
#environment-mode { display: none; }        /* Internal jargon */

/* Replace the generic title with tighter styling */
.authority-banner h2 {
    font-size: clamp(18px, 2.5vw, 26px);
    letter-spacing: -0.03em;
    margin: 0 0 2px;
    line-height: 1.2;
}

/* Tighten the banner — less padding, more data density */
.authority-banner { padding: 8px 14px 4px; margin-bottom: 6px; }
.authority-top-row { gap: 10px; margin-bottom: 2px; }

/* Show Strategic Details — make it subtle */
.mode-actions { gap: 6px; }
.mode-actions .agent-button.secondary,
.mode-actions .morning-brief-btn {
    font-size: 11px;
    padding: 5px 12px;
    opacity: 0.6;
}
.mode-actions .agent-button.secondary:hover,
.mode-actions .morning-brief-btn:hover { opacity: 1; }

/* Pipeline — slightly more compact */
#runtime-pipeline-wrap { margin: 4px 0 2px; }

/* ── Hide weekly brief error gracefully ────────────────── */
.brief-error-hide { display: none !important; }

/* ── Fix cramped drawers (proof, AI console, threats) ──── */

/* Make drawers wider */
.threat-detail-drawer {
    width: min(560px, calc(100vw - 32px));
}

/* Force metric grids inside drawers to 2 columns */
.threat-detail-drawer .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* Make metric labels not truncate */
.threat-detail-drawer .metric-label {
    font-size: 10px;
    white-space: nowrap;
}

.threat-detail-drawer .metric-value {
    font-size: 16px;
    word-break: break-word;
}

/* Fix AI CRO Console output — wider columns, no truncation */
#ai-cro-console-output .decision-review-detail {
    overflow-x: auto;
}

#ai-cro-console-output table,
#ai-cro-console-output .audit-console-grid {
    min-width: 100%;
}

/* Fix the structured output grid in AI console */
#ai-cro-console-output .validation-grid,
#ai-cro-console-output .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* Ensure text wraps properly in console output */
#ai-cro-console-output {
    word-break: break-word;
    overflow-wrap: break-word;
}

#ai-cro-console-output strong {
    word-break: break-word;
}
