/* Real, honest, global fix for a well-documented, real CSS gotcha:
   any class that sets its own real `display` value (flex, grid,
   block, etc.) correctly, honestly, overrides the browser's own
   built-in `[hidden] { display: none }` user-agent rule, due to
   real, standard CSS specificity — a plain class selector beats an
   attribute selector's own implicit specificity. Confirmed via
   direct research matching the identical, documented Bootstrap
   issue (a `d-flex` element with the `hidden` attribute stays
   visible). This one rule, correctly, globally, protects every
   real element in this whole file that uses `hidden` alongside a
   real display-setting class — not scoped to any one, specific
   component, since this is a genuine, real, structural CSS
   footgun, not a one-off bug. */
[hidden] { display: none !important; }

/* Dashboard wallpaper (Pro-only — shops.dashboard_wallpaper_url).
   Fixed full-viewport layer behind everything (z-index: -1, prepended to
   body), covered by a scrim baked into its own background-image (see
   dashboard-shell.js's applyDashboardWallpaper). Deliberately does NOT
   touch .dash-sidebar's or .card's own solid backgrounds — those already
   sit visually on top of this layer with their existing, unchanged, fully
   opaque backgrounds, so the wallpaper only ever shows through .dash-main's
   own uncovered padding/gaps, exactly the "wallpaper, not a website
   builder" scope this feature is meant to have. No
   background-attachment:fixed (iOS Safari scroll-repaint jank) — this
   element is itself position:fixed, which achieves the same "stays put
   while page scrolls" effect via compositing instead, with no per-frame
   repaint cost on any device. */
.dashboard-wallpaper-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.has-dashboard-wallpaper .dash-shell {
  background: transparent;
}

/* Curated theme preset (Business + Pro — shops.theme_id). --ola-theme-*
   variables are set on .dash-shell via the CSSOM (theme-presets.js's
   applyThemePreset, called from dashboard-shell.js), following the exact
   same pattern as the storefront's --shop-brand-color* variables
   (js/core/brand-theme.js). Deliberately scoped to `.dash-shell .card`
   (never the bare, app-wide `.card` in components.css, which is also used
   on login/register/platform-admin pages that have no theme concept) and
   to a short, specific list of surfaces — page background tint and card
   surface — never layout, typography, or spacing. Every var() has the
   existing default color as its fallback, so a shop with no theme_id
   (the default/reset state) renders pixel-identical to before this
   feature existed. */
.dash-shell .card {
  background: var(--ola-theme-surface, var(--color-surface));
  border-radius: var(--ola-theme-button-radius, var(--radius-md));
  /* Only the two 'dark' cardStyle presets (midnight, espresso) ever set
     --ola-theme-text — every other preset leaves it unset, so this falls
     back to the existing global text color and nothing changes for them. */
  color: var(--ola-theme-text, inherit);
}
/* .hint's default --color-ink-50 (a mid gray tuned for a light card) has
   poor contrast on a dark preset's card surface. --ola-theme-text-muted
   is set to a legible-but-secondary light gray by the same two 'dark'
   cardStyle presets that set --ola-theme-text (see applyThemePreset) —
   every other preset leaves both unset, so .hint's existing color is
   completely unchanged for them. */
.dash-shell .card .hint {
  color: var(--ola-theme-text-muted, var(--color-ink-50));
}
/* Same reasoning as .dash-shell .card .hint above — .field label's
   hardcoded --color-ink-90 (components.css) is illegible on a 'dark'
   cardStyle preset's dark card surface (found via actual rendered
   screenshot review, not just reasoning about it — the "Dashboard
   wallpaper"/"Storefront background" field labels in the Appearance
   section were genuinely invisible before this rule existed). */
.dash-shell .card .field label {
  color: var(--ola-theme-text, var(--color-ink-90));
}
/* Theme's surface-alt tint applies to the page background ONLY when no
   Pro wallpaper is active — a wallpaper (Pro) is a stronger personalization
   signal than a theme tint (Business+Pro) and must never be hidden behind
   an opaque theme background. When both are set, the wallpaper wins and
   the theme still applies everywhere else (cards, accents, nav).
   --ola-theme-surface-gradient (set only by presets that define one —
   sunset/ocean/forest) is preferred over the flat --ola-theme-surface-alt
   tint when present; every other preset leaves it unset, so the plain
   var() fallback chain is unchanged for them. */
.dash-main {
  background: var(--ola-theme-surface-gradient, var(--ola-theme-surface-alt, transparent));
}
.has-dashboard-wallpaper .dash-main {
  background: transparent;
}
.dash-shell .btn-primary {
  background: var(--ola-theme-accent, var(--color-indigo));
  border-radius: var(--ola-theme-button-radius, var(--radius-md));
}
.dash-shell .btn-primary:hover,
.dash-shell .btn-primary:active {
  background: var(--ola-theme-accent-text, var(--color-indigo-hover));
}

.dash-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  /* Real, confirmed fix — CSS Grid's default align-content: normal
     behaves as "stretch" for a grid container, so when this grid's
     rows (mobile: header/bottom-nav/main stacked in one column) add
     up to less than min-height's 100vh, the leftover viewport space
     was being distributed across those auto-sized rows instead of
     staying below the content. On desktop this is invisible (a
     single row: sidebar + main side by side, nothing to stretch
     unevenly), but on mobile — three stacked auto rows — whichever
     row has the least intrinsic content (almost always the header,
     since real page content varies a lot page to page) silently
     absorbed the extra space, growing into an oversized dark block
     on any page short enough to leave leftover room (confirmed via
     a headless render: an otherwise-identical header measured
     359.5px tall behind a one-row list page vs 315px behind a
     content-heavy page — pure leftover-space stretch, not a
     per-page markup difference). align-content: start pins every
     row to its own natural height; any true leftover space now
     stays as ordinary blank space after the last row, exactly as a
     shorter page's viewport should look. */
  align-content: start;
}

.dash-sidebar {
  background: var(--color-ink);
  color: white;
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.dash-sidebar .brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.brand-logo {
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.dash-sidebar .brand:hover { text-decoration: none; opacity: 0.9; }
.brand-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.is-loading {
  opacity: 0.4;
  pointer-events: none;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.dash-nav-link {
  color: rgba(255,255,255,0.7);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: var(--text-sm);
  min-height: var(--touch-target-min);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: background-color var(--duration-base) var(--ease-standard),
              color var(--duration-base) var(--ease-standard);
}
.dash-nav-link svg {
  flex-shrink: 0;
}
.dash-nav-link:hover { background: rgba(255,255,255,0.08); text-decoration: none; color: white; }
.dash-nav-link.active { background: var(--ola-theme-accent, var(--color-indigo)); color: white; }
.dash-nav-link-external {
  margin-top: var(--space-3);
  padding-top: calc(var(--space-3) + var(--space-3));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #C7C9FF;
  flex-wrap: wrap;
  row-gap: 4px;
}
.dash-nav-link-external:hover {
  background: rgba(91, 95, 239, 0.16);
  color: white;
}
.dash-nav-link-external span:first-of-type {
  flex: 1;
}
.dash-nav-link-external-icon {
  opacity: 0;
  transform: translate(-2px, 2px);
  transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
.dash-nav-link-external:hover .dash-nav-link-external-icon {
  opacity: 0.85;
  transform: translate(0, 0);
}
.dash-storefront-views-badge {
  flex-shrink: 0;
  flex-basis: 100%;
  margin-left: calc(18px + var(--space-3));
  font-size: 11px;
  font-weight: 700;
  color: var(--color-indigo);
  background: rgba(199, 201, 255, 0.9);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  width: fit-content;
}
.dash-storefront-views-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  margin-left: 0;
  flex-basis: auto;
  border-radius: var(--radius-full);
  background: #7C81FF;
}

.dash-install-app { color: rgba(255,255,255,0.7); justify-content: flex-start; transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard); }
.dash-install-app:hover { background: rgba(255,255,255,0.08); color: white; }
.dash-install-unavailable-note {
  padding: var(--space-2) var(--space-4);
  margin: 0;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

/* .dash-logout/.dash-feedback are real <button> elements (unlike the
   other .dash-nav-link items, which are <a> tags with no native button
   chrome to fight). Without an explicit background/border/width reset
   here, they fall back to the browser's default button styling
   (buttonface grey, a border, auto width) layered underneath these
   rules — rendering as a flat grey pill against the dark sidebar
   instead of matching the other nav links, confirmed by rendering the
   sidebar and comparing computed background-color against the other
   .dash-nav-link items (which had none set, vs. buttonface here). */
.dash-logout, .dash-feedback {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: rgba(255,255,255,0.7);
  justify-content: flex-start;
  transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}
.dash-feedback { margin-top: var(--space-2); }
.dash-logout:hover, .dash-feedback:hover { background: rgba(255,255,255,0.08); color: white; }
.dash-logout:disabled { opacity: 0.6; cursor: default; }
.dash-support { color: rgba(255,255,255,0.7); justify-content: flex-start; transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard); }
.dash-support:hover { background: rgba(255,255,255,0.08); color: white; text-decoration: none; }

.dash-sidebar-footer {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.dash-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-2) var(--space-4);
}
.dash-legal-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  transition: color var(--duration-base) var(--ease-standard);
  overflow-wrap: break-word;
}
.dash-legal-links a:hover { color: rgba(255,255,255,0.8); text-decoration: none; }
.dash-afolaola-attribution {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  transition: color var(--duration-base) var(--ease-standard);
}
.dash-afolaola-attribution:hover { color: rgba(255,255,255,0.8); text-decoration: none; }
.dash-afolaola-attribution img { flex-shrink: 0; opacity: 0.8; }
.dash-afolaola-attribution strong { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; color: rgba(255,255,255,0.75); }
.dash-copyright span { display: inline-block; }
.dash-copyright {
  line-height: 1.5;
  padding: 0 var(--space-4);
  margin: 0 0 var(--space-1);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}
.dash-version {
  padding: 0 var(--space-4);
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.35);
}

.dash-main {
  padding: var(--space-6) var(--space-8);
  max-width: 960px;
  /* Real, confirmed root-cause bug, caught while auditing the Home
     page with a long seller name in the "Welcome back, <name>" h1:
     .dash-main is a grid item of .dash-shell, and a grid item's
     default min-width is auto (= its content's max-content size), not
     0 — the same trap flex items have, one level up. Any sufficiently
     wide run of content anywhere inside .dash-main (here: a long name
     sharing a flex line with two badges, none of which alone were
     wide enough to look suspicious) could silently force the whole
     1fr grid track wider than the viewport, blowing out every card on
     the page at once — confirmed via render: the entire page's
     content width jumped to ~650-680px inside a 320-375px viewport,
     with .dash-shell itself still correctly 320px. Downstream fixes
     (e.g. min-width:0 on a specific header wrapper) never addressed
     this, since the grid track had already grown before that
     wrapper's own min-width could matter. min-width: 0 here is the
     one, correct place to close this off for every page that renders
     inside .dash-main, not just Home. */
  min-width: 0;
}

.dash-mobile-nav { display: none; }
.dash-mobile-header { display: none; }
/* Real, confirmed root cause of a full desktop-layout blank page:
   .dash-mobile-nav-fade-wrap is a plain <div> wrapping the mobile
   bottom nav, styled only inside the @media (max-width: 900px)
   block below (position: fixed there). With no default rule, it
   renders as an ordinary display:block element on desktop — an
   unintended THIRD direct child of .dash-shell's grid (alongside
   .dash-sidebar and #dash-main), which CSS Grid auto-placement
   wraps into a new row: .dash-sidebar takes column 1/row 1, this
   wrapper's empty block takes column 2/row 1, and #dash-main gets
   pushed to column 1/row 2 — squeezed into the sidebar's own
   240px-wide column, positioned below the fold (confirmed via a
   real render: #dash-main measured x:0 w:240 y:900 at a 1432px
   viewport, identical column width to the sidebar). The page LOOKS
   entirely blank because the real content is off-screen, not
   because it failed to render. display: contents removes this
   wrapper from layout entirely outside the mobile breakpoint,
   matching its already-hidden .dash-mobile-nav child, so only two
   real grid items (sidebar, main) ever reach .dash-shell on
   desktop. */
.dash-mobile-nav-fade-wrap { display: contents; }

/* ---------- Orders / Requests ---------- */
.status-filter {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.filter-chip {
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-50);
  min-height: var(--height-control-sm);
  transition: background-color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              color var(--duration-base) var(--ease-standard);
}
.filter-chip:hover:not(.active) { border-color: var(--color-ink-30); color: var(--color-ink-70); }
.filter-chip.active {
  background: var(--color-indigo);
  border-color: var(--color-indigo);
  color: white;
}

.clickable-row {
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.clickable-row:hover { background: var(--color-surface-alt); }
.chevron {
  font-size: var(--text-xl);
  color: var(--color-ink-30-text);
}

.detail-section {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}
.detail-section:last-child { border-bottom: none; }
.detail-section h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-ink-50);
  margin-bottom: var(--space-2);
}
.detail-line-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
}
/* Order/request history rows — deliberately NOT .detail-line-item.
   That single-line flex row (label vs. value, both short strings)
   broke down once the left side grew to "reference · status badge ·
   date": on a narrow viewport the browser had nowhere honest to wrap
   that long inline content against the price column, so the day
   number would visually strand itself next to the price while the
   month/time dropped to their own line below — reading as a garbled,
   wrong date. A fixed two-row layout removes the ambiguity entirely:
   reference/status/price always share the top row, the date always
   gets its own full-width line underneath, at every viewport width. */
.detail-order-row {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.detail-order-row:last-child { border-bottom: none; }
.detail-order-row-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.detail-order-ref {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-ink);
}
.detail-order-price {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-ink);
  white-space: nowrap;
}
@media (max-width: 400px) {
  /* Reference + status badge can be wide enough on their own at
     very narrow widths that the price has nowhere left on the row —
     rather than let it wrap and land oddly, give it the full width
     of its own second line, right-aligned, so it never collides
     with the badge. */
  .detail-order-row-top { justify-content: flex-start; }
  .detail-order-price {
    margin-left: 0;
    flex-basis: 100%;
    text-align: right;
  }
}
.detail-order-row-date {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-ink-50);
}
#mark-payment-received-btn {
  margin-top: var(--space-2);
}

/* Customer profile → Orders: filter chips (reusing the exact
   .status-filter/.filter-chip pattern already used on the main Orders
   page, for one consistent filter look app-wide) + clickable order
   cards. Deliberately a distinct look from the plain, non-interactive
   .detail-order-row rows still used for Service requests just below —
   only orders link through to the real order-detail drawer
   (openOrderDetail, reused from dashboard-orders.js), so only orders
   get the card treatment, hover state, and chevron affordance. */
.order-filter-chips {
  margin-bottom: var(--space-3);
}
.order-card-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}
.order-card-row:last-child { margin-bottom: 0; }
.order-card-row:hover {
  border-color: var(--color-indigo);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.order-card-row:focus-visible {
  outline: none;
  border-color: var(--color-indigo);
  box-shadow: 0 0 0 3px var(--color-indigo-soft);
}
.order-card-row .chevron {
  flex-shrink: 0;
}
.order-card-row-main {
  flex: 1;
  min-width: 0;
}
.order-card-row-main .detail-order-row-top { margin: 0; }
.order-card-row-main .detail-order-row-date { margin-top: var(--space-1); }

.order-message-thread-section {
  padding-top: var(--space-4);
}
.order-message-thread {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-right: var(--space-1);
}
.order-message {
  max-width: 85%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}
.order-message-seller {
  align-self: flex-end;
  background: var(--color-indigo-soft);
}
.order-message-buyer {
  align-self: flex-start;
  background: var(--color-surface-alt);
}
.order-message-meta {
  font-size: var(--text-xs);
  color: var(--color-ink-50);
  margin-bottom: var(--space-1);
}
.order-message-body {
  font-size: var(--text-sm);
  white-space: pre-wrap;
  word-break: break-word;
}
.order-message-reply-field {
  margin-bottom: var(--space-2);
}
#view-payment-proof-link {
  color: var(--color-indigo);
  font-weight: 600;
  text-decoration: underline;
}
#view-payment-proof-link:hover {
  color: var(--color-indigo-hover);
}
.detail-total {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
}
.status-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
/* Terminal-state confirmation shown in place of the status-action
   button row once an order is Completed or Cancelled — a calm,
   finished look instead of a row of now-irrelevant status buttons,
   matching what STATUS_EXPLANATIONS already says ("No further action
   needed" / "will not be fulfilled"). Cancelled uses the same
   danger-soft/danger-text pair as .badge-cancelled elsewhere in this
   app, so the confirmation reads consistently with the badge the
   seller already saw on this same order. */
.status-complete-confirmation {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-success-soft);
  color: var(--color-success-text);
}
.status-complete-confirmation-cancelled {
  background: var(--color-danger-soft);
  color: var(--color-danger-text);
}
.status-complete-confirmation p {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
}
.status-complete-confirmation-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.order-status-banner-section {
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--color-surface-alt);
}
.order-status-banner-urgent {
  background: var(--color-warn-soft);
  border-left: 4px solid var(--color-warn);
}
.order-status-banner-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.order-status-banner-icon {
  font-size: var(--text-lg);
}
/* Statuses without their own symbol rely on the badge's dot, so no second one. */
.order-status-banner-icon:empty { display: none; }
.order-status-banner-next-action {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-indigo);
  margin: 0 0 var(--space-2);
}
.order-status-banner-explanation {
  font-size: var(--text-sm);
  margin: 0 0 var(--space-2);
}
.status-actions-primary {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.status-btn-primary {
  flex: 1;
  min-height: 48px;
  font-size: var(--text-base);
}
.request-image-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--color-warn-soft);
  color: #8a6415;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  flex-wrap: wrap;
}
/* Desktop grid placement. The sidebar owns column 1 for the full height
   and everything else stacks in column 2. Without this, the email-
   verification banner (an extra grid child inserted before #dash-main)
   took the first free cell and pushed the dashboard into the 240px
   sidebar column for any seller whose email was not yet verified. */
@media (min-width: 901px) {
  .dash-shell > .dash-sidebar { grid-column: 1; grid-row: 1 / span 4; }
  .dash-shell > .verify-banner,
  .dash-shell > .dash-main { grid-column: 2; }
}
.verify-banner .btn-ghost { color: #8a6415; }
.verify-banner .btn-ghost:hover { background: rgba(224, 160, 48, 0.15); }

.sw-update-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: var(--color-indigo);
  color: white;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  flex-wrap: wrap;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.dash-loading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-ink-50);
  padding: var(--space-10) 0;
}

.dash-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.dash-page-header h1 {
  min-width: 0;
}
/* Real, confirmed bug: on the Home page, the h1 above is not itself
   the flex child of .dash-page-header — it's wrapped in a plain,
   unclassed <div> (see dashboard-home.js's welcome-header markup,
   grouping the h1 with its badges/verified-medal/"View guide" link).
   That wrapper div is the actual flex item here, and a flex item's
   default min-width is auto, not 0 — so the h1's own min-width:0
   above never mattered; the *wrapper* still sized to its unwrapped
   intrinsic content width. Confirmed via render at 320px with a long
   seller name ("Welcome back, <long name>"): the whole page stretched
   to ~650px+ and every card overflowed off-screen. min-width: 0 here
   (on the wrapper, scoped to this header only) restores real
   wrapping without touching any other .dash-page-header usage, whose
   direct child is already the h1 itself. */
.dash-home-header > div:first-child {
  min-width: 0;
}
.dash-back-link {
  display: block;
  width: 100%;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-50);
  margin-bottom: var(--space-1);
}
.dash-back-link:hover {
  color: var(--color-indigo);
  text-decoration: none;
}
.dash-home-header {
  align-items: flex-start;
}
.dash-home-profile-card {
  display: none;
}
@media (min-width: 901px) {
  .dash-home-profile-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-ink);
    /* Aligns the card's vertical center with the h1's own baseline,
       not the full two-line title+badge block — a deliberate,
       considered pairing rather than two independently positioned
       elements sharing a row. */
    margin-top: -9px;
    transition: background-color var(--duration-base) var(--ease-standard),
                border-color var(--duration-base) var(--ease-standard);
  }
  .dash-home-profile-card:hover {
    background: var(--color-surface-alt);
    border-color: var(--color-indigo);
    text-decoration: none;
  }
  .dash-home-profile-name {
    font-weight: 600;
    font-size: var(--text-sm);
  }
}

.dash-page-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.search-field {
  margin-bottom: 0;
  min-width: 220px;
  /* Real pre-existing bug, caught while reviewing this row: with no
     flex-basis, only min-width, a flex item containing a width:100%
     input has no well-defined content size to lay out from — browsers
     resolve that by letting the item claim the full row, so every
     control here ended up stacked on its own line even on a wide
     desktop screen, despite the @media (max-width: 900px) block below
     clearly intending that stacked layout to be mobile-only (it
     explicitly forces width:100% there, implying inline above it).
     An explicit flex-basis fixes it: the item now sizes to that
     concrete width instead of an ambiguous one, so multiple controls
     flow onto the same row until they genuinely run out of space. */
  flex: 1 1 220px;
  max-width: 340px;
}
.status-filter-field {
  margin-bottom: 0;
  min-width: 160px;
  flex: 0 1 190px;
  max-width: 220px;
}
.status-filter-field select {
  /* Same ellipsis treatment as .search-field input above, for the
     same reason — this select gets paired side-by-side with another
     control on mobile (Customers' Country/Status/Sort rows) and a
     long option label ("All countries") can outgrow the narrower
     width. Harmless everywhere else: it only ever activates when
     the selected option's text actually overflows. */
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
/* Groups Customers' Search+Country as one pair and Status+Sort as
   another, so they can be laid out as two explicit side-by-side
   pairs on mobile (see the @media block below) without touching
   desktop: here each row is just a transparent flex item — display:
   contents removes it from layout entirely, so its .field children
   flow directly into .dash-page-controls exactly as if these
   wrappers didn't exist, keeping desktop's existing wrap-when-out-
   of-space behavior (documented above) untouched. Orders/Requests
   render a single .status-filter-field with no wrapping row around
   it at all, so none of this affects them. */
.dash-page-controls-row {
  display: contents;
}
.export-dropdown {
  position: relative;
  margin-left: auto;
}
.export-dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  z-index: 10;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.export-dropdown-menu[hidden] {
  display: none;
}
.export-dropdown-menu button {
  width: 100%;
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-size: var(--text-sm);
  color: var(--color-ink);
  cursor: pointer;
  min-height: var(--touch-target-min);
}
.export-dropdown-menu button:hover:not(:disabled) {
  background: var(--color-surface-alt);
}
.export-dropdown-menu button:disabled {
  color: var(--color-ink-30-text);
  cursor: not-allowed;
}

.notif-dropdown-wrap {
  position: relative;
}
.notif-bell-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
}
.notif-bell-icon {
  position: relative;
  display: flex;
}
.notif-bell-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--color-danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.notif-bell-badge[hidden] {
  display: none;
}
.dash-nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--color-danger);
  color: white;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.dash-nav-badge[hidden] {
  display: none;
}
.notif-dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  z-index: 25;
  background: var(--color-surface);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 320px;
  max-width: 90vw;
  max-height: 420px;
  overflow-y: auto;
  padding: var(--space-3);
}
.notif-dropdown-menu[hidden] {
  display: none;
}
.notif-category {
  margin-bottom: var(--space-4);
}
.notif-category:last-child {
  margin-bottom: 0;
}
.notif-category-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-ink-50);
  font-weight: 600;
  margin: 0 0 var(--space-2);
  padding: 0 var(--space-2);
}
.notif-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  border-left: 2px solid transparent;
  transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.notif-item:has(.notif-item-new-dot) {
  border-left-color: var(--color-indigo);
}
.notif-item:hover {
  background: var(--color-surface-alt);
  text-decoration: none;
}
.notif-item-name {
  font-weight: 600;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
}
.notif-item-new-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-indigo);
  margin-left: var(--space-2);
}
.notif-item-detail {
  font-size: var(--text-xs);
  color: var(--color-ink-50);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif-item-detail-warn {
  color: var(--color-warn);
  font-weight: 600;
}
.notif-item-detail-danger {
  color: var(--color-danger);
  font-weight: 600;
}
.notif-view-all {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-indigo);
  padding: var(--space-2) var(--space-3);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.notif-view-all:hover {
  background: var(--color-indigo-soft);
  text-decoration: none;
}
.notif-empty,
.notif-loading {
  text-align: center;
  padding: var(--space-4);
}
.notif-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4) var(--space-2);
}
.notif-empty-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-mint-soft);
  color: var(--color-mint);
  font-weight: 700;
  font-size: var(--text-base);
}
.notif-empty-lead {
  text-align: center;
  padding: 0;
  margin: 0;
}
.notif-action-needed {
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-indigo-hover);
  background: var(--color-indigo-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin: 0 var(--space-2) var(--space-3);
}
.notif-totals {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 0 var(--space-2) var(--space-2);
}
.notif-totals-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-size: var(--text-sm);
}
.notif-totals-row:hover {
  background: var(--color-surface-alt);
  text-decoration: none;
}
.notif-totals-count {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-ink-70);
}
.search-field input {
  min-height: 36px;
  /* Ellipsizes gracefully instead of a hard clip when this field is
     paired side-by-side with another control on mobile (Customers'
     Search+Country row) and the placeholder no longer fits — reads
     as an intentional truncation rather than cut-off text. Never
     triggers on desktop, where the field has room to spare. */
  text-overflow: ellipsis;
}
.offerings-search-field {
  margin-bottom: var(--space-5);
  max-width: 320px;
}

.dash-section-heading {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}
.billing-current-card {
  margin-bottom: var(--space-8);
}
.billing-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.billing-plan-card {
  text-align: center;
}
.billing-plan-card-current {
  border-color: var(--color-indigo);
}
.billing-plan-card h3 {
  margin: var(--space-3) 0 var(--space-2);
}
.billing-plan-limit {
  font-weight: 600;
  color: var(--color-indigo);
  margin-bottom: var(--space-2);
}
.billing-upgrade-card h3 {
  margin-bottom: var(--space-2);
}
.billing-upgrade-card .btn {
  margin-top: var(--space-3);
}
@media (max-width: 700px) {
  .billing-plans-grid { grid-template-columns: 1fr; }
}

/* ---------- Premium Billing & Plans redesign ---------- */
.billing-hero {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-6);
}
.billing-hero h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}
.billing-hero-sub {
  color: var(--color-ink-50);
  font-size: var(--text-base);
}
.billing-trial-banner {
  text-align: center;
  background: var(--color-indigo-soft);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}
.billing-trial-banner strong {
  display: block;
  font-size: var(--text-lg);
  color: var(--color-indigo);
  margin-bottom: var(--space-1);
}
.billing-grace-banner {
  text-align: center;
  background: var(--color-indigo-soft);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}
.billing-grace-banner strong {
  display: block;
  font-size: var(--text-lg);
  color: var(--color-indigo);
  margin-bottom: var(--space-1);
}
.billing-grace-banner span {
  display: block;
  margin-bottom: var(--space-3);
}
.billing-grace-banner-ended {
  background: var(--color-warn-soft);
}
.billing-grace-banner-ended strong { color: var(--color-warn); }
.billing-interval-toggle {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  background: var(--color-surface-alt);
  border-radius: var(--radius-full);
  padding: var(--space-1);
  width: fit-content;
  margin: 0 auto var(--space-8);
}
.billing-interval-btn {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--color-ink-50);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}
.billing-interval-active {
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}
.billing-plans-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: stretch;
  margin-bottom: var(--space-6);
}
@media (max-width: 1250px) {
  .billing-plans-grid-premium { grid-template-columns: repeat(2, 1fr); }
  .billing-plans-grid-premium .billing-plan-card-featured { grid-column: span 2; }
}
@media (max-width: 900px) {
  .billing-plans-grid-premium { grid-template-columns: 1fr; }
  .offerings-publish-nudge {
    flex-wrap: wrap;
  }
  .offerings-publish-nudge .alert-inline-action {
    margin-left: 0;
    margin-top: var(--space-2);
    width: 100%;
  }
  .notification-prefs-section .alert-inline-action {
    margin-left: 0;
    margin-top: var(--space-2);
    width: 100%;
  }
  .notification-prefs-section .alert {
    flex-wrap: wrap;
  }
}
.billing-plan-card-premium {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.billing-plan-card-clickable {
  cursor: pointer;
}
.billing-plan-card-clickable:hover,
.billing-plan-card-clickable:focus-visible {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  outline: none;
}
.billing-plan-card-featured {
  border: 2px solid var(--color-indigo);
  box-shadow: var(--shadow-md);
}
.billing-plan-card-current {
  border-color: var(--color-indigo);
  cursor: default;
}
.billing-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-indigo);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}
.billing-current-badge {
  align-self: flex-start;
  margin-bottom: var(--space-2);
}
.billing-plan-label {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-indigo);
  margin: var(--space-2) 0 var(--space-1);
}
.billing-plan-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.billing-plan-price {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.billing-price-unit {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-50);
}
.billing-plan-savings {
  display: inline-block;
  color: var(--color-success-text);
  font-weight: 600;
  font-size: var(--text-xs);
  margin-bottom: var(--space-3);
}
.billing-plan-description {
  margin-bottom: var(--space-4);
  min-height: 3em;
}
.billing-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  flex-grow: 1;
}
.billing-plan-features li {
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  color: var(--color-ink-70);
  padding-left: var(--space-5);
  position: relative;
}
.billing-plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-indigo);
  font-weight: 700;
}
.billing-plan-cta {
  margin-top: auto;
}
.billing-plan-free-note {
  margin-top: auto;
  text-align: center;
}
.billing-payment-note {
  text-align: center;
  margin-top: var(--space-4);
}

.dash-analytics-heading {
  margin-bottom: var(--space-3);
}
.billing-summary-card {
  margin-bottom: var(--space-6);
}
.billing-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}
.billing-upgrade-link {
  color: var(--color-indigo);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: underline;
}
.billing-upgrade-link:hover {
  color: var(--color-indigo-hover);
}
.billing-discount-callout {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-indigo-soft);
  border-radius: var(--radius-md);
  color: var(--color-indigo-hover);
  font-size: var(--text-sm);
}
.billing-discount-callout-icon {
  color: var(--color-indigo);
  font-size: var(--text-base);
  flex-shrink: 0;
}
.dash-analytics-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.dash-analytics-subheading {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-50);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 var(--space-3);
}
.best-performer-insight {
  border-left: 2px solid var(--color-warn);
  padding-left: var(--space-3);
  margin-bottom: var(--space-5);
}
.best-performer-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-warn-text);
  margin: 0;
}
.best-performer-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-ink);
  margin: var(--space-1) 0 0;
}
.best-performer-metrics {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-ink-50);
  margin: var(--space-1) 0 0;
}
.best-performer-conversion {
  color: var(--color-success-text);
  font-weight: 600;
}
.best-performer-suggestion {
  font-size: var(--text-sm);
  color: var(--color-ink-70);
  margin: var(--space-1) 0 0;
}
/* Legacy flat-strip tip styling — no longer used by
   sellerJourneyGuidance() (see journeyCard() in dashboard-home.js,
   which now renders every stage, including the former one-off "first
   sale" card, through one unified .seller-journey-card component
   below). Left in place only in case any other caller still
   references these classes; safe to remove once confirmed unused. */
.seller-stage-tip {
  border-left: 2px solid var(--color-indigo);
  padding-left: var(--space-3);
  margin-bottom: var(--space-5);
}
.seller-stage-tip-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-indigo);
  margin: 0 0 var(--space-1);
}
.seller-stage-tip p:last-child {
  font-size: var(--text-sm);
  color: var(--color-ink-70);
  margin: 0;
}

/* Unified seller-journey card — one component for all 6 stages
   (start/payment/publish/share/milestone/growth), replacing the old
   flat-strip .seller-stage-tip AND the differently-styled one-off
   "first sale" card that used to break the pattern. Matches the same
   card-with-icon-and-badge language the rest of Home already uses
   (.home-shop-share-card, .stat-card), rather than a plain bordered
   strip with no visual weight of its own. */
.seller-journey-card {
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
}
.seller-journey-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.seller-journey-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
  flex-shrink: 0;
}
.seller-journey-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-indigo);
}
.seller-journey-body {
  font-size: var(--text-sm);
  color: var(--color-ink-70);
  line-height: 1.5;
  margin: 0 0 var(--space-3);
}
.seller-journey-dots {
  display: flex;
  gap: var(--space-1);
}
.seller-journey-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-ink-10);
}
/* --color-indigo-soft (#EEEEFD) was the original choice here, but
   confirmed by rendering: it's nearly indistinguishable from the
   default empty dot's --color-ink-10 (#E4E6ED) — both very light
   greys at 6px, so "done" and "not yet reached" stages looked
   identical. opacity on the solid indigo gives a real, visibly
   distinct mid-tone instead. */
