/* OpsGrid web console — SOC command center (light content, dark ops rail).
   White-label tenants override --brand-* via layouts/brand.blade.php */
:root {
    --canvas: #e8eef5;
    --ink: #e8eef5;
    --panel: #ffffff;
    --panel-2: #f1f5f9;
    --line: #d7e0ea;
    --line-soft: rgba(15, 23, 42, 0.06);
    --text: #0b1220;
    --muted: #5b6b7c;
    --accent: #0e7490;
    --accent-2: #155e75;
    --accent-soft: rgba(14, 116, 144, 0.12);
    --accent-grad: linear-gradient(135deg, #0e7490 0%, #1d4ed8 100%);
    --cyan: #0891b2;
    --danger: #dc2626;
    --warning: #d97706;
    --success: #059669;
    --shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 10px 28px rgba(11, 18, 32, 0.07);
    --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --sidebar: #0b1220;
    --sidebar-2: #111827;
    --sidebar-text: #cbd5e1;
    --sidebar-muted: #64748b;

    --brand-name: "OpsGrid";
    --brand-primary: var(--accent);
    --brand-primary-soft: var(--accent-soft);
    --brand-secondary: #64748b;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--canvas);
    color: var(--text);
    font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
[x-cloak] { display: none !important; }

h1, h2, h3, h4 { margin: 0 0 0.5rem; font-weight: 700; letter-spacing: -0.025em; color: var(--text); }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 0.95rem; }

/* --- Layout shell --- */
.shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(8, 145, 178, 0.12) 0%, transparent 28%),
        var(--sidebar);
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.65rem 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: 1.05rem;
    color: #f8fafc;
}

.brand-mark {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, #0891b2 0%, #1d4ed8 100%);
    display: grid; place-items: center;
    color: #fff; font-weight: 700; font-size: 0.75rem;
    box-shadow: 0 0 0 1px rgba(8, 145, 178, 0.35), 0 8px 20px rgba(8, 145, 178, 0.25);
}

.brand-sub {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sidebar-muted);
    margin-top: 0.1rem;
}

.nav-section {
    color: var(--sidebar-muted);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.9rem 0.75rem 0.25rem;
    font-weight: 700;
}

.nav-group { margin: 0.15rem 0; }
.nav-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: transparent;
    border: 0;
    color: var(--sidebar-muted);
    font: inherit;
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.7rem 0.75rem 0.3rem;
    cursor: pointer;
    text-align: left;
}
.nav-group-toggle:hover { color: #e2e8f0; }
.nav-group-toggle.is-current { color: #99f6e4; }
.nav-group-chevron {
    width: 0.45rem;
    height: 0.45rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 140ms ease;
    opacity: 0.7;
}
.nav-group-chevron.is-open { transform: rotate(45deg); }
.nav-group-body { display: flex; flex-direction: column; gap: 0.05rem; padding-left: 0.15rem; }

.nav-link {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.48rem 0.75rem;
    color: var(--sidebar-text);
    border-radius: 8px;
    font-weight: 550;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.nav-link:hover { background: rgba(148, 163, 184, 0.1); text-decoration: none; color: #f8fafc; }
.nav-link.active {
    background: rgba(8, 145, 178, 0.16);
    color: #67e8f9;
    border-left-color: #22d3ee;
    font-weight: 650;
}

.main {
    display: flex; flex-direction: column;
    min-width: 0;
    background:
        linear-gradient(rgba(14, 116, 144, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 116, 144, 0.035) 1px, transparent 1px),
        radial-gradient(900px 420px at 100% -10%, rgba(8, 145, 178, 0.08), transparent 55%),
        var(--canvas);
    background-size: 28px 28px, 28px 28px, auto, auto;
}

.topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 10;
}
.topbar h1 { font-size: 1.35rem; margin: 0; letter-spacing: -0.03em; }
.topbar .user {
    display: flex; align-items: center; gap: 0.75rem;
    color: var(--muted); font-size: 0.85rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.3rem 0.4rem 0.3rem 0.85rem;
    box-shadow: var(--shadow-sm);
}
.user-avatar {
    width: 30px; height: 30px; border-radius: 999px;
    background: var(--accent-grad);
    color: #fff; display: grid; place-items: center;
    font-size: 0.7rem; font-weight: 700;
}

.content { padding: 1rem 1.5rem 2rem; max-width: 1480px; width: 100%; }

/* --- Utility --- */
.row { display: flex; align-items: center; gap: 0.75rem; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 0.85rem; }
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.nav-toggle {
    display: none;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 10px;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    font: inherit;
    box-shadow: var(--shadow-sm);
}
.sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 40;
}
@media (max-width: 900px) {
    .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
    .shell { grid-template-columns: 1fr; }
    .nav-toggle { display: inline-flex; }
    .sidebar {
        position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50;
        transform: translateX(-105%);
        transition: transform 160ms ease;
        overflow-y: auto;
    }
    .shell.nav-open .sidebar { transform: translateX(0); }
    .shell.nav-open .sidebar-backdrop { display: block; }
    .table-wrap { overflow-x: auto; }
}

.muted { color: var(--muted); }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

/* --- Cards --- */
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem 1.2rem;
    box-shadow: var(--shadow);
}
.card h2 { margin-bottom: 0.85rem; }
.card .card-title {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.85rem;
}

/* Accent rail for result / status cards */
.card.rail-ok { border-left: 3px solid var(--success); }
.card.rail-warn { border-left: 3px solid var(--warning); }
.card.rail-danger { border-left: 3px solid var(--danger); }
.card.rail-info { border-left: 3px solid var(--brand-primary); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: var(--panel-2);
    color: var(--text);
    font-weight: 600; font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.btn:hover { background: #e8edf5; text-decoration: none; }
.btn.primary {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: 0 6px 16px rgba(14, 116, 144, 0.28);
}
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost {
    background: var(--panel);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.btn.sm { padding: 0.3rem 0.7rem; font-size: 0.78rem; border-radius: 8px; }

/* --- Forms --- */
.form { display: grid; gap: 0.85rem; max-width: 640px; }
label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); }
label > .label { color: var(--text); font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=file], textarea, select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font: inherit;
    box-shadow: var(--shadow-sm);
}
textarea { min-height: 100px; resize: vertical; }
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-soft);
}
.form-help { color: var(--muted); font-size: 0.78rem; }
.form-error { color: var(--danger); font-size: 0.8rem; }

/* --- Tables --- */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.table th, .table td { padding: 0.8rem 0.95rem; text-align: left; }
.table thead th {
    background: var(--panel-2);
    color: var(--muted);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.table tbody tr { border-top: 1px solid var(--line-soft); }
.table tbody tr:hover { background: rgba(8, 145, 178, 0.04); }
.table td .actions { display: flex; gap: 0.35rem; justify-content: flex-end; }

/* --- Chips --- */
.chip {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 700;
}
.chip.ok { color: var(--success); background: rgba(5, 150, 105, 0.1); border-color: rgba(5, 150, 105, 0.25); }
.chip.warn { color: var(--warning); background: rgba(217, 119, 6, 0.1); border-color: rgba(217, 119, 6, 0.25); }
.chip.danger { color: var(--danger); background: rgba(220, 38, 38, 0.1); border-color: rgba(220, 38, 38, 0.25); }
.chip.info { color: var(--brand-primary); background: var(--brand-primary-soft); border-color: rgba(37, 99, 235, 0.25); }

/* --- Flash --- */
.flash {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}
.flash .flash-body { flex: 1; min-width: 0; }
.flash .flash-close {
    background: transparent; border: none; color: var(--muted);
    cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0;
}
.flash.success { background: rgba(5, 150, 105, 0.08); border-color: rgba(5, 150, 105, 0.3); }
.flash.error { background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.3); }
.flash.info { background: var(--accent-soft); border-color: rgba(37, 99, 235, 0.3); }

/* --- Auth --- */
.auth-shell {
    min-height: 100vh;
    display: grid; place-items: center;
    padding: 1.5rem;
    background:
        linear-gradient(rgba(14, 116, 144, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 116, 144, 0.04) 1px, transparent 1px),
        radial-gradient(700px 360px at 15% 10%, rgba(8, 145, 178, 0.16), transparent 60%),
        radial-gradient(600px 300px at 90% 20%, rgba(29, 78, 216, 0.10), transparent 55%),
        var(--canvas);
    background-size: 32px 32px, 32px 32px, auto, auto, auto;
}
.auth-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
}
.auth-card .brand { padding: 0 0 1rem; font-size: 1.45rem; justify-content: center; }
.auth-card h2 { margin: 0 0 0.35rem; font-size: 1.55rem; letter-spacing: -0.03em; }
.auth-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1d4ed8;
}

