/* SalonVerge by VergeKits: styles.css ("quiet luxury studio") */
@font-face { font-family: "InterVK"; src: url("fonts/Inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #F6F3EE; --surface: #FFFFFF; --raised: #EFEBE3; --hair: rgba(28,25,23,0.08); --hair2: rgba(28,25,23,0.14);
  --text: #1C1917; --text2: #57534E; --text3: #6B645E; --charcoal: #1C1917; --rose: #9C5B57; --rose-bg: rgba(156,91,87,0.10);
  --gold: #C9973A; --gold-text: #8A6416; --gold-bg: rgba(201,151,58,0.13);
  --pos: #1FA67A; --pos-text: #11734F; --pos-bg: rgba(31,166,122,0.12);
  --due: #E9A23B; --due-text: #8A5A0B; --due-bg: rgba(233,162,59,0.15);
  --bad: #D9534F; --bad-text: #B0302C; --bad-bg: rgba(217,83,79,0.11);
  --neu: #8B95A7; --neu-text: #555E6E; --neu-bg: rgba(139,149,167,0.14);
  --info: #3B82C4; --info-text: #2263A0; --info-bg: rgba(59,130,196,0.12);
  --side: #1C1917; --side-text: #E9E4DA; --side-text2: #A8A29E;
  --shadow: 0 1px 2px rgba(28,25,23,0.04), 0 8px 24px -12px rgba(28,25,23,0.14);
  --shadow-lg: 0 24px 64px -24px rgba(28,25,23,0.35);
  --r1: 10px; --r2: 14px; --r3: 20px;
  --font: "InterVK", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Roboto, sans-serif;
  --serif: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --tab-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0C0F14; --surface: #141A22; --raised: #1C2430; --hair: rgba(243,241,236,0.08); --hair2: rgba(243,241,236,0.16);
  --text: #F3F1EC; --text2: #A8A29E; --text3: #9A948E; --rose: #D79A95; --rose-bg: rgba(215,154,149,0.13);
  --gold-text: #E6B85C; --gold-bg: rgba(230,184,92,0.14);
  --pos-text: #4FD1A1; --due-text: #F2BE68; --bad-text: #F08A86; --neu-text: #B3BBC9; --info-text: #7FB5EA;
  --side: #090B0F; --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 10px 30px -14px rgba(0,0,0,0.6); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font: 400 15px/1.5 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0 0 8px; }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
.muted { color: var(--text2); } .small { font-size: 13px; } .tiny { font-size: 12px; } .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.gold { color: var(--gold-text); } .pos { color: var(--pos-text); } .bad { color: var(--bad-text); } .due { color: var(--due-text); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
svg.i.sm { width: 18px; height: 18px; } svg.i.lg { width: 28px; height: 28px; }

/* ---------- app shell ---------- */
#app { min-height: 100dvh; }
.shell { display: grid; grid-template-columns: 1fr; min-height: 100dvh; }
.side { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 100dvh; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 16px 10px; background: var(--bg); border-bottom: 1px solid var(--hair); }
.top .brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-decoration: none; }
.top .brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(201,151,58,0.6); }
.top .brand b { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.top .brand small { display: block; font-size: 11.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .search { display: none; }
.top .newbtn { display: none; }
.iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--text); }
.iconbtn:hover { background: var(--raised); }
#view { flex: 1; padding: 16px 16px calc(var(--tab-h) + 40px + var(--safe-b)); width: 100%; max-width: 1280px; margin: 0 auto; }
#view.enter > * { animation: rise .24s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--surface); border-top: 1px solid var(--hair2); box-shadow: 0 -8px 24px -18px rgba(0,0,0,0.25); isolation: isolate; }
.tabs::before { content: ""; position: absolute; inset: 0; background: var(--surface); z-index: -1; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--text2); font-size: 11.5px; font-weight: 600; min-width: 0; min-height: 44px; }
.tabs a[aria-current="page"] { color: var(--text); }
.tabs a[aria-current="page"] svg { color: var(--gold-text); }
.tabs a span { white-space: nowrap; }
.fab { position: fixed; right: 16px; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); z-index: 41; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--charcoal); color: #F6F3EE; box-shadow: 0 0 0 3px var(--bg), 0 12px 28px -10px rgba(28,25,23,0.55); display: grid; place-items: center; }
:root[data-theme="dark"] .fab { background: var(--gold); color: #1C1917; }
.fab svg { width: 26px; height: 26px; stroke-width: 2; transition: transform .14s; }
.fab:active svg { transform: scale(0.9); }

@media (min-width: 1024px) {
  .shell { grid-template-columns: 248px 1fr; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; background: var(--side); color: var(--side-text); padding: 20px 14px; overflow-y: auto; }
  .side .logo { display: flex; align-items: center; gap: 12px; padding: 4px 8px 20px; text-decoration: none; color: inherit; }
  .side .logo img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(201,151,58,0.7), 0 8px 20px -8px rgba(201,151,58,0.5); }
  .side .logo b { display: block; font-size: 17px; letter-spacing: -0.01em; }
  .side .logo small { display: block; font-size: 11px; color: #E6B85C; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
  .side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--side-text2); text-decoration: none; font-weight: 550; font-size: 14.5px; min-height: 44px; position: relative; }
  .side nav a:hover { color: var(--side-text); background: rgba(255,255,255,0.05); }
  .side nav a[aria-current="page"] { color: #fff; background: rgba(201,151,58,0.14); }
  .side nav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--gold); }
  .side nav a .badge { margin-left: auto; }
  .side .foot { margin-top: auto; padding: 12px 8px 0; font-size: 12px; color: var(--side-text2); border-top: 1px solid rgba(255,255,255,0.08); }
  .top { padding: 14px 28px; }
  .top .brand { display: none; }
  .top .title { flex: 1; font-size: 15px; color: var(--text2); }
  .top .search { display: block; position: relative; width: min(420px, 40vw); }
  .top .newbtn { display: inline-flex; }
  .top .mobile-only { display: none; }
  .tabs { display: none; }
  #view { padding: 24px 28px 48px; }
}
@media (max-width: 1023px) { .top .title { display: none; } .desk-only { display: none !important; } }
@media (min-width: 1024px) { .mob-only { display: none !important; } }