.seller-journey-dot-done {
  background: var(--color-indigo);
  opacity: 0.4;
}
.seller-journey-dot-active {
  background: var(--color-indigo);
  /* Slightly wider than a plain dot — a real, visible "you are here"
     marker rather than relying on color alone to distinguish it from
     the completed-stage dots, which use a lighter shade of the same
     hue and would otherwise be hard to tell apart at 6px. */
  width: 16px;
}
.reviews-summary-card {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.reviews-summary-rating {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #96690A;
}
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.review-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}
.review-item-stars {
  color: #D19700;
  letter-spacing: 1px;
}
.review-item-author {
  font-size: var(--text-sm);
  font-weight: 600;
  margin: 0 0 var(--space-1);
}
.review-item-comment {
  font-size: var(--text-sm);
  margin: 0;
}
.review-item-products {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.review-item-product-chip {
  font-size: var(--text-xs);
  font-weight: 600;
  color: #96690A;
  background: var(--color-warn-soft);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

/* ---------- Profile avatar (base — used by both the mobile menu and the Profile page, at every viewport width) ---------- */
.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar-fallback {
  background: var(--color-indigo);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
}
.profile-avatar-lg {
  width: 44px;
  height: 44px;
}
.profile-avatar-lg.profile-avatar-fallback {
  font-size: var(--text-base);
}
.profile-avatar-xl {
  width: 80px;
  height: 80px;
}
.profile-avatar-xl.profile-avatar-fallback {
  font-size: var(--text-xl);
}

/* ---------- Profile page ---------- */
.profile-photo-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.profile-photo-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.profile-photo-card .hint {
  flex-basis: 100%;
}

/* ---------- Views by listing (Home page) ---------- */
.offering-views-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-height: 340px;
  overflow-y: auto;
}
/* Structure: .offering-views-row wraps two children —
   .offering-views-row-top (name + count together) and
   .offering-views-bar-track — rather than 3 flat grid columns, so the
   same markup can be a single-line 3-column grid on desktop and a
   2-line stack on mobile (see the @media block below) without needing
   different HTML per breakpoint. */
.offering-views-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr auto;
  align-items: center;
  gap: var(--space-3);
}
.offering-views-row-top {
  display: contents;
}
.offering-views-name {
  font-size: var(--text-sm);
  color: var(--color-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.offering-views-bar-track {
  height: 10px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.offering-views-bar {
  height: 100%;
  background: var(--color-indigo);
  border-radius: var(--radius-full);
}
.offering-views-count {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-70);
  min-width: 24px;
  text-align: right;
}
.offering-views-orders {
  color: var(--color-ink-30-text);
  font-weight: 500;
}

/* Real, confirmed mobile bug: the row's 3-column grid
   (minmax(120px, 1fr) name / 2fr bar / auto count) has no ceiling on
   the count column — "340 views · 22 ordered" is real, unshrinkable
   auto-sized content, so on a narrow card it claims whatever width it
   needs first, leaving the bar track squeezed to a sliver and forcing
   the name column toward its 120px floor, where it then ellipsizes
   down to a single letter ("C…"). Verified via render at 320px.
   Fix: on mobile the row becomes a 2-line flex stack — name+count
   share a top line (their natural, unconstrained widths), and the bar
   track drops to its own full-width line below, so it's never split
   3 ways against two rigid text columns. Desktop's single-line
   3-column grid (verified unaffected) stays exactly as before above
   the breakpoint. */
@media (max-width: 640px) {
  .offering-views-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  /* The name is the primary identifier here (the count is
     secondary, supporting data) — verified via render that pairing
     them on one baseline still let a long name squeeze down to "C…"
     even with the bar track removed from the fight, since the count
     ("340 views · 22 ordered") stays wide and un-shrinkable. Wrapping
     to its own line removes that fight entirely: the name gets the
     row's full width to breathe, and the count sits right-aligned
     below it as a clearly secondary line, never competing for the
     same horizontal space. */
  .offering-views-row-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 2px var(--space-2);
  }
  .offering-views-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 100%;
    min-width: 0;
  }
  .offering-views-count {
    flex: 0 0 auto;
    text-align: right;
  }
}

/* ---------- Shared mini bar chart (used by platform.js's growth charts) ---------- */
.platform-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 80px;
  margin-top: var(--space-3);
}
.platform-chart-bar {
  flex: 1;
  background: var(--color-indigo);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  transition: opacity var(--duration-fast) var(--ease-standard);
}
.platform-chart-bar:hover { opacity: 0.7; }
.platform-chart-caption { margin-top: var(--space-2); }
@media (prefers-reduced-motion: reduce) {
  .platform-chart-bar { transition: none; }
}
.empty-state-compact {
  padding: var(--space-6) var(--space-4);
  margin-bottom: var(--space-6);
}
.empty-state-compact svg { width: 32px; height: 32px; }

/* ---------- Combined activity chart (Home page) ---------- */
.combined-chart-card {
  margin-bottom: var(--space-6);
  padding: var(--space-5);
}
.combined-chart-legend {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-ink-50);
}
.combined-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.combined-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  display: inline-block;
}
.combined-legend-dot-order { background: var(--color-indigo); }
.combined-legend-dot-request { background: var(--color-service); }
.combined-legend-dot-inquiry { background: var(--color-mint); }
.combined-legend-dot-views { background: var(--color-ink-30); }
.combined-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  height: 100px;
}
.combined-chart-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
}
.combined-chart-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 80px;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.combined-chart-bar-group:not([data-day-index]) {
  cursor: default;
}
.combined-chart-bar-group:focus-visible {
  outline: 2px solid var(--color-indigo);
  outline-offset: 2px;
}
.combined-chart-bar-group[aria-expanded="true"] {
  opacity: 0.7;
}
.combined-chart-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  transition: opacity var(--duration-fast) var(--ease-standard);
}
.combined-chart-bar-order { background: var(--color-indigo); }
.combined-chart-bar-request { background: var(--color-service); }
.combined-chart-bar-inquiry { background: var(--color-mint); }
.combined-chart-day-label {
  font-size: 10px;
  color: var(--color-ink-30-text);
  white-space: nowrap;
}
.combined-chart-day-today .combined-chart-day-label {
  color: var(--color-warn);
  font-weight: 700;
}
.combined-chart-caption {
  margin-top: var(--space-2);
}
.combined-chart-week-note {
  color: var(--color-ink-50);
  font-style: italic;
}
.combined-chart-detail {
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
}
.combined-chart-detail-date {
  margin: 0 0 var(--space-1);
  font-weight: 600;
}
.combined-chart-detail-item {
  margin: 0;
  font-size: var(--text-sm);
  padding: 2px 0;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.combined-chart-views {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.combined-chart-views-label {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.combined-chart-views-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-1);
  height: 40px;
}
.mini-chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.mini-chart-day-label {
  font-size: 8px;
  color: var(--color-ink-30-text);
  margin-top: 2px;
  white-space: nowrap;
}
.mini-chart-bar-group-today .mini-chart-day-label {
  color: var(--color-warn);
  font-weight: 700;
}
.combined-chart-views-bar {
  width: 100%;
  background: var(--color-ink-30);
  border-radius: 1px 1px 0 0;
  min-height: 1px;
}
.combined-chart-inquiries-bar {
  width: 100%;
  background: var(--color-mint);
  border-radius: 1px 1px 0 0;
  min-height: 1px;
}
@media (prefers-reduced-motion: reduce) {
  .combined-chart-bar { transition: none; }
}
@media (max-width: 500px) {
  .combined-chart-day-label { font-size: 8px; letter-spacing: -0.02em; }
}

@media (max-width: 768px) {
  .activity-chart-grid { grid-template-columns: 1fr; }
  .offering-views-row { grid-template-columns: 2fr 1fr auto; gap: var(--space-2); }
}

.shop-live-link-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}
.shop-live-link-row input {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  flex: 1;
  min-width: 200px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-indigo);
  border-radius: var(--radius-sm);
  color: var(--color-indigo);
  font-weight: 600;
}
.shop-live-link-row input:focus {
  border-color: var(--color-indigo);
  box-shadow: 0 0 0 3px var(--color-indigo-soft);
}
.shop-live-secondary-url {
  color: var(--color-indigo);
  font-weight: 600;
  text-decoration: none;
}
.shop-live-secondary-url:hover {
  text-decoration: underline;
}
.shop-live-plain-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-indigo);
  text-decoration: none;
  word-break: break-all;
}
.shop-live-plain-link:hover {
  text-decoration: underline;
}
.settings-shop-links-body {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.settings-shop-link-box {
  flex: 1;
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
}
.settings-shop-link-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.settings-share-toolkit {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.settings-share-toolkit-label {
  margin: 0 0 var(--space-2);
}
.settings-share-toolkit-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.settings-share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.settings-share-btn svg {
  flex-shrink: 0;
}
.settings-share-btn:nth-of-type(1) {
  background: #E9F9EF;
  color: #167A3B;
  border-color: transparent;
}
.settings-share-btn:nth-of-type(1):hover {
  background: #D9F4E3;
}
.settings-share-btn:nth-of-type(2) {
  background: #EAF2FF;
  color: #1161C7;
  border-color: transparent;
}
.settings-share-btn:nth-of-type(2):hover {
  background: #DBE9FF;
}
.settings-share-btn:nth-of-type(3) {
  background: var(--color-ink-10);
  color: var(--color-ink);
  border-color: transparent;
}
.settings-share-btn:nth-of-type(3):hover {
  background: #D4D6DE;
}
.settings-share-toolkit-instagram-tip {
  margin: var(--space-3) 0 0;
}

.settings-shop-qr-section {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.settings-shop-qr-preview-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 104px;
}
.settings-shop-qr-preview {
  width: 96px;
  height: 96px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  /* Reset — this is a <button> in the published-shop branch (clickable,
     opens the full-size view) and a plain <div> in the unpublished
     branch (not interactive, since a code that doesn't scan yet isn't
     worth a "view full size" affordance). These resets are no-ops on
     the div, so one class safely serves both. */
  font: inherit;
  margin: 0;
  appearance: none;
}
button.settings-shop-qr-preview {
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
button.settings-shop-qr-preview:hover {
  border-color: var(--color-indigo);
  transform: scale(1.03);
}
button.settings-shop-qr-preview:focus-visible {
  outline: 2px solid var(--color-indigo);
  outline-offset: 2px;
}
.settings-shop-qr-preview canvas {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.settings-shop-qr-preview-dim {
  opacity: 0.4;
}
.settings-shop-qr-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-ink);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-shop-qr-details {
  flex: 1;
  min-width: 200px;
}
.settings-shop-qr-caption {
  margin: 0 0 var(--space-2);
}
.settings-shop-qr-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.settings-shop-qr-card-unpublished {
  margin-top: var(--space-3);
  background: var(--color-surface);
}
.settings-shop-qr-section-unpublished {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.settings-shop-qr-section-unpublished .settings-shop-qr-preview {
  opacity: 0.4;
}
.settings-shop-qr-section-unpublished .settings-shop-qr-name {
  opacity: 0.4;
}
.settings-shop-qr-section-unpublished .settings-shop-qr-caption {
  margin: 0;
}
.settings-shop-qr-section-unpublished .settings-shop-qr-caption a {
  color: var(--color-indigo);
  font-weight: 600;
}

@media (max-width: 520px) {
  .settings-shop-qr-section,
  .settings-shop-qr-section-unpublished {
    flex-direction: column;
    align-items: flex-start;
  }
}

.settings-shop-qr-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 340px;
  padding: var(--space-8) var(--space-6) var(--space-6);
  text-align: center;
}
.settings-shop-qr-modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}
.settings-shop-qr-modal-preview {
  width: 240px;
  height: 240px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.settings-shop-qr-modal-preview canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.settings-shop-qr-modal-name {
  margin: 0 0 var(--space-1);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-ink);
}
.settings-shop-qr-modal-caption {
  margin: 0 0 var(--space-4);
}
.settings-shop-qr-modal-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 400px) {
  .settings-shop-qr-modal-preview {
    width: 200px;
    height: 200px;
  }
}

.home-referral-card[hidden] {
  display: none;
}
.home-referral-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-mint-soft);
  border: none;
  margin-bottom: var(--space-5);
  padding-right: 48px;
}
.home-referral-card-no-dismiss {
  padding-right: var(--space-5);
}
.home-shop-live-card {
  flex-direction: column;
  align-items: stretch;
  background: var(--color-indigo-soft);
  gap: var(--space-3);
}
.home-shop-live-card-body .shop-live-link-row {
  margin-top: 0;
}
/* Settings' own "storefront is published" card — v2. The seller's
   banner photo is now confined to a fixed-height strip at the top of
   the card (never behind the links/QR/share content), because text
   and interactive controls laid over a full-bleed photo can only ever
   be as legible as whatever happens to be behind them at that exact
   pixel — a QR code and share buttons need predictable, flat contrast
   to actually work, not just look fine in the one screenshot that was
   checked. The strip carries only the "published" headline (the one
   thing that reads fine over any photo, with a strong scrim behind
   it); everything else below sits on the card's own normal --color-
   surface background with normal ink-colored text, same as any other
   settings card. This also removes the need for any white-text color
   overrides — the content pane no longer sits on unpredictable
   photo/scrim pixels at all. */
.settings-shop-live-card-branded {
  background: none;
  padding: 0;
  overflow: hidden;
}
.settings-shop-live-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.settings-shop-live-card-branded .settings-shop-live-card-content {
  padding: var(--space-5);
}
.settings-shop-live-card-branded .home-referral-text strong,
.settings-shop-live-card-branded .settings-shop-qr-name {
  color: #ffffff;
}
.settings-shop-live-card-branded .settings-shop-qr-caption,
.settings-shop-live-card-branded .settings-share-toolkit-label,
.settings-shop-live-card-branded .settings-share-toolkit-instagram-tip {
  color: rgba(255, 255, 255, 0.78);
}
/* Home's "share your shop" card — one intentional block combining the
   celebratory moment (dismissible) with the permanent, always-visible
   QR code + link + actions a seller needs on every visit. The QR half
   mirrors Settings' own preview pattern (same button/canvas shape,
   same hover/focus treatment) so the two surfaces feel like one
   coherent feature rather than two different builds of it. */
.home-shop-share-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: linear-gradient(135deg, var(--color-indigo-soft) 0%, var(--color-surface) 65%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-5);
  padding: var(--space-5);
  position: relative;
}
/* Branded variant — the seller's own storefront banner as the card's
   background LAYER (not a decorative afterthought placed behind the
   QR), per the brief's own distinction. The card keeps its normal-flow
   padding/gap layout — .home-shop-share-content carries it — and the
   banner + scrim are purely absolutely-positioned behind that content,
   so the card's real height is still driven by its actual content,
   never a fixed/guessed height that could crop awkwardly. overflow:
   hidden is what makes the banner respect the card's own rounded
   corners without a second, separate border-radius having to be kept
   in sync. */
.home-shop-share-card-branded {
  background: none;
  padding: 0;
  overflow: hidden;
}
.home-shop-share-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.home-shop-share-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* The scrim is the one thing standing between "premium branded card"
   and "unreadable text over a busy photo" — deliberately NOT
   conditional on how busy the banner looks (this app has no reliable
   way to measure that client-side), so it's strong enough on its own,
   unconditionally, to guarantee the white text above it stays legible
   against any real seller photo, from a plain sky to a packed product
   flat-lay. Darkest at the bottom, where the store name/actions sit;
   lighter at the top, so the banner's own color still reads through. */
.home-shop-share-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 24, 0.25) 0%, rgba(10, 12, 24, 0.55) 60%, rgba(10, 12, 24, 0.72) 100%);
}
.home-shop-share-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
}
/* White text only applies inside the branded variant's content — the
   plain gradient-card fallback keeps its normal ink-on-light styling
   untouched, so nothing here can regress the no-banner case. */
.home-shop-share-card-branded .home-shop-share-heading,
.home-shop-share-card-branded .home-shop-share-name {
  color: #ffffff;
}
.home-shop-share-card-branded .home-shop-share-scan-hint {
  color: rgba(255, 255, 255, 0.78);
}
.home-shop-share-card-branded .home-referral-text strong {
  color: #ffffff;
}
.home-shop-share-card-branded .home-referral-text .hint {
  color: rgba(255, 255, 255, 0.78);
}
.home-shop-share-card-branded .home-referral-dismiss {
  color: rgba(255, 255, 255, 0.85);
}
.home-shop-share-card-branded .home-referral-dismiss:hover {
  color: #ffffff;
}
.home-shop-share-scan-hint {
  margin: -4px 0 0;
  font-size: var(--text-sm);
}
.home-shop-share-powered-by {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
}
.home-shop-share-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-right: 40px;
}
.home-shop-share-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.home-shop-share-header .home-referral-dismiss {
  position: absolute;
  top: 0;
  right: 0;
}
.home-shop-share-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-ink);
}
.home-shop-share-body {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.home-shop-share-qr-preview {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  box-shadow: var(--shadow-sm);
  font: inherit;
  margin: 0;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
.home-shop-share-qr-preview:hover {
  border-color: var(--color-indigo);
  transform: scale(1.03);
}
/* While loading, the shared .skeleton shimmer (components.css) needs
   to win over this button's own background/border below it in the
   cascade — same shimmer used everywhere else in this app, so a
   seller sees a familiar loading state instead of an empty box for
   the brief window before the QR library loads and renders. */
.home-shop-share-qr-preview.skeleton {
  background: linear-gradient(90deg, var(--color-ink-10) 25%, var(--color-surface-alt) 50%, var(--color-ink-10) 75%);
  background-size: 200% 100%;
  border-color: transparent;
  box-shadow: none;
  cursor: default;
}
.home-shop-share-qr-preview:focus-visible {
  outline: 2px solid var(--color-indigo);
  outline-offset: 2px;
}
/* Against a photo banner, the QR chip's default hairline border
   (var(--color-border), tuned for a light card background) can
   disappear entirely depending on the photo's own tones. A visible
   white-ish border plus a real shadow is what keeps the chip reading
   as "a surface sitting on top of the photo" rather than a shape
   cut into it — this is presentation only, never touching the QR's
   own encoded canvas. */
.home-shop-share-card-branded .home-shop-share-qr-preview {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.home-shop-share-qr-preview canvas {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.home-shop-share-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}
.home-shop-share-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-shop-share-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .home-shop-share-body {
    flex-direction: column;
    align-items: flex-start;
  }
  /* Real fix — flex: 1; min-width: 0 only constrains width along the
     row axis. Once .home-shop-share-body switches to column above,
     that no longer applies, and .home-shop-share-details reverts to
     its content's natural width — so a long shop name (nowrap +
     ellipsis) had nothing to actually ellipsize against and pushed
     the card, and the whole page, into horizontal overflow. An
     explicit width here is what makes the ellipsis rule further down
     actually have a boundary to clip against in the stacked layout. */
  .home-shop-share-details {
    width: 100%;
  }
}
.home-referral-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.home-referral-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.home-referral-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-referral-text strong {
  color: var(--color-success-text);
  font-size: var(--text-base);
}
.home-referral-headline-short { display: none; }
.home-referral-link-row {
  display: flex;
  gap: var(--space-2);
  margin-left: auto;
}
.home-referral-link-row input {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  width: 220px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-indigo);
  border-radius: var(--radius-sm);
  color: var(--color-indigo);
  font-weight: 600;
}
.home-referral-link-row input:focus {
  border-color: var(--color-indigo);
  box-shadow: 0 0 0 3px var(--color-indigo-soft);
}
.home-referral-dismiss {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  background: none;
  border: none;
  color: var(--color-ink-30-text);
  font-size: 14px;
  cursor: pointer;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-referral-dismiss:hover { color: var(--color-ink-50); }
@media (max-width: 640px) {
  .additional-currency-list {
    max-height: 240px;
  }
  .home-referral-card {
    flex-direction: column;
    align-items: flex-start;
    padding-right: var(--space-5);
    padding-top: 40px;
  }
  .home-referral-card-no-dismiss {
    padding-top: var(--space-5);
  }
  .home-referral-headline-full.home-referral-headline-full { display: none; }
  .home-referral-headline-short.home-referral-headline-short { display: inline; }
  .home-referral-dismiss {
    top: var(--space-2);
    right: var(--space-2);
  }
  .home-referral-link-row {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
  }
  .home-referral-link-row input {
    width: auto;
    flex: 1;
  }
  .shop-live-link-row input {
    font-size: 12px;
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
  .shop-live-link-row .btn {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
    flex-shrink: 0;
  }
  .stat-grid.stat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }
  .dash-analytics-stat-grid.dash-analytics-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card {
    padding: var(--space-3) var(--space-2);
  }
  .stat-card .stat-value.stat-value {
    font-size: var(--text-xl);
  }
  .stat-card .stat-label.stat-label {
    font-size: 11px;
    margin-top: var(--space-1);
  }
  .stat-label-full.stat-label-full { display: none; }
  .stat-label-short.stat-label-short { display: inline; }
  .stat-label-alltime.stat-label-alltime { display: none; }
  /* Previously hidden entirely on mobile (display: none) to save
     space — but that meant a seller's actual this-week activity
     (the whole point of this fix) was invisible on the phone-width
     viewport most sellers check their dashboard from. Compacted
     instead of removed: smaller text, the "week just started" /
     "not enough data" notes collapse to their own line so the
     count itself never wraps awkwardly against the card's edge. */
  .stat-card-trend.stat-card-trend {
    display: block;
    font-size: 10px;
    margin-top: var(--space-2);
    line-height: 1.3;
  }
  .stat-card-trend.stat-card-trend .stat-card-trend-note {
    display: block;
  }
  .stat-card-arrow.stat-card-arrow {
    top: var(--space-2);
    right: var(--space-2);
    font-size: var(--text-sm);
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
/* .stat-card now shares .card (components.css) via markup in both
   dashboard-home.js and platform.js — only its own, genuinely
   distinct hover behavior lives here. */
.stat-card:hover { border-color: var(--color-ink-30); box-shadow: var(--shadow-sm); }
a.stat-card {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.stat-card:hover { text-decoration: none; }
.stat-card-arrow {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  color: var(--color-ink-30-text);
  font-size: var(--text-lg);
  transition: color var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
a.stat-card:hover .stat-card-arrow {
  color: var(--color-indigo);
  transform: translateX(2px);
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-card .stat-label {
  font-size: var(--text-sm);
  color: var(--color-ink-50);
  margin-top: var(--space-2);
}
.stat-label-short { display: none; }
.stat-label-alltime {
  color: var(--color-ink-30-text);
  font-weight: 500;
}
.stat-card-trend {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink-50);
  margin-top: var(--space-3);
}
.stat-card-trend-up { color: var(--color-success-text); }
.stat-card-trend-down { color: var(--color-danger-text); }
/* The conversion-rate + revenue pair above the best-performer callout
   — genuinely only ever 1 or 2 cards, never 3, so it gets its own
   narrower grid rather than stretching to match .stat-grid's 3-up
   layout and leaving an empty third column on desktop. */
.dash-analytics-stat-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: var(--space-6);
}
/* This group is conversion rate + revenue + customers, so it is 3 cards
   whenever the shop has any views (conversion is hidden at zero) — not
   "only ever 1 or 2" as the note above says. In a 2-column grid the third
   card was left alone on a half-width row. With 3 cards: three across on
   desktop, and the third spans the full row on phones. 1–2 cards keep the
   existing 2-column layout. */
.dash-analytics-stat-grid > :nth-child(3):last-child {
  grid-column: 1 / -1;
}
@media (min-width: 641px) {
  .dash-analytics-stat-grid:has(> :nth-child(3)) {
    grid-template-columns: repeat(3, 1fr);
  }
  .dash-analytics-stat-grid > :nth-child(3):last-child {
    grid-column: auto;
  }
  /* Three-up cards are ~275px wide, which is too narrow for the 36px
     figure — "$358.00 CAD" broke onto two lines and made that card
     taller than its neighbours. One step down keeps every figure on a
     single line. */
  .dash-analytics-stat-grid:has(> :nth-child(3)) .stat-value {
    font-size: var(--text-2xl);
  }
}
.stat-card-subhint {
  margin-top: var(--space-2);
  margin-bottom: 0;
  font-size: var(--text-xs);
}
.stat-card-trend-count {
  color: var(--color-ink-50);
  font-weight: 600;
}
/* Matches the exact series colors used in the combined activity
   chart below (.combined-legend-dot-order/-request/-inquiry) — the
   "N this week" count on each stat card is tinted to agree with its
   own line in the chart, rather than reading as three identical
   gray numbers with no visual link to the data underneath them. */
.stat-card-trend-count-order { color: var(--color-indigo); }
.stat-card-trend-count-request { color: var(--color-service); }
/* Chart legend dot uses --color-mint, but that light mint reads as
   near-illegible body text on a white card — --color-success-text is
   the same mint family's darker, accessible text variant (already
   used elsewhere for exactly this purpose), so the count stays
   readable while still visually pairing with the chart's mint line. */
.stat-card-trend-count-inquiry { color: var(--color-success-text); }
.stat-card-trend-value {
  font-weight: 700;
}
.stat-card-trend-dot {
  color: var(--color-border);
  font-weight: 700;
}
.stat-card-trend-note {
  color: var(--color-ink-30-text);
  font-weight: 500;
}

/* ---------- Shop creation wizard ---------- */
.wizard {
  max-width: 560px;
}
.wizard-progress-track {
  height: 6px;
  background: var(--color-ink-10);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-2);
}
.wizard-progress-fill {
  height: 100%;
  background: var(--color-indigo);
  transition: width var(--duration-base) var(--ease-standard);
}
.wizard-step-label {
  font-size: var(--text-xs);
  color: var(--color-ink-50);
  font-family: var(--font-mono);
  margin-bottom: var(--space-6);
}
.wizard-sub {
  color: var(--color-ink-50);
  margin-bottom: var(--space-6);
}
.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-6);
}
.slug-input-row {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.slug-suffix {
  display: flex;
  align-items: center;
  padding: 0 var(--space-3);
  background: var(--color-surface-alt);
  color: var(--color-ink-50);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  white-space: nowrap;
  flex-shrink: 0;
}
.slug-input-row input {
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}
.slug-input-row input:focus { outline: none; }

@media (max-width: 375px) {
  .slug-suffix { font-size: var(--text-xs); padding: 0 var(--space-2); }
}
.slug-status-checking { color: var(--color-ink-50); }
.slug-status-success { color: var(--color-success-text); }
.slug-status-error { color: var(--color-danger); }
.slug-status-neutral { color: var(--color-ink-50); }
.review-card { margin-bottom: var(--space-5); }
.review-row-name { margin-bottom: var(--space-2); }
.review-row-name strong { display: block; font-size: var(--text-lg); }
.review-description {
  color: var(--color-ink-70);
  margin: 0 0 var(--space-3);
}
.review-availability {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.review-availability .meta-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-mint-soft);
  color: var(--color-success-text);
}
.review-availability .meta-chip-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.review-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-3);
}
.review-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: var(--color-ink-70);
}
.review-contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-ink-50);
}
.order-contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-2) 0;
}
.order-contact-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  color: var(--color-ink-70);
  transition: background-color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}
.order-contact-icon-btn:hover {
  background: var(--color-surface);
  border-color: var(--color-ink-30);
}
.order-contact-icon-btn:active {
  transform: scale(0.94);
}
.order-contact-icon-glyph {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.review-currency {
  font-size: var(--text-sm);
  color: var(--color-ink-50);
  margin: 0;
}
.wizard-alert-spaced { margin-bottom: var(--space-5); }

.sale-price-section {
  background: var(--color-indigo-soft);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-3);
}
.sale-price-section .toggle-row {
  padding: 0 0 var(--space-2);
  border-bottom: none;
}
.sale-price-section #sale-detail-fields {
  padding-top: var(--space-2);
}
.sale-price-preview s {
  color: var(--color-ink-50);
  margin-right: var(--space-1);
}
.sale-price-preview strong {
  color: var(--color-danger);
}
.sale-price-save-btn {
  margin-top: var(--space-3);
}
.product-discount-save-btn {
  margin-top: var(--space-3);
}
.settings-section-card {
  margin-bottom: var(--space-4);
}
.settings-section-heading {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-50);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 var(--space-4);
}
.settings-section-header {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.settings-section-header .settings-section-heading {
  margin-bottom: var(--space-2);
}
.settings-section-header .settings-profile-intro {
  margin-bottom: 0;
}
.settings-section-header > div {
  flex: 1 1 280px;
  min-width: 0;
}
.settings-preview-storefront-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  white-space: nowrap;
  align-self: flex-start;
}
.settings-profile-subheading {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-ink-30-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: var(--space-5) 0 var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.settings-profile-subheading:first-of-type {
  margin-top: var(--space-2);
  padding-top: 0;
  border-top: none;
}
.settings-section-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
}
.settings-section-icon-warn {
  background: var(--color-warn-soft);
  color: var(--color-warn-text);
}
.responsibilities-notice {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}
.responsibilities-notice h3 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-ink-30-text);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.responsibilities-notice p {
  font-size: var(--text-sm);
  color: var(--color-ink-50);
  margin-bottom: 0;
  line-height: var(--leading-relaxed);
}
.settings-profile-card,
.settings-announcement-card {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.settings-profile-card::before,
.settings-announcement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-indigo), var(--color-mint));
}
.settings-announcement-card::before {
  background: linear-gradient(90deg, var(--color-warn), var(--color-indigo));
}
.settings-profile-intro {
  margin-bottom: 0;
}
.migrate-profile-banner {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-indigo);
  border-radius: var(--radius-md);
  background: var(--color-indigo-soft);
}
.migrate-profile-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-indigo);
}
.migrate-profile-banner-title {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-ink-90);
  margin-bottom: var(--space-1);
}
.migrate-profile-banner .hint {
  color: var(--color-ink-70, var(--color-ink-50));
  margin-bottom: var(--space-3);
}
.migrate-profile-banner .btn {
  background: var(--color-surface);
}
.settings-announcement-preview-field {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.settings-announcement-preview-field label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-ink-50);
}
#settings-announcement-preview {
  margin-top: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt, var(--color-surface));
  border: 1px dashed var(--color-border);
}
#settings-announcement-preview:empty {
  display: none;
}
#settings-announcement-preview .shop-announcement-banner {
  margin-top: 0;
  box-shadow: var(--shadow-sm);
}
/* Mirrors storefront .shop-announcement-banner (storefront/storefront/css/pages/shop.css)
   so the seller's live preview matches exactly what buyers will see. */
.shop-announcement-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  background: var(--color-warn-soft);
  color: var(--color-warn-text);
}
.shop-announcement-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}
.shop-announcement-text {
  flex: 1;
  margin: 0;
  line-height: var(--leading-normal);
  overflow-wrap: anywhere;
}
.shop-announcement-dismiss-btn {
  flex: none;
  background: none;
  border: none;
  color: inherit;
  font-size: var(--text-xl);
  line-height: 1;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* preview only — not a functioning dismiss */
}
.profile-list-field {
  margin-bottom: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.profile-list-field:first-of-type {
  padding-top: 0;
  border-top: none;
}
.profile-list-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.profile-list-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) var(--ease-standard);
}
.profile-list-row:hover {
  background: var(--color-surface-alt, var(--color-surface));
}
.profile-list-row .profile-list-input {
  flex: 1;
}
.profile-list-remove {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-ink-30-text);
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.profile-list-remove:hover {
  color: var(--color-danger, #d33);
  border-color: var(--color-danger, #d33);
}
.profile-list-add,
.inline-list-add,
.areas-served-add {
  border-style: dashed;
}
/* ---------- Areas served — one card per country, chip-based cities ---------- */
.areas-served-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.area-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  background: var(--color-surface);
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.area-card:focus-within {
  border-color: var(--color-indigo);
}
.area-card-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.area-card-country-field {
  flex: 1;
  min-width: 0;
  position: relative;
}
.area-card-country-select {
  width: 100%;
}
/* Custom country dropdown — replaces a native <datalist> popup, which
   was unreliable on mobile (often didn't show at all) and let mobile
   keyboards autocorrect/autocapitalize while typing a country name.
   This renders identically on desktop and mobile since neither
   depends on any native popup. */
.area-country-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 240px;
  overflow-y: auto;
  /* Opaque in every theme: the dark presets make --color-surface a
     translucent tint, which let the rows behind the list show through.
     The tint is layered over a solid dark base instead. */
  background-color: #1d1b22;
  background-image: linear-gradient(var(--color-surface), var(--color-surface));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-1);
}
.area-country-dropdown-option {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-ink);
  cursor: pointer;
}
.area-country-dropdown-note {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--color-ink-50);
}
.area-country-dropdown-option:hover,
.area-country-dropdown-option-active {
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
}
.area-country-dropdown-empty {
  padding: var(--space-2) var(--space-3);
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-50);
}
.area-card-remove {
  flex-shrink: 0;
}
.area-card-worldwide-hint,
.area-card-empty-hint {
  margin-top: var(--space-2);
  margin-bottom: 0;
}
.area-card-country-error {
  margin-top: var(--space-2);
  margin-bottom: 0;
  color: var(--color-danger, #d33);
}
.area-card-cities {
  margin-top: var(--space-2);
}
.area-chip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt, var(--color-surface));
  min-height: 44px;
}
.area-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px var(--space-1) 4px var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-indigo-soft);
  color: var(--color-indigo-hover, var(--color-indigo));
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}
.area-chip-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: currentColor;
  opacity: 0.6;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  transition: opacity var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.area-chip-remove:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08);
}
.area-chip-input {
  flex: 1;
  min-width: 120px;
  width: auto;
  min-height: 0;
  border: none !important;
  background: transparent;
  padding: 4px 2px;
  font-size: var(--text-sm);
  outline: none;
}
.area-chip-input:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none;
}
@media (max-width: 480px) {
  .area-chip-input {
    min-width: 100%;
  }
}
.settings-image-preview-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-alt);
  margin-bottom: var(--space-2);
}
.settings-image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.settings-image-preview-logo {
  width: 72px;
  height: 72px;
}
.settings-image-preview-banner {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 1;
}
.settings-image-remove-btn {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 2;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 14, 26, 0.55);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.settings-image-remove-btn:hover {
  background: var(--color-danger);
}

