:root {
    --bg: #0f172a;
    --sidebar: #020617;
    --panel: #111827;
    --card: #1e293b;
    --soft: #172033;
    --border: #334155;
    --text: #f8fafc;
    --muted: #94a3b8;
    --primary: #fb923c;
    --primary-dark: #ea580c;
    --led-red: #ef4444;
    --led-orange: #fb923c;
    --led-amber: #f59e0b;
    --led-border: rgba(251, 146, 60, 0.18);
    --led-border-strong: rgba(251, 146, 60, 0.32);
    --led-glow: 0 0 8px rgba(239, 68, 68, 0.08), 0 0 18px rgba(251, 146, 60, 0.045);
    --led-glow-strong: 0 0 0 1px rgba(248, 113, 113, 0.12), 0 0 14px rgba(239, 68, 68, 0.14), 0 0 28px rgba(251, 146, 60, 0.065);
    --selected-shadow: 0 12px 26px rgba(2, 6, 23, 0.3), 0 0 0 1px rgba(251, 146, 60, 0.22), 0 0 18px rgba(251, 146, 60, 0.1);
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --orange: #fb923c;
    --info: #3b82f6;
    --shadow: 0 22px 60px rgba(2, 6, 23, 0.35);
}

/* Dashboard usability repair: keep the video as background only and prevent cards from collapsing. */
.system-video-background,
.seal-video-background,
.seal-video-background iframe,
.system-video-overlay {
    pointer-events: none !important;
}

.app-shell {
    position: relative;
    z-index: 10;
}

.workspace {
    position: relative;
    z-index: 12;
    min-width: 0;
}

.page {
    position: relative;
    z-index: 14;
    min-height: 0;
}

.hero-panel,
.ops-blocker-card,
.ops-recovery-card,
.ops-waiting-alert,
.panel,
.source-account-card,
.stat-card,
.health-card {
    min-height: unset;
    max-height: none !important;
}

.hero-panel,
.ops-blocker-card,
.ops-recovery-card,
.ops-waiting-alert,
.panel {
    overflow: visible;
}

.ops-blocker-card,
.ops-recovery-card {
    display: grid !important;
    visibility: visible;
}

.ops-recovery-main,
.ops-recovery-actions,
.ops-blocker-stats,
.source-account-grid,
.source-account-actions {
    position: relative;
    z-index: 2;
}

.source-account-actions,
.ops-recovery-actions,
.hero-actions,
.panel-head {
    pointer-events: auto;
}

.source-account-actions button,
.source-account-actions a,
.ops-recovery-actions button,
.ops-recovery-actions a,
.hero-actions button,
.hero-actions a,
.panel-head a,
.table-wrap a,
.sidebar a,
.sidebar button,
.topbar,
.user-pill {
    position: relative;
    z-index: 3;
}

.table-wrap table:not(.wide-table) {
    width: 100%;
    color: #111827;
    background: #ffffff;
}

.table-wrap table:not(.wide-table) tbody td,
.table-wrap table:not(.wide-table) tbody th {
    color: #111827;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.09);
}

.table-wrap table:not(.wide-table) tbody a {
    color: #c2410c;
    font-weight: 800;
}

.table-wrap table:not(.wide-table) tbody small {
    display: block;
    color: #475569;
}

@media (min-width: 861px) {
    .system-video-body {
        overflow: hidden;
    }

    .workspace {
        height: 100vh;
        overflow: hidden;
    }

    .page {
        height: calc(100vh - 76px);
        overflow-y: auto;
        overflow-x: hidden;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 4%, rgba(248, 113, 113, 0.055), transparent 28rem),
        radial-gradient(circle at 86% 18%, rgba(251, 146, 60, 0.045), transparent 26rem),
        linear-gradient(135deg, #0f172a 0%, #151017 42%, #020617 100%);
    font-family: "Be Vietnam Pro", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}

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

button,
input,
select {
    font: inherit;
}

small {
    display: block;
    color: var(--muted);
    line-height: 1.45;
}

.app-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 278px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 24px 18px;
    background: rgba(2, 6, 23, 0.86);
    border-right: 1px solid var(--led-border);
    box-shadow: 10px 0 28px rgba(127, 29, 29, 0.11);
    backdrop-filter: blur(18px);
}

.brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(30, 10, 14, 0.7);
    border: 1px solid var(--led-border);
    box-shadow: var(--led-glow);
    overflow: hidden;
}

.brand::after,
.topbar::after,
.hero-panel::after,
.panel::after,
.stat-card::after,
.health-card::after,
.auth-card::after,
.source-account-card::after,
.ops-blocker-card::after,
.ops-recovery-card::after,
.ops-waiting-alert::after,
.auth-shell::after,
.table-wrap::after,
.bulk-file-item::after,
.alert::after,
.bulk-dropzone::after,
.terminal-log::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(251, 146, 60, 0.11);
    box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.05);
    content: "";
    pointer-events: none;
}

@keyframes ledPulse {
    0%,
    100% {
        box-shadow:
            0 0 0 9px rgba(127, 29, 29, 0.34),
            0 0 0 12px rgba(251, 146, 60, 0.16),
            0 0 22px rgba(220, 38, 38, 0.24),
            0 0 52px rgba(234, 88, 12, 0.11),
            inset 0 0 70px rgba(153, 27, 27, 0.3);
    }

    50% {
        box-shadow:
            0 0 0 9px rgba(127, 29, 29, 0.42),
            0 0 0 13px rgba(251, 146, 60, 0.26),
            0 0 28px rgba(239, 68, 68, 0.28),
            0 0 62px rgba(251, 146, 60, 0.14),
            inset 0 0 82px rgba(234, 88, 12, 0.34);
    }
}

.brand-mark {
    display: inline-grid;
    min-width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    color: #fff7ed;
    background: linear-gradient(135deg, #7f1d1d, #ea580c 58%, #f59e0b);
    font-weight: 900;
    box-shadow: 0 14px 32px rgba(239, 68, 68, 0.24), 0 0 18px rgba(251, 146, 60, 0.22);
}

.brand-seal {
    position: relative;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    overflow: hidden;
    border: 1px solid var(--led-border-strong);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.46);
    box-shadow:
        0 0 0 4px rgba(127, 29, 29, 0.18),
        0 0 14px rgba(239, 68, 68, 0.22),
        0 0 24px rgba(251, 146, 60, 0.1);
}

.brand-seal img {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    height: 100%;
    max-width: none;
    transform: translateX(-50%);
}

.brand strong {
    display: block;
    font-size: 13px;
    letter-spacing: 0;
    line-height: 1.1;
}

.brand small {
    margin-top: 3px;
    font-size: 11px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-title,
.eyebrow {
    color: #fed7aa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-title {
    margin: 10px 10px 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    color: #cbd5e1;
    border: 1px solid transparent;
    border-radius: 14px;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--text);
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.24), rgba(251, 146, 60, 0.1));
    border-color: var(--led-border-strong);
    box-shadow: var(--selected-shadow);
}

.sidebar-subnav {
    display: grid;
    gap: 5px;
    margin: -2px 0 4px 42px;
    padding-left: 10px;
    border-left: 1px solid rgba(251, 146, 60, 0.24);
}

.sidebar-subnav a {
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 10px;
    color: #f8d8b4;
    background: rgba(15, 23, 42, 0.22);
    font-size: 12px;
    font-weight: 800;
}

.sidebar-subnav a:hover,
.sidebar-subnav a.active {
    color: #fff7ed;
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.42), rgba(251, 146, 60, 0.18));
    border-color: rgba(251, 146, 60, 0.5);
}

.sidebar-nav b,
.nav-icon {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    color: #fed7aa;
    background: rgba(127, 29, 29, 0.28);
    box-shadow: inset 0 0 16px rgba(239, 68, 68, 0.18);
    font-size: 11px;
}

.nav-icon {
    background:
        linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(127, 29, 29, 0.18));
}

.nav-icon::before {
    display: block;
    width: 17px;
    height: 17px;
    background: #fed7aa;
    content: "";
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.nav-icon--dashboard::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1'/%3E%3C/svg%3E");
}

.nav-icon--excel::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h8'/%3E%3Cpath d='M8 9h1'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h8'/%3E%3Cpath d='M8 9h1'/%3E%3C/svg%3E");
}

.nav-icon--staff::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.nav-icon--tasks::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
}

.nav-icon--assistant::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v4'/%3E%3Cpath d='M12 18v4'/%3E%3Cpath d='m4.93 4.93 2.83 2.83'/%3E%3Cpath d='m16.24 16.24 2.83 2.83'/%3E%3Cpath d='M2 12h4'/%3E%3Cpath d='M18 12h4'/%3E%3Cpath d='m4.93 19.07 2.83-2.83'/%3E%3Cpath d='m16.24 7.76 2.83-2.83'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v4'/%3E%3Cpath d='M12 18v4'/%3E%3Cpath d='m4.93 4.93 2.83 2.83'/%3E%3Cpath d='m16.24 16.24 2.83 2.83'/%3E%3Cpath d='M2 12h4'/%3E%3Cpath d='M18 12h4'/%3E%3Cpath d='m4.93 19.07 2.83-2.83'/%3E%3Cpath d='m16.24 7.76 2.83-2.83'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.nav-icon--process::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7'/%3E%3Cpath d='M21 3v6h-6'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7'/%3E%3Cpath d='M21 3v6h-6'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.nav-icon--control::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09a1.65 1.65 0 0 0-1-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 5 15.08a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09a1.65 1.65 0 0 0 1.51-1A1.65 1.65 0 0 0 4.27 7.2l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 8.92 5a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19 8.92a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09a1.65 1.65 0 0 0-1-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 5 15.08a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09a1.65 1.65 0 0 0 1.51-1A1.65 1.65 0 0 0 4.27 7.2l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 8.92 5a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19 8.92a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
}

.logout-form {
    margin-top: auto;
}

.logout-form button,
.primary-button,
.link-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
}

.logout-form button {
    width: 100%;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.26);
}

.workspace {
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 86px;
    padding: 18px 28px;
    background: rgba(15, 8, 12, 0.76);
    border-bottom: 1px solid var(--led-border);
    box-shadow: 0 12px 32px rgba(127, 29, 29, 0.11);
    backdrop-filter: blur(18px);
}

.topbar h1,
.panel h2,
.hero-panel h2,
.auth-card h2 {
    margin: 4px 0 0;
    line-height: 1.2;
}

.topbar h1 {
    font-size: clamp(22px, 3vw, 32px);
}

.user-pill {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    padding: 10px 14px;
    border: 1px solid var(--led-border);
    border-radius: 14px;
    background: rgba(30, 18, 24, 0.78);
    box-shadow: var(--led-glow);
}

.user-pill span {
    font-weight: 800;
}

.page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 28px 36px;
}

.hero-panel,
.panel,
.stat-card,
.health-card,
.auth-card {
    position: relative;
    border: 1px solid var(--led-border);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(28, 16, 22, 0.92), rgba(8, 11, 20, 0.88));
    box-shadow: var(--shadow), var(--led-glow);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.hero-panel::before,
.panel::before,
.stat-card::before,
.health-card::before,
.auth-card::before {
    position: absolute;
    top: 0;
    right: 22px;
    left: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 146, 60, 0.78), rgba(239, 68, 68, 0.68), transparent);
    content: "";
    pointer-events: none;
}

.hero-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
}

.hero-panel p,
.auth-card p,
.auth-intro p,
.muted {
    color: var(--muted);
}

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

.health-card {
    min-width: 230px;
    padding: 16px;
}

.health-card span {
    color: var(--muted);
}

.health-card strong {
    display: block;
    margin: 4px 0;
    font-size: 20px;
}

.health-card.ok strong {
    color: var(--success);
}

.health-card.bad strong {
    color: var(--danger);
}

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

.stat-card {
    padding: 17px;
    background:
        radial-gradient(circle at 10% 0%, rgba(251, 146, 60, 0.12), transparent 12rem),
        rgba(20, 15, 24, 0.84);
}

.ops-blocker-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(127, 29, 29, 0.5), rgba(30, 41, 59, 0.78)),
        rgba(15, 23, 42, 0.82);
    box-shadow: 0 18px 42px rgba(127, 29, 29, 0.15), 0 0 22px rgba(251, 146, 60, 0.08);
}

.ops-blocker-card h2 {
    margin: 5px 0 7px;
    font-size: clamp(18px, 2vw, 25px);
}

.ops-blocker-card p {
    max-width: 760px;
    margin: 0;
    color: #fed7aa;
    line-height: 1.6;
}

.ops-blocker-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    gap: 10px;
}

.ops-blocker-stats span {
    display: grid;
    gap: 3px;
    min-height: 68px;
    place-items: center;
    padding: 10px 12px;
    color: #ffedd5;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.42);
}

.ops-blocker-stats strong {
    color: #fff7ed;
    font-size: 24px;
    line-height: 1;
}

.ops-recovery-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(30, 10, 14, 0.72)),
        rgba(17, 24, 39, 0.86);
    box-shadow: 0 16px 38px rgba(2, 6, 23, 0.28), 0 0 18px rgba(251, 146, 60, 0.08);
}

.ops-recovery-main h2 {
    margin: 5px 0 8px;
    font-size: clamp(18px, 1.8vw, 24px);
}

.ops-recovery-main p {
    max-width: 780px;
    margin: 0 0 13px;
    color: #cbd5e1;
    line-height: 1.6;
}

.ops-recovery-main p strong {
    color: #fed7aa;
}

.ops-recovery-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.ops-recovery-steps span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 10px;
    color: #ffedd5;
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: 13px;
    background: rgba(2, 6, 23, 0.34);
}

.ops-recovery-steps b {
    display: inline-grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 999px;
    color: #111827;
    background: #fb923c;
    font-size: 12px;
}

.ops-recovery-actions {
    display: grid;
    gap: 9px;
    align-content: center;
    padding: 12px;
    border: 1px solid rgba(251, 146, 60, 0.14);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.34);
}

.ops-recovery-actions form,
.ops-recovery-actions a,
.ops-recovery-actions button {
    width: 100%;
}

.ops-waiting-alert {
    position: relative;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 16px 18px;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(120, 53, 15, 0.44), rgba(15, 23, 42, 0.82)),
        rgba(17, 24, 39, 0.86);
    box-shadow: 0 14px 34px rgba(120, 53, 15, 0.12), 0 0 18px rgba(245, 158, 11, 0.08);
}

.ops-waiting-alert h2 {
    margin: 5px 0 6px;
    font-size: clamp(17px, 1.6vw, 22px);
}

.ops-waiting-alert p {
    max-width: 780px;
    margin: 0;
    color: #fed7aa;
    line-height: 1.55;
}

.stat-card span {
    color: var(--muted);
    font-weight: 700;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
}

.stat-card .small-strong {
    font-size: 15px;
    line-height: 1.45;
}

.stat-card.success strong {
    color: var(--success);
}

.stat-card.warning strong {
    color: var(--warning);
}

.stat-card.danger strong {
    color: var(--danger);
}

.stat-card.orange strong {
    color: var(--orange);
}

.stat-card.info strong {
    color: var(--info);
}

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

