/* =====================================================================
   Clix Creator dashboard — ONE shell + component kit for every page.
   Pages may only arrange these parts; they never add colours, radii,
   shadows or font sizes (checked by dashboard/tools/check-app.cjs).
   Builds on base.css (tokens, fonts, .range, .qa).
   Mobile first: 360 → 760 (tablet, icon rail) → 1020 (full sidebar) → 1440.
   ===================================================================== */

:root {
  --side: 248px; --side-rail: 72px; --top: 64px; --tab: 64px;
  --page-max: 1280px; --page-pad: 16px;
  --fs-xs: 12px; --fs-sm: 13.5px; --fs-md: 15px; --fs-lg: 17px; --fs-xl: 21px;
  --fs-kpi: 30px; --fs-hero: 40px; --fs-title: clamp(24px, 2.4vw, 30px);
  --row: 52px;
  /* status colours from DESIGN.md (base.css only carries success) */
  --danger: #a8323a; --danger-wash: #fdecee; --warning: #a15c00; --warning-wash: #fff4e0;
}
@media (min-width: 760px) { :root { --page-pad: 28px; } }
@media (min-width: 1240px) { :root { --page-pad: 32px; --fs-kpi: 32px; --fs-hero: 46px; } }

body.dash { background: var(--bg-sunk); font-size: var(--fs-md); line-height: 1.5; color: var(--ink-2); }
body.dash h1, body.dash h2, body.dash h3 { letter-spacing: -0.03em; }
.num, .tnum { font-variant-numeric: tabular-nums; }
/* pixel sprites are filled paths: line-icon rules (stroke on svg) must never outline them */
.sprite path { stroke: none; }
.mono { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.orange { color: var(--orange); }
/* money that comes in (top-ups, refunds): green reads at small sizes, orange does not */
.plus { color: var(--success); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- shell */
.app { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); }
.side { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.page { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 18px var(--page-pad) calc(var(--tab) + 36px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) {
  .app { grid-template-columns: var(--side-rail) minmax(0, 1fr); }
  .page { padding: 28px var(--page-pad) 56px; }
  .side { display: flex; }
}
@media (min-width: 1020px) {
  .app { grid-template-columns: var(--side) minmax(0, 1fr); }
  .app.is-collapsed { grid-template-columns: var(--side-rail) minmax(0, 1fr); }
}

/* sidebar */
.side { position: sticky; top: 0; height: 100svh; flex-direction: column; gap: 6px; padding: 14px 12px 14px; background: var(--surface); border-right: 1px solid var(--line); z-index: 30; }
.side.is-tall { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.side-brand { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px; margin-bottom: 12px; color: var(--ink); }
.side-brand .brand-symbol { width: 26px; height: 26px; flex: none; }
.side-brand .brand-name { font-size: 20px; }
.side-group { margin: 14px 10px 6px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.side-nav { display: grid; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 10px; border-radius: var(--r-control); font-size: 14.5px; font-weight: 650; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav-item:hover { background: var(--surface-3); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--orange-wash); color: var(--ink); font-weight: 750; }
.nav-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--muted); transition: color .2s, background-color .2s; }
.nav-ic .sprite { width: 22px; height: 22px; }
.nav-item[aria-current="page"] .nav-ic { color: var(--orange); background: var(--surface); box-shadow: 0 0 0 1px var(--orange-line); }
/* platform entries under "New order": the logo stays grey until hovered or chosen */
.nav-ic img { width: 18px; height: 18px; filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s; }
.nav-item:hover .nav-ic img, .nav-item[aria-current="page"] .nav-ic img { filter: none; opacity: 1; }
.nav-count { margin-left: auto; min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); font-size: var(--fs-xs); font-weight: 800; color: var(--ink-2); text-align: center; font-variant-numeric: tabular-nums; }
.nav-item[aria-current="page"] .nav-count { background: var(--surface); }
.side-foot { margin-top: auto; display: grid; gap: 4px; }
.side-user { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px; border-radius: var(--r-control); color: var(--ink); }
.side-user:hover { background: var(--surface-3); }
.side-user b { display: block; font-size: var(--fs-sm); font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.side-user small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--orange-wash); border: 1px solid var(--orange-line); font-size: var(--fs-xs); font-weight: 900; color: var(--ink); }
.side-collapse { display: none; }
@media (min-width: 1020px) {
  /* same row as a nav item, quieter: the hairline below separates the menu from the account */
  .side-collapse { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 10px; border: 0; border-radius: var(--r-control); background: none; font-size: 14.5px; font-weight: 650; color: var(--muted); text-align: left; transition: background-color .2s, color .2s; }
  .side-collapse:hover { background: var(--surface-3); color: var(--ink); }
  .side-collapse:hover .nav-ic { color: var(--ink); }
  .side-collapse .sprite { transition: transform .35s var(--ease); }
  .app.is-collapsed .side-collapse .sprite { transform: scaleX(-1); }
  .side-collapse + .side-user { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-control) var(--r-control); }
}
/* rail (tablet, or collapsed desktop): icons only, labels become tooltips */
@media (min-width: 760px) and (max-width: 1019px) { .side { --rail: 1; } }
.side.rail-mode, .app.is-collapsed .side { align-items: stretch; }
@media (min-width: 760px) and (max-width: 1019px) {
  .side .side-group, .side .brand-name, .side .nav-count, .side-user > span:last-child, .side-collapse-l { display: none; }
  .side-brand, .nav-item, .side-user { justify-content: center; padding: 0; }
  /* the label stays for screen readers; the tooltip shows it on screen */
  .side .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 1020px) {
  .app.is-collapsed .side .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .app.is-collapsed .side .side-group, .app.is-collapsed .side .brand-name, .app.is-collapsed .side .nav-count, .app.is-collapsed .side-user > span:last-child, .app.is-collapsed .side-collapse-l { display: none; }
  .app.is-collapsed .side-brand, .app.is-collapsed .nav-item, .app.is-collapsed .side-user, .app.is-collapsed .side-collapse { justify-content: center; padding: 0; }
}