/* dashboard-branding.js — Branding section heading + read-only swatch/preview
   row, and the new Appearance (wallpaper/storefront background) section.
   Reuses .settings-image-preview-box/.settings-image-remove-btn above rather
   than introducing parallel preview-box styling. */
.settings-section-heading {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-3);
}
.branding-appearance-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: flex-start;
}
.branding-appearance-row .settings-image-preview-box {
  margin-bottom: 0;
}
.branding-color-swatch-preview {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}
.branding-appearance-field {
  margin-bottom: var(--space-5);
}
.branding-appearance-field:last-child {
  margin-bottom: 0;
}
.branding-appearance-preview {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 9;
}
.branding-appearance-preview-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 26, 0) 40%, rgba(11, 14, 26, 0.35) 100%);
  pointer-events: none;
}
.branding-appearance-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}
.branding-appearance-controls input[type="file"] {
  max-width: 100%;
  font-size: var(--text-sm);
}

/* Theme preset picker (dashboard-branding.js). Cards are real <button>
   elements with role="radio" inside a role="radiogroup" — native keyboard
   support (Tab to the group, Enter/Space to activate) with no extra JS
   needed for accessibility beyond the aria-checked toggling already in
   wireThemePicker(). */
.theme-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
}
.theme-preset-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.theme-preset-card:hover {
  border-color: var(--color-ink-30);
}
.theme-preset-card:focus-visible {
  outline: 2px solid var(--color-indigo);
  outline-offset: 2px;
}
.theme-preset-card-selected {
  border-color: var(--color-indigo);
  box-shadow: 0 0 0 1px var(--color-indigo);
}
.theme-preset-swatch {
  position: relative;
  width: 100%;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.theme-preset-swatch-surface {
  position: absolute;
  inset: 0;
}
.theme-preset-swatch-accent {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 2px rgba(11, 14, 26, 0.15);
}
.theme-preset-name {
  font-weight: 600;
  font-size: var(--text-sm);
}
.theme-preset-desc {
  font-size: var(--text-xs);
  color: var(--color-ink-30-text);
  line-height: var(--leading-normal);
}
@media (max-width: 480px) {
  .theme-preset-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* Locked preview variant (Free/Trial sellers — dashboard-branding.js's
   themePickerMarkup with locked:true). Cards still show their REAL colors
   (an honest, specific preview, not a vague grey box) but are visually
   muted and carry a lock badge, and the cursor communicates "not
   actionable" rather than "clickable to select". aria-disabled (set in
   the markup) plus this cursor is enough — these are still real, focusable
   buttons so a screen reader still announces each theme's name/description,
   which is the whole point of a real preview over a generic pitch. */
.theme-preset-card-locked {
  cursor: not-allowed;
  opacity: 0.72;
}
.theme-preset-card-locked:hover {
  border-color: var(--color-border);
}
.theme-preset-card-locked .theme-preset-swatch {
  position: relative;
}
.theme-preset-swatch-lock {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.35));
}

/* Brand color — a swatch grid, deliberately not a hex field. Each swatch
   is a plain colored circle; the color itself is the label, so nothing
   here reads as a technical/dev setting. The native <input type="color">
   backing the "Custom" swatch is visually hidden (.sr-only-color-input,
   not display:none, so it stays clickable/focusable and its own native
   picker UI still opens) rather than removed — a seller with an exact
   hex from their own brand guidelines can still reach it, it's just not
   the first thing on the page. */
.brand-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}
.brand-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--swatch-color, var(--color-surface-alt));
  position: relative;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-standard);
}
.brand-swatch:hover { transform: scale(1.08); }
.brand-swatch:focus-visible {
  outline: 2px solid var(--color-indigo);
  outline-offset: 2px;
}
/* Selection ring drawn as a box-shadow offset from the swatch itself
   (not a border, which would shrink the visible color circle) — a
   two-layer ring (surface gap, then color) so it reads clearly against
   any swatch color, light or dark. */
.brand-swatch.is-selected {
  box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-ink);
}
.brand-swatch-default {
  background: var(--color-surface);
  border: 1.5px dashed var(--color-ink-30);
}
.brand-swatch-default.is-selected {
  box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-ink);
}
.brand-swatch-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-50);
  border: 1.5px solid var(--color-border);
}
.brand-swatch-custom.has-custom-color {
  border-color: transparent;
  color: white;
}
.brand-swatch-custom svg { width: 16px; height: 16px; }
.brand-swatch-custom.has-custom-color svg { display: none; }

.sr-only-color-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.push-notification-section {
  margin-top: var(--space-4);
}
.push-notification-section h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-50);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 var(--space-4);
}
.push-notification-section > .hint {
  margin-bottom: var(--space-4);
}
.referral-permanent-section {
  margin-top: var(--space-4);
}
.referral-permanent-section h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-50);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 var(--space-4);
}
.referral-permanent-section > .hint {
  margin-bottom: var(--space-3);
}
.referral-permanent-row {
  display: flex;
  gap: var(--space-2);
}
.referral-permanent-row input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: var(--color-surface);
  border: 1.5px solid var(--color-indigo);
  color: var(--color-indigo);
  font-weight: 600;
}
.referral-permanent-row input:focus {
  border-color: var(--color-indigo);
  box-shadow: 0 0 0 3px var(--color-indigo-soft);
}
.referral-restore-row[hidden] {
  display: none;
}
.referral-restore-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.app-install-section {
  margin-top: var(--space-4);
  border: 1px solid rgba(91, 95, 239, 0.18);
  background: linear-gradient(135deg, var(--color-indigo-soft) 0%, #E4E3FC 100%);
  box-shadow: 0 4px 18px rgba(91, 95, 239, 0.14);
}
.app-install-section-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.app-install-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 2px 8px rgba(91, 95, 239, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-install-icon img {
  width: 28px;
  height: 28px;
  display: block;
}
.app-install-section h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-indigo);
  margin: 0 0 2px;
}
.app-install-section-header .hint {
  margin: 0;
}
.app-install-installed-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-success-text);
  font-weight: 600;
  margin: 0;
}
.app-install-state-ios,
.app-install-state-unsupported {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
}

/* Install walkthrough drawer — one shared, premium step-by-step flow
   for the two non-automatic install paths (iOS manual steps; a
   genuinely unsupported browser), opened from an explicit "How to
   install" click rather than ever left as passive inline text. */
.install-walkthrough-drawer .drawer-body {
  padding: var(--space-5);
}
.install-walkthrough-intro {
  margin: 0 0 var(--space-4);
  color: var(--color-ink-50);
}
.install-walkthrough-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.install-walkthrough-step {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.install-walkthrough-step-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
}
.install-walkthrough-step-text {
  min-width: 0;
  padding-top: 2px;
}
.install-walkthrough-step-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--color-ink);
}
.install-walkthrough-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--color-ink-10);
  color: var(--color-ink-50);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.install-walkthrough-safari-link {
  margin-top: var(--space-5);
}
.install-walkthrough-safari-fallback {
  margin-top: var(--space-2);
  text-align: center;
}
.install-walkthrough-copy-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.install-walkthrough-copy-row input {
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}
.install-walkthrough-copy-row .btn {
  align-self: stretch;
}
.biometric-section {
  margin-top: var(--space-4);
}
.biometric-section h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-50);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 var(--space-4);
}
.biometric-section > .hint {
  margin-bottom: var(--space-2);
}
.notification-prefs-section {
  margin-top: var(--space-4);
}
.notification-prefs-section h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-50);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 var(--space-4);
}
.discount-code-section {
  margin-top: var(--space-4);
}
.discount-code-section h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-50);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 var(--space-2);
}
.discount-code-section #discount-code-fields {
  margin-top: var(--space-2);
}
.discount-code-note {
  margin-top: var(--space-1);
}
.discount-code-save-btn {
  margin-top: var(--space-3);
}
.notification-prefs-section > .hint {
  margin-bottom: var(--space-4);
}
.digest-category-overrides {
  margin: 0 0 var(--space-4) var(--space-4);
  padding-left: var(--space-3);
  border-left: 2px solid var(--color-border);
}
.digest-category-overrides .radio-option {
  padding: var(--space-2) 0;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  cursor: pointer;
}
.radio-option input[type="radio"], .radio-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-indigo);
}

.payment-methods-section {
  margin-top: var(--space-4);
}
.payment-methods-section h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-50);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 var(--space-4);
}
.payment-methods-section > .hint {
  margin-bottom: var(--space-4);
}
.payment-method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.payment-method-row:last-of-type { border-bottom: none; }
.payment-method-info {
  min-width: 200px;
  flex: 1 1 200px;
}
.payment-method-info strong { display: block; font-size: var(--text-sm); }
/* Real, confirmed overflow bug on mobile: with no flex-wrap on the
   row and flex-shrink: 0 unconditionally on the actions group, a
   longer-than-average method summary (a real bank name + account
   holder name easily exceeds "Opay · 0801 234 5678") left no room for
   the toggle+Edit+Delete group, which then pushed off the right edge
   of the viewport instead of shrinking or wrapping — confirmed via
   render at 320px, "Delete" landing off-screen. Same fix shape
   already proven correct on the Offerings row: let the row wrap, give
   the info column a real flex-basis so it doesn't collapse first, and
   only keep actions non-shrinking once there's a full row to spare
   (the exact breakpoint below matches the surrounding cards'). */
.payment-method-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .payment-method-actions {
    flex-basis: 100%;
    justify-content: flex-end;
  }
}
.toggle-row-compact {
  padding: 0;
  border: none;
}
#push-toggle:disabled + .track {
  opacity: 0.5;
  cursor: not-allowed;
}

.danger-zone-section {
  margin-top: var(--space-4);
}
.danger-zone-section h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-50);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 var(--space-4);
}
.danger-zone-section > .hint {
  margin-bottom: var(--space-4);
}
.danger-zone-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-6) 0;
}
.settings-legal-links {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.settings-legal-links a {
  font-size: var(--text-xs);
  color: var(--color-ink-50);
}
.settings-legal-links a:hover { color: var(--color-indigo); }
.delete-account-list {
  margin: var(--space-3) 0 var(--space-4);
  padding-left: var(--space-5);
  color: var(--color-ink-70);
  font-size: var(--text-sm);
}
.delete-account-list li {
  margin-bottom: var(--space-1);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--ease-standard);
}
.toggle-row:last-of-type { border-bottom: none; }

.additional-currency-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-4);
  max-height: 320px;
  overflow-y: auto;
}
.additional-currency-row {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.additional-currency-row:last-child { border-bottom: none; }
.additional-currency-toggle {
  padding: 0;
  border-bottom: none;
  font-size: var(--text-sm);
}
.additional-currency-toggle .toggle { flex-shrink: 0; }
.o-currency-price {
  margin-top: var(--space-2);
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  gap: var(--space-4);
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.list-row:last-child { border-bottom: none; }
.list-row-action-hint {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-indigo);
  margin-top: var(--space-1);
}
.dash-card-row-unread {
  background: var(--color-indigo-soft);
  border-color: var(--color-indigo);
}

/* ---------- Offerings list ---------- */
.publish-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.publish-cta-banner-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.offering-card-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}
.offering-row-main {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  min-width: 0;
}
.offering-row-select {
  display: flex;
  align-items: center;
  padding-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.offering-row-select input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-indigo);
  cursor: pointer;
}
.offerings-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.offerings-bulk-bar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.offering-row-content {
  min-width: 0;
  flex: 1;
}
.offering-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.offering-thumb-empty {
  background: var(--color-ink-10);
}
.offering-row-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-1);
}
.offering-row-badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-1);
}
.offering-row-sale-badge {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}
.offering-row-code-badge {
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
}
/* Real, confirmed overflow bug on mobile, hitting every badge in this
   row, not just one: .offering-row-badges holds badges genuinely
   longer than the short status words .badge's global
   white-space:nowrap was designed for — "Code: AGBADA20 · 20% off ·
   ends Sep 30" (342px), "🏷 20% off · ends Sep 30" (213px), even the
   generic "Over Free plan limit" (186px) — and this card's own
   checkbox+thumbnail already claim ~90px before the badge row even
   starts, so on a 320px screen none of these reliably fit on one
   line. Verified via render: each overflowed the viewport by itself,
   regardless of the flex-wrap: wrap already set above (that only
   wraps distinct badges onto new lines — it can't wrap text inside
   one). Scoped to badges inside this specific row (not .badge
   globally, which must stay nowrap for every short status pill
   elsewhere in the app) so any current or future badge here can wrap
   onto 2 lines and cap to the row's width instead of forcing
   horizontal overflow. */
@media (max-width: 480px) {
  .offering-row-badges .badge {
    white-space: normal;
    max-width: 100%;
    text-align: left;
  }
}
.offering-row-negotiable-badge {
  background: var(--color-surface-alt);
  color: var(--color-ink-70);
}
.offering-row-price-was {
  color: var(--color-ink-50);
  font-weight: 400;
  margin-right: var(--space-1);
}
.offering-row-price-sale {
  color: var(--color-danger);
  font-weight: 700;
}
.offering-card-row-on-sale {
  border-left: 3px solid var(--color-danger);
}
.offering-card-row-has-code {
  border-left: 3px solid var(--color-indigo);
}
.offering-card-row-on-sale.offering-card-row-has-code {
  border-left: 3px solid var(--color-indigo);
}
.offering-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
@media (min-width: 640px) {
  .offering-card-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .offering-row-actions {
    padding-top: 0;
    border-top: none;
    flex-shrink: 0;
    flex-wrap: nowrap;
  }
}

.dash-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}
.dash-card-row-clickable {
  cursor: pointer;
}
.dash-card-row-clickable:hover {
  border-color: var(--color-indigo);
  box-shadow: 0 2px 8px rgba(11, 14, 26, 0.06);
}
.dash-card-row-main {
  min-width: 0;
  flex: 1;
}

/* ---------- Customer directory avatars ---------- */
/* A small, deliberate identity touch specific to the Customers page —
   every other list page here (Orders, Requests) is about a
   transaction's status, so it reuses .dash-card-row as-is; this one is
   about a relationship, and a colored initials avatar is what makes a
   contacts-style list feel different from a status list at a glance,
   not just the same row template with a name in it. */
.customer-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: white;
}
.avatar-indigo { background: var(--color-indigo); }
.avatar-mint { background: var(--color-mint); }
.avatar-teal { background: var(--color-service); }
.avatar-gold { background: var(--color-gold); }
.customer-avatar-lg {
  width: 48px;
  height: 48px;
  font-size: var(--text-base);
}
.customer-profile-header-identity {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}
.customer-profile-header-identity h3 {
  min-width: 0;
  overflow-wrap: break-word;
}

/* ---------- Offering form drawer ---------- */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.drawer-body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
}
.confirm-drawer {
  width: min(400px, 100vw);
}

.type-toggle {
  display: flex;
  gap: var(--space-2);
}
.type-btn {
  flex: 1;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-weight: 600;
  min-height: var(--touch-target-min);
}
.type-btn.active {
  border-color: var(--color-indigo);
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
}

.image-preview-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}
.image-preview-item {
  position: relative;
  width: 80px;
}
.image-preview-item img {
  width: 80px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.image-preview-actions {
  margin-top: var(--space-1);
  text-align: center;
}
.replace-image-btn {
  font-size: 11px;
  padding: 2px var(--space-1);
  height: auto;
  min-height: 0;
  width: 100%;
}
.remove-image-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-danger);
  color: white;
  border: 2px solid var(--color-surface);
  font-size: 10px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter var(--duration-fast) var(--ease-standard);
}
.remove-image-btn:hover { filter: brightness(0.9); }
/* Expands the actual tappable area toward the touch-target minimum
   without growing the visible remove icon or overlapping the adjacent
   image's own remove button (items sit only 8px apart in the row). */
.remove-image-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
}

@media (max-width: 900px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-main { padding: var(--space-4); padding-bottom: 80px; max-width: 100%; }

  .dash-page-controls {
    align-items: stretch;
  }
  .search-field {
    min-width: 0;
    width: 100%;
  }
  .status-filter-field {
    min-width: 0;
    width: 100%;
  }
  /* Customers-specific: Search+Country pair up on one row, Status+Sort
     pair up on another (overriding display: contents above) — two
     deliberate, intentional pairs rather than 4 separate full-width
     rows or a same-weight 3-up wrap. Search carries more visual
     weight than Country (it's the primary way to find someone; the
     country filter is a narrower refinement), so the pair splits
     unevenly — flex: 1.6 vs 1 — rather than a plain 50/50 that would
     make "All countries" look as important as the search box itself.
     Status+Sort are peers, so that pair splits evenly. When Country
     is hidden (single-country shops, the common case), Search alone
     fills the row at full width, exactly as it should — the row
     doesn't need a fallback rule for that, an only-child flex item
     already claims the full row on its own. Doesn't touch Orders/
     Requests, which only ever render a single .status-filter-field
     with no wrapping .dash-page-controls-row around it. */
  .dash-page-controls-row {
    display: flex;
    gap: var(--space-2);
    width: 100%;
  }
  .dash-page-controls-row + .dash-page-controls-row {
    margin-top: var(--space-2);
  }
  .dash-page-controls-row .field {
    min-width: 0;
    width: auto;
  }
  .dash-page-controls-row-search .search-field { flex: 1.3 1 0; }
  .dash-page-controls-row-search .status-filter-field { flex: 1 1 0; }
  .dash-page-controls-row-filters .status-filter-field { flex: 1 1 0; }
  .export-dropdown {
    margin-left: 0;
    width: 100%;
  }
  .export-dropdown .btn {
    width: 100%;
  }
  .export-dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
  }

  .dash-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: var(--color-ink);
    position: sticky;
    top: 0;
    z-index: 21;
  }
  .dash-mobile-brand {
    color: white;
    font-size: var(--text-lg);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
  }
  .dash-mobile-storefront-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px var(--space-2);
    border-radius: var(--radius-full);
    background: rgba(91, 95, 239, 0.22);
    color: #C7C9FF;
    font-size: 11px;
    font-weight: 600;
  }
  .dash-mobile-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }
  .dash-install-app-mobile {
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.25);
    min-height: var(--touch-target-min);
  }
  .dash-install-app-mobile:hover { background: rgba(255,255,255,0.1); }
  .profile-avatar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    background: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    padding: 0;
  }
  .profile-avatar-btn:hover, .profile-avatar-btn[aria-expanded="true"] {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
  }
  .profile-menu-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3) var(--space-3);
    margin-bottom: var(--space-1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .profile-menu-header > div { flex: 1; min-width: 0; }
  /* The same avatar is already the button that opened this menu, so it is
     not repeated here: that room goes to the name, email and Refresh. */
  .dash-mobile-menu .profile-menu-header .profile-avatar-lg { display: none; }
  .dash-mobile-menu .profile-menu-name,
  .dash-mobile-menu .profile-menu-email { overflow-wrap: anywhere; }
  .profile-menu-refresh {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--touch-target-min);
    padding: 0 var(--space-4);
    background: var(--color-indigo);
    border: none;
    border-radius: var(--radius-full);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  }
  .profile-menu-refresh:hover { background: var(--color-indigo-hover); }
  /* Narrow phones: keep the filled button, drop the word, so the name and
     email keep their room and the menu does not grow taller. */
  @media (max-width: 400px) {
    .profile-menu-refresh { width: var(--touch-target-min); padding: 0; justify-content: center; }
    .profile-menu-refresh #refresh-app-label { display: none; }
  }
  .profile-menu-refresh:disabled { opacity: 0.85; cursor: default; }
  .profile-menu-refresh.is-refreshing svg { animation: profile-refresh-spin 0.9s linear infinite; }
  @keyframes profile-refresh-spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .profile-menu-refresh.is-refreshing svg { animation: none; opacity: 0.6; } }
  .profile-menu-name {
    color: white;
    font-weight: 600;
    font-size: var(--text-sm);
    margin: 0;
    overflow-wrap: break-word;
  }
  .profile-menu-email {
    color: rgba(255,255,255,0.5);
    font-size: var(--text-xs);
    margin: 0;
    overflow-wrap: break-word;
  }
  .dash-mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .dash-mobile-menu-btn:hover, .dash-mobile-menu-btn[aria-expanded="true"] {
    background: rgba(255,255,255,0.1);
  }
  .dash-mobile-menu {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: var(--space-4);
    background: var(--color-ink);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    min-width: 220px;
    width: min(366px, calc(100vw - 24px));
    /* Real, confirmed fix — this menu's own content (profile header
       + 8 items + legal links + attribution) can genuinely exceed a
       short phone's viewport height, and with no cap on its own
       height this panel just extended past the bottom of the
       screen — Log out and everything below it existed in the DOM
       but was never reachable, not by scrolling the menu (it wasn't
       scrollable) and not by scrolling the page (the menu is
       position: absolute, detached from page scroll). Capping its
       height to the visible viewport (minus roughly the header's
       own height, so it never starts off-screen either) and letting
       IT scroll internally makes every item reachable regardless of
       phone height, while leaving the two-column desktop sidebar —
       which already has its own real, working overflow-y: auto —
       completely untouched. */
    /* 100% here resolves against the header's own height (the
       nearest positioned ancestor — .dash-mobile-header is the
       containing block for this absolutely-positioned menu), the
       same reference top: calc(100% + var(--space-2)) above already
       uses — so this stays exactly accurate to the real gap below
       the header on any device, rather than a guessed pixel offset
       that only happens to fit some phones. */
    max-height: calc(100dvh - 100% - var(--space-2) - var(--space-4));
    overflow-y: auto;
    z-index: 22;
  }
  .dash-mobile-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: var(--touch-target-min);
    padding: var(--space-2) var(--space-3);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.85);
    font-size: var(--text-sm);
    text-align: left;
    cursor: pointer;
  }
  .dash-mobile-menu-item:hover { background: rgba(255,255,255,0.1); color: white; text-decoration: none; }
  .dash-mobile-menu-legal {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .dash-mobile-menu-legal a {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.5);
  }
  .dash-mobile-menu-legal a:hover { color: rgba(255,255,255,0.8); text-decoration: none; }
  .dash-mobile-menu .dash-afolaola-attribution {
    gap: var(--space-2);
    color: rgba(255,255,255,0.5);
    font-size: var(--text-xs);
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: var(--space-1);
    padding-top: var(--space-3);
  }
  .dash-mobile-menu .dash-afolaola-attribution:hover { color: rgba(255,255,255,0.8); }
  .dash-copyright-mobile { padding: 0 var(--space-3); margin: 0 0 var(--space-1); }
  .dash-version-mobile {
    padding: 0 var(--space-3);
    margin-top: 0;
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: rgba(255,255,255,0.35);
  }
  .dash-mobile-menu .dash-install-unavailable-note {
    color: rgba(255,255,255,0.4);
    padding: var(--space-2) var(--space-3);
  }

  .dash-mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    /* Real, confirmed gap: a fixed bottom nav sitting over normal
       document flow will always have SOME in-flow content pass under
       it while scrolling — that alone is normal, expected mobile UX
       (every app with a tab bar has this). The actual, confirmed
       defect was specific: at natural scroll position 0, an
       above-the-fold action card (e.g. the "Get the OlaOrder app"
       install prompt) landed with its own CTA button partially
       occluded and no visual cue that it continues below — reading as
       a broken, truncated button rather than "there's more, scroll."
       Measured live across common phone sizes: overlapped by 227px on
       iPhone SE, 50-91px on iPhone 12/13/14/15 and Galaxy S21 — only
       cleared on taller phones like the Pixel 7. A shadow here is the
       same elevation language already used elsewhere in this app for
       a surface that sits above other content (see .card's own
       hover box-shadow) — it makes the nav read as a distinct layer
       floating above the page, so a partially-visible element under
       it reads as "there's a layer on top," not as a rendering error. */
    box-shadow: 0 -4px 16px rgba(11, 14, 26, 0.1);
    padding: var(--space-1) var(--space-1);
    justify-content: space-around;
    overflow-x: auto;
    z-index: 20;
  }
  /* Real, confirmed UX gap, not a layout bug: all 7 tabs (Home,
     Offerings, Messages, Customers, Branding, Billing, Settings)
     never fit in one screen's width on any common phone — confirmed
     via render that even 414px (large-phone width) is 5px short, and
     320-375px are short by 40-50px. .dash-mobile-nav already handles
     this safely with overflow-x: auto (contained scroll, not page
     overflow), but with zero visual hint that "Settings" and
     whichever other tab is currently just off-screen exist at all — a
     seller who never happens to swipe the bar sideways would have no
     way to discover it's scrollable. A thin edge fade is the
     established mobile-web pattern for exactly this: it reads as
     "content continues" without adding a visible scrollbar or eating
     any of the bar's limited height. Placed on the container (not the
     row's own last item) so it stays correctly anchored to the
     viewport edge regardless of which tab happens to be nearest it at
     a given scroll position. */
  .dash-mobile-nav-fade-wrap {
    /* Overrides the unscoped display:contents above (which only
       matters outside this breakpoint, to keep this wrapper from
       joining .dash-shell's desktop grid) back to a real box here —
       display:contents generates no box at all, which would silently
       make the position:fixed below a no-op and break the fixed
       bottom nav bar this rule exists for. */
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
  }
  .dash-mobile-nav-fade-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 1px;
    width: 28px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, var(--color-surface) 85%);
    pointer-events: none;
  }
  .dash-mobile-nav-fade-wrap .dash-mobile-nav {
    position: static;
  }
  .dash-mobile-nav a {
    font-size: var(--text-xs);
    color: var(--color-ink-50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-1);
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    white-space: nowrap;
    flex: 1 0 auto;
  }
  .dash-mobile-nav a svg, .dash-mobile-nav .dash-mobile-more-btn svg { margin-bottom: 2px; }
  .dash-mobile-nav a.active, .dash-mobile-nav .dash-mobile-more-btn.active { color: var(--color-indigo); font-weight: 600; }
  .dash-mobile-nav .dash-mobile-more-btn {
    font: inherit;
    font-size: var(--text-xs);
    color: var(--color-ink-50);
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-1);
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    white-space: nowrap;
    flex: 1 0 auto;
    cursor: pointer;
  }
  .dash-mobile-nav .dash-mobile-more-btn[aria-expanded="true"] { color: var(--color-indigo); }
  /* Five tabs always fit, so there is nothing to scroll and no edge fade. */
  .dash-mobile-nav-fit::after { display: none; }
  .dash-mobile-nav-fit .dash-mobile-nav { overflow-x: visible; }
  .dash-mobile-nav-fit .dash-mobile-nav > * { flex: 1 1 0; min-width: 0; }
  /* Messages' unread badge on mobile — the mobile nav's icon+label
     stack column layout (unlike the desktop sidebar's horizontal
     row) means the desktop badge's `margin-left: auto` push-right
     approach doesn't apply; instead the badge is a small corner dot
     anchored directly to the icon via a relatively-positioned
     wrapper, matching the compact footprint mobile bottom-nav icons
     need. */
  .dash-mobile-nav-icon-wrap { position: relative; }
  .dash-mobile-nav-icon-badge-anchor { position: relative; display: inline-flex; }
  .dash-mobile-nav-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: var(--radius-full);
    background: var(--color-danger);
    color: white;
    font-size: 9px;
    font-weight: 700;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--color-surface);
  }
  .dash-mobile-nav-badge[hidden] { display: none; }
  .dash-mobile-header-notif-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    background: none;
    border: none;
    border-radius: var(--radius-full);
    color: #C7C9FF;
    cursor: pointer;
    padding: 0;
  }
  .dash-mobile-header-notif-btn:hover,
  .dash-mobile-header-notif-btn[aria-expanded="true"] {
    background: rgba(91, 95, 239, 0.22);
  }
  .notif-dropdown-menu-mobile {
    position: fixed;
    left: var(--space-3);
    right: var(--space-3);
    top: calc(99px + var(--space-2));
    bottom: auto;
    z-index: 25;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 360px) {
  .dash-mobile-nav a, .dash-mobile-nav .dash-mobile-more-btn { font-size: 10px; }
}

/* Real, confirmed overflow bug: .dash-mobile-header is a single-line
   flex row (brand on the left, storefront-link badge + install button
   + notification bell + profile avatar on the right), and none of
   those actions can shrink or wrap — every one is a fixed-size touch
   target or a nowrap text badge. Verified via render at the smallest
   supported width (320px, iPhone SE): the header's own content
   totaled ~347px including padding, pushing the header itself (and,
   through it, the whole page) 27px wider than the viewport — genuine
   horizontal page scroll on mobile, not just a contained overflow
   like the intentionally-scrollable .dash-mobile-nav below it. The
   "Storefront" text label is the single largest, least essential
   piece — the link's icon alone is already a clear, established
   affordance (the desktop sidebar's equivalent link works the same
   way visually) and the badge still shows the unread-views dot when
   present. Dropping to icon-only at the exact width where the row
   stops fitting removes the overflow without touching anything above
   360px, where the full label already fits and reads better. */
@media (max-width: 360px) {
  .dash-mobile-storefront-link span:not(.dash-storefront-views-badge) {
    display: none;
  }
  .dash-mobile-storefront-link {
    padding: 5px;
  }
}

/* ---------- Manage Subscription page ---------- */
.subscription-summary-card {
  margin-bottom: var(--space-5);
}
.subscription-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}
.subscription-summary-plan {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 0 var(--space-1);
}
.subscription-cancel-notice {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--color-warn-soft);
  color: var(--color-warn-text);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.subscription-next-charge-card {
  margin-bottom: var(--space-5);
}
.subscription-next-charge-amount {
  font-size: var(--text-2xl);
  font-weight: 700;
  font-family: var(--font-mono);
  margin: var(--space-1) 0;
}
.subscription-history-card {
  margin-bottom: var(--space-5);
}
.subscription-history-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.subscription-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.subscription-history-row:last-child {
  border-bottom: none;
}
.subscription-history-date {
  font-size: var(--text-sm);
  font-weight: 600;
  margin: 0;
}
.subscription-history-right {
  text-align: right;
}
.subscription-history-amount {
  font-family: var(--font-mono);
  font-weight: 600;
  margin: 0 0 var(--space-1);
}
.subscription-history-status {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}
.subscription-history-status-completed,
.subscription-history-status-paid {
  background: var(--color-mint-soft);
  color: var(--color-success-text);
}
.subscription-history-status-billed,
.subscription-history-status-ready {
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
}
.subscription-actions-card #update-payment-btn {
  margin-bottom: var(--space-3);
}
.subscription-cancel-btn {
  color: var(--color-danger-text);
}
.subscription-already-canceling-note {
  text-align: center;
}

.dash-locked-feature {
  /* Grid-stacked (not absolute-positioned overlay) so the container's
     height is driven by whichever of the two layers — the blurred
     preview or the real overlay content — is actually taller. The old
     `position: absolute; inset: 0` overlay was taken out of normal
     flow entirely, so it never grew the parent past its 340px
     min-height; on a narrow mobile viewport the overlay's own text
     wraps to more lines than that, and `overflow: hidden` silently
     clipped the bottom of it (typically the upgrade button). Grid
     stacking keeps the same visual "preview behind, overlay on top"
     result while sizing to fit whichever layer needs more room. */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
}
.dash-locked-feature-preview {
  grid-area: 1 / 1;
  filter: blur(3px);
  opacity: 0.6;
  padding: var(--space-2);
}
.dash-locked-feature-preview .field:last-child {
  margin-bottom: 0;
}
.dash-locked-feature-count {
  margin-top: var(--space-3);
  text-align: center;
  background: var(--color-indigo-soft);
}
.dash-locked-feature-overlay {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6) var(--space-5);
  /* Solid enough, starting near the very top, that none of the
     eyebrow/heading/button text sits in a low-opacity zone where the
     blurred preview layer underneath (including its "142 customers"
     stat card) shows through and reads as washed-out/faded. The old
     0.4-opacity start reached full opacity only 35% down the card,
     which is well after the "Pro feature" eyebrow and heading — those
     visibly ghosted the preview content behind them. A short fade only
     at the very top edge keeps the softened-edge look without
     compromising legibility of any real content. */
  background: linear-gradient(180deg, rgba(247, 248, 252, 0.75) 0%, rgba(247, 248, 252, 0.98) 8%);
  animation: dashLockedFeatureIn var(--duration-slow) var(--ease-out-premium);
  animation-fill-mode: both;
}
@keyframes dashLockedFeatureIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .dash-locked-feature-overlay { animation: none; }
}
.dash-locked-feature-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-indigo);
  margin: 0 0 var(--space-2);
}
.dash-locked-feature-overlay h2 {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-2);
}
.dash-locked-feature-overlay p {
  color: var(--color-ink-70);
  max-width: 380px;
  margin: 0 0 var(--space-4);
}

@media (max-width: 480px) {
  .dash-locked-feature-overlay { padding: var(--space-5) var(--space-4); }
  .dash-locked-feature-overlay .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
}

