/* ============================================================
   Bok — design tokens (single source of truth). Monochrome, premium dark.
   Neutrals biased a touch warm so they read as chosen, not default grey.
   ============================================================ */
:root {
  --bg:        #0b0a09;
  --surface:   #161513;
  --surface-2: #201e1b;
  --surface-3: #2a2825;
  --line:      #322f2b;
  --line-2:    #3d3a35;
  --text:      #f6f4f0;
  --body:      #a7a39c;
  --muted:     #726e66;
  --inverse:   #0b0a09;

  --accent:    #f6f4f0;      /* monochrome: white on dark */
  --success:   #3f9e5a;
  --danger:    #e5484d;
  --warn:      #d6a24a;

  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s6:24px; --s8:32px; --s12:48px;

  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-round: "SF Pro Rounded", ui-rounded, "Segoe UI", var(--font-ui);
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 0 rgba(255,255,255,.05) inset, 0 2px 5px rgba(0,0,0,.35);
  --shadow-md: 0 1px 0 rgba(255,255,255,.05) inset, 0 8px 24px -4px rgba(0,0,0,.55);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.07) inset, 0 16px 40px -8px rgba(0,0,0,.7);
  --shadow:    0 1px 0 rgba(255,255,255,.03) inset, 0 24px 60px -30px rgba(0,0,0,.85);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font-family: inherit; }
::selection { background: rgba(246,244,240,.18); }

/* ---- Per-creator LIGHT theme for the public booking page ----
   Opt-in: book.js sets data-theme="light" on <html>. Custom properties set on
   the root override :root for the whole subtree, so the same components recolor
   coherently. A chosen brand accent (--accent/--inverse) is layered inline. */
:root[data-theme="light"] {
  --bg:        #faf9f7;
  --surface:   #ffffff;
  --surface-2: #f3f1ee;
  --surface-3: #eae7e1;
  --line:      #e7e3dd;
  --line-2:    #d8d3ca;
  --text:      #1b1917;
  --body:      #57534c;
  --muted:     #8f8a80;
  --inverse:   #ffffff;
  --accent:    #1b1917;      /* dark buttons on light — overridden if a brand colour is set */
  --shadow-sm: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 5px rgba(0,0,0,.08);
  --shadow-md: 0 1px 0 rgba(255,255,255,.9) inset, 0 8px 20px -3px rgba(0,0,0,.12);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.9) inset, 0 16px 36px -6px rgba(0,0,0,.18);
  --shadow: 0 1px 0 rgba(0,0,0,.02) inset, 0 20px 50px -30px rgba(0,0,0,.28);
}
:root[data-theme="light"] ::selection { background: rgba(0,0,0,.10); }

/* ---- wordmark ---- */
.wordmark {
  font-family: var(--font-round);
  font-weight: 600; letter-spacing: -.02em;
  color: var(--text);
}
.wordmark .dot { color: var(--muted); }

