/* ============================================================================
   GEPA — token layer

   One layer under every surface. Replaces the per-namespace custom properties
   that were duplicated across ten stylesheets, and the light-component-set-
   overridden-dark arrangement that needed a specificity test to hold it up.

   The product has TWO surfaces, not eight namespaces:

     .surface-forest   chrome, hero, trust band, footer, the lesson player
     .surface-paper    catalogue, course pages, auth, store, hub, console,
                       certificate — everything you work in

   A surface sets its own local tokens; components read those local tokens and
   never name a surface. That is why a button, a field or a table can sit on
   either surface without a single override, and why nothing here needs to
   outrank anything else.

   Fonts are loaded from the layout <head>, not with @import, so they download
   in parallel rather than after this file parses.
   ========================================================================== */

/* ---------------------------------------------------------------- palette --
   Surface-independent. These are the raw values; a surface below picks which
   of them apply. Nothing outside this block should hard-code a hex.          */

:root {
    /* forest */
    --forest-base: #042420;
    --forest-raised: #06342d;
    --forest-lifted: #0a463c;
    --forest-sunk: #021512;

    /* paper */
    --paper: #fbf8f1;
    --paper-card: #fffdf8;
    --paper-well: #efe8da;

    /* ink on paper — contrast against --paper noted */
    --ink: #0a2e28;              /* 13.8:1  body, values, table cells */
    --ink-soft: #4a5f59;         /*  6.44:1 metadata, secondary prose */
    --ink-title: #0a463c;        /* 10.57:1 Petrona headings */
    --link: #0b5f54;             /*  7.12:1 links and quiet actions */

    /* ink on forest — alpha over forest. The floor is .62; below that is
       decoration, never text. */
    --on-forest: #f6f2e9;                        /* 13.4:1 */
    --on-forest-2: rgba(246, 242, 233, .74);     /*  9.6:1 */
    --on-forest-muted: rgba(246, 242, 233, .62); /*  7.4:1 — the floor */
    --on-forest-deco: rgba(246, 242, 233, .34);  /* rules only, never text */

    /* accent and semantic */
    --gold: #f4c24c;
    --gold-lit: #ffdd86;
    --gold-ink: #26210a;         /* 9.71:1 on gold — the only ink for gold fills */
    --gilt: #b08a2e;             /* ornament; as text only at >=19px/700 */
    --teal: #12897a;             /* fills and structure on forest */
    --teal-lit: #3dc0a7;         /* eyebrows, success — on forest only */

    --danger-on-forest: #ffb4b4;
    --danger-on-paper: #b5443f;
    --info-on-forest: #a9c4ff;
    --info-on-paper: #2c4a7c;

    /* ------------------------------------------------------------- type -- */
    --font-display: 'Petrona', Georgia, 'Times New Roman', serif;
    --font-ui: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-data: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* ------------------------------------------------------------ space --
       4px base, nine steps. Nothing between these.                          */
    --s1: 4px;
    --s2: 8px;
    --s3: 12px;
    --s4: 16px;
    --s5: 24px;
    --s6: 32px;
    --s7: 48px;
    --s8: 72px;
    --s9: 112px;

    /* section rhythm — 72 on mobile, 112 from 1024 */
    --section: var(--s8);

    /* ----------------------------------------------------------- radius -- */
    --r-sm: 8px;      /* inputs, chips, small tiles */
    --r-md: 12px;     /* cards, rows, panels */
    --r-lg: 20px;     /* hero panels, modals */
    --r-pill: 999px;  /* buttons, badges, avatars */

    /* ------------------------------------------------------------- grid -- */
    --gutter: 20px;
    --measure: 68ch;  /* body copy never runs wider than this */
    --max: 1320px;
}

@media (min-width: 480px) { :root { --gutter: 24px; } }
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1024px) { :root { --gutter: 56px; --section: var(--s9); } }