/* topbar */
.top { position: sticky; top: 0; z-index: 25; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 var(--page-pad); background: rgb(244 245 246 / .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
@media (max-width: 759px) { :root { --top: 56px; } }
.top-l { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.top-brand { display: flex; align-items: center; color: var(--ink); }
.top-brand .brand-symbol { width: 24px; height: 24px; }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-sm); font-weight: 650; color: var(--muted); }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 14px; height: 14px; flex: none; }
.crumbs b { color: var(--ink); font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-r { display: flex; align-items: center; gap: 8px; }
.top-search { display: none; }
@media (min-width: 1020px) { .top-brand { display: none; } .top-search { display: block; width: min(320px, 28vw); } }
@media (min-width: 760px) and (max-width: 1019px) { .top-brand { display: none; } }
.bal-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--orange-wash); border: 1px solid var(--orange-line); font-size: 14px; font-weight: 850; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; transition: border-color .2s; }
.bal-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.bal-chip:hover { border-color: var(--orange); }
.top .only-desk { display: none; }
@media (min-width: 760px) { .top .only-desk { display: inline-flex; } }

/* A quiet wallet control: the balance usable here and a compact funding action. */
.top-funds { position: relative; display: inline-flex; align-items: center; height: 44px; gap: 0; isolation: isolate; }
.top-funds::before { content: ""; position: absolute; inset: 4px 0; z-index: -1; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.top-funds .bal-chip { position: relative; height: 44px; max-width: 160px; padding: 0 12px; border: 0; border-radius: 11px 0 0 11px; background: transparent; font-size: 13px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 44px; }
.top-funds .bal-chip::before, .top-funds .bal-chip::after { display: none; }
.top-add-funds { position: relative; height: 44px; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px 0 9px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.top-add-funds::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.funds-plus { display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--ink); background: var(--orange-wash); border-radius: 8px; }
.funds-plus svg { width: 12px; height: 12px; fill: none; stroke: var(--orange); stroke-width: 2; }
.top-add-funds:hover .funds-plus { background: var(--orange-line); }
.top-add-funds:hover, .top-funds .bal-chip:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.menu .mobile-notifications { display: none; }
@media (min-width: 1020px) { .top-search { width: min(260px, 21vw); } }
@media (max-width: 759px) {
  :root { --top: 64px; }
  .top { height: var(--top); gap: 8px; padding: 0 12px; }
  .top-l { flex: 1; min-width: 24px; }
  .top-r { gap: 4px; min-width: 0; }
  .top [data-bell] { display: none; }
  .top [data-user].has-unread::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--bg-sunk); }
  .top-funds .bal-chip { max-width: 116px; padding: 0 9px; font-size: 12px; }
  .top-add-funds { gap: 4px; padding: 0 9px; font-size: 12px; }
  .menu .mobile-notifications { display: flex; }
}

/* mobile tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(var(--tab) + env(safe-area-inset-bottom)); padding: 6px 4px env(safe-area-inset-bottom); background: rgb(255 255 255 / .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -22px rgb(20 24 34 / .35); }
@media (min-width: 760px) { .tabbar { display: none; } }
.tab { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 48px; border-radius: 12px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.tab .sprite { width: 22px; height: 22px; }
.tab-ic { width: 40px; height: 28px; display: grid; place-items: center; border-radius: 10px; transition: background-color .2s, color .2s; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"] .tab-ic { background: var(--orange-wash); color: var(--orange); }
.tab.is-new .tab-ic { width: 44px; height: 30px; background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }
.tab.is-new[aria-current="page"] .tab-ic { background: var(--orange); color: #fff; }

/* sticky primary action on phones (sits above the tab bar) */
.sticky-act { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab) + 10px + env(safe-area-inset-bottom)); z-index: 35; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: rgb(255 255 255 / .96); border: 1px solid var(--line); box-shadow: var(--shadow-3); }
.sticky-act .dbtn { flex: 1; }
.sticky-act-sum { display: grid; line-height: 1.2; padding-left: 4px; }
.sticky-act-sum small { font-size: var(--fs-xs); color: var(--muted); font-weight: 650; }
.sticky-act-sum b { font-size: 18px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (min-width: 760px) { .sticky-act { display: none; } }
.has-sticky .page { padding-bottom: calc(var(--tab) + 110px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .has-sticky .page { padding-bottom: 56px; } }

/* ---------------------------------------------------------------- page parts */
.ph { display: grid; gap: 14px; margin-bottom: 22px; }
.ph-title { font-size: var(--fs-title); font-weight: 850; line-height: 1.1; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.ph-desc { margin-top: 6px; max-width: 60ch; font-size: var(--fs-md); color: var(--muted); }
.ph-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 760px) { .ph { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } .ph-actions { justify-content: flex-end; } }
.ph-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
.ph-back:hover { color: var(--ink); }
.ph-back svg { width: 16px; height: 16px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 1020px) { .grid { gap: 20px; } }
.section-t { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.section-d { font-size: var(--fs-sm); color: var(--muted); }

/* box = the one card */
.box { position: relative; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1); }
.box-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.box-h h2, .box-h h3 { font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.box-h p { font-size: var(--fs-sm); color: var(--muted); }
.box-h-actions { display: flex; align-items: center; gap: 6px; }
.box-b { padding: 16px 18px 18px; }
.box-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-card) var(--r-card); font-size: var(--fs-sm); }
.box.is-accent { border-color: var(--orange-line); }
.box.is-flat { box-shadow: none; background: var(--surface-2); }
/* small text link: ink with a bright orange underline; the arrow stays orange */
.box-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 750; color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.box-link svg { width: 14px; height: 14px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.box-link:hover svg { transform: translateX(3px); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.dotwell { background: radial-gradient(circle, var(--dot) 1.1px, transparent 1.5px) 0 0 / 12px 12px, var(--surface-3); border-radius: var(--r-inner); }

/* KPI tile */
.kpi { display: grid; gap: 6px; padding: 16px 18px 14px; }
.kpi-l { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kpi-l .sprite { width: 11px; height: 11px; color: var(--orange); }
.kpi-v { font-size: var(--fs-kpi); font-weight: 900; letter-spacing: -.05em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi-v.is-money { color: var(--orange); }
.kpi-v small { margin-left: 4px; font-size: var(--fs-sm); font-weight: 650; letter-spacing: 0; color: var(--muted); }
.kpi-s { font-size: var(--fs-sm); color: var(--muted); }
.kpi-hero { font-size: var(--fs-hero); font-weight: 900; letter-spacing: -.05em; line-height: .95; color: var(--orange); font-variant-numeric: tabular-nums; }
.delta { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 800; }
.delta.up { background: var(--success-wash); color: var(--success); }
.delta.down { background: var(--danger-wash); color: var(--danger); }
.delta.flat { background: var(--surface-3); color: var(--muted); }

/* ---------------------------------------------------------------- controls */
.dbtn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: var(--h); padding: 0 16px; border: 0; border-radius: var(--r-control); font-size: 15px; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s; }
.dbtn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dbtn .sprite { width: 11px; height: 11px; }
.dbtn:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--ink-2), var(--shadow-2); }
.dbtn:active { transform: none; }
.dbtn:disabled, .dbtn[aria-disabled="true"] { cursor: not-allowed; transform: none; color: var(--faint); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
/* the one primary action: orange needs ≥18.66px/800 white text (DESIGN.md) */
.dbtn-primary { --h: 48px; padding: 0 20px; font-size: 18.67px; font-weight: 800; color: #fff; background: var(--orange); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .14), var(--shadow-orange); }
.dbtn-primary:hover { background: var(--orange-hover); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .14), 0 22px 44px -18px rgb(255 90 10 / .6); }
.dbtn-ink { color: #fff; background: var(--ink); box-shadow: var(--shadow-1); }
.dbtn-ink:hover { background: #1c2130; box-shadow: var(--shadow-2); }
.dbtn-soft { color: var(--ink); background: var(--orange-wash); box-shadow: inset 0 0 0 1px var(--orange-line); }
.dbtn-soft:hover { box-shadow: inset 0 0 0 1px var(--orange); }
.dbtn-quiet { background: none; box-shadow: none; color: var(--ink-2); padding: 0 10px; }
.dbtn-quiet:hover { background: var(--surface-3); box-shadow: none; transform: none; }
.dbtn-danger { color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-wash), var(--shadow-1); }
.dbtn-sm { --h: 36px; padding: 0 12px; font-size: 14px; gap: 7px; }
.dbtn-block { width: 100%; }
.dbtn.is-busy { pointer-events: none; }
.dbtn.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: dspin .7s linear infinite; }
@keyframes dspin { to { transform: rotate(360deg); } }

.ibtn { position: relative; width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink-2); transition: border-color .2s, color .2s, background-color .2s; }
.ibtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ibtn .sprite { width: 11px; height: 11px; }
.ibtn:hover { border-color: var(--ink-2); color: var(--ink); }
.ibtn.is-quiet { border-color: transparent; background: none; }
.ibtn.is-quiet:hover { background: var(--surface-3); }
.ibtn-sm { width: 34px; height: 34px; border-radius: 9px; }
.ibtn-sm svg { width: 16px; height: 16px; }
.ibtn .dot-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px var(--bg-sunk); }

/* tooltip for icon buttons (hover + keyboard focus) */
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 60; padding: 5px 9px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, 4px); transition: opacity .15s, transform .2s var(--ease); }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
[data-tip-pos="right"]::after { left: calc(100% + 10px); bottom: auto; top: 50%; transform: translate(4px, -50%); }
[data-tip-pos="right"]:hover::after, [data-tip-pos="right"]:focus-visible::after { transform: translate(0, -50%); }
/* buttons at the right edge: the tooltip ends at the button and opens to the left (no overflow past the screen) */
[data-tip-pos="end"]::after { left: auto; right: 0; transform: translate(0, 4px); }
[data-tip-pos="end"]:hover::after, [data-tip-pos="end"]:focus-visible::after { transform: translate(0, 0); }
@media (min-width: 1020px) { .app:not(.is-collapsed) .side [data-tip]::after { display: none; } }
/* phones and touch screens have no hover: no tooltips (they would also stick out past the screen edge) */
@media (max-width: 759px), (hover: none) { [data-tip]::after { display: none; } }