.panel {
    min-width: 0;
    padding: 18px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.link-button {
    color: var(--text);
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid var(--led-border);
    box-shadow: 0 0 18px rgba(251, 146, 60, 0.1);
}

.danger-button {
    color: #fee2e2;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.34);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.12);
}

.primary-button {
    color: #fff7ed;
    background: linear-gradient(135deg, #991b1b, #ea580c 52%, #f59e0b);
    border: 1px solid rgba(254, 215, 170, 0.42);
    box-shadow:
        0 14px 32px rgba(127, 29, 29, 0.28),
        0 0 22px rgba(251, 146, 60, 0.22);
}

.primary-button.compact {
    min-height: 40px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 220px auto;
    gap: 10px;
    margin-bottom: 14px;
}

.bulk-upload-panel {
    overflow: hidden;
}

.bulk-dropzone {
    position: relative;
    display: grid;
    min-height: 160px;
    place-items: center;
    padding: 24px;
    text-align: center;
    border: 1px dashed rgba(251, 146, 60, 0.52);
    border-radius: 16px;
    background: rgba(24, 12, 17, 0.64);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.bulk-dropzone:hover,
.bulk-dropzone.dragging {
    border-color: var(--led-border-strong);
    background: rgba(127, 29, 29, 0.18);
    box-shadow: var(--led-glow-strong);
    transform: translateY(-1px);
}

.bulk-dropzone-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 8px;
    color: #fff7ed;
    background: linear-gradient(135deg, #991b1b, #ea580c 55%, #f59e0b);
    border-radius: 14px;
    font-weight: 900;
}

.bulk-dropzone-icon--excel::before {
    display: block;
    width: 24px;
    height: 24px;
    background: #fff7ed;
    content: "";
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h8'/%3E%3Cpath d='M8 9h1'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h8'/%3E%3Cpath d='M8 9h1'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.bulk-dropzone strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.bulk-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.bulk-file-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.bulk-file-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 12px;
    background: rgba(18, 12, 20, 0.74);
    box-shadow: 0 0 18px rgba(127, 29, 29, 0.1);
    overflow: hidden;
}

.bulk-file-item strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bulk-file-item span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
}

.bulk-upload-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.bulk-upload-actions button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.7);
    opacity: 0.48;
}

.employee-workspace-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 22px;
    overflow: hidden;
}

.employee-workspace-card::before {
    position: absolute;
    inset: auto 18px 18px auto;
    width: 92px;
    height: 92px;
    content: "";
    border-radius: 999px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.24), rgba(251, 146, 60, 0));
    pointer-events: none;
}

.employee-workspace-card h2 {
    margin: 0;
}

.employee-workspace-card p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.employee-workspace-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.batch-progress {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.batch-progress-track {
    display: block;
    width: 100%;
    height: 7px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(251, 146, 60, 0.14);
    appearance: none;
}

.batch-progress-track::-webkit-progress-bar {
    border-radius: inherit;
    background: rgba(251, 146, 60, 0.14);
}

.batch-progress-track::-webkit-progress-value,
.batch-progress-track::-moz-progress-bar {
    border-radius: inherit;
    background: linear-gradient(90deg, #ef4444, #fb923c, #f59e0b);
    box-shadow: 0 0 14px rgba(251, 146, 60, 0.42);
}

.batch-result-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    min-width: 190px;
    color: var(--muted);
    font-size: 12px;
}

.batch-result-summary b {
    color: var(--text);
}

.table-action {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    white-space: nowrap;
}

.assignment-popover {
    min-width: 220px;
}

.assignment-popover summary {
    display: inline-flex;
    max-width: 260px;
    min-height: 34px;
    align-items: center;
    padding: 6px 10px;
    overflow: hidden;
    color: #fed7aa;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 10px;
    background: rgba(127, 29, 29, 0.18);
}

.assignment-popover[open] summary {
    color: #fff7ed;
    border-color: var(--led-border-strong);
    box-shadow: var(--selected-shadow);
}

.assignment-form {
    display: grid;
    min-width: 250px;
    max-width: 310px;
    gap: 10px;
    padding: 10px;
    margin-top: 8px;
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 12px;
    background: rgba(12, 18, 32, 0.96);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.34);
}

.assignment-list {
    display: grid;
    max-height: 180px;
    gap: 6px;
    overflow: auto;
}

.assignment-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 700;
}

.assignment-list input {
    width: 16px;
    min-height: 16px;
    accent-color: var(--orange);
}

.bulk-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.bulk-detail-actions form {
    margin: 0;
}

.danger-soft-button {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.36);
    background: rgba(127, 29, 29, 0.18);
}

.danger-soft-button:hover {
    color: #fff;
    border-color: rgba(248, 113, 113, 0.62);
    background: rgba(185, 28, 28, 0.34);
}

.danger-soft-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.bulk-selection-counter {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    color: #fed7aa;
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 999px;
    background: rgba(251, 146, 60, 0.08);
    font-size: 12px;
    font-weight: 800;
}

.bulk-row-select,
[data-bulk-select-all] {
    width: 17px;
    min-height: 17px;
    accent-color: var(--orange);
}

.source-alert {
    margin-bottom: 14px;
}

.source-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.source-account-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--led-border);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(251, 146, 60, 0.1), transparent 11rem),
        rgba(18, 12, 20, 0.72);
    box-shadow: var(--led-glow);
    overflow: hidden;
}

.source-account-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.source-account-top strong,
.source-account-top small,
.source-account-card p,
.source-account-card > small {
    display: block;
}

.source-account-card p {
    min-height: 40px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.source-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.source-account-actions form {
    margin: 0;
}

.bulk-validation-state {
    color: var(--muted);
    font-size: 13px;
}

.bulk-validation-state.info {
    color: #fed7aa;
}

.bulk-validation-state.success {
    color: #86efac;
}

.bulk-validation-state.danger {
    color: #fca5a5;
}

.dashboard-live-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    margin-top: 10px;
    color: #dcfce7;
    border: 1px solid rgba(34, 197, 94, 0.32);
    border-radius: 999px;
    background: rgba(22, 101, 52, 0.18);
    font-size: 12px;
    font-weight: 800;
}

.dashboard-live-chip.is-error {
    color: #fee2e2;
    border-color: rgba(248, 113, 113, 0.38);
    background: rgba(127, 29, 29, 0.22);
}

.bulk-inspect-result {
    margin-top: 16px;
}

.bulk-inspect-summary {
    margin-bottom: 10px;
    color: #cbd5e1;
    line-height: 1.5;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

label span {
    display: block;
    margin-bottom: 7px;
    color: #cbd5e1;
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 42px;
    padding: 0 13px;
    color: var(--text);
    background: rgba(11, 8, 14, 0.82);
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 12px;
    outline: none;
    box-shadow: inset 0 0 16px rgba(127, 29, 29, 0.1);
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow:
        0 0 0 3px rgba(251, 146, 60, 0.14),
        0 0 18px rgba(239, 68, 68, 0.18),
        inset 0 0 16px rgba(127, 29, 29, 0.12);
}

.table-wrap {
    position: relative;
    overflow: auto;
    border: 1px solid var(--led-border);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(251, 146, 60, 0.08), transparent 18rem),
        rgba(7, 10, 18, 0.78);
    box-shadow: inset 0 0 28px rgba(127, 29, 29, 0.12), var(--led-glow);
}

.table-wrap::after {
    z-index: 3;
}

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

.wide-table {
    min-width: 1250px;
}

th,
td {
    padding: 13px 14px;
    vertical-align: top;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    text-align: left;
}

th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: #fff7ed;
    background:
        linear-gradient(180deg, rgba(127, 29, 29, 0.98), rgba(73, 15, 15, 0.98));
    font-size: 12px;
    text-transform: uppercase;
    box-shadow: inset 0 -1px 0 rgba(251, 146, 60, 0.34), 0 2px 16px rgba(127, 29, 29, 0.22);
}

td strong {
    display: block;
    margin-bottom: 3px;
}

td a {
    color: #fdba74;
    font-weight: 800;
}

.wide-table tbody tr {
    background: rgba(255, 255, 255, 0.96);
}

.wide-table tbody td {
    color: #0f172a;
    border-bottom-color: rgba(15, 23, 42, 0.2);
}

.wide-table tbody td small,
.wide-table tbody td .muted {
    color: #334155;
}

.wide-table tbody td a {
    color: #0f4c81;
}

.wide-table tbody tr.row-called td {
    color: #14532d;
    background: #dcfce7;
}

.wide-table tbody tr.row-removed td {
    color: #991b1b;
    background: #fee2e2;
}

.bulk-check-cell {
    width: 72px;
    text-align: center;
}

.bulk-status-check {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.bulk-status-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.bulk-status-check:has(input:checked) {
    border-color: rgba(22, 101, 52, 0.45);
    background: #bbf7d0;
    color: #166534;
}

.row-removed .bulk-status-check:has(input:checked) {
    border-color: rgba(153, 27, 27, 0.45);
    background: #fecaca;
    color: #991b1b;
}

.bulk-note-box {
    display: grid;
    min-width: 220px;
    gap: 6px;
}

.bulk-note-title,
.bulk-note-input {
    width: 100%;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 8px;
    outline: 0;
}

.bulk-note-title {
    min-height: 32px;
    padding: 0 9px;
    font-weight: 800;
}

.bulk-note-input {
    min-height: 58px;
    padding: 8px 9px;
    resize: vertical;
}

.bulk-note-title:focus,
.bulk-note-input:focus {
    border-color: rgba(234, 88, 12, 0.58);
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.16);
}

.compact-note-button {
    min-height: 30px;
    justify-content: center;
    padding: 0 10px;
    color: #7c2d12;
    background: #ffedd5;
    border-color: rgba(234, 88, 12, 0.28);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    color: #ffedd5;
    background: rgba(251, 146, 60, 0.14);
    border: 1px solid rgba(251, 146, 60, 0.34);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.badge.completed,
.badge.active,
.badge.idle,
.badge.success {
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.34);
}

.badge.pending,
.badge.queued,
.badge.paused {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.34);
}

.badge.running,
.badge.info {
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.16);
    border-color: rgba(56, 189, 248, 0.36);
}

.badge.failed,
.badge.error {
    color: #fee2e2;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.36);
}

.badge.need_verify,
.badge.missing_data,
.badge.warning {
    color: #ffedd5;
    background: rgba(251, 146, 60, 0.15);
    border-color: rgba(251, 146, 60, 0.36);
}

.profile-runtime-panel {
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 18px;
    padding: 18px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(24, 12, 17, 0.78)),
        rgba(15, 23, 42, 0.74);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.26), 0 0 18px rgba(251, 146, 60, 0.08);
    backdrop-filter: blur(16px);
}

.profile-runtime-table-wrap {
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.36);
}

.profile-runtime-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.profile-runtime-table th,
.profile-runtime-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    text-align: left;
    vertical-align: top;
}

.profile-runtime-table th {
    color: #fed7aa;
    background: rgba(127, 29, 29, 0.22);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profile-runtime-table td {
    color: #f8fafc;
    line-height: 1.45;
}

.profile-runtime-table td strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 520px;
    color: #fff7ed;
}

.profile-runtime-table td small {
    display: block;
    margin-top: 4px;
    color: #cbd5e1;
    font-weight: 700;
}

.profile-runtime-table tr.is-trusted {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.11), rgba(34, 197, 94, 0.03));
}

.trust-check {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: #dcfce7;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border: 1px solid rgba(187, 247, 208, 0.76);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 1000;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12), 0 0 16px rgba(34, 197, 94, 0.22);
}

.trust-check--mini {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    font-size: 10px;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.1);
}

.profile-runtime-empty {
    color: #cbd5e1;
    text-align: center;
    font-weight: 800;
}

.danger-text {
    color: #fca5a5;
}

.alert {
    position: relative;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--led-border);
    background: rgba(24, 12, 17, 0.66);
    box-shadow: var(--led-glow);
    overflow: hidden;
}

.alert.danger {
    color: #fee2e2;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.32);
}

.alert.success {
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.32);
}

.terminal-log {
    position: relative;
    max-height: 420px;
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--led-border);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.92);
    box-shadow: inset 0 0 28px rgba(127, 29, 29, 0.16), var(--led-glow);
}

.terminal-line {
    display: grid;
    grid-template-columns: 170px 74px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

.terminal-line:last-child {
    border-bottom: 0;
}

.terminal-line strong {
    color: var(--primary);
}

.terminal-line.error strong,
.terminal-line.danger strong {
    color: var(--danger);
}

.terminal-line.warning strong {
    color: var(--warning);
}

.proof-image {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid var(--led-border);
    background: #020617;
    box-shadow: var(--led-glow);
}

.proof-frame {
    display: block;
    width: 100%;
    min-height: 680px;
    border: 1px solid var(--led-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--led-glow);
}

.pagination-wrap {
    margin-top: 16px;
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
}

.pagination-summary {
    font-size: 13px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.page-control {
    display: inline-flex;
    min-width: 34px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #fed7aa;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 10px;
    background: rgba(24, 12, 17, 0.66);
    font-size: 12px;
    font-weight: 800;
}

.page-control.active {
    color: #fff7ed;
    background: rgba(251, 146, 60, 0.2);
    border-color: var(--led-border-strong);
    box-shadow: var(--selected-shadow);
}

.page-control.disabled {
    color: rgba(148, 163, 184, 0.66);
    background: rgba(15, 23, 42, 0.52);
    cursor: default;
}

.auth-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
    width: min(1080px, 100%);
    overflow: hidden;
    border: 1px solid var(--led-border);
    border-radius: 28px;
    box-shadow: var(--shadow), var(--led-glow-strong);
    overflow: hidden;
}

.auth-intro {
    padding: 54px;
    background:
        radial-gradient(circle at 20% 10%, rgba(251, 146, 60, 0.18), transparent 24rem),
        linear-gradient(135deg, rgba(24, 8, 12, 0.96), rgba(15, 23, 42, 0.86));
}

.auth-intro h1 {
    margin: 20px 0 12px;
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.08;
}

.auth-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.auth-points span {
    padding: 9px 12px;
    color: #ffedd5;
    background: rgba(251, 146, 60, 0.11);
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.auth-card {
    padding: 44px;
    border: 0;
    border-left: 1px solid var(--led-border);
    border-radius: 0;
    background: rgba(18, 12, 20, 0.94);
}

.seal-auth-body {
    min-height: 100vh;
    overflow: hidden;
    background: #020305;
}

.seal-video-background,
.seal-video-overlay {
    position: fixed;
    inset: 0;
}

.system-video-body {
    background: #020305;
}

.system-video-background {
    z-index: 0;
}

.system-video-overlay {
    position: fixed;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 12%, rgba(127, 29, 29, 0.16), transparent 32rem),
        linear-gradient(180deg, rgba(2, 3, 5, 0.64), rgba(2, 3, 5, 0.82));
}

.seal-video-background {
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(87, 11, 11, 0.22), transparent 52%),
        #020305;
}

