/* Endpoint Deliveries — bespoke design system.
   Direction: point-to-point courier. Olive-green brand on a faintly-green off-white,
   Space Grotesk display + IBM Plex Sans body + IBM Plex Mono for data (order refs, coords,
   tracking). Signature: the route spine (Pickup A -> Drop-off B). */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
    --brand: #94AF39;
    --brand-600: #7E9A2E;
    --brand-700: #6C8627;
    --ink: #1c2117;
    --ink-soft: #4c5443;
    --muted: #8b9180;
    --paper: #f6f8f1;
    --card: #ffffff;
    --line: #e4e8d8;
    --line-input: #868e73;   /* darker than --line so field outlines read on dim screens */
    --ok: #3f7d2e;
    --warn: #b07d18;
    --bad: #bb4a33;
    --marker-b: #d7263d;   /* drop-off (B) — matches the red map pin */
    --ring: rgba(148, 175, 57, .40);
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(28, 33, 23, .04), 0 8px 24px rgba(28, 33, 23, .06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin: 0; }
h2 { font-size: 1.4rem; }
h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }

.mono { font-family: var(--font-mono); letter-spacing: -.02em; }
.muted { color: var(--muted); font-size: .86rem; }

/* ---- top bar ---- */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 28px; background: var(--card); border-bottom: 1px solid var(--line);
}
.brandmark { display: flex; align-items: center; gap: 10px; font-family: var(--font-display);
    font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.brandmark img { height: 26px; width: 26px; }
.topnav { display: flex; align-items: center; gap: 18px; font-size: .9rem; }
.topnav .who { color: var(--muted); }
.linkbtn { background: none; border: none; padding: 0; font: inherit; color: var(--brand-700); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

/* ---- mobile nav drawer (hamburger) ---- */
/* Desktop: no hamburger, no backdrop — the topnav shows inline as usual. */
.navtoggle { display: none; }
.nav-backdrop { position: fixed; inset: 0; z-index: 39; background: rgba(28, 33, 23, .45);
    opacity: 0; pointer-events: none; transition: opacity .2s; }

@media (max-width: 560px) {
    /* Hamburger button (injected by epd.js). Sits above the drawer + backdrop so
       it doubles as the close control, morphing into an ✕ when open. */
    .navtoggle {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        position: relative; z-index: 42; width: 42px; height: 38px; padding: 0 8px;
        border: 1px solid var(--line); background: var(--card); border-radius: 9px; cursor: pointer;
    }
    .navtoggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px;
        transition: transform .2s, opacity .2s; }
    body.nav-open .navtoggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.nav-open .navtoggle span:nth-child(2) { opacity: 0; }
    body.nav-open .navtoggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* topnav -> off-canvas drawer on the right. */
    .topnav {
        position: fixed; top: 0; right: 0; z-index: 40; height: 100%; width: min(82vw, 300px);
        flex-direction: column; align-items: stretch; gap: 2px;
        padding: 66px 16px 24px; background: var(--card); border-left: 1px solid var(--line);
        box-shadow: -12px 0 30px rgba(28, 33, 23, .18);
        transform: translateX(100%); transition: transform .22s ease; overflow-y: auto;
    }
    body.nav-open .topnav { transform: translateX(0); }
    body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

    .topnav a, .topnav .linkbtn { display: block; width: 100%; text-align: left;
        padding: 12px; border-radius: 8px; font-size: 1rem; }
    .topnav a:hover, .topnav .linkbtn:hover { background: var(--paper); text-decoration: none; }
    .topnav .who { padding: 8px 12px 4px; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
    .topnav form { margin: 0 !important; width: 100%; }
}

/* ---- layout ---- */
.wrap { max-width: 760px; margin: 36px auto; padding: 0 20px; }
.headrow { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }

/* ---- auth panel (login / register) ---- */
/* overflow-x:hidden absorbs the fixed-width Turnstile iframe on narrow phones so the page can't be
   pushed right (scoped to .auth, not body — a global overflow-x:hidden breaks the orders-page sticky
   header). min-width:0 lets the panel shrink instead of growing past the viewport. */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; overflow-x: hidden; }
.panel { width: 100%; max-width: 420px; min-width: 0; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 30px 26px; }
/* Center the Cloudflare Turnstile widget within the panel (its iframe is a fixed ~300px). */
.cf-turnstile { display: flex; justify-content: center; max-width: 100%; }
/* The widget floors at 300px, so trim the auth padding on phones to give it room — fits without
   clipping on ~360px+ screens; the overflow-x guard above absorbs the sub-340px tail (centred). */
@media (max-width: 400px) {
    .auth  { padding: 14px; }
    .panel { padding: 22px 14px; }
}
.panel .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.panel .logo img { height: 30px; width: 30px; }
.panel .logo span { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; }
.panel h2 { font-size: 1.15rem; margin-bottom: 4px; }
.panel .sub { color: var(--muted); font-size: .88rem; margin: 0 0 18px; }
.panel .alt { margin: 18px 0 0; font-size: .88rem; }

/* ---- forms ---- */
label { display: block; font-size: .82rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 5px; }
.field { margin-bottom: 14px; }
input, select, textarea {
    width: 100%; padding: 10px 12px; font: inherit; color: var(--ink);
    background: var(--card); border: 1px solid var(--line-input); border-radius: 9px; transition: border-color .12s, box-shadow .12s;
}
input::placeholder { color: #b3b8a9; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.two { display: flex; gap: 12px; }
.two > .field { flex: 1; }
input.mono { font-family: var(--font-mono); }

/* Payment-method radios: override the full-width input rule above so the radio sits inline
   with its label. */
.paymethod { display: grid; gap: 8px; margin-top: 4px; }
.pm-opt { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.pm-opt input[type="radio"] { width: 18px; height: 18px; flex: none; accent-color: var(--brand); }

/* Remember-me checkbox on the login form — override the full-width input rule so
   the box sits inline with its label. */
.remember-me { display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
    font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.remember-me input[type="checkbox"] { width: 16px; height: 16px; flex: none; accent-color: var(--brand); }

/* Generic inline checkbox + label row (e.g. admin "on behalf of" toggle) — overrides
   the full-width input rule so the box sits inline with its label. */
.checkline { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink); cursor: pointer; }
.checkline input[type="checkbox"] { width: 16px; height: 16px; flex: none; accent-color: var(--brand); }

/* Admin client combobox for placing a delivery on another client's behalf. */
.client-combo { position: relative; }
.client-suggest { position: absolute; top: calc(100% - 1px); left: 0; right: 0; z-index: 35;
    background: var(--card); border: 1px solid var(--line-input); border-radius: 0 0 9px 9px;
    box-shadow: var(--shadow); max-height: 280px; overflow-y: auto; }
.client-suggest-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    width: 100%; padding: 9px 12px; border: 0; border-top: 1px solid var(--line);
    background: var(--card); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.client-suggest[hidden], .client-suggest-item[hidden], .client-suggest-empty[hidden] { display: none !important; }
.client-suggest-item:first-child { border-top: 0; }
.client-suggest-item:hover, .client-suggest-item.on { background: #f1f6e8; }
.client-suggest-name { font-size: .92rem; font-weight: 600; }
.client-suggest-email { color: var(--ink-soft); font-size: .8rem; }
.client-suggest-empty { padding: 12px; color: var(--muted); font-size: .84rem; text-align: center; }

/* Receiver-name typeahead dropdown (reuse a past delivery's receiver + route). Anchored to the
   receiver-name .field, which the script sets position:relative. */
.rcv-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
    background: var(--card); border: 1px solid var(--line-input); border-top: none;
    border-radius: 0 0 9px 9px; box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; }
.rcv-suggest-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px;
    cursor: pointer; border-top: 1px solid var(--line); }
.rcv-suggest-item:first-child { border-top: none; }
.rcv-suggest-item.on, .rcv-suggest-item:hover { background: #f1f6e8; }
.rcv-suggest-item .rcv-name { font-weight: 600; color: var(--ink); font-size: .92rem; }
.rcv-suggest-item .rcv-route { color: var(--ink-soft); font-size: .8rem; }

/* phone capture — +256 prefix chip joined to a local-number input (mirrors the storefront) */
.phone-input-group { display: flex; }
.phone-input-group .phone-prefix { display: inline-flex; align-items: center; padding: 0 12px;
    background: #fbfcf8; border: 1px solid var(--line-input); border-right: none; border-radius: 9px 0 0 9px;
    color: var(--ink-soft); font-family: var(--font-mono); font-size: .9rem; white-space: nowrap; }
.phone-input-group .js-phone-local { flex: 1 1 auto; min-width: 0; border-radius: 0 9px 9px 0; }

/* password reveal — eye button seated inside the field (see register.html) */
.pw-field { position: relative; }
.pw-field > input { padding-right: 42px; }
.pw-toggle { position: absolute; top: 0; right: 0; width: 40px; height: 100%;
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; padding: 0; cursor: pointer; color: var(--ink-soft); border-radius: 9px; }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.pw-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-toggle .eye-slash { display: none; }
.pw-toggle.revealed .eye-slash { display: inline; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; font-family: var(--font-body); font-weight: 600; font-size: .92rem;
    border: 1px solid transparent; border-radius: 9px; cursor: pointer; transition: background .12s, transform .04s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--brand-700); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); }

/* ---- flash / status messages ---- */
.note { padding: 10px 14px; border-radius: 9px; font-size: .88rem; margin-bottom: 16px; border: 1px solid; }
.note.ok { background: #f1f6e8; border-color: #d6e3b6; color: var(--ok); }
.note.err { background: #fbeeea; border-color: #f0cabe; color: var(--bad); }
.note.info { background: #eef4fb; border-color: #ccdbef; color: #2c5b8f; }

.pending-panel { padding: 30px; text-align: center; }
.pending-panel h3 { margin: 14px 0 8px; }
.pending-panel p { margin: 0 0 14px; }
.pending-spinner { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%;
    border: 4px solid #d6e3b6; border-top-color: var(--brand); animation: epd-spin .9s linear infinite; }
@keyframes epd-spin { to { transform: rotate(360deg); } }

/* ---- table (delivery orders) ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .88rem; }
th { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: .1em; color: var(--muted); background: #fbfcf8; }
tr:last-child td { border-bottom: none; }
td.num { font-family: var(--font-mono); color: var(--ink-soft); }

.empty { text-align: center; padding: 48px 24px; color: var(--muted); }

/* ---- status badges ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .04em; border: 1px solid; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-PAID, .badge-DISPATCHED, .badge-DELIVERED { color: var(--ok); background: #f1f6e8; border-color: #d6e3b6; }
.badge-PENDING, .badge-AWAITING_PAYMENT, .badge-DRIVER_ASSIGNED, .badge-PICKUP_EN_ROUTE,
.badge-PICKED_UP, .badge-DELIVERY_EN_ROUTE { color: var(--warn); background: #fbf4e3; border-color: #ecd9a8; }
.badge-FAILED, .badge-CANCELLED { color: var(--bad); background: #fbeeea; border-color: #f0cabe; }
/* Cash on delivery: dispatched but the fee is collected at the doorstep — a distinct info tone. */
.badge-COD { color: #2563eb; background: #eaf0fb; border-color: #c3d5f5; }

/* ---- the route spine: Pickup (A) -> Drop-off (B) on the new-delivery form ---- */
.route .leg { position: relative; padding: 0 0 26px 42px; }
.route .leg:last-child { padding-bottom: 0; }
.route .leg::before { content: attr(data-node); position: absolute; left: 0; top: 1px;
    width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
    font-family: var(--font-mono); font-size: .8rem; font-weight: 500; display: grid; place-items: center; }
.route .leg::after { content: ''; position: absolute; left: 12px; top: 30px; bottom: 4px; width: 2px;
    background-image: linear-gradient(var(--brand) 55%, transparent 0); background-size: 2px 9px; }
.route .leg:last-child::after { display: none; }
.route .leg h3 { margin-bottom: 10px; }
.route .leg[data-node="B"]::before { background: var(--marker-b); }

/* ---- tracking: horizontal A —— status —— B ---- */
.tracker { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 6px 0 22px; }
.tracker .end { display: grid; place-items: center; gap: 6px; text-align: center; width: 64px; }
.tracker .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff;
    font-family: var(--font-mono); display: grid; place-items: center; font-size: .85rem; }
.tracker .end:last-child .dot { background: var(--marker-b); }
/* icon dots (package pickup / pin drop-off) carry the artwork in an inline SVG,
   so drop the filled-circle backing and let the glyph stand on its own. */
.tracker .dot.icon,
.tracker .end:last-child .dot.icon { width: 34px; height: 34px; background: none; border-radius: 0; }
.tracker .dot.icon svg { display: block; }
.tracker .end small { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.tracker .span { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 16px); }
.tracker .span .here { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
.detail { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: .9rem; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; color: var(--ink); }

footer.fineprint { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 26px; }

/* ---- responsive ---- */
@media (max-width: 560px) {
    .two { flex-direction: column; gap: 0; }
    .topbar { padding: 12px 16px; }
    .wrap { margin: 22px auto; }
}

/* ---- orders page ---- */
/* Normal document scroll so the table can grow to any length. The wide table
   scrolls horizontally INSIDE its card (keeping the wrap's side padding intact
   on phones), and the + floats fixed so it's always reachable no matter how many
   rows there are. */
body.orders-page .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.orders-page table { min-width: 640px; }                 /* wide table -> horizontal scroll on phones */
body.orders-page thead th { position: sticky; top: 0; z-index: 1; background: var(--card); }
body.orders-page tbody tr:nth-child(even) { background: var(--paper); }   /* zebra: white / faint grey */
body.orders-page tbody tr[data-href] { cursor: pointer; }
body.orders-page tbody tr:hover { background: #eef2e0; }
/* Clearance so the floating + never sits on top of the last rows. */
body.orders-page .wrap { padding-bottom: 100px; }

/* Floating action button: fixed & centred, always in view regardless of scroll. */
.fab-row { display: flex; justify-content: center; }
.fab { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom));
    transform: translateX(-50%); z-index: 50;
    width: 60px; height: 60px; border-radius: 50%; display: block; text-decoration: none;
    box-shadow: 0 4px 14px rgba(108, 134, 39, .45), 0 2px 4px rgba(28, 33, 23, .2);
    transition: transform .14s, box-shadow .14s; }
.fab:hover { transform: translateX(-50%) translateY(-2px); text-decoration: none;
    box-shadow: 0 9px 24px rgba(108, 134, 39, .5), 0 3px 6px rgba(28, 33, 23, .25); }
.fab:active { transform: translateX(-50%); }
.fab svg { display: block; width: 100%; height: 100%; }
.fab svg circle { transition: fill .14s; }
.fab:hover svg circle { fill: var(--brand-700); }

/* ---- map picker (Google Maps) ---- */
.pickbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg button { border: none; background: var(--card); padding: 8px 14px; font: inherit; font-size: .82rem;
    color: var(--ink-soft); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--brand); color: #fff; }
.seg button[data-pick="dropoff"].on { background: #d7263d; }
.btn-sm { padding: 7px 12px; font-size: .82rem; }

/* "My deliveries" column-header filters (funnel icon + popover) */
.th-filter { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.col-filter { display: inline-flex; }
.col-filter > summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center;
    padding: 2px; border-radius: 5px; color: var(--muted);
}
.col-filter > summary::-webkit-details-marker { display: none; }
.col-filter > summary:hover { color: var(--ink); background: rgba(0, 0, 0, .06); }
.col-filter > summary svg { width: 12px; height: 12px; fill: currentColor; }
.col-filter.active > summary { color: var(--brand); }   /* column has an active filter */
.col-pop {
    position: fixed; z-index: 60; min-width: 190px; max-width: 88vw;
    background: var(--card); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .16); padding: 12px;
    display: flex; flex-direction: column; gap: 10px; font-weight: 400;
}
.col-pop label { display: flex; flex-direction: column; gap: 4px; font-size: .76rem;
    color: var(--muted); text-transform: none; letter-spacing: 0; }
.col-pop select, .col-pop input { width: 100%; }
.col-pop .pop-actions { display: flex; gap: 8px; }
td.empty { text-align: center; color: var(--muted); padding: 26px 16px; }
.quote { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; flex-wrap: wrap; }
.quote #feeOut strong { color: var(--ink); font-family: var(--font-mono); font-size: .95rem; }
.map { height: 300px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; overflow: hidden; }
/* Google Places Autocomplete dropdown */
.pac-container { font-family: var(--font-body); border: 1px solid var(--line); border-top: none;
    border-radius: 0 0 9px 9px; box-shadow: var(--shadow); }
.pac-item { padding: 6px 12px; font-size: .86rem; color: var(--ink-soft); cursor: pointer; }
.pac-item-query { font-size: .9rem; color: var(--ink); }

/* ---- floating WhatsApp chat FAB (every page) ---- */
/* WhatsApp brand green (kept off-brand on purpose — it's the universally recognised
   chat affordance). Fixed bottom-right above page content; number resolves per-tenant
   via EpdContactModelAdvice, hidden when unset. */
.whatsapp-fab {
    display: flex; align-items: center; justify-content: center;
    position: fixed; right: 16px; bottom: 16px; z-index: 1050;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform .08s;
}
.whatsapp-fab:hover { transform: scale(1.05); }
.whatsapp-fab svg { width: 28px; height: 28px; display: block; }

/* ---- weekly closure overlay (fragments/closed-modal) ---- */
/* Above the WhatsApp FAB (1050) so nothing sits on top of a real closure. No close
   control and no backdrop dismiss — store-closed.js only toggles .is-open. */
.closed-overlay {
    display: none;
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000;
    background: rgba(28, 33, 23, .84);
    padding: 24px; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.closed-overlay.is-open { display: flex; align-items: center; justify-content: center; }
body.store-closed-locked { overflow: hidden; }

.closed-panel {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    border: 1px solid var(--line);
    max-width: 420px; width: 100%; margin: auto; padding: 34px 30px 28px; text-align: center;
}
/* The route spine, stopped short: the signature A->B mark with no B to travel to. */
.closed-mark {
    width: 10px; height: 10px; border-radius: 50%; background: var(--brand);
    margin: 0 auto 50px; position: relative;   /* clears the 40px spine below it */
}
.closed-mark::after {
    content: ''; position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
    width: 2px; height: 26px;
    background: repeating-linear-gradient(var(--line) 0 4px, transparent 4px 8px);
}
.closed-panel h2 { margin: 0 0 12px; }
.closed-panel p { margin: 0 0 12px; color: var(--ink-soft); font-size: .95rem; }
.closed-reopen:empty, .closed-countdown:empty { display: none; }
.closed-reopen {
    color: var(--brand-700); font-weight: 500; letter-spacing: -.02em;
}
.closed-countdown { margin-bottom: 0 !important; }

/* ---- a11y ---- */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