/* Branding page locked previews (Brand / Appearance sections): a real,
   unblurred sample using the seller's own logo/banner/shop name, stacked
   ABOVE the upgrade pitch rather than blurred behind it. Deliberately a
   separate pattern from .dash-locked-feature above (which stays in use
   elsewhere, e.g. dashboard-customers.js) — that pattern's near-opaque
   overlay was fixed once already to stop pitch text from ghosting over
   the preview, which made the preview itself barely visible. Stacking
   instead of overlaying removes that trade-off entirely: the sample is
   fully legible, and the pitch text never sits over an image. */
.dash-locked-feature-sample {
  margin-bottom: var(--space-4);
}
.dash-locked-feature-sample-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-ink-50);
  margin: 0 0 var(--space-2);
}
.dash-locked-feature-sample-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
}
.dash-locked-feature-sample-card-wallpaper {
  background-color: var(--color-surface-alt);
  background-repeat: no-repeat;
  padding: var(--space-5);
  /* Without a floor, this card's height is set purely by the chip's
     content — on a wide desktop viewport with short shop-name text,
     the banner behind it can crop down to a thin, unrecognizable
     sliver instead of reading as an actual wallpaper preview. */
  min-height: 160px;
  display: flex;
  align-items: center;
}
.dash-locked-feature-sample-chip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  max-width: 100%;
}
.dash-locked-feature-sample-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.dash-locked-feature-sample-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
}
.dash-locked-feature-sample-title {
  font-weight: 700;
  margin: 0 0 var(--space-1);
}
.dash-locked-feature-pitch {
  position: relative;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
  overflow: hidden;
  /* Forces its own compositing layer. Without this, the
     backdrop-filter blur on the branded variant's inner panel can
     sample content outside this card's own clipped bounds under
     certain viewport/content-height combinations (observed: a stray
     rendered fragment bleeding in at a corner) — a known class of
     Chromium backdrop-filter + overflow:hidden compositing quirk.
     Isolating the stacking context keeps the blur's sampling scoped
     to this card. */
  isolation: isolate;
}
.dash-locked-feature-pitch:not(.dash-locked-feature-pitch-branded) {
  padding: var(--space-5);
}
.dash-locked-feature-pitch h2 {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-2);
}
.dash-locked-feature-pitch p {
  color: var(--color-ink-70);
  max-width: 420px;
  margin: 0 auto var(--space-4);
}
/* Branded variant: the specific asset each pitch actually unlocks as
   backdrop (Business/logo pitch uses the seller's logo, falling back to
   their banner if no logo yet; Pro/wallpaper pitch uses their banner) —
   per an explicit request to make each upgrade pitch feel like "your
   brand, upgraded" rather than a generic locked box, matched to the
   actual feature being sold rather than whichever asset happens to
   exist. An earlier version used a fully OPAQUE surface-color fill
   behind the text, so the image only ever showed as a thin frame at
   the card's outer edge — reviewed against a real screenshot and
   confirmed to look like a flat card awkwardly sitting on top of the
   photo rather than a translucent "your brand, showing through" card.
   Fixed to a TRANSLUCENT surface-color fill plus `backdrop-filter:
   blur()`: the image is genuinely visible behind and through the text
   panel, not just peeking out at the border, while the blur — not the
   opacity alone — is what keeps text contrast safe regardless of the
   image's own brightness, detail or saturation (blur removes exactly
   the high-frequency contrast variance that made a plain alpha overlay
   risky for the older .dash-locked-feature-overlay pattern elsewhere).
   `-webkit-backdrop-filter` covers Safari, which does not (yet) accept
   the unprefixed property alone. */
.dash-locked-feature-pitch-branded {
  padding: var(--space-3);
  /* Same reasoning as .dash-locked-feature-sample-card-wallpaper above:
     without a floor, a short pitch (e.g. shorter copy on narrow
     viewports) crops the banner/logo behind it down to a sliver rather
     than a recognizable image showing through the blur. */
  min-height: 280px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
/* The banner/logo image lives on its own dedicated element (a sibling of
   .dash-locked-feature-pitch-inner, not an ancestor of it), with its
   background-image set inline via JS. This is deliberate: Chromium has a
   rendering bug where backdrop-filter on a child bleeds a stray fringe of
   its own ANCESTOR's background-image past the ancestor's rounded-corner
   clip (confirmed here — reproduced with plain blur(), with saturate()
   removed, with isolation/transform hacks on the blurred element, all of
   which left it unchanged; it disappeared only once no ancestor of the
   blurred element carried a background-image at all). Keeping the image
   on a plain sibling, never an ancestor of the blurred panel, avoids the
   interaction entirely instead of fighting it. */
.dash-locked-feature-pitch-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.dash-locked-feature-pitch-inner {
  position: relative;
  z-index: 1;
  padding: var(--space-5);
  width: 100%;
  /* Stretched (not centered) inside its branded parent so the blurred
     panel always fills the card's full height — a shorter-than-parent
     inner box would leave an unfilled strip of raw background-image
     showing at top/bottom with no blur panel over it at all. */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dash-locked-feature-pitch-branded .dash-locked-feature-pitch-inner {
  /* Plain rgba first (matches --color-surface-alt's actual #F7F8FC) as
     a fallback for browsers without color-mix() support — a browser
     that doesn't understand the later color-mix() declaration simply
     never applies it and keeps this one, rather than the property
     going unset. If --color-surface-alt is ever repainted, update the
     rgb() triplet here to match — both track the same token. */
  background: rgba(247, 248, 252, 0.62);
  background: color-mix(in srgb, var(--color-surface-alt) 62%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-radius: var(--radius-md);
  overflow: hidden;
}
/* Without backdrop-filter support, the translucent fill above has no
   blur to smooth out whatever detail/contrast sits in the image behind
   it — so on those browsers only, fall back to a near-opaque fill
   (still shows a hint of the image at the very edges via the branded
   variant's own outer padding, but keeps the text panel itself safely
   legible without relying on blur). */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dash-locked-feature-pitch-branded .dash-locked-feature-pitch-inner {
    background: rgba(247, 248, 252, 0.92);
  }
}
@media (max-width: 480px) {
  .dash-locked-feature-sample-card { flex-direction: column; text-align: center; }
  .dash-locked-feature-sample-chip { flex-direction: column; text-align: center; }
  .dash-locked-feature-pitch .btn {
    white-space: normal;
    max-width: 100%;
  }
}

/* Verification Centre */
.verification-status-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.verification-status-card > div:last-child {
  min-width: 0;
}
.verification-status-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.verification-status-icon-verified {
  background: linear-gradient(135deg, var(--color-surface), var(--color-warn-soft));
  border: 2px solid var(--color-warn);
}
.verification-status-icon-verified-trophy {
  background: linear-gradient(135deg, var(--color-gold-gradient-start), var(--color-gold-gradient-end));
  border-color: var(--color-gold);
}
.verification-status-icon-pending {
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
}
.verification-status-icon-rejected {
  background: var(--color-danger-soft);
  color: var(--color-danger);
  font-size: var(--text-lg);
}
.verification-status-title {
  font-weight: 700;
  margin: 0 0 var(--space-1);
}
.verification-status-card-verified {
  border-color: var(--color-warn);
}
.verification-status-card-pending {
  border-color: var(--color-indigo);
}
.verification-status-card-rejected {
  border-color: var(--color-danger);
}
.verification-requirements-card {
  margin-bottom: var(--space-4);
}
.verification-requirements-card h2 {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-3);
}
.verification-requirements-list {
  margin: 0;
  padding-left: var(--space-5);
  color: var(--color-ink-70);
}
.verification-requirements-list li {
  margin-bottom: var(--space-2);
}
.verification-form-card h2 {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-4);
}

/* Promotion */
.promotion-highlight-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.promotion-highlight-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  transition: border-color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);
}
.promotion-highlight-option:has(input:checked) {
  border-color: var(--color-indigo);
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
  font-weight: 700;
}
.promotion-highlight-option input {
  width: auto;
  margin: 0;
}
.promotion-confirmation-card {
  text-align: center;
  padding: var(--space-6) var(--space-5);
}
.promotion-confirmation-icon {
  display: block;
  font-size: 32px;
  margin-bottom: var(--space-3);
}
.promotion-confirmation-card h2 {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-2);
}
.promotion-confirmation-card p {
  color: var(--color-ink-70);
  max-width: 420px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .promotion-highlight-options {
    grid-template-columns: 1fr;
  }
}

.growth-hero {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--space-6);
  padding-top: var(--space-3);
}
.growth-hero h1 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: var(--space-3) 0 var(--space-3);
}
.growth-hero-subtitle {
  color: var(--color-ink-70);
  font-size: var(--text-base);
  line-height: 1.6;
  margin: 0;
}
.growth-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-surface), var(--color-warn-soft));
  border: 2px solid var(--color-warn);
  box-shadow: 0 2px 4px rgba(11, 14, 26, 0.18);
  color: var(--color-warn-text);
  margin: 0 auto var(--space-4);
}
.growth-feature-card {
  max-width: 620px;
  margin: 0 auto var(--space-6);
  text-align: center;
  padding: var(--space-6) var(--space-5);
}
.growth-feature-card h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
}
.growth-feature-card p {
  color: var(--color-ink-70);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto var(--space-4);
}
.growth-feature-card .btn {
  margin-bottom: var(--space-3);
}
.growth-shop-link-field {
  text-align: left;
  max-width: 420px;
  margin: 0 auto var(--space-4);
}
.growth-link-input {
  margin-bottom: var(--space-2);
}
.growth-link-actions-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: nowrap;
  overflow-x: auto;
}
.growth-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-ink-50);
  max-width: 420px;
  margin: 0 auto;
}
.growth-locked-note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #8A6512;
  background: linear-gradient(135deg, var(--color-gold-gradient-start), var(--color-gold-soft));
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  margin: 0 0 var(--space-4);
}

.promotion-plan-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin: 0 auto;
  max-width: 720px;
}
.promotion-plan-compare-card {
  position: relative;
  text-align: center;
  padding: var(--space-6) var(--space-5);
}
.promotion-plan-compare-card-pro {
  border-color: var(--color-warn);
  box-shadow: 0 4px 14px rgba(224, 160, 48, 0.16);
}
.promotion-plan-compare-benefit {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 var(--space-1);
}
.promotion-plan-compare-tier {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink-50);
  margin: 0 0 var(--space-4);
}
.promotion-plan-compare-price {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0 0 var(--space-1);
}
.promotion-plan-compare-price .hint {
  font-size: var(--text-sm);
  font-weight: 500;
}
.promotion-plan-compare-tagline {
  color: var(--color-ink-70);
  font-size: var(--text-sm);
  margin: 0 0 var(--space-4);
}
.promotion-plan-compare-features {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  text-align: left;
}
.promotion-plan-compare-features li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-ink-70);
  font-size: var(--text-sm);
}
.promotion-plan-compare-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-warn-text);
  font-weight: 700;
}
.promotion-plan-compare-features li:last-child {
  border-bottom: none;
}

@media (max-width: 480px) {
  .promotion-plan-compare {
    grid-template-columns: 1fr;
  }
}

/* Verified-seller medal badge — ported byte-for-byte from the
   storefront's own confirmed-correct version, for genuine visual
   consistency between what a seller sees on their own dashboard
   and what their real buyers see on the storefront. */
.shop-verified-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  vertical-align: middle;
}
.shop-verified-badge-medal {
  position: relative;
  width: 26px;
  height: 37px;
  flex-shrink: 0;
}
.shop-verified-badge-ribbon-left,
.shop-verified-badge-ribbon-right {
  position: absolute;
  top: 16px;
  width: 8px;
  height: 18px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  background: linear-gradient(180deg, #D63C3C, #A61E1E);
}
.shop-verified-badge-ribbon-left {
  left: 2px;
  transform: rotate(-10deg);
}
.shop-verified-badge-ribbon-right {
  right: 2px;
  transform: rotate(10deg);
}
.shop-verified-badge-disc {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-surface), var(--color-warn-soft));
  border: 2px solid var(--color-warn);
  box-shadow: 0 2px 4px rgba(11, 14, 26, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-verified-badge-disc img {
  display: block;
  width: 16px;
  height: 16px;
}
.shop-verified-badge-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-warn-text);
  white-space: nowrap;
}
/* Trusted Business — ported byte-for-byte from the storefront's own
   confirmed-correct version, for genuine visual consistency between
   a seller's own dashboard and what their real buyers see. */
.shop-verified-badge-trophy .shop-verified-badge-ribbon-left,
.shop-verified-badge-trophy .shop-verified-badge-ribbon-right {
  background: linear-gradient(180deg, #2E3650, #12172A);
}
.shop-verified-badge-trophy .shop-verified-badge-disc {
  background: linear-gradient(135deg, var(--color-gold-gradient-start), var(--color-gold-gradient-end));
  border-color: var(--color-gold);
  box-shadow: 0 2px 4px rgba(11, 14, 26, 0.25);
}
.shop-verified-badge:has(.shop-verified-badge-trophy) .shop-verified-badge-label {
  color: #7A5C10;
}

/* Seller Verification page — premium marketplace-trust-program feel */
.verification-intro {
  color: var(--color-ink-70);
  max-width: 640px;
  margin: 0 0 var(--space-5);
}
.verification-requirements-list-checked {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
}
.verification-requirements-list-checked li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.verification-requirements-list-checked li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.verification-requirements-list-checked li strong {
  font-size: var(--text-base);
}
.verification-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-90);
  background: var(--color-success-soft);
  border-left: 3px solid var(--color-success);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin: var(--space-4) 0;
}
.verification-privacy-note-icon {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
}
.verification-preview-card {
  text-align: center;
}
.verification-preview-badge-row {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding: var(--space-4) 0;
}
.verification-growth-card {
  text-align: center;
  padding: var(--space-6) var(--space-5);
}
.verification-growth-question {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0 0 var(--space-4);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.verification-growth-btn {
  white-space: normal;
  max-width: 100%;
}
.verification-growth-card .btn {
  margin-bottom: var(--space-3);
}
.verification-growth-card .hint {
  max-width: 480px;
  margin: 0 auto;
}

/* Promotion request — grouped highlight choice. Confirmed and
   directly rendered as a standalone concept before this code was
   written: Products/Services as combinable checkboxes, Offers/
   Everything as a further, optional add-on note freely combinable
   with either — matching the confirmed reversal from the initial
   mutually-exclusive design. */
.highlight-checkbox-row {
  display: flex;
  gap: var(--space-2);
}

@media (max-width: 480px) {
  .highlight-checkbox-row {
    flex-direction: column;
  }
}

.verification-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}

.growth-submitted-notes {
  margin-top: var(--space-3);
}

.verification-review-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.verification-review-row:last-of-type {
  border-bottom: none;
}
.verification-review-label {
  font-size: var(--text-sm);
  color: var(--color-ink-50);
  flex-shrink: 0;
}
.verification-review-value {
  font-weight: 600;
  text-align: right;
}
.verification-review-value-muted {
  font-weight: 500;
  color: var(--color-ink-50);
  font-size: var(--text-sm);
}
.verification-review-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .verification-review-row {
    flex-direction: column;
    gap: var(--space-1);
  }
  .verification-review-value {
    text-align: left;
  }
  .verification-review-actions-row {
    flex-direction: column-reverse;
  }
  .verification-review-actions-row .btn {
    width: 100%;
  }
}

.verification-review-row-with-preview {
  align-items: center;
}
.verification-review-preview-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.verification-review-thumbnail {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.verification-review-file-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

@media (max-width: 480px) {
  .verification-review-row-with-preview {
    align-items: flex-start;
  }
}

.verification-tier-note-card {
  border-left: 3px solid var(--color-warn);
  text-align: left;
}
.verification-tier-note-title {
  font-weight: 700;
  margin: 0 0 var(--space-2);
}

.growth-feature-expiry {
  margin: var(--space-3) 0 0;
}

.growth-dismiss-link {
  display: block;
  margin: var(--space-4) auto 0;
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-xs);
  color: var(--color-ink-50);
  text-decoration: underline;
  cursor: pointer;
}
.growth-dismiss-link:hover {
  color: var(--color-ink-70);
}
.growth-dismiss-link:disabled {
  cursor: default;
  text-decoration: none;
}

.growth-history-dropdown {
  margin-top: var(--space-4);
}
.growth-history-dropdown summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-ink-70);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.growth-history-dropdown[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.growth-history-list {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-top: none;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  padding: 0 var(--space-4);
}
.growth-history-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.growth-history-item:last-child {
  border-bottom: none;
}
.growth-history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.growth-history-item-header a {
  word-break: break-all;
}

.growth-share-fallback-row {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.growth-share-fallback-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.growth-share-fallback-icon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.growth-history-undo-btn {
  display: inline-block;
  margin-top: var(--space-2);
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-xs);
  color: var(--color-indigo);
  text-decoration: underline;
  cursor: pointer;
}
.growth-history-undo-btn:hover {
  color: var(--color-indigo-hover);
}
.growth-history-undo-btn:disabled {
  cursor: default;
  text-decoration: none;
  color: var(--color-ink-50);
}

.growth-share-message-label {
  display: block;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-70);
  margin-bottom: var(--space-2);
}

.verification-review-header h1 {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.weekly-summary-pro-badge {
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
  padding: 2px var(--space-2);
  font-size: 10px;
  vertical-align: middle;
}

.notif-hint-highlight {
  background: var(--color-surface-alt);
  border-left: 3px solid var(--color-indigo);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin: 0 0 var(--space-3);
  color: var(--color-ink-90);
}
.notif-hint-highlight-gold {
  border-left-color: var(--color-gold);
}
.notif-hint-highlight-mint {
  border-left-color: var(--color-mint);
}

/* ============================================================
   SELLER JOURNEY — confirmed distinct from verification badges
   and billing tier. Every visual detail here was directly
   rendered and confirmed correct before being written as
   production CSS, including the responsive breakpoint switch
   from a horizontal bar (desktop) to a vertical timeline
   (mobile) — confirmed necessary after directly rendering the
   unmodified horizontal bar at 320px and finding it genuinely
   cramped, exactly the risk the product spec warned against.
   ============================================================ */
.journey-section {
  margin: var(--space-6) 0;
}
.journey-heading {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-1);
}
.journey-subheading {
  color: var(--color-ink-70);
  margin: 0 0 var(--space-5);
}

/* Desktop — horizontal bar, confirmed correct above 900px */
.journey-bar {
  display: flex;
  align-items: flex-start;
}
.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
.journey-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 2;
  transition: background-color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}
.journey-bar .journey-icon {
  opacity: 0;
  animation: journeyIconIn 0.35s ease-out forwards;
}
.journey-bar .journey-connector {
  transform: scaleX(0);
  transform-origin: left;
  animation: journeyConnectorIn 0.4s ease-out forwards;
  animation-delay: 0.2s;
}
.journey-bar .journey-step:nth-child(1) .journey-icon { animation-delay: 0.05s; }
.journey-bar .journey-step:nth-child(2) .journey-icon { animation-delay: 0.15s; }
.journey-bar .journey-step:nth-child(3) .journey-icon { animation-delay: 0.25s; }
.journey-bar .journey-step:nth-child(4) .journey-icon { animation-delay: 0.35s; }
.journey-bar .journey-step:nth-child(1) .journey-connector { animation-delay: 0.2s; }
.journey-bar .journey-step:nth-child(2) .journey-connector { animation-delay: 0.3s; }
.journey-bar .journey-step:nth-child(3) .journey-connector { animation-delay: 0.4s; }
@keyframes journeyIconIn {
  from { opacity: 0; transform: scale(0.75); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes journeyConnectorIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .journey-bar .journey-icon,
  .journey-bar .journey-connector {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.journey-connector {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 100%;
  height: 2px;
  z-index: 1;
}
.journey-label {
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: center;
}

.journey-step-completed .journey-icon {
  background: var(--color-mint-soft);
  border: 2px solid var(--color-mint);
  color: var(--color-success-text);
}
.journey-step-completed .journey-connector {
  background: var(--color-mint);
}
.journey-step-completed .journey-label {
  color: var(--color-ink-90);
}

.journey-step-current .journey-icon {
  background: var(--color-indigo);
  border: 2px solid var(--color-indigo);
  color: white;
  box-shadow: 0 0 0 4px var(--color-indigo-soft);
}
.journey-step-current .journey-connector {
  background: var(--color-border);
}
.journey-step-current .journey-label {
  color: var(--color-indigo);
}

.journey-step-locked .journey-icon {
  background: var(--color-surface-alt);
  border: 2px solid var(--color-border);
  color: var(--color-ink-50);
}
.journey-step-locked .journey-connector {
  background: var(--color-border);
}
.journey-step-locked .journey-label {
  color: var(--color-ink-50);
}

/* Mobile — confirmed compact horizontal treatment, below 900px.
   Genuinely re-confirmed the seller prefers the same horizontal
   bar shape on mobile as desktop, rather than the earlier vertical
   timeline. Directly re-rendered at the real 320px width with
   smaller icons, smaller text, and explicit label wrapping before
   this code was written — confirmed all four labels, including
   "Recognized" (the longest), genuinely fit clearly without the
   cramping that originally prompted the vertical alternative. */
.journey-bar-vertical {
  display: none;
}
@media (max-width: 900px) {
  .journey-step {
    padding: 0 2px;
  }
  .journey-icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-1);
  }
  .journey-connector {
    top: 20px;
  }
  .journey-label {
    font-size: 11px;
    line-height: 1.25;
  }
  .journey-details-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }
  .journey-details-value {
    text-align: left;
    word-break: normal;
  }
}

/* Current-status card */
.journey-status-card {
  margin-top: var(--space-5);
  padding: var(--space-5);
  max-width: 560px;
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(91, 95, 239, 0.08), var(--shadow-md);
}
.journey-status-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0 0 var(--space-2);
}
.journey-status-card p {
  color: var(--color-ink-70);
  margin: 0 0 var(--space-4);
}
.journey-next-milestone {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
}
.journey-next-milestone-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-50);
}
.journey-next-milestone-label {
  font-size: var(--text-xs);
  color: var(--color-ink-50);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.journey-next-milestone-name {
  font-weight: 700;
  color: var(--color-ink-90);
}

/* "What builds toward this" — confirmed distinct bordered
   treatment, directly rendered and chosen over a filled-gray
   variant specifically because it reads as its own identity next
   to the solid journey-next-milestone box below it, not a repeated
   copy of the same visual pattern. */
.journey-builds-toward {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-4) 0;
}
.journey-builds-toward-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-ink-70);
  margin: 0 0 var(--space-3);
}
.journey-builds-toward-icon {
  display: inline-flex;
  color: var(--color-indigo);
}
.journey-builds-toward-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-ink-70);
  font-size: var(--text-sm);
}
.journey-builds-toward-list li {
  position: relative;
  padding: var(--space-1) 0 var(--space-1) var(--space-5);
}
.journey-builds-toward-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-ink-50);
}

.journey-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: 4px;
}
.journey-header-row .journey-heading {
  margin: 0;
}
.journey-view-details-btn {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: none;
  background: var(--color-surface-alt);
  color: var(--color-ink-90);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  white-space: nowrap;
  transition: background-color var(--duration-base) var(--ease-standard);
}
.journey-view-details-btn:hover {
  background: var(--color-border);
}
.journey-view-details-btn svg {
  color: var(--color-indigo);
  flex-shrink: 0;
}

.journey-details-modal {
  max-width: 460px;
}
.journey-details-section {
  margin-bottom: var(--space-5);
}
.journey-details-section:last-of-type {
  margin-bottom: var(--space-2);
}
.journey-details-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-indigo);
  margin: 0 0 var(--space-3);
}
.journey-details-section-icon {
  display: inline-flex;
  color: var(--color-indigo);
}
.journey-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-surface-alt);
}
.journey-details-row:last-child {
  border-bottom: none;
}
.journey-details-label {
  font-size: var(--text-sm);
  color: var(--color-ink-50);
  flex-shrink: 0;
}
.journey-details-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-90);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  text-align: right;
  word-break: break-word;
}
.journey-details-value-muted {
  color: var(--color-ink-50);
  font-weight: 500;
}
.journey-details-verified-tick {
  color: var(--color-mint);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: var(--text-xs);
}

@media (max-width: 900px) {
  .journey-details-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }
  .journey-details-value {
    text-align: left;
    word-break: normal;
  }
}

/* Dedicated Personal & Business Information card — always visible
   on the page itself, reusing the exact same confirmed
   journey-details-section/row classes already proven correct for
   the real detail rows, since this is genuinely the same visual
   pattern, just on a standalone card rather than inside a modal. */
.journey-details-card {
  margin-bottom: var(--space-6);
}
.journey-details-card h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.journey-details-card-icon {
  display: inline-flex;
  color: var(--color-indigo);
  flex-shrink: 0;
}

/* Journey history modal — the actual timeline showing when and how
   each level was reached, with genuinely specific criteria text
   using the seller's own real calculated numbers. */
.journey-history-modal {
  max-width: 460px;
}
.journey-history-item {
  display: flex;
  gap: var(--space-3);
  padding-bottom: var(--space-5);
  position: relative;
}
.journey-history-item:last-child {
  padding-bottom: var(--space-2);
}
.journey-history-connector {
  position: absolute;
  left: 19px;
  top: 40px;
  width: 2px;
  height: calc(100% - var(--space-2));
  background: var(--color-border);
}
.journey-history-item-completed .journey-history-connector {
  background: var(--color-mint);
}
.journey-history-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}
.journey-history-item-completed .journey-history-icon {
  background: var(--color-mint-soft);
  border: 2px solid var(--color-mint);
  color: var(--color-success-text);
}
.journey-history-item-locked .journey-history-icon {
  background: var(--color-surface-alt);
  border: 2px solid var(--color-border);
  color: var(--color-ink-50);
}
.journey-history-body {
  padding-top: 2px;
  flex: 1;
  min-width: 0;
}
.journey-history-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: 2px;
}
.journey-history-title {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-ink-90);
}
.journey-history-date {
  font-size: var(--text-xs);
  color: var(--color-ink-50);
  font-weight: 600;
  flex-shrink: 0;
}
.journey-history-criteria {
  font-size: var(--text-sm);
  color: var(--color-ink-70);
  margin: var(--space-1) 0 0;
}
.journey-history-locked-note {
  font-size: var(--text-sm);
  color: var(--color-ink-50);
  font-style: italic;
  margin: var(--space-1) 0 0;
}

/* Verification form — address section, added alongside the
   existing required fields above it. Genuinely optional, so a
   distinct section heading with an "(optional)" hint keeps it
   visually separate from the required identity fields, avoiding
   any confusion about what's actually needed to submit. */
.verification-form-section-heading {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-ink-90);
  margin: var(--space-5) 0 var(--space-3);
}
.verification-address-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 500px) {
  .verification-address-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .journey-header-row {
    flex-direction: column;
    align-items: center;
  }
  .journey-header-row .journey-heading {
    text-align: center;
  }
  .journey-view-details-btn {
    width: auto;
  }
}

.verification-hint-aside {
  font-style: italic;
  color: var(--color-ink-30-text);
}

/* Guide drawer — the "Explore OlaOrder" expanded guide, reusing the
   established .drawer/.drawer-header/.drawer-body system already
   proven correct across three other real drawers in this codebase.
   Confirmed by direct rendering at both sizes before this code was
   written. */
.guide-drawer-body {
  padding: var(--space-5) var(--space-4);
}
.guide-drawer-intro {
  margin: 0 0 var(--space-5);
}
.guide-section {
  margin-bottom: var(--space-5);
}
.guide-section-heading {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-indigo);
  margin: 0 0 var(--space-3);
}
.guide-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(11, 14, 26, 0.04);
  transition: box-shadow var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}
.guide-item:hover {
  box-shadow: 0 4px 12px rgba(11, 14, 26, 0.08);
  transform: translateY(-1px);
}
.guide-section .guide-item:last-child {
  margin-bottom: 0;
}
.guide-item-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-item-body {
  min-width: 0;
  flex: 1;
}
.guide-item-name {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-ink-90);
  margin-bottom: 2px;
}
.guide-item-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #8A6512;
  background: linear-gradient(135deg, var(--color-gold-gradient-start), var(--color-gold-soft));
  border: 1px solid var(--color-gold);
  border-radius: 5px;
  padding: 1px var(--space-2);
  margin-left: var(--space-2);
  vertical-align: middle;
}
.guide-item-desc {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-ink-70);
  line-height: 1.4;
}
.home-view-guide-row {
  margin-top: var(--space-2);
}
/* .seller-journey-label is now a real <h2 class="dash-section-heading">
   (previously a small uppercase <p class="hint">) — this override only
   adds the extra top spacing a section heading needs after the Share
   card above it; dash-section-heading itself already supplies the
   font-size/weight/margin-bottom this used to hand-roll. */
.seller-journey-label {
  margin-top: var(--space-6);
}
.home-promo-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  background: var(--color-surface-alt);
  border-left: 3px solid var(--color-indigo);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-ink-90);
}
.home-promo-note-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-promo-note-text {
  flex: 1;
  line-height: 1.4;
}
.home-promo-note-dismiss {
  flex-shrink: 0;
  margin-left: auto;
  border: none;
  background: none;
  color: var(--color-ink-30-text);
  cursor: pointer;
  padding: 0;
  font-size: var(--text-sm);
  line-height: 1;
}

/* ---------- Payment status card (Order/Request detail) ----------
   Replaces a small grey hint line with a real, distinctly-colored
   card per state — this section is the single source of truth for
   every dollar figure on the seller's Home page and Customers
   directory (total_spend_by_currency only increments here), so it
   earns a premium, unmistakable treatment rather than blending into
   the rest of the detail drawer. */
.payment-status-card {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.payment-status-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: var(--text-base);
  line-height: 1;
}
.payment-status-body { min-width: 0; flex: 1; }
.payment-status-headline {
  font-weight: 700;
  margin: 0 0 var(--space-1);
}
.payment-status-provenance {
  font-size: var(--text-sm);
  color: var(--color-ink-50);
  margin: 0 0 var(--space-2);
}
.payment-status-card .hint { margin-bottom: var(--space-3); }
.payment-status-card .btn { margin-top: var(--space-1); }

.payment-status-card-received {
  background: var(--color-mint-soft);
  border-color: transparent;
}
.payment-status-card-received .payment-status-icon {
  background: var(--color-mint);
  color: white;
}
.payment-status-card-received .payment-status-headline { color: var(--color-success-text); }

.payment-status-card-reported {
  background: var(--color-indigo-soft);
  border-color: transparent;
}
.payment-status-card-reported .payment-status-icon {
  background: var(--color-indigo);
  color: white;
}

.payment-status-card-pending {
  background: var(--color-surface-alt);
}
.payment-status-card-pending .payment-status-icon {
  background: var(--color-ink-10);
  color: var(--color-ink-50);
}

/* Receipt actions — shown only once payment_status is 'received', and
   only for orders (not service_requests, which have no order_items or
   receipt page). "View receipt" opens the printable page in a new tab;
   "Resend receipt" is a distinct, ghost-styled action so it never reads
   as the primary/default choice next to View receipt. */
.payment-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.payment-receipt-actions .btn { margin-top: 0; }

/* Persistent receipt-send status — replaces a bare grey hint line that
   stayed blank both before any send was attempted and after one quietly
   failed, indistinguishable from each other. Each state gets its own
   color so a seller scanning a list of orders can tell at a glance,
   without reading the copy, whether a receipt genuinely went out. */
.payment-receipt-status {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0 0 var(--space-2);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  width: fit-content;
}
.payment-receipt-status-sent {
  color: var(--color-success-text);
  background: var(--color-mint-soft);
}
.payment-receipt-status-pending {
  color: var(--color-indigo);
  background: var(--color-indigo-soft);
}
.payment-receipt-status-none {
  color: var(--color-ink-50);
  background: var(--color-surface-alt);
  font-weight: 500;
}

/* ---------- Completion payment gate (Orders/Requests) ----------
   A focused, premium interstitial — never a plain confirm() alert —
   for the one moment a real business decision has to be made
   explicitly: does this completed order/request have a real payment
   attached to it, or not. */
.completion-payment-gate-drawer .drawer-body {
  padding: var(--space-5);
}
.completion-gate-summary {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-indigo-soft);
  margin-bottom: var(--space-4);
}
.completion-gate-icon {
  flex-shrink: 0;
  font-size: var(--text-xl);
  line-height: 1;
}
.completion-gate-amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0 0 var(--space-1);
  color: var(--color-ink);
}
.completion-gate-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.completion-gate-actions .btn {
  width: 100%;
  /* The base .btn is white-space: nowrap (correct for its usual
     short labels), but these two action labels are deliberately
     longer/more explicit sentences ("Confirm payment received, then
     complete") so the choice being made here is never ambiguous —
     wrap them onto a second line rather than clipping or overflowing. */
  white-space: normal;
  height: auto;
  min-height: var(--touch-target-min);
  line-height: 1.3;
  text-align: center;
}
@media (max-width: 420px) {
  /* Narrow phones only — the amount ("$2,000.00 CAD") otherwise
     wraps the currency code onto its own line, which reads as
     unfinished rather than premium. */
  .completion-gate-amount { font-size: var(--text-xl); }
}

/* Historical payment-review backlog: Home page callout + bulk drawer */
/* Install callout — deliberately the most eye-catching card on Home:
   this is the one conversion moment for getting a seller onto the
   installed app, so it earns a stronger treatment than the flat
   mint/indigo-soft referral cards around it — a real gradient, an
   elevated icon tile carrying the actual OlaOrder brand mark (not a
   generic phone emoji), and a soft glow border instead of none. */