.seal-auth-backdrop {
    background:
        radial-gradient(ellipse at 50% 36%, rgba(153, 27, 27, 0.48) 0%, rgba(69, 10, 10, 0.34) 28%, rgba(2, 3, 5, 0.96) 72%),
        linear-gradient(145deg, #030406 0%, #160709 42%, #030406 100%);
}

.seal-auth-backdrop::before,
.seal-auth-backdrop::after {
    position: absolute;
    inset: -18%;
    content: "";
    pointer-events: none;
}

.seal-auth-backdrop::before {
    opacity: 0.46;
    background:
        repeating-radial-gradient(circle at center, rgba(254, 215, 170, 0.13) 0 1px, transparent 1px 24px),
        conic-gradient(from 225deg, rgba(251, 146, 60, 0.24), transparent 18%, rgba(127, 29, 29, 0.28), transparent 48%, rgba(254, 215, 170, 0.16), transparent 72%);
    transform: translateZ(0);
}

.seal-auth-backdrop::after {
    inset: 0;
    opacity: 0.42;
    background:
        linear-gradient(110deg, transparent 0 42%, rgba(255, 247, 237, 0.12) 48%, transparent 54%),
        radial-gradient(circle at 50% 50%, transparent 0 36%, rgba(0, 0, 0, 0.46) 72%, rgba(0, 0, 0, 0.86) 100%);
}

.seal-video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-width: 177.78vh;
    min-height: 100vh;
    border: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1.18);
    filter: brightness(0.5) contrast(1.18) saturate(0.72);
}

.seal-video-overlay {
    z-index: 1;
    background:
        radial-gradient(circle at center, rgba(95, 9, 9, 0.12) 0%, rgba(2, 3, 5, 0.52) 52%, rgba(2, 3, 5, 0.9) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.7));
}

.seal-login-stage {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 16px;
}

.seal-login-card {
    position: relative;
    display: grid;
    width: min(650px, 92vw, calc(100vh - 32px));
    aspect-ratio: 1;
    place-items: center;
    border: 2px solid rgba(254, 215, 170, 0.78);
    border-radius: 50%;
    background:
        radial-gradient(circle at 36% 24%, rgba(255, 237, 213, 0.28) 0%, transparent 17%),
        radial-gradient(circle at 50% 40%, rgba(91, 13, 14, 0.98) 0%, rgba(28, 8, 10, 0.98) 48%, rgba(3, 4, 6, 0.99) 100%);
    box-shadow:
        0 32px 70px rgba(0, 0, 0, 0.66),
        0 0 0 7px rgba(69, 10, 10, 0.82),
        0 0 0 10px rgba(251, 146, 60, 0.38),
        0 0 0 13px rgba(127, 29, 29, 0.42),
        0 0 38px rgba(248, 113, 113, 0.42),
        inset 0 12px 28px rgba(255, 247, 237, 0.12),
        inset 0 -28px 46px rgba(0, 0, 0, 0.62),
        inset 0 0 0 3px rgba(127, 29, 29, 0.66);
    isolation: isolate;
    transform: translateZ(0);
}

.seal-login-card::before,
.seal-login-card::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.seal-login-card::before {
    inset: 17px;
    border: 2px solid rgba(254, 215, 170, 0.58);
    box-shadow:
        inset 0 0 0 3px rgba(127, 29, 29, 0.56),
        inset 0 0 22px rgba(251, 146, 60, 0.22),
        0 0 18px rgba(251, 146, 60, 0.2);
}

.seal-login-card::after {
    inset: 34px;
    border: 1px dashed rgba(254, 215, 170, 0.52);
    box-shadow:
        inset 0 0 0 1px rgba(127, 29, 29, 0.46),
        inset 0 0 36px rgba(0, 0, 0, 0.28);
}

.seal-login-content {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(350px, 62%);
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

.seal-logo-frame {
    position: relative;
    width: clamp(96px, 20vw, 152px);
    aspect-ratio: 1;
    margin: 0 auto 10px;
    overflow: hidden;
    border: 2px solid rgba(254, 215, 170, 0.74);
    border-radius: 50%;
    background:
        radial-gradient(circle at 36% 22%, rgba(255, 247, 237, 0.22), transparent 34%),
        rgba(0, 0, 0, 0.48);
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.48),
        0 0 0 5px rgba(127, 29, 29, 0.34),
        0 0 0 7px rgba(251, 146, 60, 0.18),
        inset 0 8px 18px rgba(255, 247, 237, 0.1),
        inset 0 -12px 20px rgba(0, 0, 0, 0.5);
}

.seal-logo-frame img {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    height: 100%;
    max-width: none;
    transform: translateX(-50%);
}

.seal-kicker {
    margin-bottom: 14px;
    color: #fed7aa;
    font-size: clamp(9px, 1.3vw, 11px);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.seal-login-content h1 {
    margin: 5px 0 3px;
    color: #fff7ed;
    font-size: clamp(18px, 3.5vw, 28px);
    line-height: 1.15;
    text-shadow: 0 0 18px rgba(239, 68, 68, 0.42);
}

.seal-login-subtitle {
    margin: 0 0 12px;
    color: #cbd5e1;
    font-size: clamp(10px, 1.6vw, 12px);
}

.seal-login-alert {
    margin-bottom: 10px;
    padding: 8px 10px;
    color: #fee2e2;
    background: rgba(127, 29, 29, 0.52);
    border: 1px solid rgba(248, 113, 113, 0.5);
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.4;
}

.seal-login-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.seal-field {
    display: block;
    text-align: left;
}

.seal-field span {
    margin: 0 0 4px 10px;
    color: #fed7aa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: none;
}

.seal-field input {
    min-height: 42px;
    padding: 0 14px;
    color: #fff;
    background: rgba(2, 3, 5, 0.74);
    border: 1px solid rgba(254, 215, 170, 0.38);
    border-radius: 999px;
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.36),
        inset 0 0 18px rgba(127, 29, 29, 0.16);
}

.seal-field input::placeholder {
    color: rgba(254, 215, 170, 0.58);
}

.seal-field input:focus {
    border-color: #fb923c;
    box-shadow:
        0 0 0 3px rgba(251, 146, 60, 0.16),
        0 0 20px rgba(239, 68, 68, 0.24);
}

.seal-login-button {
    min-height: 43px;
    margin-top: 2px;
    color: #fff7ed;
    background: linear-gradient(135deg, #991b1b, #dc2626 48%, #fb923c);
    border: 1px solid rgba(254, 215, 170, 0.48);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow:
        0 10px 24px rgba(127, 29, 29, 0.4),
        0 0 18px rgba(239, 68, 68, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.seal-login-button:hover {
    background: linear-gradient(135deg, #b91c1c, #ef4444 48%, #f59e0b);
    box-shadow:
        0 12px 28px rgba(127, 29, 29, 0.48),
        0 0 25px rgba(239, 68, 68, 0.38);
    transform: translateY(-1px);
}

.seal-login-button:active {
    transform: translateY(0);
}

.source-control-shell {
    position: relative;
    display: grid;
    gap: 18px;
}

.source-control-head,
.source-browser-panel,
.source-typing-panel {
    position: relative;
    border: 1px solid var(--led-border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--led-glow), 0 18px 42px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.source-control-head::after,
.source-browser-panel::after,
.source-typing-panel::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(251, 146, 60, 0.12);
    border-radius: inherit;
    box-shadow: inset 0 0 18px rgba(239, 68, 68, 0.05);
    content: "";
    pointer-events: none;
}

.source-control-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
}

.source-control-head h2,
.source-typing-panel h3 {
    margin: 4px 0 8px;
}

.source-control-head p,
.source-typing-panel p {
    margin: 0 0 6px;
    color: var(--muted);
    line-height: 1.55;
}

.source-control-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.source-control-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 18px;
    align-items: start;
}

.source-browser-panel {
    min-width: 0;
    padding: 14px;
}

.source-browser-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    padding-bottom: 12px;
}

.source-browser-toolbar .link-button,
.source-browser-toolbar .primary-button,
.source-keypad .link-button {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 12px;
    white-space: nowrap;
}

.source-control-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    color: var(--muted);
    border: 1px solid var(--led-border);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.3);
}

.source-control-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.source-browser-screen {
    position: relative;
    min-height: 420px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.92)),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.06) 1px, transparent 1px, transparent 6px);
    box-shadow: inset 0 0 36px rgba(2, 6, 23, 0.64);
    overflow: auto;
}

.source-chrome-screen {
    display: block;
    width: 100%;
    min-height: 420px;
    object-fit: contain;
    cursor: crosshair;
    user-select: none;
}

.source-typing-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.source-type-form {
    display: grid;
    gap: 12px;
}

.source-type-form label {
    display: grid;
    gap: 8px;
    color: #fed7aa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.source-secret-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    overflow: hidden;
    border: 1px solid var(--led-border);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.56);
}

.source-secret-field input {
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: 0;
}

.source-secret-field:focus-within {
    border-color: var(--led-border-strong);
    box-shadow: var(--selected-shadow);
}

.source-eye-button {
    display: grid;
    place-items: center;
    color: #fed7aa;
    background: rgba(251, 146, 60, 0.09);
    border: 0;
    border-left: 1px solid var(--led-border);
    cursor: pointer;
}

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

.source-security-note {
    padding: 12px 14px;
    color: #fed7aa;
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 14px;
    background: rgba(127, 29, 29, 0.16);
    line-height: 1.55;
}

.toast-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 240px;
    max-width: min(360px, calc(100vw - 44px));
    padding: 12px 14px;
    color: #fff7ed;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid var(--led-border-strong);
    border-radius: 14px;
    box-shadow: var(--selected-shadow);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast--show {
    opacity: 1;
    transform: translateY(0);
}

.toast--error {
    color: #fee2e2;
    border-color: rgba(239, 68, 68, 0.42);
    background: rgba(127, 29, 29, 0.94);
}

@media (max-width: 1180px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ops-blocker-card {
        grid-template-columns: 1fr;
    }

    .ops-recovery-card {
        grid-template-columns: 1fr;
    }

    .ops-waiting-alert {
        align-items: flex-start;
        flex-direction: column;
    }

    .source-control-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .topbar,
    .hero-panel,
    .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .page,
    .topbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .ops-blocker-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ops-recovery-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-card {
        border-left: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.18);
    }

    .auth-intro,
    .auth-card {
        padding: 30px;
    }

    .source-control-head {
        flex-direction: column;
    }

    .source-control-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .ops-blocker-stats {
        grid-template-columns: 1fr;
    }

    .ops-recovery-steps {
        grid-template-columns: 1fr;
    }

    .seal-login-stage {
        padding: 10px;
    }

    .seal-login-card {
        width: min(95vw, calc(100vh - 20px));
        border-width: 2px;
        box-shadow:
            0 0 0 5px rgba(127, 29, 29, 0.34),
            0 0 0 7px rgba(239, 68, 68, 0.2),
            0 0 32px rgba(220, 38, 38, 0.5);
    }

    .seal-login-card::before {
        inset: 10px;
    }

    .seal-login-card::after {
        inset: 22px;
    }

    .seal-login-content {
        width: 68%;
    }

    .seal-logo-frame {
        width: clamp(72px, 25vw, 104px);
        margin-bottom: 6px;
    }

    .seal-login-subtitle {
        margin-bottom: 8px;
    }

    .seal-login-form {
        gap: 6px;
    }

    .seal-field input,
    .seal-login-button {
        min-height: 38px;
    }

    .source-browser-toolbar,
    .source-control-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .source-browser-toolbar .link-button,
    .source-browser-toolbar .primary-button,
    .source-control-actions .link-button,
    .source-control-actions .primary-button,
    .source-control-actions form {
        width: 100%;
    }

    .source-keypad {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 620px) and (orientation: landscape) {
    .seal-login-card {
        width: min(92vw, calc(100vh - 18px));
    }

    .seal-logo-frame {
        width: 78px;
        margin-bottom: 4px;
    }

    .seal-login-subtitle,
    .seal-field span {
        display: none;
    }

    .seal-login-content {
        width: 64%;
    }

    .seal-field input,
    .seal-login-button {
        min-height: 36px;
    }
}

/* Compact production workspace overrides - keep backend behavior untouched. */
:root {
    --led-border: rgba(251, 146, 60, 0.12);
    --led-border-strong: rgba(251, 146, 60, 0.22);
    --led-glow: 0 0 8px rgba(239, 68, 68, 0.045), 0 0 16px rgba(251, 146, 60, 0.035);
    --led-glow-strong: 0 0 0 1px rgba(248, 113, 113, 0.08), 0 0 12px rgba(239, 68, 68, 0.1), 0 0 24px rgba(251, 146, 60, 0.045);
    --selected-shadow: 0 12px 26px rgba(2, 6, 23, 0.28), 0 0 0 1px rgba(251, 146, 60, 0.2), 0 0 12px rgba(251, 146, 60, 0.075);
}

.system-video-body {
    overflow: hidden;
}

.app-shell {
    grid-template-columns: 82px minmax(0, 1fr);
    height: 100vh;
    overflow: hidden;
    transition: grid-template-columns 0.18s ease;
}

.sidebar-expanded .app-shell,
.app-shell:has(.sidebar:hover) {
    grid-template-columns: 278px minmax(0, 1fr);
}

.sidebar {
    width: 100%;
    padding: 16px 12px;
    overflow: hidden;
    transition: padding 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    align-self: center;
    gap: 4px;
    margin-bottom: 2px;
    padding: 10px;
    border: 1px solid var(--led-border);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--led-glow);
    cursor: pointer;
}

.sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fed7aa;
}

.brand {
    min-height: 68px;
    justify-content: center;
    padding: 10px 8px;
}

.brand > span:last-child,
.sidebar-nav a span,
.nav-title,
.logout-form button {
    white-space: nowrap;
    transition: opacity 0.15s ease, width 0.15s ease, transform 0.15s ease;
}

body:not(.sidebar-expanded) .app-shell:not(:has(.sidebar:hover)) .brand > span:last-child,
body:not(.sidebar-expanded) .app-shell:not(:has(.sidebar:hover)) .sidebar-nav a span,
body:not(.sidebar-expanded) .app-shell:not(:has(.sidebar:hover)) .sidebar-subnav,
body:not(.sidebar-expanded) .app-shell:not(:has(.sidebar:hover)) .nav-title,
body:not(.sidebar-expanded) .app-shell:not(:has(.sidebar:hover)) .logout-form button {
    width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-6px);
}

body:not(.sidebar-expanded) .app-shell:not(:has(.sidebar:hover)) .brand {
    gap: 0;
}

body:not(.sidebar-expanded) .app-shell:not(:has(.sidebar:hover)) .sidebar-nav a {
    justify-content: center;
    padding: 11px 8px;
}

body:not(.sidebar-expanded) .app-shell:not(:has(.sidebar:hover)) .logout-form {
    display: grid;
    place-items: center;
}

body:not(.sidebar-expanded) .app-shell:not(:has(.sidebar:hover)) .logout-form button {
    min-width: 44px;
    color: transparent;
}

body:not(.sidebar-expanded) .app-shell:not(:has(.sidebar:hover)) .logout-form button::before {
    color: #fed7aa;
    content: "⎋";
}

.workspace {
    min-width: 0;
    height: 100vh;
    overflow: hidden;
}

