:root {
    --bg: #f7f5f0;
    --bg-alt: #efebe3;
    --panel: #fffcf7;
    --card: #fffcf7;
    --border: #ddd6c8;
    --text: #1b2433;
    --muted: #4a5565;
    --brand: #0f3d7a;
    --brand-2: #c45c2a;
    --crit: #c45c2a;
    --radius: 10px;
    --maxw: 1120px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }

p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

.grad {
    background: linear-gradient(100deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: .9rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 245, 240, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; }
.brand-mark { color: var(--brand); display: inline-flex; }
.brand-name { font-size: 1.15rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.portal-nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.portal-shell {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}
.portal-rail {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 22px 16px;
    background:
        linear-gradient(180deg, rgba(15, 61, 122, .12) 0%, rgba(196, 92, 42, .06) 38%, transparent 70%),
        var(--bg-alt);
    border-right: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
    position: sticky;
    top: 0;
    height: 100vh;
}
.portal-rail-brand { align-self: flex-start; }
.portal-rail-brand .brand-name {
    background: linear-gradient(100deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.portal-rail-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.portal-rail-nav a {
    --nav-accent: var(--brand);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 10px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    color: var(--muted);
    font-size: .95rem;
    font-weight: 650;
    transition: color .15s, background .15s, border-color .15s;
}
.portal-rail-nav a::before {
    content: "";
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--nav-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nav-accent) 18%, transparent);
}
.portal-rail-nav a[data-nav="dashboard"] { --nav-accent: #0f3d7a; }
.portal-rail-nav a[data-nav="incidents"] { --nav-accent: #c45c2a; }
.portal-rail-nav a[data-nav="reports"] { --nav-accent: #1f7a5c; }
.portal-rail-nav a[data-nav="customers"] { --nav-accent: #6b4ea0; }
.portal-rail-nav a[data-nav="security"] { --nav-accent: #9a7420; }
.portal-rail-nav a:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--nav-accent) 10%, var(--panel));
}
.portal-rail-nav a.is-active {
    color: var(--nav-accent);
    background: color-mix(in srgb, var(--nav-accent) 14%, var(--panel));
    border-left-color: var(--nav-accent);
}
.portal-rail-foot { margin-top: auto; }
.portal-rail-user {
    margin: 0 0 8px;
    padding: 0 12px;
    font-size: .82rem;
    color: var(--muted);
    word-break: break-all;
}
.portal-rail-signout {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: .9rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}
.portal-rail-signout:hover {
    color: var(--brand-2);
    background: color-mix(in srgb, var(--brand-2) 10%, var(--panel));
}
.portal-stage { flex: 1; min-width: 0; }
.security-page { max-width: 720px; }
.security-lead { max-width: 40rem; margin-bottom: 1.75rem; }
.security-panel { margin-bottom: 20px; }
.security-panel h2 { margin-bottom: .4rem; }
.security-form { max-width: 28rem; margin-top: 1rem; }
.portal-mobilebar { display: none; }
.portal-nav-scrim { display: none; }

@media (max-width: 860px) {
    .portal-app .portal-mobilebar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 40;
        height: 56px;
        padding: 0 16px;
        background: rgba(247, 245, 240, 0.94);
        border-bottom: 1px solid var(--border);
    }
    .portal-app .portal-rail {
        position: fixed;
        z-index: 60;
        left: 0;
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .18s ease;
    }
    .portal-nav-toggle:checked ~ .portal-shell .portal-rail {
        transform: none;
    }
    .portal-nav-toggle:checked ~ .portal-shell .portal-nav-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(27, 36, 51, .28);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 650;
    font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary {
    background: var(--brand-2);
    color: #fff;
    box-shadow: none;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger {
    background: transparent;
    color: var(--crit);
    border-color: var(--border);
}
.btn-danger:hover { border-color: var(--crit); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 92px 0 72px; }
.hero-glow {
    position: absolute;
    top: -180px; left: 50%;
    width: 900px; height: 640px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(91, 140, 255, .28), transparent 70%),
                radial-gradient(closest-side, rgba(56, 224, 196, .22), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 720px; margin: 1.2rem auto 2rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 28px;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.stat { min-width: 0; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: .85rem; color: var(--muted); }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 48px; }
.section-head .eyebrow { display: block; }
.section-sub { font-size: 1.05rem; margin-left: auto; margin-right: auto; }

.example-wrap { max-width: 1280px; }
.example-incidents {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    width: 100%;
    margin: 0;
}
.example-incident {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.example-kicker {
    margin: 0 0 8px;
    text-align: center;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.example-incident .marketing-incident {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 18px;
}
.example-incident .marketing-incident .alert-card-head {
    gap: 6px 10px;
    margin-bottom: 8px;
}
.example-incident .marketing-incident .alert-title {
    font-size: .95rem;
    margin-bottom: 8px;
    line-height: 1.3;
}
.example-incident .marketing-incident .alert-meta,
.example-incident .marketing-incident .sev,
.example-incident .marketing-incident .status-pill {
    font-size: .68rem;
}
.example-incident .marketing-incident .alert-body {
    flex: 1;
    max-height: none;
    overflow: visible;
    font-size: .78rem;
    line-height: 1.45;
    margin-bottom: 10px;
}
.example-incident .marketing-incident .alert-rec {
    margin-top: auto;
    padding: 10px 12px;
    font-size: .76rem;
    line-height: 1.4;
}
.example-incident .marketing-incident .alert-facts {
    margin-top: 12px;
    gap: 8px 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.example-incident .marketing-incident .alert-facts dd {
    font-size: .75rem;
}
.about-copy { max-width: 42rem; margin: 0 auto; text-align: center; }
.about-copy .check-list { text-align: left; display: inline-block; }
.results-list {
    max-width: 52rem;
    margin: 0 auto;
}
.result {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: 28px;
    align-items: start;
    padding: 28px 0;
    border-top: 1px solid var(--border);
}
.result:first-child { border-top: none; padding-top: 0; }
.result-metric {
    margin: 0;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--brand);
    line-height: 1.3;
}
.result h3 {
    margin: 6px 0 10px;
    font-size: 1.15rem;
    line-height: 1.35;
}
.mssp-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 48px;
    align-items: start;
}
.mssp-aside h3 { margin: 8px 0 12px; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.card-title-row h3 { margin: 0; }
.pill {
    flex-shrink: 0;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
    border: 1px solid rgba(196, 92, 42, 0.35);
    border-radius: 999px;
    padding: 4px 8px;
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.service-card:hover {
    transform: none;
    border-color: var(--brand);
    box-shadow: none;
}
.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(15, 61, 122, 0.08);
    color: var(--brand);
    margin-bottom: 18px;
    line-height: 0;
    font-size: 0;
}
.card-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

/* Steps */
.steps .step { text-align: left; }
.step-number {
    font-size: 2.4rem; font-weight: 800;
    background: linear-gradient(100deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 8px;
}

/* About */
.about-grid, .contact-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: start;
}
.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--muted); }
.check-list li::before {
    content: "";
    position: absolute; left: 0; top: 7px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--brand-2);
    box-shadow: none;
}
.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 1px 0 rgba(27, 36, 51, 0.04);
}
.panel-title {
    font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
    color: var(--muted); margin-bottom: 14px;
}
.code {
    margin: 0;
    font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
    font-size: .9rem;
    line-height: 1.9;
    white-space: pre-wrap;
    color: var(--text);
}
.c-key { color: var(--brand-2); }
.c-str { color: var(--brand); }
.c-crit { color: var(--crit); font-weight: 700; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 61, 122, 0.12);
}
.field textarea { resize: vertical; }

/* Messages */
.messages { margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.alert { padding: 13px 18px; border-radius: 10px; border: 1px solid var(--border); font-size: .95rem; }
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(27, 36, 51, 0.45);
}
.modal {
    width: min(420px, 100%);
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px 22px;
}
.modal h2 { font-size: 1.35rem; margin: 0 0 12px; }
.modal p { color: var(--muted); margin: 0 0 20px; }
.alert-success {
    background: #eef6ee;
    border-color: #b7d4b7;
    color: #1f6b3a;
}
.alert-error {
    background: #f8ece6;
    border-color: #e8c4b0;
    color: #8a3b18;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); margin-bottom: 8px; font-size: .92rem; }
.footer-col a:hover { color: var(--text); }
.footer-brand .muted { margin-top: 12px; max-width: 260px; }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
    font-size: .85rem;
}

/* Portal auth */
.portal-body { min-height: 100vh; }
.auth-shell {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}
.auth-glow { display: none; }
.auth-card {
    position: relative;
    width: 100%;
    max-width: 420px;
}
.auth-card h1 { font-size: 1.85rem; }
.field-error { margin: 0; font-size: .82rem; color: var(--crit); }

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
}
.alert-page { max-width: 760px; }
.back-link {
    display: inline-block;
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 18px;
}
.back-link:hover { color: var(--brand); }
.incident-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.domain-box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px 18px;
    margin-top: 28px;
    box-shadow: 0 1px 0 rgba(27, 36, 51, 0.04);
}
.domain-box-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 16px;
}
.domain-box-head h2 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}
.domain-box-customer {
    margin: 0 0 4px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
}
.domain-box-count { margin: 0; }
.incident-row {
    display: grid;
    grid-template-columns: 6.5rem 7.5rem minmax(12rem, 1fr) minmax(11rem, 16rem);
    gap: 12px 16px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}
