/* Nayeli — design tokens and shared components.
   Layout concept: image-led editorial column on phones (one decision per screen, bottom sheets,
   thumb-zone actions); on desktop a persistent top nav with media left / decision panel right
   and a sticky summary. The Hair Diary is the one ornamental moment (guilloché + stamps). */
:root {
  --canvas: #F5EFE6;      /* warm ivory page */
  --paper: #FFFDF9;       /* raised surface */
  --sunk: #EDE4D6;        /* inset wells */
  --ink: #26150D;         /* deep cocoa */
  --ink-2: #6B5646;
  --ink-3: #97826F;
  --line: #E2D5C2;
  --line-2: #D2C1A9;
  --rose: #8A3A2F;        /* rosewood — primary conversion only */
  --rose-hover: #74302617;
  --rose-ink: #FFF8F2;
  --rose-soft: #F4E0D8;
  --gold: #A87B35;        /* honey gold — selected, rewards, accents */
  --gold-soft: #F3E5C6;
  --chestnut: #7A4A2E;
  --sage: #4F7050;        /* success / availability */
  --sage-soft: #E1EAD9;
  --coral: #C0432E;       /* destructive / urgent only */
  --coral-soft: #F8DDD5;
  --blush: #F2C6C2;       /* motion only: glows, sparkles, selection — never body text */
  --rose-gold: #E3A587;
  --petal: #FBE3DF;
  --spring: cubic-bezier(.2, 1.3, .35, 1);  /* a soft overshoot, like a curl settling */
  --ease-hair: cubic-bezier(.2, .7, .2, 1);
  --scrim: rgba(24, 12, 6, .55);
  --shadow: 0 1px 2px rgba(60, 30, 15, .06), 0 8px 28px rgba(60, 30, 15, .09);
  --shadow-lg: 0 2px 6px rgba(60, 30, 15, .08), 0 24px 60px rgba(60, 30, 15, .18);

  --display: "Arapey", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 26px;
  --gutter: 16px;
  --max: 1200px;
  --tabbar: 64px;
  --topbar: 56px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #16100C; --paper: #1F1712; --sunk: #2A2019; --ink: #F3E8DA; --ink-2: #C0AB96; --ink-3: #8D7967;
    --line: #382A20; --line-2: #4A392B; --rose: #D9776A; --rose-hover: #D9776A22; --rose-ink: #1B0E09; --rose-soft: #3B221C;
    --gold: #D9B26C; --gold-soft: #3A2D18; --chestnut: #C98B63; --sage: #93B48E; --sage-soft: #1E2A1D; --coral: #EE7A63; --coral-soft: #3D1E17; --blush: #C98F8A; --rose-gold: #D49A7C; --petal: #3A2422;
    --scrim: rgba(0, 0, 0, .65); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35); --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #16100C; --paper: #1F1712; --sunk: #2A2019; --ink: #F3E8DA; --ink-2: #C0AB96; --ink-3: #8D7967;
  --line: #382A20; --line-2: #4A392B; --rose: #D9776A; --rose-hover: #D9776A22; --rose-ink: #1B0E09; --rose-soft: #3B221C;
  --gold: #D9B26C; --gold-soft: #3A2D18; --chestnut: #C98B63; --sage: #93B48E; --sage-soft: #1E2A1D; --coral: #EE7A63; --coral-soft: #3D1E17; --blush: #C98F8A; --rose-gold: #D49A7C; --petal: #3A2422;
  --scrim: rgba(0, 0, 0, .65); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35); --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.sheet-open { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
#main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .money { font-variant-numeric: tabular-nums; }
.money.strike { text-decoration: line-through; color: var(--ink-3); }
.ic { flex: none; display: block; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- type scale ---------- */
.eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.t-hero { font-size: clamp(40px, 8.5vw, 76px); line-height: .98; }
.t-1 { font-size: clamp(30px, 5vw, 44px); }
.t-2 { font-size: clamp(24px, 3.4vw, 30px); }
.t-3 { font-size: 21px; }
.lede { font-family: var(--display); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.42; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }

/* ---------- app shell ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: var(--max); margin: 0 auto; height: var(--topbar); padding-inline: var(--gutter); display: flex; align-items: center; gap: 12px; }
.wordmark { font-family: var(--display); font-size: 25px; letter-spacing: .14em; text-decoration: none; color: var(--ink); line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.wordmark.has-logo { align-items: center; gap: 10px; }
.wordmark .logo, .wordmark .logo img, .reel-mark .logo, .reel-mark .logo img { display: block; }
.wordmark small { font-family: var(--sans); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.topnav { display: none; gap: 2px; margin-left: 18px; }
.topnav a { text-decoration: none; font-size: 14px; padding: 8px 11px; border-radius: 99px; color: var(--ink-2); white-space: nowrap; }
.topnav a:hover { color: var(--ink); background: var(--sunk); }
.topnav a[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 99px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink); }
.icon-btn:hover { background: var(--sunk); }
.icon-btn .dot { position: absolute; top: 7px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--rose); color: var(--rose-ink);
  font-size: 10.5px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.surface-pill { display: none; }

main#main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); padding-block: 20px calc(var(--tabbar) + 36px + env(safe-area-inset-bottom, 0px)); }
main.bleed { max-width: none; padding-inline: 0; padding-top: 0; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar-in { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tabbar); max-width: 560px; margin: 0 auto; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink-3); font-size: 11px; letter-spacing: .02em; min-height: 44px; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] .ic { color: var(--rose); }
.tabbar a.tab-studio .tab-orb { width: 44px; height: 44px; margin-top: -18px; border-radius: 99px; display: grid; place-items: center; color: var(--rose-ink);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--rose) 70%, #fff) 0, var(--rose) 60%); box-shadow: 0 6px 18px color-mix(in srgb, var(--rose) 40%, transparent); }
.tabbar a.tab-studio .ic { color: var(--rose-ink) !important; }

@media (min-width: 960px) {
  .topnav { display: flex; }
  .tabbar { display: none; }
  main#main { padding-block: 28px 72px; }
  .surface-pill { display: inline-flex; }
}

.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 28px calc(var(--tabbar) + 28px); color: var(--ink-3); font-size: 12.5px; }
.site-foot .in { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); display: grid; gap: 14px; }
@media (min-width: 960px) { .site-foot { padding-bottom: 32px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 99px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; text-decoration: none; letter-spacing: .01em; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--rose); color: var(--rose-ink); box-shadow: 0 4px 14px color-mix(in srgb, var(--rose) 28%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--rose) 88%, #000); }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--sunk); }
.btn-gold { background: var(--gold-soft); color: var(--ink); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.btn-danger { background: var(--coral-soft); color: var(--coral); border-color: color-mix(in srgb, var(--coral) 35%, transparent); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); font-size: 14px; min-height: 44px; }
.link-btn:hover { text-decoration-color: var(--ink); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 180px; }

/* ---------- badges, chips, segments ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.badge-gold { background: var(--gold-soft); color: color-mix(in srgb, var(--gold) 70%, var(--ink)); }
.badge-sage { background: var(--sage-soft); color: var(--sage); }
.badge-plain { background: var(--sunk); color: var(--ink-2); }
.badge-rose { background: var(--rose-soft); color: var(--rose); }
.badge-coral { background: var(--coral-soft); color: var(--coral); }
.badge-dark { background: rgba(20, 10, 5, .62); color: #fff; backdrop-filter: blur(6px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); font-size: 14px; line-height: 1.2;
  text-align: left; transition: border-color .15s, background .15s; }
.chip small { display: block; font-size: 11.5px; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.chip[disabled] { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--paper); font-size: 13.5px; white-space: nowrap; }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--canvas); border-color: var(--ink); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--sunk); padding: 4px; border-radius: 14px; }
.seg button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; color: var(--ink-2); padding: 0 8px; }
.seg button[aria-checked="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); font-weight: 500; }

.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); border-radius: 99px; padding: 3px; background: var(--paper); }
.stepper output { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }
.step-btn { width: 40px; height: 40px; border-radius: 99px; border: 0; background: var(--sunk); display: grid; place-items: center; }
.step-btn:disabled { opacity: .35; }

.stars { display: inline-flex; gap: 1px; color: var(--gold); vertical-align: -2px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper);
  font-size: 16px; /* ≥16px stops mobile zoom */ color: var(--ink); }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.field-hint { font-size: 12.5px; color: var(--ink-3); }
.field-error { font-size: 12.5px; color: var(--coral); }
.has-error .input { border-color: var(--coral); }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rose); flex: none; }
.toggle { position: relative; width: 46px; height: 28px; flex: none; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .15s; pointer-events: none; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 99px; background: var(--paper); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s; }
.toggle input:checked + span { background: var(--sage); }
.toggle input:checked + span::after { transform: translateX(18px); }
.toggle input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- surfaces ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 18px; }
.well { background: var(--sunk); border-radius: var(--r); padding: 14px 16px; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); padding: 12px 14px; border-radius: var(--r); background: var(--sunk); }
.note .ic { margin-top: 2px; color: var(--gold); }
.note.warn { background: var(--coral-soft); color: color-mix(in srgb, var(--coral) 75%, var(--ink)); }
.note.warn .ic { color: var(--coral); }
.note.ok { background: var(--sage-soft); color: color-mix(in srgb, var(--sage) 70%, var(--ink)); }
.note.ok .ic { color: var(--sage); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 10px; }
.stack-lg { display: grid; gap: 28px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

.section { display: grid; gap: 16px; margin-top: 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); }
.see-all { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; text-decoration: none; color: var(--ink-2); white-space: nowrap; min-height: 44px; }
.see-all:hover { color: var(--ink); }