.topbar {
    min-height: 76px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.page {
    height: calc(100vh - 76px);
    overflow: auto;
    scroll-behavior: smooth;
}

.brand,
.topbar,
.hero-panel,
.panel,
.stat-card,
.health-card,
.source-account-card,
.source-control-head,
.source-browser-panel,
.source-typing-panel,
.result-control-panel {
    box-shadow: var(--led-glow), 0 12px 28px rgba(2, 6, 23, 0.22);
}

.sidebar-nav a.active,
.sidebar-nav a:hover,
.filter-chip.active,
.link-button:focus-visible,
.primary-button:focus-visible,
.bulk-status-check:focus-within,
.source-secret-field:focus-within {
    box-shadow: var(--selected-shadow);
}

.result-control-panel {
    position: sticky;
    top: 0;
    z-index: 35;
    margin-bottom: 14px;
    border: 1px solid var(--led-border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(18px);
}

.result-control-grid {
    gap: 10px;
}

.result-search-card,
.result-filter-card,
.result-action-card,
.result-bulk-card {
    border-color: rgba(251, 146, 60, 0.12);
    background: rgba(2, 6, 23, 0.32);
}

.filter-chip {
    min-height: 34px;
    border-radius: 999px;
}

.table-wrap {
    max-height: min(64vh, 680px);
    overflow: auto;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 14px;
    background: #ffffff;
}

.wide-table {
    min-width: 1160px;
    table-layout: fixed;
    font-size: 12px;
}

.wide-table th,
.wide-table td {
    padding: 9px 10px;
    line-height: 1.35;
}

.wide-table th {
    top: 0;
    z-index: 8;
    color: #fff;
    background: linear-gradient(180deg, #164a73, #0f3554);
    border-bottom: 1px solid rgba(15, 23, 42, 0.32);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.16);
}

.wide-table tbody tr {
    background: #ffffff;
}

.wide-table tbody td {
    color: #111827;
    border-right: 1px solid rgba(15, 23, 42, 0.12);
    border-bottom: 1px solid rgba(15, 23, 42, 0.14);
}

.wide-table tbody td:nth-child(1),
.wide-table tbody td:nth-child(2),
.wide-table tbody td:nth-child(9),
.wide-table tbody td:nth-child(10),
.wide-table tbody td:nth-child(11),
.wide-table thead th:nth-child(1),
.wide-table thead th:nth-child(2),
.wide-table thead th:nth-child(9),
.wide-table thead th:nth-child(10),
.wide-table thead th:nth-child(11) {
    width: 54px;
    text-align: center;
}

.wide-table tbody td:nth-child(3),
.wide-table thead th:nth-child(3) {
    width: 130px;
}

.wide-table tbody td:nth-child(4),
.wide-table thead th:nth-child(4),
.wide-table tbody td:nth-child(6),
.wide-table thead th:nth-child(6) {
    width: 210px;
}

.wide-table tbody td:nth-child(5),
.wide-table thead th:nth-child(5) {
    width: 280px;
}

.wide-table tbody td:nth-child(7),
.wide-table thead th:nth-child(7) {
    width: 190px;
}

.wide-table tbody td:nth-child(8),
.wide-table thead th:nth-child(8) {
    width: 220px;
}

.wide-table tbody td:nth-child(12),
.wide-table thead th:nth-child(12) {
    width: 230px;
}

.wide-table tbody td:nth-child(13),
.wide-table thead th:nth-child(13) {
    width: 180px;
}

.wide-table tbody tr.row-called td {
    color: #14532d;
    background: #ecfdf3;
}

.wide-table tbody tr.row-removed td {
    color: #991b1b;
    background: #fff1f2;
}

.bulk-status-check {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 18px;
}

.bulk-note-box {
    min-width: 0;
}

.bulk-note-title {
    min-height: 28px;
}

.bulk-note-input {
    min-height: 46px;
    max-height: 112px;
}

.bulk-pagination-bar {
    position: sticky;
    bottom: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 0 0;
    background: rgba(17, 24, 39, 0.86);
}

.terminal-log {
    max-height: 260px;
    overflow: auto;
}

.seal-login-card {
    box-shadow:
        0 0 0 8px rgba(127, 29, 29, 0.2),
        0 0 0 11px rgba(251, 146, 60, 0.1),
        0 0 26px rgba(220, 38, 38, 0.24),
        0 0 54px rgba(234, 88, 12, 0.08),
        inset 0 0 60px rgba(153, 27, 27, 0.2);
}

@media (max-width: 860px) {
    .system-video-body {
        overflow: auto;
    }

    .app-shell,
    .sidebar-expanded .app-shell,
    .app-shell:has(.sidebar:hover) {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .workspace,
    .page {
        height: auto;
        overflow: visible;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .brand > span:last-child,
    .sidebar-nav a span,
    .nav-title,
    .logout-form button {
        width: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    .sidebar-toggle {
        display: none;
    }

    .result-control-panel {
        position: static;
    }
}

.toast-container {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 9999;
    display: grid;
    gap: 12px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.app-toast {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    align-items: start;
    gap: 12px;
    padding: 14px 14px 14px 13px;
    color: #f8fafc;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(24, 24, 27, 0.94)),
        rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(251, 146, 60, 0.34);
    border-left: 4px solid #38bdf8;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34), 0 0 24px rgba(251, 146, 60, 0.12);
    opacity: 0;
    transform: translateY(-12px) translateX(18px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: auto;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.app-toast.is-leaving {
    opacity: 0;
    transform: translateY(-10px) translateX(20px);
}

.app-toast__icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.46);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
}

.app-toast__icon::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    margin: 9px auto;
    border-radius: 999px;
    background: #38bdf8;
}

.app-toast__body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.app-toast__body strong {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.app-toast__body span {
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.app-toast__close {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 10px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.14);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.app-toast__close:hover {
    color: #ffffff;
    background: rgba(248, 250, 252, 0.18);
}

.app-toast--success {
    border-left-color: #22c55e;
}

.app-toast--success .app-toast__icon {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.52);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.2);
}

.app-toast--success .app-toast__icon::after {
    background: #22c55e;
}

.app-toast--error {
    border-left-color: #ef4444;
}

.app-toast--error .app-toast__icon {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.52);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.22);
}

.app-toast--error .app-toast__icon::after {
    background: #ef4444;
}

.app-toast--warning {
    border-left-color: #f59e0b;
}

.app-toast--warning .app-toast__icon {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.52);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.22);
}

.app-toast--warning .app-toast__icon::after {
    background: #f59e0b;
}

.internal-hero {
    align-items: stretch;
}

.internal-reward-card {
    padding: 20px 22px;
    border: 1px solid rgba(34, 197, 94, 0.36);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.72), rgba(15, 23, 42, 0.86));
    box-shadow: 0 16px 36px rgba(34, 197, 94, 0.12);
}

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

.internal-two-column {
    align-items: start;
}

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

.internal-person-row,
.internal-notice {
    display: grid;
    gap: 8px;
    padding: 13px 14px;
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.42);
}

.internal-person-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.internal-person-row small,
.internal-notice small {
    color: #cbd5e1;
}

.internal-notice p {
    margin: 0;
    color: #e5e7eb;
}

.internal-notice.success {
    border-color: rgba(34, 197, 94, 0.34);
}

.internal-notice.warning {
    border-color: rgba(245, 158, 11, 0.36);
}

.internal-notice.danger {
    border-color: rgba(239, 68, 68, 0.38);
}

.internal-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.compact-form {
    display: grid;
    align-content: start;
    gap: 12px;
}

.compact-form label {
    display: grid;
    gap: 6px;
    color: #f8fafc;
    font-weight: 800;
}

.compact-form label span {
    color: #fed7aa;
    font-size: 12px;
    text-transform: uppercase;
}

.compact-form input,
.compact-form select,
.compact-form textarea {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    color: #f8fafc;
    background: rgba(2, 6, 23, 0.54);
    border: 1px solid rgba(251, 146, 60, 0.26);
    border-radius: 12px;
    outline: none;
}

.compact-form textarea {
    resize: vertical;
}

.compact-form input:focus,
.compact-form select:focus,
.compact-form textarea:focus {
    border-color: rgba(251, 146, 60, 0.72);
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.13);
}

@media (max-width: 640px) {
    .toast-container {
        top: 14px;
        right: 14px;
        left: 14px;
        width: auto;
    }
}

/* Final dashboard usability override: this must stay at the end of the file. */
.system-video-background,
.seal-video-background,
.seal-video-background iframe,
.system-video-overlay {
    pointer-events: none !important;
}

.app-shell,
.workspace,
.page {
    position: relative !important;
}

.app-shell {
    z-index: 10 !important;
}

.workspace {
    z-index: 12 !important;
    min-width: 0 !important;
}

.page {
    z-index: 14 !important;
    min-height: 0 !important;
}

.hero-panel,
.ops-blocker-card,
.ops-recovery-card,
.ops-waiting-alert,
.panel,
.source-account-card,
.stat-card,
.health-card {
    min-height: unset !important;
    max-height: none !important;
}

.hero-panel,
.ops-blocker-card,
.ops-recovery-card,
.ops-waiting-alert,
.panel {
    overflow: visible !important;
}

.ops-blocker-card,
.ops-recovery-card {
    display: grid !important;
    visibility: visible !important;
}

.ops-recovery-main,
.ops-recovery-actions,
.ops-blocker-stats,
.source-account-grid,
.source-account-actions {
    position: relative !important;
    z-index: 2 !important;
}

.source-account-actions,
.ops-recovery-actions,
.hero-actions,
.panel-head {
    pointer-events: auto !important;
}

.source-account-actions button,
.source-account-actions a,
.ops-recovery-actions button,
.ops-recovery-actions a,
.hero-actions button,
.hero-actions a,
.panel-head a,
.table-wrap a,
.sidebar a,
.sidebar button,
.topbar,
.user-pill {
    position: relative !important;
    z-index: 3 !important;
    pointer-events: auto !important;
}

.table-wrap table:not(.wide-table) {
    width: 100% !important;
    color: #111827 !important;
    background: #ffffff !important;
}

.table-wrap table:not(.wide-table) tbody td,
.table-wrap table:not(.wide-table) tbody th {
    color: #111827 !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.09) !important;
}

.table-wrap table:not(.wide-table) tbody a {
    color: #c2410c !important;
    font-weight: 800 !important;
}

.table-wrap table:not(.wide-table) tbody small {
    display: block !important;
    color: #475569 !important;
}

@media (min-width: 861px) {
    .system-video-body {
        overflow: hidden !important;
    }

    .workspace {
        height: 100vh !important;
        overflow: hidden !important;
    }

    .page {
        height: calc(100vh - 76px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

/* Final readability repair for production result tables and function panels. */
.hero-panel,
.ops-blocker-card,
.ops-recovery-card,
.ops-waiting-alert,
.panel,
.source-account-card,
.stat-card,
.health-card,
.result-control-panel,
.result-search-card,
.result-filter-card,
.result-action-card,
.result-bulk-card,
.internal-reward-card,
.source-browser-panel,
.source-typing-panel {
    border-color: rgba(251, 146, 60, 0.34) !important;
    background:
        linear-gradient(135deg, rgba(32, 18, 24, 0.94), rgba(8, 12, 24, 0.9)),
        rgba(15, 23, 42, 0.94) !important;
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.34),
        0 0 34px rgba(234, 88, 12, 0.12),
        inset 0 0 0 1px rgba(251, 146, 60, 0.1) !important;
}

.table-wrap {
    border: 2px solid rgba(15, 23, 42, 0.32) !important;
    background: #ffffff !important;
    box-shadow:
        0 18px 36px rgba(2, 6, 23, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset !important;
}

.table-wrap table {
    color: #0b1120 !important;
    background: #ffffff !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table-wrap thead th,
.wide-table thead th {
    color: #ffffff !important;
    background: linear-gradient(180deg, #1f5f8f, #123f63) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-bottom: 2px solid rgba(15, 23, 42, 0.5) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45) !important;
}

.table-wrap tbody tr,
.wide-table tbody tr,
.table-wrap table:not(.wide-table) tbody tr {
    background: #ffffff !important;
}

.table-wrap tbody tr:nth-child(even),
.wide-table tbody tr:nth-child(even),
.table-wrap table:not(.wide-table) tbody tr:nth-child(even) {
    background: #f8fafc !important;
}

.table-wrap tbody td,
.table-wrap tbody th,
.wide-table tbody td,
.table-wrap table:not(.wide-table) tbody td,
.table-wrap table:not(.wide-table) tbody th {
    color: #0b1120 !important;
    background: inherit !important;
    border-right: 1px solid rgba(15, 23, 42, 0.26) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.26) !important;
    font-weight: 650 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

.table-wrap tbody td strong,
.table-wrap tbody td b,
.wide-table tbody td strong,
.wide-table tbody td b {
    color: #020617 !important;
    font-weight: 900 !important;
}

.table-wrap tbody td small,
.table-wrap tbody td p,
.table-wrap tbody td div:not(.bulk-note-box):not(.bulk-status-check),
.table-wrap tbody td span:not(.badge):not(.bulk-selection-counter),
.wide-table tbody td small,
.wide-table tbody td p,
.wide-table tbody td div:not(.bulk-note-box):not(.bulk-status-check),
.wide-table tbody td span:not(.badge):not(.bulk-selection-counter) {
    color: #1e293b !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.table-wrap tbody td a,
.wide-table tbody td a,
.table-wrap table:not(.wide-table) tbody a {
    color: #0f4c81 !important;
    font-weight: 900 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

.wide-table tbody tr.row-called td {
    color: #14532d !important;
    background: #dcfce7 !important;
    border-color: rgba(22, 101, 52, 0.28) !important;
}

.wide-table tbody tr.row-removed td {
    color: #991b1b !important;
    background: #fee2e2 !important;
    border-color: rgba(153, 27, 27, 0.28) !important;
}

.wide-table tbody tr.row-called td *,
.wide-table tbody tr.row-removed td * {
    color: inherit !important;
}

.wide-table tbody tr.row-called .badge,
.wide-table tbody tr.row-removed .badge,
.table-wrap .badge {
    color: #ffffff !important;
    text-shadow: none !important;
}

.bulk-note-title,
.bulk-note-input {
    color: #020617 !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.26) !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08) !important;
}

.bulk-status-check {
    border: 2px solid rgba(15, 23, 42, 0.42) !important;
    background: #ffffff !important;
    color: #020617 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12) !important;
}

.bulk-status-check span {
    color: inherit !important;
    text-shadow: none !important;
}

.danger-text {
    color: #b91c1c !important;
    font-weight: 800 !important;
}

.workspace-overview-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    gap: 16px;
    align-items: start;
}

.workspace-file-list {
    display: grid;
    gap: 10px;
    max-height: 480px;
    overflow: auto;
    padding-right: 4px;
}

.workspace-file-card {
    display: grid;
    gap: 7px;
    padding: 13px 14px;
    color: #f8fafc;
    text-decoration: none;
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.38);
}

.workspace-file-card.active,
.workspace-file-card:hover {
    border-color: rgba(251, 146, 60, 0.58);
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

.workspace-file-card strong {
    line-height: 1.35;
}

.workspace-file-card small {
    color: #cbd5e1;
}

.workspace-file-stats,
.workspace-focus-stats,
.workspace-status-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.workspace-file-stats span,
.mini-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(251, 146, 60, 0.12);
    border: 1px solid rgba(251, 146, 60, 0.2);
    font-size: 12px;
    font-weight: 900;
}

.workspace-focus-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
}

.workspace-focus-stats article {
    padding: 14px;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.34);
}

.workspace-focus-stats span {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
}

.workspace-focus-stats strong {
    display: block;
    margin-top: 5px;
    font-size: 24px;
}

.workspace-table {
    min-width: 1180px;
}

.workspace-table tbody td {
    line-height: 1.42;
}

.mini-pill.active {
    color: #14532d;
    background: #bbf7d0;
    border-color: rgba(22, 101, 52, 0.28);
}

.mini-pill.active.info {
    color: #075985;
    background: #bae6fd;
    border-color: rgba(3, 105, 161, 0.26);
}

.mini-pill.active.danger {
    color: #991b1b;
    background: #fecaca;
    border-color: rgba(153, 27, 27, 0.28);
}

@media (max-width: 1100px) {
    .workspace-overview-grid {
        grid-template-columns: 1fr;
    }
}

.workspace-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.2);
    backdrop-filter: blur(14px);
}

.workspace-control-bar strong {
    display: block;
    margin-top: 4px;
    color: #fff7ed;
}

.workspace-layout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.workspace-operating-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.72fr) minmax(480px, 1.5fr) minmax(330px, 0.92fr);
    gap: 16px;
    align-items: start;
}