/* form fields */
.field { display: grid; gap: 7px; min-width: 0; }
.field-l { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field-h { font-size: var(--fs-sm); color: var(--muted); }
.field-e { font-size: var(--fs-sm); font-weight: 650; color: var(--danger); }
.field-ok { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--success); }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 0 14px; border-radius: var(--r-control); border: 1px solid var(--line-2); background: var(--surface-2); font-size: 15.5px; color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.textarea { min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgb(255 90 10 / .16); background: var(--surface); }
/* Clix dropdown (ui.js enhanceSelects): button + listbox; the native select stays hidden as the value holder */
.dd { position: relative; display: inline-flex; min-width: 0; max-width: 100%; }
.field .dd, .dd-block .dd { display: flex; width: 100%; }
.dd > select.dd-native { position: absolute !important; left: 0; bottom: 0; width: 1px !important; min-width: 0 !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; }
.dd-btn { display: flex; align-items: center; text-align: left; cursor: pointer; font-weight: 600; }
.dd-btn:disabled { cursor: default; opacity: .6; }
.dd-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn[aria-expanded="true"] { border-color: var(--orange); box-shadow: 0 0 0 3px rgb(255 90 10 / .16); background-color: var(--surface); }
.dd-list { position: absolute; z-index: 75; top: calc(100% + 6px); left: 0; min-width: max(100%, 180px); max-width: min(360px, calc(100vw - 24px)); max-height: min(360px, 60vh); overflow-y: auto; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); outline: none; }
.dd-list.is-up { top: auto; bottom: calc(100% + 6px); }
.dd-list.is-float { position: fixed; top: auto; bottom: auto; min-width: 0; max-width: calc(100vw - 24px); }
.dd-list.has-search { padding-top: 0; }
.dd-search-wrap { position: sticky; top: 0; z-index: 1; padding: 6px 0 6px; background: var(--surface); }
.dd-search-wrap .dd-search { min-height: 40px; font-size: 14px; }
.dd-none { padding: 10px 12px; font-size: 14px; color: var(--muted); }
.dd-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 40px; padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.dd-opt.is-active { background: var(--surface-3); color: var(--ink); }
.dd-opt[aria-selected="true"] { color: var(--ink); font-weight: 800; }
.dd-opt[aria-selected="true"]::after { content: ""; flex: none; width: 10px; height: 5px; margin-top: -3px; border: solid var(--orange); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.dd-opt[aria-disabled="true"] { color: var(--faint); cursor: default; }
.dd-list:focus-visible .dd-opt.is-active { box-shadow: inset 0 0 0 2px var(--orange); }
@media (max-width: 759px) { .dd-opt { min-height: 44px; } }
.input.is-ok { border-color: var(--success); }
.input.is-err { border-color: var(--danger); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg { position: absolute; left: 13px; width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.input-wrap > .input { padding-left: 40px; }
.input-wrap > .input-end { position: absolute; right: 6px; }
.input-wrap > .input-pre { position: absolute; left: 15px; font-size: 15.5px; font-weight: 800; color: var(--muted); pointer-events: none; }
.input-wrap > .input-pre + .input { padding-left: 30px; }
/* iPhone Safari zooms into a text field under 16px when it is tapped and stays zoomed in: touch screens get 16px */
@media (pointer: coarse) { .input, .textarea, .input-wrap > .input-pre { font-size: 16px; } }
.search { min-height: 40px; }

.seg { display: inline-flex; max-width: 100%; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border: 0; border-radius: 9px; background: none; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 0 0 1px var(--line); }
.seg .count { font-size: var(--fs-xs); font-weight: 800; color: var(--faint); font-variant-numeric: tabular-nums; }

.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s, color .2s; }
.pchip img { width: 18px; height: 18px; }
.pchip:hover { border-color: var(--ink-2); }
.pchip[aria-pressed="true"], .pchip[aria-checked="true"] { border-color: var(--orange); background: var(--orange-wash); color: var(--ink); }

/* radio card (platform, service, package) */
.rcards { display: grid; gap: 10px; }
.rcard { position: relative; display: grid; gap: 4px; align-content: start; min-height: 64px; padding: 14px; border-radius: var(--r-inner); border: 1px solid var(--line-2); background: var(--surface); text-align: left; transition: border-color .2s, background-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.rcard:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.rcard[aria-checked="true"], .rcard[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-wash); box-shadow: 0 0 0 1px var(--orange); }
.rcard b { font-size: 15px; font-weight: 800; color: var(--ink); }
.rcard small { font-size: var(--fs-sm); color: var(--muted); }
.rcard .rcard-logo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 4px; }
.rcard .rcard-logo img { width: 20px; height: 20px; }
.rcard .rcard-tick { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); }
.rcard[aria-checked="true"] .rcard-tick, .rcard[aria-pressed="true"] .rcard-tick { border: 0; background: var(--orange); }
/* the check is drawn in CSS: no data: URI, so the launch verifier only sees same-origin files */
.rcard[aria-checked="true"] .rcard-tick::after, .rcard[aria-pressed="true"] .rcard-tick::after { content: ""; position: absolute; left: 7px; top: 3.5px; width: 5px; height: 9.5px; border: solid #fff; border-width: 0 2.3px 2.3px 0; transform: rotate(45deg); }
.rcard .rcard-price { font-size: 15px; font-weight: 850; color: var(--ink); font-variant-numeric: tabular-nums; }
.rcard.is-flag::before { content: attr(data-flag); position: absolute; top: -10px; left: 12px; padding: 2px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; }

.switch { position: relative; width: 44px; height: 26px; flex: none; border: 0; border-radius: 999px; background: var(--line-2); transition: background-color .25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .25s var(--ease); }
.switch[aria-checked="true"] { background: var(--orange); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting b { display: block; font-size: 15px; font-weight: 750; color: var(--ink); }
.setting small { display: block; font-size: var(--fs-sm); color: var(--muted); }
/* signed-in devices in Account → Sign-in & security */
.sess-h { margin: 18px 0 0; }
.sess .setting:last-child { border-bottom: 1px solid var(--line); }
.sess .skel { margin: 8px 0; }
.sess-more { margin: 8px 0; }
.setting b .badge { margin-left: 6px; vertical-align: 1px; }

/* ---------------------------------------------------------------- data display */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.t-muted { background: var(--surface-3); color: var(--muted); }
.badge.t-orange { background: var(--orange-wash); color: var(--ink); }
.badge.t-orange::before { background: var(--orange); animation: ledPulse 1.8s var(--ease) infinite; }
.badge.t-success { background: var(--success-wash); color: var(--success); }
.badge.t-peach { background: var(--orange-wash); color: var(--ink); box-shadow: inset 0 0 0 1px var(--orange-line); }
.badge.t-peach::before { background: var(--orange); }
.badge.t-neutral { background: var(--surface-3); color: var(--ink-2); }
.badge.t-danger { background: var(--danger-wash); color: var(--danger); }
.badge.t-warning { background: var(--warning-wash); color: var(--warning); }

.pf { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.pf-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.pf-ic img { width: 18px; height: 18px; }
.pf-ic.lg { width: 44px; height: 44px; border-radius: 12px; } .pf-ic.lg img { width: 24px; height: 24px; }
.pf-t { display: grid; min-width: 0; line-height: 1.3; }
.pf-t b { font-size: 14.5px; font-weight: 750; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-t small { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pbar { position: relative; height: 8px; border-radius: 999px; overflow: hidden; background: radial-gradient(circle, var(--dot-strong) 1.1px, transparent 1.5px) 0 50% / 8px 8px repeat-x, var(--surface-3); }
.pbar > i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 1%); border-radius: inherit; background: var(--orange); transition: width .8s var(--ease); }
.pbar.is-done > i { background: var(--success); }
.pbar.is-part > i { background: var(--orange-2); }
.pbar.lg { height: 12px; }
.prog { display: grid; gap: 6px; }
.prog-t { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.prog-t b { color: var(--ink); font-weight: 800; }
.prog-note { font-weight: 700; color: var(--ink-2); }

.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.kv dd.link { font: 500 13px/1.4 var(--mono); }

.copy { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--mono); color: var(--ink); }
.copy .ibtn { width: 28px; height: 28px; border-radius: 8px; }
.copy .ibtn svg { width: 14px; height: 14px; }
.payment-copy { max-width: 100%; }
.payment-copy > span { min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.payment-copy > .ibtn { flex-shrink: 0; }
.payment-copy [data-tip]::after { left: auto; right: 0; transform: translate(0, 4px); }
.payment-copy [data-tip]:hover::after, .payment-copy [data-tip]:focus-visible::after { transform: translate(0, 0); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-sm); color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--orange); vertical-align: 0; }
.legend i.sq { border-radius: 2px; background: var(--particle); }
.legend i.ring { background: none; box-shadow: inset 0 0 0 2px var(--dot-strong); }

/* charts (SVG built in ui.js; colours via these classes, no inline styles) */
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font: 500 12px var(--mono); fill: var(--muted); }
.chart .c-dot { fill: var(--dot); }
.chart .c-on { fill: var(--orange); }
.chart .c-on-2 { fill: var(--particle); }
.chart .c-grid { stroke: var(--dot-strong); stroke-width: 1; stroke-dasharray: 1 4; }
.chart .c-line { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .c-area { fill: rgb(255 90 10 / .12); }
.chart .c-mark { fill: var(--surface); stroke: var(--orange); stroke-width: 2; }
.chart .c-track { fill: none; stroke: var(--surface-3); }
.chart .c-arc { fill: none; stroke: var(--orange); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.chart .c-arc.is-done { stroke: var(--success); }
.chart .c-center { font: 900 26px var(--font); fill: var(--ink); letter-spacing: -.04em; }
.chart .c-center-s { font: 650 12px var(--font); fill: var(--muted); }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.hbar .pf-t b { font-size: 14px; }
.hbar-v { font-size: 14px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.hbar-track { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: radial-gradient(circle, var(--dot) 1.1px, transparent 1.5px) 0 50% / 8px 8px repeat-x, var(--surface-3); overflow: hidden; }
.hbar-track i { display: block; height: 100%; width: calc(var(--w, 0) * 1%); border-radius: inherit; background: var(--orange); transition: width .9s var(--ease); }
.hbar:nth-child(n+2) .hbar-track i { background: var(--orange-2); }
.hbar:nth-child(n+3) .hbar-track i { background: var(--dot-strong); }
.spark { width: 100%; height: 36px; }
.chart-f { display: grid; gap: 8px; min-width: 0; }
.chart-x { position: relative; height: 16px; font: 500 12px/16px var(--mono); color: var(--muted); }
.chart-x span { position: absolute; top: 0; left: calc(var(--x, 0) * 1%); transform: translateX(-50%); white-space: nowrap; }
.chart-x span.is-first { transform: none; }
.chart-x span.is-last { transform: translateX(-100%); }
@media (max-width: 559px) { .chart-x span:nth-child(even):not(.is-last) { display: none; } }

/* timeline */
.tl { display: grid; gap: 0; }
.tl-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 20px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: radial-gradient(circle, var(--dot-strong) 1px, transparent 1.4px) 0 0 / 2px 6px repeat-y; }
.tl-step:last-child::before { display: none; }
.tl-step.is-done::before { background: var(--orange); }
.tl-dot { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 2px solid var(--dot-strong); }
.tl-step.is-done .tl-dot { border-color: var(--orange); background: var(--orange); }
.tl-step.is-done .tl-dot svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tl-step.is-now .tl-dot { border-color: var(--orange); box-shadow: 0 0 0 5px rgb(255 90 10 / .14); }
.tl-step.is-now .tl-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); animation: ledPulse 1.8s var(--ease) infinite; }
.tl-b b { display: block; font-size: 15px; font-weight: 800; color: var(--ink); }
.tl-b small { display: block; font-size: var(--fs-sm); color: var(--muted); }
.tl-step.is-next .tl-b b { color: var(--muted); }

/* list rows (orders, transactions, requests) */
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
a.row:hover, button.row:hover { background: var(--surface-2); }
.row-r { display: grid; justify-items: end; gap: 4px; font-variant-numeric: tabular-nums; }
.row-r b { font-size: 15px; font-weight: 800; color: var(--ink); }
.row-r small { font-size: var(--fs-xs); color: var(--muted); }

/* ---------------------------------------------------------------- data table */
.dt { display: grid; min-width: 0; container-type: inline-size; }
.dt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dt-bar .input-wrap { flex: 1 1 220px; }
.dt-bar .select { width: auto; min-width: 136px; min-height: 40px; font-size: 14px; }
.dt-filters { display: none; flex-wrap: wrap; gap: 8px; }
@media (min-width: 760px) { .dt-filters { display: flex; } .dt-bar .dt-filter-btn { display: none; } }
.dt-active { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.dt-active:empty { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 11px; border-radius: 999px; background: var(--orange-wash); border: 1px solid var(--orange-line); font-size: 13px; font-weight: 700; color: var(--ink); }
.fchip button { width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink-2); }
.fchip button:hover { background: var(--surface); }
.fchip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.dt-scroll { overflow-x: auto; }
.dtable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.dtable thead th { position: sticky; top: 0; z-index: 1; height: 42px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.dtable thead th.r, .dtable td.r { text-align: right; }
.dtable th button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.dtable th button:hover { color: var(--ink); }
.dtable th button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .45; }
.dtable th[aria-sort="ascending"] button, .dtable th[aria-sort="descending"] button { color: var(--ink); }
.dtable th[aria-sort="ascending"] button svg, .dtable th[aria-sort="descending"] button svg { opacity: 1; color: var(--orange); }
.dtable td { height: var(--row); padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; font-variant-numeric: tabular-nums; }
.dtable tbody tr { transition: background-color .15s; }
.dtable tbody tr:hover { background: var(--surface-2); }
.dtable tbody tr.is-link { cursor: pointer; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable td b { color: var(--ink); font-weight: 750; }
.dtable .cell-actions { display: flex; justify-content: flex-end; gap: 4px; }
.dtable.compact td { height: 44px; padding-top: 4px; padding-bottom: 4px; }
.dt-cards { display: none; }
/* a table that does not fit its box (ui.js mountTable fit): cards, side by side where there is room */
.dt.is-fit-cards .dt-scroll { display: none; }
.dt.is-fit-cards .dt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 12px; }
.dt.is-fit-cards .dt-cards > * { min-width: 0; }  /* a long link must not push a card out of its column */
@media (max-width: 759px) { .dt-scroll { display: none; } .dt-cards { display: grid; gap: 10px; padding: 12px; } }
.dcard { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-inner); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.dcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dcard-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.dcard-meta b { color: var(--ink); font-weight: 800; }
.dt-more { display: flex; justify-content: center; padding: 4px 0 2px; }
.dt-empty { display: grid; justify-items: center; gap: 8px; padding: 40px 16px; text-align: center; color: var(--muted); }
.dt-empty b { font-size: 16px; color: var(--ink); }
.dt-empty .sprite { width: 22px; height: 22px; color: var(--orange); }
.dt-empty .dbtn { margin-top: 6px; }
.dt.is-empty .dt-bar, .dt.is-empty .dt-active, .dt.is-empty thead, .dt.is-empty .pager { display: none; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.pager-pages { display: flex; align-items: center; gap: 4px; }
.pager-pages button { min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid transparent; border-radius: 9px; background: none; font-size: 14px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pager-pages button:hover:not(:disabled) { background: var(--surface-3); }
.pager-pages button[aria-current="page"] { background: var(--orange-wash); border-color: var(--orange-line); color: var(--ink); }
.pager-pages button:disabled { opacity: .4; cursor: default; }
.pager-pages svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.pager-size { display: flex; align-items: center; gap: 8px; }
.pager-size .select { width: auto; min-height: 36px; font-size: 14px; }
.pager .gap { padding: 0 4px; }
.pager .gap.is-slim { display: none; }
/* phones: one compact block. The count and the rows menu share a line, the page buttons sit below with the arrows at the edges */
@media (max-width: 759px) {
  .pager { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 10px 12px 12px; }
  .pager-size { grid-area: 1 / 2; }
  .pager-pages { grid-column: 1 / -1; gap: 2px; }
  .pager-pages [data-pg="prev"] { margin-right: auto; }
  .pager-pages [data-pg="next"] { margin-left: auto; }
  .pager-pages [data-pg="prev"], .pager-pages [data-pg="next"] { border-color: var(--line-2); background: var(--surface-2); }
  .pager-pages .is-near { display: none; }
  .pager .gap.is-slim { display: inline; }
  .pager.is-single .pager-pages { display: none; }
}

/* ---------------------------------------------------------------- feedback */
.alert { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-inner); border: 1px solid var(--line); background: var(--surface-2); }
.alert > .sprite, .alert > svg { width: 22px; height: 22px; }
.alert b { display: block; font-size: 15px; font-weight: 750; color: var(--ink); }
.alert p { font-size: var(--fs-sm); color: var(--ink-2); }
.alert.t-orange { background: var(--orange-wash); border-color: var(--orange-line); color: var(--orange); }
.alert.t-success { background: var(--success-wash); border-color: rgb(19 131 59 / .2); color: var(--success); }
.alert.t-danger { background: var(--danger-wash); border-color: rgb(168 50 58 / .2); color: var(--danger); }
@media (max-width: 559px) { .alert { grid-template-columns: auto minmax(0, 1fr); } .alert > .dbtn, .alert > a.dbtn { grid-column: 1 / -1; } }

.empty { display: grid; justify-items: center; gap: 10px; padding: 40px 20px; text-align: center; }
.empty-art { width: 120px; height: 84px; display: grid; place-items: center; border-radius: var(--r-inner); background: radial-gradient(circle, var(--dot-strong) 1.2px, transparent 1.6px) 0 0 / 12px 12px; color: var(--orange); }
.empty-art .sprite { width: 22px; height: 22px; padding: 12px; box-sizing: content-box; border-radius: 12px; background: var(--surface); border: 1px solid var(--orange-line); }
.empty h3 { font-size: 20px; font-weight: 850; color: var(--ink); }
.empty h3 .px { font-size: .92em; }
.empty p { max-width: 42ch; font-size: 15px; color: var(--muted); }

.skel { display: block; border-radius: 10px; background: radial-gradient(circle, rgb(8 10 15 / .06) 1px, transparent 1.4px) 0 0 / 10px 10px, var(--surface-3); animation: skel 1.6s linear infinite; }
@keyframes skel { to { background-position: 40px 0, 0 0; } }
.skel.h1 { height: 30px; width: 40%; } .skel.h2 { height: 16px; width: 60%; } .skel.box { height: 120px; } .skel.row { height: 52px; } .skel.tall { height: 260px; }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
@media (max-width: 759px) { .toasts { left: 12px; right: 12px; bottom: calc(var(--tab) + 14px + env(safe-area-inset-bottom)); justify-items: stretch; } .has-sticky .toasts { bottom: calc(var(--tab) + 92px + env(safe-area-inset-bottom)); } }
.toast { display: flex; align-items: center; gap: 12px; min-height: 48px; max-width: 420px; padding: 11px 12px 11px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 650; box-shadow: var(--shadow-3); pointer-events: auto; animation: toastIn .45s var(--ease); }
.toast .check-disc { width: 20px; height: 20px; }
.toast .check-disc svg { width: 12px; height: 12px; }
.toast button { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: rgb(255 255 255 / .08); color: #fff; }
.toast button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
.toast.is-error { background: var(--danger); }
.toast-ic { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--danger); font-size: 13px; font-weight: 900; line-height: 1; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

dialog.dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: var(--r-card); background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-3); }
dialog.dlg::backdrop { background: rgb(8 10 15 / .32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog.dlg[open] { animation: dlgIn .35s var(--ease); }
dialog.dlg.is-wide { width: min(680px, calc(100vw - 32px)); }
.dlg-err:empty { display: none; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.dlg-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 6px; }
.dlg-h h2 { font-size: 20px; font-weight: 850; color: var(--ink); }
.dlg-b { padding: 8px 20px 20px; display: grid; gap: 14px; }
.dlg-f { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 14px 20px 20px; border-top: 1px solid var(--line); }
@media (max-width: 759px) {
  dialog.dlg { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); max-height: 88svh; }
  dialog.dlg[open] { animation: sheetIn .4s var(--ease); }
  .dlg-h::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 999px; background: var(--line-2); }
  .dlg-f .dbtn { flex: 1; }
}
@keyframes sheetIn { from { transform: translateY(40px); opacity: .4; } }

.menu { position: absolute; z-index: 70; min-width: 220px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); }
.menu[hidden] { display: none; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 9px; background: none; font-size: 14px; font-weight: 650; color: var(--ink-2); text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-3); color: var(--ink); }
.menu a > svg, .menu button > svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu .sprite { width: 16px; height: 16px; flex: none; }
.menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }
.menu-h { padding: 8px 10px 6px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.menu-h.menu-mail { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0; text-transform: none; }
.menu { max-width: calc(100vw - 24px); }
.note { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; padding: 10px; border-radius: 10px; font-size: 13.5px; color: var(--ink-2); }
.note i { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--orange); }
.note small { display: block; font-size: 12px; color: var(--muted); }
.note:hover { background: var(--surface-3); }
.note:not(.is-new) i { background: var(--dot-strong); }
p.note:hover { background: none; }