.home-install-card {
  border: 1px solid rgba(91, 95, 239, 0.18);
  background: linear-gradient(135deg, var(--color-indigo-soft) 0%, #E4E3FC 100%);
  box-shadow: 0 4px 18px rgba(91, 95, 239, 0.14);
}
.home-install-card .home-referral-text strong { color: var(--color-indigo); }
.home-install-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 2px 8px rgba(91, 95, 239, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-install-icon img {
  width: 28px;
  height: 28px;
  display: block;
}
.home-install-card-body {
  margin-top: var(--space-3);
}
.home-payment-review-card {
  border-color: transparent;
  background: var(--color-warn-soft);
}
.home-payment-review-card .home-referral-text strong { color: var(--color-warn-text); }
.home-payment-review-card-body {
  margin-top: var(--space-3);
}

/* "Needs your attention" — dashboard Home action-required card.
   Reuses .card/.dash-section-heading/.risk-badge/.chevron, so this
   block only defines the layout that's genuinely new. Two visually
   distinct zones: compact count "chips" for pending decisions
   (orders/requests/inquiries awaiting a first action), and a real,
   named list for fulfillment deadlines already in progress — kept
   scrollable/capped rather than letting either section grow without
   bound, so this stays calm and scannable at any volume. */
.home-action-required-card {
  margin-bottom: var(--space-4);
  border-color: var(--color-indigo-soft);
}
.home-action-required-head {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-3);
}
.home-action-required-heading {
  margin: 0;
}

/* The always-visible "Active fulfillments" card (.home-fulfillments-card/
   .home-fulfillments-card-head) has been retired in favor of the small
   List/Calendar launcher buttons beside "Needs your attention" (see
   .home-fulfillments-launcher below) plus the shared drawer — its
   toggle and list styling live on below and are reused inside that
   drawer. */

/* The one-item follow-up nudge, deliberately visually distinct from
   the counters below it: it names a real customer rather than
   counting a bucket, so it gets its own warm (not alarming) accent —
   reusing --color-warn-soft the way this app already uses it for
   "worth a look, not urgent" states — and sits above the counters as
   the single highest-priority line in this card. */
.home-followup-spotlight {
  display: flex;
  /* flex-start, not center: a long customer name or inquiry message
     wraps to multiple lines, and center-aligning would visually
     squeeze the "Follow up" CTA into the middle of that wrapped text
     instead of keeping it clear at the top-right (confirmed via a
     real long-name/long-message render, not just the short "John"
     case). */
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  border: 1px solid var(--color-warn-soft);
  background: var(--color-warn-soft);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.home-followup-spotlight:hover {
  border-color: var(--color-warn);
  text-decoration: none;
}
.home-followup-spotlight-text {
  flex: 1;
  min-width: 0;
  font-size: var(--text-sm);
  color: var(--color-warn-text);
}
.home-followup-spotlight-text strong {
  color: var(--color-ink);
}
.home-followup-spotlight-cta {
  flex-shrink: 0;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-warn-text);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .home-followup-spotlight {
    flex-direction: column;
    align-items: flex-start;
  }
}

.home-action-required-counters {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.home-action-counter {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.home-action-counter:hover {
  border-color: var(--color-indigo);
  background: var(--color-surface-alt);
  text-decoration: none;
}
.home-action-counter-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
}
.home-action-counter-text {
  flex: 1;
  min-width: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-30-text);
}
.home-action-counter-text strong {
  color: var(--color-ink);
  font-size: 1rem;
}

/* Real, honest flag naming the actual urgent mix (e.g. "2 overdue ·
   1 due today") right next to a heading — deliberately NOT
   uppercase/letter-spaced, so it reads as an actual number to scan,
   not a label; danger-red only appears when there is genuinely
   something overdue in the mix. Shared by "Needs your attention"'s
   old subheading usage and the "Active fulfillments" card heading
   (see dashboard-home.js). */
.home-action-required-subheading-flag {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-danger-text);
  margin-left: var(--space-2);
}
/* Quiet, secondary visual weight — deliberately not one of the bold
   .home-action-required-counters (those mean "the seller must act";
   this means "waiting on the customer", a status note, not a to-do). */
.home-action-required-waiting-note {
  margin: var(--space-3) 0 0;
  font-size: var(--text-xs);
  color: var(--color-ink-30-text);
}
.home-action-required-waiting-note a { font-weight: 600; }

/* Restored compact fulfillment preview inside "Needs your attention"
   itself — its original visual. Sits below the counters/waiting note,
   capped to FULFILLMENT_PREVIEW_LIMIT rows (see dashboard-home.js), so
   this card never grows unbounded even with a busy queue; "View all
   active fulfillments" opens the shared drawer for the full list. */
.home-fulfillment-preview {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.home-fulfillment-preview-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.home-fulfillment-preview-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}
.home-fulfillment-preview-row-name {
  font-weight: 600;
  color: var(--color-ink);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-fulfillment-preview-row-date {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  white-space: nowrap;
}
.home-fulfillment-preview-row-date svg { opacity: 0.7; flex-shrink: 0; }
.home-fulfillment-preview-row .risk-badge {
  flex-shrink: 0;
}
.home-fulfillment-preview-viewall {
  display: block;
  width: 100%;
  margin-top: var(--space-3);
  padding: var(--space-2);
  background: none;
  border: none;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-indigo);
  text-align: center;
  cursor: pointer;
}
.home-fulfillment-preview-viewall:hover {
  text-decoration: underline;
}
@media (max-width: 480px) {
  .home-fulfillment-preview-row {
    flex-wrap: wrap;
  }
  .home-fulfillment-preview-row-name {
    flex-basis: 100%;
    white-space: normal;
  }
}

/* "List"/"Calendar" launcher pair beside "Needs your attention" —
   collapsed/inert by default: clicking either opens the shared
   fulfillments drawer (see openFulfillmentsDrawer in
   dashboard-home.js), rather than rendering any content inline here.
   Reuses .fulfillments-view-toggle's existing pill styling so it
   reads as the same control family as the drawer's own internal
   toggle. */
.home-fulfillments-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.home-fulfillments-launcher-label {
  font-weight: 600;
  color: var(--color-ink-50);
}
.payment-review-drawer .drawer-body { padding: var(--space-5); }
.payment-review-intro { margin-bottom: var(--space-4); }
.payment-review-list { display: flex; flex-direction: column; gap: var(--space-3); }
.payment-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.payment-review-row-info { min-width: 0; }
.payment-review-row-name { font-weight: 600; margin: 0 0 2px; }
.payment-review-row-amount { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--color-ink); }
.payment-review-row-actions { display: flex; flex-direction: column; gap: var(--space-2); flex-shrink: 0; }
.payment-review-row-actions .btn { white-space: nowrap; }
.payment-review-done { text-align: center; padding: var(--space-5) 0; }
.payment-review-footer { display: flex; justify-content: flex-end; }

@media (max-width: 640px) {
  .payment-review-row { flex-direction: column; align-items: stretch; }
  .payment-review-row-actions { flex-direction: column; width: 100%; margin-top: var(--space-2); }
  .payment-review-row-actions .btn { width: 100%; white-space: normal; }
}

/* ==============================================================
   Fulfillment timeline — Expected By Date & progress
   Deliberately restrained per the brief's own explicit UX guidance:
   no celebratory badges, no false-precision "% complete" framing —
   the bar represents time elapsed in the expected window, and the
   state label always says so in plain language.
   ============================================================== */
.fulfillment-expected-date {
  margin: 0 0 var(--space-2);
  font-size: 14px;
}
.fulfillment-expected-date strong {
  margin-right: 4px;
}
.fulfillment-expected-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.fulfillment-expected-date-row .fulfillment-expected-date {
  margin: 0;
}
.fulfillment-add-to-calendar-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.fulfillment-bar-track {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  overflow: hidden;
  margin: var(--space-2) 0 4px;
}
.fulfillment-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}
.fulfillment-bar-active { background: var(--color-indigo); }
.fulfillment-bar-overdue { background: var(--color-danger); }
.fulfillment-bar-late { background: var(--color-warn); }
.fulfillment-bar-done { background: var(--color-success); }
.fulfillment-state-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fulfillment-state-icon {
  display: flex;
  flex-shrink: 0;
}
.fulfillment-state-icon-active { color: var(--color-indigo); }
.fulfillment-state-icon-due-today { color: var(--color-warn-text); }
.fulfillment-state-icon-overdue { color: var(--color-danger-text); }
.fulfillment-state-icon-done { color: var(--color-success-text); }
.fulfillment-state-icon-late { color: var(--color-warn-text); }
.fulfillment-state-label {
  margin: 0;
  font-size: 13px;
  color: var(--color-ink-50);
}
.fulfillment-state-label-due-today { color: var(--color-warn-text); }
.fulfillment-state-label-late { color: var(--color-warn-text); }
.fulfillment-state-label-done { color: var(--color-success-text); }
.fulfillment-state-overdue {
  color: var(--color-danger-text);
  font-weight: 600;
}
.fulfillment-date-edit {
  margin-top: var(--space-3);
}

/* Order/request LIST-ROW "at risk" badge — genuinely the same
   overdue/due_today kinds and same color tokens as the per-order
   fulfillment timeline above, surfaced one level up so a seller can
   spot a risk without opening every row. Deliberately its own small
   pill (not reusing .badge-*, which is reserved for the order's
   workflow status) so the two signal families stay visually
   distinct — confirmed earlier this session that pairing them (e.g.
   an amber "Accepted" status badge next to this) never clashes,
   since they answer two different questions (what stage is this in?
   vs. is it running late?). */
.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.4;
}
.risk-badge svg { flex-shrink: 0; }
.risk-badge-due-today {
  background: var(--color-warn-soft);
  color: var(--color-warn-text);
}
.risk-badge-overdue {
  background: var(--color-danger-soft);
  color: var(--color-danger-text);
}
/* On-track fulfillment state — calm green, deliberately quiet rather
   than celebratory (matches fulfillment-ui.js's own restraint: no
   false-precision "% complete" language, no badges/confetti). "N days
   remaining" is good news, but it's routine good news, not an
   achievement — the badge should read as a status, not a reward. */
.risk-badge-on-track {
  background: var(--color-success-soft);
  color: var(--color-success-text);
}
/* Payment-reconciliation badge — genuinely a different signal from
   the two above (a buyer's own payment claim, not a time-based risk),
   so it deliberately uses indigo, the exact same color the per-order
   Payment section already uses for its own "reported" state
   (.payment-status-card-reported) — reusing that established
   semantic rather than reaching for warn/danger, which would wrongly
   imply something is wrong when a buyer reporting payment is usually
   good news awaiting a two-second confirmation. */
.risk-badge-payment {
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
}

/* Proactive risk banner at the top of the Orders/Requests list —
   same .alert shape and animation every other alert in this app
   already uses, with its own color treatment (warm, not danger-red)
   since "some orders need attention soon" is a heads-up, not a
   failure state. Only ever rendered when riskyOrders/riskyRequests
   is genuinely non-empty (see loadOrders/loadRequests) — never a
   permanent fixture, matching this app's restraint elsewhere against
   showing an alert with nothing to alert about. */
.alert-risk {
  background: var(--color-warn-soft);
  color: var(--color-warn-text);
  margin-bottom: var(--space-4);
}
.alert-risk-icon {
  flex-shrink: 0;
  display: flex;
  margin-top: 2px;
}
.alert-risk .link-button {
  color: var(--color-warn-text);
  font-weight: 700;
  text-decoration: underline;
}
/* Stacks below .alert-risk when both appear together (two
   independent, unrelated signals — see the derivation comments in
   dashboard-orders.js/dashboard-requests.js) — same shape, distinct
   indigo color matching .risk-badge-payment above. */
.alert-payment {
  background: var(--color-indigo-soft);
  color: var(--color-indigo-hover);
  margin-bottom: var(--space-4);
}
.alert-payment-icon {
  flex-shrink: 0;
  display: flex;
  margin-top: 2px;
}
.alert-payment .link-button {
  color: var(--color-indigo-hover);
  font-weight: 700;
  text-decoration: underline;
}
.fulfillment-date-edit-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-top: 4px;
}
.fulfillment-date-edit-row input[type="date"] {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--color-surface);
  color: var(--color-ink);
}

/* Optional reason field — deliberately styled lighter/smaller than
   the date input above it (own row, not inline in
   .fulfillment-date-edit-row) since it's an optional add-on to the
   real action (setting the date), never a required field the seller
   must fill before Save works. */
.fulfillment-date-reason-input {
  width: 100%;
  margin-top: var(--space-2);
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  background: var(--color-surface);
  color: var(--color-ink);
}

/* Subtle, contextual confirmation of exactly what the buyer will be
   told, right where the seller sets the date — deliberately quiet
   (small, muted, no card/border of its own) so it reads as a helpful
   aside rather than another prominent element competing with the
   date input and Save button above it. */
.fulfillment-buyer-note {
  margin-top: var(--space-2);
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-ink-30-text);
}

.fulfillment-buyer-note-icon {
  display: inline-block;
}

.fulfillment-history {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.fulfillment-history-heading {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-ink-30-text);
}
.fulfillment-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.fulfillment-history-item {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.5;
}
.fulfillment-history-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-ink-30-text);
}
.fulfillment-history-label {
  color: var(--color-ink);
}
.fulfillment-history-reason {
  font-size: 12px;
  color: var(--color-ink-30-text);
  font-style: italic;
}

@media (max-width: 480px) {
  .fulfillment-date-edit-row {
    flex-wrap: wrap;
  }
  .fulfillment-date-edit-row input[type="date"] {
    flex-basis: 100%;
  }
}

/* ---------- Active fulfillments page (dashboard-fulfillments.js) ----------
   Dedicated, unified list spanning both orders and requests, reached
   only via the Home "Needs your attention" card's "View all" link.
   Reuses .dash-card-row's own flex/spacing base — this page never
   reinvents row layout, only adds what's specific to a fulfillment
   row (the kind/name/date stack on the left, the risk badge on the
   right). Same overflow discipline as every other action-row in this
   app: min-width:0 on the flexible side, wrap on mobile, so a long
   customer name never crushes the badge or overflows the card. */
.fulfillments-summary-line {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-ink-50);
}
.fulfillments-summary-item {
  font-weight: 600;
}
.fulfillments-summary-overdue { color: var(--color-danger-text); }
.fulfillments-summary-due-today { color: var(--color-warn-text); }
.fulfillments-summary-on-track { color: var(--color-success-text); }

/* Wraps .fulfillments-list only to host the bottom edge-fade below —
   same established pattern as .dash-mobile-nav-fade-wrap's horizontal
   fade for the mobile tab bar (see its comment further down): a
   scrollable region with a hard-cut edge gives no visual hint that
   there's more below it, so a short gradient fade reads as "content
   continues" without a visible scrollbar eating into the list. */
.fulfillments-list-wrap {
  position: relative;
}
.fulfillments-list-wrap-scrollable::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--color-surface) 85%);
  pointer-events: none;
}
.fulfillments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  /* Caps the list's own height once it's genuinely long (roughly 5
     rows) rather than letting a seller with a dozen active
     fulfillments push the rest of Home far down the page — the list
     scrolls internally instead. Same defensive-backstop pattern this
     card used before the full list always rendered here (was capped
     to 4 preview rows + a "view all" link; now the full list renders
     but this keeps Home's own height bounded and predictable either
     way). Inside the fulfillments drawer, the drawer body itself is
     already the scroll container (.drawer-body { overflow-y: auto }),
     so this cap is skipped there — a second, shorter scroll region
     nested inside the drawer's own would just cut the list off
     mid-card instead of letting it scroll to the drawer's real edge. */
  max-height: 560px;
  overflow-y: auto;
}
.fulfillments-drawer .drawer-body .fulfillments-list {
  max-height: none;
  overflow-y: visible;
}
.fulfillments-drawer .drawer-body .fulfillments-list-wrap-scrollable::after {
  display: none;
}
.fulfillments-list-row {
  text-decoration: none;
  color: inherit;
  border-left: 3px solid transparent;
  flex-wrap: wrap;
}
.fulfillments-list-row:hover {
  text-decoration: none;
}
.fulfillments-list-row-overdue { border-left-color: var(--color-danger); }
.fulfillments-list-row-due-today { border-left-color: var(--color-warn); }
.fulfillments-list-row-on-track { border-left-color: var(--color-success); }
.fulfillments-list-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 240px;
}
.fulfillments-list-row-kind {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.fulfillments-list-row-name {
  font-weight: 600;
  color: var(--color-ink);
  overflow-wrap: break-word;
}
.fulfillments-list-row-date {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--text-sm);
}
.fulfillments-list-row-date svg {
  flex-shrink: 0;
  opacity: 0.7;
}

@media (max-width: 480px) {
  .fulfillments-list-row {
    align-items: flex-start;
  }
}

/* List/Calendar toggle — segmented control in the page header,
   mirroring the same paired-button shape used elsewhere in this app
   (e.g. status-filter pills) rather than introducing a new control
   style. Sits in .dash-page-header alongside the back link and title,
   so on narrow screens it wraps onto its own line via the header's
   existing flex-wrap rather than needing bespoke mobile rules here. */
.fulfillments-view-toggle {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.fulfillments-view-toggle-btn {
  padding: 6px 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-50);
  background: var(--color-surface);
  border: none;
  cursor: pointer;
}
.fulfillments-view-toggle-btn + .fulfillments-view-toggle-btn {
  border-left: 1px solid var(--color-border);
}
.fulfillments-view-toggle-btn-active {
  background: var(--ola-theme-accent, var(--color-indigo));
  color: #fff;
}
.fulfillments-drawer .drawer-body .fulfillments-view-toggle {
  margin-bottom: var(--space-4);
}

/* ---------- Fulfillments calendar (month view) ----------
   Renders getActiveFulfillments()'s own already-ranked item list as a
   full calendar month — the data and its risk coloring are identical
   to .fulfillments-list above; only the layout differs. Embedded
   directly on dashboard Home (see dashboard-home.js), so it must
   render sensibly even with just 1-2 active items scattered across
   otherwise-empty days — sparse weeks are a normal, expected state
   here, not a special case to design around. */
.cal-month-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}
.cal-month-label-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.cal-month-label {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-ink);
  min-width: 150px;
  text-align: center;
}
.cal-month-weekday-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-2);
  margin-bottom: 6px;
}
.cal-month-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-ink-50);
}
.cal-month-weekday-initial { display: none; }
.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-2);
}
.cal-day-cell {
  min-height: 84px;
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cal-day-cell-today {
  border-color: var(--ola-theme-accent, var(--color-indigo));
  background: var(--color-indigo-soft);
}
.cal-day-cell-outside {
  background: var(--color-surface-alt);
  border-color: transparent;
}
.cal-day-cell-outside .cal-day-number {
  color: var(--color-ink-30-text);
}
.cal-day-header {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
}
.cal-day-number {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ink);
}
.cal-day-number-today {
  color: var(--ola-theme-accent, var(--color-indigo));
}
.cal-day-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cal-chip {
  display: flex;
  flex-direction: column;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
}
.cal-chip:hover {
  filter: brightness(0.97);
}
.cal-chip-name {
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-chip-subject {
  color: var(--color-ink-50);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-chip-overdue {
  background: var(--color-danger-soft);
  border-left-color: var(--color-danger);
}
.cal-chip-due-today {
  background: var(--color-warn-soft);
  border-left-color: var(--color-warn);
}
.cal-chip-on-track {
  background: var(--color-success-soft);
  border-left-color: var(--color-success);
}
.cal-day-overflow {
  align-self: flex-start;
  padding: 0;
  border: none;
  background: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--ola-theme-accent, var(--color-indigo));
  cursor: pointer;
  text-decoration: underline;
}
.cal-day-cell {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.cal-day-cell:focus-visible {
  outline: 2px solid var(--ola-theme-accent, var(--color-indigo));
  outline-offset: 2px;
}
.cal-day-dot-row {
  display: none; /* desktop has room for real chips; dots are mobile-only, see below */
}
.cal-day-detail {
  display: none; /* desktop shows everything inline in-grid; see mobile override below */
}

@media (max-width: 720px) {
  /* A 7-column grid of real chips genuinely doesn't fit a phone
     screen at month density (up to 6 rows) — each cell would be too
     narrow to show a customer name at all, and stacking 35-42 day
     rows vertically (most empty) would be a very long, mostly-blank
     scroll. Instead: keep the compact grid shape (it's still the
     fastest way to scan "which days have something due"), but each
     cell shows only a day number and a small risk-colored dot +
     count; tapping a day opens its real chip list in the detail
     panel below the grid, where phone width actually has room for
     the name + subject text a dot can't show. */
  .cal-month-grid {
    gap: 4px;
  }
  .cal-day-cell {
    min-height: 0;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px;
  }
  .cal-day-header {
    justify-content: center;
  }
  .cal-day-items {
    display: none;
  }
  .cal-day-dot-row {
    display: flex;
    align-items: center;
    gap: 3px;
  }
  .cal-day-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .cal-day-dot-overdue { background: var(--color-danger); }
  .cal-day-dot-due-today { background: var(--color-warn); }
  .cal-day-dot-on-track { background: var(--color-success); }
  .cal-day-dot-count {
    font-size: 9px;
    font-weight: 700;
    color: var(--color-ink-50);
  }
  .cal-month-weekday-full { display: none; }
  .cal-month-weekday-initial { display: inline; }

  .cal-day-detail {
    display: block;
    margin-top: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
  }
  .cal-day-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
  }
  .cal-day-detail-label {
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--color-ink);
  }
  .cal-day-detail-close {
    padding: 2px 6px;
    border: none;
    background: none;
    font-size: var(--text-sm);
    color: var(--color-ink-50);
    cursor: pointer;
  }
  .cal-day-detail-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .cal-day-detail-list .cal-chip {
    font-size: var(--text-sm);
  }
  .cal-day-detail-empty {
    margin: 0;
  }
}

/* Admin Support Mode — the unmistakable banner shown across the top
   of the seller dashboard while a platform admin is viewing it for
   support (never a normal-looking seller session). Inserted as a
   sibling of .dash-sidebar/.dash-main inside .dash-shell, so on
   desktop it's given an explicit full-width grid row rather than
   letting it fall into .dash-shell's ordinary 2-column auto-flow
   (which would otherwise shove it into .dash-main's own column and
   push .dash-main itself down into a bogus second row under the
   sidebar). Scoped to desktop only — on mobile .dash-shell already
   collapses to a single implicit-stacking column
   (grid-template-columns: 1fr), so the banner's natural DOM position
   just above #dash-main already reads correctly there with no extra
   placement rules needed. */
.admin-support-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-5);
  background: var(--color-warn-soft);
  color: var(--color-warn-text);
  border-bottom: 1px solid var(--color-warn);
  font-size: var(--text-sm);
}
.admin-support-banner-text {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  line-height: var(--leading-normal);
}
.admin-support-banner-icon {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--color-warn-text);
}
.admin-support-banner-return {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (min-width: 901px) {
  .admin-support-mode .dash-shell {
    grid-template-rows: auto 1fr;
  }
  .admin-support-mode .admin-support-banner {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .admin-support-mode .dash-sidebar {
    grid-row: 2;
  }
  .admin-support-mode .dash-main {
    grid-row: 2;
  }
}

@media (max-width: 900px) {
  .admin-support-banner {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
  }
  .admin-support-banner-return {
    width: 100%;
  }
}

/* ---------- Storefront views card (Home → Shop Analytics) ----------
   A compact total + seven-day bar trend. Reads as part of the same
   system as the stat cards beside it: card surface, ink numerals,
   indigo accent for today. Bars sit in fixed-height tracks so a quiet
   day keeps its column (and its label) instead of collapsing the row. */
.storefront-views-card {
  padding: var(--space-5);
}
.storefront-views-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}
.storefront-views-title {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
}
.storefront-views-toggle { flex: 0 0 auto; }
.storefront-views-toggle .fulfillments-view-toggle-btn { padding: 4px 12px; font-size: var(--text-xs); }
.storefront-views-card { transition: opacity var(--duration-fast, 150ms) ease; }
.storefront-views-card-loading { opacity: 0.55; pointer-events: none; }
.storefront-views-head { align-items: center; }
.storefront-views-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
}
.storefront-views-metrics-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.storefront-views-metric {
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  min-width: 0;
}
.storefront-views-metric dt {
  font-size: var(--text-xs);
  color: var(--color-ink-50);
  line-height: 1.3;
}
.storefront-views-metric dd {
  margin: 2px 0 0;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.storefront-views-note { margin: var(--space-2) 0 0; }
.storefront-views-compact { margin-top: var(--space-4); }
.storefront-views-compact-bars {
  display: flex;
  align-items: flex-end;
  height: 72px;
  gap: 2px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  padding: 0 2px;
}
.storefront-views-compact-bars-weekly { gap: 6px; padding: 0 6px; }
.storefront-views-compact-col {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.storefront-views-compact-bar {
  width: 100%;
  background: var(--color-ink-30);
  border-radius: 2px 2px 0 0;
}
.storefront-views-compact-col-today .storefront-views-compact-bar { background: var(--color-indigo); }
.storefront-views-compact-axis {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-ink-30-text);
}
.storefront-views-total-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: var(--space-3);
  row-gap: var(--space-1);
  margin-top: var(--space-3);
}
.storefront-views-total {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}
.storefront-views-trend {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink-50);
}
.storefront-views-trend-up { color: var(--color-success-text); }
.storefront-views-trend-down { color: var(--color-danger-text); }
.storefront-views-trend-note { font-weight: 400; color: var(--color-ink-50); }
.storefront-views-sub { margin: var(--space-1) 0 0; }
.storefront-views-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.storefront-views-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
}
.storefront-views-col-value {
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}
.storefront-views-col-value-zero { color: var(--color-ink-30-text); font-weight: 400; }
.storefront-views-bar-track {
  width: 100%;
  max-width: 28px;
  height: 64px;
  display: flex;
  align-items: flex-end;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.storefront-views-bar {
  width: 100%;
  background: var(--color-ink-30);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.storefront-views-col-today .storefront-views-bar { background: var(--color-indigo); }
.storefront-views-col-label {
  font-size: var(--text-xs);
  color: var(--color-ink-30-text);
  line-height: 1;
}
.storefront-views-col-today .storefront-views-col-label { color: var(--color-indigo); font-weight: 700; }

/* ---------- Storefront layout picker (Branding) ---------- */
.storefront-layout-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
@media (max-width: 480px) {
  .storefront-layout-picker { grid-template-columns: 1fr; }
}
.storefront-layout-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  padding: var(--space-4);
  text-align: left;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-ink);
  transition: border-color var(--duration-fast, 150ms) ease, box-shadow var(--duration-fast, 150ms) ease;
}
.storefront-layout-option:hover:not(:disabled) { border-color: var(--color-ink-30); }
.storefront-layout-option:disabled { opacity: 0.6; cursor: not-allowed; }
.storefront-layout-option-selected {
  border-color: var(--ola-theme-accent, var(--color-indigo));
  box-shadow: 0 0 0 1px var(--ola-theme-accent, var(--color-indigo));
}
.storefront-layout-label { font-weight: 700; font-size: var(--text-base); }
.storefront-layout-desc { font-size: var(--text-sm); color: var(--color-ink-50); line-height: 1.4; }
.storefront-layout-preview {
  display: grid;
  width: 100%;
  height: 56px;
  gap: 4px;
  margin-bottom: var(--space-2);
}
.storefront-layout-preview i {
  display: block;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}
.storefront-layout-preview-grid { grid-template-columns: repeat(4, 1fr); }
.storefront-layout-preview-list { grid-template-rows: repeat(3, 1fr); }
.storefront-layout-status { min-height: 1.2em; margin: var(--space-3) 0 0; }

/* ---------- Offering photo focus editor ---------- */
.focal-editor-body {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin: var(--space-3) 0;
}
.focal-stage {
  position: relative;
  flex: 0 1 auto;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  line-height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
}
.focal-stage:focus-visible { outline: 2px solid var(--color-indigo); outline-offset: 2px; }
.focal-stage img {
  /* the box hugs the photo exactly, so click positions map 1:1 to it */
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 320px;
  -webkit-user-drag: none;
  pointer-events: none;
}
.focal-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(79, 70, 229, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.focal-preview { flex: 0 0 150px; display: flex; flex-direction: column; gap: var(--space-1); }
.focal-preview-frame {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}
.focal-preview-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
@media (max-width: 480px) {
  .focal-editor-body { flex-direction: column; }
  .focal-preview { flex-basis: auto; width: 100%; max-width: 240px; }
}

/* Complimentary (no-subscription) access card on Billing / Subscription */
.billing-complimentary-card { border-color: var(--accent, #6d5efc); }
.billing-complimentary-title { margin: 0.5rem 0 0.25rem; font-size: 1.15rem; font-weight: 700; }

/* Branding page: breathing room between stacked cards */
#branding-layout-section ~ .card { margin-top: var(--space-5); }

/* Free-plan notice (Home + Settings): icon, title, one calm sentence, one action */
.plan-notice {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  margin: var(--space-5) 0;
  background: var(--color-surface);
  border: 1px solid var(--color-indigo-soft);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 1px 2px rgba(20, 24, 60, 0.04), 0 8px 24px -12px rgba(20, 24, 60, 0.12);
}
.plan-notice-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
}
.plan-notice-warn { border-color: var(--color-warn-soft); background: linear-gradient(180deg, var(--color-warn-soft) 0%, var(--color-surface) 70%); }
.plan-notice-warn .plan-notice-icon { background: var(--color-warn-soft); color: var(--color-warn-text); }
.plan-notice-body { flex: 1 1 auto; min-width: 0; }
.plan-notice-eyebrow {
  margin: 0 0 2px;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-50);
}
.plan-notice-title { margin: 0 0 4px; font-size: var(--text-lg, 1.125rem); font-weight: 700; line-height: 1.25; }
.plan-notice-text { margin: 0; font-size: var(--text-sm); color: var(--color-ink-70); line-height: 1.5; max-width: 62ch; }
.plan-notice-usage { margin: 6px 0 0; font-size: var(--text-xs, 0.75rem); color: var(--color-ink-50); }
.plan-notice-cta { flex: none; white-space: nowrap; }
@media (max-width: 640px) {
  .plan-notice { flex-wrap: wrap; align-items: flex-start; padding: var(--space-4); gap: var(--space-3); }
  .plan-notice-body { flex-basis: calc(100% - 44px - var(--space-3)); }
  .plan-notice-cta { width: 100%; justify-content: center; text-align: center; }
}

/* Plan notice: trial progress meter */
.plan-notice-progress { height: 6px; margin-top: 10px; border-radius: 999px; background: var(--color-indigo-soft); overflow: hidden; max-width: 320px; }
.plan-notice-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--color-indigo); }
.plan-notice-warn .plan-notice-progress { background: var(--color-warn-soft); }
.plan-notice-warn .plan-notice-progress > span { background: var(--color-warn); }

/* Quiet variant: plans with nothing to decide (Pro / Business / complimentary) */
.plan-notice-compact { padding: var(--space-3) var(--space-4); gap: var(--space-3); box-shadow: none; background: var(--color-surface-alt); border-color: transparent; }
.plan-notice-compact .plan-notice-icon { width: 32px; height: 32px; border-radius: 10px; }
.plan-notice-compact .plan-notice-icon svg { width: 16px; height: 16px; }
.plan-notice-compact .plan-notice-eyebrow { display: none; }
.plan-notice-compact .plan-notice-title { font-size: var(--text-base); margin: 0; }
.plan-notice-compact .plan-notice-text { font-size: var(--text-sm); color: var(--color-ink-50); }
@media (max-width: 640px) {
  .plan-notice-compact { flex-wrap: nowrap; align-items: center; }
  .plan-notice-compact .plan-notice-body { flex-basis: auto; }
  .plan-notice-compact .plan-notice-text { display: none; }
  .plan-notice-compact .plan-notice-cta { width: auto; flex: none; }
}

/* Customers locked teaser: stats block */
.customers-lock-empty-title { margin: 0 0 4px; font-weight: 700; font-size: var(--text-base); }
.customers-lock-spend { margin: 2px 0 0; font-size: var(--text-sm); font-weight: 600; color: var(--color-indigo-hover); }
#customers-lock-stats { margin: var(--space-3) auto var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); width: 100%; max-width: 380px; }
#customers-lock-stats .announce-confirm-number { margin: 0; font-size: 2.25rem; font-weight: 700; line-height: 1.1; color: var(--color-indigo); }
#customers-lock-stats .hint { margin: 4px 0 0; font-size: var(--text-sm); }
#customers-lock-stats .customers-lock-spend { margin-top: var(--space-2); }

/* Settings: optional Location card */
.settings-location-intro { margin: 0 0 var(--space-4); max-width: 60ch; }