body.auth-page { background: #0b1f5c; }
.auth-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}
.auth-brand {
    padding: 2.4rem 3rem;
    color: #fff;
    background:
        radial-gradient(700px 380px at 12% -8%, rgba(147, 197, 253, 0.28), transparent 58%),
        linear-gradient(160deg, #0b1f5c 0%, #1638a0 58%, #1d4ed8 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
    margin-bottom: 2.2rem;
}
.auth-brand-logo:hover { color: #fff; text-decoration: none; }
.auth-brand-logo img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.auth-brand-logo span { display: flex; flex-direction: column; line-height: 1.15; }
.auth-brand-logo strong { font-size: 1.05rem; }
.auth-brand-logo em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #93c5fd; font-weight: 700; }
.auth-brand h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 14ch; line-height: 1.1; }
.auth-brand p { color: #dbe7ff; max-width: 32rem; line-height: 1.6; }
.auth-brand ul { margin: 1.4rem 0 0; padding: 0; list-style: none; color: #bfdbfe; }
.auth-brand li { padding: 0.35rem 0; border-top: 1px solid rgba(255,255,255,0.12); font-weight: 600; }
.auth-panel {
    display: grid;
    place-items: center;
    padding: 2rem 1.5rem;
    background:
        linear-gradient(rgba(29, 78, 216, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 78, 216, 0.04) 1px, transparent 1px),
        #f5f7fb;
    background-size: 32px 32px, 32px 32px, auto;
}
.auth-panel .auth-card { max-width: 420px; }
@media (max-width: 900px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-brand { padding: 1.6rem 1.4rem 1.4rem; }
    .auth-brand h1 { max-width: none; font-size: 1.7rem; }
}

/* --- Errors --- */
.err {
    min-height: 100vh;
    display: grid; place-items: center;
    background: var(--canvas);
    color: var(--text);
    text-align: center;
    padding: 2rem;
}
.err .code { font-size: 5rem; font-weight: 700; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.err p { color: var(--muted); }

details summary { cursor: pointer; }

/* --- Breadcrumbs --- */
.breadcrumbs {
    display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
    font-size: 0.8rem; color: var(--muted); margin-bottom: 0.35rem;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-primary); }
.breadcrumbs .sep { opacity: 0.45; }

/* --- Secret once --- */
.secret-panel {
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.35);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}
.secret-panel code {
    display: block;
    word-break: break-all;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    margin: 0.5rem 0;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.85rem;
}

/* --- Pagination --- */
.pagination { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.pagination li { display: inline-flex; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2rem; padding: 0.35rem 0.6rem;
    border: 1px solid var(--line); border-radius: 8px;
    background: var(--panel); color: var(--text); font-size: 0.8rem;
    text-decoration: none; box-shadow: var(--shadow-sm);
}
.pagination .active span { background: var(--accent-grad); border-color: transparent; color: #fff; }
.pagination .disabled span { opacity: 0.4; cursor: default; }

/* --- KPI strip (SOC metrics) --- */
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
@media (max-width: 1200px) { .kpi-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .kpi-strip { grid-template-columns: repeat(2, 1fr); } }
.kpi {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.95rem 1rem 0.9rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.kpi::before {
    content: "";
    position: absolute; inset: 0 auto 0 0; width: 3px;
    background: var(--cyan);
}
.kpi.tone-ok::before { background: var(--success); }
.kpi.tone-warn::before { background: var(--warning); }
.kpi.tone-danger::before { background: var(--danger); }
.kpi.tone-info::before { background: var(--brand-primary); }
.kpi .kpi-value {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 1.7rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1;
    color: var(--text);
}
.kpi.tone-danger .kpi-value { color: var(--danger); }
.kpi.tone-warn .kpi-value { color: var(--warning); }
.kpi.tone-ok .kpi-value { color: var(--success); }
.kpi .kpi-label {
    color: var(--muted); font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 0.07em; margin-top: 0.35rem; font-weight: 700;
}
.kpi .kpi-meta {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--muted);
}
.kpi a { color: inherit; text-decoration: none; display: block; }
.kpi a:hover { text-decoration: none; }
.kpi:hover { border-color: rgba(8, 145, 178, 0.35); box-shadow: var(--shadow); }

/* --- Tabs --- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs a, .tabs button {
    background: transparent; border: none; color: var(--muted);
    padding: 0.6rem 0.9rem; cursor: pointer; font: inherit; font-weight: 600;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs a.active, .tabs button.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }

/* --- Task board --- */
.board { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: 0.85rem; overflow-x: auto; }
.board.board-cols-5 { grid-template-columns: repeat(5, minmax(200px, 1fr)); }
.board-col {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem;
    min-height: 12rem;
    transition: border-color 120ms ease, background 120ms ease;
}
.board-col.is-drop-target {
    border-color: var(--brand-primary);
    background: rgba(37, 99, 235, 0.06);
}
.board-col h3 {
    font-size: 0.72rem; color: var(--muted); text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 0.75rem; font-weight: 700;
}
.board-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 0.55rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--brand-primary);
}
.board-card[draggable="true"] { cursor: grab; }
.board-card.is-dragging { opacity: 0.45; }
.board-card.rail-ok { border-left-color: var(--success); }
.board-card.rail-warn { border-left-color: var(--warning); }
.board-card.rail-danger { border-left-color: var(--danger); }
.board-card a { color: var(--text); font-weight: 650; text-decoration: none; }
.board-card a:hover { color: var(--brand-primary); }
.board-card-meta { font-size: 0.75rem; margin-top: 0.25rem; }
.board-card-footer { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.45rem; }
.board-card .user-avatar { width: 22px; height: 22px; font-size: 0.6rem; }
.board-empty { font-size: 0.8rem; }

.workspace-toolbar { margin-bottom: 1rem; flex-wrap: wrap; align-items: flex-start; }
.view-switch { display: flex; gap: 0.35rem; }
.filter-check { flex-direction: row; align-items: center; gap: 0.35rem; }
.filter-check input { width: auto; }
.due-cell { font-size: 0.75rem; }
.pager { margin-top: 1rem; }
.inline-status { margin-top: 0.85rem; max-width: 240px; }
.task-body { margin-top: 1rem; white-space: pre-wrap; }
.subtask-row { padding: 0.35rem 0; border-top: 1px solid var(--line-soft); }
.comment-stack { margin-bottom: 1rem; }
.comment-item { padding: 0.5rem 0; border-top: 1px solid var(--line-soft); }
.comment-body { margin: 0.35rem 0 0; white-space: pre-wrap; }
.comment-submit { align-self: flex-start; }
.table-empty { text-align: center; padding: 2rem; }

/* --- Empty state --- */
.empty {
    text-align: center; padding: 2.5rem 1.5rem;
    border: 1px dashed var(--line); border-radius: var(--radius);
    background: var(--panel);
}
.empty p { color: var(--muted); margin: 0 0 1rem; }

/* --- Modal --- */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4);
    display: grid; place-items: center; z-index: 60; padding: 1rem;
}
.modal {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 16px; padding: 1.35rem; width: 100%; max-width: 400px;
    box-shadow: var(--shadow);
}
.modal h3 { margin-bottom: 0.5rem; }
.modal p { color: var(--muted); margin: 0 0 1rem; }

/* --- Filters --- */
.filters {
    display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.filters input, .filters select { width: auto; min-width: 140px; }

[x-cloak] { display: none !important; }

/* Toolkit tool pills */
.tool-pill {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.3rem !important;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.tool-pill.is-active {
    background: var(--brand-primary-soft);
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--brand-primary);
}

/* Toolkit result presentation */
.toolkit-result { margin-top: 0.25rem; }
.toolkit-result .result-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
    margin-bottom: 0.65rem;
}
.toolkit-result .result-subhead {
    margin: 0 0 0.45rem; font-size: 0.8rem; color: var(--muted);
    display: flex; align-items: center; gap: 0.4rem;
}
.toolkit-result .result-kv {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
    gap: 0.55rem 1rem;
    margin-bottom: 0.35rem;
}
.toolkit-result .result-kv > div {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
}
.toolkit-result .result-kv dt {
    display: block; font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--muted); font-weight: 650; margin-bottom: 0.15rem;
}
.toolkit-result .result-kv dd {
    margin: 0; font-weight: 600; word-break: break-word;
}
.toolkit-result .table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); }
.toolkit-result .result-table { margin: 0; }
.toolkit-result .result-table th {
    background: var(--panel-2); font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--muted);
}
.toolkit-result .value-cell { word-break: break-word; overflow-wrap: anywhere; max-width: 100%; }
.toolkit-result .result-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-top: 0.65rem;
}
@media (max-width: 800px) {
    .toolkit-result .result-split { grid-template-columns: 1fr; }
}
.toolkit-result .result-list-item {
    display: flex; flex-direction: column; gap: 0.15rem;
    padding: 0.5rem 0.65rem; border-radius: 10px; margin-bottom: 0.35rem;
    border: 1px solid var(--line); background: var(--panel);
}
.toolkit-result .result-list-item.bad {
    border-left: 3px solid var(--danger);
    background: rgba(220, 38, 38, 0.04);
}
.toolkit-result .result-list-item.warn {
    border-left: 3px solid var(--warning);
    background: rgba(245, 197, 24, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.toolkit-result .result-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.toolkit-result .result-block {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
}
.toolkit-result .result-code {
    display: block; margin-top: 0.4rem; padding: 0.55rem 0.7rem;
    background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
    font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.78rem;
    white-space: pre-wrap; word-break: break-word; color: var(--text);
}
.toolkit-result .result-bullets {
    margin: 0.4rem 0 0; padding-left: 1.1rem;
}
.toolkit-result .result-bullets li { margin: 0.15rem 0; }
.toolkit-result .result-raw {
    white-space: pre-wrap; font-size: 0.75rem;
    background: var(--panel-2); padding: 0.75rem; border-radius: 8px;
    margin: 0.5rem 0 0; max-height: 280px; overflow: auto;
    border: 1px solid var(--line);
}
.toolkit-result .result-raw-toggle { margin-top: 0.75rem; }
.toolkit-result .result-raw-toggle > summary {
    cursor: pointer; font-size: 0.8rem; user-select: none;
}

/* --- SOC command center --- */
.soc-status-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 0.85rem;
    margin-right: auto;
}
.soc-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.soc-pill .dot {
    width: 7px; height: 7px; border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
}
.soc-pill.critical .dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18); }
.soc-pill.degraded .dot { background: var(--warning); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18); }
.soc-pill.critical { color: var(--danger); border-color: rgba(220, 38, 38, 0.25); background: rgba(220, 38, 38, 0.06); }
.soc-pill.degraded { color: var(--warning); border-color: rgba(217, 119, 6, 0.25); background: rgba(217, 119, 6, 0.06); }
.soc-pill.secure { color: var(--success); border-color: rgba(5, 150, 105, 0.25); background: rgba(5, 150, 105, 0.06); }

