:root {
    --bg-0: #071019;
    --bg-1: #0d1725;
    --bg-2: #132033;
    --bg-3: #18283f;
    --surface: rgba(15, 23, 36, 0.92);
    --surface-soft: rgba(19, 31, 49, 0.82);
    --border: rgba(145, 167, 190, 0.16);
    --border-strong: rgba(145, 167, 190, 0.28);
    --text: #edf4fb;
    --muted: #92a7bf;
    --accent: #ff7a18;
    --accent-soft: #ffb067;
    --success: #27c281;
    --warning: #ffbf47;
    --danger: #ff6a57;
    --info: #52a8ff;
    --shadow: 0 24px 64px rgba(3, 8, 18, 0.45);
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI Variable", "Segoe UI", "IBM Plex Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 480px at 0% 0%, rgba(255, 122, 24, 0.12) 0%, rgba(255, 122, 24, 0) 48%),
        radial-gradient(1000px 620px at 100% 0%, rgba(82, 168, 255, 0.12) 0%, rgba(82, 168, 255, 0) 42%),
        linear-gradient(180deg, #09111c 0%, #050a12 100%);
}

a {
    color: var(--accent-soft);
    text-decoration: none;
}

a:hover {
    color: #ffd0a3;
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    background: transparent;
}

.sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px 16px;
    border-right: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(8, 14, 23, 0.98) 0%, rgba(11, 18, 28, 0.96) 100%);
    backdrop-filter: blur(16px);
    transition: width 0.2s ease, padding 0.2s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 20px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.brand-mark {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: visible;
}

.brand-logo {
    width: 122%;
    height: 122%;
    object-fit: contain;
    display: block;
    transform: translateX(-2px);
    filter: drop-shadow(0 14px 24px rgba(8, 14, 24, 0.42));
}