.workspace-side-column {
    display: grid;
    gap: 16px;
    min-width: 0;
}

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

.workspace-results-panel,
.workspace-map-panel,
.workspace-note-panel {
    min-height: 0;
}

.workspace-result-list {
    display: grid;
    gap: 10px;
    max-height: calc(100vh - 265px);
    overflow: auto;
    padding-right: 4px;
}

.workspace-result-item {
    display: grid;
    grid-template-columns: 72px minmax(210px, 1.15fr) minmax(190px, 0.9fr) minmax(230px, 1fr) minmax(180px, 0.85fr);
    gap: 10px;
    width: 100%;
    padding: 12px;
    color: #111827;
    text-align: left;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 13px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.workspace-result-item:hover,
.workspace-result-item.active {
    border-color: rgba(251, 146, 60, 0.7);
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.16), 0 10px 26px rgba(2, 6, 23, 0.16);
    transform: translateY(-1px);
}

.workspace-result-item.is-live-new {
    animation: runtimeNewRow 2.6s ease-out both;
}

.workspace-result-item.row-called {
    background: #f0fdf4;
}

.workspace-result-item.row-removed {
    background: #fff1f2;
}

.workspace-row-index {
    align-self: start;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 1000;
}

.workspace-row-main,
.workspace-row-meta,
.workspace-row-address {
    display: grid;
    gap: 4px;
    min-width: 0;
    line-height: 1.36;
}

.workspace-row-main strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 1000;
}

.workspace-row-meta b {
    color: #1d4ed8;
    font-size: 11px;
    text-transform: uppercase;
}

.workspace-row-main small,
.workspace-row-meta small,
.workspace-row-address {
    color: #1f2937;
    font-size: 12px;
}

.workspace-result-item .workspace-status-pills {
    grid-column: 1 / -1;
    justify-content: flex-start;
}

.workspace-map-frame {
    width: 100%;
    height: 320px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.4);
}

.workspace-note-form {
    display: grid;
    gap: 12px;
}

.workspace-note-form label {
    display: grid;
    gap: 7px;
    color: #fed7aa;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.workspace-note-form input,
.workspace-note-form select,
.workspace-note-form textarea {
    width: 100%;
    border: 1px solid rgba(251, 146, 60, 0.26);
    border-radius: 12px;
    padding: 11px 12px;
    color: #f8fafc;
    background: rgba(2, 6, 23, 0.7);
    outline: none;
}

.workspace-note-form textarea {
    min-height: 190px;
    resize: vertical;
    line-height: 1.55;
}

.workspace-note-form input:focus,
.workspace-note-form select:focus,
.workspace-note-form textarea:focus {
    border-color: rgba(251, 146, 60, 0.72);
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.14);
}

.workspace-empty-state {
    padding: 28px;
    color: #cbd5e1;
    text-align: center;
    border: 1px dashed rgba(251, 146, 60, 0.3);
    border-radius: 14px;
}

.workspace-mode-results {
    grid-template-columns: minmax(210px, 0.45fr) minmax(680px, 2fr) minmax(280px, 0.55fr);
}

.workspace-mode-map {
    grid-template-columns: minmax(210px, 0.5fr) minmax(360px, 0.8fr) minmax(560px, 1.5fr);
}

.workspace-mode-notes {
    grid-template-columns: minmax(210px, 0.5fr) minmax(360px, 0.8fr) minmax(560px, 1.5fr);
}

.workspace-mode-map .workspace-map-frame {
    height: 620px;
}

.workspace-mode-notes .workspace-note-form textarea,
.workspace-mode-all .workspace-note-form textarea {
    min-height: 420px;
}

.workspace-mode-all {
    grid-template-columns: minmax(210px, 0.5fr) minmax(560px, 1.2fr) minmax(560px, 1.2fr);
}

@media (max-width: 1280px) {
    .workspace-operating-grid,
    .workspace-mode-results,
    .workspace-mode-map,
    .workspace-mode-notes,
    .workspace-mode-all {
        grid-template-columns: 1fr;
    }

    .workspace-result-item {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .workspace-row-meta,
    .workspace-row-address {
        grid-column: 2 / -1;
    }
}

/* Batch Excel result table: grouped production layout */
.bulk-result-table {
    min-width: 1180px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
}

.bulk-result-table thead th {
    position: sticky;
    top: 0;
    z-index: 15;
    padding: 10px 12px;
    text-align: center;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(180deg, #1f5e8f, #153d60);
    border: 1px solid rgba(15, 23, 42, 0.5);
}

.bulk-result-table thead th:nth-child(1),
.bulk-result-table tbody td:nth-child(1) {
    width: 26%;
}

.bulk-result-table thead th:nth-child(2),
.bulk-result-table tbody td:nth-child(2) {
    width: 31%;
}

.bulk-result-table thead th:nth-child(3),
.bulk-result-table tbody td:nth-child(3) {
    width: 31%;
}

.bulk-result-table thead th:nth-child(4),
.bulk-result-table tbody td:nth-child(4) {
    width: 12%;
}

.bulk-result-table tbody tr,
.bulk-result-table tbody tr:nth-child(even) {
    background: #ffffff;
}

.bulk-result-table tbody td {
    padding: 10px 12px;
    vertical-align: top;
    color: #0f172a;
    background: #ffffff;
    border-right: 1px solid #1f2937;
    border-bottom: 2px solid #1f2937;
}

.bulk-result-table tbody td:first-child {
    border-left: 1px solid #1f2937;
}

.bulk-result-table tbody tr.row-called td {
    color: #064e3b;
    background: #ecfdf5;
}

.bulk-result-table tbody tr.row-removed td {
    color: #7f1d1d;
    background: #fff1f2;
}

.result-info-block {
    display: grid;
    gap: 5px;
    line-height: 1.28;
}

.result-info-block p {
    margin: 0;
    padding-bottom: 5px;
    color: #0f172a;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.22);
}

.result-info-block p:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.result-info-block span {
    color: #075985 !important;
    font-weight: 900;
    text-transform: uppercase;
}

.result-info-block strong {
    color: #0f172a;
    font-weight: 800;
}

.status-stack-cell {
    display: grid;
    gap: 7px;
    min-width: 138px;
}

.status-stack-cell > .bulk-row-select {
    width: 16px;
    height: 16px;
    justify-self: start;
}

.result-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: #1f2937;
    background: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.result-status-pill input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #0f766e;
}

.result-status-pill:has(input:checked) {
    border-color: #86efac;
    color: #14532d;
    background: #dcfce7;
}

.result-status-pill.danger {
    border-color: #fecaca;
    background: #fff1f2;
}

.result-status-pill.danger:has(input:checked) {
    border-color: #f87171;
    color: #991b1b;
    background: #fee2e2;
}

.result-status-pill.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.result-status-pill.info {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.result-status-pill input:disabled + span {
    opacity: 0.45;
}

.bulk-result-table .danger-text {
    display: block;
    padding: 7px 8px;
    border-radius: 8px;
    color: #991b1b !important;
    background: #fee2e2;
}

/* PHP assistant workspace */
.assistant-workbench {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.assistant-card--wide {
    grid-column: 1 / -1;
}

.stack-form {
    display: grid;
    gap: 14px;
}

.stack-form label {
    display: grid;
    gap: 7px;
    color: #fed7aa;
    font-weight: 800;
}

.stack-form input,
.stack-form select,
.stack-form textarea {
    width: 100%;
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 12px;
    padding: 12px 14px;
    color: #f8fafc;
    background: rgba(2, 6, 23, 0.72);
    outline: none;
}

.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus {
    border-color: rgba(251, 146, 60, 0.78);
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.16);
}

.assistant-result-panel pre,
.assistant-log-item pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    padding: 14px;
    color: #0f172a;
    background: #ffffff;
    line-height: 1.55;
}

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

.assistant-log-item {
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(2, 6, 23, 0.36);
}

.assistant-log-item summary {
    display: grid;
    gap: 3px;
    cursor: pointer;
    color: #f8fafc;
    font-weight: 900;
}

.assistant-log-item summary small {
    color: #cbd5e1;
    font-weight: 700;
}

.assistant-log-item p {
    color: #fed7aa;
    line-height: 1.45;
}

.compact-table-wrap {
    max-height: 420px;
}

@media (max-width: 1000px) {
    .assistant-workbench {
        grid-template-columns: 1fr;
    }
}

/* Workspace usability repair: compact file rail, readable result cards, clear map/note column. */
.workspace-hero {
    padding: 16px 18px !important;
}

.workspace-hero h2 {
    font-size: clamp(19px, 2vw, 25px) !important;
}

.workspace-hero p {
    max-width: 780px;
    margin: 7px 0 0;
}

.workspace-hero .health-card {
    min-width: 170px;
    padding: 12px 14px;
}

.workspace-control-bar {
    position: sticky;
    top: 86px;
    z-index: 24;
    margin-bottom: 12px !important;
    padding: 10px 12px !important;
    border-color: rgba(251, 146, 60, 0.26) !important;
    background: rgba(9, 13, 24, 0.92) !important;
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.32), 0 0 18px rgba(251, 146, 60, 0.08) !important;
}

.workspace-control-bar strong {
    max-width: 620px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-filter-bar {
    position: sticky;
    top: 148px;
    z-index: 23;
    padding: 10px 12px;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 16px;
    background: rgba(9, 13, 24, 0.92);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.24);
}

.workspace-filter-form {
    display: grid;
    grid-template-columns: minmax(240px, 0.34fr) minmax(420px, 1fr) auto auto;
    gap: 10px;
    align-items: end;
}

.workspace-filter-form label {
    display: grid;
    gap: 5px;
    color: #fed7aa;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.workspace-filter-form input {
    min-height: 38px;
    padding: 9px 11px;
    color: #f8fafc;
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 11px;
    background: rgba(2, 6, 23, 0.68);
    outline: none;
}

.workspace-filter-form input:focus {
    border-color: rgba(251, 146, 60, 0.72);
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.13);
}

.workspace-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.workspace-filter-chip {
    min-height: 32px;
    padding: 0 10px;
    color: #fed7aa;
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 999px;
    background: rgba(127, 29, 29, 0.16);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.workspace-filter-chip:hover,
.workspace-filter-chip.active {
    color: #fff7ed;
    border-color: rgba(251, 146, 60, 0.6);
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.54), rgba(234, 88, 12, 0.3));
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.09);
}

.workspace-live-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.26);
    border-radius: 999px;
    background: rgba(22, 101, 52, 0.16);
    white-space: nowrap;
}

.workspace-live-status.is-error {
    color: #fed7aa;
    border-color: rgba(245, 158, 11, 0.34);
    background: rgba(127, 29, 29, 0.24);
}

.dashboard-module-tabs,
.module-tabs {
    position: sticky;
    top: 86px;
    z-index: 25;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 16px;
    background: rgba(9, 13, 24, 0.94);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.3), 0 0 22px rgba(251, 146, 60, 0.08);
}

.dashboard-module-tabs--sidebar-driven,
.module-tabs--sidebar-driven {
    display: none !important;
}

.dashboard-module-tab,
.module-tab {
    min-height: 38px;
    padding: 0 14px;
    color: #fed7aa;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 999px;
    background: rgba(127, 29, 29, 0.16);
    cursor: pointer;
    font-weight: 900;
}

.dashboard-module-tab:hover,
.dashboard-module-tab.active,
.module-tab:hover,
.module-tab.active {
    color: #fff7ed;
    border-color: rgba(251, 146, 60, 0.66);
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.62), rgba(234, 88, 12, 0.32));
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1), 0 10px 24px rgba(2, 6, 23, 0.2);
}

.dashboard-module {
    display: none;
    gap: 18px;
}

.dashboard-module.is-active,
.module-panel.is-active {
    display: grid;
    gap: 18px;
}

.dashboard-module > .panel,
.dashboard-module > .profile-runtime-panel,
.dashboard-module > .ops-blocker-card,
.dashboard-module > .ops-recovery-card {
    margin: 0;
}

.workspace-layout-actions {
    gap: 6px !important;
}

.workspace-layout-actions .link-button,
.workspace-layout-actions .primary-button {
    min-height: 34px !important;
    padding: 0 11px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
}

.workspace-operating-grid {
    grid-template-columns: 250px minmax(0, 1fr) 390px !important;
    gap: 12px !important;
    align-items: stretch !important;
}

.workspace-pane.panel,
.workspace-side-column .panel {
    padding: 13px !important;
}

.workspace-file-panel,
.workspace-results-panel,
.workspace-side-column {
    min-height: calc(100vh - 250px);
}

.workspace-file-list {
    max-height: calc(100vh - 355px) !important;
}

.workspace-file-card {
    gap: 6px !important;
    padding: 10px 11px !important;
    border-radius: 12px !important;
}

.workspace-file-card strong {
    font-size: 12px !important;
}

.workspace-file-card small {
    font-size: 11px !important;
}

.workspace-file-stats {
    gap: 5px !important;
}

.workspace-file-stats span,
.workspace-result-item .mini-pill {
    min-height: 23px !important;
    padding: 0 7px !important;
    font-size: 11px !important;
}

.workspace-result-list {
    max-height: calc(100vh - 332px) !important;
    gap: 8px !important;
}

.workspace-result-item {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 8px 11px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    align-items: start;
}

.workspace-row-index {
    grid-row: span 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 4px 6px;
    border-radius: 9px;
    color: #075985 !important;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
}

.workspace-row-main,
.workspace-row-meta,
.workspace-row-address {
    grid-column: 2 / -1 !important;
}