/* ---- layout ---- */
.page { min-height: 100vh; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--s6); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: var(--s6) 0; }
.topbar .brand { font-size: 26px; }
.booker-bar { justify-content: center; padding: 18px 0 20px; }
.booker-bar .brand { font-size: 27px; }
.topbar-actions { display: flex; align-items: center; gap: var(--s4); color: var(--body); font-size: 13.5px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  padding: 10px 18px; font-size: 14px; font-weight: 550; cursor: pointer;
  transition: transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .14s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
  position: relative;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(1px) scale(.985);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary {
  background: var(--accent); color: var(--inverse);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 3px 8px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.4);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 20px -2px rgba(255,255,255,.25), 0 4px 10px rgba(0,0,0,.45);
}
.btn-primary:active {
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 1px 3px rgba(0,0,0,.5);
}
.btn-secondary {
  background: var(--surface-2); color: var(--text); border-color: var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 3px 8px rgba(0,0,0,.35);
}
.btn-secondary:hover {
  border-color: var(--line-2); background: var(--surface-3);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 16px rgba(0,0,0,.5);
}
.btn-secondary:active {
  box-shadow: 0 1px 0 rgba(255,255,255,.02) inset, 0 1px 2px rgba(0,0,0,.4);
}
.btn-ghost { background: transparent; color: var(--body); }
.btn-ghost:hover {
  color: var(--text); background: var(--surface);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 4px 12px rgba(0,0,0,.3);
}
.btn-ghost:active {
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.btn-danger {
  background: transparent; color: var(--danger); border-color: color-mix(in oklab, var(--danger) 40%, var(--line));
  box-shadow: 0 1px 0 rgba(255,255,255,.02) inset, 0 2px 6px rgba(0,0,0,.25);
}
.btn-danger:hover {
  background: color-mix(in oklab, var(--danger) 14%, transparent);
  border-color: var(--danger);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 6px 16px color-mix(in oklab, var(--danger) 20%, transparent);
}
.btn-danger:active {
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---- form controls ---- */
label.field { display: block; margin-bottom: var(--s4); }
label.field > .lbl { display: block; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.input, .textarea, .select {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 11px 13px; font-size: 14.5px; font-family: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--line-2); background: var(--surface-2); }
.textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

/* ---- custom dropdown (replaces the native <select> popup) ---- */
.dd { position: relative; }
.dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 11px 13px; font-size: 14.5px; font-family: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s ease, background .15s ease; }
.dd-btn:hover { border-color: var(--line-2); }
.dd.open .dd-btn { border-color: var(--line-2); background: var(--surface-2); }
.dd-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-chev { color: var(--muted); flex: none; transition: transform .16s ease; }
.dd.open .dd-chev { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 5px;
  box-shadow: var(--shadow); max-height: 264px; overflow-y: auto;
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .13s ease, transform .13s ease; }
.dd.open .dd-menu { opacity: 1; transform: none; pointer-events: auto; }
.dd-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 11px; border-radius: 9px; font-size: 14px; color: var(--body); cursor: pointer; }
.dd-opt:hover { background: var(--surface-3); color: var(--text); }
.dd-opt.sel { color: var(--text); }
.dd-opt.sel::after { content: "✓"; color: var(--accent); font-size: 12px; }
.err { color: var(--danger); font-size: 12.5px; margin-top: 6px; }
.row { display: flex; gap: var(--s3); }
.row > * { flex: 1; }

/* ---- cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s ease, border-color .16s ease;
}
.callout {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4);
  box-shadow: var(--shadow-sm);
}

/* ---- chips / badges ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--surface-2); border: 1px solid var(--line); color: var(--body);
  border-radius: var(--r-pill); padding: 5px 12px; font-size: 13px;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 2px 4px rgba(0,0,0,.25);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.chip:hover {
  transform: translateY(-1px);
  border-color: var(--line-2);
  box-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 4px 8px rgba(0,0,0,.35);
}
.chip button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0; }
.chip button:hover { color: var(--danger); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  border-radius: var(--r-pill); padding: 4px 10px; border: 1px solid var(--line); color: var(--body); background: var(--surface-2);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 1px 3px rgba(0,0,0,.25);
  transition: transform .12s ease, box-shadow .12s ease;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.accepted { color: var(--success); border-color: color-mix(in oklab, var(--success) 40%, var(--line)); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 2px 6px color-mix(in oklab, var(--success) 15%, transparent); }
.badge.declined { color: var(--danger); border-color: color-mix(in oklab, var(--danger) 40%, var(--line)); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 2px 6px color-mix(in oklab, var(--danger) 15%, transparent); }
.badge.negotiate, .badge.manual_review { color: var(--warn); border-color: color-mix(in oklab, var(--warn) 40%, var(--line)); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 2px 6px color-mix(in oklab, var(--warn) 15%, transparent); }
.badge.pending { color: var(--body); }

/* ---- toggle ---- */
.toggle { position: relative; width: 40px; height: 22px; border-radius: var(--r-pill); background: var(--surface-3); border: 1px solid var(--line); cursor: pointer; transition: background .15s ease; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--body); transition: transform .16s ease, background .15s ease; }
.toggle[aria-checked="true"] { background: var(--accent); }
.toggle[aria-checked="true"]::after { transform: translateX(18px); background: var(--inverse); }

/* ---- segmented ---- */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px; }
.seg button { border: none; background: none; color: var(--muted); border-radius: var(--r-pill); padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface-3); color: var(--text); }

/* ---- toast ---- */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); padding: 12px 18px; border-radius: var(--r-pill);
  font-size: 14px; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 60; box-shadow: var(--shadow); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.danger { border-color: color-mix(in oklab, var(--danger) 50%, var(--line)); }