/* ---------- search ---------- */
.search input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--hair2); background: var(--surface); padding: 0 14px 0 40px; font-size: 16px; }
.search svg { position: absolute; left: 12px; top: 11px; color: var(--text2); }
.results { position: absolute; top: 50px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--hair2); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: 60vh; overflow: auto; z-index: 60; padding: 6px; }
.results a { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; text-decoration: none; min-height: 44px; }
.results a:hover, .results a:focus { background: var(--raised); }
.results .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text2); padding: 8px 10px 2px; font-weight: 700; }

/* ---------- headings ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.ph h1 { font-family: var(--serif); font-weight: 600; font-size: 28px; }
.ph .sub { color: var(--text2); font-size: 14px; margin-top: 4px; }
.ph .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sec { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 24px 0 10px; }
.sec h2 { font-size: 16px; }
.eyebrow { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold-text); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--hair2);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .14s, background .14s, box-shadow .14s; }
.btn:hover { background: var(--raised); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--charcoal); border-color: var(--charcoal); color: #F6F3EE; box-shadow: 0 8px 20px -12px rgba(28,25,23,0.6); }
.btn.primary:hover { background: #2B2623; }
:root[data-theme="dark"] .btn.primary { background: var(--gold); border-color: var(--gold); color: #1C1917; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1C1917; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--raised); }
.btn.danger { color: var(--bad-text); border-color: rgba(217,83,79,0.35); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.on { background: var(--gold-bg); border-color: var(--gold); color: var(--text); }

/* ---------- cards and grids ---------- */
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r2); box-shadow: var(--shadow); padding: 16px; position: relative; }
.card.pad0 { padding: 0; overflow: hidden; }
.card.hov { transition: transform .14s, box-shadow .14s; }
.card.hov::after, a.card::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .24s; }
.card.hov:hover::after, a.card:hover::after, a.card:focus-visible::after { transform: scaleX(1); }
a.card { display: block; text-decoration: none; color: inherit; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } .split.even { grid-template-columns: 1fr 1fr; } }

