/* RizwanStrategy CMS.
   One stylesheet, no build step, no framework. The admin is a handful of dense
   forms and tables; a utility framework would be more bytes than the whole UI.

   The accent is the site's own #1c5d8c rather than a generic admin blue, so the
   tool reads as part of the same product as the thing it edits. Everything else
   is deliberately quiet: this is a screen for reading dense text and long
   tables, and an interface that competes with the content is a worse tool. */

:root {
    /* Warm neutrals, matching the site's cream ground rather than the flat
       grey most admin panels default to. */
    --bg: #faf9f7;
    --panel: #ffffff;
    --sunken: #f3f1ee;
    --raised: #ffffff;
    --ink: #0d0f14;
    --muted: #5a6371;
    --faint: #8b93a1;
    --line: #e4e1db;
    --line-strong: #d2cec6;

    --accent: #1c5d8c;
    --accent-hover: #164b71;
    --accent-soft: #e8f0f6;
    --accent-ring: rgba(28, 93, 140, 0.28);

    --danger: #a8321f;
    --danger-soft: #fbeeec;
    --ok: #0f6b45;
    --ok-soft: #e8f5ee;
    --warn: #8d5a06;
    --warn-soft: #fcf3e3;

    --radius: 9px;
    --radius-sm: 6px;
    --radius-lg: 14px;

    /* Two levels only. More than that and everything looks like it is floating. */
    --shadow-sm: 0 1px 2px rgba(13, 15, 20, 0.05), 0 1px 1px rgba(13, 15, 20, 0.03);
    --shadow-md: 0 4px 14px rgba(13, 15, 20, 0.08), 0 1px 3px rgba(13, 15, 20, 0.04);
    --shadow-lg: 0 18px 50px rgba(13, 15, 20, 0.18);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --fast: 130ms;
    --slow: 260ms;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0e14;
        --panel: #121722;
        --sunken: #0e131b;
        --raised: #171d2a;
        --ink: #e9ecf1;
        --muted: #98a2b3;
        --faint: #6b7585;
        --line: #212939;
        --line-strong: #303a4d;

        --accent: #6aa9d8;
        --accent-hover: #8bc0e6;
        --accent-soft: #15293a;
        --accent-ring: rgba(106, 169, 216, 0.32);

        --danger: #ff9a8d;
        --danger-soft: #2a1614;
        --ok: #6ee7b7;
        --ok-soft: #10231c;
        --warn: #fbbf5c;
        --warn-soft: #251d0e;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
        --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

/* One visible focus treatment everywhere. Keyboard users get a ring; mouse
   users never see it. */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

h1, h2, h3 { letter-spacing: -0.018em; }

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

.sidebar {
    border-right: 1px solid var(--line);
    padding: 1.4rem 0.85rem 1.1rem;
    display: flex; flex-direction: column; gap: 1.1rem;
    background: var(--sunken);
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}

.brand {
    font-weight: 660; letter-spacing: -0.025em; font-size: 1.02rem;
    text-decoration: none; color: var(--ink); padding: 0.1rem 0.55rem 0.45rem;
    display: flex; align-items: center; gap: 0.5rem;
}
/* A small mark so the sidebar has an anchor point rather than starting with
   bare text. Drawn in CSS — one more asset request for a 20px square is not
   worth it. */
.brand::before {
    content: ""; width: 22px; height: 22px; flex: none; border-radius: 6px;
    background: linear-gradient(140deg, var(--accent), var(--accent-hover));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

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

.nav-group {
    font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--faint); margin: 1.15rem 0 0.35rem; padding: 0 0.55rem; font-weight: 650;
}
.nav-group:first-child { margin-top: 0.2rem; }

.sidebar nav a {
    padding: 0.46rem 0.55rem; border-radius: var(--radius-sm);
    text-decoration: none; color: var(--muted); font-size: 0.895rem;
    display: flex; align-items: center; gap: 0.5rem;
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
    position: relative;
}
.sidebar nav a:hover { background: var(--panel); color: var(--ink); }
.sidebar nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 560; }
/* The active marker reads faster than the fill alone at a glance down the rail. */
.sidebar nav a.on::before {
    content: ""; position: absolute; left: -0.85rem; top: 20%; bottom: 20%;
    width: 3px; border-radius: 0 3px 3px 0; background: var(--accent);
}

/* Sections that genuinely do not exist yet are shown but inert, so the shape of
   the finished product is visible without pretending a link works. */