/* --------------------------------------------------------------- surfaces --
   Each surface maps the palette onto the same seven local names. Components
   below read only these, so they work on either surface untouched.          */

.surface-forest {
    --bg: var(--forest-base);
    --card: var(--forest-raised);
    --lifted: var(--forest-lifted);
    --well: var(--forest-sunk);

    --text: var(--on-forest);
    --text-2: var(--on-forest-2);
    --text-muted: var(--on-forest-muted);
    --text-title: var(--on-forest);
    --deco: var(--on-forest-deco);

    --rule: rgba(246, 242, 233, .1);
    --rule-strong: rgba(246, 242, 233, .24);

    --field-bg: var(--forest-sunk);
    --field-border: rgba(246, 242, 233, .18);

    --action: var(--gold);       /* quiet-button and link colour */
    --danger: var(--danger-on-forest);
    --info: var(--info-on-forest);
    --success: var(--teal-lit);

    --focus: var(--gold-lit);
    --shadow-raised: 0 12px 28px -18px rgba(0, 0, 0, .8);
    --shadow-float: 0 40px 70px -30px rgba(0, 0, 0, .9);

    background: var(--bg);
    color: var(--text);
}

.surface-paper {
    --bg: var(--paper);
    --card: var(--paper-card);
    --lifted: var(--paper-card);
    --well: var(--paper-well);

    --text: var(--ink);
    --text-2: var(--ink-soft);
    --text-muted: var(--ink-soft);
    --text-title: var(--ink-title);
    --deco: rgba(10, 46, 40, .28);

    --rule: rgba(10, 46, 40, .14);
    --rule-strong: rgba(10, 46, 40, .24);

    --field-bg: var(--paper-card);
    --field-border: rgba(10, 46, 40, .24);

    --action: var(--link);
    --danger: var(--danger-on-paper);
    --info: var(--info-on-paper);
    --success: var(--link);

    --focus: var(--gilt);
    --shadow-raised: 0 12px 28px -18px rgba(10, 46, 40, .3);
    --shadow-float: 0 40px 70px -30px rgba(10, 46, 40, .42);

    background: var(--bg);
    color: var(--text);
}