.kpi { padding: 14px 14px 12px; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; }
.kpi .lab { font-size: 12.5px; color: var(--text2); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .lab svg { width: 16px; height: 16px; color: var(--gold-text); }
.kpi .val { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-top: 6px; white-space: nowrap; }
.kpi .foot { font-size: 12px; color: var(--text2); margin-top: 4px; }
.kpi.hero { background: var(--charcoal); color: #F6F3EE; border-color: var(--charcoal); }
.kpi.hero .lab, .kpi.hero .foot { color: #CFC8BD; }
.kpi.hero .lab svg { color: #E6B85C; }
.kpi.hero .val { font-size: 34px; color: #fff; }
.kpi.hero::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px 160px at 100% 0%, rgba(201,151,58,0.32), transparent 70%); pointer-events: none; }
:root[data-theme="dark"] .kpi.hero { background: #1C2430; border-color: rgba(230,184,92,0.3); }
@media (max-width: 360px) { .kpi .val { font-size: 22px; } .kpi.hero .val { font-size: 28px; } }
@media (min-width: 1024px) { .kpi .val { font-size: 28px; } }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; background: var(--neu-bg); color: var(--neu-text); }
.chip svg { width: 14px; height: 14px; stroke-width: 2; }
.chip.pos { background: var(--pos-bg); color: var(--pos-text); } .chip.due { background: var(--due-bg); color: var(--due-text); }
.chip.bad { background: var(--bad-bg); color: var(--bad-text); } .chip.info { background: var(--info-bg); color: var(--info-text); }
.chip.gold { background: var(--gold-bg); color: var(--gold-text); } .chip.rose { background: var(--rose-bg); color: var(--rose); }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #1C1917; font-size: 12px; font-weight: 800; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hair); min-height: 60px; text-decoration: none; color: inherit; position: relative; }
.row:last-child { border-bottom: 0; }
a.row:hover, button.row:hover { background: color-mix(in srgb, var(--raised) 60%, transparent); }
button.row { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--hair); background: transparent; cursor: pointer; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 600; overflow-wrap: anywhere; }
.row .s { font-size: 13px; color: var(--text2); overflow-wrap: anywhere; }
.row .end { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.time { width: 56px; flex: none; font-weight: 700; font-size: 14px; }
.time small { display: block; font-weight: 500; color: var(--text2); font-size: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 14px; background: var(--rose-bg); color: var(--rose); }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; font-family: var(--serif); }
.appt-bar { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 1px solid var(--hair2); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl tfoot td { font-weight: 700; border-top: 1px solid var(--hair2); }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--raised); }
@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--hair); }
  table.stack td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; }
  table.stack td::before { content: attr(data-l); color: var(--text2); font-size: 13px; }
  table.stack td.r { text-align: right; }
  table.stack tfoot tr { border-top: 1px solid var(--hair2); }
}