/* ---- utilities ---- */
.muted { color: var(--muted); } .body { color: var(--body); }
.stack { display: flex; flex-direction: column; }
.gap2 { gap: var(--s2); } .gap3 { gap: var(--s3); } .gap4 { gap: var(--s4); } .gap6 { gap: var(--s6); }
.between { display: flex; align-items: center; justify-content: space-between; }
.center { display: flex; align-items: center; }
.tabnum { font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.spin { width: 16px; height: 16px; border: 2px solid var(--line-2); border-top-color: var(--text); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ---- native entrance animations (no library) ---- */
@keyframes bokFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bokRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bokPop  { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
body { animation: bokFade .45s ease both; }                                  /* whole page fades in once */
.booking.enter { animation: bokPop .6s cubic-bezier(.2,.7,.2,1) both; }       /* booking card, first mount only */
.reel.reveal { animation: bokRise .55s cubic-bezier(.2,.7,.2,1) both; }       /* showcase reels stagger in */
.page-head { animation: bokRise .4s ease both; }                              /* dashboard view header on route change */
.inbox-item { animation: bokRise .4s ease both; }                             /* inbox rows */

/* ============================================================
   Booking page (public /b/:slug) — mirrors the reference layout
   ============================================================ */
.booking { display: grid; grid-template-columns: 250px 1fr 190px; align-items: stretch;
  max-width: 880px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.booking > * { padding: 20px; }
.booking .col-meta { border-right: 1px solid var(--line); }
.booking .col-time { border-left: 1px solid var(--line); }

.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3);
  display: grid; place-items: center; font-family: var(--font-round); font-weight: 600; color: var(--body); font-size: 16px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.meta-name { color: var(--body); font-size: 13.5px; margin: 12px 0 3px; }
.meta-title { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 14px; }
.meta-line { display: flex; align-items: center; gap: 9px; color: var(--body); font-size: 13.5px; margin-bottom: 9px; }
.meta-line svg { color: var(--muted); flex: none; }
.meta-offer { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
/* A chosen brand colour, surfaced on always-visible elements (book.js sets .has-accent
   on <html>) so the page visibly changes on load — not only on tap. */
.has-accent .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.has-accent .meta-line svg { color: var(--accent); }

/* calendar — compact */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-month { font-size: 15px; font-weight: 600; } .cal-month span { color: var(--muted); font-weight: 500; }
.cal-nav { display: flex; gap: 4px; }
.icon-btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid transparent; background: none; color: var(--body); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; align-content: start; grid-auto-rows: 38px; }
.cal-dow { text-align: center; font-size: 10px; letter-spacing: .06em; color: var(--muted); padding-bottom: 7px; }
.cal-cell { height: 38px; align-self: stretch; display: grid; place-items: center; font-size: 13px; color: var(--muted);
  border-radius: 9px; border: none; background: none; font-variant-numeric: tabular-nums; }
.cal-cell.avail { background: var(--surface-3); color: var(--text); cursor: pointer; }
/* :not(.selected) so a tapped day keeps its accent — a hover selector would otherwise
   out-specify .selected and, with sticky hover on touch, grey the chosen day out. */
.cal-cell.avail:not(.selected):hover { background: var(--line-2); }
.cal-cell.selected { background: var(--accent); color: var(--inverse); font-weight: 600; }
.cal-cell.empty { visibility: hidden; }

/* time column — compact */
.time-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.time-date { font-size: 14px; font-weight: 600; } .time-date span { color: var(--muted); font-weight: 500; }
.time-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; padding-right: 2px; }
.slot {
  text-align: center; padding: 9px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 550; cursor: pointer; font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 2px 5px rgba(0,0,0,.25);
  transition: transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .14s ease, background .15s ease, border-color .15s ease;
  position: relative;
}
.slot:not(.selected):not(.reserved):hover {
  border-color: var(--line-2); background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 14px rgba(0,0,0,.45);
}
.slot:not(.selected):not(.reserved):active {
  transform: translateY(1px) scale(.985);
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.slot.selected {
  background: var(--accent); color: var(--inverse); border-color: var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 4px 14px rgba(0,0,0,.5);
}
.slot.reserved { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: var(--muted); background: var(--surface); border-style: dashed; cursor: not-allowed; box-shadow: none; }
.slot.reserved:hover { background: var(--surface); border-color: var(--line); transform: none; box-shadow: none; }
.slot .tag { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 7px; font-weight: 600; }
.slot-split { display: flex; gap: 6px; }
.slot-split .slot { flex: 1; white-space: nowrap; }
.slot-split .slot-dim { background: var(--surface-2); color: var(--muted); }
.slot-split .slot-book {
  flex: 1; background: var(--accent); color: var(--inverse); border-color: var(--accent); font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 3px 8px rgba(0,0,0,.3);
}
.slot-split .slot-book:hover {
  filter: brightness(1.08); transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 6px 16px rgba(0,0,0,.45);
}
.slot-split .slot-book:active {
  transform: translateY(1px) scale(.985);
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.time-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 24px 0; }

/* showcase — compact */
.showcase { margin: 36px 0 32px; }
.showcase h2 { font-family: var(--font-round); text-align: center; font-weight: 600; font-size: 18px; color: var(--body); margin: 0 0 20px; }
.reels { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: flex-start; }
.reel { width: 160px; aspect-ratio: 3/4; border-radius: var(--r-md); overflow: hidden; position: relative;
  background: linear-gradient(150deg, var(--surface-3), var(--surface)); border: 1px solid var(--line); display: flex; align-items: flex-end; }
.reel .cap { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 20px;
  color: var(--body); font-size: 13.5px; opacity: .5; }
/* image reels keep the picture's real proportions instead of a forced 3:4 crop */
.reel.has-img { aspect-ratio: auto; }
.reel.has-img .reel-img { position: static; display: block; width: 100%; height: auto; }
.reel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel .stat { position: absolute; left: 0; bottom: 0; z-index: 2; }
.reel.tap { cursor: pointer; transition: transform .12s ease; }
.reel.tap:hover { transform: translateY(-2px); }
.reel-link { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; }

/* lightbox (tap an image to enlarge) */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px;
  background: rgba(6,5,4,.82); cursor: zoom-out; opacity: 0; transition: opacity .16s ease; }
.lightbox.open { opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: var(--r-md); box-shadow: var(--shadow); }
.reel .stat { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; margin: 12px; color: #fff;
  font-size: 13.5px; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
/* ---- Public booking page growth promo ---- */
.book-promo {
  display: flex; justify-content: center; width: 100%; margin: 36px auto 16px; padding: 0 var(--s4);
}
.book-promo-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 14px 8px 20px; box-shadow: var(--shadow-sm);
  transition: transform .15s cubic-bezier(.2,.8,.2,1), box-shadow .15s ease, border-color .15s ease;
}
.book-promo-inner:hover {
  transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-md);
}
.book-promo-badge {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--body); white-space: nowrap; font-weight: 500;
}
.book-promo-badge b { color: var(--text); font-family: var(--font-round); }
.book-promo-btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: var(--r-pill); text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 1px 3px rgba(0,0,0,.25);
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.book-promo-btn:hover {
  background: var(--surface-3); border-color: var(--line-2); transform: translateY(-1px);
}
.book-promo-btn .arr { transition: transform .14s ease; display: inline-block; }
.book-promo-btn:hover .arr { transform: translateX(2px); }