/* Profile strength (Storefront settings) */
.profile-strength { margin-bottom: var(--space-5); }
.profile-strength-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.profile-strength-eyebrow { margin: 0 0 2px; font-size: var(--text-xs, 0.75rem); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-ink-50); }
.profile-strength-title { margin: 0; font-size: var(--text-lg, 1.125rem); font-weight: 700; }
.profile-strength-score { margin: 0; font-size: 2rem; font-weight: 700; line-height: 1; color: var(--color-indigo); font-variant-numeric: tabular-nums; }
.profile-strength-score span { font-size: 1rem; margin-left: 1px; }
.profile-strength-bar { height: 8px; margin: var(--space-3) 0 var(--space-4); border-radius: 999px; background: var(--color-indigo-soft); overflow: hidden; }
.profile-strength-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--color-indigo); transition: width var(--duration-slow, 400ms) var(--ease-out-premium, ease-out); }
.profile-strength-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.profile-strength-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-indigo-soft); border-radius: var(--radius-md); color: inherit; text-decoration: none; background: var(--color-surface); }
.profile-strength-item:hover { border-color: var(--color-indigo); }
.profile-strength-item-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--color-indigo); }
.profile-strength-item-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.profile-strength-item-text strong { font-size: var(--text-sm); }
.profile-strength-item-text span { font-size: var(--text-xs, 0.75rem); color: var(--color-ink-50); }
.profile-strength-item-go { flex: none; color: var(--color-indigo); font-weight: 700; }
.profile-strength-more { margin: var(--space-2) 0 0; }
.profile-strength-done { margin: 0; }
@media (prefers-reduced-motion: reduce) { .profile-strength-bar > span { transition: none; } }

/* Home: "List your business on FindOja" note */
.home-oja-card { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.home-oja-card .home-referral-header { align-items: flex-start; }
.home-oja-card .home-oja-mark { background: transparent; width: auto; height: auto; }
.home-oja-card .home-oja-mark img { display: block; width: 36px; height: 36px; }
.home-oja-title { margin: 0; font-size: var(--text-base); font-weight: 700; color: var(--color-success-text); }
.home-oja-hint { margin-top: var(--space-2); }
.home-oja-checklist { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-sm); }
.home-oja-check.is-done { color: var(--color-ink-30-text); }
.home-oja-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.home-oja-card .home-referral-text .hint { margin: 0; }
.home-oja-card .home-oja-hint { margin-top: var(--space-2); }
.home-oja-card .home-oja-hint strong { color: var(--color-ink-70); font-size: inherit; }
#settings-findoja-entry h4 { text-transform: none; letter-spacing: normal; }

/* ==============================================================
   Help Centre + Support chat (v1.24.0)
   Uses only existing tokens. Shared by the dashboard and the
   platform admin inbox.
   ============================================================== */
.help-page { max-width: 760px; }
.help-section-heading { margin: var(--space-8) 0 var(--space-3); }

.help-search { position: relative; margin: var(--space-5) 0 var(--space-5); }
.help-search-icon { position: absolute; left: var(--space-4); top: 50%; transform: translateY(-50%); color: var(--color-ink-30-text); display: inline-flex; pointer-events: none; }
.help-search input {
  width: 100%; min-height: 48px; padding: 0 var(--space-4) 0 calc(var(--space-4) * 2 + 14px);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-surface); color: var(--color-ink); font: inherit; font-size: var(--text-base);
}
.help-search input:focus { outline: 2px solid var(--color-indigo); outline-offset: 1px; border-color: var(--color-indigo); }

.help-support-card { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5); background: var(--color-indigo-soft); border-color: transparent; flex-wrap: wrap; }
.help-support-icon { width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--color-indigo); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.help-support-text { flex: 1 1 200px; min-width: 0; }
.help-support-text h2 { margin: 0; font-size: var(--text-lg); }
.help-support-text p { margin: 2px 0 0; }
.help-support-cta { display: inline-flex; align-items: center; gap: var(--space-2); }
.help-availability { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-size: var(--text-sm); color: var(--color-ink-70); }
.help-availability:empty { display: none; }
.help-availability-sub { flex-basis: 100%; color: var(--color-ink-50); }
.support-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-ink-30); display: inline-block; }
.support-dot.is-on { background: var(--color-success); }

.help-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.help-category { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.help-category:hover, .help-category:focus-visible { border-color: var(--color-indigo); box-shadow: var(--shadow-sm); }
.help-category-icon { width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--color-indigo-soft); color: var(--color-indigo); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.help-category-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.help-category-text .hint { font-size: var(--text-sm); }

.help-article-list { list-style: none; margin: 0; padding: 0; }
.help-article-list li + li { border-top: 1px solid var(--color-border); }
.help-article-link { display: flex; flex-direction: column; gap: 2px; padding: var(--space-4); text-decoration: none; color: inherit; }
.help-article-link:hover, .help-article-link:focus-visible { background: var(--color-surface-alt); }
.help-article-title { font-weight: 600; color: var(--color-ink); }
.help-article-summary { font-size: var(--text-sm); color: var(--color-ink-50); }
.help-results-count { margin: 0 0 var(--space-2); }
.help-still-stuck { margin: var(--space-5) 0 0; color: var(--color-ink-70); }
.help-no-results { margin-top: var(--space-4); }

.help-article { padding: var(--space-6); margin-top: var(--space-3); }
.help-article h1 { margin: 0 0 var(--space-2); font-size: var(--text-2xl); }
.help-article-lede { margin: 0 0 var(--space-5); font-size: var(--text-base); }
.help-article-body p { margin: 0 0 var(--space-4); line-height: 1.6; color: var(--color-ink-90); }
.help-steps { margin: 0 0 var(--space-4); padding-left: var(--space-6); line-height: 1.6; }
.help-steps li { margin-bottom: var(--space-2); }
.help-note { padding: var(--space-3) var(--space-4); background: var(--color-mint-soft); border-radius: var(--radius-md); }

/* Conversation list */
.support-list-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.support-conv-list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.support-conv-list li + li { border-top: 1px solid var(--color-border); }
.support-conv { display: flex; gap: var(--space-4); justify-content: space-between; align-items: flex-start; padding: var(--space-4); text-decoration: none; color: inherit; }
.support-conv:hover, .support-conv:focus-visible { background: var(--color-surface-alt); }
.support-conv.is-unread .support-conv-preview { color: var(--color-ink); font-weight: 600; }
.support-conv-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.support-conv-top { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.support-conv-preview { color: var(--color-ink-50); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-conv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; font-size: var(--text-sm); }
.support-empty-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-top: var(--space-4); }

.support-unread { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-full); background: var(--color-indigo); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.support-unread[hidden] { display: none; }
.dash-support .support-unread { margin-left: auto; }

.support-status { display: inline-block; padding: 2px 8px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; background: var(--color-surface-alt); color: var(--color-ink-70); }
.support-status-open { background: var(--color-indigo-soft); color: var(--color-indigo); }
.support-status-waiting_for_support { background: var(--color-warn-soft); color: var(--color-warn-text); }
.support-status-waiting_for_customer { background: var(--color-mint-soft); color: var(--color-success-text); }
.support-status-resolved { background: var(--color-surface-alt); color: var(--color-ink-50); }

/* Thread */
.support-thread-card { padding: 0; overflow: hidden; }
.support-thread { display: flex; flex-direction: column; height: min(70vh, 640px); min-height: 380px; position: relative; background: var(--color-surface); }
.support-thread-header { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); }
.support-thread-title { flex: 1; min-width: 0; }
.support-thread-title h2 { margin: 0; font-size: var(--text-base); }
.support-thread-title p { margin: 0; font-size: var(--text-sm); }
.support-thread-actions { display: flex; align-items: center; gap: var(--space-2); flex: none; flex-wrap: wrap; justify-content: flex-end; }
.support-back { display: inline-flex; padding: 6px; border-radius: var(--radius-full); color: var(--color-ink-70); }
.support-thread-notice { padding: var(--space-2) var(--space-4); background: var(--color-warn-soft); color: var(--color-warn-text); font-size: var(--text-sm); text-align: center; }
.support-thread-scroll { flex: 1; overflow-y: auto; padding: var(--space-4); overscroll-behavior: contain; }
.support-thread-log { display: flex; flex-direction: column; gap: var(--space-3); }
.support-day { text-align: center; margin: var(--space-2) 0; font-size: 12px; color: var(--color-ink-50); }
.support-day span { background: var(--color-surface-alt); padding: 3px 10px; border-radius: var(--radius-full); }
.support-earlier, .support-link { background: none; border: 0; padding: 0; color: var(--color-indigo); font: inherit; cursor: pointer; text-decoration: underline; }
.support-earlier { align-self: center; font-size: var(--text-sm); }
.support-msg { display: flex; flex-direction: column; max-width: 82%; gap: 2px; }
.support-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.support-msg.is-theirs { align-self: flex-start; align-items: flex-start; }
.support-who { font-size: 12px; color: var(--color-ink-50); font-weight: 600; }
.support-bubble { padding: 10px 14px; border-radius: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; background: var(--color-surface-alt); color: var(--color-ink); }
.support-msg.is-mine .support-bubble { background: var(--color-indigo); color: #fff; border-bottom-right-radius: 4px; }
.support-msg.is-theirs .support-bubble { border-bottom-left-radius: 4px; }
.support-msg.is-pending .support-bubble { opacity: .65; }
.support-msg.is-failed .support-bubble { background: var(--color-danger-soft); color: var(--color-danger-text); }
.support-meta { font-size: 11px; color: var(--color-ink-50); }
.support-meta-error { color: var(--color-danger-text); }
.support-empty-thread, .support-load-error { text-align: center; margin: var(--space-6) 0; }
.support-new-below { position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; border: 0; border-radius: var(--radius-full); padding: 6px 14px; background: var(--color-ink); color: #fff; font: inherit; font-size: var(--text-sm); box-shadow: var(--shadow-md); cursor: pointer; z-index: 2; }
.support-new-below[hidden] { display: none; }
.support-resolved-banner { padding: var(--space-3) var(--space-4); background: var(--color-surface-alt); border-top: 1px solid var(--color-border); text-align: center; font-size: var(--text-sm); color: var(--color-ink-70); }
.support-resolved-banner[hidden] { display: none; }
.support-composer { border-top: 1px solid var(--color-border); padding: var(--space-3) var(--space-4); background: var(--color-surface); }
.support-composer-error { color: var(--color-danger-text); font-size: var(--text-sm); margin-bottom: var(--space-2); }
.support-composer-error:empty, .support-composer-meta:empty { display: none; }
.support-composer-row { display: flex; gap: var(--space-2); align-items: flex-end; }
.support-composer-input { flex: 1; min-width: 0; resize: none; max-height: 140px; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); font: inherit; background: var(--color-surface); color: var(--color-ink); line-height: 1.45; }
.support-composer-input:focus { outline: 2px solid var(--color-indigo); outline-offset: 1px; border-color: var(--color-indigo); }
.support-send { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.support-composer-meta { font-size: 11px; color: var(--color-ink-50); text-align: right; margin-top: 4px; }
.support-new-form { padding: var(--space-5); }
.support-new-form .support-composer-input { width: 100%; max-height: none; resize: vertical; }
.support-new-actions { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-4); flex-wrap: wrap; }

@media (max-width: 640px) {
  .help-categories { grid-template-columns: 1fr; }
  .help-article { padding: var(--space-4); }
  .support-thread { height: calc(100dvh - 220px); min-height: 360px; }
  .support-msg { max-width: 90%; }
  .support-send span { display: none; }
  .support-composer-input { font-size: 16px; } /* prevents iOS zoom on focus */
  .help-search input { font-size: 16px; }
}
.support-composer-input { min-height: 44px; resize: none; }
.support-new-form .support-composer-input { min-height: 140px; resize: vertical; }
.help-page .dash-page-header { display: block; margin-bottom: var(--space-4); }
.help-page .dash-page-header h1 { margin: 0 0 var(--space-1); }
.help-page .dash-page-header .hint { margin: 0; }
.help-page .support-list-header { display: flex; }
.help-page .help-search { margin-top: 0; }
@media (max-width: 640px) {
  .support-thread-header { flex-wrap: wrap; }
  .support-thread-title { flex-basis: 100%; }
  .support-thread-actions { width: 100%; justify-content: space-between; }
}

/* Admin Support inbox (platform-inbox) */
.support-availability-card { display: block; padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); }
.support-availability-card:empty { display: none; }
.support-availability-admin { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.support-inbox { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.support-inbox-list { padding: 0; overflow: hidden; }
.support-inbox-tools { padding: var(--space-3); border-bottom: 1px solid var(--color-border); display: flex; flex-direction: column; gap: var(--space-2); }
.support-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.support-filter { border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-ink-70); border-radius: var(--radius-full); padding: 4px 12px; font: inherit; font-size: var(--text-sm); cursor: pointer; }
.support-filter[aria-selected="true"] { background: var(--color-indigo); border-color: var(--color-indigo); color: #fff; }
.support-inbox-search { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); font: inherit; background: var(--color-surface); color: var(--color-ink); }
.support-inbox-list .support-conv-list { border: 0; border-radius: 0; box-shadow: none; max-height: 70vh; overflow-y: auto; }
.support-conv.is-selected { background: var(--color-indigo-soft); }
.support-conv-shop { display: block; }
.support-load-more { margin: var(--space-3); }
.support-pane-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--space-4); align-items: start; }
.support-pane-empty { padding: var(--space-10) var(--space-4); }
.support-ctx-card { padding: var(--space-4); }
.support-ctx-title { margin: 0 0 var(--space-3); font-size: var(--text-base); }
.support-ctx { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.support-ctx-row dt { font-size: 12px; color: var(--color-ink-50); }
.support-ctx-row dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .support-pane-grid { grid-template-columns: 1fr; } .support-ctx-card { order: -1; } }
@media (max-width: 860px) {
  .support-inbox { grid-template-columns: 1fr; }
  .support-inbox.has-selection .support-inbox-list { display: none; }
  .support-inbox:not(.has-selection) .support-inbox-pane { display: none; }
}
.support-conv, .support-conv:hover, .support-conv span, .support-conv strong { text-decoration: none; }
.support-conv { color: var(--color-ink); }
.support-conv .hint { color: var(--color-ink-50); }
.support-conv-preview { color: var(--color-ink-50); }
.support-inbox-pane .support-back { display: none; }
.support-ctx-card summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.support-ctx-card summary::-webkit-details-marker { display: none; }
.support-ctx-card summary::after { content: '▾'; color: var(--color-ink-50); }
.support-ctx-card[open] summary::after { content: '▴'; }
.support-ctx-body { margin-top: var(--space-3); }
.support-inbox { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); }
.support-pane-grid { grid-template-columns: minmax(0, 1fr); }
.support-pane-grid .support-ctx-card { order: -1; padding: var(--space-3) var(--space-4); }
.support-pane-grid .support-ctx { flex-direction: row; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.support-ctx-title { display: none; }
@media (min-width: 1500px) {
  .support-pane-grid { grid-template-columns: minmax(0, 1fr) 260px; }
  .support-pane-grid .support-ctx-card { order: 0; }
  .support-pane-grid .support-ctx { flex-direction: column; }
}
@media (max-width: 860px) { .support-inbox-pane .support-back { display: inline-flex; } }
@media (max-width: 860px) { .support-inbox { grid-template-columns: minmax(0, 1fr); } }
.support-dot { margin-right: 6px; flex: none; }
.support-availability-admin .support-dot, .help-availability .support-dot { margin-right: 0; }
.profile-avatar-btn { position: relative; }
.support-avatar-dot { position: absolute; top: 0; right: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--color-indigo); border: 2px solid var(--color-ink); }
.support-avatar-dot[hidden] { display: none; }
.help-steps { list-style: decimal; padding-left: var(--space-6); }
.help-steps li { padding-left: var(--space-1); }
.help-steps li::marker { color: var(--color-indigo); font-weight: 700; }
.help-article h1:focus, .help-article h1:focus-visible { outline: none; }

/* ==============================================================
   Dark dashboard presets (Midnight, Espresso — Business + Pro).
   These presets darken the card surface only (the page tint stays
   light, see theme-presets.js). Earlier work fixed hints and field
   labels, but most other card content (headings, list rows, stats,
   links, badges, status text) still used the light-theme text and
   status tokens, which put dark text on a dark card. Rather than
   chase each element, the design tokens are re-mapped once, inside
   `.card` only, so everything in a card that already uses a token
   reads correctly. Scoped to `.is-dark-theme`, which is set only by
   the two dark presets — no other theme or default look is touched.
   ============================================================== */
.dash-shell.is-dark-theme .card {
  color-scheme: dark;
  --color-ink: #F4F4F7;
  --color-ink-90: #F4F4F7;
  --color-ink-70: #DCDCE4;
  --color-ink-50: #B4B4BE;
  --color-ink-30: #8A8A98;
  --color-ink-30-text: #A6A6B3;
  --color-ink-10: rgba(255, 255, 255, 0.14);
  --color-surface: rgba(255, 255, 255, 0.06);
  --color-surface-alt: rgba(255, 255, 255, 0.08);
  --color-border: rgba(255, 255, 255, 0.16);
  --color-indigo: var(--ola-theme-accent);
  --color-indigo-hover: var(--ola-theme-accent);
  --color-indigo-soft: var(--ola-theme-accent-soft);
  --color-product: var(--ola-theme-accent);
  --color-product-soft: var(--ola-theme-accent-soft);
  --color-mint-soft: rgba(45, 212, 167, 0.16);
  --color-success-soft: rgba(45, 212, 167, 0.16);
  --color-success-text: #7EE0B8;
  --color-warn-soft: rgba(224, 160, 48, 0.18);
  --color-warn-text: #F3C46B;
  --color-danger-soft: rgba(225, 86, 86, 0.2);
  --color-danger-text: #F5A3A3;
  --color-service-soft: rgba(15, 122, 107, 0.28);
  --color-service-text: #7ED9CB;
  --color-gold-soft: rgba(184, 134, 11, 0.25);
  --color-gold: #E8C468;
  --color-danger: #F07878;
}
/* The primary button's hover colour is the preset's accentText, which is
   white for both dark presets (white text on a white hover — invisible). */
.dash-shell.is-dark-theme .btn-primary:hover,
.dash-shell.is-dark-theme .btn-primary:active {
  background: var(--ola-theme-accent);
  filter: brightness(1.12);
}

/* The page tint/gradient of a theme preset belongs to the whole shell,
   not just the (max-width: 960px) content column — otherwise a visible
   un-tinted strip shows to the right of the content on wide screens.
   With no theme both stay transparent, exactly as before. A Pro
   wallpaper still wins (see .has-dashboard-wallpaper above). */
.dash-shell {
  background: var(--ola-theme-surface-gradient, var(--ola-theme-surface-alt, transparent));
}
.dash-main,
.has-dashboard-wallpaper .dash-shell .dash-main {
  background: transparent;
}

/* FindOja: permanent Settings panel + slim reminder after "Not now" */
.findoja-panel { margin-top: var(--space-4); border-left: 3px solid var(--color-success, var(--color-indigo)); }
.findoja-panel-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.findoja-panel-mark img { display: block; width: 44px; height: 44px; }
.findoja-panel-text h3 { margin: 0; font-size: var(--text-lg, 1.125rem); font-weight: 700; color: var(--color-ink-90, var(--color-ink-70)); text-transform: none; letter-spacing: normal; }
.findoja-facts { list-style: none; margin: var(--space-1) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.findoja-facts li { font-size: var(--text-xs, 0.75rem); font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--color-mint-soft); color: var(--color-success-text); }
.findoja-panel > .hint { margin: 0 0 var(--space-4); }
.findoja-panel-note { margin: 0; font-size: var(--text-sm); color: var(--color-ink-70); }
.home-oja-strip { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); border: 1px solid var(--color-border); border-left: 3px solid var(--color-success, var(--color-indigo)); border-radius: var(--radius-lg, 12px); background: var(--color-surface); }
.home-oja-strip img { flex: none; display: block; width: 24px; height: 24px; }
.home-oja-strip-text { flex: 1 1 200px; min-width: 0; font-size: var(--text-sm); color: var(--color-ink-70); }
.home-oja-strip-text strong { color: var(--color-ink-90, var(--color-ink-70)); }
.home-oja-strip-sub { display: block; font-size: var(--text-xs, 0.75rem); color: var(--color-ink-50); }
.home-oja-card { border-left: 3px solid var(--color-success, var(--color-indigo)); }

/* Dark presets (Midnight, Espresso): the accent and status colours are
   light, so text drawn ON them has to be dark, and text drawn on the dark
   card in a status colour has to be the light variant. Without this the
   solid buttons, active toggles, avatars and badges sit near 3:1 or lower. */
