/* =============================================================================================
   SPAM API admin — design system
   ---------------------------------------------------------------------------------------------
   Single stylesheet for the dashboard. Replaces the purchased template's styles.css /
   default-css.css / responsive.css / typography.css / smt.css.

   Load order matters: bootstrap5.min.css first, then this file.

   Palette is SMT's brand:
     dark navy   #0F172A / #1E293B   (sidebar, headings, heavy contrast)
     action blue #007BFF             (primary buttons, links, focus)
     neutral     #F8FAFC / #FFFFFF   (page and surface backgrounds)
     text        #111827 / #333333   (body copy)

   Every colour is a token. Rebranding = edit the :root block, nothing else.
   ============================================================================================= */

/* ---------------------------------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------------------------------- */
:root {
    /* brand */
    --navy-900: #0F172A;
    --navy-800: #1E293B;
    --navy-700: #334155;
    --accent: #007BFF;
    --accent-hover: #0069D9;
    --accent-soft: rgba(0, 123, 255, .10);

    /* surfaces */
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-2: #F1F5F9;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;

    /* text */
    --text: #111827;
    --text-muted: #64748B;
    --text-inverse: #F8FAFC;

    /* semantic — reserved strictly for spam/clean meaning, never decoration */
    --ok: #16A34A;
    --ok-soft: rgba(22, 163, 74, .10);
    --danger: #DC2626;
    --danger-soft: rgba(220, 38, 38, .10);
    --warn: #D97706;
    --warn-soft: rgba(217, 119, 6, .12);
    --info: #0EA5E9;
    --info-soft: rgba(14, 165, 233, .12);

    /* sidebar */
    --sidebar-w: 248px;
    --sidebar-w-collapsed: 72px;
    --sidebar-bg: var(--navy-900);
    --sidebar-item: #94A3B8;
    --sidebar-item-hover: #FFFFFF;
    --sidebar-active-bg: rgba(255, 255, 255, .07);

    /* shape + depth */
    --radius: 10px;
    --radius-sm: 7px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-md: 0 1px 3px rgba(15, 23, 42, .07), 0 8px 24px -8px rgba(15, 23, 42, .12);

    /* type */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --step-0: .875rem;
    --step-1: 1rem;
    --step-2: 1.25rem;
    --step-3: 1.75rem;
    --step-4: 2.25rem;

    --header-h: 60px;
}

[data-bs-theme="dark"] {
    --bg: #0B1220;
    --surface: #111A2B;
    --surface-2: #16213A;
    --border: #223049;
    --border-strong: #2E3F5C;

    --text: #E5E7EB;
    --text-muted: #94A3B8;

    --accent: #3B8CFF;
    --accent-hover: #5A9EFF;
    --accent-soft: rgba(59, 140, 255, .14);

    --sidebar-bg: #080E1A;
    --sidebar-active-bg: rgba(255, 255, 255, .06);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, .5), 0 8px 24px -8px rgba(0, 0, 0, .6);
}

/* Hand Bootstrap our tokens so its own components inherit the theme. */
:root,
[data-bs-theme="dark"] {
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-body-font-family: var(--font-sans);
    --bs-body-font-size: var(--step-0);
    --bs-border-color: var(--border);
    --bs-primary: var(--accent);
    --bs-link-color: var(--accent);
    --bs-link-color-rgb: 0, 123, 255;
    --bs-link-hover-color: var(--accent-hover);
    --bs-secondary-color: var(--text-muted);
    --bs-emphasis-color: var(--text);
}

/* ---------------------------------------------------------------------------------------------
   2. Base
   --------------------------------------------------------------------------------------------- */
* { box-sizing: border-box; }

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

h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: 600; letter-spacing: -.01em; }
h5 { font-size: var(--step-1); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

code, .mono { font-family: var(--font-mono); font-size: .8125rem; }

hr { border-color: var(--border); opacity: 1; }

::selection { background: var(--accent-soft); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.text-muted { color: var(--text-muted) !important; }

/* ---------------------------------------------------------------------------------------------
   3. Shell — CSS Grid, replacing the template's float + fixed-offset scheme
   --------------------------------------------------------------------------------------------- */
.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns .18s ease;
}
.app-shell.is-collapsed { grid-template-columns: var(--sidebar-w-collapsed) minmax(0, 1fr); }

.app-main {
    display: flex;
    flex-direction: column;
    min-width: 0;                    /* lets wide tables scroll instead of stretching the grid */
    background: var(--bg);
}

.app-content { flex: 1 1 auto; padding: 24px 28px 32px; }

@media (max-width: 991.98px) {
    .app-shell,
    .app-shell.is-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
    .app-sidebar { position: fixed; z-index: 1050; transform: translateX(-100%); }
    .app-shell.is-open .app-sidebar { transform: translateX(0); }
    .app-content { padding: 16px; }
}

/* ---------------------------------------------------------------------------------------------
   4. Sidebar
   --------------------------------------------------------------------------------------------- */
.app-sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-item);
    display: flex;
    flex-direction: column;
    width: var(--sidebar-w);
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
    transition: width .18s ease;
}
.is-collapsed .app-sidebar { width: var(--sidebar-w-collapsed); }