@media (max-width: 580px) {
  .book-promo-inner { flex-direction: column; width: 100%; max-width: 360px; border-radius: var(--r-lg); text-align: center; padding: 14px; gap: 10px; }
  .book-promo-btn { width: 100%; justify-content: center; padding: 8px 12px; }
}

/* Post-booking modal promo */
.done-promo {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; margin: 16px 0 12px; text-align: left; box-shadow: var(--shadow-sm);
}
.done-promo-title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.done-promo-desc { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.done-promo-desc b { color: var(--body); }

/* ---- modal ---- */
.scrim { position: fixed; inset: 0; background: rgba(6,5,4,.66); display: grid; place-items: center; z-index: 50; padding: var(--s6);
  opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.scrim.open { opacity: 1; pointer-events: auto; }
.modal { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: var(--s8); box-shadow: var(--shadow); transform: translateY(10px); transition: transform .18s ease; max-height: 90vh; overflow-y: auto; }
.scrim.open .modal { transform: translateY(0); }
.modal h3 { margin: 0 0 4px; font-size: 19px; font-weight: 600; }
.modal .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }

/* ============================================================
   Dashboard (/app)
   ============================================================ */
.app-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: var(--s6) var(--s4); position: sticky; top: 0; height: 100vh; }
.side .brand { font-size: 24px; padding: 0 12px 26px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-md); color: var(--body);
  cursor: pointer; font-size: 14.5px; font-weight: 500; text-decoration: none; margin-bottom: 3px; }
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active { background: var(--surface-2); color: var(--text); }
.nav-link svg { color: var(--muted); }
.nav-link.active svg { color: var(--text); }
.side-foot { position: absolute; bottom: var(--s4); left: var(--s4); right: var(--s4); }
.acct { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.acct-av { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--surface-3); overflow: hidden; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--body); font-family: var(--font-round); }
.acct-av img { width: 100%; height: 100%; object-fit: cover; }
.acct-info { min-width: 0; flex: 1; }
.acct-name { font-size: 12.5px; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-plan { margin-top: 3px; }
.acct-signout { display: inline-block; margin: 10px 0 0 2px; color: var(--muted); font-size: 12.5px; text-decoration: none; }
.acct-signout:hover { color: var(--text); }

.main { padding: var(--s8) var(--s12); max-width: 980px; }
.page-head { margin-bottom: var(--s8); }
.page-head .kicker { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.page-head h1 { margin: 0; font-size: 27px; font-weight: 600; letter-spacing: -.01em; }
.page-head p { color: var(--body); margin: 8px 0 0; max-width: 62ch; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
.section {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s6); margin-bottom: var(--s6);
  box-shadow: var(--shadow-md);
}
.section h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.section .desc { color: var(--muted); font-size: 13px; margin: 0 0 18px; }

/* inbox */
.inbox-item {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-bottom: var(--s3); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s ease, border-color .16s ease;
}
.inbox-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}
.inbox-item.open {
  transform: none;
  border-color: var(--line-2);
  box-shadow: var(--shadow-lg);
}
.inbox-row { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s6); cursor: pointer; }
.inbox-row:hover { background: var(--surface-2); }
.inbox-who { min-width: 0; flex: 1; }
.inbox-who .nm { font-weight: 600; font-size: 14.5px; }
.inbox-who .em { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-meta { display: flex; align-items: center; gap: var(--s4); color: var(--body); font-size: 13px; }
.conf { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.inbox-detail { border-top: 1px solid var(--line); padding: var(--s6); background: var(--surface-2); display: none; }
.inbox-item.open .inbox-detail { display: block; }
.reason {
  color: var(--body); font-size: 13.5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; margin-bottom: var(--s4);
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 2px 6px rgba(0,0,0,.2);
}
.reason .src { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 5px; }
.draft-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px;
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 2px 6px rgba(0,0,0,.2);
}
.draft-box .input { border: none; background: none; font-weight: 600; }
.draft-box .textarea { border: none; background: none; min-height: 150px; font-family: var(--font-mono); font-size: 13px; color: var(--body); }
.detail-actions { display: flex; gap: var(--s3); margin-top: var(--s4); flex-wrap: wrap; }

/* ---- File attachments (Intake modal) ---- */
.attach-dropzone {
  border: 1.5px dashed var(--line-2); border-radius: var(--r-md); background: var(--surface-2);
  padding: 12px 14px; text-align: center; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.attach-dropzone:hover, .attach-dropzone.dragover {
  border-color: var(--accent); background: var(--surface-3); transform: translateY(-1px);
}
.attach-prompt {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13px; color: var(--body);
}
.attach-prompt svg { color: var(--muted); }
.attach-prompt b { color: var(--text); font-weight: 600; }
.attach-list {
  display: flex; flex-direction: column; gap: 6px; margin-top: 8px;
}
.attach-chip {
  display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 5px 8px; box-shadow: var(--shadow-sm);
  transition: transform .12s ease, border-color .15s ease;
}
.attach-chip:hover { border-color: var(--line-2); }
.chip-thumb {
  width: 32px; height: 32px; border-radius: 4px; object-fit: cover; background: var(--surface-3); flex: none;
}
.chip-icon {
  width: 32px; height: 32px; border-radius: 4px; background: var(--surface-2); display: grid; place-items: center;
  color: var(--muted); flex: none;
}
.chip-info { min-width: 0; flex: 1; }
.chip-name { display: block; font-size: 12.5px; font-weight: 550; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-size { display: block; font-size: 11px; color: var(--muted); }
.chip-remove {
  border: none; background: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 4px 6px;
  border-radius: 4px; line-height: 1; transition: color .12s ease, background .12s ease;
}
.chip-remove:hover { color: var(--danger); background: rgba(220,38,38,.12); }

/* ---- Inbox attachments display ---- */
.inbox-attachments {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; margin-bottom: var(--s4);
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 2px 6px rgba(0,0,0,.2);
}
.inbox-att-head {
  display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px;
}
.inbox-att-head svg { color: var(--accent); }
.inbox-att-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px;
}
.inbox-att-card {
  display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 8px 10px; text-decoration: none; color: inherit; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  transition: transform .14s cubic-bezier(.2,.8,.2,1), border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.inbox-att-card:hover {
  transform: translateY(-2px); border-color: var(--line-2); background: var(--surface-3); box-shadow: var(--shadow-md);
}
.inbox-att-card:active {
  transform: translateY(0) scale(.99);
}
.inbox-att-thumb {
  width: 40px; height: 40px; border-radius: 4px; overflow: hidden; background: var(--surface-3); flex: none;
}
.inbox-att-thumb img { width: 100%; height: 100%; object-fit: cover; }
.inbox-att-icon {
  width: 40px; height: 40px; border-radius: 4px; background: var(--surface-3); display: grid; place-items: center;
  color: var(--muted); flex: none;
}
.inbox-att-meta { min-width: 0; flex: 1; }
.inbox-att-name {
  display: block; font-size: 13px; font-weight: 550; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.inbox-att-size { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.inbox-att-dl { color: var(--muted); flex: none; display: flex; align-items: center; }
.inbox-att-card:hover .inbox-att-dl { color: var(--text); }


.filters { display: flex; gap: 6px; margin-bottom: var(--s6); flex-wrap: wrap; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-family: var(--font-round); font-size: 17px; color: var(--body); margin-bottom: 6px; }

/* preview panel */
.preview-frame { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s6); box-shadow: var(--shadow-sm); }

/* slot generator */
.slotgen { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.slotgen .field { flex: 0 0 auto; }
.slotgen .input, .slotgen .select { width: auto; min-width: 96px; }
.slotgen .dd { min-width: 116px; }
.slotgen #sl-gen { flex: 0 0 auto; }

/* weekday toggles */
.wk-row { display: flex; gap: 6px; flex-wrap: wrap; }
.wk {
  padding: 7px 0; width: 46px; text-align: center; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  border-radius: var(--r-md); font-size: 12.5px; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 2px 4px rgba(0,0,0,.25);
  transition: transform .12s cubic-bezier(.2,.8,.2,1), box-shadow .12s ease, border-color .15s ease, color .15s ease, background .15s ease;
}
.wk.on {
  background: var(--accent); color: var(--inverse); border-color: var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 3px 8px rgba(0,0,0,.35);
}
.wk:not(.on):hover {
  border-color: var(--line-2); color: var(--text); transform: translateY(-1.5px);
  box-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 4px 10px rgba(0,0,0,.35);
}
.wk:not(.on):active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(0,0,0,.25); }

/* showcase editor */
.sc-card {
  display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform .14s ease, box-shadow .14s ease;
}
.sc-card:hover { transform: translateY(-1.5px); box-shadow: var(--shadow-md); }
.sc-thumb { width: 66px; height: 88px; flex: none; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-3); display: grid; place-items: center; }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sc-thumb span { color: var(--muted); font-size: 10.5px; }
.sc-fields { flex: 1; min-width: 0; }
.sc-actions { display: flex; align-items: center; gap: 6px; margin-top: 8px; }

/* share */
.linkbar {
  display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 6px 6px 6px 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 2px 6px rgba(0,0,0,.3);
}
.linkbar-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-mono); font-size: 13.5px; color: var(--text); }
.handle-edit { display: flex; align-items: center; gap: 8px; }
.handle-prefix { color: var(--muted); font-family: var(--font-mono); font-size: 13.5px; white-space: nowrap; }
.handle-edit .input { flex: 1; font-family: var(--font-mono); }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.share-chip {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; text-decoration: none;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text);
  font-size: 14px; font-weight: 550;
  box-shadow: var(--shadow-sm);
  transition: transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .14s ease, border-color .15s ease, background .15s ease;
}
.share-chip:hover {
  transform: translateY(-2px);
  border-color: var(--line-2); background: var(--surface-3);
  box-shadow: var(--shadow-md);
}
.share-chip:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.share-chip svg { color: var(--body); }
@media (max-width: 560px) { .linkbar { flex-wrap: wrap; } .linkbar-url { flex-basis: 100%; } }