.nav-soon { padding: 0.46rem 0.55rem; font-size: 0.895rem; color: var(--faint); opacity: 0.55; cursor: default; }
.nav-soon::after { content: " — soon"; font-size: 0.7rem; }

.signout { border-top: 1px solid var(--line); padding-top: 0.85rem; }
.btn-link { background: none; border: 0; color: var(--muted); font-size: 0.82rem; cursor: pointer; padding: 0; text-align: left; transition: color var(--fast) var(--ease); }
.btn-link:hover { color: var(--ink); }

.main { padding: 2rem 2.25rem 5rem; max-width: 1180px; }
.centred { max-width: 23rem; margin: 3.5rem auto; padding: 0 1.25rem; }

/* Sign-in is the one screen with no chrome around it, so it carries its own
   surface instead of floating in a void. */
.centred .panel { box-shadow: var(--shadow-md); }
.centred h1 { margin-top: 0; font-size: 1.5rem; }

/* ------------------------------------------------------------- page head */
.page-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.6rem;
}
.page-head h1 { margin: 0 0 0.3rem; font-size: 1.6rem; font-weight: 640; }
.page-head .sub { color: var(--muted); margin: 0; max-width: 62ch; }
.page-head .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* --------------------------------------------------------------- panels */
.panel {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 1.35rem 1.4rem;
    margin-bottom: 1.15rem; box-shadow: var(--shadow-sm);
}
.panel > h2 {
    margin: 0 0 1rem; font-size: 0.94rem; font-weight: 640;
    display: flex; align-items: center; gap: 0.5rem;
}
.panel > h2::before {
    content: ""; width: 3px; height: 0.95em; border-radius: 2px;
    background: var(--accent); opacity: 0.75;
}

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 0.85rem; margin-bottom: 1.15rem; }
.stat {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1.05rem 1.15rem; box-shadow: var(--shadow-sm);
    transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.stat:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.stat .n { font-size: 1.85rem; font-weight: 660; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 0.83rem; margin-top: 0.2rem; }
.stat.bad .n { color: var(--danger); }
.stat.warn .n { color: var(--warn); }
.stat.ok .n { color: var(--ok); }

/* --------------------------------------------------------------- tables */
table { width: 100%; border-collapse: collapse; font-size: 0.895rem; }
th {
    text-align: left; font-weight: 600; color: var(--faint);
    font-size: 0.68rem; letter-spacing: 0.075em; text-transform: uppercase;
    padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line-strong);
    white-space: nowrap; position: sticky; top: 0; background: var(--panel); z-index: 1;
}
td { padding: 0.66rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background var(--fast) var(--ease); }
tbody tr:hover { background: var(--sunken); }
tbody tr:last-child td { border-bottom: 0; }
.tdtight td { padding: 0.42rem 0.7rem; }
.row-title { font-weight: 550; color: var(--ink); text-decoration: none; }
.row-title:hover { color: var(--accent); }

/* --------------------------------------------------------------- chips */
.chip {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em;
    padding: 0.16rem 0.5rem; border-radius: 999px;
    background: var(--sunken); color: var(--muted); border: 1px solid var(--line);
    white-space: nowrap;
}
.chip.published, .chip.done, .chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.draft { background: var(--sunken); color: var(--muted); }
.chip.in_review, .chip.scheduled, .chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.archived, .chip.fail, .chip.bad, .chip.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
/* A dot carries state without relying on colour alone. */
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.75; }

/* -------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.5rem 0.95rem; border-radius: var(--radius-sm);
    background: var(--accent); color: #fff; border: 1px solid transparent;
    font: inherit; font-size: 0.875rem; font-weight: 550; cursor: pointer;
    text-decoration: none; white-space: nowrap;
    transition: background var(--fast) var(--ease), transform var(--fast) var(--ease),
                box-shadow var(--fast) var(--ease), border-color var(--fast) var(--ease);
    box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn.ghost { background: transparent; color: var(--muted); border-color: var(--line-strong); box-shadow: none; }
.btn.ghost:hover { background: var(--sunken); color: var(--ink); border-color: var(--faint); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: var(--danger); filter: brightness(0.92); }
.btn.sm { padding: 0.33rem 0.65rem; font-size: 0.8rem; }

.icon-btn {
    background: none; border: 1px solid transparent; color: var(--faint);
    cursor: pointer; border-radius: var(--radius-sm); padding: 0.18rem 0.4rem;
    font: inherit; line-height: 1.2;
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.icon-btn:hover { background: var(--sunken); color: var(--ink); }

/* ---------------------------------------------------------------- forms */
.field { margin-bottom: 1.05rem; }
.field:last-child { margin-bottom: 0; }
label { display: block; font-size: 0.855rem; font-weight: 560; margin-bottom: 0.3rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="number"], input[type="search"], input[type="url"], select, textarea {
    width: 100%; padding: 0.52rem 0.68rem;
    background: var(--bg); color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    font: inherit; font-size: 0.9rem;
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease);
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
    background: var(--panel);
}
textarea { resize: vertical; }
select { cursor: pointer; }