.brand-kicker,
.page-eyebrow,
.page-kicker,
.nav-section-label,
.sidebar-footer-label {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.sidebar-nav {
    display: grid;
    gap: 18px;
    flex-grow: 1;
}

.nav-section {
    display: grid;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--text);
    background: transparent;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-link i {
    width: 20px;
    font-size: 17px;
    color: #dbe7f7;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.nav-link.active {
    background: linear-gradient(180deg, rgba(255, 122, 24, 0.15) 0%, rgba(255, 122, 24, 0.07) 100%);
    border-color: rgba(255, 176, 103, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link-secondary {
    opacity: 0.84;
    border-color: rgba(255, 255, 255, 0.04);
}

.nav-link-secondary:hover,
.nav-link-secondary.active {
    opacity: 1;
}

.label-wrap {
    display: grid;
    gap: 2px;
}

.label {
    font-size: 14px;
    font-weight: 600;
}

.nav-hint,
.sidebar-footer-value,
.page-subtitle,
.surface-note,
.small,
.text-secondary,
.hint {
    color: var(--muted) !important;
    font-size: 12px;
}

.sidebar-footer {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.main-shell {
    min-width: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(10, 16, 27, 0.94) 0%, rgba(10, 17, 28, 0.78) 100%);
    backdrop-filter: blur(18px);
    position: relative;
    z-index: 40;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-heading {
    display: grid;
    gap: 3px;
}

.page-title {
    font-size: 24px;
    line-height: 1.05;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.sidebar-toggle {
    min-width: 38px;
    min-height: 38px;
}

.shell-chip {
    border-radius: 999px;
    padding: 8px 14px;
    border-color: var(--border-strong);
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}

.chip-divider {
    color: rgba(255, 255, 255, 0.25);
    margin: 0 4px;
}

.shell-dropdown,
.shell-dropdown-menu,
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(10, 17, 28, 0.98);
    box-shadow: var(--shadow);
    z-index: 1085;
}

.shell-dropdown {
    width: 360px;
}

.scan-selector-list {
    max-height: 320px;
    overflow-y: auto;
}

.scan-compare-picker-list {
    max-height: 320px;
    overflow-y: auto;
    display: grid;
    gap: 6px;
}

.dropdown-item {
    color: var(--text);
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active,
.dropdown-item:active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.workspace {
    min-width: 0;
    padding: 28px;
    overflow: auto;
    position: relative;
    z-index: 1;
}

.loading-shell,
.empty-state {
    padding: 28px;
    border: 1px dashed rgba(145, 167, 190, 0.24);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
}

.card,
.modal-content {
    background: linear-gradient(180deg, rgba(16, 26, 40, 0.95) 0%, rgba(12, 20, 32, 0.98) 100%);
    border: 1px solid var(--border) !important;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.card:hover {
    box-shadow: 0 28px 68px rgba(3, 8, 18, 0.52);
}

.page-shell,
.overview-shell,
.scan-shell,
.findings-workspace,
.remediation-shell,
.patch-center-shell,
.governance-shell,
.resource-shell,
.admin-shell,
.onboarding-shell {
    display: grid;
    gap: 24px;
}

.page-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 24px 26px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background:
        radial-gradient(640px 260px at 100% 0%, rgba(255, 122, 24, 0.11) 0%, rgba(255, 122, 24, 0) 60%),
        linear-gradient(180deg, rgba(17, 27, 42, 0.95) 0%, rgba(11, 18, 29, 0.98) 100%);
}

.page-hero h2,
.page-hero h3,
h3,
h4,
h5,
h6 {
    color: var(--text);
    margin-bottom: 0;
}

.page-hero-copy {
    max-width: 760px;
    display: grid;
    gap: 8px;
}

.hero-actions,
.workspace-actions,
.action-cluster {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    padding: 18px 20px;
}

.overview-next-action {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 122, 24, 0.08);
    border: 1px solid rgba(255, 176, 103, 0.18);
    font-weight: 650;
    color: var(--text);
}

.overview-chart-card canvas {
    max-height: 190px;
}

/* ── Overview metric grid — 5 cards instead of 7 ── */
.ov-metric-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* ── Blast radius stat grid ── */
.ov-blast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 4px;
}

.ov-blast-stat {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
}

.ov-blast-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.ov-blast-label {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Highest-Return Fix card ── */
.ov-top-fix-card {
    background:
        radial-gradient(480px 180px at 100% 0%, rgba(255, 122, 24, 0.09) 0%, transparent 70%),
        linear-gradient(180deg, rgba(16, 26, 40, 0.95) 0%, rgba(12, 20, 32, 0.98) 100%);
}

.ov-top-fix-action {
    font-size: 15px;
    font-weight: 650;
    color: var(--text);
    line-height: 1.45;
}

.ov-fix-stat-val {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.ov-fix-stat-lbl {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 3px;
}

/* ── Remediation theme bar rows ── */
.ov-theme-list {
    display: grid;
    gap: 8px;
}

.ov-theme-row {
    display: grid;
    grid-template-columns: 160px 1fr 32px;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: opacity 0.15s;
}

.ov-theme-row:last-child { border-bottom: 0; }
.ov-theme-row:hover { opacity: 0.82; }

.ov-theme-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ov-theme-bar-wrap {
    background: rgba(255,255,255,0.07);
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

.ov-theme-bar {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0.85;
}

.ov-theme-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

/* ── Validation signal summary stats ── */
.ov-signal-stat {
    padding: 12px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
}

.ov-signal-val {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.ov-signal-lbl {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 3px;
}

.metric-label {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
}

.metric-meta {
    color: var(--muted);
    font-size: 12px;
    margin-top: 8px;
}

.mono {
    font-family: "Cascadia Code", "IBM Plex Mono", monospace;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-copy {
    display: grid;
    gap: 6px;
}

.panel-stack {
    display: grid;
    gap: 16px;
}

.soft-list {
    display: grid;
    gap: 10px;
}

.governance-secondary {
    background: linear-gradient(180deg, rgba(13, 21, 33, 0.88) 0%, rgba(10, 16, 27, 0.94) 100%);
    border-color: rgba(145, 167, 190, 0.12) !important;
}

.governance-reference-block summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.governance-reference-block summary::-webkit-details-marker {
    display: none;
}

.governance-reference-block summary::after {
    content: "+";
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
}

.governance-reference-block[open] summary::after {
    content: "−";
}

.soft-list-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.soft-list-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.soft-list-title {
    font-weight: 600;
    color: var(--text);
}

.soft-list-subtitle {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.findings-workspace .fx-hint,
.findings-workspace .fx-empty {
    color: var(--muted);
    font-size: 12px;
}

.findings-workspace .fx-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.findings-workspace .fx-mono {
    font-family: "Cascadia Code", "IBM Plex Mono", monospace;
}

.findings-workspace .fx-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 14px;
    padding-top: 14px;
}

.findings-filter-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.findings-filter-chip-group {
    min-width: 150px;
    display: grid;
    gap: 6px;
}

.findings-filter-hint {
    color: var(--muted);
    font-size: 12px;
    max-width: 380px;
}

.findings-queue-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.findings-queue-table-wrap {
    max-height: 64vh;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
}

.findings-detail-card {
    position: sticky;
    top: 18px;
    max-height: calc(100vh - 140px);
    overflow: auto;
}

.findings-detail-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.findings-detail-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.findings-detail-tabs .btn.active {
    background: rgba(255, 122, 24, 0.12);
    border-color: rgba(255, 176, 103, 0.42);
}

.findings-detail-pane {
    min-width: 0;
}

.fix-row {
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
    border-left: 3px solid transparent;
    padding-left: 14px;
    padding-right: 14px;
    border-radius: 18px;
}

.fix-row:hover {
    background: rgba(255, 255, 255, 0.035);
    transform: translateX(2px);
}

.fix-row.active {
    background: rgba(255, 122, 24, 0.08);
    border-left-color: rgba(255, 176, 103, 0.8);
}

.remediation-fix-list {
    max-height: 340px;
    overflow: auto;
    padding-right: 4px;
}

.remediation-findings-table-wrap {
    max-height: 520px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
}

.remediation-findings-table-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(12, 20, 32, 0.98);
}

.remediation-findings-table-head th {
    background: rgba(12, 20, 32, 0.98);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.remediation-finding-row-selected {
    background: rgba(255, 122, 24, 0.08);
}

.remediation-finding-row-selected:hover {
    background: rgba(255, 122, 24, 0.12);
}

.remediation-side-card {
    position: sticky;
    top: 18px;
}

.remediation-planner-card {
    max-height: calc(100vh - 160px);
    overflow: auto;
}

.remediation-distribution-list {
    max-height: 240px;
    overflow: auto;
    padding-right: 4px;
}

.sev-critical {
    color: var(--danger);
    font-weight: 600;
}

.sev-high {
    color: var(--warning);
    font-weight: 600;
}

.sev-medium {
    color: var(--info);
    font-weight: 600;
}

.remediation-execution-card {
    border-color: rgba(82, 168, 255, 0.25) !important;
    background: linear-gradient(180deg, rgba(17, 28, 44, 0.98) 0%, rgba(11, 18, 29, 1) 100%);
}

.code-panel {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(5, 9, 16, 0.92);
    color: var(--text);
    font-family: "Cascadia Code", "IBM Plex Mono", monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.context-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.context-pill,
.badge {
    border-radius: 999px;
    font-size: 11px;
    padding: 6px 10px;
}

.table,
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

.table thead th {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.table td {
    vertical-align: middle;
}

.table-sm td,
.table-sm th {
    padding: 10px 8px;
}

.table-row-hover:hover,
tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.scan-history-table-wrap {
    max-height: 420px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
}

.scan-history-table-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(12, 20, 32, 0.98);
}

.scan-history-table-head th {
    background: rgba(12, 20, 32, 0.98);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.scan-history-row-selected {
    background: rgba(255, 122, 24, 0.08);
}

.scan-history-row-selected:hover {
    background: rgba(255, 122, 24, 0.12);
}

.form-control,
.form-select,
textarea.form-control {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
}

.form-select {
    color-scheme: dark;
}

.form-select option,
.form-select optgroup {
    color: var(--text);
    background-color: #132033;
}

.form-select option:checked,
.form-select option:hover,
.form-select option:focus {
    color: var(--text);
    background-color: #1a2b43;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    color: var(--text);
    border-color: rgba(255, 176, 103, 0.45);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.btn {
    border-radius: 14px;
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #08111a;
    font-weight: 650;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #ff8d39;
    border-color: #ff8d39;
    color: #08111a;
}

.btn-outline-light,
.btn-outline-secondary {
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-outline-light:hover,
.btn-outline-secondary:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.table-success {
    animation: pulseRow 0.6s ease;
}

@keyframes pulseRow {
    0% { background-color: rgba(39, 194, 129, 0.35); }
    100% { background-color: transparent; }
}

.sidebar.collapsed {
    width: 88px;
    padding-left: 10px;
    padding-right: 10px;
}

.sidebar.collapsed .brand-copy,
.sidebar.collapsed .nav-section-label,
.sidebar.collapsed .nav-hint,
.sidebar.collapsed .sidebar-footer {
    display: none;
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.sidebar.collapsed .brand-mark {
    width: 58px;
    height: 58px;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
}

.sidebar.collapsed .label-wrap {
    display: none;
}

@media (max-width: 1400px) {
    .metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .patch-decision-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1120px) {
    .app-shell {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .sidebar {
        padding-left: 10px;
        padding-right: 10px;
    }

    .brand-copy,
    .nav-section-label,
    .nav-hint,
    .sidebar-footer {
        display: none;
    }

    .sidebar-brand {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .brand-mark {
        width: 58px;
        height: 58px;
    }

    .nav-link {
        justify-content: center;
        padding-left: 10px;
        padding-right: 10px;
    }

    .label-wrap {
        display: none;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .patch-context-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .workspace {
        padding: 18px;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-hero {
        flex-direction: column;
    }

    .findings-queue-table-wrap {
        max-height: none;
    }

    .findings-detail-card {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 680px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-brand,
    .sidebar-nav,
    .sidebar-footer {
        display: none;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 20px;
    }
}

.patch-decision-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 16px;
}

.patch-decision-card {
    background: linear-gradient(180deg, rgba(14, 23, 36, 0.96) 0%, rgba(11, 18, 28, 0.98) 100%);
}

.patch-decision-primary {
    border-color: rgba(255, 176, 103, 0.22) !important;
    background: linear-gradient(180deg, rgba(31, 31, 23, 0.35) 0%, rgba(18, 24, 36, 0.98) 100%);
}

.patch-decision-block {
    display: grid;
    gap: 8px;
}

.patch-signal-value {
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
}

.patch-queue-wrap {
    max-height: 62vh;
}

.patch-center-row {
    cursor: pointer;
    transition: background 0.16s ease;
}

.patch-center-row.is-active,
.patch-center-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.patch-detail-stack {
    display: grid;
    gap: 16px;
}

.patch-context-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.patch-context-card {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 10px;
}

.patch-context-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 12px;
    color: var(--muted);
}

.patch-context-row strong {
    color: var(--text);
    font-weight: 600;
}

.patch-detail-section {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.patch-inline-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.patch-json-input {
    min-height: 164px;
    white-space: pre;
}

.patch-history-row {
    align-items: flex-start;
}

.patch-filter-pill {
    border-radius: 999px;
}

.patch-filter-pill-active {
    background: rgba(255, 122, 24, 0.12);
    border-color: rgba(255, 176, 103, 0.42);
}

.remediation-access-card {
    border-color: rgba(255, 176, 103, 0.18) !important;
}

.admin-copy-panel {
    min-height: 140px;
    max-height: 240px;
    overflow: auto;
}