/* ------------------------------------------------------------------ base -- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font: 400 16px/1.65 var(--font-ui);
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; }
img, video { height: auto; display: block; }

/* One focus rule, everywhere. Nine of the ten old stylesheets defined none. */
:focus-visible {
    outline: 3px solid var(--focus, var(--gold-lit));
    outline-offset: 2px;
    border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ------------------------------------------------------------ typography --
   Eight steps. Use the classes; do not restyle bare elements per surface —
   that is the mistake the old console layer was built on.                   */

.t-display-xl,
.t-display-l,
.t-display-m { font-family: var(--font-display); color: var(--text-title); margin: 0; text-wrap: balance; }

.t-display-xl { font-weight: 400; font-size: clamp(40px, 7vw, 68px); line-height: 1.02; letter-spacing: -.025em; }
.t-display-l  { font-weight: 400; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.06; letter-spacing: -.02em; }
.t-display-m  { font-weight: 500; font-size: clamp(22px, 3vw, 28px); line-height: 1.15; letter-spacing: -.015em; }

.t-title  { font: 700 18px/1.35 var(--font-ui); letter-spacing: -.01em; margin: 0; color: var(--text); }
.t-body   { font: 400 16px/1.65 var(--font-ui); color: var(--text); margin: 0; max-width: var(--measure); }
.t-ui     { font: 600 15px/1.45 var(--font-ui); color: var(--text); }
.t-meta   { font: 500 13px/1.5 var(--font-ui); color: var(--text-muted); }
.t-eyebrow {
    font: 800 12px/1.4 var(--font-ui);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
}
.t-data {
    font: 500 14px/1.4 var(--font-data);
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.t-soft { color: var(--text-2); }
.t-muted { color: var(--text-muted); }

/* ---------------------------------------------------------------- layout -- */

.container {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

.grid { display: grid; gap: var(--s5); grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 480px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px)  { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

/* span helpers only bite once there are 12 columns to span */
@media (min-width: 1024px) {
    .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
    .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
    .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
    .col-12 { grid-column: span 12; }
}

.stack { display: flex; flex-direction: column; gap: var(--s4); }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

/* Skip link — first focusable element on every layout. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 10px var(--gutter);
    background: var(--gold);
    color: var(--gold-ink);
    font: 700 13.5px var(--font-ui);
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
    outline: 3px solid var(--gilt);
    outline-offset: -3px;
}

/* ----------------------------------------------------------------- cards -- */

.card {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    padding: var(--s5);
}
.card-raised { box-shadow: var(--shadow-raised); }
.card-float { box-shadow: var(--shadow-float); border-radius: var(--r-lg); }
.well {
    background: var(--well);
    border-radius: var(--r-sm);
    padding: var(--s4);
}

/* --------------------------------------------------------------- buttons --
   Three ranks plus destructive and pending. Geometry is shared so ranks can
   sit beside each other without shifting the baseline.                      */

.btn {
    --btn-bg: transparent;
    --btn-fg: var(--action);
    --btn-border: transparent;
    --btn-shadow: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    min-height: 44px;
    padding: 12px 22px;
    border-radius: var(--r-pill);
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-fg);
    box-shadow: var(--btn-shadow);
    font: 700 15px/1 var(--font-ui);
    text-decoration: none;
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
    -webkit-appearance: none;
    appearance: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    --btn-bg: linear-gradient(135deg, var(--gold), var(--gold-lit));
    --btn-fg: var(--gold-ink);
    --btn-shadow: 0 14px 30px -16px rgba(244, 194, 76, .85);
}
.btn-secondary {
    --btn-bg: rgba(246, 242, 233, .06);
    --btn-border: var(--rule-strong);
    --btn-fg: var(--text);
    font-weight: 600;
}
.surface-paper .btn-secondary { --btn-bg: transparent; }

.btn-quiet { --btn-fg: var(--action); padding-inline: var(--s3); }
.btn-quiet:hover { text-decoration: underline; text-underline-offset: 3px; }

.btn-destructive {
    --btn-bg: rgba(181, 68, 63, .16);
    --btn-border: rgba(255, 180, 180, .45);
    --btn-fg: var(--danger);
}
.surface-paper .btn-destructive { --btn-border: rgba(181, 68, 63, .5); }

.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 8px 16px; font-size: 14px; }

/* Pending — applied by the submit script. The button keeps its size so the
   layout does not jump when the label changes. */
.btn[data-pending] {
    opacity: .8;
    cursor: progress;
    pointer-events: none;
    transform: none;
}
.btn[data-pending]::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: gepa-spin .7s linear infinite;
    flex: none;
}
@keyframes gepa-spin { to { transform: rotate(360deg); } }

/* A disabled-looking control that must stay focusable uses aria-disabled, not
   the disabled attribute, so its explanation stays discoverable. It is
   focusable, so it still has to meet contrast. */
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    --btn-bg: rgba(246, 242, 233, .06);
    --btn-border: var(--rule-strong);
    --btn-fg: rgba(246, 242, 233, .7);
    --btn-shadow: none;
}
.btn[aria-disabled="true"]:hover { transform: none; }
.surface-paper .btn[aria-disabled="true"] { --btn-fg: var(--ink-soft); }

/* ---------------------------------------------------------------- fields -- */

.field { display: block; margin-bottom: var(--s4); }
.field-label {
    display: block;
    font: 700 13px/1.4 var(--font-ui);
    color: var(--text);
    margin-bottom: 7px;
}
.field-optional { font-weight: 500; color: var(--text-muted); }