.hint { color: var(--muted); font-size: 0.79rem; margin-top: 0.3rem; line-height: 1.5; }
.counter { color: var(--faint); font-weight: 400; font-size: 0.76rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.grow { flex: 1; }
.row-title, .t { font-weight: 550; }

/* ----------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 0.15rem; border-bottom: 1px solid var(--line); margin-bottom: 1.3rem; overflow-x: auto; }
.tabs button, .tab-link {
    background: none; border: 0; border-bottom: 2px solid transparent;
    padding: 0.6rem 0.85rem; font: inherit; font-size: 0.885rem; font-weight: 540;
    color: var(--muted); cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
    margin-bottom: -1px;
}
.tabs button:hover, .tab-link:hover { color: var(--ink); }
.tabs button[aria-selected="true"], .tab-link.on { color: var(--accent); border-bottom-color: var(--accent); }

/* --------------------------------------------------------------- notices */
.flash, .notice, .err, .banner {
    padding: 0.7rem 0.95rem; border-radius: var(--radius);
    margin-bottom: 1.05rem; font-size: 0.885rem;
    border: 1px solid transparent; display: flex; gap: 0.6rem; align-items: flex-start;
    animation: slide-in var(--slow) var(--ease) both;
}
.flash { background: var(--ok-soft); color: var(--ok); }
.notice { background: var(--accent-soft); color: var(--accent); }
.err { background: var(--danger-soft); color: var(--danger); }
.banner { background: var(--warn-soft); color: var(--warn); }

/* ---------------------------------------------------------- repeat rows */
.repeat { border: 0; padding: 0; margin: 0; }
.rep-body { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 0.55rem; }
.rep-row {
    display: flex; gap: 0.5rem; align-items: flex-start;
    animation: slide-in var(--fast) var(--ease) both;
}
.rep-row .handle { display: flex; flex-direction: column; gap: 1px; padding-top: 0.2rem; }
.step-card { background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.6rem 0.7rem; }
.step-n { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-weight: 650; margin-bottom: 0.35rem; }
.rm { color: var(--faint); }
.rm:hover { color: var(--danger); background: var(--danger-soft); }

/* -------------------------------------------------------------- pickers */
.picker {
    max-height: 15rem; overflow-y: auto; border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 0.35rem; background: var(--bg);
}
.picker label {
    display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.3rem 0.4rem;
    margin: 0; font-weight: 400; font-size: 0.87rem; border-radius: var(--radius-sm);
    cursor: pointer; transition: background var(--fast) var(--ease);
}
.picker label:hover { background: var(--sunken); }
.picker input[type="checkbox"] { width: auto; margin-top: 0.22rem; accent-color: var(--accent); }
.picker-filter { margin-bottom: 0.4rem; }

/* ------------------------------------------------------------ media field */
.media-field-preview {
    display: flex; gap: 0.85rem; align-items: center;
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0.7rem 0.8rem; background: var(--sunken); margin-bottom: 0.55rem;
    min-height: 4.4rem;
}
.media-field-preview img {
    width: 76px; height: 56px; object-fit: cover; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--panel); flex: none;
}
.media-field-meta { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.media-field-meta strong { font-weight: 560; font-size: 0.875rem; overflow-wrap: anywhere; }
.media-field-empty { color: var(--faint); font-size: 0.87rem; }
.media-field-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.media-field-advanced { margin-top: 0.7rem; }
.media-field-advanced summary { cursor: pointer; user-select: none; }
.media-field-advanced summary:hover { color: var(--ink); }
.media-field-advanced input { margin-top: 0.45rem; }

.body-tools { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.7rem; }

/* Library modal. Centred, dimmed, escapable — the three things a picker has to
   get right before anything else about it matters. */
.media-library-modal {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(13, 15, 20, 0.55); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center; padding: 1.5rem;
    animation: fade-in var(--fast) var(--ease) both;
}
.media-library-modal[hidden] { display: none; }
.media-library-panel {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    width: min(880px, 100%); max-height: min(640px, 85vh);
    display: flex; flex-direction: column; overflow: hidden;
    animation: pop-in var(--slow) var(--ease) both;
}
.media-library-head {
    display: flex; gap: 0.7rem; align-items: center;
    padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); flex: none;
}
.media-library-head strong { font-size: 0.92rem; white-space: nowrap; }
.media-library-filter { flex: 1; }
.media-library-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.7rem; padding: 1rem; overflow-y: auto;
}
.media-library-empty { grid-column: 1 / -1; margin: 1.5rem 0; text-align: center; }
.media-tile {
    background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0.4rem; cursor: pointer; font: inherit; text-align: left;
    display: flex; flex-direction: column; gap: 0.35rem;
    transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.media-tile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.media-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--panel); }