/* checklist (onboarding) */
/* consent checkbox (the request to start right away before an order): our own box, no browser default */
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 4px; padding: 12px 14px; border-radius: var(--r-inner); border: 1px solid var(--line); background: var(--surface-2); font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; display: grid; place-items: center; border-radius: 6px; border: 2px solid var(--line-2); background: var(--surface); cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.consent input::after { content: ''; width: 11px; height: 6px; margin-top: -3px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); opacity: 0; }
.consent input:checked { background: var(--orange); border-color: var(--orange); }
.consent input:checked::after { opacity: 1; }
.consent input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.consent.is-missing { border-color: var(--orange-line); background: var(--orange-wash); }
.consent:has(input:checked) { border-color: var(--line); background: var(--surface-2); }
.check { display: grid; gap: 10px; }
.check-i { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-inner); border: 1px solid var(--line); background: var(--surface); }
.check-i .ck { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line-2); font-size: 13px; font-weight: 800; color: var(--muted); }
.check-i.is-done .ck { border: 0; background: var(--success); }
.check-i.is-done .ck svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.check-i.is-done b { color: var(--muted); text-decoration: line-through; }
.check-i b { display: block; font-size: 15px; font-weight: 800; color: var(--ink); }
.check-i small { display: block; font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 559px) { .check-i { grid-template-columns: 32px minmax(0, 1fr); } .check-i > .dbtn { grid-column: 2; justify-self: start; } }

