/* =====================================================================
   CallMeX UI kit — cx.css
   Rebuilt 2026-10-14 from the house component libraries (PageLab kit,
   AdminLab, AuthLab, StateLab), re-tokenised for the CallMeX brand.

   Brand colours are the ones MEASURED off the logo (see the history in
   legacy/tokens.css): green #079914 and near-neutral black #171717.
   Contrast was checked, not assumed:
     white on #067F11 (the button green)  5.18 : 1   (AA, body text)
     white on #079914 (the logo green)    3.77 : 1   (fails — decoration only)
     #171717 on #079914                   4.76 : 1
   So buttons use the darker green-600; the logo green is for marks, bars
   and big numerals on the black bands.

   Naming: kit class names are kept as they are (.btx .pc .fm-* .tcard .tbl
   .box .kpi .pill …) so the skill's patterns paste in unchanged. NEVER name a
   page class after Bootstrap (.row .col .card .btn .badge .nav .table …) or
   after one of the kit's own (.st .acc .pc .tag .sr …).

   Direction: written with logical properties — one stylesheet for RTL (ar,
   ur) and LTR (en). Bootstrap's reboot is loaded before this file; the
   direction-matching build (rtl / ltr) is chosen in includes/head.php.
   ===================================================================== */

/* ---------- tokens ---------- */
:root {
  --brand: #067F11;
  --brand-rgb: 6, 127, 17;
  --brand-ink: #056B0E;
  --green: #079914;            /* the logo green — decoration only */
  --green-rgb: 7, 153, 20;
  --accent: #171717;           /* the logo black: dark bands, bulk/save bars */
  --accent-rgb: 23, 23, 23;
  --ink: #171717;
  --muted: #595f59;
  --line: #e2e6e2;
  --surface: #ffffff;
  --surface-2: #f4f6f4;
  --page: #ffffff;
  --side: #121412;             /* portal sidebar */
  --side-ink: #c5ccc5;
  --ok: #056B0E;   --ok-bg: #e5f3e6;
  --warn: #5f4aa6; --warn-bg: #f7f5fd;
  --danger: #b8382a; --danger-bg: #fbe7e4;
  --info: #1d5f99; --info-bg: #e3eff9;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(18,20,18,.04), 0 10px 28px rgba(18,20,18,.06);
  --shadow-lg: 0 2px 4px rgba(18,20,18,.05), 0 28px 60px rgba(18,20,18,.14);
  --head-h: 76px;
  --ease: 220ms cubic-bezier(.2,.7,.3,1);
  --font: 'Cairo', 'Noto Naskh Arabic', system-ui, Tahoma, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
/* Urdu keeps Cairo's rhythm but leads with a Naskh face that carries the
   Urdu-only letterforms Cairo lacks. */
html[lang="ur"] { --font: 'Noto Naskh Arabic', 'Cairo', system-ui, Tahoma, sans-serif; }
html[lang="ur"] body { line-height: 2; }

/* ################ PAGELAB KIT ################ */
/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-family: var(--font); line-height: 1.35; font-weight: 800; color: var(--ink); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid rgba(var(--brand-rgb), .55); outline-offset: 3px; border-radius: 8px; }
code { direction: ltr; unicode-bidi: isolate; font-family: var(--mono); font-size: .9em; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 56px); }
.num { direction: ltr; unicode-bidi: isolate; display: inline-block; }
td.num, th.num { display: table-cell; } /* .num on a cell must not break the table */
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -60px; inset-inline-start: 16px; z-index: 100; padding: .5rem 1rem; border-radius: 10px; background: var(--ink); color: var(--surface); text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* sections */
.sec { padding-block: clamp(56px, 8vw, 112px); }
.sec-tight { padding-block: clamp(36px, 5vw, 64px); }
.sec-alt { background: var(--surface-2); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .2rem .9rem; border-radius: 999px; background: rgba(var(--brand-rgb), .08); border: 1px solid rgba(var(--brand-rgb), .16); color: var(--brand-ink); font-size: 15px; font-weight: 700; }
.st { display: grid; align-content: start; gap: .6rem; margin-bottom: clamp(28px, 4vw, 48px); }
.st > .eyebrow { justify-self: start; }
.st h2 { font-size: clamp(28px, 3.4vw, 46px); margin: 0; }
.st p { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); margin: 0; }
.st-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; }
@media (max-width: 767.98px) { .st-split { grid-template-columns: minmax(0, 1fr); } }
.pl-lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }

/* ---------- buttons (ButtonLab) ---------- */
.btx { --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: var(--h); padding: 0 1.25rem; border: 1.5px solid transparent; border-radius: var(--radius-sm); background: var(--brand); color: #fff; font: 700 16px var(--font); line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background var(--ease), border-color var(--ease), filter var(--ease), transform 120ms ease, box-shadow var(--ease); }
.btx:hover { filter: brightness(1.08); color: #fff; }
.btx:active { transform: translateY(1px) scale(.98); }
.btx-soft { background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); }
.btx-soft:hover { filter: none; background: rgba(var(--brand-rgb), .16); color: var(--brand-ink); }
.btx-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btx-ghost:hover { filter: none; background: var(--surface-2); color: var(--ink); }
.btx-dark { background: var(--ink); color: var(--surface); }
.btx-dark:hover { color: var(--surface); }
.btx-light { background: #fff; color: #111827; }
.btx-light:hover { color: #111827; filter: brightness(.96); }
.btx-line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btx-line-light:hover { color: #fff; background: rgba(255,255,255,.1); filter: none; }
.btx-sm { --h: 44px; padding: 0 1rem; font-size: 15px; }
.btx-lg { --h: 56px; padding: 0 1.6rem; font-size: 17px; border-radius: 14px; }
.btx-pill { border-radius: 999px; }
.btx-icon { width: var(--h); padding: 0; }
.btx-block { width: 100%; }
.btx[disabled] { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.btx.is-loading { color: transparent !important; pointer-events: none; }
.btx.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid #fff; border-inline-end-color: transparent; animation: pl-spin 700ms linear infinite; }
.btx-ghost.is-loading::after, .btx-soft.is-loading::after { border-color: var(--brand); border-inline-end-color: transparent; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
.icon-btn { width: 44px; height: 44px; flex: 0 0 auto; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink); font-size: 1.15rem; cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); }
.icon-btn .badge-n { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 800; line-height: 22px; text-align: center; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--brand-ink); font-weight: 700; text-decoration: none; min-height: 44px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.flip-rtl { display: inline-block; transform: scaleX(-1); }

/* ---------- header (NavLab core) ---------- */
.ph { position: sticky; top: 0; z-index: 50; transition: box-shadow var(--ease), background var(--ease); }
.ph-in { display: flex; align-items: center; gap: 1.25rem; min-height: var(--head-h); }
.ph-logo { display: inline-flex; align-items: center; gap: .6rem; font-size: 22px; font-weight: 800; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.ph-logo .mk { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--brand); color: #fff; font-size: 1.15rem; }
.ph-nav { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ph-nav a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .9rem; border-radius: 10px; color: var(--muted); font-weight: 700; text-decoration: none; transition: color var(--ease), background var(--ease); }
.ph-nav a:hover { color: var(--ink); background: rgba(var(--brand-rgb), .06); }
.ph-nav a[aria-current="page"] { color: var(--brand-ink); }
.ph-act { display: flex; align-items: center; gap: .4rem; margin-inline-start: auto; }
.ph-burger { display: none; }
.ph.is-stuck { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(17,24,39,.06); }
/* phone menu panel */
.ph-panel { position: fixed; inset: 0; z-index: 70; display: none; }
.ph-panel.is-open { display: block; }
.ph-panel .scrim { position: absolute; inset: 0; background: rgba(8,10,22,.5); backdrop-filter: blur(2px); animation: pl-fade 200ms ease; }
.ph-panel .sheet { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(360px, 88vw); display: flex; flex-direction: column; gap: 1rem; padding: 18px; overflow-y: auto; background: var(--surface); box-shadow: var(--shadow-lg); animation: pl-in-end 260ms cubic-bezier(.2,.7,.3,1); }
.ph-panel .sheet-head { display: flex; align-items: center; justify-content: space-between; }
.ph-panel nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 .75rem; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 18px; }
.ph-panel nav a:hover, .ph-panel nav a[aria-current="page"] { background: rgba(var(--brand-rgb), .08); color: var(--brand-ink); }
@keyframes pl-fade { from { opacity: 0; } }
@keyframes pl-in-end { from { transform: translateX(-100%); } }
[dir="ltr"] .ph-panel .sheet { animation-name: pl-in-end-ltr; }
@keyframes pl-in-end-ltr { from { transform: translateX(100%); } }
@media (max-width: 991.98px) {
  .ph-nav, .ph-wide { display: none !important; }
  .ph-burger { display: inline-grid; }
}

/* ---------- footer core ---------- */
.pf { padding-top: clamp(48px, 6vw, 80px); }
.pf-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.pf h4 { font-size: 16px; margin-bottom: .8rem; }
.pf ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pf ul a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; font-weight: 600; }
.pf ul a:hover { color: var(--ink); }
.pf-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: clamp(32px, 4vw, 56px); padding-block: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.pf-social { display: flex; gap: .4rem; }
@media (max-width: 991.98px) { .pf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-cols > :first-child { grid-column: 1 / -1; } }
@media (max-width: 479.98px) { .pf-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- card shell (CardKit) ---------- */
.pc { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 2vw, 26px); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.pc-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(var(--brand-rgb), .25); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.ico { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 16px; background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); font-size: 1.4rem; }
/* a category shown by its own side-view vehicle (category_side()) instead of an icon: a wider tile that lets the picture breathe */
.ico.ico-veh { width: 92px; height: 60px; padding: 6px 8px; border-radius: 16px; background: linear-gradient(180deg, rgba(var(--brand-rgb), .06), rgba(var(--brand-rgb), .13)); }
.vside { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(10, 30, 15, .22)); }
.pc > .ico.ico-veh { width: 128px; height: 78px; padding: 8px 10px; }
.ico-veh > .vside, .ocat-ico > .vside { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; border-radius: 0; background: none; }
.ico-veh { overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 15px; font-weight: 700; white-space: nowrap; }
.tag-brand { background: rgba(var(--brand-rgb), .1); border-color: transparent; color: var(--brand-ink); }
.tag-ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.avatar { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }

/* ---------- fields (FormLab core) ---------- */
.fm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.fm-grid .full { grid-column: 1 / -1; }
.fm-field { display: grid; gap: .35rem; min-width: 0; }
.fm-label { font-weight: 700; font-size: 15px; }
.fm-label .opt { color: var(--muted); font-weight: 600; }
.fm-input { width: 100%; min-height: 52px; padding: .6rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 500 16px var(--font); transition: border-color var(--ease), box-shadow var(--ease); }
textarea.fm-input { min-height: 140px; resize: vertical; line-height: 1.8; }
.fm-input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.fm-input:focus { outline: none; border-color: rgba(var(--brand-rgb), .7); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); }
.fm-input[dir="ltr"] { text-align: left; }
.fm-field.is-bad .fm-input { border-color: var(--danger); }
.fm-err { min-height: 0; color: var(--danger); font-size: 15px; font-weight: 600; }
.fm-err:empty { display: none; }
.fm-check { display: flex; align-items: flex-start; gap: .6rem; min-height: 44px; padding-top: .55rem; cursor: pointer; font-size: 15px; }
.fm-check input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--brand); flex: 0 0 auto; }
.fm-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.fm-chips label { cursor: pointer; }
.fm-chips input { position: absolute; opacity: 0; pointer-events: none; }
.fm-chips input + span { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px; transition: all var(--ease); }
.fm-chips input:checked + span { border-color: var(--brand); background: rgba(var(--brand-rgb), .08); color: var(--brand-ink); }
.fm-chips input:focus-visible + span { outline: 3px solid rgba(var(--brand-rgb), .55); outline-offset: 2px; }
.fm-done { display: none; text-align: center; padding: 2rem 1rem; }
[data-state="done"] .fm-done { display: block; }
[data-state="done"] .fm-body { display: none; }
.fm-done .ok-ring { width: 72px; height: 72px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 2rem; }
@media (max-width: 575.98px) { .fm-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- accordion (details) ---------- */
.acc { display: grid; gap: 10px; }
.acc details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color var(--ease), box-shadow var(--ease); }
.acc details[open] { border-color: rgba(var(--brand-rgb), .3); box-shadow: var(--shadow); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: .75rem 1.25rem; cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "\F4FE"; font-family: "bootstrap-icons"; font-size: 1.1rem; color: var(--brand-ink); transition: transform var(--ease); flex: 0 0 auto; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc-body { padding: 0 1.25rem 1.1rem; color: var(--muted); }

/* ---------- tabs ---------- */
.tabs-list { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tabs-list button { min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 700 15px var(--font); cursor: pointer; }
.tabs-list button[aria-selected="true"] { background: var(--surface); color: var(--brand-ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
[role="tabpanel"][hidden] { display: none; }

/* ---------- toasts + dialogs (OverlayLab core) ---------- */
.ov-toasts { position: fixed; z-index: 90; inset-inline: 16px; bottom: 16px; display: grid; justify-items: center; gap: 10px; pointer-events: none; }
.ov-toast { pointer-events: auto; display: flex; align-items: center; gap: .75rem; width: min(440px, 100%); padding: 10px 10px 10px 14px; padding-inline: 14px 10px; border-radius: 16px; background: #141a2b; color: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.25); animation: pl-toast 300ms cubic-bezier(.2,.7,.3,1); }
.ov-toast .ti { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.ov-toast.ok .ti { background: #16a34a; } .ov-toast.err .ti { background: #dc2626; } .ov-toast.info .ti { background: #2563eb; }
.ov-toast .tt { flex: 1; min-width: 0; line-height: 1.5; }
.ov-toast b { display: block; font-size: 15px; }
.ov-toast small { display: block; color: rgba(255,255,255,.75); font-size: 15px; }
.ov-toast .ta { min-height: 44px; padding: 0 .8rem; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font: 700 15px var(--font); cursor: pointer; }
.ov-toast.is-out { animation: pl-toast-out 200ms ease forwards; }
@keyframes pl-toast { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes pl-toast-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }
.ov-dialog { padding: 0; border: 0; border-radius: 24px; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.ov-dialog::backdrop { background: rgba(8,10,22,.55); backdrop-filter: blur(3px); }
.ov-dialog[open] { animation: pl-pop 260ms cubic-bezier(.2,.7,.3,1); }
@keyframes pl-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.ov-dialog .dl-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ov-dialog .dl-head h3 { margin: 0; font-size: 20px; }
.ov-dialog .dl-body { padding: 18px; }
.ov-drawer { margin: 0; margin-inline-start: auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); border-radius: 0; display: none; flex-direction: column; }
.ov-drawer[open] { display: flex; animation: pl-in-end 300ms cubic-bezier(.2,.7,.3,1); }
.ov-drawer .dl-body { flex: 1; overflow-y: auto; }
.ov-drawer .dl-foot { padding: 16px 18px; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
@media (max-width: 575.98px) { .ov-sheet-sm { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 24px 24px 0 0; } }

/* ---------- reveal on scroll (only when JS is on) ---------- */
.js-rv .rv { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.7,.3,1); }
.js-rv .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-rv .rv { opacity: 1; transform: none; }
}

/* ################ ADMINLAB KIT ################ */
/* ==========================================================
   AdminLab — back-office shell and parts, on top of kit/pl.css
   ========================================================== */
body { background: var(--page); font-size: 16px; }
.num { direction: ltr; unicode-bidi: isolate; display: inline-block; white-space: nowrap; }
.hide-s { }
@media (max-width: 767.98px) { .hide-s { display: none !important; } }

/* ---------- shell ---------- */
.ad-app { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100dvh; transition: grid-template-columns 220ms ease; }
.side-mini .ad-app { grid-template-columns: 84px minmax(0, 1fr); }
.ad-side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--side); color: var(--side-ink); z-index: 60; }
.sd-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; }
.sd-logo { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-size: 21px; font-weight: 800; line-height: 1.2; }
.sd-logo .mk { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: var(--brand); font-size: 1.2rem; }
.sd-logo small { display: block; color: var(--side-ink); font-size: 15px; font-weight: 600; }
.sd-close { display: none; color: #fff; }
.sd-nav { flex: 1; overflow-y: auto; padding: 6px 12px; scrollbar-width: thin; }
.sd-h { margin: 16px 12px 6px; color: rgba(201,207,224,.6); font-size: 15px; font-weight: 800; }
.sd-nav a { position: relative; display: flex; align-items: center; gap: .8rem; min-height: 46px; padding: 0 12px; border-radius: 12px; color: var(--side-ink); text-decoration: none; font-weight: 700; }
.sd-nav a > i { width: 22px; font-size: 1.15rem; text-align: center; }
.sd-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sd-nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.sd-nav a[aria-current="page"]::before { content: ""; position: absolute; inset-inline-start: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--brand); }
.sd-nav .cnt { margin-inline-start: auto; min-width: 26px; padding: 0 .4rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 800; text-align: center; line-height: 1.6; }
.sd-nav .cnt.warn { background: #7660c4; }
.sd-foot { display: grid; gap: 6px; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.sd-store { display: flex; align-items: center; gap: .6rem; padding: 8px 12px; font-size: 15px; font-weight: 700; }
.sd-store .dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.15); }
.sd-mini { display: flex; align-items: center; gap: .8rem; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--side-ink); font: 700 15px var(--font); cursor: pointer; }
.sd-mini:hover { background: rgba(255,255,255,.07); color: #fff; }
.sd-mini i { width: 22px; font-size: 1.15rem; }
/* mini sidebar: icons only, the label shows as a tooltip */
.side-mini .ad-side .lbl, .side-mini .sd-nav .cnt { display: none; }
.side-mini .sd-h { height: 1px; margin: 12px; background: rgba(255,255,255,.08); }
.side-mini .sd-nav a, .side-mini .sd-mini, .side-mini .sd-store { justify-content: center; padding: 0; }
.side-mini .sd-mini i { transform: scaleX(-1); }
.side-mini .sd-head { justify-content: center; }
.side-mini .sd-nav a:hover::after, .side-mini .sd-nav a:focus-visible::after { content: attr(data-tip); position: absolute; inset-inline-start: calc(100% + 10px); top: 50%; transform: translateY(-50%); z-index: 70; padding: .3rem .8rem; border-radius: 10px; background: #0b1024; color: #fff; font-size: 15px; white-space: nowrap; box-shadow: var(--shadow-lg); }
.side-mini .sd-nav a .cnt { display: block; position: absolute; top: 4px; inset-inline-end: 10px; min-width: 10px; width: 10px; height: 10px; padding: 0; font-size: 0; }
.ad-scrim { display: none; }
.ad-main { min-width: 0; display: flex; flex-direction: column; }
.ad-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .8rem; min-height: 68px; padding: 0 clamp(14px, 2vw, 28px); background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ad-burger { display: none; }
.ad-search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: .6rem; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); font: 500 15px var(--font); text-align: start; cursor: pointer; }
.ad-search span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ad-search:hover { border-color: rgba(var(--brand-rgb), .5); }
kbd { display: inline-block; padding: .05rem .45rem; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: 700 15px var(--mono); }
.ad-acts { display: flex; align-items: center; gap: .3rem; margin-inline-start: auto; }
.ad-pop { position: relative; }
.icon-btn { position: relative; }
.icon-btn .badge-n { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 800; line-height: 22px; text-align: center; }
.pop-pan { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; display: none; width: min(380px, calc(100vw - 24px)); padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.pop-pan.sm { width: 240px; }
.pop-pan.is-open { display: grid; gap: 2px; animation: pl-pop 160ms ease; }
.pp-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 8px; }
.pp-h button { min-height: 40px; border: 0; background: none; color: var(--brand-ink); font: 700 15px var(--font); cursor: pointer; }
.nt { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .7rem; padding: 10px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.nt:hover { background: var(--surface-2); }
.nt > i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--brand-ink); }
.nt b { display: block; font-size: 15px; } .nt > span > span { color: var(--muted); font-size: 15px; }
.nt.unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-start: .4rem; border-radius: 50%; background: var(--brand); vertical-align: middle; }
.pop-pan.sm a, .pop-pan.sm button { display: flex; align-items: center; gap: .7rem; min-height: 44px; padding: 0 .8rem; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 700 15px var(--font); text-decoration: none; cursor: pointer; text-align: start; }
.pop-pan.sm a:hover, .pop-pan.sm button:hover { background: var(--surface-2); }
.pop-pan.sm .out { color: var(--danger); }
.ad-me { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 .5rem; border: 1px solid transparent; border-radius: 14px; background: none; color: var(--ink); font-family: var(--font); text-align: start; cursor: pointer; line-height: 1.3; }
.ad-me:hover { background: var(--surface); border-color: var(--line); }
.ad-me small { display: block; color: var(--muted); font-size: 15px; }
.av { width: 40px; height: 40px; flex: 0 0 auto; display: inline-grid; place-items: center; border-radius: 50%; background: hsl(var(--h, 20) 70% 92%); color: hsl(var(--h, 20) 55% 32%); font-weight: 800; font-size: 17px; }
.av.lg { width: 64px; height: 64px; font-size: 26px; }
.ad-content { flex: 1; display: grid; gap: clamp(16px, 1.6vw, 22px); align-content: start; padding: clamp(16px, 2vw, 28px); min-width: 0; }
@media (max-width: 991.98px) {
  .ad-app, .side-mini .ad-app { grid-template-columns: minmax(0, 1fr); }
  .ad-side { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(300px, 86vw); transform: translateX(110%); transition: transform 260ms cubic-bezier(.2,.7,.3,1); visibility: hidden; }
  [dir="ltr"] .ad-side { transform: translateX(-110%); }
  .ad-side.is-open { transform: none; visibility: visible; }
  .side-mini .ad-side .lbl, .side-mini .sd-nav .cnt { display: revert; }
  .side-mini .sd-nav a, .side-mini .sd-store { justify-content: flex-start; padding: 0 12px; }
  .side-mini .sd-h { height: auto; margin: 16px 12px 6px; background: none; }
  .side-mini .sd-head { justify-content: space-between; }
  .ad-scrim.on { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(8,10,22,.5); }
  .sd-close { display: inline-grid; } .sd-mini { display: none; }
  .ad-burger { display: inline-grid; }
  .ad-search span, .ad-search kbd { display: none; } .ad-search { flex: 0 0 auto; width: 46px; padding: 0; justify-content: center; }
}