/* ---------- look cards ---------- */
.look-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .look-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1080px) { .look-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(158px, 44%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 720px) { .rail { grid-auto-columns: minmax(200px, 23%); } }

.look-frame { position: relative; }
.look-card { position: relative; display: grid; gap: 9px; text-decoration: none; color: inherit; min-width: 0; }
.look-media { display: block; position: relative; aspect-ratio: 4 / 5.4; border-radius: var(--r-lg); overflow: hidden; background: var(--sunk); }
.look-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.look-card:hover .look-media img { transform: scale(1.035); }
.look-media .badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 5px; flex-wrap: wrap; }
.look-media .save, .look-frame > .save { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border-radius: 99px; border: 0; display: grid; place-items: center;
  background: rgba(255, 253, 249, .82); color: var(--rose); backdrop-filter: blur(6px); }
.look-media .try, .look-frame > .try { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 7px 13px 7px 11px; border-radius: 99px; border: 0;
  background: rgba(20, 10, 5, .66); color: #fff; font-size: 12.5px; backdrop-filter: blur(6px); }
.look-card h3 { font-size: 18px; line-height: 1.15; }
.look-card .fam { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.look-card .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.look-card .meta b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--sage); }
.stock.low::before { background: var(--gold); }
.stock.out::before { background: var(--coral); }