.dash-shell.is-dark-theme .btn-primary,
.dash-shell.is-dark-theme .btn-primary:hover,
.dash-shell.is-dark-theme .btn-primary:active,
.dash-shell.is-dark-theme .fulfillments-view-toggle-btn-active,
.dash-shell.is-dark-theme .dash-nav-link.active,
.dash-shell.is-dark-theme .billing-plan-badge,
.dash-shell.is-dark-theme .customer-avatar {
  color: #12131F;
}
.dash-shell.is-dark-theme .badge-shop-published { color: #0B2B22; }
.dash-shell.is-dark-theme .shop-verified-badge-label { color: var(--color-gold); }
.dash-shell.is-dark-theme .customer-avatar.avatar-teal { background: #2DD4BF; }
/* Only inside dark cards: the same elements sit on light surfaces elsewhere. */
.dash-shell.is-dark-theme .card .badge-product,
.dash-shell.is-dark-theme .card .badge-new,
.dash-shell.is-dark-theme .card .badge-in_progress,
.dash-shell.is-dark-theme .card .alert-info,
.dash-shell.is-dark-theme .card .area-chip,
.dash-shell.is-dark-theme .card .weekly-summary-pro-badge,
.dash-shell.is-dark-theme .card .journey-label {
  color: var(--ola-theme-accent-on-soft, #E4E5FF);
}

/* Dark presets: small text on light cards needs a darker accent / muted ink. */
.dash-shell.is-dark-theme .card .home-view-guide-row a,
.dash-shell.is-dark-theme .card .journey-label { color: var(--color-indigo-hover, #4347D6); }
.dash-shell.is-dark-theme .responsibilities-notice h3 { color: #565B74; }
.dash-shell.is-dark-theme #home-view-guide-link,
.dash-shell.is-dark-theme .journey-step .journey-label { color: #3F43C9; }

/* Storefront-link change dialog */
.slug-change-addresses { margin: 0 0 var(--space-4, 16px); display: grid; gap: 10px; }
.slug-change-addresses > div { padding: 12px 14px; border: 1px solid var(--color-ink-10, #E4E6EC); border-radius: 12px; background: var(--color-surface, #fff); }
.slug-change-addresses dt { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--color-ink-60, #565B74); margin: 0 0 2px; }
.slug-change-addresses dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; color: var(--color-ink, #1B1D2A); }
.slug-change-addresses .slug-change-new { border-color: var(--color-indigo-hover, #4A4EDB); box-shadow: 0 0 0 3px rgba(91, 95, 239, .12); }
.slug-change-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; line-height: 1.5; }
.slug-change-points li { position: relative; padding-left: 28px; }
.slug-change-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--color-success-bg, #E3F6EC); }
.slug-change-points li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 5px; height: 8px; border: solid #167A3B; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.9); }
.slug-change-footer { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.slug-change-footer .btn { min-height: 44px; }
@media (max-width: 480px) { .slug-change-footer .btn { flex: 1 1 100%; } }

/* Home: "Make your business easier to find" checklist */
.findable-card { padding: var(--space-5, 20px); }
.findable-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.findable-heading { margin: 0; font-size: var(--text-lg, 1.125rem); line-height: 1.3; }
.findable-sub { margin: 4px 0 0; }
.findable-progress { margin: 0; font-size: 14px; font-weight: 600; white-space: nowrap; }
.findable-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.findable-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(127, 127, 140, .22); min-height: 44px; }
.findable-row:first-child { border-top: 0; }
.findable-mark { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; opacity: .55; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; box-sizing: border-box; }
.findable-row.is-done .findable-mark { border-color: #167A3B; background: #167A3B; color: #fff; opacity: 1; }
.findable-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.findable-title { font-weight: 600; line-height: 1.35; }
.findable-row.is-done .findable-title { font-weight: 500; opacity: .75; }
.findable-detail { font-size: 14px; opacity: .8; line-height: 1.35; }
.findable-cta { flex: 0 0 auto; min-height: 44px; }
.findable-foot { margin-top: 10px; display: flex; justify-content: flex-end; }
.findable-foot .btn { min-height: 44px; }
@media (max-width: 520px) {
  .findable-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; align-items: start; }
  .findable-row .findable-cta { grid-column: 2; justify-self: start; }
}

/* Collapsed checklist: a slim, always-there strip (never removed) */
.findable-card, .findable-strip { animation: findable-in .18s ease both; }
@keyframes findable-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.findable-strip { display: flex; align-items: center; gap: var(--space-3, 12px); padding: var(--space-3, 12px) var(--space-4, 16px); margin-bottom: var(--space-4, 16px); border: 1px solid var(--color-border); border-radius: var(--ola-theme-button-radius, var(--radius-md)); background: var(--ola-theme-surface, var(--color-surface)); color: var(--ola-theme-text, inherit); }
.findable-ring { flex: none; width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(#167A3B calc(var(--p) * 1%), rgba(127,127,140,.28) 0); -webkit-mask: radial-gradient(farthest-side, transparent 62%, #000 64%); mask: radial-gradient(farthest-side, transparent 62%, #000 64%); }
.findable-strip-text { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-2, 8px); font-size: var(--text-sm); }
.findable-strip-sub { opacity: .75; }
.findable-show { flex: none; min-height: 44px; }
@media (max-width: 480px) { .findable-strip-text { flex-direction: column; row-gap: 0; } .findable-strip-text strong { white-space: nowrap; } }
@media (max-width: 400px) { .findable-show-more { display: none; } }
@media (prefers-reduced-motion: reduce) { .findable-card, .findable-strip { animation: none; } }

/* Complete Business: minimised to one quiet line (badge + milestone + storefront link) */
.complete-strip { display: flex; align-items: center; gap: var(--space-3, 12px); padding: 8px var(--space-4, 16px); margin-bottom: var(--space-4, 16px); border: 1px solid var(--color-border); border-radius: var(--ola-theme-button-radius, var(--radius-md)); background: var(--ola-theme-surface, var(--color-surface)); color: var(--ola-theme-text, inherit); animation: findable-in .18s ease both; }
.complete-strip-badge { flex: none; display: inline-flex; color: var(--color-indigo); }
.complete-strip-svg { width: 26px; height: 26px; display: block; }
.complete-strip-text { flex: 1 1 auto; min-width: 0; font-size: var(--text-sm); }
.complete-strip-text strong { white-space: nowrap; }
.complete-strip .btn { min-height: 44px; flex: none; }
@media (max-width: 480px) { .complete-strip { gap: var(--space-2, 8px); padding: 6px 12px; } .complete-strip-link { padding-inline: 8px; } }
@media (max-width: 400px) { .complete-strip-more { display: none; } }
.complete-strip-chev { display: none; }
@media (max-width: 360px) {
  .complete-strip { gap: 6px; padding: 6px 10px; }
  .complete-strip-text { font-size: 13px; flex: 0 1 auto; }
  .complete-strip-link { padding-inline: 6px; margin-left: 4px; margin-right: auto; }
  .complete-strip-show { padding-inline: 6px; min-width: 40px; }
  .complete-strip-svg { width: 24px; height: 24px; }
  .complete-strip-show-label { display: none; }
  .complete-strip-chev { display: block; }
}
@media (prefers-reduced-motion: reduce) { .complete-strip { animation: none; } }

/* Offering editor: price is locked at 0 while "This item is free" is on */
#o-price:disabled, .o-currency-price:disabled { background: var(--color-surface-alt, #F7F8FC); color: var(--color-ink-50, #565B7A); cursor: not-allowed; }

/* ==============================================================
   Dark mode (seller dashboard only) — html.is-dark-mode
   Set by js/core/color-mode.js. Remaps the colour tokens so every
   component that reads them follows, then fixes the few places that
   hard-code a colour. Inert on any page that doesn't set the class.
   ============================================================== */
html.is-dark-mode {
  color-scheme: dark;
  --color-ink: #F2F2F5;
  --color-ink-90: #E6E7EE;
  --color-ink-70: #CFD1DC;
  --color-ink-50: #A7AABB;
  --color-ink-30: #7F8398;
  --color-ink-30-text: #A0A4B8;
  --color-ink-10: rgba(255, 255, 255, 0.12);
  --color-surface: #171923;
  --color-surface-alt: #0E0F16;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-indigo: #8C91FF;
  --color-indigo-hover: #A9ADFF;
  --color-indigo-soft: #25274A;
  --color-mint-soft: #123A32;
  --color-warn-soft: #3A2E14;
  --color-warn-text: #F2C76B;
  --color-danger-soft: #3D1D1F;
  --color-danger-text: #FF9E9E;
  --color-success-text: #7FE3B8;
  --color-product-soft: #25274A;
  --color-service-soft: #123A32;
  --color-service-text: #7FE0CF;
}
html.is-dark-mode body { background: var(--color-surface-alt); color: var(--color-ink); }

/* Settings -> Display (all themes) */
.display-mode-group { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.display-mode-option { position: relative; }
.display-mode-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.display-mode-option span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--color-border); border-radius: 999px; font-weight: 600; background: var(--color-surface); color: var(--color-ink); }
.display-mode-option input:checked + span { background: var(--color-indigo); border-color: var(--color-indigo); color: #fff; }
.display-mode-option input:focus-visible + span { outline: 3px solid var(--color-indigo-hover); outline-offset: 2px; }

/* Sidebar quick switch */
.dash-color-mode { display: inline-flex; align-items: center; gap: 8px; }
.dash-color-mode-icon { display: inline-flex; }

/* Dark mode: bright accent surfaces carry dark text; soft chips carry light accent text. */
html.is-dark-mode .btn-primary,
html.is-dark-mode .btn-primary:hover,
html.is-dark-mode .btn-primary:active,
html.is-dark-mode .fulfillments-view-toggle-btn-active,
html.is-dark-mode .dash-nav-link.active,
html.is-dark-mode .billing-plan-badge,
html.is-dark-mode .customer-avatar,
html.is-dark-mode .display-mode-option input:checked + span { color: #12131F; }
/* Dark shop presets (Midnight, Espresso) use a light accent, so the selected
   chip needs dark text, as in dark mode. White on these accents fell below 3.5:1. */
.dash-shell.is-dark-theme .display-mode-option input:checked + span { color: #12131F; }
/* Same presets: the teal "this week" count is too dim on the dark card. */
.dash-shell.is-dark-theme .stat-card-trend-count-request { color: #5FD6C2; }
html.is-dark-mode .badge-shop-published { color: #0B2B22; }
html.is-dark-mode .badge-product,
html.is-dark-mode .badge-new,
html.is-dark-mode .badge-in_progress,
html.is-dark-mode .alert-info,
html.is-dark-mode .area-chip,
html.is-dark-mode .weekly-summary-pro-badge { color: #C7CAFF; }

/* Dark mode: remaining hard-coded colours. */
html.is-dark-mode .badge-repeat { background: #3A2E10; color: #F2C75C; }
html.is-dark-mode .customer-avatar.avatar-teal { color: #FFFFFF; background: #0F7A6B; }
html.is-dark-mode .stat-card-trend-count-request { color: #5FD6C2; }
html.is-dark-mode .shop-verified-badge-label,
html.is-dark-mode .shop-verified-badge:has(.shop-verified-badge-trophy) .shop-verified-badge-label { color: #F2C75C; }
html.is-dark-mode .btn-danger { color: #FF9C9C; }

/* Dark mode: the sidebar / mobile header / mobile menu use --color-ink as a
   dark background in light mode; that token is light here, so pin them. */
html.is-dark-mode .dash-sidebar,
html.is-dark-mode .dash-mobile-header { background: #0A0B11; color: #fff; }
html.is-dark-mode .dash-sidebar { border-right: 1px solid rgba(255, 255, 255, 0.08); }
html.is-dark-mode .dash-mobile-header { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
html.is-dark-mode .dash-mobile-menu { background: #1B1D2A; }
html.is-dark-mode .dash-storefront-views-badge { background: #25274A; color: #C7CAFF; }
html.is-dark-mode .notif-bell-badge { background: #C73B3B; color: #fff; }

/* FindOja brand mark (rounded app tile) and wordmark (CSS mask: follows text colour). */
img.findoja-mark { border-radius: 22%; flex: none; display: block; }
.findoja-wordmark {
  display: block;
  background-color: currentColor;
  -webkit-mask: url('/icons/findoja-wordmark.png') left center / contain no-repeat;
  mask: url('/icons/findoja-wordmark.png') left center / contain no-repeat;
}
.findoja-panel-wordmark { color: var(--color-ink-90, var(--color-ink-70)); margin-bottom: var(--space-1); }
.findoja-panel-mark { flex: none; }
.findoja-view-line { margin-top: var(--space-3); }
.findoja-view-line a { font-weight: 600; }
.findoja-view-hint { color: var(--color-ink-50); }

/* FindOja listed state */
.findoja-pill, .findoja-facts li.findoja-fact-listed {
  display: inline-block; font-size: var(--text-xs, 0.75rem); font-weight: 700; line-height: 1.4;
  padding: 1px 9px; border-radius: 999px; background: var(--color-mint-soft); color: var(--color-success-text);
  vertical-align: middle;
}
.findoja-facts li.findoja-fact-listed::before { content: '\2713\00a0'; }
.home-oja-listed { border-left: 3px solid var(--color-success, var(--color-indigo)); }

/* ---------- Delivery zones editor (Settings) ---------- */
.delivery-zones-field {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.delivery-zone-row .delivery-zone-name { min-width: 0; }
.delivery-zone-row .delivery-zone-fee { flex: 0 0 96px; width: 96px; min-width: 0; }
.delivery-free-over-field { margin-top: var(--space-4); max-width: 240px; }

/* ---------- Quick replies (order / request conversations) ---------- */
.quick-replies { margin: var(--space-2) 0; }
.quick-replies-toggle { padding-left: 0; }
.quick-replies-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-1);
  max-height: 220px;
  overflow-y: auto;
}
.quick-replies-list[hidden] { display: none; }
.quick-reply-item {
  text-align: left;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-ink-70);
  font: inherit;
  font-size: var(--text-sm);
  line-height: 1.45;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.quick-reply-item:hover,
.quick-reply-item:focus-visible { border-color: var(--color-primary, #5B5FEF); background: var(--color-surface-alt, var(--color-surface)); }

/* ---------- Two-step verification (Settings) ---------- */
.mfa-state { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.mfa-steps { margin: 0 0 var(--space-4); padding-left: var(--space-5); list-style: decimal; color: var(--color-ink-70); font-size: var(--text-sm); line-height: 1.6; }
.mfa-qr-block { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); margin-bottom: var(--space-4); }
.mfa-qr { background: #fff; padding: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.mfa-secret-label { margin: 0; }
.mfa-secret { display: block; max-width: 100%; padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-alt, var(--color-surface)); color: var(--color-ink-70); font-size: var(--text-sm); letter-spacing: 0.08em; word-break: break-all; user-select: all; }
.mfa-warning { margin-bottom: var(--space-3); }
.mfa-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ---------- Business hours editor (Settings) ---------- */
.hours-tz {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--color-ink-70, var(--color-ink));
}
.hours-tz select { max-width: 100%; }
.hours-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hours-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.hours-row:last-child { border-bottom: none; }
.hours-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex: 0 0 190px;
  padding: 0;
  border-bottom: none;
  cursor: pointer;
}
.hours-day-name { font-weight: 600; }
.hours-ranges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  flex: 1 1 220px;
  min-width: 0;
}
.hours-range {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.hours-range .hours-time {
  width: 8.5rem; min-width: 0; padding-inline: var(--space-3);
  text-align: center; font-variant-numeric: tabular-nums;
}
.hours-range .hours-time.is-invalid { border-color: #ff8d85; box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14); }
.hours-typing-hint { margin: var(--space-2) 0 0; }
.hours-day-sub { display: block; font-weight: 400; font-size: var(--text-sm); color: var(--color-ink-50); margin-top: 2px; }

/* Weekdays & weekend / Day by day switch */
.hours-view {
  display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 var(--space-3);
  background: var(--color-indigo-soft, #eef0ff); border-radius: 999px; max-width: 100%;
}
.hours-view-btn {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; min-height: 36px;
  font: inherit; font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-70, var(--color-ink));
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.hours-view-btn:hover { color: var(--color-ink); }
.hours-view-btn.is-active { background: var(--color-surface, #fff); color: var(--color-indigo, #4f46e5); box-shadow: 0 1px 3px rgba(20, 20, 40, 0.14); }
.hours-view-btn:focus-visible { outline: 2px solid var(--color-indigo, #4f46e5); outline-offset: 2px; }
.hours-view-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4);
  margin: 0 0 var(--space-3); padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-indigo-soft, #eef0ff); font-size: var(--text-sm);
}
.hours-view-note[hidden] { display: none; }
.hours-view-note-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@media (max-width: 400px) { .hours-view { display: flex; } .hours-view-btn { flex: 1 1 0; padding-inline: 8px; } }
.hours-to-word { color: var(--color-ink-50); font-size: var(--text-sm); }
.hours-closed-label { color: var(--color-ink-50); font-size: var(--text-sm); }
.hours-row.is-closed .hours-day-name { color: var(--color-ink-50); }
.hours-tools { margin-top: var(--space-2); }
.hours-tools .btn { padding-inline: 0; margin-right: var(--space-4); }
.hours-preview {
  margin: var(--space-2) 0 var(--space-3);
  font-weight: 600;
  color: var(--color-ink-70, var(--color-ink));
}
.dash-shell .card .hours-preview.hours-preview-error { color: #ff8d85; }
.hours-card .toggle-hint, .booking-card .toggle-hint { display: block; margin-top: var(--space-1); font-weight: 400; max-width: 46ch; }
.hours-capacity-field { margin-top: var(--space-4); max-width: 260px; }
@media (max-width: 600px) {
  .hours-row { padding: var(--space-3); }
  .hours-day { flex: 1 1 100%; }
  .hours-ranges { flex: 1 1 100%; width: 100%; }
  .hours-range { flex-wrap: nowrap; width: 100%; }
  /* 16px stops iPhones zooming the page when a time is tapped. */
  .hours-range .hours-time { flex: 1 1 0; width: auto; min-width: 0; padding-inline: var(--space-2); font-size: 16px; }
}
.toggle-row.is-disabled { opacity: 0.55; cursor: not-allowed; }
.toggle-row.is-disabled .toggle { pointer-events: none; }
.booking-minutes-field { margin-top: var(--space-3); max-width: 260px; }

/* ---------- Send-by links under the reply box ---------- */
.message-send-via {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.message-send-via-label { font-size: var(--text-sm); color: var(--color-ink-50); }
.message-send-via-btn { text-decoration: none; }
.message-send-via-hint { flex: 1 1 100%; margin: 0; font-size: var(--text-xs); }
.booking-row-time { margin-top: 2px; }

/* ---------- Time off (Settings > Business hours) ---------- */
.hours-timeoff { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.hours-subheading { margin: 0 0 var(--space-1); font-size: var(--text-base); }
.hours-timeoff-list { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-3) 0; }
.hours-timeoff-empty { margin: 0; }
.hours-timeoff-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 12px);
}
.hours-timeoff-dates { display: flex; align-items: center; gap: var(--space-2); flex: 0 0 auto; }
.hours-timeoff-dates input[type="date"] { width: 10.5rem; min-width: 0; }
.hours-timeoff-row .to-label { flex: 1 1 180px; min-width: 0; }
@media (max-width: 600px) {
  .hours-timeoff-row { padding: var(--space-3); }
  .hours-timeoff-dates { width: 100%; }
  .hours-timeoff-dates input[type="date"] { flex: 1 1 0; width: auto; }
  .hours-timeoff-row .to-label { flex: 1 1 100%; }
}

/* ---------- Online booking card ---------- */
.badge-plan {
  display: inline-block;
  margin-left: var(--space-2);
  vertical-align: middle;
  background: var(--color-indigo-soft);
  color: var(--color-indigo-hover);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
html.is-dark-mode .badge-plan { color: #C7CAFF; }
.booking-hours-hint { margin: var(--space-2) 0 0; }
.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-4);
  margin: var(--space-4) 0 var(--space-2);
}
.booking-grid .field { margin: 0; }
.booking-reschedule-notice { margin-top: var(--space-3); max-width: 320px; }
.booking-buffer-label { display: block; margin-top: var(--space-3); }
#o-booking-buffer { max-width: 260px; }

/* Upgrade card shown instead of the booking controls */
.booking-locked-card { position: relative; }
.booking-locked-eyebrow {
  margin: 0 0 var(--space-1);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-indigo);
}
html.is-dark-mode .booking-locked-eyebrow { color: #C7CAFF; }
.booking-benefits {
  list-style: none;
  margin: var(--space-3) 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.booking-benefits li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--color-ink-70);
  font-size: var(--text-sm);
}
.booking-benefits li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.35em;
  width: 0.5rem;
  height: 0.28rem;
  border-left: 2px solid var(--color-indigo);
  border-bottom: 2px solid var(--color-indigo);
  transform: rotate(-45deg);
}
html.is-dark-mode .booking-benefits li::before { border-color: #C7CAFF; }
.booking-locked-preview {
  margin: var(--space-4) 0;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 12px);
  background: var(--color-indigo-soft);
  pointer-events: none;
  user-select: none;
}
html.is-dark-mode .booking-locked-preview { background: rgba(124, 128, 255, 0.08); }
.booking-locked-preview-label {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-ink-50);
}
.booking-locked-days, .booking-locked-times { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.booking-locked-times { margin-top: var(--space-3); }
.booking-locked-day, .booking-locked-time {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink-70);
  border-radius: 10px;
  font-size: var(--text-sm);
  text-align: center;
}
.booking-locked-day { display: flex; flex-direction: column; padding: 0.35rem 0.8rem; min-width: 4.4rem; line-height: 1.25; }
.booking-locked-day small { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-ink-50); }
.booking-locked-time { padding: 0.4rem 0.8rem; font-weight: 600; }
.booking-locked-day.is-selected, .booking-locked-time.is-selected {
  background: var(--color-indigo);
  border-color: var(--color-indigo);
  color: #fff;
}
.booking-locked-day.is-selected small { color: rgba(255, 255, 255, 0.85); }
.booking-locked-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.booking-locked-actions .hint { margin: 0; }
@media (max-width: 480px) {
  .booking-locked-actions .btn { width: 100%; justify-content: center; text-align: center; white-space: normal; }
  .booking-locked-day { min-width: 0; flex: 1 1 calc(25% - var(--space-2)); padding-inline: 0.4rem; }
  .booking-locked-time { flex: 1 1 calc(33% - var(--space-2)); padding-inline: 0.4rem; }
}

/* Locked booking row inside the offering form */
.booking-locked-field {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md, 12px);
  background: var(--color-indigo-soft);
}
html.is-dark-mode .booking-locked-field { background: rgba(124, 128, 255, 0.08); }
.booking-locked-field-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-weight: 600; }
.booking-locked-field .hint { margin: var(--space-2) 0 0; }

/* ---------- Booked time: actions, calendar menu, reschedule dialog ---------- */
.booking-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.booking-actions #request-reschedule-slot:empty { display: none; }
.booking-moved-note { margin-top: var(--space-1); }
#request-reschedule-note .hint { margin-top: var(--space-3); }
.calendar-menu { position: relative; display: inline-block; }
.calendar-menu-list {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 5;
  min-width: 15.5rem;
  max-width: calc(100vw - 2 * var(--space-4));
  padding: var(--space-1);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.calendar-menu-list[hidden] { display: none; }
.calendar-menu-item {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  font-size: var(--text-sm);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.calendar-menu-item:hover, .calendar-menu-item:focus-visible { background: var(--color-indigo-soft); outline: none; }
html.is-dark-mode .calendar-menu-item:hover, html.is-dark-mode .calendar-menu-item:focus-visible { background: rgba(124, 128, 255, 0.14); }

.reschedule-body { padding: var(--space-4) var(--space-5) var(--space-5); }
.reschedule-current {
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 12px);
  background: var(--color-indigo-soft);
}
html.is-dark-mode .reschedule-current { background: rgba(124, 128, 255, 0.08); }
.reschedule-current-label { margin: 0; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-ink-50); }
.reschedule-current-time { margin: var(--space-1) 0; font-weight: 700; }
.reschedule-current .hint { margin: 0; }
.reschedule-notify { margin-top: var(--space-4); }
.reschedule-drawer .drawer-footer { display: block; }

/* Time picker (same look as the customer's booking picker) */
.reschedule-picker .reschedule-meta { margin: 0 0 var(--space-2); }
.reschedule-picker .booking-days { display: flex; gap: var(--space-2); overflow-x: auto; padding: var(--space-1) 0 var(--space-2); scroll-snap-type: x proximity; scrollbar-width: thin; }
.reschedule-picker .booking-day {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 64px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 12px);
  background: var(--color-surface);
  color: var(--color-ink-70);
  cursor: pointer; scroll-snap-align: start; font: inherit;
}
.reschedule-picker .booking-day:hover { border-color: var(--color-indigo); }
.reschedule-picker .booking-day-name { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.reschedule-picker .booking-day-num { font-size: var(--text-sm); font-weight: 700; color: var(--color-ink); white-space: nowrap; }
.reschedule-picker .booking-day.is-selected { background: var(--color-indigo-soft); border-color: var(--color-indigo); }
.reschedule-picker .booking-day.is-selected .booking-day-num { color: var(--color-indigo); }
html.is-dark-mode .reschedule-picker .booking-day.is-selected .booking-day-num { color: #C7CAFF; }
.reschedule-picker .booking-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: var(--space-2); margin-top: var(--space-2); }
.reschedule-picker .booking-times[hidden] { display: none; }
.reschedule-picker .booking-time {
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 12px);
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit; font-size: var(--text-sm); font-weight: 600;
  cursor: pointer; white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 2.75rem; line-height: 1.25;
}
.reschedule-picker .booking-time:hover:not(:disabled) { border-color: var(--color-indigo); }
.reschedule-picker .booking-time.is-selected { background: var(--color-indigo); border-color: var(--color-indigo); color: #fff; }
.reschedule-picker .booking-time.is-current { cursor: not-allowed; opacity: 0.6; border-style: dashed; }
.reschedule-picker .booking-time-current { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-ink-50); }
.reschedule-picker .booking-day:focus-visible, .reschedule-picker .booking-time:focus-visible { outline: 2px solid var(--color-indigo); outline-offset: 2px; }
.reschedule-picker .booking-selected { margin: var(--space-3) 0 0; font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); min-height: 1.4em; }
.reschedule-picker .booking-selected:empty { min-height: 0; margin: 0; }
.reschedule-picker .booking-none { margin: 0 0 var(--space-3); }
@media (max-width: 600px) {
  /* Keep the calendar menu on screen when its button sits toward the right. */
  .calendar-menu-list { left: auto; right: 0; }
}

/* ---------- Booking day strip: month labels and earlier/later buttons ---------- */
.booking-days-wrap { display: flex; align-items: center; gap: var(--space-1); min-width: 0; }
.booking-days-wrap .booking-days { flex: 1 1 auto; min-width: 0; scroll-behavior: smooth; }
.booking-days-nav {
  flex: 0 0 auto;
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0 0 2px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard);
}
.booking-days-wrap.has-overflow .booking-days-nav { display: inline-flex; }
.booking-days-nav:hover:not(:disabled) { border-color: var(--color-indigo); }
.booking-days-nav:disabled { opacity: 0.35; cursor: default; }
.booking-days-nav:focus-visible { outline: 2px solid var(--color-indigo); outline-offset: 2px; }
.booking-month {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 var(--space-2) 0 var(--space-1);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-50);
  white-space: nowrap;
  border-left: 2px solid var(--color-border);
  scroll-snap-align: start;
}
.booking-month:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 480px) {
  .booking-days-nav { width: 28px; height: 28px; }
}

/* ---------- Bookings: agenda and month calendar ---------- */
.bk-tz { margin: calc(-1 * var(--space-3)) 0 var(--space-4); }
.bk-paused { margin-bottom: var(--space-4); }
.bookings-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-5); }
.bk-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.bk-stat-value { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; line-height: 1.1; color: var(--color-ink); }
.bk-stat-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-70); }
.bk-stat-hint { font-size: var(--text-xs); color: var(--color-ink-30-text); }
.bk-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.bk-service-field { margin: 0; min-width: 190px; }
.bk-service-field select { min-height: 38px; }

.bk-subtabs { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); }
.bk-subtab {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 14px; min-height: 36px;
  font: inherit; font-size: var(--text-sm); font-weight: 600;
  color: var(--color-ink-50);
  background: transparent; border: 1px solid var(--color-border); border-radius: var(--radius-full);
  cursor: pointer;
}
.bk-subtab span { font-weight: 700; color: var(--color-ink-30-text); }
.bk-subtab[aria-pressed="true"] { color: var(--color-indigo-hover); background: var(--color-indigo-soft); border-color: transparent; }
.bk-subtab[aria-pressed="true"] span { color: inherit; }
.bk-subtab:focus-visible, .bk-cell:focus-visible, .bk-row:focus-visible, .bk-nav-btn:focus-visible { outline: 2px solid var(--color-indigo); outline-offset: 2px; }

.bk-day { margin-bottom: var(--space-5); }
.bk-day-head { display: flex; align-items: baseline; gap: var(--space-3); margin: 0 0 var(--space-2); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--color-ink); }
.bk-day-head small { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-30-text); }
.bk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.bk-row {
  --bk-accent: var(--color-indigo);
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--bk-accent);
  border-radius: var(--radius-md);
  color: inherit; text-decoration: none;
  transition: box-shadow var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.bk-row:hover { box-shadow: var(--shadow-md); }
.bk-time { display: flex; flex-direction: column; line-height: 1.25; }
.bk-time strong { font-size: var(--text-base); color: var(--color-ink); white-space: nowrap; }
.bk-time small { font-size: var(--text-xs); color: var(--color-ink-30-text); white-space: nowrap; }
.bk-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.bk-service { font-weight: 600; color: var(--color-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-customer { font-size: var(--text-sm); color: var(--color-ink-50); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.bk-tag { display: inline-flex; align-items: center; padding: 2px 8px; font-size: var(--text-xs); font-weight: 600; color: var(--color-ink-50); background: var(--color-surface-alt); border-radius: var(--radius-full); white-space: nowrap; }
.bk-tag-ok { color: var(--color-success-text); background: var(--color-mint-soft); }
.bk-none { padding: var(--space-5); text-align: center; }
.bk-more { margin-top: var(--space-2); }
.bk-empty { margin-top: var(--space-6); }

.bk-slot-0 { --bk-accent: #5B5FEF; }
.bk-slot-1 { --bk-accent: #0F7A6B; }
.bk-slot-2 { --bk-accent: #D9822B; }
.bk-slot-3 { --bk-accent: #C2437A; }
.bk-slot-4 { --bk-accent: #2F80C9; }
.bk-slot-5 { --bk-accent: #8A63D2; }

.bk-month-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.bk-month-title { margin: 0; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--color-ink); }
.bk-month-nav { display: flex; align-items: center; gap: var(--space-2); }
.bk-nav-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 0 3px; font: inherit; font-size: 1.4rem; line-height: 1;
  color: var(--color-ink); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 50%; cursor: pointer;
}
.bk-nav-btn:hover { border-color: var(--color-indigo); }
.bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bk-dow { padding: 0 var(--space-1) 2px; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-ink-30-text); text-align: left; }
.bk-cell {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  min-height: 96px; padding: 6px;
  font: inherit; text-align: left; color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  cursor: pointer;
}
.bk-cell:hover { border-color: var(--color-indigo); }
.bk-cell.is-outside { background: transparent; color: var(--color-ink-30-text); }
.bk-cell.is-today { border-color: var(--color-indigo); }
.bk-cell.is-today .bk-cell-num { background: var(--color-indigo); color: #fff; }
.bk-cell.is-selected { box-shadow: 0 0 0 2px var(--color-indigo); border-color: var(--color-indigo); }
.bk-cell-num { align-self: flex-start; min-width: 24px; height: 24px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-sm); font-weight: 600; border-radius: var(--radius-full); }
.bk-cell-chips { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bk-chip {
  display: block; padding: 2px 6px;
  font-size: 0.6875rem; line-height: 1.35; color: var(--color-ink);
  background: color-mix(in srgb, var(--bk-accent) 14%, transparent);
  border-left: 3px solid var(--bk-accent); border-radius: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bk-chip b { font-weight: 700; }
.bk-chip-more { font-size: 0.6875rem; font-weight: 600; color: var(--color-ink-50); padding-left: 2px; }
.bk-cell-dots { display: none; align-items: center; gap: 3px; margin-top: auto; }
.bk-cell-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--bk-accent); }
.bk-cell-dots em { font-style: normal; font-size: 0.6875rem; font-weight: 700; color: var(--color-ink-50); }
.bk-detail { margin-top: var(--space-5); }
.bk-detail-head { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--color-ink); }

@media (max-width: 720px) {
  .bookings-stats { gap: var(--space-2); }
  .bk-stat { padding: var(--space-3); }
  .bk-stat-value { font-size: var(--text-xl); }
  .bk-stat-hint { display: none; }
  .bk-row { grid-template-columns: 78px minmax(0, 1fr); column-gap: var(--space-3); row-gap: var(--space-2); }
  .bk-tags { grid-column: 2; justify-content: flex-start; }
  .bk-grid { gap: 3px; }
  .bk-cell { min-height: 54px; padding: 4px; align-items: center; }
  .bk-cell-num { align-self: center; }
  .bk-cell-chips { display: none; }
  .bk-cell-dots { display: inline-flex; margin-top: 0; }
  .bk-dow { text-align: center; padding: 0; }
  .bk-service-field { flex: 1 1 100%; }
}

html.is-dark-mode .bk-subtab[aria-pressed="true"] { color: #C7CAFF; background: rgba(124, 128, 255, 0.16); }
html.is-dark-mode .bk-cell.is-outside { color: var(--color-ink-30-text); }
html.is-dark-mode .bk-tag-ok { background: rgba(45, 212, 167, 0.14); }
.bk-toolbar .fulfillments-view-toggle-btn { min-height: 40px; padding: 6px 18px; }

/* ---- v1.33: blocked time, calendar sync, WhatsApp queue ---- */
.bk-header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.bk-header-row h1 { margin: 0; }
.bk-header-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bk-header-actions .btn { min-height: 40px; }
#bk-notice:empty, #bk-blocks:empty, #bk-queue:empty { display: none; }
#bk-notice { margin-bottom: var(--space-4); }
.bk-conflicts p { margin: 0 0 var(--space-2); }
.bk-conflicts ul { margin: 0; padding-left: 1.1rem; }
.bk-conflicts a { font-weight: 600; }

.bk-queue-card, .bk-blocks-card { margin-bottom: var(--space-4); padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.bk-card-title { margin: 0 0 var(--space-1); font-family: var(--font-display); font-size: var(--text-md, 1rem); font-weight: 700; color: var(--color-ink); display: flex; align-items: center; gap: var(--space-2); }
.bk-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--radius-full); background: var(--color-indigo); color: #fff; font-size: var(--text-xs); font-weight: 700; }
.bk-queue-card .hint { margin: 0 0 var(--space-3); }
.bk-queue-list, .bk-block-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.bk-queue-row, .bk-block-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md, 12px);
  background: var(--color-surface);
}
.bk-queue-row.is-done { background: var(--color-surface-alt); }
.bk-block-row { background: var(--color-surface-alt); }
.bk-queue-main, .bk-block-main { display: grid; gap: 2px; min-width: 0; }
.bk-queue-main strong, .bk-block-main strong { font-size: var(--text-sm); color: var(--color-ink); }
.bk-queue-main small, .bk-block-main small { color: var(--color-ink-50); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-queue-act { display: flex; align-items: center; gap: var(--space-2); flex: 0 0 auto; }
.bk-queue-act .btn { min-height: 40px; }

.bk-cell.has-block { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(120, 124, 140, 0.12) 6px 8px); }
.bk-cell.has-block .bk-cell-num::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: var(--color-ink-50); vertical-align: middle; }
.bk-day-block { margin: 0 0 var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md, 12px); background: var(--color-surface-alt); color: var(--color-ink-50); font-size: var(--text-sm); font-weight: 600; }

.bk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.bk-form-row .field { min-width: 0; }
.bk-form-row .field input { width: 100%; min-width: 0; }
.bk-conflicts, .bk-sync-warn { display: block; }
.bk-form-row[hidden] { display: none; }
.bk-tool-drawer .drawer-body { padding-bottom: var(--space-5); }
.bk-copy-row { display: flex; gap: var(--space-2); }
.bk-copy-row input { flex: 1 1 auto; min-width: 0; text-overflow: ellipsis; }
.bk-sync-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }
.bk-sync-help { margin: 0 0 var(--space-3); }
.bk-sync-help summary { cursor: pointer; font-weight: 600; font-size: var(--text-sm); }
.bk-sync-warn { margin: var(--space-3) 0; }
.bk-wa-sent { flex: 1 0 100%; margin: 0; }
#request-wa-slot { display: contents; }

@media (max-width: 340px) {
  .bk-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .bk-queue-row { flex-wrap: wrap; }
  .bk-queue-act { width: 100%; justify-content: flex-end; }
  .bk-header-actions { width: 100%; }
  .bk-header-actions .btn { flex: 1 1 0; }
}
html.is-dark-mode .bk-cell.has-block { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, 0.06) 6px 8px); }

html.is-dark-mode .bk-queue-row.is-done, html.is-dark-mode .bk-block-row, html.is-dark-mode .bk-day-block { background: rgba(255, 255, 255, 0.04); }

/* Location: Worldwide hides state/city (display set by .field-row would otherwise override [hidden]) */
#s-location-parts[hidden] { display: none; }


/* Ask for a review (completed orders and services) */
.review-request-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.review-request-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold-soft);
  color: var(--color-gold);
}
.review-request-card-asked .review-request-icon {
  background: var(--color-success-soft);
  color: var(--color-success-text);
}
.review-request-copy { flex: 1 1 200px; min-width: 0; }
.review-request-title { margin: 0; font-weight: 600; font-size: var(--text-sm); }
.review-request-copy .hint { margin: var(--space-1) 0 0; }
.review-request-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); flex: 1 1 100%; }
.review-prompt-lead { margin: 0 0 var(--space-3); font-size: var(--text-sm); }


/* Phone "More" sheet */
.more-sheet-overlay { display: flex; align-items: flex-end; justify-content: center; }
.more-sheet-overlay.more-sheet-closing { opacity: 0; transition: opacity 0.15s ease; }
.more-sheet {
  width: 100%;
  max-width: 520px;
  background: var(--color-surface);
  border-radius: var(--radius-lg, 20px) var(--radius-lg, 20px) 0 0;
  box-shadow: var(--shadow-lg);
  padding: var(--space-2) var(--space-4) calc(var(--space-5, 24px) + env(safe-area-inset-bottom, 0px));
  animation: moreSheetUp var(--duration-slow, 0.3s) var(--ease-out-premium, ease-out);
}
@keyframes moreSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .more-sheet { animation: none; } }
.more-sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--color-border); margin: var(--space-1) auto var(--space-2); }
.more-sheet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.more-sheet-header h3 { margin: 0; font-size: var(--text-lg, 1.125rem); }
.more-sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.more-sheet-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt, var(--color-surface));
  color: var(--color-ink);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
}
.more-sheet-link:hover { text-decoration: none; border-color: var(--color-indigo); }
.more-sheet-link.active { border-color: var(--color-indigo); color: var(--color-indigo); background: var(--color-indigo-soft); }
.more-sheet-icon { display: inline-flex; flex-shrink: 0; color: var(--color-indigo); }
.more-sheet-label { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 900px) { .more-sheet-overlay { display: none; } }

/* Keep the per-day buttons lined up with the time boxes above them. */
.hours-ranges > .hours-allday,
.hours-ranges > .hours-add { padding-inline: 0; }

/* ==============================================================
   v1.34.1: Offerings and Settings polish

   One calm visual language for both pages, built only from the
   existing tokens so every seller theme and dark mode keeps working.
   No behaviour is changed here: rows, drawers, forms and saves work
   exactly as before.
   ============================================================== */

/* ---------- Offerings list ---------- */
.offering-card-row {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  gap: var(--space-3);
  transition: border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.offering-card-row:hover { border-color: var(--color-ink-30); box-shadow: var(--shadow-sm); }
.offering-row-main { align-items: center; gap: var(--space-3); }
.offering-thumb { width: 64px; height: 64px; border-radius: 10px; }
.offering-thumb-empty {
  background-color: var(--color-surface-alt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239297B0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='3'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M4 17l5-4.5 3.5 3 3-2.5L20 16'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
  border: 1px dashed var(--color-border);
}
.offering-row-title { gap: var(--space-2); margin-bottom: var(--space-1); }
.offering-row-title strong {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
/* Badges here read as quiet labels, not codes. */
.offering-card-row .badge {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
  padding: 2px var(--space-2);
}
.offering-card-row .badge-product, .offering-card-row .badge-service { order: -1; text-transform: capitalize; }
.offering-card-row .offering-row-content > .hint {
  margin: var(--space-1) 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-70);
  font-variant-numeric: tabular-nums;
}
.offering-card-row:has(.offering-row-actions .toggle input:not(:checked)) .offering-row-main { opacity: 0.6; }

.offering-row-actions { gap: var(--space-2); align-items: center; }
.offering-row-actions .btn { min-height: var(--height-control-sm); }
.offering-row-actions button[id^="edit-"] {
  background: var(--color-indigo-soft);
  color: var(--color-indigo-hover);
  border-radius: var(--radius-full);
  padding-inline: var(--space-4);
  font-weight: 600;
}
.offering-row-actions button[id^="edit-"]:hover { background: var(--color-indigo); color: #fff; }
.offering-row-actions button[id^="duplicate-"],
.offering-row-actions button[id^="delete-"] { color: var(--color-ink-50); font-weight: 500; }
.offering-row-actions button[id^="duplicate-"]:hover { color: var(--color-ink); }
.offering-row-actions button[id^="delete-"]:hover { color: var(--color-danger-text); background: var(--color-danger-soft); }
@media (max-width: 639px) {
  .offering-row-actions {
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr;
    gap: var(--space-2);
    padding-top: var(--space-3);
  }
  .offering-row-actions .btn { width: 100%; justify-content: center; padding-inline: var(--space-2); }
  .offering-row-actions > :last-child:not(.toggle):not([id^="delete-"]) { grid-column: 1 / -1; }
  .offering-row-select input[type="checkbox"] { width: 20px; height: 20px; }
}

/* ---------- Offering drawer ---------- */
.offering-drawer { width: min(520px, 100vw); }
.offering-drawer .drawer-header {
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
}
.offering-drawer .drawer-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  margin: 0;
}
.offering-drawer #close-drawer {
  width: 40px; height: 40px; padding: 0;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  color: var(--color-ink-70);
  justify-content: center;
}
.offering-drawer #close-drawer:hover { background: var(--color-ink-10); }
.offering-drawer .drawer-body { padding: var(--space-5); }
.offering-drawer .field { margin-bottom: var(--space-4); }
.offering-drawer .field .hint { line-height: 1.5; }
.offering-drawer .type-toggle {
  gap: 2px; padding: 3px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}
.offering-drawer .type-btn {
  border: 0; background: transparent; border-radius: var(--radius-full);
  min-height: 40px; color: var(--color-ink-50);
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.offering-drawer .type-btn.active {
  background: var(--color-surface); color: var(--color-indigo);
  box-shadow: 0 1px 3px rgba(11, 14, 26, 0.14);
}
/* Save stays in reach however long the form gets. */
.offering-drawer .wizard-actions {
  position: sticky;
  bottom: calc(-1 * var(--space-5));
  z-index: 3;
  margin: var(--space-5) calc(-1 * var(--space-5)) calc(-1 * var(--space-5));
  padding: var(--space-3) var(--space-5) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 14px -10px rgba(11, 14, 26, 0.25);
}
@media (max-width: 520px) {
  .offering-drawer .drawer-body { padding: var(--space-4); }
  .offering-drawer .wizard-actions { margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-4); bottom: calc(-1 * var(--space-4)); margin-bottom: calc(-1 * var(--space-4)); }
  .offering-drawer .wizard-actions .btn-primary { flex: 1 1 auto; }
}

/* ---------- Settings ---------- */
.settings-section-card {
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-5);
  border-radius: var(--radius-lg);
  scroll-margin-top: calc(var(--settings-sticky-top, 0px) + 64px);
}
.settings-section-card > .settings-section-heading,
.settings-section-card .settings-section-header .settings-section-heading {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--color-ink);
  margin: 0 0 var(--space-4);
}
.settings-section-card > .settings-section-heading + .hint { margin: calc(-1 * var(--space-3)) 0 var(--space-4); }
.settings-profile-subheading {
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-70);
}
input[type="datetime-local"] {
  width: 100%;
  min-height: var(--touch-target-min);
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
}
@media (min-width: 640px) { input[type="datetime-local"] { max-width: 320px; } }

/* Section bar */
.settings-nav {
  position: sticky;
  top: var(--settings-sticky-top, 0px);
  z-index: 15;
  margin: 0 calc(-1 * var(--space-4)) var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: color-mix(in srgb, var(--color-surface-alt) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.settings-nav-track {
  display: flex; gap: var(--space-2);
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  padding-right: 28px;
}
.settings-nav-track::-webkit-scrollbar { display: none; }
.settings-nav-chip {
  flex: 0 0 auto; appearance: none; cursor: pointer;
  min-height: 36px; padding: 0 var(--space-4);
  border: 1px solid var(--color-border); border-radius: var(--radius-full);
  background: var(--color-surface); color: var(--color-ink-70);
  font: inherit; font-size: var(--text-sm); font-weight: 600; white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.settings-nav-chip:hover { border-color: var(--color-ink-30); color: var(--color-ink); }
.settings-nav-chip[aria-current="true"] { background: var(--color-indigo); border-color: var(--color-indigo); color: #fff; }
.settings-nav-chip:focus-visible { outline: 2px solid var(--color-indigo); outline-offset: 2px; }
@media (min-width: 901px) { .settings-nav { margin-inline: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); } }

/* Save bar: always reachable, never covering the phone's bottom bar */
.settings-save-bar {
  position: sticky;
  bottom: var(--settings-sticky-bottom, 0px);
  z-index: 14;
  display: flex; justify-content: flex-end;
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (max-width: 640px) {
  .settings-section-card { padding: var(--space-4); margin-bottom: var(--space-4); }
  .settings-save-bar { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); }
  .settings-save-bar .btn { width: 100%; }
}

/* ==============================================================
   v1.35.0: Service requests

   List: who, what they want, and what to do next, at a glance, with
   the start of the buyer's own message. Detail: the buyer and their
   message come first, then the decision, then payment and history.
   Built from existing tokens; behaviour is unchanged.
   ============================================================== */

/* ---------- List ---------- */
.request-row {
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
}
.request-row > .customer-avatar { width: 44px; height: 44px; margin-top: 2px; }
.request-row-new { border-left: 3px solid var(--color-indigo); }
.request-row .chevron { align-self: center; color: var(--color-ink-30); }
.request-row-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.request-row-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
}
.request-row .badge {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  padding: 2px var(--space-2);
}
.request-row-service {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-3);
  margin: var(--space-1) 0 0;
  font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-70);
}
.request-row-budget { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-ink); }
.request-row-message {
  margin: var(--space-2) 0 0;
  padding-left: var(--space-3);
  border-left: 2px solid var(--color-border);
  font-size: var(--text-sm); line-height: 1.5; color: var(--color-ink-50);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.request-row-booking { margin: var(--space-2) 0 0; }
.request-row-meta {
  margin: var(--space-2) 0 0;
  font-size: var(--text-xs); color: var(--color-ink-50);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2);
}
.request-row-next { font-weight: 600; color: var(--color-indigo); }
.request-row-next::before { content: '\00b7'; margin-right: var(--space-2); color: var(--color-ink-30); font-weight: 400; }