/* ---------- segmented, tabs ---------- */
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--raised); gap: 2px; flex-wrap: wrap; max-width: 100%; }
.seg a, .seg button { min-height: 36px; padding: 0 12px; border-radius: 9px; border: 0; background: transparent; font-weight: 600; font-size: 13.5px; color: var(--text2); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
.seg [aria-current="page"], .seg [aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.pager { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pager .lbl { font-weight: 700; min-width: 0; text-align: center; flex: 1; }
.scroller { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form .two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 400px) { .form .two { grid-template-columns: 1fr; } }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span { font-size: 13px; font-weight: 600; color: var(--text2); }
.fld small { font-size: 12.5px; color: var(--text2); }
.inp, select.inp, textarea.inp { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--hair2); background: var(--surface); padding: 10px 12px; font-size: 16px; line-height: 1.3; }
textarea.inp { min-height: 84px; resize: vertical; }
.inp:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-bg); }
.inp.bad { border-color: var(--bad); }
.err { color: var(--bad-text); font-size: 13px; min-height: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--charcoal); }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 260px; overflow: auto; padding: 2px; }
.pick { border: 1px solid var(--hair2); border-radius: 12px; padding: 10px 12px; background: var(--surface); cursor: pointer; text-align: left; min-height: 56px; }
.pick b { display: block; font-size: 14px; font-weight: 600; }
.pick small { color: var(--text2); font-size: 12.5px; }
.pick[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-bg); box-shadow: inset 0 0 0 1px var(--gold); }

/* ---------- sheets / dialogs ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(12,15,20,0.48); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet { width: 100%; max-width: 640px; max-height: 92dvh; display: flex; flex-direction: column; background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  animation: up .24s cubic-bezier(.2,.8,.2,1) both; padding-bottom: var(--safe-b); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet header { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--hair); }
.sheet header h2 { flex: 1; font-family: var(--serif); font-weight: 600; font-size: 20px; }
.sheet .body { padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet footer { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--hair); background: var(--bg); }
.sheet footer .btn { flex: 1; }
@media (min-width: 768px) { .scrim { align-items: center; } .sheet { border-radius: 20px; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + var(--safe-b) + 90px); z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
@media (min-width: 1024px) { .toasts { bottom: 24px; left: auto; right: 24px; transform: none; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 14px; background: #1C1917; color: #F6F3EE; box-shadow: var(--shadow-lg); animation: up .24s both; font-size: 14px; }
:root[data-theme="dark"] .toast { background: #F3F1EC; color: #1C1917; }
.toast .grow { flex: 1; }
.toast button { background: transparent; border: 1px solid rgba(230,184,92,0.6); color: #E6B85C; border-radius: 10px; min-height: 36px; padding: 0 12px; font-weight: 700; cursor: pointer; }
:root[data-theme="dark"] .toast button { color: #8A6416; border-color: #8A6416; }
.saved { position: fixed; top: calc(12px + var(--safe-t)); right: 64px; z-index: 50; font-size: 12px; color: var(--pos-text); display: flex; align-items: center; gap: 4px; opacity: 0; transition: opacity .24s; pointer-events: none; }
.saved.show { opacity: 1; }
@media (min-width: 1024px) { .saved { top: 26px; right: 260px; } }

/* ---------- banners, empty ---------- */
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--gold-bg); border: 1px solid rgba(201,151,58,0.35); margin-bottom: 14px; font-size: 14px; flex-wrap: wrap; }
.banner .grow { flex: 1; min-width: 180px; }
.banner.warn { background: var(--due-bg); border-color: rgba(233,162,59,0.4); }
.empty { text-align: center; padding: 32px 16px; color: var(--text2); }
.empty svg.art { width: 120px; height: 96px; margin: 0 auto 10px; display: block; }
.empty h3 { color: var(--text); margin-bottom: 6px; font-family: var(--serif); font-weight: 600; font-size: 19px; }
.empty .btn { margin-top: 12px; }