.input,
.select,
.textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 13px 15px;
    border-radius: var(--r-sm);
    background: var(--field-bg);
    border: 1px solid var(--field-border);
    color: var(--text);
    font: 400 16px/1.5 var(--font-ui);   /* 16px so iOS never zooms on focus */
    -webkit-appearance: none;
    appearance: none;
}
.textarea { min-height: 120px; resize: vertical; }
.select {
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                      linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); opacity: 1; }

.field-hint {
    display: block;
    font: 400 13px/1.5 var(--font-ui);
    color: var(--text-muted);
    margin-top: 7px;
}

/* Error state — did not exist anywhere in the old build. */
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
    border: 1.5px solid var(--danger);
    box-shadow: 0 0 0 3px rgba(255, 180, 180, .14);
}
.surface-paper .input[aria-invalid="true"],
.surface-paper .select[aria-invalid="true"],
.surface-paper .textarea[aria-invalid="true"] {
    box-shadow: 0 0 0 3px rgba(181, 68, 63, .12);
}

.field-error {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 7px;
    font: 600 13px/1.45 var(--font-ui);
    color: var(--danger);
}
.field-error::before {
    content: "!";
    flex: none;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--danger);
    color: var(--bg);
    font: 700 11px/15px var(--font-ui);
    text-align: center;
}

.field-row { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .field-row-2 { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------- badges --
   Colour AND shape AND word, so status survives colour blindness and a
   greyscale print. Every admin badge used to be the same teal chip.        */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    font: 700 12.5px/1.3 var(--font-ui);
    white-space: nowrap;
}
.badge::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    background: currentColor;
}

.badge-published   { color: var(--success); background: rgba(61, 192, 167, .12); }
.badge-published::before { border-radius: 50%; }

.badge-draft       { color: var(--text-muted); background: rgba(246, 242, 233, .07); }
.badge-draft::before { border-radius: 1px; }

.badge-coming      { color: var(--gold); background: rgba(244, 194, 76, .13); }
.badge-coming::before {
    width: 0; height: 0; background: none;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-bottom: 7px solid currentColor;
}

.badge-review      { color: var(--info); background: rgba(169, 196, 255, .12); }
.badge-review::before { transform: rotate(45deg); border-radius: 1px; }

.badge-revoked     { color: var(--danger); background: rgba(255, 180, 180, .12); }
.badge-revoked::before { width: 9px; height: 3px; border-radius: 1px; }

.badge-archived    { color: var(--text-muted); background: transparent; border: 1px dashed var(--rule-strong); }
.badge-archived::before { display: none; }

.surface-paper .badge-published { color: var(--link); background: rgba(11, 95, 84, .1); }
.surface-paper .badge-draft { color: var(--ink-soft); background: rgba(10, 46, 40, .06); }
.surface-paper .badge-coming { color: #6b5200; background: rgba(244, 194, 76, .18); }
.surface-paper .badge-review { color: var(--info-on-paper); background: rgba(44, 74, 124, .1); }
.surface-paper .badge-revoked { color: var(--danger-on-paper); background: rgba(181, 68, 63, .1); }

/* --------------------------------------------------------------- toasts --
   One pattern, promoted from the player. Replaces the layout's flash block
   that pushed the page down and announced nothing.                          */

.toast-region {
    position: fixed;
    z-index: 200;
    right: var(--s5);
    bottom: var(--s5);
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    max-width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}
@media (max-width: 599px) {
    .toast-region {
        right: var(--s4);
        left: var(--s4);
        bottom: calc(var(--s4) + env(safe-area-inset-bottom, 0px));
        max-width: none;
    }
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: var(--s3);
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: var(--forest-lifted);
    color: var(--on-forest);
    border: 1px solid var(--rule-strong);
    box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9);
    font: 500 14px/1.5 var(--font-ui);
    animation: gepa-toast-in .22s ease-out;
}
.toast-success { border-color: rgba(61, 192, 167, .5); }
.toast-error { border-color: rgba(255, 180, 180, .5); }
.toast-warning { border-color: rgba(244, 194, 76, .5); }
.toast-body { flex: 1; min-width: 0; }
.toast-dismiss {
    flex: none;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border: 0; border-radius: var(--r-sm);
    background: transparent;
    color: var(--on-forest-2);
    cursor: pointer;
}
.toast-dismiss:hover { background: rgba(246, 242, 233, .08); color: var(--on-forest); }