.workspace-row-main {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.workspace-row-main strong {
    overflow: hidden;
    color: #020617 !important;
    font-size: 13px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-row-main small {
    max-width: 260px;
    color: #0f172a !important;
    font-weight: 800;
    text-align: right;
}

.workspace-row-meta {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 4px 8px;
    padding-top: 5px;
    border-top: 1px dashed rgba(15, 23, 42, 0.13);
}

.workspace-row-meta b {
    grid-row: span 2;
    color: #075985 !important;
    font-size: 10px !important;
    letter-spacing: 0.02em;
}

.workspace-row-meta small,
.workspace-row-address {
    color: #1e293b !important;
    font-size: 12px !important;
    line-height: 1.35;
}

.workspace-row-bid small:first-of-type {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.workspace-row-address {
    padding-top: 5px;
    border-top: 1px dashed rgba(15, 23, 42, 0.13);
}

.workspace-result-item .workspace-status-pills {
    grid-column: 2 / -1 !important;
    gap: 5px !important;
}

.workspace-side-column {
    grid-template-rows: minmax(260px, 0.72fr) minmax(360px, 1fr);
}

.workspace-map-frame {
    height: 260px !important;
}

.workspace-note-form {
    gap: 9px !important;
}

.workspace-note-form label {
    gap: 5px !important;
    font-size: 11px !important;
}

.workspace-note-form input,
.workspace-note-form select,
.workspace-note-form textarea {
    padding: 9px 10px !important;
    border-radius: 10px !important;
}

.workspace-note-form textarea {
    min-height: 285px !important;
}

.workspace-mode-results {
    grid-template-columns: 210px minmax(0, 1fr) 300px !important;
}

.workspace-mode-map {
    grid-template-columns: 210px minmax(380px, 0.8fr) minmax(560px, 1.4fr) !important;
}

.workspace-mode-notes {
    grid-template-columns: 210px minmax(420px, 0.85fr) minmax(620px, 1.5fr) !important;
}

.workspace-mode-all {
    grid-template-columns: 220px minmax(0, 1fr) minmax(520px, 0.95fr) !important;
}

.workspace-mode-map .workspace-map-frame {
    height: 560px !important;
}

.workspace-mode-notes .workspace-note-form textarea,
.workspace-mode-all .workspace-note-form textarea {
    min-height: 520px !important;
}

.workspace-mode-notes .workspace-map-frame {
    height: 220px !important;
}

@keyframes runtimeNewRow {
    0% {
        box-shadow: inset 4px 0 0 #22c55e, 0 0 0 rgba(34, 197, 94, 0);
        background: rgba(34, 197, 94, 0.22);
    }

    100% {
        box-shadow: inset 4px 0 0 rgba(34, 197, 94, 0.32), 0 0 0 rgba(34, 197, 94, 0);
        background: transparent;
    }
}

.profile-runtime-table tr.is-live-new {
    animation: runtimeNewRow 2.6s ease-out both;
}

.workspace-file-list--wide {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-height: none !important;
    overflow: visible;
}

.workspace-file-list--wide .workspace-file-card {
    min-height: 150px;
}

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

.compact-detail-grid > div {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255, 122, 24, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.compact-detail-grid span {
    display: block;
    margin-bottom: 6px;
    color: rgba(226, 232, 240, 0.68);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.compact-detail-grid strong {
    display: block;
    color: #fff7ed;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width: 1440px) {
    .workspace-operating-grid {
        grid-template-columns: 220px minmax(0, 1fr) 330px !important;
    }

    .workspace-row-main {
        grid-template-columns: 1fr;
    }

    .workspace-row-main small {
        max-width: none;
        text-align: left;
    }
}

@media (max-width: 1180px) {
    .workspace-operating-grid,
    .workspace-mode-results,
    .workspace-mode-map,
    .workspace-mode-notes,
    .workspace-mode-all {
        grid-template-columns: 1fr !important;
    }

    .workspace-file-panel,
    .workspace-results-panel,
    .workspace-side-column,
    .workspace-file-list,
    .workspace-result-list {
        min-height: 0;
        max-height: none !important;
    }

    .workspace-control-bar {
        top: 74px;
    }

    .workspace-filter-bar {
        top: 130px;
    }

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

    .compact-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Final history/list readability repair. Keep every white data table readable. */
.panel .table-wrap,
.bulk-inspect-result .table-wrap,
.pagination-wrap {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.42) !important;
}

.panel .table-wrap table:not(.profile-runtime-table),
.bulk-inspect-result .table-wrap table {
    color: #07111f !important;
    background: #ffffff !important;
}

.panel .table-wrap tbody tr,
.panel .table-wrap tbody tr:nth-child(even),
.bulk-inspect-result .table-wrap tbody tr,
.bulk-inspect-result .table-wrap tbody tr:nth-child(even) {
    background: #ffffff !important;
}

.panel .table-wrap tbody tr:nth-child(even),
.bulk-inspect-result .table-wrap tbody tr:nth-child(even) {
    background: #f1f5f9 !important;
}

.panel .table-wrap tbody td,
.panel .table-wrap tbody th,
.bulk-inspect-result .table-wrap tbody td,
.bulk-inspect-result .table-wrap tbody th {
    color: #07111f !important;
    background: inherit !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.panel .table-wrap tbody td *,
.panel .table-wrap tbody th *,
.bulk-inspect-result .table-wrap tbody td *,
.bulk-inspect-result .table-wrap tbody th * {
    color: inherit !important;
    text-shadow: none !important;
}

.panel .table-wrap tbody td strong,
.panel .table-wrap tbody th strong,
.bulk-inspect-result .table-wrap tbody td strong {
    color: #020617 !important;
    font-weight: 1000 !important;
}

.panel .table-wrap tbody td small,
.panel .table-wrap tbody th small,
.bulk-inspect-result .table-wrap tbody td small {
    color: #334155 !important;
    font-weight: 750 !important;
}

.panel .table-wrap tbody td a,
.panel .table-wrap tbody th a,
.bulk-inspect-result .table-wrap tbody td a {
    color: #0f4c81 !important;
    font-weight: 1000 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

.panel .table-wrap .badge,
.bulk-inspect-result .table-wrap .badge {
    color: #ffffff !important;
    text-shadow: none !important;
}

.panel .table-wrap .danger-text,
.bulk-inspect-result .table-wrap .danger-text {
    color: #991b1b !important;
    background: #fee2e2 !important;
    border-radius: 8px;
    padding: 5px 7px;
}

.batch-result-summary span,
.batch-result-summary b,
.batch-progress strong,
.assignment-popover summary {
    color: #07111f !important;
    text-shadow: none !important;
}

/* Workspace final layout: only three working panes in the workbench. */
.workspace-operating-grid {
    grid-template-columns: minmax(360px, 0.96fr) minmax(340px, 0.82fr) minmax(380px, 1fr) !important;
    gap: 14px !important;
    align-items: stretch !important;
}

.workspace-operating-grid > .workspace-pane {
    min-height: calc(100vh - 255px) !important;
}

.workspace-results-panel {
    order: 1;
}

.workspace-map-panel {
    order: 2;
}

.workspace-note-panel {
    order: 3;
}

.workspace-result-list {
    max-height: calc(100vh - 355px) !important;
}

.workspace-map-frame {
    height: calc(100vh - 375px) !important;
    min-height: 360px;
}

.workspace-note-form textarea {
    min-height: calc(100vh - 515px) !important;
}

.workspace-mode-all {
    grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr) minmax(480px, 1.15fr) !important;
}

.workspace-mode-all > .workspace-pane {
    min-height: calc(100vh - 190px) !important;
}

.workspace-mode-all .workspace-result-list {
    max-height: calc(100vh - 285px) !important;
}

.workspace-mode-all .workspace-map-frame {
    height: calc(100vh - 305px) !important;
    min-height: 500px;
}

.workspace-mode-all .workspace-note-form textarea {
    min-height: calc(100vh - 445px) !important;
}

.workspace-layout-actions {
    justify-content: flex-end;
}

@media (max-width: 1320px) {
    .workspace-operating-grid,
    .workspace-mode-all {
        grid-template-columns: 1fr !important;
    }

    .workspace-operating-grid > .workspace-pane,
    .workspace-mode-all > .workspace-pane {
        min-height: 0 !important;
    }

    .workspace-result-list,
    .workspace-mode-all .workspace-result-list {
        max-height: 560px !important;
    }

    .workspace-map-frame,
    .workspace-mode-all .workspace-map-frame {
        height: 460px !important;
        min-height: 360px;
    }

    .workspace-note-form textarea,
    .workspace-mode-all .workspace-note-form textarea {
        min-height: 360px !important;
    }
}

/* Excel detail results: compact control area and let the result grid own the screen. */
.bulk-results-module.is-active {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px !important;
    min-height: calc(100vh - 118px);
}

.bulk-results-module .result-control-panel {
    position: sticky;
    top: 0;
    z-index: 34;
    margin-bottom: 0 !important;
    padding: 10px !important;
    border-radius: 14px !important;
    background: rgba(9, 13, 24, 0.94) !important;
}

.bulk-results-module .result-header-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 0.42fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.bulk-results-module .result-header-row h2 {
    margin: 2px 0 0;
    font-size: 19px;
}

.bulk-results-module .result-header-row small {
    display: inline-flex;
    margin-top: 2px;
    font-size: 12px;
}

.bulk-results-module .progress-area {
    padding: 7px 10px;
    border-radius: 12px;
}

.bulk-results-module .progress-area progress,
.bulk-results-module .batch-progress-track {
    height: 7px;
}

.bulk-results-module .result-control-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.36fr) minmax(360px, 1fr) minmax(96px, 0.12fr);
    gap: 8px;
}

.bulk-results-module .result-search-card,
.bulk-results-module .result-filter-card,
.bulk-results-module .result-action-card,
.bulk-results-module .result-bulk-card {
    padding: 8px !important;
    border-radius: 12px !important;
}

.bulk-results-module .control-label {
    margin-bottom: 5px;
    font-size: 11px;
}

.bulk-results-module [data-bulk-search] {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.bulk-results-module .filter-chip-row {
    gap: 5px;
}

.bulk-results-module .filter-chip {
    min-height: 28px !important;
    padding: 0 9px !important;
    border-radius: 999px;
    font-size: 12px !important;
    font-weight: 800;
}

.bulk-results-module .action-dropdown summary,
.bulk-results-module .primary-button.compact,
.bulk-results-module .link-button {
    min-height: 32px !important;
    padding: 0 11px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
}

.bulk-results-module .result-bulk-card {
    margin-top: 8px;
}

.bulk-results-module .bulk-detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.bulk-results-module .bulk-selection-counter,
.bulk-results-module .page-size-control {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 12px;
}

.bulk-results-module .page-size-control select {
    height: 30px;
    min-width: 68px;
    padding: 0 8px;
    border-radius: 9px;
}

.bulk-results-table-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: calc(100vh - 322px);
    padding: 10px !important;
}

.bulk-results-table-panel .panel-head {
    min-height: 0;
    margin-bottom: 6px;
}

.bulk-results-table-panel .panel-head h2 {
    font-size: 18px;
}

.bulk-results-table-panel .table-wrap {
    height: calc(100vh - 388px) !important;
    max-height: none !important;
    min-height: 440px;
    border-radius: 12px !important;
}

.bulk-results-table-panel .bulk-pagination-bar {
    padding-top: 7px !important;
}

.bulk-results-table-panel .bulk-pagination-bar .link-button {
    min-height: 34px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
}

.bulk-result-table {
    min-width: 980px !important;
    width: 100%;
    font-size: 11px !important;
}

.bulk-result-table thead th {
    padding: 8px 9px !important;
    font-size: 11px !important;
}

.bulk-result-table tbody td {
    padding: 8px 9px !important;
    vertical-align: top !important;
}

.bulk-result-table thead th:nth-child(1),
.bulk-result-table tbody td:nth-child(1) {
    width: 25% !important;
}

.bulk-result-table thead th:nth-child(2),
.bulk-result-table tbody td:nth-child(2) {
    width: 30% !important;
}

.bulk-result-table thead th:nth-child(3),
.bulk-result-table tbody td:nth-child(3) {
    width: 33% !important;
}

.bulk-result-table thead th:nth-child(4),
.bulk-result-table tbody td:nth-child(4) {
    width: 12% !important;
}

.bulk-result-table .result-info-block {
    gap: 3px !important;
    line-height: 1.2 !important;
}

.bulk-result-table .result-info-block p {
    padding-bottom: 3px !important;
}

.bulk-result-table .result-info-block span {
    font-size: 10px !important;
}

.bulk-result-table .result-info-block strong,
.bulk-result-table .result-info-block p {
    font-size: 11px !important;
}

.bulk-result-table .bid-info-block p:nth-child(2) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.bulk-result-table .contractor-info-block p:last-child strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.status-stack-cell {
    gap: 5px !important;
    min-width: 112px !important;
}

.status-stack-cell > .bulk-row-select {
    width: 14px !important;
    height: 14px !important;
}

.status-stack-cell .badge {
    min-height: 24px;
    padding: 3px 7px;
    font-size: 10px;
}

.result-status-pill {
    min-height: 27px !important;
    padding: 4px 7px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    gap: 6px !important;
}

.result-status-pill input {
    width: 13px !important;
    height: 13px !important;
}

.bulk-result-table .danger-text {
    max-height: 46px;
    overflow: hidden;
    padding: 4px 6px !important;
    font-size: 10px !important;
    line-height: 1.25;
}

@media (max-width: 1180px) {
    .bulk-results-module .result-header-row,
    .bulk-results-module .result-control-grid {
        grid-template-columns: 1fr;
    }

    .bulk-results-table-panel .table-wrap {
        height: 560px !important;
    }
}

.page:has(.bulk-results-module.is-active) > .hero-panel,
.page:has(.bulk-results-module.is-active) > #bulk-source-waiting-alert {
    display: none !important;
}

.page:has(.bulk-results-module.is-active) {
    padding-top: 8px;
}

.bulk-results-module.is-active {
    min-height: calc(100vh - 96px) !important;
}

.bulk-results-module .result-control-panel {
    display: grid;
    gap: 7px;
    padding: 8px 10px !important;
}

.bulk-results-module .result-header-row {
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.34fr);
    margin-bottom: 0 !important;
}

.bulk-results-module .result-header-row h2 {
    font-size: 18px !important;
    line-height: 1.15;
}

.bulk-results-module .result-header-row .eyebrow {
    font-size: 10px;
}

.bulk-results-module .progress-area {
    min-height: 36px;
    padding: 6px 9px !important;
}

.bulk-results-module .progress-area span {
    font-size: 10px;
}

.bulk-results-module .progress-area strong {
    font-size: 14px;
}

.bulk-results-module .result-control-grid {
    grid-template-columns: minmax(210px, 0.26fr) minmax(520px, 1fr) 88px !important;
    gap: 7px !important;
}

.bulk-results-module .result-search-card,
.bulk-results-module .result-filter-card,
.bulk-results-module .result-action-card,
.bulk-results-module .result-bulk-card {
    min-height: 0 !important;
    padding: 6px 7px !important;
}

.bulk-results-module .control-label {
    display: block;
    margin-bottom: 3px !important;
    font-size: 10px !important;
    line-height: 1;
}

.bulk-results-module [data-bulk-search] {
    min-height: 30px !important;
    padding: 6px 9px !important;
}

.bulk-results-module .filter-chip-row,
.bulk-results-module .bulk-detail-actions {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
}

.bulk-results-module .filter-chip-row::-webkit-scrollbar,
.bulk-results-module .bulk-detail-actions::-webkit-scrollbar {
    height: 4px;
}

.bulk-results-module .filter-chip {
    flex: 0 0 auto;
    min-height: 25px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    white-space: nowrap;
}

.bulk-results-module .action-dropdown summary {
    width: 100%;
    min-height: 30px !important;
    justify-content: center;
}

.bulk-results-module .result-bulk-card {
    margin-top: 0 !important;
}

.bulk-results-module .bulk-detail-actions > * {
    flex: 0 0 auto;
}

.bulk-results-module .bulk-detail-actions .link-button,
.bulk-results-module .bulk-selection-counter,
.bulk-results-module .page-size-control {
    min-height: 29px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
}

.bulk-results-module .page-size-control span {
    display: none;
}

.bulk-results-module .page-size-control select {
    height: 27px !important;
    min-width: 62px !important;
}

.bulk-results-table-panel {
    min-height: calc(100vh - 242px) !important;
}

.bulk-results-table-panel .panel-head {
    display: none !important;
}

.bulk-results-table-panel .table-wrap {
    height: calc(100vh - 260px) !important;
    min-height: 540px !important;
}

.bulk-result-table {
    height: auto !important;
}

.bulk-result-table tbody tr {
    height: auto !important;
}

.bulk-result-table tbody td {
    height: auto !important;
}

.bulk-pagination-bar {
    min-height: 38px !important;
}

/* Workspace result rows must show the full business workflow, not isolated result cards. */
.workspace-operating-grid {
    grid-template-columns: minmax(680px, 1.55fr) minmax(300px, 0.64fr) minmax(340px, 0.78fr) !important;
}

.workspace-results-panel .panel-head h2 {
    font-size: 18px !important;
}

.workspace-results-panel .panel-head small {
    max-width: 520px;
}

.workspace-result-list {
    overflow: auto !important;
}

.workspace-result-item {
    grid-template-columns: 46px minmax(170px, 0.9fr) minmax(190px, 1fr) minmax(230px, 1.12fr) minmax(96px, 0.42fr) !important;
    min-width: 880px;
    gap: 8px !important;
    align-items: stretch !important;
    padding: 8px !important;
}

.workspace-row-index {
    grid-row: auto !important;
    display: grid !important;
    place-items: center;
    min-height: 100% !important;
    padding: 5px !important;
    text-align: center;
}

.workspace-row-index b {
    display: block;
    color: #0369a1;
    font-size: 9px;
    line-height: 1;
}

.workspace-result-block {
    display: grid;
    align-content: start;
    gap: 3px;
    min-width: 0;
    padding: 7px 8px;
    border-left: 1px dashed rgba(15, 23, 42, 0.16);
    color: #0f172a;
    line-height: 1.24;
}

.workspace-result-block b {
    color: #075985;
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
}

.workspace-result-block strong {
    color: #020617;
    font-size: 12px;
    font-weight: 1000;
}

.workspace-result-block small {
    color: #334155;
    font-size: 11px;
    font-weight: 750;
}

.workspace-result-bid strong,
.workspace-result-target small:last-child {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.workspace-result-actions {
    gap: 5px !important;
    align-content: start;
}

.workspace-result-actions .mini-pill {
    justify-content: center;
    min-height: 22px !important;
    padding: 0 6px !important;
    font-size: 10px !important;
}

.workspace-result-item .workspace-row-main,
.workspace-result-item .workspace-row-meta,
.workspace-result-item .workspace-row-address,
.workspace-result-item .workspace-status-pills {
    grid-column: auto !important;
}

.workspace-mode-all {
    grid-template-columns: minmax(760px, 1.65fr) minmax(360px, 0.78fr) minmax(420px, 0.9fr) !important;
}

@media (max-width: 1320px) {
    .workspace-operating-grid,
    .workspace-mode-all {
        grid-template-columns: 1fr !important;
    }

    .workspace-result-item {
        min-width: 860px;
    }
}

/* Focus mode for the workspace: expand Result + Map + Note together. */
body.workspace-focus-mode .page {
    overflow: hidden !important;
    padding: 8px 10px !important;
}

body.workspace-focus-mode .workspace-hero {
    display: none !important;
}

body.workspace-focus-mode .topbar {
    min-height: 66px !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
}

body.workspace-focus-mode .topbar h1 {
    font-size: clamp(25px, 2.1vw, 34px) !important;
}

body.workspace-focus-mode .workspace-workbench-focus {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 8px !important;
    height: calc(100vh - 82px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.workspace-focus-mode .workspace-control-bar {
    position: static !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 13px !important;
}

body.workspace-focus-mode .workspace-control-bar .eyebrow {
    display: none;
}

body.workspace-focus-mode .workspace-control-bar strong {
    max-width: 720px;
    font-size: 14px;
}

body.workspace-focus-mode .workspace-layout-actions .primary-button,
body.workspace-focus-mode .workspace-layout-actions .link-button {
    min-height: 30px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
}

body.workspace-focus-mode [data-workspace-expand="all"] {
    box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.22), 0 0 18px rgba(251, 146, 60, 0.18);
}

body.workspace-focus-mode .workspace-filter-bar {
    position: static !important;
    padding: 8px 10px !important;
    border-radius: 13px !important;
}

body.workspace-focus-mode .workspace-filter-form {
    grid-template-columns: minmax(240px, 0.34fr) minmax(420px, 1fr) auto auto !important;
    gap: 8px !important;
}

body.workspace-focus-mode .workspace-filter-form label span {
    display: none;
}

body.workspace-focus-mode .workspace-filter-form input {
    min-height: 32px;
    padding: 7px 10px;
}

body.workspace-focus-mode .workspace-filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
}

body.workspace-focus-mode .workspace-filter-chip {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
    white-space: nowrap;
}

body.workspace-focus-mode .workspace-live-status {
    min-height: 28px;
    font-size: 11px;
}

body.workspace-focus-mode .workspace-operating-grid,
body.workspace-focus-mode .workspace-mode-all {
    grid-template-columns: minmax(660px, 1.34fr) minmax(360px, 0.78fr) minmax(430px, 0.9fr) !important;
    gap: 10px !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.workspace-focus-mode .workspace-operating-grid > .workspace-pane {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 10px !important;
}

body.workspace-focus-mode .workspace-results-panel .panel-head,
body.workspace-focus-mode .workspace-map-panel .panel-head,
body.workspace-focus-mode .workspace-note-panel .panel-head {
    min-height: 0 !important;
    margin-bottom: 8px !important;
}

body.workspace-focus-mode .workspace-results-panel .panel-head h2,
body.workspace-focus-mode .workspace-map-panel .panel-head h2,
body.workspace-focus-mode .workspace-note-panel .panel-head h2 {
    font-size: 18px !important;
    line-height: 1.2 !important;
}

body.workspace-focus-mode .workspace-results-panel .panel-head small,
body.workspace-focus-mode .workspace-map-panel .panel-head small,
body.workspace-focus-mode .workspace-note-panel .panel-head small {
    display: none !important;
}

body.workspace-focus-mode .workspace-result-list {
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
}

body.workspace-focus-mode .workspace-result-item {
    grid-template-columns: 44px minmax(168px, 0.92fr) minmax(190px, 1fr) minmax(230px, 1.12fr) minmax(90px, 0.38fr) !important;
    min-width: 860px;
}

body.workspace-focus-mode .workspace-map-frame {
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
}

body.workspace-focus-mode .workspace-note-form {
    display: grid;
    grid-template-rows: 34px 34px minmax(0, 1fr) 32px;
    height: 100%;
    min-height: 0;
    gap: 7px !important;
}

body.workspace-focus-mode .workspace-note-form label {
    min-height: 0;
    gap: 3px !important;
    font-size: 10px !important;
}

body.workspace-focus-mode .workspace-note-form label:nth-of-type(1),
body.workspace-focus-mode .workspace-note-form label:nth-of-type(2) {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
}

body.workspace-focus-mode .workspace-note-form label:nth-of-type(3) {
    display: grid;
    grid-template-rows: 15px minmax(0, 1fr);
}

body.workspace-focus-mode .workspace-note-form input,
body.workspace-focus-mode .workspace-note-form select {
    min-height: 28px !important;
    height: 28px !important;
    padding: 5px 8px !important;
}

body.workspace-focus-mode .workspace-note-form textarea {
    height: 100% !important;
    min-height: 0 !important;
    resize: none;
}

body.workspace-focus-mode .workspace-note-form .primary-button {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 12px !important;
}

@media (max-width: 1320px) {
    body.workspace-focus-mode .workspace-operating-grid,
    body.workspace-focus-mode .workspace-mode-all {
        grid-template-columns: 1fr !important;
        overflow: auto !important;
    }

    body.workspace-focus-mode .workspace-operating-grid > .workspace-pane {
        min-height: 460px !important;
    }

    body.workspace-focus-mode .workspace-workbench-focus {
        overflow: auto !important;
    }
}

/* Final compact pass for the Excel result toolbar. */
.bulk-results-module .result-header-row .eyebrow,
.bulk-results-module .result-header-row small,
.bulk-results-module .control-label {
    display: none !important;
}

.bulk-results-module .result-header-row {
    min-height: 36px !important;
    margin-bottom: 0 !important;
}

.bulk-results-module .result-header-row h2 {
    margin: 0 !important;
    font-size: 17px !important;
}

.bulk-results-module .progress-area {
    min-height: 32px !important;
}

.bulk-results-module .result-search-card,
.bulk-results-module .result-filter-card,
.bulk-results-module .result-action-card,
.bulk-results-module .result-bulk-card {
    height: 38px !important;
    padding: 5px 6px !important;
}

.bulk-results-module .result-control-grid {
    align-items: center !important;
}

.bulk-results-module [data-bulk-search],
.bulk-results-module .action-dropdown summary,
.bulk-results-module .bulk-detail-actions .link-button,
.bulk-results-module .bulk-selection-counter,
.bulk-results-module .page-size-control {
    min-height: 28px !important;
    height: 28px !important;
}

.bulk-results-module .filter-chip {
    min-height: 23px !important;
    height: 23px !important;
}

.bulk-results-module .result-control-panel {
    gap: 5px !important;
    padding: 7px 9px !important;
}

.bulk-results-table-panel {
    min-height: calc(100vh - 205px) !important;
}

.bulk-results-table-panel .table-wrap {
    height: calc(100vh - 220px) !important;
    min-height: 580px !important;
}

.bulk-result-table .status-stack-cell {
    display: grid !important;
    grid-template-columns: 16px 1fr;
    gap: 4px 5px !important;
    align-content: start !important;
}

.bulk-result-table .status-stack-cell > .bulk-row-select {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}

.bulk-result-table .status-stack-cell > .badge {
    grid-column: 2;
    grid-row: 1;
    min-height: 20px !important;
    height: 20px !important;
    padding: 2px 6px !important;
    font-size: 9px !important;
}

.bulk-result-table .result-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 22px !important;
    height: 22px !important;
    max-height: 22px !important;
    padding: 2px 6px !important;
    line-height: 1 !important;
}

.bulk-result-table .result-status-pill input {
    flex: 0 0 auto;
    width: 11px !important;
    height: 11px !important;
}

.bulk-result-table .result-status-pill span {
    display: inline !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap;
}

.bulk-result-table .result-info-block {
    max-height: 122px;
    overflow: hidden !important;
}

.bulk-result-table .contractor-info-block {
    max-height: 146px;
}

.bulk-result-table tbody td {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* Workspace production fix: full-screen focus, stacked map/note, real row actions. */
.workspace-operating-grid {
    display: grid !important;
    grid-template-columns: minmax(680px, 1.5fr) minmax(380px, 0.82fr) !important;
    grid-template-rows: minmax(240px, 0.48fr) minmax(280px, 0.52fr) !important;
    grid-template-areas:
        "results map"
        "results notes" !important;
    gap: 12px !important;
    min-height: calc(100vh - 310px);
}

.workspace-results-panel {
    grid-area: results;
}

.workspace-map-panel {
    grid-area: map;
}

.workspace-note-panel {
    grid-area: notes;
}

.workspace-pane-expanded-map {
    grid-template-areas:
        "results map"
        "results map" !important;
}

.workspace-pane-expanded-notes {
    grid-template-areas:
        "results notes"
        "results notes" !important;
}

.workspace-pane-expanded-map .workspace-note-panel,
.workspace-pane-expanded-notes .workspace-map-panel {
    display: none !important;
}

.workspace-operating-grid > .workspace-pane {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr);
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
}

.workspace-result-list {
    min-height: 0;
    height: 100%;
}

.workspace-result-item {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 16px;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.workspace-result-item:hover,
.workspace-result-item:focus-visible {
    border-color: rgba(249, 115, 22, 0.62);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.13), 0 12px 26px rgba(15, 23, 42, 0.16);
    outline: none;
    transform: translateY(-1px);
}

.workspace-result-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 5px !important;
}

.workspace-action-chip,
.workspace-pane-toggle {
    border: 1px solid rgba(15, 23, 42, 0.17);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.94);
    color: #0f172a;
    cursor: pointer;
    font-size: 10px;
    font-weight: 1000;
    line-height: 1;
    min-height: 24px;
    padding: 0 8px;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.workspace-action-chip:hover:not(:disabled),
.workspace-pane-toggle:hover {
    border-color: rgba(14, 165, 233, 0.75);
    background: #e0f2fe;
    color: #075985;
}

.workspace-action-chip.active {
    border-color: rgba(34, 197, 94, 0.58);
    background: #dcfce7;
    color: #14532d;
}

.workspace-action-chip.success.active {
    border-color: rgba(22, 163, 74, 0.62);
    background: #d1fae5;
    color: #065f46;
}

.workspace-action-chip.info.active {
    border-color: rgba(59, 130, 246, 0.62);
    background: #dbeafe;
    color: #1e3a8a;
}

.workspace-action-chip.danger.active {
    border-color: rgba(239, 68, 68, 0.62);
    background: #fee2e2;
    color: #991b1b;
}

.workspace-action-chip:disabled,
.workspace-action-chip.is-loading {
    cursor: not-allowed;
    opacity: 0.48;
}

.workspace-pane-toggle {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 10px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff7ed;
    border-color: rgba(251, 146, 60, 0.38);
}

.workspace-pane-toggle.is-active {
    background: linear-gradient(135deg, #c2410c, #f97316);
    border-color: rgba(251, 146, 60, 0.72);
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.24);
}

body.workspace-focus-mode {
    overflow: hidden !important;
}

body.workspace-focus-mode .workspace-workbench-focus {
    position: fixed !important;
    inset: 8px !important;
    z-index: 10020 !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    gap: 8px !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 10px !important;
    border: 1px solid rgba(251, 146, 60, 0.42) !important;
    border-radius: 20px !important;
    background: rgba(3, 7, 18, 0.95) !important;
    box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.72), 0 0 42px rgba(249, 115, 22, 0.22), 0 24px 80px rgba(0, 0, 0, 0.46) !important;
    backdrop-filter: blur(15px);
}

body.workspace-focus-mode .workspace-control-bar,
body.workspace-focus-mode .workspace-filter-bar {
    flex: 0 0 auto;
}

body.workspace-focus-mode .workspace-operating-grid,
body.workspace-focus-mode .workspace-mode-all {
    grid-template-columns: minmax(760px, 1.55fr) minmax(470px, 0.95fr) !important;
    grid-template-rows: minmax(250px, 0.48fr) minmax(290px, 0.52fr) !important;
    grid-template-areas:
        "results map"
        "results notes" !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.workspace-focus-mode .workspace-pane-expanded-map {
    grid-template-areas:
        "results map"
        "results map" !important;
}

body.workspace-focus-mode .workspace-pane-expanded-notes {
    grid-template-areas:
        "results notes"
        "results notes" !important;
}

body.workspace-focus-mode .workspace-result-list,
body.workspace-focus-mode .workspace-map-frame,
body.workspace-focus-mode .workspace-note-form {
    height: 100% !important;
    min-height: 0 !important;
}

body.workspace-focus-mode .workspace-operating-grid > .workspace-pane {
    align-self: stretch !important;
    height: auto !important;
}

body.workspace-focus-mode .workspace-note-form {
    grid-template-rows: 34px 34px minmax(0, 1fr) 32px !important;
}

body.workspace-focus-mode .workspace-note-form textarea {
    height: 100% !important;
    min-height: 0 !important;
}

.workspace-operating-grid.workspace-pane-expanded-map > .workspace-note-panel,
.workspace-operating-grid.workspace-pane-expanded-notes > .workspace-map-panel {
    display: none !important;
}

body.workspace-focus-mode .workspace-operating-grid.workspace-pane-expanded-map > .workspace-note-panel,
body.workspace-focus-mode .workspace-operating-grid.workspace-pane-expanded-notes > .workspace-map-panel {
    display: none !important;
}

/* File assignment view: readable three-column cards and color-coded employee access. */
.workspace-file-list--wide {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.workspace-file-list--wide .workspace-file-card {
    min-height: 205px !important;
    padding: 18px !important;
    gap: 12px !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(69, 26, 3, 0.38)) !important;
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.workspace-file-list--wide .workspace-file-card strong {
    color: #fff7ed;
    font-size: 16px;
    line-height: 1.42;
}

.workspace-file-list--wide .workspace-file-card small {
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.4;
}

.assigned-user-chips,
.assignment-focus-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.employee-chip,
.employee-select-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
}

.employee-chip--0 { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.employee-chip--1 { background: linear-gradient(135deg, #22c55e, #15803d); }
.employee-chip--2 { background: linear-gradient(135deg, #f97316, #c2410c); }
.employee-chip--3 { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.employee-chip--4 { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.employee-chip--5 { background: linear-gradient(135deg, #f43f5e, #be123c); }
.employee-chip--6 { background: linear-gradient(135deg, #eab308, #a16207); }
.employee-chip--7 { background: linear-gradient(135deg, #64748b, #334155); }

.employee-chip--empty {
    color: #fed7aa;
    background: rgba(127, 29, 29, 0.28);
    border-color: rgba(251, 146, 60, 0.28);
}

.assignment-focus-panel {
    display: grid;
    gap: 16px;
}

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

.assignment-file-card {
    display: grid;
    gap: 14px;
    min-height: 245px;
    padding: 17px;
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 18px;
    background: rgba(7, 12, 24, 0.84);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.28);
}

.assignment-file-head {
    display: grid;
    gap: 7px;
}

.assignment-file-head strong {
    color: #fff7ed;
    font-size: 15px;
    line-height: 1.38;
}

.assignment-file-head small {
    color: #cbd5e1;
}

.assignment-focus-form {
    display: grid;
    gap: 12px;
}

.assignment-focus-list {
    max-height: 190px;
    overflow: auto;
    padding: 2px 2px 4px;
}

.employee-select-chip {
    position: relative;
    cursor: pointer;
    opacity: 0.62;
    transition: transform 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}

.employee-select-chip input {
    width: 15px;
    min-height: 15px;
    accent-color: #ffffff;
}

.employee-select-chip:hover,
.employee-select-chip:has(input:checked),
.employee-select-chip.is-selected {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.14), 0 12px 26px rgba(2, 6, 23, 0.24);
}

.assignment-focus-form .primary-button {
    justify-self: start;
}

@media (max-width: 1380px) {
    .workspace-file-list--wide,
    .assignment-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 820px) {
    .workspace-file-list--wide,
    .assignment-card-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Post-login introduction gate. */
.intro-gate {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 22px;
    align-items: stretch;
    min-height: 430px;
}

.intro-gate__copy,
.intro-seal-card,
.intro-legal-panel,
.intro-security-panel,
.intro-feature-grid article {
    border: 1px solid rgba(251, 146, 60, 0.25);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(7, 12, 24, 0.88), rgba(69, 26, 3, 0.34));
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.intro-gate__copy {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: clamp(26px, 4vw, 52px);
    overflow: hidden;
    position: relative;
}

.intro-gate__copy::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -130px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(251, 146, 60, 0.12);
    box-shadow: inset 0 0 40px rgba(251, 146, 60, 0.08), 0 0 80px rgba(239, 68, 68, 0.1);
    pointer-events: none;
}

.intro-gate h2 {
    max-width: 820px;
    margin: 0;
    color: #fff7ed;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.03;
    letter-spacing: 0;
}

.intro-gate p {
    max-width: 880px;
    margin: 0;
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.78;
}

.intro-gate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.intro-command-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.intro-command-strip span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 8px 12px;
    color: #ffedd5;
    border: 1px solid rgba(251, 146, 60, 0.26);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.46);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
}

.intro-seal-card {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    padding: 26px;
    text-align: center;
}

.intro-seal-card img {
    width: min(100%, 420px);
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.34));
}

.intro-seal-card span {
    display: block;
    color: #fed7aa;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intro-seal-card strong {
    display: block;
    margin-top: 5px;
    color: #fff7ed;
    font-size: 24px;
    font-weight: 1000;
}

.intro-seal-card small {
    display: block;
    max-width: 380px;
    margin-top: 7px;
    color: #cbd5e1;
    font-weight: 650;
    line-height: 1.55;
}

.intro-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.intro-feature-grid article {
    display: grid;
    gap: 10px;
    min-height: 190px;
    padding: 20px;
}

.intro-feature-grid span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: #7c2d12;
    border-radius: 12px;
    background: linear-gradient(135deg, #fed7aa, #fb923c);
    font-weight: 1000;
}

.intro-feature-grid h3 {
    margin: 0;
    color: #fff7ed;
    font-size: 17px;
}

.intro-feature-grid p,
.intro-security-list p,
.intro-legal-grid p,
.intro-legal-panel p {
    margin: 0;
    color: #dbe4f0;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.65;
}

.intro-legal-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
    padding: 24px;
}

.intro-legal-panel h2 {
    margin: 4px 0 12px;
    color: #fff7ed;
}

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

.intro-legal-grid p {
    padding: 14px;
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(2, 6, 23, 0.38), rgba(124, 45, 18, 0.18));
}

.intro-legal-grid b {
    color: #fed7aa;
}

.intro-security-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
    padding: 24px;
}

.intro-security-panel h2 {
    margin: 4px 0 0;
    color: #fff7ed;
}

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

.intro-security-list p {
    padding: 14px;
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.28);
}

.intro-security-list b {
    color: #fed7aa;
}

@media (max-width: 1280px) {
    .intro-gate,
    .intro-legal-panel,
    .intro-security-panel {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .intro-feature-grid,
    .intro-security-list,
    .intro-legal-grid {
        grid-template-columns: 1fr;
    }

    .intro-gate__copy,
    .intro-seal-card,
    .intro-legal-panel,
    .intro-security-panel {
        border-radius: 18px;
        padding: 20px;
    }
}

/* BG Nexus 2026 command center layer. This extends the legacy Blade UI without changing routes or services. */
:root {
    --nexus-bg: #05060a;
    --nexus-surface: #0b0e13;
    --nexus-card: #111827;
    --nexus-border: rgba(255, 255, 255, 0.06);
    --nexus-primary: #ff6b00;
    --nexus-secondary: #ffc857;
    --nexus-success: #00d26a;
    --nexus-danger: #ff4d4f;
    --nexus-text: #ffffff;
    --nexus-muted: #94a3b8;
}

.nexus-command-shell {
    display: grid;
    gap: 24px;
    color: var(--nexus-text);
}

.nexus-command-shell *,
.nexus-command-palette * {
    min-width: 0;
}

.nexus-hero-command {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
    gap: 24px;
    min-height: 440px;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--nexus-border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 107, 0, 0.16), transparent 42%),
        radial-gradient(circle at 72% 18%, rgba(255, 200, 87, 0.14), transparent 30%),
        linear-gradient(145deg, rgba(5, 6, 10, 0.96), rgba(11, 14, 19, 0.94));
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
    overflow: hidden;
    position: relative;
}

.nexus-hero-command::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(90deg, #000, transparent 82%);
    pointer-events: none;
}

.nexus-mission-copy,
.nexus-mission-board,
.nexus-grid,
.nexus-security-layer {
    position: relative;
    z-index: 1;
}

.nexus-mission-copy {
    display: grid;
    align-content: center;
    gap: 18px;
}

.nexus-system-state {
    width: max-content;
    max-width: 100%;
    color: var(--nexus-success);
    border: 1px solid rgba(0, 210, 106, 0.24);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 210, 106, 0.08);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.nexus-mission-copy h2 {
    max-width: 920px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(40px, 5.8vw, 72px);
    font-weight: 1000;
    line-height: 0.98;
    letter-spacing: 0;
}

.nexus-mission-copy p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
}

.nexus-command-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    max-width: 680px;
    min-height: 56px;
    padding: 10px 12px 10px 18px;
    color: #fff7ed;
    border: 1px solid rgba(255, 107, 0, 0.35);
    border-radius: 8px;
    background: rgba(5, 6, 10, 0.72);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nexus-command-input:hover,
.nexus-command-input:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 200, 87, 0.7);
    background: rgba(11, 14, 19, 0.92);
    outline: none;
}

.nexus-command-input span {
    overflow: hidden;
    color: #e2e8f0;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nexus-command-input kbd,
.nexus-command-search kbd {
    min-width: 54px;
    padding: 7px 9px;
    color: var(--nexus-secondary);
    border: 1px solid rgba(255, 200, 87, 0.24);
    border-radius: 6px;
    background: rgba(255, 200, 87, 0.07);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.nexus-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nexus-mission-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-content: center;
}

.nexus-mission-board div,
.nexus-galaxy,
.nexus-situation,
.nexus-feed,
.nexus-security-layer {
    border: 1px solid var(--nexus-border);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.92), rgba(5, 6, 10, 0.82));
}