/* guarantee chips (real promises only) */
.guar { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.guar li { display: inline-flex; align-items: center; gap: 7px; }
.guar .check-disc { width: 18px; height: 18px; }
.guar .check-disc svg { width: 11px; height: 11px; }

/* link preview (detected post) */
.lprev { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-inner); border: 1px dashed var(--line-2); background: var(--surface-2); }
.lprev-media { width: 56px; height: 56px; border-radius: 10px; background: radial-gradient(circle, rgb(255 255 255 / .5) 1px, transparent 1.4px) 0 0 / 6px 6px, linear-gradient(135deg, var(--orange-line), var(--surface-3)); }
.lprev b { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.lprev small { display: block; font: 500 12px/1.4 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* focus rings inside the app */
body.dash :focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .skel, .badge.t-orange::before, .tl-step.is-now .tl-dot::after { animation: none; }
}

/* ---------------------------------------------------------------- order form parts (shared layout) */
.pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 480px) { .pp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .cols-7 .pp-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.pp-grid .rcard { justify-items: start; min-height: 88px; }
.sp-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) { .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 8px; }
@media (min-width: 640px) { .ap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ap-grid .rcard b { font-size: 20px; font-weight: 900; letter-spacing: -.03em; }
.ap-custom { display: grid; gap: 8px; margin-top: 6px; padding: 14px; border-radius: var(--r-inner); background: var(--surface-2); border: 1px solid var(--line); }
.ap-row { display: flex; align-items: center; gap: 10px; }
.ap-row .input { max-width: 160px; font-weight: 800; }
.sum-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.sum-vat { margin-top: -8px; text-align: right; }
/* service details under the service picker (only what the admin entered) */
.svc-info:empty { display: none; }
.svc-info { display: grid; gap: 10px; margin-top: -8px; }
.svc-about { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.svc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0; }
.svc-facts div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.svc-facts dt { font-size: var(--fs-xs); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.svc-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 650; color: var(--ink); }
.pf-row { padding-bottom: 4px; }

/* tables adapt to their box, not only to the viewport */
@container (max-width: 700px) {
  .dt .dt-bar .dt-filters { display: none; }
  .dt .dt-bar .dt-filter-btn { display: inline-flex; }
}
@container (max-width: 560px) {
  .dt .dt-scroll { display: none; }
  .dt .dt-cards { display: grid; gap: 10px; padding: 12px; }
}
.dtable .pf-t b { white-space: normal; overflow-wrap: anywhere; }
.dtable td > .pf { min-width: 170px; }
.dtable .nowrap, .dt-cards .nowrap { white-space: nowrap; }

/* polish after first device pass */
.tab-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.box-link { white-space: nowrap; }
.dt-bar .input-wrap { flex: 1 1 160px; }
.top-brand .brand-name { display: none; }
@media (max-width: 759px) {
  .top-brand { gap: 8px; }
  .top-brand .brand-name { display: inline; font-size: 19px; }
}

@media (max-width: 759px) { .top-l:has(.crumbs) .top-brand .brand-name { display: none; } }
/* phones: the breadcrumb becomes a back link (the page title says where you are) */
.crumb-back { display: none; }
@media (max-width: 759px) {
  .crumbs > svg, .crumbs > b { display: none; }
  .crumbs a { gap: 2px; color: var(--ink); font-weight: 750; }
  .crumb-back { display: inline-grid; }
  .crumb-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}
/* phones: the avatar menu is the way to Support and Sign out; the wordmark yields below 390 px */
@media (max-width: 389px) { .top-brand .brand-name { display: none; } }

/* phones: every tap target reaches 44 px (bigger controls, or an invisible hit area where the look must stay small) */
@media (max-width: 759px) {
  .dbtn-sm { --h: 44px; }
  .pchip, .seg button { min-height: 44px; }
  .pager-pages button { min-width: 44px; height: 44px; }
  .ibtn-sm, .copy .ibtn, .switch, .fchip button, .bal-chip { position: relative; }
  .ibtn-sm::before, .copy .ibtn::before, .switch::before, .fchip button::before, .bal-chip::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
  .bal-chip::after { width: 100%; }
  .ibtn:not(.ibtn-sm) { width: 44px; height: 44px; }
  .search, .dt-bar .select, .pager-size .select { min-height: 44px; }
  .box-link { min-width: 44px; min-height: 44px; }
  /* sliders: a 44 px tall hit area, the negative margin keeps the look and the spacing */
  .range input[type="range"] { height: 44px; margin: -7px 0; }
  .top-brand, .crumbs a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; }
  .top-r { gap: 4px; }
}