/* ---------- day view ---------- */
.dayhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lanes { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .lanes { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.lane h3 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
.lane h3 small { font-weight: 500; color: var(--text2); font-size: 12.5px; margin-left: auto; white-space: nowrap; }
.slot { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--hair); text-decoration: none; color: inherit; min-height: 56px; align-items: flex-start; }
.slot:hover { background: color-mix(in srgb, var(--raised) 60%, transparent); }
.slot .time { width: 50px; font-size: 13px; }
.slot.short { min-height: 48px; padding-top: 7px; padding-bottom: 7px; }
.slot.dim { opacity: .62; }
.nowline { display: flex; align-items: center; gap: 8px; color: var(--bad-text); font-size: 12px; font-weight: 700; padding: 2px 14px; }
.nowline::after { content: ""; flex: 1; height: 2px; background: var(--bad); border-radius: 2px; }
.queue { border: 1px dashed var(--hair2); border-radius: 12px; padding: 8px; margin: 10px; background: var(--raised); }
.queue .q { display: flex; align-items: center; gap: 8px; padding: 6px; flex-wrap: wrap; }
.queue .q .grow { flex: 1; min-width: 120px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; overflow-x: auto; }
.week .col { background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; min-height: 120px; }
.week .col h4 { font-size: 13px; padding: 10px; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; }
.week .col.today h4 { color: var(--gold-text); }
.week .mini { display: block; padding: 6px 10px; font-size: 12.5px; border-bottom: 1px solid var(--hair); text-decoration: none; color: inherit; }
.week .mini b { font-weight: 650; }

/* ---------- client card ---------- */
.profile { display: flex; gap: 14px; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.fact { background: var(--raised); border-radius: 12px; padding: 10px 12px; }
.fact .k { font-size: 12px; color: var(--text2); font-weight: 600; }
.fact .v { font-weight: 700; font-size: 16px; margin-top: 2px; }
.formula { border-left: 3px solid var(--rose); }
.formula dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0; font-size: 14px; }
.formula dt { color: var(--text2); }
.formula dd { margin: 0; font-weight: 600; }
.photos { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (min-width: 768px) { .photos { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.photo { position: relative; border-radius: 14px; overflow: hidden; background: var(--raised); aspect-ratio: 4/5; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .cap { position: absolute; left: 8px; bottom: 8px; right: 8px; display: flex; justify-content: space-between; gap: 6px; }
.photo .cap span { background: rgba(12,15,20,0.66); color: #fff; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; font-weight: 650; }
.alert { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bad-bg); color: var(--bad-text); font-weight: 600; font-size: 14px; align-items: center; }

/* ---------- checkout ---------- */
.ticket .line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--hair2); align-items: center; }
.ticket .line:last-child { border-bottom: 0; }
.ticket .total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 26px; font-weight: 600; padding-top: 10px; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--hair2); background: var(--surface); cursor: pointer; font-weight: 700; }
.methods { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.methods .pick { text-align: center; min-height: 48px; display: grid; place-items: center; font-weight: 600; font-size: 13.5px; }
.tips { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.tips .pick { text-align: center; min-height: 48px; font-weight: 700; padding: 6px; }

/* ---------- charts ---------- */
.chart { width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .ax { stroke: var(--hair2); stroke-width: 1; }
.chart .grid line { stroke: var(--hair); }
.chart text { fill: var(--text2); font-size: 11px; font-family: var(--font); }
.chart .bar { transform-box: fill-box; transform-origin: bottom; animation: grow .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }
.chart .hbar { transform-box: fill-box; transform-origin: left; animation: growx .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes growx { from { transform: scaleX(0); } to { transform: none; } }
.chart .ln { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2000; stroke-dashoffset: 0; animation: draw .7s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text2); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.cardhead h2 { font-size: 15.5px; }
.linkbtn { background: none; border: 0; color: var(--gold-text); font-weight: 650; font-size: 13px; cursor: pointer; min-height: 36px; padding: 0 4px; text-decoration: underline; text-underline-offset: 3px; }
.heat { display: grid; gap: 3px; font-size: 11px; }
.heat .c { border-radius: 4px; min-height: 22px; display: grid; place-items: center; font-weight: 650; }
.heat .h { color: var(--text2); text-align: center; }
.meter { height: 10px; border-radius: 99px; background: var(--raised); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }

/* ---------- more grid ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 16px; min-height: 104px; }
.tile svg { color: var(--gold-text); width: 26px; height: 26px; }
.tile b { font-size: 14.5px; }
.tile small { color: var(--text2); font-size: 12.5px; }

/* ---------- onboarding / welcome ---------- */
.welcome { min-height: 100dvh; display: grid; place-items: center; padding: calc(24px + var(--safe-t)) 18px calc(24px + var(--safe-b)); background: radial-gradient(800px 400px at 0% 0%, rgba(201,151,58,0.18), transparent 60%), var(--bg); }
.welcome .card { max-width: 520px; width: 100%; padding: 28px 22px; }
.welcome .logo { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: block; box-shadow: 0 0 0 2px rgba(201,151,58,0.6), 0 16px 40px -12px rgba(201,151,58,0.5); }
.welcome h1 { font-family: var(--serif); font-weight: 600; text-align: center; font-size: 30px; }
.welcome .lead { text-align: center; color: var(--text2); margin: 8px 0 20px; }
.steps { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }
.steps i { width: 28px; height: 4px; border-radius: 4px; background: var(--hair2); }
.steps i.on { background: var(--gold); }
.splash { position: fixed; inset: 0; display: grid; place-items: center; background: #1C1917; z-index: 100; transition: opacity .3s; }
.splash img { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(201,151,58,0.6), 0 0 60px rgba(201,151,58,0.35); }

/* ---------- print preview ---------- */
.doc { background: #fff; color: #1C1917; max-width: 820px; margin: 0 auto; padding: 40px 44px; border-radius: 6px; box-shadow: var(--shadow-lg); font-size: 13.5px; }
.doc .dh { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; border-bottom: 2px solid #1C1917; padding-bottom: 16px; margin-bottom: 18px; }
.doc .dh img { width: 56px; height: 56px; border-radius: 50%; }
.doc h1 { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.doc .meta { text-align: right; font-size: 12.5px; color: #57534E; }
.doc .meta b { color: #1C1917; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.doc th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #57534E; border-bottom: 1px solid #1C1917; padding: 8px 6px; }
.doc td { padding: 8px 6px; border-bottom: 1px solid #E7E2D9; vertical-align: top; }
.doc .r { text-align: right; white-space: nowrap; }
.doc .tot { margin-left: auto; width: min(320px, 100%); }
.doc .tot div { display: flex; justify-content: space-between; padding: 4px 0; }
.doc .tot .grand { border-top: 2px solid #1C1917; margin-top: 6px; padding-top: 8px; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.doc .foot { margin-top: 28px; padding-top: 12px; border-top: 1px solid #E7E2D9; font-size: 11.5px; color: #57534E; }
.doc .goldrule { height: 3px; width: 64px; background: #C9973A; border-radius: 3px; margin: 8px 0 0; }
.doctools { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
@media (max-width: 640px) { .doc { padding: 22px 16px; } .doc .dh { flex-direction: column; } .doc .meta { text-align: left; } }

@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --surface: #fff; --text: #1C1917; --text2: #57534E; color-scheme: light; }
  body { background: #fff; color: #1C1917; }
  .side, .top, .tabs, .toasts, .doctools, .banner, .saved, .noprint, .scrim { display: none !important; }
  .shell { display: block; }
  #view { padding: 0 !important; max-width: none; }
  .doc { box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
  .doc tr, .doc .tot { page-break-inside: avoid; }
  .card { box-shadow: none; border-color: #ddd; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
.shot *, .shot *::before, .shot *::after { animation: none !important; transition: none !important; }
.split > *, .grid > *, .lanes > * { min-width: 0; }
.doc td { overflow-wrap: anywhere; }
h1[tabindex="-1"]:focus { outline: none; }
.facts > * { min-width: 0; } .fact .v { overflow-wrap: anywhere; }
.route-checkout .fab, .route-print .fab, .route-currency .fab, .route-settings .fab, .route-selfcheck .fab, .route-about .fab { display: none; }
.shot body:not(.route-home):not(.route-book) .fab { display: none; }
@media (max-width: 640px) { .hide-sm { display: none; } }