.nexus-mission-board div {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.nexus-mission-board span,
.nexus-section-head span,
.nexus-security-layer span {
    color: var(--nexus-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.nexus-mission-board strong {
    color: #ffffff;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 1000;
    line-height: 1;
}

.nexus-grid {
    display: grid;
    grid-template-columns: minmax(380px, 1.15fr) minmax(320px, 0.72fr) minmax(300px, 0.64fr);
    gap: 24px;
}

.nexus-galaxy,
.nexus-situation,
.nexus-feed {
    padding: 20px;
}

.nexus-section-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.nexus-section-head h3 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.2;
}

.nexus-galaxy-map {
    position: relative;
    min-height: 410px;
    border-radius: 8px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(255, 107, 0, 0.13), transparent 48%);
    background-size: 30px 30px, 30px 30px, auto;
    overflow: hidden;
}

.nexus-link {
    position: absolute;
    left: 20%;
    right: 18%;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 200, 87, 0.42), transparent);
    transform-origin: center;
}

.nexus-link--a { transform: rotate(18deg); }
.nexus-link--b { transform: rotate(-30deg); }
.nexus-link--c { transform: rotate(78deg); }

.nexus-node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    display: grid;
    gap: 4px;
    width: 118px;
    min-height: 78px;
    place-items: center;
    padding: 10px;
    color: #ffffff;
    border: 1px solid rgba(255, 200, 87, 0.24);
    border-radius: 8px;
    background: rgba(11, 14, 19, 0.84);
    cursor: default;
}