@keyframes gepa-toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------------------------------------------------------------- tables --
   One component for all eight admin list screens. A real table from 768px;
   the same records as row cards below it, never a horizontal scroll.        */

.table-shell {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    overflow: hidden;
}

.data-table { width: 100%; border-collapse: collapse; }
.data-table caption {
    caption-side: top;
    text-align: left;
    padding: var(--s4) var(--s5) 0;
    font: 500 13px/1.5 var(--font-ui);
    color: var(--text-muted);
}
.data-table th,
.data-table td {
    padding: 14px var(--s4);
    text-align: left;
    border-bottom: 1px solid var(--rule);
    vertical-align: middle;
}
.data-table th {
    font: 800 12px/1.4 var(--font-ui);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td.num { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

.table-cards { display: none; }

@media (max-width: 767px) {
    .data-table { display: none; }
    .table-cards { display: grid; gap: var(--s3); }
    .row-card {
        background: var(--card);
        border: 1px solid var(--rule);
        border-radius: var(--r-md);
        padding: var(--s4);
        display: grid;
        gap: var(--s3);
    }
    .row-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
    .row-card-meta {
        display: flex; flex-wrap: wrap; gap: var(--s3);
        font: 500 13px/1.4 var(--font-data);
        font-variant-numeric: tabular-nums;
        color: var(--text-muted);
    }
}

/* readiness bar — promoted from the builder's chips into a list column */
.readiness { display: flex; align-items: center; gap: var(--s2); }
.readiness-bar {
    width: 60px; height: 6px;
    background: var(--well);
    border-radius: var(--r-pill);
    overflow: hidden;
    flex: none;
}
.readiness-fill { height: 100%; background: var(--gold); border-radius: inherit; }
.readiness-fill.is-complete { background: var(--success); }
.readiness-note { font: 500 12.5px/1.4 var(--font-ui); color: var(--danger); }

/* ------------------------------------------------------------- progress -- */

.progress {
    height: 6px;
    background: var(--well);
    border-radius: var(--r-pill);
    overflow: hidden;
}
.surface-forest .progress { background: rgba(246, 242, 233, .12); }
.progress-fill { height: 100%; background: var(--gold); border-radius: inherit; }

/* ------------------------------------------------------------ overflow --
   40x40 so it clears WCAG 2.5.8, with an aria-label naming the record.     */

.overflow-btn {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
}
.overflow-btn:hover { background: var(--well); color: var(--text); }

/* --------------------------------------------------------------- dialog -- */

.dialog-backdrop {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(2, 21, 18, .72);
    display: grid; place-items: center;
    padding: var(--s4);
}
.dialog {
    width: min(560px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--rule-strong);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-float);
    padding: var(--s6);
}

/* ---------------------------------------------------------------- icons --
   20x20 viewBox, stroke currentColor, no fill. Replaces the typographic
   glyphs and emoji that rendered at a different weight on every platform.  */

.icon {
    width: 20px; height: 20px;
    flex: none;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* ------------------------------------------------------------ utilities -- */

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.gilt-rule { height: 1px; background: var(--gilt); opacity: .55; border: 0; margin: 0; }

.tabular { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* ----------------------------------------------------------- empty state --
   A screen with nothing on it still has to say what belongs there and how to
   put it there. Used by the catalogue, the vault, the hub and every list. */

.empty-state {
    align-items: flex-start;
    gap: var(--s3);
    padding: var(--s6) var(--s5);
    text-align: left;
}
.empty-state-icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: var(--r-pill);
    background: var(--well);
    color: var(--text-muted);
}
.empty-state p { margin: 0; }