.app-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    flex: 0 0 auto;
    overflow: hidden;
    text-decoration: none;
}
.app-brand:hover { text-decoration: none; }

/* Expanded: full lockup. Collapsed: the mark alone. */
.app-brand .brand-full { display: block; width: 158px; height: auto; }
.app-brand .brand-mark { display: none; width: 30px; height: auto; }

.app-brand-sub {
    display: block;
    color: var(--sidebar-item); font-size: .625rem; letter-spacing: .11em;
    text-transform: uppercase; white-space: nowrap; line-height: 1.3; font-weight: 600;
}

.is-collapsed .app-brand { align-items: center; padding-left: 0; padding-right: 0; }
.is-collapsed .app-brand .brand-full { display: none; }
.is-collapsed .app-brand .brand-mark { display: block; }
.is-collapsed .app-brand-sub { display: none; }

.app-nav { padding: 12px 10px; overflow-y: auto; flex: 1 1 auto; }
.app-nav ul { list-style: none; margin: 0; padding: 0; }
.app-nav li + li { margin-top: 2px; }

.app-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--sidebar-item);
    font-weight: 500;
    white-space: nowrap;
    transition: background .12s ease, color .12s ease;
}
.app-nav a:hover { background: var(--sidebar-active-bg); color: var(--sidebar-item-hover); text-decoration: none; }

/* The template had no active state at all — this is the main navigational fix. */
.app-nav a.is-active { background: var(--sidebar-active-bg); color: #fff; }
.app-nav a.is-active::before {
    content: ""; position: absolute; left: 0; width: 3px; height: 24px;
    background: var(--accent); border-radius: 0 3px 3px 0;
}
.app-nav a { position: relative; }

.app-nav .nav-icon { flex: 0 0 20px; width: 20px; height: 20px; stroke-width: 1.75; }
.is-collapsed .app-nav .nav-label { display: none; }
.is-collapsed .app-nav a { justify-content: center; padding-left: 0; padding-right: 0; }

.app-nav-sep {
    margin: 12px 12px; height: 1px; background: rgba(255, 255, 255, .07);
}

/* ---------------------------------------------------------------------------------------------
   5. Top bar
   --------------------------------------------------------------------------------------------- */
.app-header {
    height: var(--header-h);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    background: transparent; color: var(--text-muted); cursor: pointer;
    transition: background .12s ease, color .12s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

.app-header .spacer { flex: 1 1 auto; }

/* Theme toggle shows the icon for the theme you'd switch TO. */
.icon-moon { display: none; }
[data-bs-theme="dark"] .icon-sun { display: none; }
[data-bs-theme="dark"] .icon-moon { display: block; }

.dropdown-menu {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: 6px;
    font-size: .8125rem;
}
.dropdown-item { border-radius: var(--radius-sm); padding: 7px 10px; color: var(--text); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--surface-2); color: var(--text); }
.dropdown-divider { border-color: var(--border); margin: 5px 0; }
.app-user.dropdown-toggle::after { color: var(--text-muted); }

.app-user { display: flex; align-items: center; gap: 9px; }
.app-user .avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: .75rem; flex: 0 0 auto;
}
.app-user .who { font-weight: 500; color: var(--text); font-size: .8125rem; }
@media (max-width: 575.98px) { .app-user .who { display: none; } }

/* ---------------------------------------------------------------------------------------------
   6. Page heading + breadcrumb
   --------------------------------------------------------------------------------------------- */