/* ---------- sheets & toasts ---------- */
.sheet-layer { position: fixed; inset: 0; z-index: 80; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.sheet { width: 100%; max-height: min(92vh, 92dvh); background: var(--paper); border-radius: var(--r-xl) var(--r-xl) 0 0; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: rise .26s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sheet:focus { outline: none; }
.sheet-grab { width: 38px; height: 4px; border-radius: 99px; background: var(--line-2); margin: 9px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 10px 4px 20px; }
.sheet-head h2 { font-size: 24px; }
.sheet-body { padding: 8px 20px 20px; overflow-y: auto; display: grid; gap: 16px; }
.sheet-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
@media (min-width: 720px) {
  .sheet-layer { align-items: center; padding: 24px; }
  .sheet { max-width: 520px; border-radius: var(--r-xl); max-height: 86vh; }
  .sheet-wide { max-width: 760px; }
  .sheet-grab { display: none; }
  .sheet-head { padding-top: 14px; }
}
@keyframes rise { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

.toast-zone { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + 14px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; justify-content: center; pointer-events: none; padding-inline: 16px; }
@media (min-width: 960px) { .toast-zone { bottom: 28px; } }
.toast { display: flex; align-items: center; gap: 10px; max-width: 460px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--canvas); font-size: 14px;
  box-shadow: var(--shadow-lg); animation: rise .25s ease; pointer-events: auto; }
.toast-ok .ic { color: color-mix(in srgb, var(--sage) 60%, #fff); }
.toast-warn .ic { color: var(--gold); }

.empty { text-align: center; padding: 42px 16px; display: grid; gap: 10px; justify-items: center; }
.empty-ic { width: 56px; height: 56px; border-radius: 99px; background: var(--sunk); display: grid; place-items: center; color: var(--gold); }
.empty h3 { font-size: 23px; }
.empty p { color: var(--ink-2); max-width: 30em; }

/* ---------- key/value + totals ---------- */
.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt, .kv .k { color: var(--ink-2); }
.kv dd, .kv .v { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.lines { display: grid; gap: 8px; font-size: 14px; }
.lines .ln { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.lines .ln span:first-child { color: var(--ink-2); min-width: 0; }
.lines .ln span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines .ln.neg span:last-child { color: var(--sage); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.total-row b { font-family: var(--display); font-weight: 400; font-size: 30px; font-variant-numeric: tabular-nums; }

/* ---------- avatar / monogram ---------- */
.mono-av { width: 48px; height: 48px; border-radius: 99px; display: grid; place-items: center; font-family: var(--display); font-size: 19px; flex: none;
  background: linear-gradient(145deg, var(--gold-soft), var(--rose-soft)); color: var(--chestnut); border: 1px solid var(--line); }
.mono-av.lg { width: 76px; height: 76px; font-size: 30px; }
.mono-av.sm { width: 36px; height: 36px; font-size: 15px; }

/* ---------- utility layout ---------- */
.page-head { display: grid; gap: 8px; margin-bottom: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; font-size: 14px; min-height: 44px; background: none; border: 0; padding: 0; }
.two-col { display: grid; gap: 28px; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; align-items: start; } .sticky-col { position: sticky; top: calc(var(--topbar) + 20px); } }
.sample-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.sample-flag::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--gold); }
.hscroll { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.tbl td.n { font-variant-numeric: tabular-nums; text-align: right; }
.skeleton { background: linear-gradient(90deg, var(--sunk), var(--paper), var(--sunk)); background-size: 200% 100%; animation: sk 1.3s linear infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- workspace switch (customer / stylist / admin share one store) ---------- */
.ws-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--sunk); border: 1px solid var(--line); }
.ws-switch a { text-decoration: none; font-size: 12.5px; padding: 6px 11px; border-radius: 99px; color: var(--ink-2); min-height: 30px; display: inline-flex; align-items: center; }
.ws-switch a[aria-current="page"] { background: var(--ink); color: var(--canvas); }
.ws-switch.compact a { padding: 5px 9px; font-size: 12px; }