/* ---------- page parts ---------- */
.pg-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .8rem 1rem; }
.pg-h h1 { font-size: clamp(24px, 2.4vw, 32px); margin: 0; }
.pg-h p { margin: .15rem 0 0; color: var(--muted); }
.pg-h .acts { display: flex; flex-wrap: wrap; gap: .5rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .2rem; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.crumbs li + li::before { content: "/"; margin-inline-end: .3rem; opacity: .6; }
.crumbs a { color: inherit; text-decoration: none; } .crumbs a:hover { color: var(--brand-ink); text-decoration: underline; }
.box { min-width: 0; padding: clamp(16px, 1.6vw, 22px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.box-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 14px; }
.box-h h2 { font-size: 18px; margin: 0; }
.box-h .muted { font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .7rem; border-radius: 999px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.pill.info { background: var(--info-bg); color: var(--info); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.bad { background: var(--danger-bg); color: var(--danger); }
.pill.mute { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill.brand { background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); }
.who { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.who b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; color: var(--muted); font-size: 15px; }
.lk { color: var(--ink); font-weight: 800; text-decoration: none; }
.lk:hover { color: var(--brand-ink); text-decoration: underline; }
.thumbs { display: inline-flex; align-items: center; }
.thumbs img, .thumbs .more { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; border: 2px solid var(--surface); background: var(--surface-2); }
.thumbs > * + * { margin-inline-start: -10px; }
.thumbs .more { display: inline-grid; place-items: center; font-size: 15px; font-weight: 800; color: var(--muted); }
.risk { color: var(--warn); margin-inline-start: .4rem; }
.prod { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.prod img { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.prod small { display: block; color: var(--muted); font-size: 15px; }
.tbl.compact .prod img { width: 34px; height: 34px; }
.tagx { display: inline-flex; padding: 0 .6rem; margin-inline-end: .3rem; border-radius: 8px; background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); font-size: 15px; font-weight: 800; white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.kpi { display: grid; gap: .15rem; }
.kpi .lbl { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 700; font-size: 15px; }
.kpi .lbl i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); }
.kpi .val { font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; line-height: 1.3; }
.kpi .val small { font-size: 15px; color: var(--muted); font-weight: 600; }
.chg { font-size: 15px; font-weight: 700; } .chg.up { color: var(--ok); } .chg.down { color: var(--danger); }
.kpi svg { display: block; width: 100%; height: 40px; margin-top: 6px; overflow: visible; }
@media (max-width: 1199.98px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .kpis { grid-template-columns: minmax(0, 1fr); } }
.tgl { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; cursor: pointer; }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl > span { position: relative; width: 44px; height: 26px; flex: 0 0 auto; border-radius: 26px; background: var(--line); transition: background var(--ease); }
.tgl > span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start var(--ease); }
.tgl input:checked + span { background: var(--ok); }
.tgl input:checked + span::after { inset-inline-start: 21px; }
.tgl input:focus-visible + span { outline: 3px solid rgba(var(--brand-rgb), .5); outline-offset: 2px; }
.tgl em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--muted); }
.utabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.utabs button, .utabs a { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; padding: 0 .9rem; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font: 800 15px var(--font); white-space: nowrap; cursor: pointer; text-decoration: none; }
.utabs [aria-pressed="true"], .utabs [aria-selected="true"], .utabs [aria-current="page"] { color: var(--ink); border-color: var(--brand); }
.utabs .n { min-width: 24px; padding: 0 .4rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 15px; text-align: center; }
.utabs [aria-pressed="true"] .n { background: rgba(var(--brand-rgb), .12); color: var(--brand-ink); }
.empty { display: grid; justify-items: center; gap: .4rem; padding: 40px 20px; text-align: center; }
.empty > i { font-size: 2.4rem; color: var(--muted); }

/* ---------- data table (tbl) ---------- */
.tcard { min-width: 0; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); container-type: inline-size; }
.tbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: 14px 16px; }
.tsearch { position: relative; flex: 1 1 260px; max-width: 420px; }
.tsearch i { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); color: var(--muted); }
.tsearch input { width: 100%; min-height: 46px; padding: 0 14px; padding-inline-start: 42px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 500 15px var(--font); }
.tsearch input:focus { outline: none; border-color: rgba(var(--brand-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12); }
.tbar .sp { flex: 1; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.tbl th, .tbl td { padding: 10px 14px; text-align: start; vertical-align: middle; border-top: 1px solid var(--line); }
.tbl thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); color: var(--muted); font-weight: 800; white-space: nowrap; border-top: 0; }
.tbl th button.srt { display: inline-flex; align-items: center; gap: .3rem; min-height: 40px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.tbl th button.srt::after { content: "\F127"; font-family: "bootstrap-icons"; font-size: .8rem; opacity: .45; }
.tbl th[aria-sort="ascending"] button.srt::after { content: "\F148"; opacity: 1; }
.tbl th[aria-sort="descending"] button.srt::after { content: "\F128"; opacity: 1; }
.tbl th[aria-sort] { color: var(--ink); }
.tbl tbody tr { transition: background var(--ease); }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.tbl tbody tr.is-sel { background: rgba(var(--brand-rgb), .06); }
.tbl tbody tr[hidden] { display: none; }
.tbl .sel { width: 44px; }
.tbl .sel input { width: 20px; height: 20px; accent-color: var(--brand); cursor: pointer; }
.tbl .amt { font-weight: 800; white-space: nowrap; }
.tbl .act { width: 56px; text-align: end; }
.tbl td small.u { display: block; color: var(--muted); font-size: 15px; }
.tbl.compact th, .tbl.compact td { padding-block: 5px; }
.tbl.compact .thumbs img, .tbl.compact .av { width: 30px; height: 30px; font-size: 15px; }
.bulk { position: sticky; bottom: 12px; z-index: 5; display: none; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin: 0 12px 12px; padding: 10px 14px; border-radius: 16px; background: var(--accent); color: #fff; box-shadow: var(--shadow-lg); }
.bulk.on { display: flex; animation: pl-pop 160ms ease; }
.bulk b { margin-inline-end: auto; }
.bulk .btx { --h: 40px; font-size: 15px; }
.bulk .btx-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.bulk .btx-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.tfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.pager { display: flex; align-items: center; gap: .3rem; }
.pager button { min-width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 15px var(--font); cursor: pointer; }
.pager button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.pager button[disabled] { opacity: .4; cursor: not-allowed; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { min-height: 44px; min-width: 44px; padding: 0 .8rem; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 700 15px var(--font); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.tnone { display: none; padding: 40px 20px; text-align: center; color: var(--muted); }
.tnone.on { display: block; }
/* below 640px of its own width the table becomes cards (labels from data-label); wider tables scroll inside .tbl-wrap */
@container (max-width: 640px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody { display: block; }
  .tbl tbody tr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .3rem 1rem; padding: 14px 16px; padding-inline-start: 50px; border-top: 1px solid var(--line); }
  .tbl tbody tr[hidden] { display: none; }
  .tbl td { display: block; padding: 0; border: 0; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 15px; font-weight: 700; }
  .tbl td.sel { position: absolute; top: 14px; inset-inline-start: 14px; width: auto; }
  .tbl td.act { position: absolute; top: 8px; inset-inline-end: 8px; width: auto; }
  /* the row's title cell (first data cell) spans the card and drops its label */
  .tbl td.sel + td, .tbl td:first-child[data-label] { grid-column: 1 / -1; padding-inline-end: 44px; }
  .tbl td.sel + td::before, .tbl td:first-child[data-label]::before { display: none; }
  .tbl tbody tr:not(:has(td.sel)) { padding-inline-start: 16px; }
}

/* ---------- forms / save bar ---------- */
.savebar { position: sticky; bottom: 0; z-index: 40; display: none; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; margin: 0 calc(-1 * clamp(16px, 2vw, 28px)) calc(-1 * clamp(16px, 2vw, 28px)); padding: 12px clamp(16px, 2vw, 28px); background: var(--accent); color: #fff; box-shadow: 0 -10px 30px rgba(0,0,0,.15); }
.savebar.on { display: flex; animation: sb-in 220ms ease; }
@keyframes sb-in { from { transform: translateY(100%); } }
.savebar b { margin-inline-end: auto; display: inline-flex; align-items: center; gap: .5rem; }
.savebar .btx-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.savebar .btx-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.fm-field .hint { color: var(--muted); font-size: 15px; }
.fm-select-b { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 500 16px var(--font); cursor: pointer; }

/* ---------- command palette ---------- */
.ad-pal { width: min(640px, calc(100vw - 24px)); margin-top: 12vh; padding: 0; }
.pal-in { display: flex; align-items: center; gap: .7rem; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.pal-in i { color: var(--muted); font-size: 1.1rem; }
.pal-in input { flex: 1; min-width: 0; min-height: 56px; border: 0; background: none; outline: none; color: var(--ink); font: 500 18px var(--font); }
.pal-l { max-height: min(420px, 55vh); overflow-y: auto; padding: 8px; }
.pal-l .g { padding: 8px 10px 4px; color: var(--muted); font-size: 15px; font-weight: 800; }
.pal-l [role="option"] { display: flex; align-items: center; gap: .8rem; min-height: 48px; padding: 0 12px; border-radius: 12px; color: var(--ink); text-decoration: none; cursor: pointer; }
.pal-l [role="option"] > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--brand-ink); }
.pal-l [role="option"] small { margin-inline-start: auto; color: var(--muted); font-size: 15px; }
.pal-l [aria-selected="true"] { background: rgba(var(--brand-rgb), .08); }
.pal-l mark { padding: 0; background: none; color: var(--brand-ink); font-weight: 800; }
.pal-f { display: flex; gap: 1.2rem; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.pal-f kbd { margin-inline-end: .2rem; }
@media (max-width: 575.98px) { .ad-pal { margin-top: 0; } .pal-f { display: none; } }

/* ---------- confirm dialog ---------- */
.ad-confirm { width: min(460px, calc(100vw - 24px)); }
.ad-confirm .dl-body { display: grid; gap: .6rem; padding: 24px; }
.ac-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--warn-bg); color: var(--warn); font-size: 1.4rem; }
.ad-confirm.danger .ac-ic { background: var(--danger-bg); color: var(--danger); }
.ad-confirm h3 { margin: .2rem 0 0; font-size: 20px; }
.ad-confirm p { margin: 0; }
.ac-acts { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: .6rem; }
.ad-confirm.danger #acOk { background: var(--danger); }

/* ---------- charts (plain SVG, drawn by admin.js at the box's real width) ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { font: 600 15px var(--font); fill: var(--muted); }
.chart .grid line { stroke: var(--line); }
.chart .ln { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .ln.s0 { stroke: var(--brand); } .chart .ln.s1 { stroke: #94a3b8; stroke-dasharray: 6 6; stroke-width: 2.5; }
.chart .area { fill: url(#adGrad); opacity: .9; }
.chart .bar { fill: var(--brand); }
.chart .bar.s1 { fill: #cbd5e1; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .dot { fill: var(--surface); stroke: var(--brand); stroke-width: 3; }
.chart .guide { stroke: var(--muted); stroke-dasharray: 3 4; }
.ctip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 8px 12px; border-radius: 12px; background: #0b1024; color: #fff; font-size: 15px; line-height: 1.6; box-shadow: var(--shadow-lg); transform: translate(-50%, -110%); white-space: nowrap; }
.ctip b { display: block; }
.ctip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: .4rem; vertical-align: middle; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--muted); font-size: 15px; font-weight: 700; }
.legend i { display: inline-block; width: 14px; height: 4px; border-radius: 4px; margin-inline-end: .4rem; vertical-align: middle; background: var(--brand); }
.legend i.s1 { background: #94a3b8; }

/* ################ AUTHLAB KIT ################ */
/* ==========================================================
   AuthLab — login and account parts, on top of kit/pl.css
   ========================================================== */

/* ---------- auth layouts ---------- */
.au-page { min-height: 100dvh; background: var(--page); }
.au-logo { display: inline-flex; align-items: center; gap: .6rem; font-size: 22px; font-weight: 800; text-decoration: none; color: var(--ink); }
.au-logo .mk { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--brand); color: #fff; font-size: 1.15rem; }
.au-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.au-top .side-link { color: var(--muted); font-weight: 600; }
.au-top .side-link a { color: var(--brand-ink); font-weight: 800; text-decoration: none; }
.au-card { width: 100%; max-width: 480px; padding: clamp(24px, 3.4vw, 44px); border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.au-card h1 { font-size: clamp(26px, 2.6vw, 34px); margin: 0 0 .4rem; }
.au-card .sub { color: var(--muted); margin: 0 0 1.6rem; }
.au-stack { display: grid; gap: 1rem; }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.au-foot { margin-top: 1.4rem; text-align: center; color: var(--muted); }
.au-foot a { color: var(--brand-ink); font-weight: 800; text-decoration: none; }
.au-legal { color: var(--muted); font-size: 15px; text-align: center; margin: 1.2rem 0 0; }
.au-legal a { color: inherit; }

/* social sign-in */
.social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.social button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: 700 16px var(--font); cursor: pointer; transition: border-color var(--ease), background var(--ease); }
.social button:hover { border-color: rgba(var(--brand-rgb), .4); background: var(--surface-2); }
.social svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: 15px; font-weight: 700; margin: 1.2rem 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* password field: show/hide + caps lock */
.pw { position: relative; }
.pw .fm-input { padding-inline-end: 52px; }
.pw .eye { position: absolute; top: 4px; inset-inline-end: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; font-size: 1.15rem; }
.pw .eye:hover { color: var(--ink); background: var(--surface-2); }
.caps { display: none; align-items: center; gap: .4rem; color: var(--warn); font-size: 15px; font-weight: 700; }
.caps.is-on { display: flex; }

/* strength meter + rule list */
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: .5rem; }
.meter i { height: 6px; border-radius: 6px; background: var(--line); transition: background var(--ease); }
.meter[data-s="1"] i:nth-child(-n+1) { background: var(--danger); }
.meter[data-s="2"] i:nth-child(-n+2) { background: #f59e0b; }
.meter[data-s="3"] i:nth-child(-n+3) { background: #84cc16; }
.meter[data-s="4"] i { background: var(--ok); }
.meter-txt { display: flex; justify-content: space-between; color: var(--muted); font-size: 15px; margin-top: .3rem; }
.meter-txt b { color: var(--ink); }
.rules { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .8rem; font-size: 15px; color: var(--muted); }
.rules li { position: relative; padding-inline-start: 1.5rem; }
.rules li::before { content: "\F28A"; font-family: "bootstrap-icons"; position: absolute; inset-inline-start: 0; top: 0; color: var(--line); }
.rules li.ok { color: var(--ok); }
.rules li.ok::before { content: "\F26B"; color: var(--ok); }

/* code boxes (FormLab F03) */
.otp { display: flex; gap: 10px; direction: ltr; justify-content: center; }
.otp input { width: 56px; height: 64px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: center; font: 800 26px var(--font); caret-color: var(--brand); transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease); }
.otp input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); }
.otp input.filled { border-color: rgba(var(--brand-rgb), .5); background: rgba(var(--brand-rgb), .04); }
.otp.bad input { border-color: var(--danger); animation: shake 380ms ease; }
.otp.good input { border-color: var(--ok); background: var(--ok-bg); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (max-width: 400px) { .otp { gap: 6px; } .otp input { width: 46px; height: 56px; font-size: 22px; } }

/* inline alert (OverlayLab .ov-alert, short) */
.au-alert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; padding: 12px 14px; border-radius: 16px; font-size: 15px; line-height: 1.7; }
.au-alert i { font-size: 1.15rem; margin-top: .1rem; }
.au-alert b { display: block; font-size: 16px; }
.au-alert.err { background: var(--danger-bg); color: var(--danger); }
.au-alert.ok { background: var(--ok-bg); color: var(--ok); }
.au-alert.info { background: var(--info-bg); color: var(--info); }
.au-alert.warn { background: var(--warn-bg); color: var(--warn); }
.au-alert[hidden] { display: none; }

