@font-face {
    font-family: "Schibsted Grotesk";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/schibsted-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Schibsted Grotesk";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/schibsted-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url("fonts/source-serif-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url("fonts/source-serif-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --hue: 214;
    --bg: oklch(0.965 0.012 var(--hue));
    --surface: oklch(0.992 0.006 var(--hue));
    --fg: oklch(0.24 0.032 var(--hue));
    --muted: oklch(0.48 0.028 var(--hue));
    --border: oklch(0.88 0.018 var(--hue));
    --soft: oklch(0.96 0.014 var(--hue));
    --accent: oklch(0.42 0.11 var(--hue));
    --accent-hover: oklch(0.36 0.11 var(--hue));
    --accent-ink: oklch(0.99 0.01 var(--hue));
    --accent-soft: oklch(0.94 0.03 var(--hue));
    --ok: oklch(0.42 0.09 155);
    --ok-bg: oklch(0.95 0.03 155);
    --err: oklch(0.46 0.15 25);
    --err-bg: oklch(0.96 0.03 25);
    --warn: oklch(0.5 0.12 62);
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --radius: 6px;
    --font: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
    --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light; }
body {
    font-family: var(--font);
    color: var(--fg);
    background:
        radial-gradient(1200px 420px at 8% -10%, oklch(0.93 0.03 214), transparent 60%),
        var(--bg);
    line-height: 1.45;
    font-size: 15px;
    font-feature-settings: "ss01" 1;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code {
    font-size: 0.86em;
    background: var(--soft);
    padding: 0.05em 0.4em;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.page-dashboard .wrap { width: min(1280px, calc(100% - 40px)); }

.ico { width: 1.15em; height: 1.15em; display: block; flex-shrink: 0; }
.nav-toggle { display: none; background: transparent; color: var(--fg); padding: 8px; }
.nav-toggle:hover { background: var(--soft); color: var(--fg); }

body.shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: #F3F4F6;
}
body.shell .sidebar {
    width: 248px;
    flex-shrink: 0;
    background: #161616;
    color: #E5E7EB;
    display: flex;
    flex-direction: column;
    z-index: 30;
}
.side-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 64px;
    padding: 0 18px;
    border-bottom: 1px solid #2A2A2A;
    color: #fff;
    text-decoration: none;
}
.side-brand .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #F97316;
    box-shadow: none;
    display: grid;
    place-items: center;
    color: #fff;
}
.side-brand .brand-mark .ico { width: 18px; height: 18px; }
.side-brand strong { display: block; font-size: 0.98rem; letter-spacing: -0.03em; }
.side-brand small { display: block; color: #9CA3AF; font-size: 0.72rem; }
.side-nav { padding: 16px 12px; display: grid; gap: 2px; flex: 1; align-content: start; }
.side-label {
    margin: 14px 10px 8px;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B7280;
}
.side-label:first-child { margin-top: 0; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #9CA3AF;
    text-decoration: none;
    font-weight: 500;
}
.nav-item:hover { background: #2A2A2A; color: #fff; text-decoration: none; }
.nav-item[aria-current="page"] { background: #2A2A2A; color: #fff; }
.nav-badge {
    margin-left: auto;
    font-style: normal;
    font-size: 0.65rem;
    font-weight: 700;
    background: #EF4444;
    color: #fff;
    padding: 1px 6px;
    border-radius: 999px;
}
.side-foot {
    padding: 12px;
    border-top: 1px solid #2A2A2A;
}
.side-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: #232323;
}
.side-user > div { min-width: 0; flex: 1; }
.side-user p { margin: 0; font-size: 0.82rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user small { color: #9CA3AF; }
.side-logout {
    width: auto;
    padding: 8px;
    background: transparent;
    color: #9CA3AF;
}
.side-logout:hover { background: #2A2A2A; color: #fff; }

.shell-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}
body.shell .top {
    flex-shrink: 0;
    background: #fff;
    backdrop-filter: none;
}
body.shell .top-inner {
    width: 100%;
    padding: 0 20px;
    min-height: 64px;
}
body.shell .crumb { margin: 0; }
body.shell main.wrap {
    flex: 1;
    overflow: auto;
    padding-bottom: 48px;
}
.top-search {
    position: relative;
    margin-left: auto;
    display: flex;
    align-items: center;
}
.top-search .ico {
    position: absolute;
    left: 10px;
    color: #9CA3AF;
    width: 16px;
    height: 16px;
    pointer-events: none;
}
.top-search input {
    width: 260px;
    padding: 7px 36px 7px 32px;
    background: #F9FAFB;
    border-radius: 8px;
}
.top-search kbd {
    position: absolute;
    right: 8px;
    font-size: 0.65rem;
    color: #9CA3AF;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 1px 5px;
    background: #fff;
}
.top-bell {
    position: relative;
    color: #6B7280;
    padding: 8px;
    border-radius: 999px;
}
.top-bell:hover { background: #F3F4F6; color: var(--fg); text-decoration: none; }
.top-bell i {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #EF4444;
    border: 2px solid #fff;
    border-radius: 50%;
}
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 0.4);
    z-index: 25;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #4B5563;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
}

.dash { padding: 28px 0 8px; }
.dash-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.page-dashboard h1 {
    font-family: var(--font);
    font-size: 1.55rem;
    font-weight: 700;
}
.dash-lede { margin: 6px 0 0; color: var(--muted); }
.dash-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dash-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.range-pills {
    display: flex;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
}
.range-pills a {
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6B7280;
    text-decoration: none;
}
.range-pills a:hover { background: #F9FAFB; text-decoration: none; }
.range-pills a.is-on { background: #111827; color: #fff; }

.card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.04);
}
.kpi-card { padding: 8px 8px 8px 20px; margin-bottom: 20px; }
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kpi {
    padding: 16px 20px 18px;
    border-right: 1px solid #F3F4F6;
    min-width: 0;
}
.kpi:last-child { border-right: 0; }
.kpi h3 { margin: 0; font-size: 0.82rem; font-weight: 650; color: #374151; }
.kpi p { margin: 8px 0 0; font-size: 0.75rem; color: var(--muted); }
.kpi-val {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 10px;
}
.kpi-val span:first-child {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.kpi-spark { height: 56px; margin: 8px 0 4px; }
.kpi-spark.sm { height: 40px; margin-top: 12px; }
.kpi-spark .spark { width: 100%; height: 100%; display: block; }

.trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    margin-bottom: 4px;
}
.trend .ico { width: 12px; height: 12px; }
.trend.is-up { color: #059669; background: #D1FAE5; }
.trend.is-down { color: #DC2626; background: #FEE2E2; }
.trend.is-flat { color: #6B7280; background: #F3F4F6; }

.dash-mid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr);
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch;
}
.chart-card, .donut-card, .table-card { padding: 22px; }
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}
.card-head h2, .donut-card h2 { margin: 0; font-size: 1rem; }
.ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #4B5563;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}
.ghost-btn:hover { background: #F9FAFB; text-decoration: none; color: var(--fg); }
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 12px 0 8px;
}
.legend b { color: #6B7280; font-weight: 500; margin-left: 4px; }
.swatch {
    display: inline-block;
    width: 6px;
    height: 12px;
    border-radius: 99px;
    margin-right: 6px;
    vertical-align: -1px;
}
.swatch.pos { background: #10B981; }
.swatch.neu { background: #3B82F6; }
.swatch.neg { background: #EF4444; }
.chart-frame { min-height: 250px; }
.chart-frame .bars { width: 100%; height: 280px; display: block; }
.chart-grid { stroke: #F3F4F6; stroke-dasharray: 4 4; }
.chart-axis { font-size: 11px; fill: #9CA3AF; font-family: var(--font); }
.chart-empty { color: var(--muted); padding: 48px 8px; text-align: center; }

.seg { margin-top: 12px; }
.seg > input { position: absolute; opacity: 0; pointer-events: none; }
.seg-bar {
    display: flex;
    background: #F3F4F6;
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 16px;
}
.seg-bar label {
    flex: 1;
    text-align: center;
    padding: 7px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6B7280;
    border-radius: 8px;
    cursor: pointer;
}
.seg:has(#topics-pain:checked) label[for="topics-pain"],
.seg:has(#topics-pos:checked) label[for="topics-pos"] {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}
.donut-pane { display: none; }
.seg:has(#topics-pain:checked) .donut-pane[data-pane="pain"],
.seg:has(#topics-pos:checked) .donut-pane[data-pane="pos"] { display: block; }
.donut { width: min(220px, 100%); height: auto; display: block; margin: 0 auto; }
.donut-n { font-size: 18px; font-weight: 700; fill: #111827; font-family: var(--font); }
.donut-s { font-size: 9px; fill: #6B7280; font-family: var(--font); }
.donut-legend {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4B5563;
}
.donut-legend i {
    display: inline-block;
    width: 6px;
    height: 12px;
    border-radius: 99px;
    margin-right: 6px;
    vertical-align: -1px;
    background: #9CA3AF;
}
.donut-legend .d0 { background: #2563EB; }
.donut-legend .d1 { background: #F59E0B; }
.donut-legend .d2 { background: #14B8A6; }
.donut-legend .d3 { background: #E5E7EB; }
.brief-mini {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #F3F4F6;
    text-decoration: none;
    color: var(--fg);
}
.brief-mini:hover { text-decoration: none; }
.brief-mini strong { font-size: 0.92rem; }
.brief-mini span:last-child { font-size: 0.8rem; color: var(--muted); }

.table-card { padding: 0; overflow: hidden; }
.table-card .card-head { padding: 22px 22px 12px; margin: 0; }
.table-card .table-wrap { border: 0; border-radius: 0; border-top: 1px solid #F3F4F6; }
.table-search {
    position: relative;
    display: flex;
    align-items: center;
}
.table-search .ico { position: absolute; left: 10px; color: #9CA3AF; width: 16px; height: 16px; }
.table-search input { padding-left: 32px; width: 240px; background: #F9FAFB; border-radius: 8px; }
.who {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fg);
    text-decoration: none;
}
.who:hover { text-decoration: none; color: var(--accent); }
.who b { display: block; font-size: 0.88rem; }
.who small { color: var(--muted); font-weight: 500; }
.clip { max-width: 280px; }
.clip a { color: #4B5563; text-decoration: none; }
.clip a:hover { color: var(--accent); text-decoration: underline; }
.table-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 22px;
    border-top: 1px solid #F3F4F6;
    font-size: 0.82rem;
    color: var(--muted);
}
.badge.tone-positive { background: #D1FAE5; color: #059669; }
.badge.tone-negative { background: #FEE2E2; color: #DC2626; }
.badge.tone-neutral { background: #F3F4F6; color: #6B7280; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; }
.badge .ico { width: 13px; height: 13px; }

.dash-head .kicker { margin-bottom: 4px; }

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in oklch, var(--surface) 92%, transparent);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    min-height: 58px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
    color: var(--fg);
    letter-spacing: -0.03em;
    text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--fg); }
.brand-mark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
    color: var(--muted);
    padding: 6px 11px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
}
.nav a:hover { color: var(--fg); background: var(--soft); text-decoration: none; }
.nav a[aria-current="page"] {
    color: var(--fg);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--border);
}
.nav-logout { margin: 0 0 0 6px; }
.nav-logout button {
    background: transparent;
    color: var(--muted);
    padding: 6px 11px;
    font-weight: 500;
}
.nav-logout button:hover { background: var(--soft); color: var(--fg); }

button, .btn {
    background: var(--accent);
    color: var(--accent-ink);
    border: 0;
    padding: 8px 14px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    border-radius: var(--radius);
}
a.btn { display: inline-block; text-decoration: none; }
a.btn.ghost { color: var(--accent); }
button:hover, .btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
a.btn.ghost:hover { background: var(--soft); color: var(--fg); text-decoration: none; }
button:active, .btn:active { transform: scale(0.98); }
button.danger { background: var(--err); }
button.ghost {
    background: transparent;
    color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--border);
}

h1, h2 { letter-spacing: -0.035em; margin: 0; }
h1 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.15;
}
h2 { font-size: 1.05rem; font-weight: 650; }

.muted { color: var(--muted); }
.flash { padding: 10px 12px; border: 1px solid var(--border); margin: 16px 0 0; border-radius: var(--radius); }
.flash.ok { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in oklch, var(--ok) 28%, var(--border)); }
.flash.err { background: var(--err-bg); color: var(--err); border-color: color-mix(in oklch, var(--err) 28%, var(--border)); }
.notice {
    background: var(--accent-soft);
    border: 1px solid color-mix(in oklch, var(--accent) 18%, var(--border));
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--fg);
}

.kicker {
    margin: 0 0 var(--space-xs);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-sm);
    align-items: end;
    margin: 0 0 var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
}
.filters label, .stack label, .status-form label {
    display: grid;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
input, select, textarea {
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    padding: 7px 9px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--fg);
    border-radius: 5px;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
    outline: 2px solid color-mix(in oklch, var(--accent) 55%, white);
    outline-offset: 2px;
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th {
    background: var(--soft);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in oklch, var(--accent-soft) 55%, var(--surface)); }
.table .time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .title-cell a { color: var(--fg); font-weight: 500; text-decoration: none; }
.table .title-cell a:hover { color: var(--accent); text-decoration: underline; }
.table .empty { color: var(--muted); padding: 28px 12px; }

.plat {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--soft);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fg);
}
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 650;
    background: var(--soft);
    color: var(--muted);
}
.urgency-medium { background: oklch(0.95 0.04 75); color: var(--warn); }
.urgency-high { background: oklch(0.95 0.05 45); color: oklch(0.45 0.14 35); }
.urgency-critical { background: var(--err); color: oklch(0.99 0.02 25); }

.panel, .brief-card, .login-box {
    border: 1px solid var(--border);
    padding: var(--space-lg);
    background: var(--surface);
    border-radius: calc(var(--radius) + 2px);
}
.brief-preview, .brief-full, .payload pre {
    white-space: pre-wrap;
    font-family: var(--serif);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}
.brief-preview { max-height: 9.5rem; overflow: hidden; }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-lg); }
.stack { display: grid; gap: var(--space-sm); max-width: 360px; }
.status-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: end;
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
}
.status-form .check { color: var(--fg); text-transform: none; letter-spacing: 0; font-size: 0.92rem; font-weight: 500; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.prose { white-space: pre-wrap; }
.login-box { max-width: 420px; margin: 14vh auto; }
.login-box h1 { margin-bottom: 8px; }
.meta, .crumb { color: var(--muted); font-size: 0.92rem; }
.pager { display: flex; gap: 12px; align-items: center; }
.payload { margin: 20px 0; border: 1px solid var(--border); padding: 8px 10px; border-radius: var(--radius); }
.detail, .page-mentions section, .page-briefs section, .page-settings section { padding: var(--space-xl) 0 var(--space-2xl); }
.detail h1 { margin: 4px 0 8px; }

.page-login { background: var(--bg); }
.page-login .top { background: transparent; border-bottom: 0; }

@media (max-width: 1100px) {
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .kpi:nth-child(2) { border-right: 0; }
    .dash-mid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
    .split, .kv { grid-template-columns: 1fr; }
    h1 { font-size: 1.55rem; }
    .table th:nth-child(7),
    .table td:nth-child(7),
    .table th:nth-child(8),
    .table td:nth-child(8) { display: none; }
    .top-search input { width: 180px; }
    .nav-toggle { display: grid; place-items: center; }
    body.shell .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        transform: translateX(-105%);
        transition: transform 0.2s var(--ease);
    }
    body.nav-open .sidebar { transform: none; }
    body.nav-open .nav-backdrop { display: block; }
    .crumb { display: none; }
}
@media (max-width: 640px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .kpi { border-right: 0; border-bottom: 1px solid #F3F4F6; }
    .top-search { display: none; }
    .table-search input { width: 160px; }
}

.dash-table .badge { display: inline-flex; align-items: center; gap: 4px; }

@media (prefers-reduced-motion: reduce) {
    button:active, .btn:active { transform: none; }
}