.media-tile span { font-size: 0.75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Media library screen */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.9rem; }
.media-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.media-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.media-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--sunken); }
.media-body { padding: 0.65rem 0.75rem; font-size: 0.82rem; }

/* ------------------------------------------------------------------ SERP */
.serp { background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 1rem; }
.serp .t { color: var(--accent); font-size: 1.05rem; line-height: 1.3; }
.serp .u { color: var(--ok); font-size: 0.79rem; }
.serp .d { color: var(--muted); font-size: 0.855rem; margin-top: 0.2rem; }

/* --------------------------------------------------------------- checks */
.checks { display: flex; flex-direction: column; gap: 0.4rem; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.87rem; padding: 0.35rem 0; }
.check .s { flex: none; font-weight: 700; width: 1.1rem; }
.check.ok .s { color: var(--ok); }
.check.warn .s { color: var(--warn); }
.check.bad .s { color: var(--danger); }

/* ---------------------------------------------------------------- pipe */
.pipe { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; font-size: 0.82rem; }
.pipe .step { display: flex; align-items: center; gap: 0.3rem; color: var(--muted); }
.pipe .now { color: var(--accent); font-weight: 600; }
.pipe .arrow { color: var(--faint); }

/* ------------------------------------------------------------- AI panel */
.ai-tools { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.85rem; }
.ai-off { color: var(--faint); font-size: 0.85rem; margin: 0 0 0.85rem; }
.ai-panel {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--sunken); padding: 0.85rem 1rem; margin-top: 0.85rem;
    animation: slide-in var(--slow) var(--ease) both;
}
.ai-head { display: flex; justify-content: space-between; align-items: center; gap: 0.7rem; margin-bottom: 0.55rem; }
.ai-status { font-size: 0.8rem; color: var(--muted); }
.ai-text { font-size: 0.885rem; white-space: pre-wrap; line-height: 1.6; }
.ai-note { font-size: 0.78rem; color: var(--faint); margin-top: 0.55rem; }

/* ------------------------------------------------------------ utilities */
.small { font-size: 0.8rem; }
.faint { color: var(--faint); }
.muted { color: var(--muted); }
.actions { display: flex; gap: 0.45rem; align-items: center; flex-wrap: wrap; }
.count { color: var(--faint); font-weight: 400; }
.label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-weight: 650; }
.eyebrow, .kicker { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); font-weight: 650; }
.lede { font-size: 1.02rem; color: var(--muted); }
.tight { margin: 0; }
.meta, .byline { font-size: 0.8rem; color: var(--faint); }
.y { color: var(--ok); }
.n { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- motion */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* The main column settles in on load. Panels are staggered so the eye lands on
   the first one rather than everything arriving flat at once. Deliberately
   short — this is a tool people use all day, and an interface that makes you
   wait for an animation on every navigation becomes irritating by the third
   time you see it. */
.main > * { animation: rise 240ms var(--ease) both; }
.main > *:nth-child(2) { animation-delay: 30ms; }
.main > *:nth-child(3) { animation-delay: 60ms; }
.main > *:nth-child(4) { animation-delay: 90ms; }
.main > *:nth-child(n + 5) { animation-delay: 110ms; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .stat:hover, .btn:hover, .media-tile:hover, .media-card:hover { transform: none; }
}

/* --------------------------------------------------------------- narrow */
@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar {
        position: static; height: auto; flex-direction: row; flex-wrap: wrap;
        align-items: center; gap: 0.5rem; border-right: 0; border-bottom: 1px solid var(--line);
        padding: 0.85rem 1rem;
    }
    .sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 0.2rem; }
    .nav-group { display: none; }
    .sidebar nav a.on::before { display: none; }
    .signout { border-top: 0; padding-top: 0; margin-left: auto; }
    .main { padding: 1.35rem 1.15rem 3.5rem; }
    .grid2 { grid-template-columns: 1fr; }
}