.incident-row-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .02em;
}
.incident-row .crawl-age {
    font-weight: 600;
    white-space: normal;
    line-height: 1.35;
}
.incident-row-head {
    background: transparent;
    border: none;
    padding: 0 16px 4px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}
.filter-bar label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted);
}
.filter-bar select,
.filter-search input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--text);
    font-family: inherit;
}
.filter-search-label { margin-left: 4px; }
.filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 18rem;
    min-width: 16rem;
}
.filter-search input {
    flex: 1;
    min-width: 0;
}
.stats { margin-top: 28px; }
.dashboard-queue-cta { margin-top: 28px; }
.stat-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.stat-kpi, .stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 0 rgba(27, 36, 51, 0.04);
}
.stat-kpi { padding: 16px 18px; }
.stat-kpi-value {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.stat-kpi-label {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .82rem;
}
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}
.stat-card { padding: 18px 18px 16px; }
.stat-card h3 {
    margin: 0;
    font-size: 1.02rem;
}
.stat-card-hint { margin: 4px 0 14px; font-size: .82rem; }
.stat-card-wide { grid-column: 1 / -1; }
.stat-bars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stat-bars li {
    display: grid;
    grid-template-columns: minmax(7rem, 11rem) 1fr 2.4rem;
    gap: 8px 10px;
    align-items: center;
}
.stat-bar-label {
    font-size: .8rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stat-bar-track {
    display: block;
    height: 10px;
    background: var(--bg-alt);
    border-radius: 999px;
    overflow: hidden;
}
.stat-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--brand);
}
.stat-bar-count {
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.bar-critical { background: #b42318; }
.bar-high { background: #b45309; }
.bar-medium { background: var(--brand); }
.bar-low, .bar-info, .bar-unknown { background: #8a93a3; }
.bar-fresh { background: #15803d; }
.bar-aging { background: #b45309; }
.bar-stale { background: #b42318; }
.bar-brand { background: var(--brand); }
.stat-columns {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
    align-items: end;
    height: 160px;
}
.stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-width: 0;
}
.stat-col-count {
    font-size: .68rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    min-height: 1em;
}
.stat-col-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    min-height: 0;
}
.stat-col-fill {
    display: block;
    width: 100%;
    min-height: 0;
    background: var(--brand);
    border-radius: 4px 4px 0 0;
}
.stat-col-label {
    font-size: .68rem;
    color: var(--muted);
    margin-top: 6px;
}
@media (max-width: 900px) {
    .stat-kpis, .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-card-wide { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .stat-kpis, .stat-grid { grid-template-columns: 1fr; }
    .stat-bars li { grid-template-columns: 1fr auto; }
    .stat-bar-track { grid-column: 1 / -1; }
}
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 20px;
}
.pager-top {
    margin-top: 12px;
    margin-bottom: 12px;
}
.pager-status { margin: 0; }
.pager-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pager-page {
    font-size: .9rem;
    color: var(--muted);
    min-width: 7.5rem;
    text-align: center;
}
.pager-disabled {
    opacity: .4;
    pointer-events: none;
}
.incident-row-archive {
    grid-template-columns: 6.5rem 7.5rem 8.5rem minmax(12rem, 1fr) minmax(11rem, 16rem);
}
.queue-heading {
    margin-top: 28px;
    font-size: 1.15rem;
}
.archive-section {
    margin-top: 40px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.status-open {
    background: #ecfdf3;
    color: #067647;
}
.status-closed {
    background: var(--bg-alt);
    color: var(--muted);
}
.status-false_positive {
    background: #fef6ee;
    color: #b54708;
}
.incident-status-panel {
    margin-top: 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
}
.incident-status-panel h2 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.incident-status-form label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.incident-status-form textarea {
    width: 100%;
    font-family: inherit;
    font-size: .95rem;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    resize: vertical;
}
.incident-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
@media (max-width: 720px) {
    .incident-row-head { display: none; }
    .incident-row {
        grid-template-columns: auto 1fr;
    }
    .incident-row .alert-meta { grid-column: 2; }
}
.alert-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left-width: 4px;
    padding: 20px 22px 22px;
}
.alert-card-critical { border-left-color: var(--crit); }
.alert-card-high { border-left-color: #b45309; }
.alert-card-medium { border-left-color: var(--brand-2); }
.alert-card-low,
.alert-card-info { border-left-color: var(--border); }
.alert-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 12px;
}
.alert-meta { font-size: .82rem; color: var(--muted); }
.incident-row .crawl-age-fresh { color: #15803d; }
.incident-row .crawl-age-aging { color: #b45309; }
.incident-row .crawl-age-stale { color: #b42318; }
.alert-title {
    font-size: 1.35rem;
    font-weight: 650;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.alert-body {
    margin: 0 0 12px;
    color: var(--text);
    font-size: .95rem;
    white-space: pre-wrap;
}
.alert-rec {
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: .92rem;
    white-space: pre-wrap;
}
.alert-rec-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 4px;
}
.alert-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px 20px;
    margin: 16px 0 0;
}
.alert-fact-wide { grid-column: 1 / -1; }
.alert-facts div { margin: 0; }
.alert-facts dt {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.alert-facts dd {
    margin: 0;
    font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
    font-size: .88rem;
    word-break: break-all;
}
.sev {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
}
.sev-critical { color: #b42318; border-color: rgba(180, 35, 24, .35); background: rgba(180, 35, 24, .08); }
.sev-high { color: #b45309; border-color: rgba(180, 83, 9, .35); background: rgba(180, 83, 9, .08); }
.sev-medium { color: var(--brand); border-color: rgba(15, 61, 122, .28); background: rgba(15, 61, 122, .06); }
.sev-low, .sev-info { color: var(--muted); }

/* Responsive */
@media (max-width: 860px) {
    .example-incidents { grid-template-columns: 1fr; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .about-grid, .contact-grid, .hero-split, .mssp-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-stats { grid-template-columns: 1fr 1fr; text-align: center; }
    .result { grid-template-columns: 1fr; gap: 8px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .nav-links { display: none; }
}

.hero-glow { display: none; }

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}
.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.form-narrow { max-width: 640px; }
.field-help { margin: 0; font-size: .82rem; color: var(--muted); }
.field-check .check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 20px 0 28px;
}
.meta-grid dt { font-size: .78rem; font-weight: 700; color: var(--muted); }
.meta-grid dd { margin: 0; }
.customer-list, .artifact-list, .job-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 28px; }
.customer-row, .artifact-row, .job-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}
.customer-row, .artifact-row { align-items: center; }
.customer-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    align-items: center;
}
.customer-usage {
    font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
    font-size: .82rem;
    color: var(--text);
    white-space: nowrap;
}
.artifact-row > a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin: 28px 0 0;
}
.section-head h2 { margin: 0 0 6px; }
.section-head .muted { margin: 0; }
.job-row { flex-direction: column; align-items: stretch; padding: 0; }
.job-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}
.job-summary::-webkit-details-marker { display: none; }
.job-row[open] .job-summary { border-bottom: 1px solid var(--border); }
.job-row .job-log, .job-row .muted { margin: 0 16px 14px; }
.job-status {
    margin-left: 8px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.job-status-running, .job-status-queued { color: var(--brand); }
.job-status-succeeded { color: #17663a; }
.job-status-failed { color: #b42318; }
.job-log, .artifact-body {
    margin: 0;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: auto;
    max-height: 280px;
    font-size: .8rem;
    white-space: pre-wrap;
    word-break: break-word;
}
.artifact-body { max-height: 70vh; }
.job-log-error { color: #b42318; }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); font-weight: 600; }
.back-link:hover { color: var(--brand); }
.report-kind-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.report-kind-card {
    display: block;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px 24px;
}
.report-kind-card:hover { border-color: var(--brand); }
.report-kind-card h2 { font-size: 1.25rem; margin-bottom: 8px; }
.report-week-row {
    grid-template-columns: minmax(8rem, 1.1fr) minmax(12rem, 1.4fr) minmax(8rem, 1fr);
}
.briefing-page {
    padding-top: 28px;
    padding-bottom: 80px;
    font-family: "Source Sans 3", var(--font);
}
.briefing-sheet {
    max-width: 880px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(27, 36, 51, 0.08);
}
.briefing-masthead {
    background: var(--brand-2);
    color: #f6efe4;
    padding: 32px 40px 34px;
}
.briefing-masthead .eyebrow {
    color: rgba(255, 252, 247, 0.82);
    margin: 0;
}
.briefing-masthead-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.briefing-week-chip {
    margin: 0;
    padding: 6px 10px;
    border: 1px solid rgba(246, 239, 228, 0.28);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.briefing-page h1 {
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(2rem, 4.4vw, 2.9rem);
    font-weight: 560;
    letter-spacing: -0.03em;
    color: #fffcf7;
    margin: 0 0 10px;
}
.briefing-meta {
    margin: 0;
    color: rgba(246, 239, 228, 0.78);
    font-size: .95rem;
}
.briefing-filter { margin: 18px 0 0; }
.briefing-filter label { color: rgba(246, 239, 228, 0.72); }
.briefing-filter select {
    background: rgba(255, 252, 247, 0.12);
    color: #fffcf7;
    border-color: rgba(246, 239, 228, 0.28);
}
.briefing-body { padding: 8px 40px 44px; }
.briefing-section {
    margin-top: 8px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.briefing-section:first-child { border-top: 0; }
.briefing-section h2 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 14px;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.45rem;
    font-weight: 560;
    letter-spacing: -0.03em;
    text-transform: none;
    color: var(--text);
}
.briefing-step {
    font-family: "Source Sans 3", var(--font);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--brand-2);
}
.briefing-kicker {
    margin: -4px 0 14px;
    font-size: .9rem;
}
.briefing-summary {
    margin: 0;
    padding: 18px 20px 18px 22px;
    border-left: 3px solid var(--brand-2);
    background: var(--bg-alt);
    line-height: 1.7;
    font-size: 1.08rem;
    font-family: Fraunces, Georgia, serif;
    font-weight: 560;
    font-optical-sizing: auto;
}
.briefing-note { margin: 0 0 16px; font-size: .88rem; white-space: pre-wrap; }
.briefing-feature-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.briefing-feature-metric {
    padding: 18px 18px 16px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
}
.briefing-feature-label {
    margin: 0;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.briefing-feature-value {
    margin: 8px 0 4px;
    font-family: Fraunces, Georgia, serif;
    font-size: 2.55rem;
    font-weight: 560;
    letter-spacing: -0.04em;
    line-height: 1;
}
.briefing-feature-value.is-text {
    font-size: 1.55rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.briefing-prose {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.7;
    font-size: 1.05rem;
}
.briefing-type {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-2);
}
.briefing-ioc-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .84rem;
    word-break: break-word;
}
.briefing-ioc-table tbody th,
.briefing-ioc-table td,
.briefing-ioc-table thead th:nth-child(n+2),
.briefing-index-table td,
.briefing-index-table thead th:nth-child(n+2) {
    text-align: left;
}
.briefing-index-table tbody th { width: 42%; }
.briefing-index-table a {
    color: var(--brand-2);
    font-weight: 700;
}
.briefing-index-table a:hover { color: var(--text); }
.briefing-index-table tbody tr:hover { background: var(--bg); }
.briefing-admin-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}
.ti-pack-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}
.ti-pack-actions form { margin: 0; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.briefing-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 4px;
}
.briefing-chart-card {
    padding: 18px 18px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
}
.briefing-charts h3 { margin: 0; font-size: 1rem; }
.briefing-chart-wide { grid-column: 1 / -1; }
.briefing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    font-variant-numeric: tabular-nums;
}
.briefing-table th,
.briefing-table td {
    text-align: left;
    padding: 12px 8px 12px 0;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.briefing-table tbody tr:last-child th,
.briefing-table tbody tr:last-child td { border-bottom: 0; }
.briefing-table thead th {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 0;
}
.briefing-table tbody th {
    font-weight: 650;
    padding-right: 16px;
    width: 38%;
}
.briefing-table td:nth-child(n+2),
.briefing-table thead th:nth-child(n+2) {
    text-align: right;
}
.briefing-pct { color: var(--muted); font-weight: 500; }
.briefing-sla {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.briefing-sla li {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-height: 118px;
    padding: 18px 18px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
}
.briefing-sla span {
    font-size: .86rem;
    color: var(--muted);
    line-height: 1.35;
}
.briefing-sla strong {
    font-family: Fraunces, Georgia, serif;
    font-size: 2.1rem;
    font-weight: 560;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}
.briefing-sla .is-alert {
    border-color: rgba(180, 35, 24, .28);
    background: #f8ece8;
}
.briefing-sla .is-warn {
    border-color: rgba(180, 83, 9, .28);
    background: #f6efe4;
}
.briefing-actions {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-reset: action;
}
.briefing-actions li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    column-gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    counter-increment: action;
}
.briefing-actions li::before {
    content: counter(action, decimal-leading-zero);
    font-family: Fraunces, Georgia, serif;
    font-size: 1.05rem;
    font-weight: 560;
    color: var(--brand-2);
    line-height: 1.3;
}
.briefing-actions .action-title,
.briefing-actions .muted {
    grid-column: 2;
}
.action-title {
    margin: 0 0 4px;
    font-weight: 700;
}
.briefing-actions .muted { margin: 0; font-size: .92rem; }
.briefing-cta-row { margin: 20px 0 0; }
.briefing-section-actions .btn-primary {
    min-width: 12rem;
}
.ti-articles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ti-article {
    display: grid;
    grid-template-columns: 2.4rem 1fr;
    column-gap: 14px;
    padding: 18px 20px 18px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
}
.ti-article-index {
    margin: 2px 0 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.05rem;
    font-weight: 560;
    color: var(--brand-2);
    letter-spacing: -0.03em;
}
.ti-article-body h3 {
    margin: 0 0 8px;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.22rem;
    font-weight: 560;
    letter-spacing: -0.03em;
    text-transform: none;
}
.ti-article-body p {
    margin: 0;
    line-height: 1.65;
    font-size: 1.02rem;
}
.ti-article-source {
    margin-top: 12px !important;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .82rem !important;
    letter-spacing: .02em;
}
.ti-actors {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ti-actors li {
    padding: 16px 18px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    min-height: 8.5rem;
}
.ti-actors h3 {
    margin: 0 0 8px;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.12rem;
    font-weight: 560;
    letter-spacing: -0.03em;
    text-transform: none;
    line-height: 1.25;
}
.ti-actors p {
    margin: 0;
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.5;
}
.ti-ioc-group { margin: 8px 0 22px; }
.ti-ioc-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 6px;
}
.ti-ioc-group h3 {
    margin: 0;
    font-size: .78rem;
    text-transform: none;
}
.ti-ioc-count {
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    font-size: .95rem;
}
.ti-ioc-count span {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.ti-ioc-group .briefing-table tbody th {
    width: 46%;
    font-weight: 500;
}
.trend-up { color: #b45309; font-weight: 650; }
.trend-down { color: #17663a; font-weight: 650; }
.trend-flat { color: var(--muted); font-weight: 650; }
@media (max-width: 720px) {
    .briefing-masthead,
    .briefing-body { padding-left: 22px; padding-right: 22px; }
    .briefing-feature-metrics,
    .briefing-charts,
    .briefing-sla,
    .ti-actors { grid-template-columns: 1fr; }
    .report-kind-grid { grid-template-columns: 1fr; }
}