/* ---------------------------------------------------------------- product additions */
/* disabled choice cards (ordering not open yet) */
.rcard[aria-disabled="true"] { cursor: not-allowed; transform: none; }
.rcard[aria-disabled="true"]:hover { border-color: var(--line-2); transform: none; }
.svc-empty { display: grid; padding: 18px; }
.svc-empty b { display: block; font-size: 15px; font-weight: 800; color: var(--ink); }
.svc-empty small { display: block; font-size: var(--fs-sm); color: var(--muted); }
.sum-na { font-size: var(--fs-md); font-weight: 750; color: var(--muted); }
.rcard[aria-disabled="true"] { background: var(--surface-2); }
.rcard[aria-disabled="true"] b { color: var(--muted); }
.rcard[aria-disabled="true"] .rcard-logo { filter: grayscale(1); }
.input.has-end { padding-right: 84px; }
.input:disabled { cursor: not-allowed; color: var(--faint); background: var(--surface-3); }
.lprev .field-ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 479px) { .lprev { grid-template-columns: 44px minmax(0, 1fr); } .lprev .field-ok { grid-column: 2; } }

/* payment instructions as the admin wrote them (line breaks kept) */
.pay-text { padding: 12px 14px; border-radius: var(--r-inner); background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }

/* support conversation */
.thread-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: var(--fs-sm); }
.thread { display: grid; gap: 12px; max-height: 46svh; overflow-y: auto; padding: 4px 2px; }
.msg { display: grid; gap: 4px; max-width: 88%; }
.msg.is-me { justify-self: end; justify-items: end; }
.msg-b { padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.msg.is-me .msg-b { background: var(--orange-wash); border: 1px solid var(--orange-line); color: var(--ink); border-bottom-right-radius: 4px; }
.msg.is-us .msg-b { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.msg small { font-size: var(--fs-xs); color: var(--muted); }
.thread-reply { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.thread-reply .textarea { min-height: 96px; }
/* WhatsApp: a neutral button, the green stays in the logo */
.dbtn-wa img { width: 18px; height: 18px; flex: none; }
.sticky-act .dbtn-wa.is-side { flex: none; }
.help-wa { font-size: var(--fs-sm); }
/* screenshots on support messages */
.shots { display: grid; gap: 8px; }
.shots-add { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.shots-list { display: flex; flex-wrap: wrap; gap: 8px; }
.shot { position: relative; margin: 0; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.shot img, .msg-shots img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot-x { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px; color: #fff; background: rgb(8 10 15 / .72); cursor: pointer; }
.shot-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.shot-x:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.msg-shots { display: flex; flex-wrap: wrap; gap: 6px; }
.msg.is-me .msg-shots { justify-content: flex-end; }
.msg-shots a { display: block; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.msg-shots a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.thread-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
@media (max-width: 759px) { .thread { max-height: 40svh; } .thread-acts .dbtn { flex: 1 1 auto; } }

/* Every control shows its state (checklist I18): pressed, hover, disabled and busy, also where no own rule exists.
   Focus is global (:focus-visible in base.css). */
.ibtn:active, .pchip:active, .seg button:active, .srow:active, .pager-pages button:active:not(:disabled), .toast button:active, .dd-btn:active:not(:disabled), .switch:active { transform: translateY(1px); }
.ibtn:active { background: var(--surface-3); }
.seg button:hover:not([aria-pressed="true"]):not([aria-selected="true"]) { color: var(--ink); }
.dd-btn:hover:not(:disabled) { border-color: var(--ink-2); }
.switch:hover { box-shadow: 0 0 0 4px rgb(255 90 10 / .12); }
.toast button:hover { background: rgb(255 255 255 / .18); }
.ibtn:disabled, .ibtn[aria-disabled="true"], .pchip:disabled, .pchip[aria-disabled="true"], .seg button:disabled, .switch:disabled, .switch[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
button.is-busy:not(.dbtn), button[aria-busy="true"]:not(.dbtn) { cursor: progress; opacity: .6; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .ibtn:active, .pchip:active, .seg button:active, .srow:active, .pager-pages button:active, .toast button:active, .dd-btn:active, .switch:active { transform: none; }
}

/* our own date range picker (checklist I16) */
.cal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cal-h b { font-size: 16px; font-weight: 750; color: var(--ink); }
.cal-grid { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.cal-grid th { padding: 4px 0; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-align: center; }
.cal-grid td { padding: 0; text-align: center; }
.cal-day { width: 100%; aspect-ratio: 1; max-height: 44px; border: 1px solid transparent; border-radius: 10px; background: none; font-size: 14px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; cursor: pointer; }
.cal-day:hover:not(:disabled):not(.is-picked):not(.is-between) { background: var(--surface-3); }
.cal-day.is-between:hover { border-color: var(--orange-line); }
.cal-day:active:not(:disabled) { transform: translateY(1px); }
.cal-day.is-out { color: var(--faint); }
.cal-day.is-today { border-color: var(--line-2); }
.cal-day.is-between { background: var(--orange-wash); border-radius: 6px; }
.cal-day.is-picked { background: var(--orange); border-color: var(--orange); color: #fff; }
.cal-day:disabled { color: var(--line-2); cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .cal-day:active:not(:disabled) { transform: none; } }

/* two-step sign-in: the key to type into the app and the recovery codes */
.key-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: var(--r-inner); border: 1px solid var(--line); background: var(--surface-2); font-size: 15px; letter-spacing: .04em; overflow-wrap: anywhere; }
.code-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.code-list li { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); text-align: center; }
.api-doc { display: grid; gap: 6px; margin: 8px 0 12px; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.api-doc .mono { color: var(--ink); overflow-wrap: anywhere; }
.api-code { position: relative; padding: 12px 44px 12px 14px; border-radius: var(--r-inner); border: 1px solid var(--line); background: var(--surface-2); }
.api-code pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); line-height: 1.55; }
.api-code .ibtn { position: absolute; top: 8px; right: 8px; }

@media (max-width: 759px) { .top-brand .brand-name { display: none; } .top-l:has(.crumbs) .top-brand { display: none; } .top .crumbs a { font-size: 0; } }

/* phones: preset amounts as an even 2 × 2 grid instead of a row that breaks 3 + 1 */
@media (max-width: 759px) { .chipset.is-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .chipset.is-amounts .pchip { justify-content: center; } }
/* phones: a label keeps its line, the value takes the rest (no two half-wrapped columns) */
@media (max-width: 759px) { .kv dt { flex: none; max-width: 60%; } }
/* phones: a transaction card keeps its receipt button on the badge line; "Balance after" wraps instead */
@media (max-width: 759px) {
  .dcard-meta:has(> [data-receipt]) { flex-wrap: nowrap; align-items: center; }
  .dcard-meta:has(> [data-receipt]) > span:not(.badge) { flex: 1 1 auto; min-width: 0; text-align: right; }
  .dcard-meta:has(> [data-receipt]) > .badge, .dcard-meta:has(> [data-receipt]) > .ibtn { flex: none; }
}
/* phones: an open top-up stacks, so its payment code is never cut off */
@media (max-width: 759px) { .pend-row { grid-template-columns: minmax(0, 1fr); } .pend-row .dbtn { width: 100%; } }
/* service cards: the price line wraps evenly ("$1.90 per / 1,000 views", not "… 1,000 / views") */
.svc-card small { text-wrap: balance; }