/* ---------- account shell ---------- */
.ac-top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.ac-top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.ac-top .me { display: flex; align-items: center; gap: .6rem; margin-inline-start: auto; font-weight: 700; }
.ac-top .me img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ac-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; padding-block: clamp(24px, 3vw, 44px) 64px; }
.ac-nav { position: sticky; top: 96px; display: grid; gap: 4px; }
.ac-nav .who { display: flex; align-items: center; gap: .8rem; padding: 14px; margin-bottom: 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ac-nav .who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.ac-nav .who b { display: block; }
.ac-nav .who span { color: var(--muted); font-size: 15px; }
.ac-nav a { display: flex; align-items: center; gap: .75rem; min-height: 50px; padding: 0 1rem; border-radius: 14px; color: var(--muted); font-weight: 700; text-decoration: none; transition: background var(--ease), color var(--ease); }
.ac-nav a i { font-size: 1.15rem; }
.ac-nav a:hover { background: var(--surface); color: var(--ink); }
.ac-nav a[aria-current="page"] { background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow); }
.ac-nav a .dot { margin-inline-start: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.ac-nav .out { color: var(--danger); margin-top: 8px; }
.ac-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2px; } /* each .panel brings its own 18px top margin, wrappers included */
.ac-head h1 { font-size: clamp(26px, 2.6vw, 34px); margin: 0; }
.ac-head p { margin: .2rem 0 0; color: var(--muted); }
.panel { padding: clamp(18px, 2.2vw, 28px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); margin-top: 18px; }
.panel > h2 { font-size: 19px; margin: 0 0 .2rem; }
.panel > .desc { color: var(--muted); margin: 0 0 1.2rem; font-size: 16px; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1.5rem; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.set-row:first-of-type { border-top: 0; padding-top: 4px; }
.set-row b { display: block; }
.set-row .v { color: var(--muted); }
.set-row > .badge-s, .set-row > .seg2, .set-row > .sw-hit { justify-self: start; }
.set-row .acts { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.badge-s { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .7rem; border-radius: 999px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.badge-s.ok { background: var(--ok-bg); color: var(--ok); }
.badge-s.warn { background: var(--warn-bg); color: var(--warn); }
.badge-s.off { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* switch */
.sw { appearance: none; -webkit-appearance: none; position: relative; width: 52px; height: 30px; margin: 0; flex: 0 0 auto; border-radius: 999px; background: var(--line); cursor: pointer; transition: background var(--ease); }
.sw::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start var(--ease); }
.sw::before { content: ""; position: absolute; inset: -8px -4px; } /* 46px tall touch area around the 30px switch */
.sw:checked { background: var(--brand); }
.sw:checked::after { inset-inline-start: 25px; }
.sw:focus-visible { outline: 3px solid rgba(var(--brand-rgb), .55); outline-offset: 3px; }
.sw:disabled { opacity: .5; cursor: not-allowed; }
.sw-hit { display: inline-grid; place-items: center; min-width: 52px; min-height: 44px; }

/* save bar: appears when something changed */
.savebar { position: fixed; z-index: 60; inset-inline: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 760px; margin-inline: auto; padding: 12px 12px 12px 20px; padding-inline: 20px 12px; border-radius: 20px; background: var(--ink); color: var(--surface); box-shadow: 0 20px 50px rgba(0,0,0,.3); transform: translateY(140%); transition: transform 300ms cubic-bezier(.2,.7,.3,1); }
.savebar.is-on { transform: none; }
.savebar span { font-weight: 700; }
.savebar .acts { display: flex; gap: .5rem; }
.savebar .btx-ghost { color: var(--surface); border-color: color-mix(in srgb, var(--surface) 30%, transparent); }
.savebar .btx-ghost:hover { background: color-mix(in srgb, var(--surface) 10%, transparent); color: var(--surface); }

/* danger zone */
.danger { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.danger > h2 { color: var(--danger); }
.btx-danger { background: var(--danger); }
.btx-danger-soft { background: var(--danger-bg); color: var(--danger); }
.btx-danger-soft:hover { color: var(--danger); filter: brightness(.97); }

@media (max-width: 991.98px) {
  .ac-layout { grid-template-columns: minmax(0, 1fr); }
  .ac-nav { position: sticky; top: 72px; z-index: 20; display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; margin-inline: calc(-1 * clamp(16px, 4vw, 56px)); padding: 10px clamp(16px, 4vw, 56px); background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .ac-nav::-webkit-scrollbar { display: none; }
  .ac-nav .who { display: none; }
  .ac-nav a { flex: 0 0 auto; min-height: 44px; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); }
  .ac-nav .out { margin-top: 0; }
}
@media (max-width: 575.98px) {
  .set-row { grid-template-columns: minmax(0, 1fr); }
  .set-row .acts { justify-content: flex-start; }
  .savebar { padding: 10px; padding-inline: 14px 10px; }
  .social { grid-template-columns: minmax(0, 1fr); }
  .rules { grid-template-columns: minmax(0, 1fr); }
}

/* ################ STATELAB KIT ################ */
/* ==========================================================
   StateLab — error and special-state pages, on top of kit/pl.css
   (500, maintenance and offline pages are self-contained instead:
   they must work when our own server or network does not)
   ========================================================== */
.st-page { min-height: 100dvh; display: flex; flex-direction: column; background: var(--page); }
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.st-logo { display: inline-flex; align-items: center; gap: .6rem; font-size: 22px; font-weight: 800; text-decoration: none; color: var(--ink); }
.st-logo .mk { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--brand); color: #fff; font-size: 1.15rem; }
.st-main { flex: 1; display: grid; align-items: center; padding-block: clamp(16px, 3vw, 40px) clamp(32px, 5vw, 64px); }
.st-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.st-foot a { color: inherit; }
.st-code { display: inline-flex; align-items: center; gap: .5rem; padding: .2rem .9rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 15px; }
.st-code b { color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.st-h1 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.3; margin: 1rem 0 .6rem; }
.st-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); margin: 0 0 1.6rem; }
.st-acts { display: flex; flex-wrap: wrap; gap: .6rem; }
.st-box { padding: clamp(18px, 2vw, 26px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.st-box h2 { font-size: 18px; margin: 0 0 .8rem; }
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.links-grid a { display: flex; align-items: center; gap: .7rem; min-height: 56px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 700; transition: border-color var(--ease), transform var(--ease); }
.links-grid a:hover { border-color: rgba(var(--brand-rgb), .4); transform: translateY(-2px); }
.links-grid a i { color: var(--brand-ink); font-size: 1.2rem; }
.st-ref { display: flex; align-items: center; gap: .5rem; padding: 6px 6px 6px 14px; padding-inline: 14px 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.st-ref span { flex: 1; color: var(--muted); font-size: 15px; }
.st-ref b { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; }
@media (max-width: 575.98px) { .st-acts .btx { flex: 1 1 100%; } }
/* ################ CALLMEX ADDITIONS ################ */

/* ---------- base adjustments ---------- */
html { -webkit-text-size-adjust: 100%; }
small, .small { font-size: 15px; }
.tiny { font-size: 15px; }
.nowrap { white-space: nowrap; }
.bold { font-weight: 800; }
.m-0 { margin: 0 !important; }
hr { border: 0; border-top: 1px solid var(--line); opacity: 1; margin: 1.25rem 0; }
:target { scroll-margin-top: calc(var(--head-h) + 20px); }
.no-print { }
@media print { .no-print, .ph, .pf, .ad-side, .ad-top, .ad-tabbar, .ov-toasts { display: none !important; } }
.brand-logo { display: block; height: auto; max-width: 100%; }
[hidden] { display: none !important; }
/* Bootstrap's reboot underlines nothing, but its link colour would leak into
   buttons used as <a>. */
a.btx, a.btx:hover { text-decoration: none; }
/* A currency symbol or sign next to a number must not flip in RTL. */
bdi, .ltr { unicode-bidi: isolate; }
.ltr { direction: ltr; display: inline-block; }
.dir-i { display: inline-block; }
[dir="rtl"] .dir-i { transform: scaleX(-1); }
.stack { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.stack-s { display: grid; gap: .6rem; }
.flex-wrap-gap { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(16px, 2vw, 28px); align-items: start; }
.grid-main > .rail { position: sticky; top: calc(var(--app-top, 68px) + 16px); display: grid; gap: clamp(14px, 1.6vw, 22px); }
@media (max-width: 1099.98px) { .grid-main { grid-template-columns: minmax(0, 1fr); } .grid-main > .rail { position: static; } }
@media (max-width: 767.98px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.is-grow { flex: 1 1 0; min-width: 0; }

/* ---------- dropdown (<details>, works with JS off) ---------- */
.dd { position: relative; }
.dd > summary { list-style: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .75rem; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--ink); font: 700 15px var(--font); cursor: pointer; user-select: none; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary:hover, .dd[open] > summary { background: var(--surface-2); border-color: var(--line); }
.dd > summary .bi-chevron-down { font-size: .7rem; transition: transform var(--ease); color: var(--muted); }
.dd[open] > summary .bi-chevron-down { transform: rotate(180deg); }
.dd-pan { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 80; display: grid; gap: 2px; min-width: 230px; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pl-pop 160ms ease; }
.dd-pan > a, .dd-pan > button, .dd-pan form button { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 44px; padding: 0 .8rem; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 700 15px var(--font); text-decoration: none; text-align: start; cursor: pointer; }
.dd-pan > a:hover, .dd-pan > button:hover { background: var(--surface-2); }
.dd-pan > a[aria-current], .dd-pan > a.is-on { color: var(--brand-ink); }
.dd-pan .dd-head { display: grid; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dd-pan .dd-head small { color: var(--muted); }
.dd-pan .out { color: var(--danger); }
.dd-pan .cnt { margin-inline-start: auto; min-width: 24px; padding: 0 .4rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 800; text-align: center; line-height: 1.6; }
.dd-pan .tick { margin-inline-start: auto; color: var(--brand-ink); }
.dd-sm .dd-pan { min-width: 190px; }

/* avatar (helper avatar() in core/helpers.php) */
.avatar { width: 40px; height: 40px; flex: 0 0 auto; display: inline-grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.avatar svg { width: 62%; height: 62%; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 72px; height: 72px; }

/* ---------- public header: floating pill (NavLab N01) ---------- */
.ph { padding-top: 14px; }
.ph-pill { padding-inline: 12px 10px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow var(--ease); }
.ph.is-stuck { box-shadow: none; }
.ph.is-stuck .ph-pill { box-shadow: var(--shadow-lg); }
.ph-logo { min-height: 56px; }
.ph-logo .brand-logo { height: 34px; width: auto; }
.ph-act { gap: .35rem; }
.ph-act .btx { white-space: nowrap; }
.ph-act .dd > summary { padding-inline: .6rem; }
.ph-bell { position: relative; }
.ph-bell .badge-n, .icon-btn .badge-n { top: -6px; inset-inline-end: -8px; min-width: 24px; height: 24px; padding: 0 5px; border: 2px solid var(--page); border-radius: 999px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 800; line-height: 20px; text-align: center; box-sizing: border-box; }
.ph-lang-now { display: inline; }
/* the bar is dark like the footer, on every screen (the logo is the light-lettered lockup, see header.php) */
.ph .ph-pill { background: var(--accent); border-color: rgba(255,255,255,.1); backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.ph-nav a { color: rgba(255,255,255,.78); }
.ph-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.ph-nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.ph .dd > summary { color: #fff; }
.ph .dd > summary:hover, .ph .dd[open] > summary { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.ph .dd > summary .bi-chevron-down { color: rgba(255,255,255,.65); }
.ph .dd-pan { color: var(--ink); }
.ph .btx-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.ph .btx-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.ph .icon-btn { color: #fff; }
.ph-bell .badge-n { border-color: var(--accent); }
@media (max-width: 991.98px) {
  .ph { padding-top: 0; background: var(--accent); }
  .ph .ph-pill { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding-block: 4px; }
  .ph.is-stuck { box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
}
@media (max-width: 575.98px) { .ph-lang-now { display: none; } .ph-pill { padding-inline: 10px 6px; } .ph-logo .brand-logo { height: 30px; } .ph-act .btx-sm { padding-inline: .8rem; } }
.ph-panel .sheet-head .brand-logo { height: 32px; width: auto; }
.ph-panel .sheet .lang-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.ph-panel .sheet .lang-row a { min-height: 44px; padding: 0 1rem; display: inline-flex; align-items: center; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; text-decoration: none; font-size: 15px; }
.ph-panel .sheet .lang-row a[aria-current] { border-color: var(--brand); background: rgba(var(--brand-rgb), .08); color: var(--brand-ink); }

/* ---------- sections + page bands ---------- */
.sec-dark { background: var(--accent); color: #fff; }
.sec-dark .st h2, .sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-dark .st p, .sec-dark .muted { color: rgba(255,255,255,.72); }
.sec-dark .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #7be58a; }
.sec-green { background: var(--brand); color: #fff; }
.sec-green h2, .sec-green h3 { color: #fff; }
.mark-u { font-style: normal; text-decoration: underline; text-decoration-color: rgba(var(--green-rgb), .42); text-decoration-thickness: .14em; text-underline-offset: .12em; text-decoration-skip-ink: none; }
.hl { color: var(--brand-ink); font-style: normal; }
.on-dark .hl, .sec-dark .hl { color: #5fe070; }

/* the road: a dashed lane line, the site's recurring motif */
.road { height: 6px; background: repeating-linear-gradient(to right, currentColor 0 22px, transparent 22px 40px); opacity: .22; border-radius: 6px; }
[dir="rtl"] .road { background: repeating-linear-gradient(to left, currentColor 0 22px, transparent 22px 40px); }

/* ---------- footer (FooterLab F05 idea on a black ground) ---------- */
.pf-x { background: var(--accent); color: #fff; margin-top: 0; padding-top: 0; }
.pf-x .pf-cta { padding-block: clamp(40px, 5vw, 72px); border-bottom: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; }
.pf-x .pf-cta h2 { color: #fff; font-size: clamp(30px, 4vw, 54px); line-height: 1.25; margin: 0; }
.pf-x .pf-cta h2 em { font-style: normal; color: #5fe070; }
.pf-x .pf-cta p { color: rgba(255,255,255,.72); margin: .6rem 0 0; }
.pf-x .pf-cta .acts { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.pf-x .pf-cols { padding-top: clamp(32px, 4vw, 56px); grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
.pf-x h4 { color: #fff; font-size: 16px; }
.pf-x .pf-brand .brand-logo { height: 40px; width: auto; }
.pf-x .pf-brand p { color: rgba(255,255,255,.72); margin: .9rem 0 1rem; max-width: 380px; }
.pf-x ul a, .pf-x .pf-links a { color: rgba(255,255,255,.72); }
.pf-x ul a:hover, .pf-x .pf-links a:hover { color: #fff; }
.pf-x .pf-links { display: grid; gap: 2px; }
.pf-x .pf-links a { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; font-weight: 600; text-decoration: none; }
.pf-x .pf-bottom { border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.62); }
.pf-x .pf-bottom a { color: inherit; }
.pf-x .pf-bottom a:hover { color: #fff; }
.pf-live { display: inline-flex; align-items: center; gap: .5rem; padding: .2rem .9rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: 15px; font-weight: 700; color: rgba(255,255,255,.85); }
.pf-live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa59a; }
.pf-live.is-open-now { color: #7be58a; }
.pf-live.is-open-now::before { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.pf-lang { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .25rem; }
.pf-lang a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .7rem; border-radius: 999px; text-decoration: none; font-weight: 700; }
.pf-lang a[aria-current] { background: rgba(255,255,255,.12); color: #fff; }
.pf-social { display: flex; flex-wrap: wrap; gap: .4rem; }
.pf-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; }
.pf-social a:hover { background: rgba(255,255,255,.1); }
.pf-social svg { width: 20px; height: 20px; }
@media (max-width: 991.98px) { .pf-x .pf-cta { grid-template-columns: minmax(0, 1fr); } .pf-x .pf-cta .acts { justify-content: flex-start; } .pf-x .pf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-x .pf-cols > :first-child { grid-column: 1 / -1; } }
@media (max-width: 479.98px) { .pf-x .pf-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- inline alerts + empty states (OverlayLab M04 / M07) ---------- */
.ov-alert { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px; border: 1px solid transparent; }
.ov-alert > i { font-size: 1.3rem; line-height: 1.35; }
.ov-alert b { display: block; font-size: 16px; }
.ov-alert p { font-size: 15px; line-height: 1.75; margin: 0; opacity: .92; }
.ov-alert .aa { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ov-alert .aa a, .ov-alert .aa button { min-height: 44px; display: inline-flex; align-items: center; padding: 0 .9rem; border-radius: 10px; border: 1px solid currentColor; background: transparent; color: inherit; font: 700 15px var(--font); text-decoration: none; cursor: pointer; }
.ov-alert.ok { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.ov-alert.warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 16%, transparent); }
.ov-alert.err { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.ov-alert.info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.ov-alert.edge { background: var(--surface); color: var(--ink); border-color: var(--line); border-inline-start: 4px solid var(--brand); }
.ov-alert.edge > i { color: var(--brand-ink); }
.ov-alert.compact { align-items: center; padding-block: 8px; }
.ov-alert[hidden] { display: none; }
.note { padding: 12px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.empty { display: grid; justify-items: center; align-content: center; gap: .5rem; padding: clamp(32px, 4vw, 56px) 20px; text-align: center; }
.empty > i { font-size: 2.6rem; color: var(--muted); }
.empty h3 { font-size: 20px; margin: .2rem 0 0; }
.empty p { color: var(--muted); max-width: 420px; margin: 0; }
.empty .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .4rem; }
.empty-sm { padding: 24px 16px; }
.empty-sm > i { font-size: 1.8rem; }

/* ---------- key/value lists, route, progress, timeline ---------- */
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); gap: .3rem 1rem; padding: 11px 0; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; padding-top: 0; }
.kv dt { color: var(--muted); font-weight: 700; font-size: 15px; }
.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 479.98px) { .kv > div { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px 24px; margin: 0; }
.kv-grid > div { display: grid; gap: .1rem; align-content: start; }
.kv-grid dt { color: var(--muted); font-weight: 700; font-size: 15px; }
.kv-grid dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* route: pickup → drop-off, dots joined by a dashed lane line */
.legs { display: grid; gap: 0; position: relative; }
.leg { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .8rem; padding-bottom: 14px; }
.leg:last-child { padding-bottom: 0; }
.leg .dot { width: 14px; height: 14px; margin: 6px auto 0; border-radius: 50%; border: 3.5px solid var(--green); background: var(--surface); position: relative; z-index: 1; }
.leg .dot.to { border-color: var(--ink); background: var(--ink); border-radius: 4px; }
.leg:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 10px; top: 24px; bottom: -2px; width: 0; border-inline-start: 2.5px dashed #b9c3b9; }
.leg .addr { font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.leg .addr small { display: block; color: var(--muted); font-weight: 600; }

/* order status: horizontal on desktop, vertical on phones */
.track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: trk; }
.track li { position: relative; display: grid; justify-items: center; gap: .4rem; padding-inline: 4px; text-align: center; font-weight: 700; font-size: 15px; color: var(--muted); counter-increment: trk; }
.track li::before { content: counter(trk); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); color: var(--muted); font-weight: 800; position: relative; z-index: 1; }
.track li::after { content: ""; position: absolute; top: 16px; inset-inline-start: calc(-50% + 22px); inset-inline-end: calc(50% + 22px); height: 0; border-top: 3px dashed #cbd3cb; }
.track li:first-child::after { display: none; }
.track li.is-done { color: var(--ink); }
.track li.is-done::before { content: "\F26E"; font-family: "bootstrap-icons"; background: var(--brand); border-color: var(--brand); color: #fff; }
.track li.is-done::after { border-top-style: solid; border-color: var(--brand); }
.track li.is-now { color: var(--brand-ink); }
.track li.is-now::before { background: var(--surface); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 5px rgba(var(--green-rgb), .18); }
.track li.is-bad::before { content: "\F62A"; font-family: "bootstrap-icons"; background: var(--danger); border-color: var(--danger); color: #fff; }
@media (max-width: 639.98px) {
  .track { grid-auto-flow: row; gap: 0; }
  .track li { grid-template-columns: 34px minmax(0, 1fr); justify-items: start; align-items: center; gap: .8rem; padding: 0 0 18px; text-align: start; min-height: 52px; }
  .track li:last-child { padding-bottom: 0; }
  .track li::after { top: 34px; bottom: -4px; height: auto; inset-inline-start: 16px; inset-inline-end: auto; border-top: 0; border-inline-start: 3px dashed #cbd3cb; }
  .track li.is-done::after { border-inline-start-style: solid; border-color: var(--brand); }
  .track li:first-child::after { display: none; }
  .track li:not(:first-child)::after { display: block; top: -18px; bottom: auto; height: 18px; }
}

/* vertical event list (audit, order history, dispute thread) */
.tline { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.tline li { position: relative; display: grid; gap: .1rem; padding: 0 0 18px; padding-inline-start: 28px; }
.tline li::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.tline li::after { content: ""; position: absolute; inset-inline-start: 5px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.tline li:last-child { padding-bottom: 0; }
.tline li:last-child::after { display: none; }
.tline b { font-weight: 800; }
.tline small { color: var(--muted); }

/* ---------- KPI helper + tiles inside .box ---------- */
.kpi .val { font-variant-numeric: tabular-nums; }
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767.98px) { .kpis-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi-solid { padding: clamp(14px, 1.4vw, 20px); border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.kpi-solid.is-dark { background: var(--accent); color: #fff; border-color: var(--accent); }
.kpi-solid.is-dark .lbl, .kpi-solid.is-dark .val small { color: rgba(255,255,255,.7); }
.kpi-solid.is-dark .lbl i { background: rgba(255,255,255,.1); color: #7be58a; }

/* ---------- forms ---------- */
.fm-field .req { color: var(--danger); }
.fm-input[disabled], .fm-input[readonly] { background: var(--surface-2); color: var(--muted); }
select.fm-input { appearance: none; -webkit-appearance: none; padding-inline-end: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23595f59' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 1rem center; }
[dir="rtl"] select.fm-input { background-position: left 1rem center; }
[dir="ltr"] select.fm-input { background-position: right 1rem center; }
.fm-input-sm { min-height: 44px; font-size: 15px; }
.fm-hint { color: var(--muted); font-size: 15px; }
.fm-row { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: end; }
.fm-row > .fm-field { flex: 1 1 200px; }
.fm-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.fm-section { display: grid; gap: 1rem; }
.fm-section + .fm-section { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.fm-section > h3 { font-size: 18px; margin: 0; }
.fm-field.span2, .fm-grid .span2 { grid-column: 1 / -1; }
.fm-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.25rem; }
@media (max-width: 767.98px) { .fm-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.fm-field > .fm-err { color: var(--danger); }
.fm-field.is-bad .fm-select-b, .fm-field.is-bad .fm-sel-btn { border-color: var(--danger); }
.fm-affix { position: relative; display: flex; align-items: center; }
.fm-affix > .fm-input { flex: 1; min-width: 0; }
.fm-affix > .suffix { position: absolute; inset-inline-end: 14px; color: var(--muted); font-weight: 700; pointer-events: none; }
.fm-affix > .suffix ~ .fm-input, .fm-affix:has(.suffix) > .fm-input { padding-inline-end: 4.2rem; }
.fm-phone-pre { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.fm-phone-pre > .pre { display: grid; place-items: center; padding: 0 1rem; border: 1.5px solid var(--line); border-inline-end: 0; border-start-start-radius: var(--radius-sm); border-end-start-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-weight: 800; direction: ltr; }
.fm-phone-pre > .fm-input { border-start-start-radius: 0; border-end-start-radius: 0; }
.fm-check input[type="radio"] { border-radius: 50%; }
.fm-seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.fm-seg label { flex: 1; position: relative; }
.fm-seg input { position: absolute; opacity: 0; pointer-events: none; }
.fm-seg span { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: 0 .8rem; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; text-align: center; transition: all var(--ease); }
.fm-seg input:checked + span { background: var(--surface); color: var(--brand-ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.fm-seg input:focus-visible + span { outline: 3px solid rgba(var(--brand-rgb), .5); }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 14px; }
.filters > .fm-field { flex: 1 1 170px; min-width: 0; }
.filters > .fm-field.grow { flex: 2 1 260px; }
.filters .fm-label { font-size: 15px; }
.filters .btx { align-self: end; }

/* password field made by cx.js */
.pw-wrap { position: relative; display: block; }
/* both sides: a password field types left-to-right even on a right-to-left page, so its text starts under the eye button unless the button's side is cleared on both ends */
.pw-wrap > .fm-input { padding-inline: 52px; }
.pw-toggle { position: absolute; top: 4px; inset-inline-end: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.pw-toggle:hover, .pw-toggle.is-on { color: var(--ink); background: var(--surface-2); }
.pw-toggle svg { width: 20px; height: 20px; }

/* file field (includes/file-field.php) */
.file-field { position: relative; display: block; border: 2px dashed #c6cec6; border-radius: 18px; background: var(--surface-2); transition: border-color var(--ease), background var(--ease); }
.file-field:hover, .file-field.is-over { border-color: var(--brand); background: rgba(var(--brand-rgb), .05); }
.file-field.has-file { border-style: solid; border-color: rgba(var(--brand-rgb), .4); background: var(--surface); }
.file-field.is-bad { border-color: var(--danger); }
.file-field .file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.file-field:focus-within { outline: 3px solid rgba(var(--brand-rgb), .5); outline-offset: 3px; }
.file-face { display: flex; align-items: center; gap: .9rem; padding: 16px 18px; min-height: 84px; }
.file-ico { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); }
.file-ico svg { width: 24px; height: 24px; }
.file-text { display: grid; min-width: 0; }
.file-text b { font-weight: 800; }
.file-text small, .file-hint { color: var(--muted); font-size: 15px; }
.file-picked { display: flex; align-items: center; gap: .8rem; padding: 12px 18px; border-top: 1px solid var(--line); position: relative; z-index: 3; }
.file-picked[hidden] { display: none; }
.file-thumb { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2) center / cover no-repeat; border: 1px solid var(--line); font-size: 15px; font-weight: 800; color: var(--muted); }
.file-meta { display: grid; min-width: 0; flex: 1; }
.file-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--muted); font-size: 15px; }
.file-clear { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--muted); cursor: pointer; font-size: 1.2rem; }
.file-clear:hover { background: var(--danger-bg); color: var(--danger); }
.file-error { display: block; margin-top: .4rem; color: var(--danger); font-size: 15px; font-weight: 600; }

/* custom select made by cx.js from a native <select> (native selects break in RTL panels) */
.cx-select { position: relative; }
.cx-select > select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cx-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 52px; padding: .5rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 500 16px var(--font); text-align: start; cursor: pointer; transition: border-color var(--ease), box-shadow var(--ease); }
.cx-btn:hover { border-color: #b8c1b8; }
.cx-btn:focus-visible, .cx-btn[aria-expanded="true"] { outline: none; border-color: rgba(var(--brand-rgb), .7); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); }
.cx-btn .cx-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-btn .cx-val.is-ph { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.cx-btn .bi { color: var(--muted); font-size: .85rem; transition: transform var(--ease); flex: 0 0 auto; }
.cx-btn[aria-expanded="true"] .bi { transform: rotate(180deg); }
.cx-btn[disabled] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.cx-select.is-sm .cx-btn { min-height: 44px; font-size: 15px; }
.cx-select.is-bad .cx-btn { border-color: var(--danger); }
.cx-pan { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 90; display: none; flex-direction: column; max-height: 320px; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.cx-pan.is-open { display: flex; animation: pl-pop 140ms ease; }
.cx-pan.is-up { top: auto; bottom: calc(100% + 6px); }
.cx-find { padding: 8px; border-bottom: 1px solid var(--line); }
.cx-find input { width: 100%; min-height: 44px; padding: 0 .9rem; border: 1.5px solid var(--line); border-radius: 10px; font: 500 15px var(--font); background: var(--surface); color: var(--ink); }
.cx-find input:focus { outline: none; border-color: rgba(var(--brand-rgb), .6); }
.cx-list { margin: 0; padding: 6px; list-style: none; overflow-y: auto; }
.cx-list li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 44px; padding: .25rem .8rem; border-radius: 10px; cursor: pointer; outline: none; }
.cx-list li:hover, .cx-list li:focus, .cx-list li.is-cur { background: var(--surface-2); }
.cx-list li[aria-selected="true"] { color: var(--brand-ink); font-weight: 800; }
.cx-list li[aria-selected="true"]::after { content: "\F633"; font-family: "bootstrap-icons"; }
.cx-list li[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.cx-list li.cx-grp { min-height: 34px; padding-top: .5rem; color: var(--muted); font-size: 15px; font-weight: 800; cursor: default; background: none !important; }
.cx-list li mark { background: rgba(var(--brand-rgb), .16); color: var(--brand-ink); padding: 0; border-radius: 3px; }
.cx-none { padding: 14px; text-align: center; color: var(--muted); }

/* address autocomplete list */
.geo-results { position: absolute; inset-inline: 0; top: calc(100% + 4px); z-index: 40; }
.geo-results ul { margin: 0; padding: 6px; list-style: none; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); }
.geo-results li { padding: 8px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.geo-results li:hover { background: var(--surface-2); }
.geo-results li small { display: block; color: var(--muted); font-weight: 500; }

/* maps (Google Maps containers) */
.map { width: 100%; height: 320px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.map-sm { height: 220px; }
.map-tall { height: 420px; }
.hero-map-lg { height: 440px; }
@media (max-width: 575.98px) { .map-tall, .hero-map-lg { height: 340px; } }

/* ---------- cards: surfaces inside the app ---------- */
.box.flush { padding: 0; overflow: hidden; }
.box.is-dark { background: var(--accent); color: #fff; border-color: var(--accent); }
.box.is-dark h2, .box.is-dark h3 { color: #fff; }
.box.is-accent { border-color: rgba(var(--brand-rgb), .4); box-shadow: 0 0 0 4px rgba(var(--green-rgb), .08); }
.box + .box { margin-top: 0; }
.box-h h2 i, .box-h h3 i { color: var(--brand-ink); margin-inline-end: .4rem; }
.pc.is-link { text-decoration: none; color: inherit; }
.pill.accent { background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); }
.pill.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill-lg { padding: .2rem 1rem; font-size: 16px; }

/* ---------- tables ---------- */
.tbl td.num, .tbl th.num { text-align: end; }
.tbl td.act, .tbl th.act { width: 1%; white-space: nowrap; }
.tbl tbody tr.is-link { cursor: pointer; }
.tbl tbody tr.is-link:hover { background: rgba(var(--green-rgb), .05); }
.tbl .muted { color: var(--muted); }
.tbl td > .btx-sm { --h: 40px; }
.tbl-plain { width: 100%; border-collapse: collapse; }
.tfoot nav { display: contents; }
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 15px var(--font); text-decoration: none; }
.pager a:hover { border-color: var(--brand); color: var(--brand-ink); }
.pager .current, .pager [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .gap { border: 0; background: none; }

/* ---------- portal shell touches ---------- */
.ad-app { font-size: 16px; --app-top: 68px; }
.ad-side .brand-logo { height: 34px; width: auto; }
.sd-logo { min-height: 44px; }
.sd-role { display: inline-flex; margin-top: .2rem; padding: 0 .6rem; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 15px; font-weight: 700; }
.ad-top .ad-title { display: none; font-weight: 800; font-size: 18px; margin: 0; }
.ad-search kbd { margin-inline-start: auto; }
.ad-online { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 .85rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-weight: 800; font-size: 15px; text-decoration: none; }
.ad-online::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa59a; }
.ad-online.is-on { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.ad-online.is-on::before { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.ad-online.is-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.ad-online.is-warn::before { background: #8b6cf0; }
.ad-content > .box, .ad-content > .tcard { margin: 0; }
.pg-h .back { display: inline-flex; align-items: center; gap: .3rem; min-height: 40px; color: var(--muted); font-weight: 700; text-decoration: none; font-size: 15px; }
.pg-h .back:hover { color: var(--brand-ink); }
.pg-h .lede { margin: .15rem 0 0; color: var(--muted); max-width: 70ch; }
.sd-nav a .cnt { background: var(--green); color: #fff; }
.sd-nav a[aria-current="page"]::before { background: var(--green); }
.sd-logo .mk { background: var(--green); }

/* bottom tab bar for drivers on phones (NavLab N06 idea) */
.ad-tabbar { display: none; }
@media (max-width: 991.98px) {
  .has-tabbar .ad-content { padding-bottom: 96px; }
  .ad-tabbar { position: fixed; z-index: 45; inset-inline: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(0,0,0,.08); }
  .ad-tabbar a, .ad-tabbar button { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 58px; padding: 4px 2px; border: 0; border-radius: 14px; background: none; color: var(--muted); font: 700 15px/1.2 var(--font); text-decoration: none; cursor: pointer; }
  .ad-tabbar i { font-size: 1.35rem; }
  .ad-tabbar [aria-current="page"] { color: var(--brand-ink); background: rgba(var(--brand-rgb), .08); }
  .ad-tabbar .cnt { position: absolute; top: 2px; inset-inline-end: 22%; min-width: 20px; padding: 0 4px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 800; line-height: 20px; text-align: center; }
  /* the round centre button (NavLab N06's .fab): the one thing the page is for */
  .ad-tabbar .tb-fab-wrap { align-content: start; padding: 0; background: none !important; }
  .ad-tabbar .tb-fab { display: grid; place-items: center; width: 58px; height: 58px; margin-top: -26px; border-radius: 50%; background: var(--brand); color: #fff; border: 5px solid var(--surface); box-shadow: 0 10px 24px rgba(var(--brand-rgb), .4); }
  .ad-tabbar .tb-fab i { font-size: 1.5rem; }
  /* the hamburgers give way to the bar */
  .ph-burger, .ad-burger { display: none !important; }
  /* room under the page for the bar (public site and customer area; the portals pad .ad-content) */
  body:has(> .ad-tabbar) { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .ac-nav { display: none; }
}

/* ---------- account shell (customer area) ---------- */
.ac-layout { padding-block: clamp(20px, 2.4vw, 36px) 72px; }
.ac-main { min-width: 0; display: grid; gap: clamp(16px, 1.8vw, 24px); align-content: start; }
.ac-nav a .cnt { margin-inline-start: auto; min-width: 22px; padding: 0 .4rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 800; text-align: center; line-height: 1.55; }
.ac-nav .who .avatar { width: 52px; height: 52px; }
.ac-nav .who > div { min-width: 0; }
.ac-nav .who b, .ac-nav .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.ac-nav form { display: contents; }
.ac-nav button.out { display: flex; align-items: center; gap: .75rem; min-height: 50px; padding: 0 1rem; border: 0; border-radius: 14px; background: none; color: var(--danger); font: 700 16px var(--font); text-align: start; cursor: pointer; }

/* ---------- dialogs: confirm (site-wide; replaces window.confirm) ---------- */
.cx-confirm { width: min(460px, calc(100vw - 24px)); }
.cx-confirm .dl-body { display: grid; gap: .6rem; padding: 24px; }
.cx-confirm .ac-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--warn-bg); color: var(--warn); font-size: 1.4rem; }
.cx-confirm.danger .ac-ic { background: var(--danger-bg); color: var(--danger); }
.cx-confirm h3 { margin: .2rem 0 0; font-size: 20px; }
.cx-confirm p { margin: 0; color: var(--muted); }
.cx-confirm .ac-acts { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: .6rem; }
.cx-confirm.danger .cx-ok { background: var(--danger); }
.ov-toast { background: #171917; }
.ov-toast.warn .ti { background: #7660c4; }
.ov-toasts { z-index: 120; }
/* server flashes use the same toast shell */
.flash-stack { position: fixed; z-index: 110; inset-inline: 16px; top: 88px; display: grid; justify-items: center; gap: 10px; pointer-events: none; }
.flash { pointer-events: auto; display: flex; align-items: center; gap: .7rem; width: min(520px, 100%); padding: 12px 16px; border-radius: 16px; background: #171917; color: #fff; font-weight: 700; box-shadow: 0 18px 40px rgba(0,0,0,.25); animation: pl-toast 300ms cubic-bezier(.2,.7,.3,1); cursor: pointer; }
.flash::before { content: "\F26B"; font-family: "bootstrap-icons"; font-size: 1.3rem; color: #5fe070; }
.flash-error::before { content: "\F623"; color: #ff8a7a; }
.flash-warning::before { content: "\F33A"; color: #8b6cf0; }
.flash-info::before { content: "\F431"; color: #93c5fd; }
.flash-stack:has(.ad-app) { top: 16px; }
.has-app .flash-stack { top: 80px; }

/* ---------- auth pages ---------- */
.au-split { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.au-form { display: grid; grid-template-rows: auto 1fr auto; padding: clamp(20px, 3vw, 40px) clamp(20px, 4vw, 64px); }
.au-form .au-center { display: grid; align-content: center; justify-items: center; padding-block: 24px; }
.au-aside { position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; gap: 1.5rem; padding: clamp(28px, 4vw, 56px); background: var(--accent); color: #fff; isolation: isolate; }
.au-aside::before { content: ""; position: absolute; z-index: -1; inset-inline-end: -20%; top: -20%; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(var(--green-rgb), .35), transparent 70%); }
.au-aside h2 { color: #fff; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.25; margin: 0; }
.au-aside h2 em { font-style: normal; color: #5fe070; display: block; }
.au-aside p { color: rgba(255,255,255,.75); margin: .8rem 0 0; max-width: 46ch; }
.au-aside .shot { border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.au-aside .shot img { width: 100%; height: 100%; object-fit: cover; }
.au-aside ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1rem; }
.au-aside li { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 15px; }
.au-aside li i { color: #5fe070; }
.au-card.wide { max-width: 640px; }
@media (max-width: 991.98px) { .au-split { grid-template-columns: minmax(0, 1fr); } .au-aside { display: none; } }
/* wizard choice cards (the skill's sign-up pattern, SKILL.md §13): an icon tile that matches the choice, its name and one line,
   a tick ring; the chosen card turns deep with a green icon. Two to a row on phones. */
.wz-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wz-card { position: relative; cursor: pointer; display: block; }
.wz-card > input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wz-card-in { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; height: 100%; min-height: 150px; padding: 16px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--surface); transition: border-color var(--ease), background var(--ease), transform var(--ease), box-shadow var(--ease); }
.wz-card-in .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); font-size: 1.4rem; transition: background var(--ease), color var(--ease); }
.wz-card-in b { font-size: 17px; line-height: 1.4; }
.wz-card-in small { color: var(--muted); font-size: 15px; line-height: 1.55; }
.wz-card-in .tick { position: absolute; top: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); color: transparent; font-size: 15px; transition: all var(--ease); }
.wz-card:hover .wz-card-in { border-color: rgba(var(--brand-rgb), .45); transform: translateY(-2px); }
.wz-card > input:checked + .wz-card-in { border-color: transparent; background: linear-gradient(160deg, #2a2a2a, var(--accent)); color: #fff; box-shadow: 0 12px 26px rgba(10, 20, 12, .25); }
.wz-card > input:checked + .wz-card-in small { color: rgba(255,255,255,.78); }
.wz-card > input:checked + .wz-card-in .ic { background: var(--brand); color: #fff; }
.wz-card > input:checked + .wz-card-in .tick { border-color: transparent; background: #fff; color: var(--brand-ink); }
.wz-card > input:focus-visible + .wz-card-in { outline: 3px solid rgba(var(--brand-rgb), .55); outline-offset: 2px; }
.wz-cards.is-invalid .wz-card-in { border-color: rgba(220, 38, 38, .45); }
@media (max-width: 575.98px) { .wz-cards { gap: 8px; } .wz-card-in { min-height: 0; padding: 14px; } .wz-card-in .ic { width: 42px; height: 42px; font-size: 1.2rem; } .wz-card-in b { font-size: 16px; } .wz-card-in small { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .wz-card:hover .wz-card-in { transform: none; } }

/* ---------- print ---------- */
@media print { body { background: #fff; } .ad-app { display: block; } .ad-content { padding: 0; } }

/* ---------- title band (marketing pages; includes/page-hero.php) ---------- */
.pband { position: relative; padding-top: clamp(28px, 4vw, 56px); background: linear-gradient(180deg, var(--surface-2), var(--page)); overflow: hidden; }
.pband .back { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; color: var(--muted); font-weight: 700; text-decoration: none; margin-bottom: .4rem; }
.pband .back:hover { color: var(--brand-ink); }
.pband-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: end; padding-bottom: clamp(28px, 4vw, 48px); }
.pband h1 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.25; margin: .7rem 0 .5rem; }
.pband .pl-lead { max-width: 64ch; margin: 0; }
.pband-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.pband-meta { margin: 0; color: var(--muted); font-weight: 700; }
.pband .road { color: var(--green); }
@media (max-width: 767.98px) { .pband-in { grid-template-columns: minmax(0, 1fr); } }
/* the picture beside the title (includes/page-hero.php, page_hero_visual): a night road, our vehicles on it, three glass chips */
.pband.has-vis .pband-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
.pband.has-vis .pband-vis { grid-column: 2; grid-row: 1 / span 2; }
.pband.has-vis .pband-meta { grid-column: 1; }
.pband-vis { position: relative; width: 100%; min-width: 0; min-height: 330px; aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden; background: #0e1510; box-shadow: var(--shadow-lg); isolation: isolate; }
.pband-vis::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 15% 10%, rgba(var(--green-rgb), .55), transparent 70%), radial-gradient(55% 60% at 100% 100%, rgba(var(--green-rgb), .28), transparent 70%); }
.pband-vis svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-edge { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 74; stroke-linecap: round; }
.pv-road { fill: none; stroke: #1a241d; stroke-width: 62; stroke-linecap: round; }
.pv-lane { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 2.2; stroke-dasharray: 11 12; stroke-linecap: round; }
.pband-vis image { filter: drop-shadow(0 6px 8px rgba(0,0,0,.55)); }
.pv-chip { position: absolute; display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem .55rem .8rem; border-radius: 16px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.pv-chip i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--green); color: #fff; font-size: 1.15rem; flex: 0 0 auto; }
.pv-chip span { display: grid; line-height: 1.25; }
.pv-chip b { font-size: 1.15rem; font-weight: 800; }
.pv-chip small { font-size: .82rem; color: rgba(255,255,255,.78); font-weight: 600; }
/* the road art is not mirrored in RTL, so the chips sit by physical side: each layout leaves the vehicles clear */
.pv-a .pv-c1 { top: 7%; left: 5%; }       .pv-a .pv-c2 { bottom: 8%; right: 5%; }  .pv-a .pv-c3 { top: 40%; left: 5%; }
.pv-b .pv-c1 { top: 7%; right: 5%; }      .pv-b .pv-c2 { bottom: 8%; left: 5%; }   .pv-b .pv-c3 { top: 44%; right: 5%; }
.pv-c .pv-c1 { top: 7%; left: 5%; }       .pv-c .pv-c2 { bottom: 8%; left: 5%; }   .pv-c .pv-c3 { top: 44%; right: 5%; }
@media (max-width: 991.98px) { .pband.has-vis .pband-in { grid-template-columns: minmax(0, 1fr); } .pband.has-vis .pband-vis { grid-column: 1; grid-row: auto; min-height: 0; height: 300px; aspect-ratio: auto; } .pband.has-vis .pband-meta { grid-column: 1; } }
@media (max-width: 575.98px) { .pband-vis { height: 260px; border-radius: 22px; } .pv-chip { padding: .4rem .65rem; gap: .45rem; } .pv-chip i { width: 30px; height: 30px; font-size: .95rem; border-radius: 10px; } .pv-chip b { font-size: .95rem; } .pv-chip small { font-size: .72rem; } .pv-c3 { display: none; } }

@media (max-width: 991.98px) { .ad-top .ad-title { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ad-top .ad-search { flex: 0 0 46px; } }
.au-side-link { color: var(--muted); font-weight: 600; }
.px-3 { padding-inline: 1rem; }

.pband-text { min-width: 0; }
.loc-steps { margin: .6rem 0 0; padding-inline-start: 1.3rem; display: grid; gap: .3rem; font-size: 15px; }

/* the dirty-form bar (cx.js toggles .on): floating pill; the auth kit rule above slid it off-screen until .is-on */
.savebar.on { transform: none; animation: none; }

/* vehicle colour swatch (promoted from p-provider.css; used by fleet, customer and admin order views too) */
.color-dot { display: inline-block; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; border: 1px solid #c3cac3; }
.color-dot-sm { width: 12px; height: 12px; vertical-align: -1px; margin-inline: .25rem; }
.color-dot[data-c="white"]  { background: #ffffff; }
.color-dot[data-c="silver"] { background: #c8cdd2; }
.color-dot[data-c="grey"]   { background: #6e767e; }
.color-dot[data-c="black"]  { background: #1b1f23; }
.color-dot[data-c="blue"]   { background: #1f5fb0; }
.color-dot[data-c="red"]    { background: #c0392b; }
.color-dot[data-c="green"]  { background: #1e7a4b; }
.color-dot[data-c="yellow"] { background: #e8b62c; }
.color-dot[data-c="brown"]  { background: #7a5230; }
/* "other" has no swatch to show, so it shows the absence of one. */
.color-dot[data-c="other"]  { background: linear-gradient(135deg, #e6eaee 45%, #c3cac3 45% 55%, #e6eaee 55%); }

/* chip / toggle inputs are absolutely positioned: their label must anchor them or a scrolling chip row grows the page sideways */
.fm-chips label, .tgl, .fm-check { position: relative; }

button.text-link { border: 0; background: none; padding: 0 .2rem; font: inherit; font-weight: 700; cursor: pointer; }

/* =====================================================================
   Wizard: one question per screen (customer/new-order.php, auth/register.php, provider/vehicle-add.php).
   Driven by cx.js form[data-wizard] (new-order has its own controller).
   Without JavaScript every .wz-step is visible and the form posts as one page;
   with it (.wz-on) only the current one is, and the map shows on the two
   location steps.
   ===================================================================== */
.wz-main { display: grid; gap: clamp(14px, 1.6vw, 20px); min-width: 0; align-content: start; }
.wz-top { display: grid; gap: 10px; margin-bottom: clamp(14px, 1.6vw, 22px); }
.wz-top[hidden] { display: none; }
.wz-meta { color: var(--muted); font-weight: 800; }
.wz-bar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.wz-bar i { height: 8px; border-radius: 8px; background: var(--line); transition: background var(--ease); }
.wz-bar i.is-done { background: var(--green); }
.wz-bar i.is-cur { background: var(--brand); }

.wz-step { min-width: 0; padding: clamp(20px, 2.6vw, 36px); border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.wz-on .wz-step { display: none; }
.wz-on .wz-step.is-cur { display: block; animation: wz-in 260ms cubic-bezier(.2,.7,.3,1); }
@keyframes wz-in { from { opacity: 0; transform: translateY(10px); } }
.wz-q h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.3; margin: 0 0 .35rem; }
.wz-q p { margin: 0; color: var(--muted); font-size: 17px; }
.wz-body { display: grid; gap: 1.3rem; margin-top: 1.4rem; }
.wz-step .fm-input { min-height: 58px; font-size: 17px; }
.wz-step textarea.fm-input { min-height: 110px; }

.wz-map { padding: clamp(14px, 1.8vw, 22px); border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.wz-map[hidden] { display: none; }
.wz-on .wz-map { margin-top: 0; }

.wz-more { border: 1.5px dashed #c6cec6; border-radius: 16px; padding: 4px 16px; }
.wz-more summary { display: flex; align-items: center; gap: .6rem; min-height: 50px; cursor: pointer; color: var(--brand-ink); font-weight: 800; list-style: none; }
.wz-more summary::-webkit-details-marker { display: none; }
.wz-more[open] { padding-bottom: 16px; border-style: solid; }

.wz-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; position: sticky; bottom: 0; z-index: 8; padding-block: 12px; background: linear-gradient(to top, var(--page) 62%, transparent); }
.wz-on .wz-nav #wzBack ~ #wzMsg { flex: 1 1 200px; }
.wz-msg { flex: 1 1 200px; margin: 0; color: var(--danger); font-weight: 700; }
.wz-msg:empty { display: none; }
.wz-nav .btx-lg { min-width: 180px; margin-inline-start: auto; }
.wz-nav #wzBack { margin-inline-start: 0; min-width: 0; }
.wz:not(.wz-on) .wz-nav #wzNext, .wz:not(.wz-on) .wz-nav #wzBack { display: none; }


/* ---------- maps (Leaflet, assets/js/cx-map.js) ---------- */
.map { position: relative; z-index: 0; isolation: isolate; }
.leaflet-container { font-family: var(--font); font-size: 15px; background: var(--surface-2); }
.cxm-dot { background: none; border: 0; }
.cxm-dot i { display: block; border-radius: 50%; box-shadow: 0 1px 5px rgba(0,0,0,.4); }
.leaflet-control-layers { border: 0; border-radius: 14px; box-shadow: var(--shadow); }
.leaflet-control-layers-expanded { padding: 8px 12px; color: var(--ink); }
.leaflet-control-layers label { display: flex; align-items: center; gap: .5rem; min-height: 32px; margin: 0; font-weight: 700; cursor: pointer; }
.leaflet-control-layers input { accent-color: var(--brand); width: 18px; height: 18px; }
.leaflet-bar a, .cxm-fs a { width: 40px; height: 40px; line-height: 40px; display: grid; place-items: center; color: var(--ink); }
.leaflet-container:fullscreen { border-radius: 0; height: 100vh; }
.leaflet-container a.leaflet-control-zoom-in, .leaflet-container a.leaflet-control-zoom-out { font-size: 22px; }

/* number inputs default to direction:ltr, which put the digits on the same side as the unit suffix and overlapped it in RTL pages */
.fm-affix > .fm-input { direction: inherit; }
.fm-affix > .fm-input[type="number"]::-webkit-inner-spin-button, .fm-affix > .fm-input[type="number"]::-webkit-outer-spin-button { margin-inline-start: .5rem; }

/* ---------------------------------------------------------------------
   "Finish your account" checklist (includes/account-todo.php) — the web-design
   skill's AuthLab onboarding list: numbered squares, one step "now", done ones ticked.
   --------------------------------------------------------------------- */
.todo { margin-bottom: clamp(16px, 2vw, 24px); }
.td-prog { height: 6px; margin: 4px 0 18px; border-radius: 6px; background: var(--line); overflow: hidden; }
.td-prog b { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--green)); transition: width 400ms var(--ease); }
.td-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.td-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .9rem; align-items: start; padding: 12px; border-radius: 16px; color: var(--muted); }
.td-steps .n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; }
.td-steps b { display: block; color: inherit; font-size: 17px; line-height: 40px; }
.td-steps li.now { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.td-steps li.now .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.td-steps li.done .n { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.td-steps li.done .n .num { display: none; }
.td-steps li.done .n::before { content: "\F26E"; font-family: "bootstrap-icons"; font-size: 1.2rem; }
.td-help { display: block; margin: -4px 0 .7rem; color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }
.td-form { margin-top: .2rem; }
.td-phone { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; max-width: 520px; }
.td-phone .btx { min-height: 52px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 575.98px) { .td-phone { grid-template-columns: minmax(0, 1fr); } .td-phone .btx { width: 100%; } }

/* a vehicle near the pickup (new-order map): small white badge, brand ring */
.cxm-veh { background: none; border: 0; }
.cxm-veh i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; border: 2px solid var(--brand); color: var(--brand-ink); font-size: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }

/* the tracking map: the driver is the vehicle itself (solid brand badge); pickup and drop-off are named pins */
.cxm-veh.is-driver i { background: var(--brand); color: #fff; border-color: #fff; font-size: 21px; box-shadow: 0 3px 10px rgba(0,0,0,.45); }
.cxm-pin { overflow: visible; }
.cxm-pin i { position: relative; border-width: 3px; font-size: 15px; color: #fff; }
.cxm-pin.pickup i { background: var(--green); border-color: #fff; }
.cxm-pin.dropoff i { background: var(--accent); border-color: #fff; }
.cxm-pin b { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: #fff; color: var(--ink); font: 800 15px/1.6 var(--font); white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* vehicle sprites on the maps (assets/js/cx-map.js): they turn to face the way they are going */
.cxm-vhwrap { background: none; border: 0; }
.cxm-vh { transition: transform .5s linear; transform-origin: 50% 50%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); will-change: transform; }
.cxm-vh img { display: block; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; }

/* Wamy card (includes/wamy-card.php): alerts on the phone through our own messages app */
.cx-wamy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 16px; }
.cx-wamy-i { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-size: 1.4rem; }
.cx-wamy-t { flex: 1 1 280px; min-width: 0; }
.cx-wamy-t h2 { font-size: 18px; margin: 0 0 4px; }
.cx-wamy-t p { margin: 0; color: var(--muted); }
.cx-wamy form { margin: 0; }
.cx-wamy.is-linked { padding-block: 12px; }
.cx-wamy.is-linked .cx-wamy-i { width: 40px; height: 40px; font-size: 1.2rem; }
.cx-wamy.is-linked .cx-wamy-t p { color: var(--ink); }

/* "Message us on Wamy" corner button (includes/wamy-float.php), like the floating WhatsApp button other sites carry.
   The app icon itself; the words slide out on hover or keyboard focus. On phones it sits above the bottom tab bar. */
.wamy-float { position: fixed; bottom: calc(22px + env(safe-area-inset-bottom)); inset-inline-start: 22px; z-index: 44; display: inline-flex; align-items: center; min-height: 60px; border-radius: 20px; text-decoration: none; color: #fff; }
.wamy-float .wf-ic { position: relative; width: 60px; height: 60px; flex: 0 0 auto; border-radius: 18px; box-shadow: 0 10px 26px -6px rgba(1, 118, 114, .6); transition: transform 200ms ease; }
.wamy-float .wf-ic img { display: block; width: 100%; height: 100%; border-radius: 18px; }
.wamy-float .wf-ic::after { content: ""; position: absolute; inset: 0; border-radius: 18px; animation: wfPulse 2.6s ease-out infinite; }
.wamy-float .wf-tx { max-width: 0; overflow: hidden; white-space: nowrap; padding-block: 10px; border-radius: 14px; background: #022847; font-size: 16px; font-weight: 700; line-height: 1.4; opacity: 0; transition: max-width 260ms ease, opacity 200ms ease, padding 260ms ease, margin 260ms ease; }
.wamy-float:hover .wf-ic, .wamy-float:focus-visible .wf-ic { transform: scale(1.06); }
.wamy-float:hover .wf-tx, .wamy-float:focus-visible .wf-tx { max-width: 260px; margin-inline-start: 10px; padding-inline: 14px; opacity: 1; }
.wamy-float:hover { color: #fff; }
.wamy-float:focus-visible { outline: 3px solid #0ce2da; outline-offset: 4px; }
@keyframes wfPulse { 0% { box-shadow: 0 0 0 0 rgba(12, 226, 218, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(12, 226, 218, 0); } }
@media (max-width: 991.98px) { .wamy-float { bottom: calc(96px + env(safe-area-inset-bottom)); inset-inline-start: 16px; } }
@media (prefers-reduced-motion: reduce) { .wamy-float .wf-ic::after { animation: none; } .wamy-float .wf-ic, .wamy-float .wf-tx { transition: none; } }
@media print { .wamy-float { display: none; } }