.page-head {
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
    padding: 22px 28px 0;
}
.page-head h1 { margin: 0; font-size: var(--step-3); font-weight: 650; letter-spacing: -.02em; }
.breadcrumbs { display: flex; gap: 6px; align-items: center; margin: 0; padding: 0; list-style: none;
               color: var(--text-muted); font-size: .8125rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
@media (max-width: 991.98px) { .page-head { padding: 16px 16px 0; } }

/* ---------------------------------------------------------------------------------------------
   7. Cards
   --------------------------------------------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card-body { padding: 20px; }
.card-title { font-size: var(--step-1); font-weight: 600; margin-bottom: 4px; }
.card-header {
    background: transparent; border-bottom: 1px solid var(--border);
    padding: 14px 20px; font-weight: 600;
}

/* KPI tile */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-label {
    font-size: .75rem; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: var(--text-muted);
}
.stat-value { font-size: var(--step-4); font-weight: 650; letter-spacing: -.03em; line-height: 1.05; }
.stat-note { font-size: .75rem; color: var(--text-muted); }
.stat-value.is-danger { color: var(--danger); }
.stat-value.is-ok { color: var(--ok); }

/* ---------------------------------------------------------------------------------------------
   8. Tables
   --------------------------------------------------------------------------------------------- */
.table { --bs-table-bg: transparent; color: var(--text); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: 11px 14px; border-bottom-color: var(--border); }
.table thead th {
    font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-muted); background: var(--surface-2);
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table thead th:first-child { border-top-left-radius: var(--radius-sm); }
.table thead th:last-child { border-top-right-radius: var(--radius-sm); }
.table tbody tr { transition: background .1s ease; }
.table-hover tbody tr:hover { background: var(--surface-2); }
.table tbody tr.is-selected,
.table tbody tr.table-active { background: var(--accent-soft) !important; box-shadow: inset 2px 0 0 var(--accent); }
.table-wrap { overflow-x: auto; }

/* ---------------------------------------------------------------------------------------------
   9. Status chips — the vocabulary for spam / clean / whitelisted
   --------------------------------------------------------------------------------------------- */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 9px; border-radius: var(--radius-pill);
    font-size: .75rem; font-weight: 600; line-height: 1.4;
    border: 1px solid transparent; white-space: nowrap;
}
.chip svg { width: 13px; height: 13px; flex: 0 0 13px; }
.chip-ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(22, 163, 74, .22); }
.chip-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(220, 38, 38, .22); }
.chip-warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(217, 119, 6, .25); }
.chip-info { background: var(--info-soft); color: var(--info); border-color: rgba(14, 165, 233, .25); }
.chip-muted { background: var(--surface-2); color: var(--text-muted); border-color: var(--border); }

/* ---------------------------------------------------------------------------------------------
   10. Buttons
   --------------------------------------------------------------------------------------------- */
.btn {
    --bs-btn-font-size: var(--step-0);
    border-radius: var(--radius-sm);
    font-weight: 550;
    padding: 8px 15px;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.btn-primary {
    --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: var(--accent-hover); --bs-btn-hover-border-color: var(--accent-hover);
    --bs-btn-active-bg: var(--accent-hover); --bs-btn-active-border-color: var(--accent-hover);
    --bs-btn-disabled-bg: var(--accent); --bs-btn-disabled-border-color: var(--accent);
    color: #fff;
}
.btn-outline-secondary {
    --bs-btn-color: var(--text); --bs-btn-border-color: var(--border-strong);
    --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-color: var(--text);
    --bs-btn-hover-border-color: var(--border-strong);
}
.btn-link { color: var(--text-muted); font-weight: 500; }
.btn-link:hover { color: var(--text); }
.btn-danger-link { color: var(--danger); background: none; border: 0; padding: 0; font-weight: 550; }
.btn-danger-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------------------------
   11. Forms
   --------------------------------------------------------------------------------------------- */
.form-control, .form-select {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 8px 12px;
    font-size: var(--step-0);
}
.form-control:focus, .form-select:focus {
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    color: var(--text);
}
.form-control::placeholder { color: var(--text-muted); opacity: .75; }
label, .form-label { font-weight: 550; font-size: .8125rem; margin-bottom: 5px; color: var(--text); }
.form-text, .form-hint { color: var(--text-muted); font-size: .75rem; }

.input-group > .form-control { border-right: 0; }
.input-group .btn { border-color: var(--border-strong); }

/* ---------------------------------------------------------------------------------------------
   12. Alerts
   --------------------------------------------------------------------------------------------- */
.alert { border-radius: var(--radius-sm); border: 1px solid transparent; padding: 11px 14px; font-size: .8125rem; }
.alert-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(220, 38, 38, .22); }
.alert-success { background: var(--ok-soft); color: var(--ok); border-color: rgba(22, 163, 74, .22); }
.alert-warning { background: var(--warn-soft); color: var(--warn); border-color: rgba(217, 119, 6, .25); }
.alert-info { background: var(--info-soft); color: var(--info); border-color: rgba(14, 165, 233, .25); }

/* ---------------------------------------------------------------------------------------------
   13. Empty state
   --------------------------------------------------------------------------------------------- */
.empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty svg { width: 32px; height: 32px; opacity: .5; margin-bottom: 10px; }

/* ---------------------------------------------------------------------------------------------
   14. Definition list used by the submission detail pane
   --------------------------------------------------------------------------------------------- */
.kv { display: grid; grid-template-columns: minmax(90px, 34%) 1fr; gap: 7px 14px; margin: 0; }
.kv dt { color: var(--text-muted); font-weight: 550; font-size: .75rem;
         text-transform: uppercase; letter-spacing: .04em; }