.soc-hero {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(29, 78, 216, 0.05)),
        var(--panel);
    box-shadow: var(--shadow-sm);
}
.soc-hero h2 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
}
.soc-hero p { margin: 0; color: var(--muted); max-width: 52ch; }
.soc-hero-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.soc-feed {
    display: flex; flex-direction: column; gap: 0;
}
.soc-feed-row {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
    padding: 0.65rem 0;
    border-top: 1px solid var(--line-soft);
}
.soc-feed-row:first-child { border-top: 0; padding-top: 0.15rem; }
.soc-feed-main { min-width: 0; }
.soc-feed-main a { font-weight: 650; color: var(--text); }
.soc-feed-main a:hover { color: var(--brand-primary); }
.soc-feed-meta {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.15rem;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.card.soc-panel { padding: 1rem 1.05rem; }
.card.soc-panel .card-title { margin-bottom: 0.65rem; }
.card.soc-panel .card-title h2 {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    font-weight: 750;
}

.quick-ops {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
@media (max-width: 1100px) { .quick-ops { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .quick-ops { grid-template-columns: 1fr; } }
.quick-op {
    display: block;
    padding: 0.95rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
    text-decoration: none !important;
    transition: border-color 120ms ease, transform 120ms ease;
}
.quick-op:hover { border-color: rgba(8, 145, 178, 0.45); transform: translateY(-1px); }
.quick-op .qo-kicker {
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--cyan); font-weight: 750; margin-bottom: 0.3rem;
}
.quick-op .qo-title { font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.quick-op .qo-desc { font-size: 0.78rem; color: var(--muted); margin: 0; }

.sidebar .nav-link.account-link {
    margin-top: 0.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding-top: 0.75rem;
    border-radius: 0 0 8px 8px;
}

/* Web Check dashboard + scan report */
.scan-report,
#web-check-mount {
    display: grid;
    gap: 0.95rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}
.scan-hero,
body.pulse .card.scan-hero {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: center;
    padding: 1.35rem 1.4rem;
    max-width: 100%;
    min-width: 0;
    background:
        radial-gradient(520px 220px at 0% 0%, rgba(245, 197, 24, 0.22), transparent 58%),
        radial-gradient(420px 200px at 100% 100%, rgba(14, 165, 233, 0.16), transparent 55%),
        var(--glass, #fff);
}
.scan-hero-main { min-width: 0; flex: 1; }
.scan-kicker {
    margin: 0 0 0.28rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 750;
    color: #b45309;
}
.scan-query {
    margin: 0 0 0.7rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: -0.04em;
    word-break: break-word;
}
.scan-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.scan-poll { font-size: 0.78rem; }
.scan-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.95rem; }
.scan-save {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.scan-save select { max-width: 22rem; }
.scan-error { margin: 0.85rem 0 0; }
.scan-score { display: flex; align-items: center; gap: 0.9rem; flex: none; }
.scan-ring {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.scan-ring:before {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
}
.scan-ring strong, .scan-ring span { position: relative; z-index: 1; }
.scan-ring strong {
    font-size: 1.7rem;
    letter-spacing: -0.05em;
    line-height: 1;
}
.scan-ring span {
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.15rem;
}
.scan-ring.ok strong { color: var(--success); }
.scan-ring.warn strong { color: var(--warning); }
.scan-ring.danger strong { color: var(--danger); }
.scan-score-keys { display: grid; gap: 0.35rem; }
.scan-score-keys div { display: flex; align-items: baseline; gap: 0.4rem; }
.scan-score-keys em { font-style: normal; font-weight: 750; font-size: 1.05rem; }
.scan-score-keys span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.scan-score-keys em.ok { color: var(--success); }
.scan-score-keys em.warn { color: var(--warning); }
.scan-score-keys em.danger { color: var(--danger); }
.scan-progress { padding: 1.1rem 1.2rem; }
.scan-progress p { margin: 0.35rem 0 0; }
.scan-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.scan-progress-bar i {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f5c518, #22c55e);
    animation: scan-progress 1.4s ease-in-out infinite;
}
@keyframes scan-progress {
    0% { transform: translateX(-80%); }
    100% { transform: translateX(280%); }
}
.scan-seg {
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.08);
    margin: 0 0 0.9rem;
}
.scan-seg i { display: block; height: 100%; }
.scan-seg .ok { background: #059669; }
.scan-seg .warn { background: #d97706; }
.scan-seg .danger { background: #dc2626; }
.scan-seg .empty { background: rgba(15, 23, 42, 0.08); }
.scan-lede { margin: 0 0 0.85rem; font-size: 0.82rem; }
.scan-fixes { display: grid; gap: 0.7rem; }
.scan-fix-acc {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
    overflow: hidden;
}
.scan-fix-acc.is-danger { border-color: rgba(220, 38, 38, 0.2); background: rgba(254, 242, 242, 0.72); }
.scan-fix-acc.is-warn { border-color: rgba(217, 119, 6, 0.22); background: rgba(255, 247, 237, 0.78); }
.scan-fix-acc > summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    cursor: pointer;
    list-style: none;
}
.scan-fix-acc > summary::-webkit-details-marker { display: none; }
.scan-fix-acc > summary::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    margin-left: auto;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    flex: none;
}
.scan-fix-acc[open] > summary::after { transform: rotate(-135deg); margin-top: 0.25rem; }
.scan-fix-sum { min-width: 0; flex: 1; display: grid; gap: 0.12rem; }
.scan-fix-sum .muted { font-size: 0.78rem; }
.scan-fix-body { padding: 0 0.95rem 0.95rem 3.5rem; }
.scan-fix-label {
    display: block;
    margin: 0.2rem 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c4a00;
}
textarea.scan-fix-script {
    width: 100%;
    min-height: 8rem;
    resize: vertical;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
}
.scan-fix-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
@media (max-width: 720px) {
    .scan-fix-body { padding-left: 0.95rem; }
}
.scan-fix-n {
    flex: none;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 750;
    background: rgba(245, 197, 24, 0.22);
    color: #7c4a00;
}
.scan-fix-head { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.2rem; }
.scan-where { font-size: 0.75rem; margin-top: 0.2rem; }
.scan-steps { margin: 0.45rem 0 0.65rem; padding-left: 1.15rem; font-size: 0.82rem; }
.scan-steps li { margin: 0.2rem 0; }
.scan-card-title { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.scan-card-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    flex: none;
}
.scan-card-mark.ok { background: rgba(5, 150, 105, 0.12); color: #047857; }
.scan-card-mark.warn { background: rgba(217, 119, 6, 0.12); color: #b45309; }
.scan-card-mark.danger { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.scan-card-mark.info { background: rgba(14, 116, 144, 0.12); color: #0e7490; }
.scan-card-msg { margin: 0 0 0.65rem; font-size: 0.82rem; }

.web-check-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    position: sticky;
    top: 4.4rem;
    z-index: 8;
    padding: 0.45rem 0.55rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
    max-width: 100%;
}
.web-check-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.04);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}
.web-check-nav a:hover { filter: brightness(1.04); }
.web-check-nav a.hue-gold { background: #fef3c7; color: #92400e; }
.web-check-nav a.hue-cyan { background: #cffafe; color: #155e75; }
.web-check-nav a.hue-sky { background: #e0f2fe; color: #075985; }
.web-check-nav a.hue-indigo { background: #e0e7ff; color: #3730a3; }
.web-check-nav a.hue-violet { background: #ede9fe; color: #5b21b6; }
.web-check-nav a.hue-emerald { background: #d1fae5; color: #065f46; }
.web-check-nav a.hue-rose { background: #ffe4e6; color: #9f1239; }
.web-check-nav a.hue-crimson { background: #fee2e2; color: #991b1b; }
.web-check-nav a.hue-amber { background: #ffedd5; color: #9a3412; }
.web-check-nav a.hue-teal { background: #ccfbf1; color: #115e59; }
.web-check-nav a.hue-blue { background: #dbeafe; color: #1e3a8a; }
.web-check-nav a.hue-slate { background: #e2e8f0; color: #334155; }
.web-check-quality { margin: 0; max-width: 100%; min-width: 0; }
.web-check-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 0.55rem;
}
.web-check-check {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.7rem 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    min-width: 0;
}
.web-check-check .muted { font-size: 0.78rem; overflow-wrap: anywhere; }
.web-check-check.is-ok { border-color: rgba(5, 150, 105, 0.22); background: rgba(236, 253, 243, 0.7); }
.web-check-check.is-warn { border-color: rgba(217, 119, 6, 0.22); background: rgba(255, 247, 237, 0.75); }
.web-check-check.is-danger { border-color: rgba(220, 38, 38, 0.2); background: rgba(254, 242, 242, 0.75); }
.web-check-masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    width: 100%;
    max-width: 100%;
}
.web-check-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    transition: transform 140ms ease, box-shadow 140ms ease;
}
.web-check-card:hover { transform: translateY(-2px); }
.web-check-card .card-title { flex-wrap: wrap; gap: 0.45rem; }
.web-check-card .result-raw-toggle { display: none; }
.web-check-card .toolkit-result,
.web-check-card .result-kv,
.web-check-card .table-wrap,
.web-check-card table,
.web-check-card .table {
    max-width: 100%;
    min-width: 0;
}
.web-check-card .table,
.web-check-card table {
    width: 100%;
    table-layout: fixed;
    box-shadow: none;
}
.web-check-card th,
.web-check-card td,
.web-check-card .mono,
.web-check-card dd,
.web-check-card li {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.web-check-card .toolkit-result .result-kv,
.web-check-card .toolkit-result .result-split {
    grid-template-columns: 1fr;
}
.web-check-card.hue-gold {
    background: linear-gradient(180deg, rgba(245, 197, 24, 0.2), rgba(255,255,255,0.82) 38%), var(--glass, #fff);
    border-color: rgba(245, 197, 24, 0.35);
}
.web-check-card.hue-cyan {
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.16), rgba(255,255,255,0.82) 38%), var(--glass, #fff);
    border-color: rgba(8, 145, 178, 0.28);
}
.web-check-card.hue-sky {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.16), rgba(255,255,255,0.82) 38%), var(--glass, #fff);
    border-color: rgba(14, 165, 233, 0.28);
}
.web-check-card.hue-indigo {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.16), rgba(255,255,255,0.82) 38%), var(--glass, #fff);
    border-color: rgba(79, 70, 229, 0.28);
}
.web-check-card.hue-violet {
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.2), rgba(255,255,255,0.82) 38%), var(--glass, #fff);
    border-color: rgba(124, 58, 237, 0.28);
}
.web-check-card.hue-emerald {
    background: linear-gradient(180deg, rgba(52, 211, 153, 0.18), rgba(255,255,255,0.82) 38%), var(--glass, #fff);
    border-color: rgba(5, 150, 105, 0.28);
}
.web-check-card.hue-rose {
    background: linear-gradient(180deg, rgba(251, 113, 133, 0.16), rgba(255,255,255,0.82) 38%), var(--glass, #fff);
    border-color: rgba(225, 29, 72, 0.24);
}
.web-check-card.hue-crimson {
    background: linear-gradient(180deg, rgba(248, 113, 113, 0.16), rgba(255,255,255,0.82) 38%), var(--glass, #fff);
    border-color: rgba(220, 38, 38, 0.24);
}
.web-check-card.hue-amber {
    background: linear-gradient(180deg, rgba(251, 146, 60, 0.16), rgba(255,255,255,0.82) 38%), var(--glass, #fff);
    border-color: rgba(234, 88, 12, 0.24);
}
.web-check-card.hue-teal {
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.16), rgba(255,255,255,0.82) 38%), var(--glass, #fff);
    border-color: rgba(13, 148, 136, 0.28);
}
.web-check-card.hue-blue {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.18), rgba(255,255,255,0.82) 38%), var(--glass, #fff);
    border-color: rgba(37, 99, 235, 0.26);
}
.web-check-card.hue-slate {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.16), rgba(255,255,255,0.82) 38%), var(--glass, #fff);
}
.web-check-card.hue-gold .scan-card-mark { background: #f5c518; color: #1a1403; }
.web-check-card.hue-cyan .scan-card-mark { background: #06b6d4; color: #083344; }
.web-check-card.hue-sky .scan-card-mark { background: #38bdf8; color: #082f49; }
.web-check-card.hue-indigo .scan-card-mark { background: #6366f1; color: #fff; }
.web-check-card.hue-violet .scan-card-mark { background: #8b5cf6; color: #fff; }
.web-check-card.hue-emerald .scan-card-mark { background: #10b981; color: #052e16; }
.web-check-card.hue-rose .scan-card-mark { background: #f43f5e; color: #fff; }
.web-check-card.hue-crimson .scan-card-mark { background: #ef4444; color: #fff; }
.web-check-card.hue-amber .scan-card-mark { background: #f97316; color: #fff; }
.web-check-card.hue-teal .scan-card-mark { background: #14b8a6; color: #042f2e; }
.web-check-card.hue-blue .scan-card-mark { background: #3b82f6; color: #fff; }
.lh-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}
.lh-metric {
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(15, 23, 42, 0.06);
    min-width: 0;
}
.lh-metric span { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 700; }
.lh-metric strong { display: block; margin-top: 0.15rem; font-size: 0.95rem; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
    .web-check-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .scan-hero,
    body.pulse .card.scan-hero { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) { .web-check-masonry { grid-template-columns: minmax(0, 1fr); } }

.username-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.65rem;
}
.username-hit {
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-2);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* --- Staff-core (command / fleet / enroll / desk) --- */
.crumb {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--sidebar-muted);
    margin-bottom: 0.15rem;
}
.topbar .crumb { color: var(--muted); }
.sidebar .ws {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.3rem;
    margin: 0 0.35rem 0.85rem;
}
.sidebar .ws a {
    text-align: center; text-decoration: none;
    padding: 0.4rem 0.15rem;
    border-radius: 9px; color: var(--sidebar-muted);
    font-size: 0.62rem; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase;
    background: rgba(255,255,255,0.04);
}
.sidebar .ws a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.sidebar .ws a.on { color: #99f6e4; background: rgba(14, 116, 144, 0.28); }

.page-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 1rem; margin-bottom: 1.15rem; flex-wrap: wrap;
}
.eyebrow {
    font-size: 0.68rem; font-weight: 750; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--muted); margin: 0 0 0.3rem;
}
.lede-title { font-size: 1.7rem; letter-spacing: -0.04em; margin: 0; }
.lede { margin: 0.35rem 0 0; color: var(--muted); max-width: 40rem; }

.cc-posture { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0.75rem; margin-bottom: 0.85rem; }
.cc-meter {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0.95rem 1.05rem; box-shadow: var(--shadow-sm);
}
.cc-meter-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--panel-2); margin: 0.65rem 0; }
.cc-meter-bar span { display: block; min-width: 4px; }
.cc-meter-bar .ok { background: #10b981; }
.cc-meter-bar .wait { background: #94a3b8; }
.cc-meter-bar .warn { background: #f59e0b; }
.cc-meter-bar .bad { background: #ef4444; }
.cc-meter-keys { display: flex; flex-wrap: wrap; gap: 0.7rem; font-size: 0.74rem; color: var(--muted); }
.cc-meter-keys b { color: var(--text); }
.cc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.cc-stat {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0.8rem 0.9rem; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
}
.cc-stat:hover { text-decoration: none; border-color: rgba(14, 116, 144, 0.35); }
.cc-stat .n { font-size: 1.45rem; font-weight: 750; letter-spacing: -0.04em; line-height: 1; }
.cc-stat .k { margin-top: 0.25rem; font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.cc-stat.warn .n { color: var(--warning); }
.cc-stat.danger .n { color: var(--danger); }
.cc-stat.ok .n { color: var(--success); }

.cc-hero {
    display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: center;
    background: var(--sidebar); color: #e2e8f0;
    border-radius: 16px; padding: 1.25rem 1.35rem; margin-bottom: 1rem;
}
.cc-hero .tag {
    font-size: 0.66rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase;
    color: #5eead4; margin: 0 0 0.35rem;
}
.cc-hero h3 { font-size: 1.35rem; color: #fff; margin: 0 0 0.3rem; }
.cc-hero p { color: #94a3b8; margin: 0; max-width: 40rem; }
.cc-hero .btn.primary { background: #14b8a6; border: 0; color: #042f2e; box-shadow: none; }

.cc-split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 0.75rem; }
.panel {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
}
.panel-h {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 1rem 0.55rem; font-weight: 700; font-size: 0.86rem;
}
.feed-row {
    display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; border-top: 1px solid var(--line); text-decoration: none; color: inherit;
}
.feed-row:hover { background: #f8fafc; text-decoration: none; }
.feed-main { display: flex; gap: 0.65rem; align-items: stretch; min-width: 0; flex: 1; }
.feed-row .title { font-weight: 650; }
.feed-row .sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.12rem; }
.sev { width: 3px; border-radius: 99px; background: #e5e7eb; flex: none; }
.sev.warn { background: #f59e0b; }
.sev.danger { background: #ef4444; }
.quiet { padding: 1rem 1.05rem 1.15rem; }
.quiet h3 { margin: 0 0 0.35rem; }
.quiet p { color: var(--muted); margin: 0 0 0.75rem; font-size: 0.9rem; }

.workspace-tabs {
    display: inline-flex; flex-wrap: wrap; gap: 0.15rem;
    padding: 0.18rem; margin-bottom: 1rem;
    border: 1px solid var(--line); border-bottom: 1px solid var(--line);
    border-radius: 999px; background: var(--panel-2);
}
.workspace-tabs a {
    border: 0; border-bottom: 0; margin: 0;
    padding: 0.32rem 0.75rem; border-radius: 999px; color: var(--muted);
}
.workspace-tabs a.active {
    background: var(--panel); color: var(--text); border-bottom-color: transparent;
}

.fleet { display: flex; flex-direction: column; gap: 0.5rem; }
.fleet-row {
    display: grid; grid-template-columns: 36px 1fr 150px auto auto;
    gap: 0.85rem; align-items: center;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 12px; padding: 0.8rem 1rem;
}
.fleet-row.hot { border-color: #fecaca; background: #fff8f8; }
.fleet-initial {
    width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent-2);
    font-weight: 750; font-size: 0.78rem;
}
.fleet-row.hot .fleet-initial { background: rgba(220, 38, 38, 0.1); color: var(--danger); }
.fleet-host { font-weight: 700; }
.fleet-meta { font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }
.seen-bar { height: 5px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.seen-bar i { display: block; height: 100%; background: #10b981; border-radius: 99px; }
.seen-bar.warn i { background: #f59e0b; width: 22%; }
.seen-bar.ok i { width: 92%; }
.seen-bar.empty i { width: 0; }
.seen-bar.wait i { width: 8%; background: #94a3b8; }

.enroll-wizard { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; align-items: start; }
.enroll-steps {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0.65rem; display: flex; flex-direction: column; gap: 0.2rem;
}
.enroll-step {
    display: flex; align-items: center; gap: 0.55rem; text-align: left;
    border: 0; background: transparent; color: var(--muted);
    padding: 0.55rem; border-radius: 10px; cursor: pointer; font-weight: 650; font-size: 0.82rem;
}
.enroll-step i {
    width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center; font-style: normal;
    font-size: 0.68rem; background: var(--panel-2); flex: none;
}
.enroll-step.is-on { background: var(--accent-soft); color: var(--accent-2); }
.enroll-step.is-on i { background: var(--accent); color: #fff; }
.enroll-step.is-done { color: var(--success); }
.enroll-pane {
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
    padding: 1.25rem 1.3rem; min-height: 320px;
}
.enroll-secret {
    font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.8rem; word-break: break-all;
    background: #0b1220; color: #fde68a; border-radius: 10px;
    padding: 0.9rem 1rem; margin: 0.8rem 0 1rem;
}

.probe-hero {
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
    padding: 1.25rem 1.3rem 1.1rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.probe-hero h2 { margin: 0 0 0.3rem; font-size: 1.45rem; }
.probe-query { display: flex; gap: 0.5rem; margin: 0.9rem 0 0.4rem; flex-wrap: wrap; }
.probe-query input { flex: 1; min-width: 16rem; }
.pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 0.55rem;
    margin: 0.85rem 0 0.45rem;
}
.pack-card {
    display: block;
    position: relative;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.pack-card input { position: absolute; opacity: 0; pointer-events: none; }
.pack-card strong { display: block; font-size: 0.88rem; }
.pack-card span { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.25rem; line-height: 1.35; }
.pack-card.is-active,
.pack-card:has(input:checked) {
    border-color: rgba(37, 99, 235, 0.4);
    background: var(--brand-primary-soft);
}
.tester-strip { margin-bottom: 1rem; }
.tester-list { display: grid; gap: 0.45rem; }
.tester-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 0.75rem; flex-wrap: wrap;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
}
.tester-row:last-child { border-bottom: 0; padding-bottom: 0; }

.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.case-card {
    display: block; background: var(--panel); border: 1px solid var(--line);
    border-radius: 14px; padding: 1rem 1.05rem; text-decoration: none; color: inherit;
}
.case-card:hover { border-color: rgba(14, 116, 144, 0.35); text-decoration: none; }
.case-no { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.72rem; color: var(--accent-2); font-weight: 650; }

.dossier-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.dossier { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 0.85rem; }
.tl { display: grid; grid-template-columns: 92px 14px 1fr; gap: 0.55rem; padding-bottom: 1.05rem; }
.tl-time { font-size: 0.72rem; color: var(--muted); padding-top: 0.15rem; }
.tl-dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
    margin-top: 0.35rem; box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-body { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 0.85rem; }
.tl-body strong { display: block; margin-bottom: 0.2rem; }

@media (max-width: 980px) {
    .cc-posture, .cc-split, .enroll-wizard, .dossier, .case-grid { grid-template-columns: 1fr; }
    .cc-hero { grid-template-columns: 1fr; }
    .fleet-row { grid-template-columns: 36px 1fr auto; }
    .fleet-row .seen { display: none; }
}

/* --- Marketing homepage · royal blue --- */
body.mkt {
    --royal: #1d4ed8;
    --royal-deep: #0b1f5c;
    --royal-mid: #1638a0;
    --royal-soft: #e8eefc;
    --mkt-ink: #0f172a;
    --mkt-muted: #475569;
    --mkt-line: #d6e0f5;
    --mkt-paper: #f5f7fb;
    background: var(--mkt-paper);
    color: var(--mkt-ink);
}
body.mkt [x-cloak] { display: none !important; }
body.mkt a { color: var(--royal); }
.mkt-wrap { width: min(1140px, calc(100% - 2.5rem)); margin: 0 auto; }
.mkt-nav {
    position: sticky; top: 0; z-index: 20;
    background: rgba(245, 247, 251, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--mkt-line);
}
.mkt-nav-inner { display: flex; align-items: center; gap: 1.4rem; min-height: 72px; }
body.mkt .mkt-logo { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--mkt-ink); text-decoration: none; }
body.mkt .mkt-logo:hover { text-decoration: none; color: var(--mkt-ink); }
.mkt-logo img, .mkt-mark {
    width: 36px; height: 36px; border-radius: 8px; object-fit: cover;
}
.mkt-mark {
    display: grid; place-items: center;
    background: linear-gradient(160deg, var(--royal) 0%, var(--royal-deep) 100%);
    color: #fff; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.04em;
}
.mkt-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.mkt-logo-text strong { font-size: 0.98rem; color: var(--royal-deep); }
.mkt-logo-text em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal); font-weight: 700; }
.mkt-links { display: flex; gap: 1.2rem; flex: 1; font-size: 0.88rem; font-weight: 600; }
.mkt-links a { color: var(--mkt-muted); }
.mkt-links a:hover { color: var(--royal-deep); text-decoration: none; }
.mkt-nav-actions { display: flex; gap: 0.5rem; align-items: center; }
.mkt-menu {
    display: none;
    background: #fff;
    color: var(--royal-deep);
    border: 1px solid var(--mkt-line);
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 650;
    cursor: pointer;
}
.mkt-drawer {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.35rem 1.25rem 1.1rem;
    border-top: 1px solid var(--mkt-line);
    background: #fff;
}
.mkt-drawer a { color: var(--royal-deep); font-weight: 600; }
.mkt-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.7rem 1.05rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    letter-spacing: 0.01em;
}
.mkt-btn:hover { text-decoration: none; }
.mkt-btn-solid { background: var(--royal); color: #fff; }
.mkt-btn-solid:hover { background: var(--royal-mid); color: #fff; }
.mkt-btn-ghost { background: #fff; color: var(--royal-deep); border-color: var(--mkt-line); }
.mkt-btn-ghost:hover { border-color: var(--royal); color: var(--royal); }
.mkt-btn-light { background: #fff; color: var(--royal-deep); }
.mkt-btn-light:hover { background: var(--royal-soft); color: var(--royal-deep); }
.mkt-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.mkt-btn-outline:hover { background: rgba(255,255,255,0.08); color: #fff; }
.mkt-hero {
    padding: 5.2rem 0 4.4rem;
    color: #fff;
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(96, 165, 250, 0.28), transparent 55%),
        linear-gradient(160deg, var(--royal-deep) 0%, var(--royal-mid) 58%, var(--royal) 100%);
}
.mkt-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.4rem; align-items: center; }
.mkt-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 2.4rem;
}
.mkt-metrics div {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}
.mkt-metrics strong { display: block; color: #fff; font-size: 0.88rem; margin-bottom: 0.25rem; }
.mkt-metrics span { color: #bfdbfe; font-size: 0.78rem; line-height: 1.45; }
.mkt-hero h1, .mkt-section h2, .mkt-band h2, .mkt-close h2 {
    letter-spacing: -0.035em;
    font-weight: 750;
    margin: 0 0 1rem;
}
.mkt-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; max-width: 16ch; color: #fff; }
.mkt-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.7rem;
    font-weight: 750;
    color: #93c5fd;
    margin: 0 0 0.85rem;
}
.mkt-kicker-on-light { color: var(--royal); }
.mkt-lede { color: #dbe7ff; font-size: 1.08rem; line-height: 1.65; max-width: 38rem; }
.mkt-section-lede { color: var(--mkt-muted); font-size: 1.05rem; line-height: 1.65; max-width: 40rem; }
.mkt-lede-on-blue { color: #c7d7fb; }
.mkt-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.6rem 0 0; }
.mkt-panel {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    padding: 1.25rem 1.3rem;
    backdrop-filter: blur(10px);
}
.mkt-panel-label { margin: 0 0 0.85rem; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #93c5fd; font-weight: 750; }
.mkt-panel dl { margin: 0; }
.mkt-panel dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.mkt-panel dt { color: #dbe7ff; font-weight: 650; }
.mkt-panel dd { margin: 0; }
.mkt-panel code { color: #fff; font-size: 0.82rem; }
.mkt-panel-note { margin: 0.85rem 0 0; color: #bfdbfe; font-size: 0.82rem; line-height: 1.5; }
.mkt-assurance { background: #fff; border-bottom: 1px solid var(--mkt-line); }
.mkt-assurance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mkt-assurance article { padding: 1.5rem 1.15rem 1.5rem 0; border-right: 1px solid var(--mkt-line); }
.mkt-assurance article:last-child { border-right: 0; padding-right: 0; }
.mkt-assurance h3, .mkt-cards h3, .mkt-steps h3, .mkt-plan h3 { color: var(--royal-deep); font-size: 0.98rem; margin: 0 0 0.4rem; }
.mkt-assurance p, .mkt-cards p, .mkt-steps p, .mkt-plan p, .mkt-close p { color: var(--mkt-muted); margin: 0; line-height: 1.55; }
.mkt-section { padding: 4.6rem 0; background: var(--mkt-paper); }
.mkt-section h2, .mkt-band h2, .mkt-close h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; max-width: 22ch; color: var(--royal-deep); }
.mkt-section-tint { background: #eef3fb; }
.mkt-intro { margin-bottom: 2rem; }
.mkt-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.mkt-cards li {
    background: #fff;
    border: 1px solid var(--mkt-line);
    border-radius: 14px;
    padding: 1.15rem 1.15rem 1.2rem;
    box-shadow: 0 10px 28px rgba(11, 31, 92, 0.05);
    border-top: 3px solid var(--royal);
}
.mkt-cards span { display: block; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.72rem; color: var(--royal); margin-bottom: 0.55rem; font-weight: 650; }
.mkt-band {
    padding: 4.6rem 0;
    color: #fff;
    background: linear-gradient(160deg, var(--royal-deep), var(--royal-mid));
}
.mkt-band h2 { color: #fff; }
.mkt-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.mkt-steps article {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    padding: 1.2rem 1.2rem 1.3rem;
}
.mkt-steps article span { display: block; font-family: "IBM Plex Mono", ui-monospace, monospace; color: #93c5fd; font-size: 0.75rem; margin-bottom: 0.7rem; }
.mkt-steps h3 { color: #fff; }
.mkt-steps p { color: #c7d7fb; }
.mkt-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
.mkt-list { margin: 1.1rem 0 0; padding-left: 1.1rem; color: var(--mkt-muted); }
.mkt-list li { margin: 0.4rem 0; }
.mkt-list code { color: var(--royal-deep); }
.mkt-badge-preview { text-align: center; }
.mkt-badge {
    width: min(300px, 100%);
    margin: 0 auto 0.85rem;
    padding: 1.15rem 1.2rem;
    text-align: left;
    background: var(--royal-deep);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(11, 31, 92, 0.22);
}
.mkt-badge-top { display: flex; justify-content: space-between; align-items: center; color: #93c5fd; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.mkt-badge-top strong { font-size: 2.1rem; color: #fff; }
.mkt-badge p { color: #fff; font-weight: 700; margin: 0.6rem 0 0.25rem; }
.mkt-badge-live { color: #bfdbfe; font-size: 0.78rem; }
.mkt-caption { color: var(--mkt-muted); font-size: 0.78rem; }
.mkt-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.9rem; }
.mkt-plan { background: #fff; border: 1px solid var(--mkt-line); border-radius: 14px; padding: 1.25rem; border-top: 3px solid var(--royal); }
.mkt-price { font-size: 1.7rem; font-weight: 750; color: var(--royal-deep); margin: 0.35rem 0 0.2rem; }
.mkt-plan-meta { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; margin-bottom: 0.55rem !important; }
.mkt-close { padding: 4rem 0; background: var(--royal-deep); color: #fff; }
.mkt-close h2 { color: #fff; }
.mkt-close p { color: #c7d7fb; }
.mkt-close-inner { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.mkt-close .mkt-cta { margin: 0; }
.mkt-foot { padding: 1.25rem 0 1.6rem; background: #08153d; color: #93c5fd; font-size: 0.8rem; }
.mkt-foot-inner { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.mkt-foot-brand { margin: 0; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; font-weight: 700; }
.mkt-foot nav { display: flex; gap: 1.1rem; }
.mkt-foot a { color: #93c5fd; }
.mkt-foot a:hover { color: #fff; text-decoration: none; }
@media (max-width: 980px) {
    .mkt-links { display: none; }
    .mkt-menu { display: inline-flex; }
    .mkt-drawer { display: flex; }
    .mkt-hero-grid, .mkt-assurance-grid, .mkt-cards, .mkt-steps, .mkt-split, .mkt-metrics { grid-template-columns: 1fr; }
    .mkt-assurance article { border-right: 0; border-bottom: 1px solid var(--mkt-line); padding: 1.15rem 0; }
    .mkt-hero { padding: 3.4rem 0 3rem; }
}

/* --- Pulse glass (OpsGrid console / portal / public) --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.pulse,
body.mkt,
body.auth-page {
    --pulse-gold: #f5c518;
    --pulse-ink: #111827;
    --glass: rgba(255, 255, 255, 0.46);
    --glass-strong: rgba(255, 255, 255, 0.72);
    --glass-line: rgba(255, 255, 255, 0.7);
    --radius-xl: 28px;
    font-family: "Plus Jakarta Sans", "Instrument Sans", "Segoe UI", system-ui, sans-serif;
    background:
        radial-gradient(920px 540px at 6% -12%, rgba(245, 197, 24, 0.42), transparent 56%),
        radial-gradient(820px 500px at 96% 4%, rgba(125, 211, 252, 0.46), transparent 52%),
        radial-gradient(640px 380px at 78% 92%, rgba(167, 243, 208, 0.28), transparent 55%),
        #eef1f4;
    color: var(--pulse-ink);
}

.pulse-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.pulse .main.pulse-main {
    background: transparent;
    flex: 1;
    min-width: 0;
}

body.pulse .content {
    max-width: min(1320px, 100%);
    margin: 0 auto;
    padding: 0.5rem 1.4rem 2.4rem;
    overflow-x: clip;
}
body.pulse .pulse-pagehead {
    max-width: min(1320px, 100%);
    box-sizing: border-box;
}
body.pulse { overflow-x: hidden; }

body.pulse .card,
body.pulse .table,
body.pulse .panel,
body.pulse .probe-hero,
body.pulse .enroll-pane,
body.pulse .enroll-steps,
body.pulse .case-card,
body.pulse .fleet-row,
body.pulse .cc-meter,
body.pulse .cc-stat {
    background: var(--glass);
    border: 1px solid var(--glass-line);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.pulse .web-check-card.hue-gold { background: linear-gradient(180deg, rgba(245, 197, 24, 0.22), rgba(255,255,255,0.78) 40%), var(--glass); border-color: rgba(245, 197, 24, 0.38); }
body.pulse .web-check-card.hue-cyan { background: linear-gradient(180deg, rgba(6, 182, 212, 0.18), rgba(255,255,255,0.78) 40%), var(--glass); border-color: rgba(8, 145, 178, 0.3); }
body.pulse .web-check-card.hue-sky { background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(255,255,255,0.78) 40%), var(--glass); border-color: rgba(14, 165, 233, 0.3); }
body.pulse .web-check-card.hue-indigo { background: linear-gradient(180deg, rgba(99, 102, 241, 0.18), rgba(255,255,255,0.78) 40%), var(--glass); border-color: rgba(79, 70, 229, 0.3); }
body.pulse .web-check-card.hue-violet { background: linear-gradient(180deg, rgba(167, 139, 250, 0.2), rgba(255,255,255,0.78) 40%), var(--glass); border-color: rgba(124, 58, 237, 0.3); }
body.pulse .web-check-card.hue-emerald { background: linear-gradient(180deg, rgba(52, 211, 153, 0.2), rgba(255,255,255,0.78) 40%), var(--glass); border-color: rgba(5, 150, 105, 0.3); }
body.pulse .web-check-card.hue-rose { background: linear-gradient(180deg, rgba(251, 113, 133, 0.18), rgba(255,255,255,0.78) 40%), var(--glass); border-color: rgba(225, 29, 72, 0.26); }
body.pulse .web-check-card.hue-crimson { background: linear-gradient(180deg, rgba(248, 113, 113, 0.18), rgba(255,255,255,0.78) 40%), var(--glass); border-color: rgba(220, 38, 38, 0.26); }
body.pulse .web-check-card.hue-amber { background: linear-gradient(180deg, rgba(251, 146, 60, 0.18), rgba(255,255,255,0.78) 40%), var(--glass); border-color: rgba(234, 88, 12, 0.26); }
body.pulse .web-check-card.hue-teal { background: linear-gradient(180deg, rgba(45, 212, 191, 0.18), rgba(255,255,255,0.78) 40%), var(--glass); border-color: rgba(13, 148, 136, 0.3); }
body.pulse .web-check-card.hue-blue { background: linear-gradient(180deg, rgba(96, 165, 250, 0.2), rgba(255,255,255,0.78) 40%), var(--glass); border-color: rgba(37, 99, 235, 0.28); }
body.pulse .web-check-card.hue-slate { background: linear-gradient(180deg, rgba(148, 163, 184, 0.16), rgba(255,255,255,0.78) 40%), var(--glass); }
body.pulse .card.scan-hero {
    background:
        radial-gradient(520px 220px at 0% 0%, rgba(245, 197, 24, 0.22), transparent 58%),
        radial-gradient(420px 200px at 100% 100%, rgba(14, 165, 233, 0.16), transparent 55%),
        var(--glass);
}

body.pulse .card,
body.pulse .probe-hero,
body.pulse .enroll-pane { border-radius: var(--radius-xl); }
body.pulse .table { overflow: hidden; border-radius: 22px; }
body.pulse .btn { border-radius: 999px; }
body.pulse .btn.primary,
body.pulse .btn.pulse-gold,
.btn.pulse-gold {
    background: var(--pulse-gold);
    color: #1a1403;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(245, 197, 24, 0.35);
}
body.pulse .btn.primary:hover,
body.pulse .btn.pulse-gold:hover,
.btn.pulse-gold:hover { filter: brightness(1.04); background: #ffd54a; }
body.pulse .btn.ghost {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(15, 23, 42, 0.08);
}
body.pulse .chip {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(15, 23, 42, 0.06);
}
body.pulse input[type=text],
body.pulse input[type=email],
body.pulse input[type=password],
body.pulse input[type=number],
body.pulse input[type=url],
body.pulse input[type=date],
body.pulse input[type=file],
body.pulse textarea,
body.pulse select {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
}
body.pulse textarea.scan-fix-script {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
}

.pulse-mast {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem 0.35rem;
    position: sticky;
    top: 0;
    z-index: 30;
}

body.pulse .brand.pulse-brand {
    color: var(--pulse-ink);
    padding: 0.15rem 0.2rem 0.15rem 0;
    flex: none;
    justify-self: start;
}
body.pulse .brand.pulse-brand:hover { text-decoration: none; color: var(--pulse-ink); }
body.pulse .pulse-brand .brand-sub {
    color: #64748b;
    letter-spacing: 0.08em;
}
body.pulse .pulse-brand img {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    object-fit: cover;
}
body.pulse .user-avatar {
    background: linear-gradient(145deg, #f59e0b, #ea580c);
}
body.pulse .brand-mark.pulse-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 32% 30%, #ffe27a 0 28%, transparent 30%),
        linear-gradient(145deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.28);
}

.pulse-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    margin: 0 auto;
    padding: 0.28rem;
    border-radius: 999px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-line);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.pulse-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    justify-self: end;
}
body.pulse .pulse-tools .soc-pill {
    background: var(--glass-strong);
    border-color: var(--glass-line);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.pulse-ico {
    width: 18px;
    height: 18px;
    display: block;
    flex: none;
}
.pulse-ico-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.7rem;
    border: 0;
    background: transparent;
    color: #334155;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none !important;
    font: inherit;
    transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.pulse-ico-btn:hover { background: rgba(255, 255, 255, 0.7); color: #0f172a; }
.pulse-ico-btn.active,
.pulse-ico-btn.is-on,
.pulse-ico-btn.is-open {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.pulse-ico-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: max-width 160ms ease, opacity 160ms ease, margin 160ms ease;
}
.pulse-ico-btn.active .pulse-ico-label,
.pulse-ico-btn.is-on .pulse-ico-label,
.pulse-ico-btn.is-open .pulse-ico-label {
    max-width: 10rem;
    opacity: 1;
    margin-left: 0.4rem;
}

.pulse-fly { position: relative; }
.pulse-fly-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 320px;
    max-height: min(70vh, 34rem);
    overflow: auto;
    padding: 0.55rem;
    border-radius: 18px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-line);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
    z-index: 40;
}
.pulse-fly-title {
    margin: 0 0 0.35rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.pulse-fly-panel .nav-link {
    color: #1e293b;
    border-left: 0;
    border-radius: 10px;
}
.pulse-fly-panel .nav-link:hover {
    background: rgba(245, 197, 24, 0.16);
    color: #111827;
}
.pulse-fly-panel .nav-link.active {
    background: rgba(245, 197, 24, 0.28);
    color: #111827;
    border-left-color: transparent;
}

.pulse-pagehead {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding: 0.4rem 1.4rem 0;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}
body.pulse .pulse-pagehead h1 { margin: 0; font-size: 1.55rem; }
body.pulse .crumb { color: #64748b; }

body.pulse .sidebar.pulse-drawer { display: none; }

.pulse-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin: 0.4rem 0 1.15rem;
}
.pulse-hero h2 {
    margin: 0 0 0.25rem;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    letter-spacing: -0.04em;
}
.pulse-hero p { margin: 0; color: var(--muted); max-width: 42rem; }
.pulse-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; justify-content: flex-end; }
.pulse-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.88);
    color: #f8fafc !important;
    text-decoration: none !important;
    font-weight: 650;
    font-size: 0.82rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}
.pulse-chip-btn:hover { background: #111827; }
.pulse-chip-btn .pulse-ico { width: 14px; height: 14px; }

.pulse-top,
.pulse-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 0.9rem; }
.pulse-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 0.9rem; }
.pulse-kpi {
    display: flex;
    flex-direction: column;
    min-height: 148px;
    text-decoration: none !important;
    color: inherit;
    padding: 1.05rem 1.1rem 0.85rem;
}
.pulse-kpi .k { font-size: 0.78rem; color: var(--muted); font-weight: 650; }
.pulse-kpi strong { font-size: 2rem; letter-spacing: -0.05em; line-height: 1.05; margin: 0.2rem 0 0.15rem; }
.pulse-kpi.ok strong { color: var(--success); }
.pulse-kpi.warn strong { color: var(--warning); }
.pulse-kpi.danger strong { color: var(--danger); }
.pulse-kpi .delta { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.pulse-kpi .delta.up { color: var(--success); }
.pulse-kpi .delta.down { color: var(--danger); }
.spark {
    display: block;
    height: 34px;
    margin-top: auto;
    border-radius: 10px;
    opacity: 0.85;
}
.spark-a { background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(245, 197, 24, 0.35)); }
.spark-b { background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(14, 165, 233, 0.28)); }
.spark-c { background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(34, 197, 94, 0.25)); }
.spark-d { background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(245, 197, 24, 0.28)); }

.pulse-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
    margin-bottom: 0.9rem;
}
.pulse-progress i { display: block; height: 100%; background: linear-gradient(90deg, #f5c518, #22c55e); }
.pulse-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.pulse-check li { display: flex; align-items: center; gap: 0.55rem; }
.pulse-check a { color: inherit; font-weight: 600; }
.pulse-tick {
    width: 18px; height: 18px; border-radius: 999px; flex: none;
    border: 1.5px solid #cbd5e1;
    background: #fff;
}
.pulse-check .is-done .pulse-tick {
    border-color: #16a34a;
    background: #16a34a;
    box-shadow: inset 0 0 0 3px #16a34a, inset 0 0 0 5px #fff;
}
.pulse-check .is-done a { color: #64748b; }

.pulse-gauge { position: relative; display: grid; place-items: center; margin: 0.2rem 0 0.4rem; }
.pulse-arc { width: min(100%, 240px); height: auto; }
.pulse-gauge-n {
    position: absolute;
    bottom: 0.2rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1;
}
.pulse-gauge-n span { display: block; font-size: 0.68rem; font-weight: 650; color: var(--muted); margin-top: 0.2rem; }
.pulse-status-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 1rem; }
.pulse-status-list div { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }
.pulse-status-list em { font-style: normal; font-weight: 750; color: var(--text); }
.pulse-status-list em.ok { color: var(--success); }
.pulse-status-list em.warn { color: var(--warning); }
.pulse-status-list em.danger { color: var(--danger); }

.pulse-seg { height: 14px; margin: 0.85rem 0; }
body.pulse .cc-hero.glass {
    background: var(--glass);
    color: var(--pulse-ink);
    border: 1px solid var(--glass-line);
    border-radius: var(--radius-xl);
}
body.pulse .cc-hero.glass .tag { color: #b45309; }
body.pulse .cc-hero.glass h3 { color: var(--pulse-ink); }
body.pulse .cc-hero.glass p { color: var(--muted); }

.pulse-stream { width: 100%; border-collapse: collapse; }
.pulse-stream th, .pulse-stream td { padding: 0.65rem 0.35rem; text-align: left; }
.pulse-stream thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.pulse-stream tbody tr { border-top: 1px solid rgba(15, 23, 42, 0.05); }
.pulse-stream a { color: inherit; font-weight: 650; }

@media (max-width: 1100px) {
    .pulse-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
    .pulse-mast { grid-template-columns: 1fr auto; }
    body.pulse .pulse-pill { display: none; }
    body.pulse .nav-toggle { display: inline-flex; }
    body.pulse .pulse-tools .soc-pill { display: none; }
    .pulse-top, .pulse-bottom { grid-template-columns: 1fr; }
    .pulse-hero { align-items: flex-start; }
    .pulse-actions { justify-content: flex-start; }
    body.pulse .sidebar.pulse-drawer {
        display: flex;
        position: fixed;
        inset: 0 auto 0 0;
        width: min(300px, 88vw);
        z-index: 50;
        transform: translateX(-105%);
        transition: transform 180ms ease;
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px);
        border-right: 1px solid rgba(15, 23, 42, 0.08);
        color: var(--pulse-ink);
    }
    body.pulse .pulse-app.nav-open .sidebar.pulse-drawer { transform: translateX(0); }
    body.pulse .pulse-app.nav-open .sidebar-backdrop { display: block; }
    body.pulse .pulse-drawer .nav-link {
        color: #1e293b;
        border-left-color: transparent;
    }
    body.pulse .pulse-drawer .nav-link:hover,
    body.pulse .pulse-drawer .nav-link.active {
        background: rgba(245, 197, 24, 0.18);
        color: #111827;
        border-left-color: #f5c518;
    }
    body.pulse .pulse-drawer .nav-group-toggle { color: #64748b; }
    body.pulse .pulse-drawer .nav-group-toggle:hover,
    body.pulse .pulse-drawer .nav-group-toggle.is-current { color: #111827; }
    body.pulse .pulse-drawer .nav-link.account-link { border-top-color: rgba(15, 23, 42, 0.08); }
}

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

/* Marketing + auth on the same glass canvas */
body.mkt {
    --royal: #111827;
    --royal-deep: #111827;
    --royal-mid: #1f2937;
    --royal-soft: rgba(245, 197, 24, 0.18);
    --mkt-ink: #111827;
    --mkt-muted: #5b6b7c;
    --mkt-line: rgba(15, 23, 42, 0.08);
    --mkt-paper: transparent;
}
body.mkt .mkt-nav {
    background: rgba(255, 255, 255, 0.55);
    border-bottom-color: rgba(255, 255, 255, 0.4);
}
body.mkt .mkt-mark {
    background: linear-gradient(145deg, #f59e0b, #ea580c);
}
body.mkt .mkt-logo-text em { color: #b45309; }
body.mkt .mkt-btn { border-radius: 999px; }
body.mkt .mkt-btn-solid { background: #f5c518; color: #1a1403; }
body.mkt .mkt-btn-solid:hover { background: #ffd54a; color: #1a1403; }
body.mkt .mkt-btn-ghost,
body.mkt .mkt-btn-light { background: rgba(255, 255, 255, 0.7); color: #111827; border-color: rgba(15, 23, 42, 0.08); }
body.mkt .mkt-btn-outline { color: #111827; border-color: rgba(15, 23, 42, 0.16); }
body.mkt .mkt-btn-outline:hover { background: rgba(255, 255, 255, 0.45); color: #111827; }
body.mkt .mkt-hero {
    color: inherit;
    background: transparent;
}
body.mkt .mkt-hero h1 { color: #111827; max-width: 18ch; }
body.mkt .mkt-kicker { color: #b45309; }
body.mkt .mkt-lede { color: #475569; }
body.mkt .mkt-metrics div {
    background: rgba(255, 255, 255, 0.48);
    border-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
}
body.mkt .mkt-metrics strong { color: #111827; }
body.mkt .mkt-metrics span { color: #64748b; }
body.mkt .mkt-panel {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.7);
    color: #111827;
}
body.mkt .mkt-panel-label { color: #b45309; }
body.mkt .mkt-panel dt { color: #334155; }
body.mkt .mkt-panel code { color: #111827; }
body.mkt .mkt-panel-note { color: #64748b; }
body.mkt .mkt-panel dl > div { border-bottom-color: rgba(15, 23, 42, 0.08); }
body.mkt .mkt-assurance,
body.mkt .mkt-section,
body.mkt .mkt-section-tint { background: transparent; }
body.mkt .mkt-cards li,
body.mkt .mkt-plan {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.7);
    border-top-color: #f5c518;
    backdrop-filter: blur(12px);
    border-radius: 24px;
}
body.mkt .mkt-cards span { color: #b45309; }
body.mkt .mkt-band,
body.mkt .mkt-close {
    color: inherit;
    background: rgba(255, 255, 255, 0.36);
    border-block: 1px solid rgba(255, 255, 255, 0.5);
}
body.mkt .mkt-band h2,
body.mkt .mkt-close h2 { color: #111827; }
body.mkt .mkt-lede-on-blue,
body.mkt .mkt-close p { color: #475569; }
body.mkt .mkt-steps article {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.7);
}
body.mkt .mkt-steps article span { color: #b45309; }
body.mkt .mkt-steps h3 { color: #111827; }
body.mkt .mkt-steps p { color: #475569; }
body.mkt .mkt-badge {
    background: rgba(17, 24, 39, 0.92);
    border-radius: 24px;
}
body.mkt .mkt-foot {
    background: transparent;
    color: #64748b;
}
body.mkt .mkt-foot-brand { color: #111827; }
body.mkt .mkt-foot a { color: #64748b; }
body.mkt .mkt-drawer { background: rgba(255, 255, 255, 0.86); }

body.auth-page .brand-mark {
    background: linear-gradient(145deg, #f59e0b, #ea580c);
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.28);
}
body.auth-page .auth-shell {
    background: transparent;
}
body.auth-page .auth-shell .brand {
    color: #111827;
}
body.auth-page .auth-brand {
    color: #111827;
    background: transparent;
}
body.auth-page .auth-brand-logo { color: #111827; }
body.auth-page .auth-brand-logo:hover { color: #111827; }
body.auth-page .auth-brand-logo em { color: #b45309; }
body.auth-page .auth-brand h1 { color: #111827; }
body.auth-page .auth-brand p { color: #475569; }
body.auth-page .auth-brand ul { color: #334155; }
body.auth-page .auth-brand li { border-top-color: rgba(15, 23, 42, 0.08); }
body.auth-page .auth-panel {
    background: transparent;
}
body.auth-page .auth-card {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 28px;
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
body.auth-page .auth-kicker { color: #b45309; }
body.auth-page .btn.primary {
    background: #f5c518;
    color: #1a1403;
    box-shadow: 0 8px 20px rgba(245, 197, 24, 0.35);
}

/* OSINT visit intelligence */
.intel-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 0.9rem;
}
.intel-hero h2 { margin: 0 0 0.25rem; font-size: clamp(1.35rem, 2.4vw, 1.85rem); word-break: break-all; }
.intel-conf {
    min-width: 7.5rem;
    text-align: right;
}
.intel-conf strong {
    display: block;
    font-size: 2rem;
    letter-spacing: -0.04em;
    line-height: 1;
}
.intel-conf span { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.intel-id-row,
.intel-smart { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 0.9rem; }
.intel-id-card { display: flex; flex-direction: column; gap: 0.15rem; }
.intel-id-card .k { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.intel-id-card strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.intel-section { margin: 0.4rem 0 0.65rem; }
.intel-smart-card p { margin: 0.35rem 0 0; font-size: 0.78rem; }
.intel-smart-card.is-hit { border-color: rgba(220, 38, 38, 0.28); }
.intel-smart-card.is-clear { border-color: rgba(5, 150, 105, 0.22); }
.intel-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 0.9rem; }
.intel-kv { margin: 0; display: grid; gap: 0.45rem; }
.intel-kv > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.6rem; align-items: start; }
.intel-kv dt { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.intel-kv dd { margin: 0; word-break: break-word; }
.intel-keys { display: flex; flex-wrap: wrap; gap: 0.35rem; }
@media (max-width: 1100px) {
    .intel-id-row, .intel-smart { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
    .intel-id-row, .intel-smart, .intel-split { grid-template-columns: 1fr; }
    .intel-kv > div { grid-template-columns: 1fr; gap: 0.1rem; }
}

.tool-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}
.tool-card { display: block; text-decoration: none; color: inherit; }
.tool-card h2 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.tool-card p { margin: 0 0 0.45rem; font-weight: 650; }
.tool-card:hover { border-color: rgba(8, 145, 178, 0.35); }
.tool-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.tool-desk {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1rem;
    align-items: start;
}
.tool-form { max-width: none; }
.tool-checks { display: grid; gap: 0.4rem; }
.tool-check { flex-direction: row; align-items: center; gap: 0.45rem; }
.tool-file { margin-top: 0.9rem; }
.tool-file-h { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
@media (max-width: 900px) {
    .tool-desk { grid-template-columns: 1fr; }
}