/* ---------- Detail drawer ---------- */
.request-drawer { width: min(560px, 100vw); }
.request-drawer .drawer-header { padding: var(--space-4) var(--space-5); background: var(--color-surface); }
.request-drawer .drawer-header h3 { font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: -0.01em; margin: 0; }
.request-drawer #close-request-detail {
  width: 40px; height: 40px; padding: 0; justify-content: center;
  border-radius: var(--radius-full); background: var(--color-surface-alt); color: var(--color-ink-70);
}
.request-drawer #close-request-detail:hover { background: var(--color-ink-10); }
.request-drawer .drawer-body { padding: var(--space-4); background: var(--color-surface-alt); }

.request-drawer .detail-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.request-drawer .detail-section:last-child { border-bottom: 1px solid var(--color-border); }
.request-drawer .detail-section h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-ink-50);
  margin: 0 0 var(--space-3);
}

/* Status: calm, with the urgent state marked by a quiet accent bar */
.request-drawer .order-status-banner-section { background: var(--color-surface); padding: var(--space-4); }
.request-drawer .order-status-banner-urgent { background: var(--color-warn-soft); border-color: transparent; border-left: 4px solid var(--color-warn); }
.request-drawer .order-status-banner-header { margin-bottom: var(--space-2); }
.request-drawer .order-status-banner-icon { display: none; }
.request-drawer .order-status-banner-section .badge { font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.request-drawer .order-status-banner-next-action { margin: 0 0 var(--space-1); font-size: var(--text-base); }
.request-drawer .order-status-banner-explanation { color: var(--color-ink-70); line-height: 1.5; margin: 0 0 var(--space-2); }
.request-drawer .order-status-banner-section .hint-spaced { margin: 0; }

/* Customer */
.request-customer-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); min-width: 0; }
.request-customer-id { min-width: 0; }
.request-drawer .detail-section .request-customer-name {
  margin: 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600;
  letter-spacing: -0.005em; color: var(--color-ink); overflow-wrap: anywhere;
}
.request-customer-line { margin: 2px 0 0; font-size: var(--text-sm); color: var(--color-ink-50); overflow-wrap: anywhere; }
.request-drawer .order-contact-row { flex-wrap: wrap; margin: 0 0 var(--space-2); }
.request-drawer .order-contact-icon-btn { width: auto; height: 40px; padding: 0 var(--space-4) 0 var(--space-3); gap: var(--space-2); }
.order-contact-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-70); }

/* Their request */
.request-brief-service {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.005em; line-height: 1.3;
  overflow-wrap: anywhere;
}
.request-brief-message {
  margin: 0;
  padding: var(--space-4);
  background: var(--color-surface-alt);
  border-left: 3px solid var(--color-indigo);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-base); line-height: 1.65; color: var(--color-ink);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.request-brief-empty { margin: 0; font-size: var(--text-sm); color: var(--color-ink-50); }
.request-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3);
  margin: var(--space-4) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--color-border);
}
.request-facts dt { font-size: var(--text-xs); color: var(--color-ink-50); margin-bottom: 2px; }
.request-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.request-brief-photos { margin-top: var(--space-4); }
.request-brief-photos-label { margin: 0 0 var(--space-2); font-size: var(--text-xs); color: var(--color-ink-50); }
.request-drawer .request-image-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--color-border); }

/* Decision, messages */
.request-drawer .status-actions-primary { margin-top: var(--space-1); }
.request-drawer .order-message-thread-section { margin-bottom: 0; }
.request-drawer #order-message-reply-btn { width: 100%; justify-content: center; min-height: var(--height-control-md); }

@media (max-width: 520px) {
  .request-drawer .drawer-body { padding: var(--space-3); }
  .request-drawer .detail-section { padding: var(--space-4) var(--space-3); border-radius: var(--radius-md); }
  .request-row > .customer-avatar { width: 40px; height: 40px; }
}

@media (max-width: 640px) {
  .dash-page-controls:has(#status-filter) { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); align-items: center; }
  .dash-page-controls:has(#status-filter) .search-field { grid-column: 1 / -1; margin: 0; }
  .dash-page-controls:has(#status-filter) .status-filter-field { margin: 0; min-width: 0; }
  .dash-page-controls:has(#status-filter) .status-filter-field select { width: 100%; }
  .dash-page-controls:has(#status-filter) .export-dropdown .btn { min-height: var(--touch-target-min); }
}

/* Request drawer: quiet text buttons sit flush, alternate-send options read as chips */
.request-drawer .detail-section > .btn-ghost.btn-sm,
.request-drawer .status-actions .btn-ghost { padding-inline: 0; min-height: var(--height-control-sm); }
.request-drawer .status-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.request-drawer .status-actions:has(.btn-ghost) { gap: var(--space-1) var(--space-5); }
.request-drawer .message-send-via { gap: var(--space-2); align-items: center; margin-top: var(--space-3); }
.request-drawer .message-send-via-btn {
  border: 1px solid var(--color-border); border-radius: var(--radius-full);
  padding-inline: var(--space-4); min-height: var(--height-control-sm);
  background: var(--color-surface); color: var(--color-ink-70); font-weight: 600;
}
.request-drawer .message-send-via-btn:hover { border-color: var(--color-ink-30); color: var(--color-ink); }

/* ==============================================================
   v1.36.0: Add / edit offering, and Bookings polish
   ============================================================== */

/* ---------- Offering form: sections ---------- */
.offering-drawer .drawer-body { background: var(--color-surface-alt); }
.offering-drawer .drawer-body > .field:first-of-type { /* Product / Service switch */
  padding: var(--space-4); margin-bottom: var(--space-3);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}
.offering-drawer .drawer-body > .field:first-of-type > label { margin-bottom: var(--space-2); }
.of-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  min-width: 0;
}
.of-section-title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--color-ink);
}
.of-section > :last-child, .of-section > .field:last-child { margin-bottom: 0; }
/* Nothing to show for this type of offering: no empty heading. */
.of-section:has(> #custom-request-field:empty) { display: none; }
.of-section > #pricing-fields:empty, .of-section > #additional-currencies-field:empty { display: none; }

/* Toggle rows read as one tidy list, label left and switch right */
.offering-drawer .toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) 0; margin: 0;
  font-size: var(--text-base); font-weight: 500; color: var(--color-ink);
}
.offering-drawer .toggle-row + .hint { margin: calc(-1 * var(--space-1)) 0 var(--space-3); line-height: 1.5; }
.offering-drawer .toggle-row .toggle { flex-shrink: 0; }

/* Other currencies: one clear row per currency */
.offering-drawer .additional-currency-list {
  max-height: 288px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 0 var(--space-4);
}
.offering-drawer .additional-currency-toggle { padding: var(--space-3) 0; font-size: var(--text-sm); font-weight: 600; }
.offering-drawer .o-currency-price { margin: 0 0 var(--space-3); }
.offering-drawer .additional-currency-row { padding: 0; }

/* Sales and codes: quiet panels, not loud tinted blocks */
.offering-drawer .sale-price-section {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-1) var(--space-4);
  margin-top: var(--space-3);
}
.offering-drawer .sale-price-section .toggle-row { padding: var(--space-3) 0; }
.offering-drawer .sale-price-section #sale-detail-fields { padding: 0 0 var(--space-3); }

/* Photos: a clear drop area instead of a bare file button */
.of-section-photos input[type="file"] {
  display: block; width: 100%;
  padding: var(--space-5) var(--space-4);
  border: 1.5px dashed var(--color-ink-30);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  color: var(--color-ink-50);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.of-section-photos input[type="file"]:hover { border-color: var(--color-indigo); background: var(--color-indigo-soft); }
.of-section-photos input[type="file"]::file-selector-button { margin-right: var(--space-3); }
.of-section-photos .image-preview-row { margin-top: var(--space-3); }
.of-section-photos .field { margin-bottom: 0; }
.of-section-photos .image-preview-row:empty { display: none; }
.of-section-photos .focal-editor { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }

/* The save bar sits at the bottom edge, not inside the last card */
.offering-drawer .wizard-actions { margin-top: var(--space-3); }
@media (max-width: 520px) { .of-section { padding: var(--space-4) var(--space-3); border-radius: var(--radius-md); } }

/* ---------- Bookings ---------- */
.bk-row { grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--space-3) var(--space-4); border-radius: var(--radius-lg); }
.bk-row .badge { font-family: var(--font-body); text-transform: none; letter-spacing: 0; padding: 2px var(--space-2); }
.bk-main { gap: 1px; }
@media (max-width: 640px) {
  .bk-row { grid-template-columns: 92px minmax(0, 1fr); }
  .bk-row .bk-tags { grid-column: 2; justify-content: flex-start; }
  .bk-queue-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); }
  .bk-queue-row .bk-queue-act { justify-self: end; }
}
.offering-drawer .toggle-row { border-bottom: none; }
.offering-drawer #additional-currencies-field { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.offering-drawer #additional-currencies-field > .field { margin-bottom: 0; }
.offering-drawer #additional-currencies-field > .field > label { font-size: var(--text-base); }
/* Booking options, once switched on, sit in their own quiet panel */
.offering-drawer .booking-minutes-field {
  max-width: none;
  margin: var(--space-2) 0 0; padding: var(--space-4);
  background: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md);
}
.offering-drawer .booking-minutes-field[hidden] { display: none; }
.offering-drawer .booking-buffer-label { display: block; margin-top: var(--space-4); }
.offering-drawer .booking-minutes-field select { width: 100%; }
.offering-drawer .booking-minutes-field select { max-width: none; }
@media (max-width: 640px) {
  .bk-service { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
.offering-drawer #o-booking-buffer { max-width: none; }

/* ===== v1.37.0 Orders: list rows + detail drawer ===== */
.order-row {
  align-items: flex-start; justify-content: flex-start;
  gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg);
}
.order-row > .customer-avatar { width: 44px; height: 44px; margin-top: 2px; }
.order-row-new { border-left: 3px solid var(--color-indigo); }
.order-row .chevron { align-self: center; color: var(--color-ink-30); }
.order-row-main { min-width: 0; flex: 1; }
.order-row-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.order-row-name { font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.order-row .badge { font-family: var(--font-body); text-transform: none; letter-spacing: 0; padding: 2px var(--space-2); }
.order-row-items {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3);
  margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--color-ink-70);
}
.order-row-items-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-row-total { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--color-ink); }
.order-row-meta {
  margin: var(--space-1) 0 0; font-size: var(--text-xs); color: var(--color-ink-50);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2);
}
.order-row-next { font-weight: 600; color: var(--color-indigo); }
.order-row-next::before { content: '\00b7'; margin-right: var(--space-2); color: var(--color-ink-30); font-weight: 400; }

.order-drawer #close-order-detail {
  min-width: 40px; min-height: 40px; border-radius: 50%; padding: 0; display: inline-flex; align-items: center; justify-content: center;
}
.order-drawer #close-order-detail:hover { background: var(--color-ink-10); }
.order-drawer .detail-line-item { padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); gap: var(--space-3); }
.order-drawer .detail-line-item > span:last-child { font-variant-numeric: tabular-nums; flex: none; }
.order-drawer .detail-line-item > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.order-drawer .detail-total { border-bottom: 0; padding-top: var(--space-3); font-size: var(--text-lg); font-family: var(--font-display); }
.order-drawer .detail-section > p { margin: 0 0 var(--space-1); overflow-wrap: anywhere; }
.order-drawer .order-contact-row { flex-wrap: wrap; }
.order-drawer #resend-confirmation-btn { padding-inline: 0; }
.order-drawer textarea { width: 100%; }
@media (max-width: 640px) {
  .order-row { padding: var(--space-3); gap: var(--space-3); }
  .order-row > .customer-avatar { width: 40px; height: 40px; }
  .order-drawer .order-contact-icon-btn { flex: 1 1 auto; justify-content: center; }
}
.order-row-next { flex-basis: 100%; margin-top: 2px; }
.order-row-next::before { content: none; }

/* ===== v1.38.0 Quotes (business side) ===== */
.quote-chip {
  display: flex; align-items: center; gap: var(--space-2);
  margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--color-ink-70);
}
.quote-chip strong { font-weight: 600; color: var(--color-ink); }
.quote-chip span:last-child { font-variant-numeric: tabular-nums; }
.quote-chip-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--color-indigo); }
.quote-chip-good .quote-chip-dot { background: var(--color-mint); }
.quote-chip-bad .quote-chip-dot { background: var(--color-danger, #c62828); }
.quote-chip-muted .quote-chip-dot { background: var(--color-ink-30); }

.request-quote-card .quote-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.request-quote-card .quote-head h4 { margin: 0; }
.quote-pill {
  display: inline-flex; align-items: center; padding: 2px var(--space-3); border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600; white-space: nowrap;
}
.quote-pill-wait { background: var(--color-indigo-soft); color: var(--color-indigo); }
.quote-pill-good { background: var(--color-mint-soft); color: #0B7A5E; }
.quote-pill-bad { background: var(--color-danger-soft, #FDECEC); color: var(--color-danger-text, #B3261E); }
.quote-pill-muted { background: var(--color-ink-10); color: var(--color-ink-50); }

.quote-empty p { margin: 0 0 var(--space-3); line-height: 1.55; color: var(--color-ink-70); }
.quote-empty .hint { margin-top: calc(-1 * var(--space-1)); }
.quote-empty .btn { width: 100%; justify-content: center; }

.quote-summary { margin-bottom: var(--space-3); }
.quote-amount {
  margin: 0; font-family: var(--font-display); font-size: var(--text-3xl, 2rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.quote-sent-on { margin: var(--space-1) 0 var(--space-3); font-size: var(--text-xs); color: var(--color-ink-50); }
.quote-message {
  margin: 0; padding: var(--space-3) var(--space-4); background: var(--color-surface-alt);
  border-left: 3px solid var(--color-indigo); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere;
}
.quote-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-3);
  margin: var(--space-3) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--color-border);
}
.quote-facts dt { font-size: var(--text-xs); color: var(--color-ink-50); margin-bottom: 2px; }
.quote-facts dd { margin: 0; font-weight: 600; }

.quote-outcome { margin: 0 0 var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); line-height: 1.5; }
.quote-outcome p { margin: var(--space-1) 0 0; overflow-wrap: anywhere; }
.quote-outcome-good { background: var(--color-mint-soft); }
.quote-outcome-bad { background: var(--color-danger-soft, #FDECEC); }
.quote-outcome-muted { background: var(--color-surface-alt); color: var(--color-ink-70); }

.quote-actions { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; }
.quote-withdraw-btn { color: var(--color-danger-text, #B3261E); padding-inline: 0; }
.quote-confirm { margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-alt); }
.quote-confirm p { margin: 0 0 var(--space-3); line-height: 1.5; }
.quote-confirm-actions { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }

.quote-history { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--color-border); font-size: var(--text-sm); }
.quote-history summary { cursor: pointer; color: var(--color-ink-50); font-weight: 600; }
.quote-history ul { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.quote-history li { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-1) 0; font-variant-numeric: tabular-nums; }
.quote-history-meta { color: var(--color-ink-50); }

.quote-form .field { margin-bottom: var(--space-4); }
.quote-amount-row { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-2); }
.quote-amount-row input { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; font-variant-numeric: tabular-nums; }
.quote-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.quote-form-row .field { margin-bottom: var(--space-3); }
@media (max-width: 480px) { .quote-form-row { grid-template-columns: 1fr; } }
.quote-form-actions { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; margin-top: var(--space-2); }
.quote-form-actions .btn-primary { flex: 1 1 160px; justify-content: center; }
.quote-form-note { margin: var(--space-3) 0 0; }
.quote-form .field-error, .quote-confirm .field-error { margin: var(--space-1) 0 0; font-size: var(--text-sm); font-weight: 500; color: var(--color-danger-text, #B3261E); }
.quote-form .field-error::before { content: '\26A0\FE0E\00a0'; }
.quote-form [aria-invalid="true"] { border-color: var(--color-danger, #c62828); box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12); }
:is(html.is-dark-mode, .dash-shell.is-dark-theme) .quote-pill-good { color: #5FE3BC; }
:is(html.is-dark-mode, .dash-shell.is-dark-theme) .quote-pill-wait { color: #A9ABFF; }
:is(html.is-dark-mode, .dash-shell.is-dark-theme) .quote-outcome-good strong { color: #CFF7EA; }

/* v1.39.0 Quote totals on Home */
.quote-stats { margin-top: var(--space-5); }
.quote-stats-title { font-family: var(--font-display); font-size: var(--text-lg); margin: 0 0 var(--space-3); }
.quote-currency-note { color: var(--color-text-muted); }
.quote-amount-row select { min-width: 0; }

/* v1.40.0 Complete Storefront milestone */
.complete-card { margin-bottom: var(--space-4, 16px); display: flex; align-items: center; gap: 18px; padding: var(--space-5, 20px); border: 1px solid var(--color-border); background: linear-gradient(135deg, var(--color-indigo-soft) 0%, var(--color-surface) 70%); }
.complete-badge { flex: 0 0 72px; width: 72px; height: 72px; color: var(--color-indigo); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-indigo-soft); box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-indigo) 10%, transparent); }
.complete-badge-svg { width: 48px; height: 48px; }
.complete-body { min-width: 0; }
.complete-eyebrow { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-indigo); }
.complete-title { margin: 0; font-family: var(--font-display); font-size: var(--text-xl, 1.375rem); line-height: 1.25; }
.complete-text { margin: 6px 0 0; color: var(--color-ink-70); line-height: 1.55; }
.complete-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.complete-actions .btn { min-height: 44px; }
@media (max-width: 520px) { .complete-card { flex-direction: column; align-items: flex-start; gap: 16px; } .complete-badge { margin: 6px 0 0 6px; } }

/* Seller ordering controls (offerings list) */
.offering-row-order { display: inline-flex; align-items: center; margin-right: var(--space-1); }
.offering-row-order-label { display: none; font-size: var(--text-xs); font-weight: 600; opacity: .75; }
.offering-row-order-pill { display: inline-flex; align-items: center; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 28%, transparent); border-radius: 999px; padding: 2px; }
.offering-move-btn { width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; opacity: .9; }
.offering-move-btn:hover:not(:disabled) { background: color-mix(in srgb, currentColor 14%, transparent); opacity: 1; }
.offering-move-btn:disabled { opacity: .28; cursor: default; }
.offerings-order-hint { margin: 0 0 var(--space-3); }
@media (max-width: 639px) {
  /* On phones the order control gets its own tidy line so the grid of Edit / Duplicate / Delete stays untouched */
  .offering-row-actions .offering-row-order { grid-column: 1 / -1; order: -1; display: flex; justify-content: space-between; margin: 0; }
  .offering-row-actions .offering-row-order-label { display: inline; }
  .offering-row-actions .offering-move-btn { width: 36px; }
}

/* ---------- Offerings: display card + live storefront preview ---------- */
.offerings-display { margin-bottom: var(--space-4); }
.offerings-display-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.offerings-display-title { font-size: var(--text-base); font-weight: 700; margin: 0 0 var(--space-1); text-transform: none; letter-spacing: normal; }
.offerings-display-head .hint { margin: 0; }
.offerings-preview-btn { display: inline-flex; align-items: center; gap: var(--space-2); flex-shrink: 0; white-space: nowrap; }
.storefront-layout-picker-compact { gap: var(--space-3); }
.storefront-layout-picker-compact .storefront-layout-option { padding: var(--space-3); }
.storefront-layout-picker-compact .storefront-layout-preview { height: 40px; }
.offerings-display .storefront-layout-status { margin-top: var(--space-2); min-height: 1.1em; }
.branding-layout-moved .btn { margin-top: var(--space-2); }
@media (max-width: 480px) {
  .offerings-display-head { flex-direction: column; gap: var(--space-3); }
  .offerings-preview-btn { width: 100%; justify-content: center; }
  .offerings-display-head .hint { display: none; }
  .storefront-layout-picker-compact .storefront-layout-preview { height: 28px; }
  .offerings-display-head { margin-bottom: var(--space-3); }
  /* keep Grid / List side by side on phones, description tucked away */
  .storefront-layout-picker-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storefront-layout-picker-compact .storefront-layout-desc { display: none; }
}

.sfp { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
.sfp[hidden] { display: none; }
.sfp-backdrop { position: absolute; inset: 0; background: rgba(11, 14, 26, .45); opacity: 0; transition: opacity .2s ease; pointer-events: auto; }
.sfp.is-open .sfp-backdrop { opacity: 1; }
.sfp-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); background: var(--ola-theme-surface, var(--color-surface)); color: var(--ola-theme-text, var(--color-ink));
  border-left: 1px solid var(--color-border); box-shadow: -12px 0 40px rgba(11, 14, 26, .18);
  transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); pointer-events: auto;
}
.sfp.is-open .sfp-panel { transform: none; }
.sfp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.sfp-titles h2 { margin: 0; font-size: var(--text-lg, 1.125rem); font-weight: 700; text-transform: none; letter-spacing: normal; }
.sfp-sub { margin: 2px 0 0; font-size: var(--text-sm); color: var(--color-ink-50); }
.sfp-icon-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); color: inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.sfp-icon-btn:hover { background: var(--color-surface-alt); }
.sfp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.sfp-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--color-surface-alt); border: 1px solid var(--color-border); }
.sfp-seg button { min-height: 32px; padding: 0 var(--space-4); border: 0; border-radius: 999px; background: transparent; color: var(--color-ink-50); font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer; }
.sfp-seg button[aria-checked="true"] { background: var(--color-surface); color: var(--color-ink); box-shadow: 0 1px 3px rgba(11,14,26,.14); }
.sfp-tools { display: inline-flex; gap: var(--space-1); }
.sfp-tool { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--space-3); border-radius: 999px; border: 0; background: transparent; color: var(--color-ink-70, inherit); font: inherit; font-size: var(--text-sm); font-weight: 600; text-decoration: none; cursor: pointer; }
.sfp-tool:hover { background: var(--color-surface-alt); }
.sfp-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: var(--radius-lg, 14px); background: var(--color-surface-alt); border: 1px solid var(--color-border); display: flex; justify-content: center; }
.sfp-device { position: relative; overflow: hidden; background: #fff; }
.sfp[data-device="phone"] .sfp-device { box-shadow: 0 0 0 1px var(--color-border); }
.sfp-device iframe { display: block; border: 0; transform-origin: top left; background: #fff; }
.sfp-state { position: absolute; left: 50%; bottom: var(--space-4); transform: translate(-50%, 8px); display: inline-flex; align-items: center; gap: var(--space-2); padding: 8px 14px; border-radius: 999px; background: rgba(11,14,26,.86); color: #fff; font-size: var(--text-sm); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.sfp.is-loading .sfp-state { opacity: 1; transform: translate(-50%, 0); }
.sfp-spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: sfp-spin .8s linear infinite; }
@keyframes sfp-spin { to { transform: rotate(360deg); } }
.sfp-empty { margin: auto; padding: var(--space-6); text-align: center; color: var(--color-ink-50); max-width: 320px; line-height: 1.5; }
.sfp-empty[hidden] { display: none; }
.sfp-foot { margin: 0; font-size: var(--text-xs); color: var(--color-ink-50); text-align: center; }
@media (max-width: 640px) {
  .sfp-panel { width: 100%; padding: var(--space-3); border-left: 0; }
  .sfp-tool span { display: none; }
  .sfp-tool { width: 36px; justify-content: center; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .sfp-panel, .sfp-backdrop, .sfp-state { transition: none; } .sfp-spinner { animation-duration: 2s; } }
/* Wide screens: dock beside the page instead of covering it */
@media (min-width: 1400px) {
  .sfp.is-docked { inset: 0 0 0 auto; width: 460px; }
  .sfp.is-docked .sfp-backdrop { display: none; }
  .sfp.is-docked .sfp-panel { box-shadow: none; }
  body.has-sfp-dock .dash-shell { padding-right: 460px; }
}

/* ---------- v1.40.10 — drag-to-reorder + inline storefront preview ---------- */
.offering-card-row { position: relative; }
.offering-card-row.has-grip { padding-left: calc(var(--space-4) + 30px); }
.offering-grip {
  position: absolute; left: 0; top: 0; bottom: 0; width: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-ink-50, #6b7090); cursor: grab;
  touch-action: none; -webkit-user-select: none; user-select: none;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transition: color .15s ease, background-color .15s ease;
}
.offering-grip:hover { color: var(--color-ink-70, currentColor); background: color-mix(in srgb, currentColor 6%, transparent); }
.offering-grip:active { cursor: grabbing; }
#offerings-list.is-sorting { -webkit-user-select: none; user-select: none; }
.offering-card-row.is-dragging {
  z-index: 20; cursor: grabbing; will-change: transform;
  box-shadow: 0 14px 34px rgba(11, 14, 26, .22), 0 2px 6px rgba(11, 14, 26, .12);
  border-color: var(--color-indigo);
  transition: box-shadow .15s ease;
}
.offering-card-row.is-dragging .offering-grip { cursor: grabbing; color: var(--color-indigo); }
body.is-sorting-rows, body.is-sorting-rows * { cursor: grabbing !important; }
@media (max-width: 639px) {
  .offering-card-row.has-grip { padding-left: calc(var(--space-3) + 30px); }
  .offering-grip { width: 34px; }
}

/* Layout choice + live preview, side by side (phones included) */
.offerings-display-body { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: var(--space-4); align-items: start; }
.offerings-display-controls { min-width: 0; }
.offerings-mini { min-width: 0; }
@media (min-width: 641px) { .offerings-display-body { grid-template-columns: minmax(0, 1fr) 196px; gap: var(--space-5); } }
@media (max-width: 640px) {
  .offerings-display-body .storefront-layout-picker-compact { grid-template-columns: minmax(0, 1fr); }
  .offerings-display-body .storefront-layout-picker-compact .storefront-layout-option { flex-direction: row; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); min-height: 56px; text-align: left; }
  .offerings-display-body .storefront-layout-picker-compact .storefront-layout-preview { width: 40px; height: 28px; flex: none; }
}
/* the docked full preview already shows it — don't show the same thing twice */
body.has-sfp-dock .offerings-mini { display: none; }
body.has-sfp-dock .offerings-display-body { grid-template-columns: minmax(0, 1fr); }

.sfm { width: 100%; }
.sfm-device {
  position: relative; overflow: hidden;
  border: 4px solid #1b1e33; border-radius: 22px; background: #fff;
  box-shadow: 0 8px 22px rgba(11, 14, 26, .18);
}
.sfm-frame { display: block; border: 0; transform-origin: top left; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: #fff; }
.sfm[data-state="ready"] .sfm-frame { opacity: 1; }
.sfm-skeleton { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px 12px; background: #fff; transition: opacity .25s ease; pointer-events: none; }
.sfm[data-state="ready"] .sfm-skeleton, .sfm[data-state="error"] .sfm-skeleton, .sfm[data-state="empty"] .sfm-skeleton { opacity: 0; }
.sfm-skeleton i { display: block; height: 38px; border-radius: 8px; background: linear-gradient(90deg, #eceef6 25%, #f6f7fb 50%, #eceef6 75%); background-size: 200% 100%; animation: sfm-shimmer 1.4s linear infinite; }
.sfm-skeleton i:first-child { height: 54px; }
@keyframes sfm-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sfm-skeleton i { animation: none; } .sfm-frame, .sfm-skeleton { transition: none; } }
.sfm-open {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0 0 10px; background: transparent; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center; border-radius: inherit;
}
.sfm-open span {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px;
  background: rgba(11, 14, 26, .82); color: #fff; font-size: 12px; font-weight: 700;
  opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease;
}
.sfm-open:hover span, .sfm-open:focus-visible span { opacity: 1; transform: none; }
.sfm-open:focus-visible { outline: 3px solid var(--color-indigo); outline-offset: -3px; }
@media (hover: none) { .sfm-open span { opacity: .92; transform: none; } }
.sfm-msg { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-3); text-align: center; background: #fff; color: #4a4f6a; font-size: 12px; line-height: 1.4; }
.sfm-msg[hidden] { display: none; }
.sfm-msg p { margin: 0; }
.sfm-cap { margin: var(--space-2) 0 0; text-align: center; font-size: var(--text-xs); color: var(--color-ink-50); }

@media (max-width: 360px) {
  .offerings-display-body { grid-template-columns: minmax(0, 1fr) 116px; gap: var(--space-3); }
  .offerings-display-body .storefront-layout-picker-compact .storefront-layout-option { padding: var(--space-2); gap: var(--space-2); }
  .offerings-display-body .storefront-layout-picker-compact .storefront-layout-preview { width: 26px; height: 22px; }
  .offerings-display-body .storefront-layout-picker-compact .storefront-layout-label { font-size: var(--text-sm); }
}

/* the order row must never push a card wider than the screen (the grip takes a little width) */
.offering-row-order-label { min-width: 0; flex: 1 1 auto; line-height: 1.25; }
.offering-row-order-pill { flex: none; }
@media (max-width: 639px) { .offering-row-actions .offering-row-order { gap: var(--space-2); min-width: 0; } .offering-row-actions { min-width: 0; } }
@media (max-width: 360px) {
  .offering-card-row.has-grip { padding-left: calc(var(--space-2) + 28px); }
  .offering-grip { width: 28px; }
}

@media (max-width: 360px) {
  .offering-row-actions { grid-template-columns: auto repeat(3, minmax(0, 1fr)); }
  .offering-row-actions .btn { font-size: 12px; padding-inline: 4px; }
}

/* ---- v1.44.1: Settings areas (Storefront | Account & security) ---- */
.settings-areas {
  display: flex; gap: var(--space-1); padding: 4px; margin: 0 0 var(--space-4);
  background: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: var(--radius-full);
}
.settings-area-tab {
  flex: 1 1 0; appearance: none; cursor: pointer; min-height: 40px; padding: 0 var(--space-3);
  border: 0; border-radius: var(--radius-full); background: transparent; color: var(--color-ink-70);
  font: inherit; font-size: var(--text-sm); font-weight: 600; white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.settings-area-tab:hover { color: var(--color-ink); }
.settings-area-tab[aria-selected="true"] { background: var(--color-indigo); color: #fff; box-shadow: var(--shadow-sm); }
.settings-area-tab:focus-visible { outline: 2px solid var(--color-indigo); outline-offset: 2px; }
.settings-pane[hidden] { display: none; }
.settings-pane-intro { margin: 0 0 var(--space-3); }
@media (min-width: 901px) { .settings-areas { max-width: 420px; } }

/* ---- v1.44.1: phone "More" sheet — never break a word mid-word ---- */
.more-sheet-label { overflow-wrap: normal; word-break: normal; hyphens: none; line-height: 1.2; }
.more-sheet-link { gap: var(--space-2); padding: var(--space-3) var(--space-2) var(--space-3) var(--space-3); font-size: 0.9375rem; }
@media (max-width: 380px) {
  .more-sheet-link { font-size: 0.875rem; padding-inline: var(--space-2); }
  .more-sheet-icon svg { width: 20px; height: 20px; }
}

/* ---- v1.47.0: Storefront | Account tabs stay pinned while scrolling ---- */
.settings-areas-bar {
  position: sticky; top: var(--settings-header-top, 0px); z-index: 16;
  margin: 0 calc(-1 * var(--space-4)) var(--space-3); padding: var(--space-2) var(--space-4);
  background: color-mix(in srgb, var(--color-surface-alt) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.settings-areas-bar .settings-areas { margin: 0; }
.settings-areas-bar .settings-area-tab { min-height: 38px; }
.settings-pane { scroll-margin-top: calc(var(--settings-sticky-top, 0px) + 8px); }
@media (min-width: 901px) { .settings-areas-bar { margin-inline: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); } }
#settings-pane-account .card { scroll-margin-top: calc(var(--settings-sticky-top, 0px) + 64px); }