.nexus-node b,
.nexus-node span {
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.nexus-node small {
    color: var(--nexus-secondary);
    font-size: 16px;
    font-weight: 1000;
}

.nexus-node--main {
    left: 50%;
    top: 50%;
    width: 150px;
    min-height: 150px;
    border-radius: 50%;
    border-color: rgba(255, 107, 0, 0.48);
    background: radial-gradient(circle, rgba(255, 107, 0, 0.24), rgba(5, 6, 10, 0.92));
}

.nexus-node--main strong {
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
}

.nexus-situation-stack {
    display: grid;
    gap: 18px;
}

.nexus-progress-row {
    display: grid;
    gap: 8px;
}

.nexus-progress-row div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #ffffff;
    font-weight: 900;
}

.nexus-progress-row b {
    color: var(--nexus-success);
}

.nexus-progress-row.is-danger b {
    color: var(--nexus-danger);
}

.nexus-progress-row i {
    display: block;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
}

.nexus-progress-row em {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--nexus-primary), var(--nexus-success));
    transition: width 0.5s ease;
}

.nexus-progress-row.is-danger em {
    background: linear-gradient(90deg, var(--nexus-primary), var(--nexus-danger));
}

.nexus-quick-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.nexus-quick-actions a,
.nexus-command-results a {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.nexus-quick-actions a {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 900;
}

.nexus-quick-actions a:hover,
.nexus-command-results a:hover,
.nexus-command-results a.is-active {
    transform: translateY(-1px);
    border-color: rgba(255, 107, 0, 0.58);
}

.nexus-feed-list {
    display: grid;
    gap: 10px;
    max-height: 410px;
    overflow: auto;
}

.nexus-feed-list article {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(5, 6, 10, 0.42);
}

.nexus-feed-list time {
    color: var(--nexus-secondary);
    font-size: 12px;
    font-weight: 1000;
}

.nexus-feed-list p {
    margin: 0;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.nexus-feed-list span {
    grid-column: 2;
    color: var(--nexus-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.nexus-security-layer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 20px;
}

.nexus-security-layer div {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 200, 87, 0.12);
    border-radius: 8px;
    background: rgba(5, 6, 10, 0.36);
}

.nexus-security-layer strong {
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.5;
}

.nexus-command-palette {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: start center;
    padding: 9vh 18px 18px;
    background: rgba(5, 6, 10, 0.76);
    backdrop-filter: blur(12px);
}

.nexus-command-palette[hidden] {
    display: none;
}

.nexus-command-dialog {
    width: min(760px, 100%);
    border: 1px solid rgba(255, 107, 0, 0.28);
    border-radius: 8px;
    background: #0b0e13;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.nexus-command-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nexus-command-search input {
    width: 100%;
    min-height: 48px;
    color: #ffffff;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 800;
}

.nexus-command-results {
    display: grid;
    gap: 8px;
    max-height: 420px;
    overflow: auto;
    padding: 12px;
}

.nexus-command-results a {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
}

.nexus-command-results strong {
    font-size: 14px;
    line-height: 1.25;
}

.nexus-command-results span,
.nexus-command-empty {
    color: var(--nexus-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.nexus-command-empty {
    margin: 0;
    padding: 18px;
}

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

    .nexus-feed {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .nexus-hero-command,
    .nexus-grid,
    .nexus-security-layer {
        grid-template-columns: 1fr;
    }

    .nexus-galaxy-map {
        min-height: 360px;
    }
}

@media (max-width: 560px) {
    .nexus-hero-command,
    .nexus-galaxy,
    .nexus-situation,
    .nexus-feed,
    .nexus-security-layer {
        padding: 16px;
    }

    .nexus-node {
        width: 96px;
        min-height: 68px;
    }

    .nexus-node--main {
        width: 122px;
        min-height: 122px;
    }

    .nexus-mission-copy h2 {
        font-size: 40px;
    }
}

@media (max-width: 1180px) {
    .workspace-operating-grid,
    body.workspace-focus-mode .workspace-operating-grid,
    body.workspace-focus-mode .workspace-mode-all {
        grid-template-columns: 1fr !important;
        grid-template-rows: minmax(500px, 1fr) minmax(260px, auto) minmax(320px, auto) !important;
        grid-template-areas:
            "results"
            "map"
            "notes" !important;
        overflow: auto !important;
    }

    body.workspace-focus-mode .workspace-workbench-focus {
        overflow: auto !important;
    }
}

.process-action-panel {
    margin-bottom: 16px;
}

.process-action-panel .panel-head p {
    max-width: 860px;
    margin: 6px 0 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.55;
}

.process-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.process-action-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.52));
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.24);
}

.process-action-card strong {
    color: #fff7ed;
    font-size: 15px;
}

.process-action-card span {
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.45;
}

.process-action-card button {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1280px) {
    .process-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .process-action-grid {
        grid-template-columns: 1fr;
    }
}