.kv dd { margin: 0; word-break: break-word; }

.section-label {
    font-size: .6875rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    color: var(--text-muted); margin: 18px 0 9px;
}

/* ---------------------------------------------------------------------------------------------
   15. Table toolbar, pager, and sortable headers
   ---------------------------------------------------------------------------------------------
   Replaces DataTables entirely. Submissions pages on the server (174k rows); the small tables
   (forms, API users) get client-side filter/sort from ~70 lines of vanilla JS in scripts.js.
   --------------------------------------------------------------------------------------------- */
.table-toolbar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
}
.table-toolbar .spacer { flex: 1 1 auto; }
.table-search { max-width: 340px; }
.table-search .form-control { font-size: .8125rem; }

.pager {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
}
.pager-info { font-size: .8125rem; color: var(--text-muted); }
.pager-info strong { color: var(--text); font-weight: 650; }
.pager-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 9px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text);
    font-size: .8125rem; font-weight: 550; text-decoration: none;
}
a.page-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; border-color: var(--border-strong); }
.page-link.is-current { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-link.is-disabled { opacity: .4; }
.page-gap { padding: 0 2px; color: var(--text-muted); }

/* Sortable headers for the small client-side tables */
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--text); }
th.sortable::after {
    content: "↕"; margin-left: 6px; opacity: .35; font-size: .8em;
}
th.sortable.sort-asc::after { content: "↑"; opacity: 1; color: var(--accent); }
th.sortable.sort-desc::after { content: "↓"; opacity: 1; color: var(--accent); }

/* ---------------------------------------------------------------------------------------------
   16. Login
   --------------------------------------------------------------------------------------------- */
.login-shell {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background:
        radial-gradient(900px 500px at 15% -10%, rgba(0, 123, 255, .18), transparent 60%),
        radial-gradient(800px 500px at 110% 110%, rgba(0, 123, 255, .10), transparent 55%),
        var(--navy-900);
}
.login-card {
    width: 100%; max-width: 400px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(2, 6, 23, .55);
    padding: 30px 28px;
}
.login-brand { margin-bottom: 24px; }
.login-brand img { width: 232px; max-width: 100%; height: auto; display: block; }
.login-card h1 { font-size: var(--step-2); margin: 0 0 4px; }
.login-card .sub { color: var(--text-muted); font-size: .8125rem; margin-bottom: 22px; }
.login-card .btn { width: 100%; padding: 10px; }
.login-foot { text-align: center; margin-top: 18px; color: var(--text-muted); font-size: .75rem; }

/* ---------------------------------------------------------------------------------------------
   17. Footer
   --------------------------------------------------------------------------------------------- */
.app-footer {
    flex: 0 0 auto; padding: 16px 28px; border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: .75rem; background: var(--surface);
}

/* ---------------------------------------------------------------------------------------------
   18. Charts
   ---------------------------------------------------------------------------------------------
   Series colours are validated, not chosen by eye. Red/green for spam/clean FAILS colour-vision
   separation (deuteranopia dE 5.0), so the two series are brand blue + amber, which pass all six
   checks. Dark mode uses its own validated steps rather than an automatic flip.
   --------------------------------------------------------------------------------------------- */
:root {
    --chart-clean: #007BFF;
    --chart-spam: #D97706;
    --chart-grid: #E2E8F0;
    --chart-track: #F1F5F9;
    --chart-ink: #64748B;
}
[data-bs-theme="dark"] {
    --chart-clean: #3B8CFF;
    --chart-spam: #C67A08;
    --chart-grid: #223049;
    --chart-track: #16213A;
    --chart-ink: #94A3B8;
}

.chart { display: block; overflow: visible; }
.chart-grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart-track { fill: var(--chart-track); }
.chart-axis, .chart-label, .chart-value {
    font-family: var(--font-sans);
    fill: var(--chart-ink);
    font-size: 11px;
}
.chart-label { font-size: 12px; fill: var(--text); }
.chart-value { font-size: 11px; font-weight: 650; fill: var(--text); }
.chart g:hover rect[fill^="var"] { filter: brightness(1.12); }

/* Legend — always present for two or more series, so identity is never colour alone. */
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px;
                     font-size: .75rem; color: var(--text-muted); font-weight: 550; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.swatch-clean { background: var(--chart-clean); }
.swatch-spam { background: var(--chart-spam); }

.chart-table { margin-top: 12px; }
.chart-table summary { cursor: pointer; color: var(--text-muted); font-size: .75rem; }
.chart-table summary:hover { color: var(--text); }

/* ---------------------------------------------------------------------------------------------
   19. Utilities
   --------------------------------------------------------------------------------------------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; }
@media (max-width: 1199.98px) { .split { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: 16px; }
.nowrap { white-space: nowrap; }