@media (max-width: 900px) {
  .booking { grid-template-columns: 1fr; }
  .booking .col-meta, .booking .col-time { border: none; border-top: 1px solid var(--line); }
}

/* ============================================================
   MOBILE APP LAYOUT  (≤ 768px)
   Complete redesign — bottom tab bar, full-bleed content,
   touch-friendly sizing. Desktop layout is untouched above.
   ============================================================ */
@media (max-width: 768px) {

  /* --- shell: stack vertically, make room for bottom nav --- */
  .app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;                      /* iOS safe-area aware */
  }

  /* --- bottom tab bar (was sidebar) --- */
  .side {
    position: fixed !important;
    bottom: 0 !important; left: 0; right: 0;
    top: auto !important;
    height: auto !important;
    z-index: 200;
    background: var(--bg);
    border-right: none;
    border-top: 1px solid var(--line);
    border-bottom: none;
    padding: 6px 4px calc(env(safe-area-inset-bottom, 0px) + 4px);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    overflow: visible;
  }
  .side::-webkit-scrollbar { display: none; }

  /* hide brand wordmark in bottom bar */
  .side .brand { display: none; }

  /* nav links become icon-only bottom tabs */
  .nav-link {
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px 4px;
    border-radius: var(--r-sm);
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 0;
    text-align: center;
    min-width: 0;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-link svg { width: 20px; height: 20px; flex: none; }
  .nav-link.active { background: transparent; color: var(--text); }
  .nav-link.active svg { color: var(--text); }
  .nav-link:hover { background: transparent; }

  /* hide "View live page" and "Invite & earn" from bottom bar to keep it clean */
  .nav-link[data-view="invite"],
  #viewpublic { display: none; }

  /* hide footer account section (accessible via Settings instead) */
  .side-foot { display: none; }

  /* --- main content area --- */
  .main {
    padding: var(--s4) var(--s4) calc(96px + env(safe-area-inset-bottom, 0px));
    max-width: 100%;
    flex: 1;
    overflow-x: hidden;
  }

  /* --- page header --- */
  .page-head { margin-bottom: var(--s6); }
  .page-head .kicker { font-size: 11px; margin-bottom: 5px; }
  .page-head h1 { font-size: 22px; }
  .page-head p { font-size: 13.5px; margin-top: 6px; }

  /* --- sections / cards --- */
  .section {
    padding: var(--s4);
    margin-bottom: var(--s4);
    border-radius: var(--r-md);
    max-width: 100%;
    box-sizing: border-box;
  }
  .section h3 { font-size: 14.5px; }

  /* --- grid: always single column --- */
  .grid2 { grid-template-columns: 1fr; gap: var(--s4); }
  .row { flex-direction: column; gap: var(--s3); }
  .row > * { flex: none; }

  /* ================== INBOX ================== */
  .filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    margin-bottom: var(--s4);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters .btn {
    flex: none;
    padding: 7px 14px;
    font-size: 13px;
  }

  .inbox-item {
    border-radius: var(--r-md);
    margin-bottom: var(--s3);
  }

  .inbox-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: var(--s4);
  }

  .inbox-who { width: 100%; }
  .inbox-who .nm { font-size: 15px; }
  .inbox-who .em { font-size: 13px; }

  .inbox-meta {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
  }

  .inbox-detail {
    padding: var(--s4);
  }

  .draft-box .textarea {
    min-height: 180px;
    font-size: 14px;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: var(--s4);
  }
  .detail-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 8px;
    font-size: 13px;
  }
  /* full-width for Accept / Decline */
  .detail-actions .btn[data-a="accepted"],
  .detail-actions .btn[data-a="declined"] {
    grid-column: 1 / -1;
  }
  /* feedback thumbs — keep inline */
  .detail-actions span[title] {
    display: flex;
    justify-content: center;
  }

  /* ================== EDITOR (Bookpage) ================== */
  .slotgen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: end;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .slotgen .field {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }
  .slotgen .field:nth-child(3) {
    grid-column: 1 / -1;
  }
  .slotgen .input, .slotgen .select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .slotgen input[type="time"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 12px 6px;
    text-align: center;
    -webkit-appearance: none;
    box-sizing: border-box;
  }
  .slotgen .dd { min-width: 0; width: 100%; max-width: 100%; }
  .slotgen .dd-btn { width: 100%; max-width: 100%; box-sizing: border-box; }
  .slotgen #sl-gen { grid-column: 1 / -1; width: 100%; }

  .wk-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .wk {
    width: 100%; min-width: 0;
    padding: 10px 0;
    font-size: 11.5px;
  }

  .chips { gap: 6px; }
  .chip { font-size: 12.5px; padding: 4px 10px; }

  /* showcase cards */
  .sc-card {
    flex-direction: column;
    gap: 10px;
    padding: var(--s3);
  }
  .sc-thumb { width: 100%; height: 140px; border-radius: var(--r-sm); }
  .sc-fields { width: 100%; }
  .sc-fields .row { flex-direction: column; gap: 8px; }
  .sc-fields .row .input { max-width: 100% !important; }
  .sc-actions { flex-wrap: wrap; gap: 8px; }

  /* ================== SHARE ================== */
  .linkbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: var(--s3);
  }
  .linkbar-url {
    font-size: 13px;
    white-space: normal;
    word-break: break-all;
  }
  .linkbar .btn { width: 100%; }

  .handle-edit {
    flex-direction: column;
    gap: 10px;
  }
  .handle-prefix { font-size: 12.5px; }

  .share-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .share-chip {
    padding: 12px;
    font-size: 13.5px;
    justify-content: center;
  }

  /* ================== CALENDAR ================== */
  .cal-grid { gap: 2px; grid-auto-rows: 44px; }
  .cal-cell { height: 44px; font-size: 14px; border-radius: var(--r-sm); }
  .cal-dow { font-size: 9.5px; }

  /* ================== SETTINGS ================== */
  .avatar { width: 48px !important; height: 48px !important; }

  /* ================== ONBOARDING ================== */
  #onb { padding: var(--s3); }
  .onb-card {
    padding: var(--s6) var(--s4);
    border-radius: var(--r-md);
    max-width: 100%;
  }
  .onb-title { font-size: 20px; }
  .onb-sub { font-size: 13px; }
  .onb-foot { flex-direction: column-reverse; gap: 10px; }
  .onb-foot > div { width: 100%; display: flex; gap: 8px; }
  .onb-foot .btn { flex: 1; }

  /* ================== TOAST ================== */
  #toast {
    left: var(--s4); right: var(--s4);
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    transform: translateX(0) translateY(20px);
    max-width: none;
    text-align: center;
  }
  #toast.show { transform: translateX(0) translateY(0); }

  /* ================== FORM CONTROLS ================== */
  .input, .textarea, .select {
    font-size: 16px;                         /* prevents iOS auto-zoom on focus */
    padding: 13px 14px;
  }
  .dd-btn { font-size: 16px; padding: 13px 14px; }
  .dd-opt { padding: 12px 14px; font-size: 15px; }

  /* dropdowns must float above the fixed bottom tab bar */
  .dd-menu { z-index: 210; }

  /* modals / scrims above tab bar too */
  .scrim { z-index: 220; }

  /* buttons: taller tap targets */
  .btn { padding: 12px 18px; font-size: 14px; }
  .btn-sm { padding: 10px 14px; font-size: 13px; }

  /* toggle: bigger thumb */
  .toggle { width: 44px; height: 24px; }
  .toggle::after { width: 18px; height: 18px; }

  /* badge */
  .badge { font-size: 11.5px; padding: 4px 9px; }

  /* callout */
  .callout { font-size: 13px; padding: var(--s3); }

  /* between helper: allow vertical stacking */
  .between { flex-wrap: wrap; gap: 10px; }
}

