/* Noir Hair Studio — monochrome theme built from the logo */
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-wght-normal.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0a0a0a;
  --surface: #131313;
  --surface-2: #1b1b1b;
  --line: #2a2a2a;
  --line-strong: #3a3a3a;
  --text: #f4f1eb;
  --muted: #9b968d;
  --dim: #6a665f;
  --ink: #0a0a0a;
  --warn: #e3b866;
  --bad: #e2685d;
  --good: #8fc79a;
  --radius: 14px;
  --radius-sm: 9px;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --track: .18em;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, .eyebrow, .btn, label.lbl, th { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: var(--track); }
h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1.15; margin: 0 0 .6rem; }
h2 { font-size: 1.05rem; margin: 2rem 0 .8rem; }
h3 { font-size: .9rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .85rem; }
.eyebrow { font-size: .72rem; color: var(--muted); letter-spacing: .3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.center { text-align: center; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: .75rem; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font-size: .85rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn:hover { border-color: var(--text); }
.btn-primary { background: var(--text); color: var(--ink); border-color: var(--text); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: transparent; }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn-danger:hover { border-color: var(--bad); }
.btn-sm { min-height: 38px; padding: .4rem 1rem; font-size: .75rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* ---------- Forms ---------- */
label.lbl { display: block; font-size: .72rem; color: var(--muted); margin: 0 0 .4rem; }
.field { margin-bottom: 1.1rem; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 16px; color-scheme: dark; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text); }
.hint { font-size: .82rem; color: var(--dim); margin-top: .35rem; }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-prefix > input { padding-left: 1.7rem; }
.input-suffix { position: relative; }
.input-suffix > span { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: .85rem; }

/* toggle switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch input[type=checkbox] { appearance: none; flex: none; width: 50px; height: 30px; border-radius: 99px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch input[type=checkbox]:checked { background: var(--text); }
.switch input[type=checkbox]:checked::after { transform: translateX(20px); background: var(--ink); }
.switch .txt b { display: block; font-weight: 600; }
.switch .txt small { color: var(--muted); }

/* segmented control */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: .45rem .95rem; border-radius: 999px; font-size: .85rem; cursor: pointer; color: var(--muted); }
.seg input:checked + label { background: var(--text); color: var(--ink); }

/* ---------- Cards / lists ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.card + .card { margin-top: 1rem; }
.card-tight { padding: .9rem 1rem; }
.list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.list > li { padding: .95rem 1rem; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list a.item { display: block; text-decoration: none; margin: -.95rem -1rem; padding: .95rem 1rem; }
.list a.item:hover { background: var(--surface-2); }
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

.pill { display: inline-block; font-size: .7rem; padding: .18rem .6rem; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; font-family: var(--body); letter-spacing: .02em; text-transform: none; }
.pill-approved { color: var(--text); border-color: var(--text); }
.pill-pending { color: var(--warn); border-color: var(--warn); }
.pill-hold { border-style: dashed; }
.pill-no_show, .pill-declined { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.pill-completed { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.pill-vip { color: var(--ink); background: var(--text); border-color: var(--text); font-family: var(--display); letter-spacing: .15em; text-transform: uppercase; font-size: .62rem; }

.flash { margin: 0 0 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); }
.flash-ok { border-color: var(--text); }
.flash-error { border-color: var(--bad); color: #ffd9d4; }
.flash-info { color: var(--muted); }

/* ---------- Public layout ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem 1rem; background: rgba(10,10,10,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand img { height: 44px; width: auto; }
.topnav { display: flex; gap: .2rem; }
.topnav a { font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; text-decoration: none; padding: .55rem .7rem; color: var(--muted); border-radius: 8px; }
.topnav a.on, .topnav a:hover { color: var(--text); }
.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 1.25rem 1rem 6rem; }
.wrap.wide { max-width: 1080px; }
.site-foot { text-align: center; padding: 3rem 1rem calc(6rem + var(--safe-b)); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-foot a { color: var(--text); text-decoration: none; }
.foot-logo { width: 110px; margin: 0 auto 1rem; opacity: .9; }
.sticky-cta { position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + var(--safe-b)); z-index: 30; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
@media (min-width: 760px) { .sticky-cta { display: none; } .site-foot { padding-bottom: 3rem; } }

/* hero */
.hero { min-height: calc(100svh - 64px); display: grid; place-items: center; text-align: center; padding: 2rem 0 3rem; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; margin: auto; width: min(92vw, 640px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244,241,235,.06), transparent 70%); pointer-events: none; }
.hero-logo { width: min(78vw, 440px); margin: 0 auto 1.6rem; position: relative; }
.hero p.tag { color: var(--muted); max-width: 30ch; margin: 0 auto 1.8rem; font-size: 1.05rem; }
.hero .row { justify-content: center; }
.scroll-hint { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--dim); letter-spacing: .3em; font-family: var(--display); }
@media (max-width: 759px) { .scroll-hint { display: none; } }

.menu { list-style: none; margin: 0; padding: 0; }
.menu li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.menu .nm { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 1rem; }
.menu .pr { font-family: var(--display); font-size: 1.05rem; letter-spacing: .05em; }
.menu .ds { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
.menu .du { color: var(--dim); font-size: .82rem; }

.perk-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.perk { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.perk b { font-family: var(--display); text-transform: uppercase; letter-spacing: .15em; font-size: .85rem; display: block; margin-bottom: .3rem; }
.perk span { color: var(--muted); font-size: .9rem; }

/* ---------- Booking flow ---------- */
.steps { display: flex; gap: .4rem; margin: 0 0 1.4rem; }
.steps span { flex: 1; height: 3px; border-radius: 3px; background: var(--line); }
.steps span.on { background: var(--text); }
.step-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }

.svc { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; padding: 1rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.svc + .svc { margin-top: .6rem; }
.svc input { appearance: none; width: 24px; height: 24px; border: 1.5px solid var(--line-strong); border-radius: 50%; margin: 0; display: grid; place-items: center; }
.svc input:checked { background: var(--text); border-color: var(--text); }
.svc input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.svc:has(input:checked) { border-color: var(--text); background: var(--surface-2); }
.svc .nm { font-weight: 600; }
.svc .meta { font-size: .85rem; color: var(--muted); }
.svc .pr { font-family: var(--display); font-size: 1.05rem; text-align: right; }
.svc .pr s { color: var(--dim); font-size: .8rem; display: block; }
.svc-group { margin: 1.4rem 0 .6rem; }

.days { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .2rem .1rem .8rem; margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 66px; scroll-snap-align: start; text-align: center; padding: .65rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; color: var(--text); font: inherit; }
.day .dw { font-family: var(--display); font-size: .7rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.day .dn { font-family: var(--display); font-size: 1.45rem; line-height: 1.2; }
.day .dc { font-size: .66rem; color: var(--dim); }
.day.off { opacity: .3; cursor: default; }
.day.sel { background: var(--text); color: var(--ink); border-color: var(--text); }
.day.sel .dw, .day.sel .dc { color: var(--ink); opacity: .7; }
.month-label { font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: .75rem; color: var(--muted); margin: .4rem 0 .5rem; }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 520px) { .slots { grid-template-columns: repeat(4, 1fr); } }
.slot { position: relative; min-height: 50px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: 500 .95rem var(--body); cursor: pointer; }
.slot:hover { border-color: var(--muted); }
.slot.best { border-color: var(--line-strong); }
.slot.best::after { content: "★"; position: absolute; top: 3px; right: 6px; font-size: .6rem; color: var(--muted); }
.slot.sel { background: var(--text); color: var(--ink); border-color: var(--text); }
.slot-period { grid-column: 1 / -1; font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: .7rem; color: var(--dim); margin-top: .6rem; }

.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; background: var(--surface); }
.summary .line { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.summary .line.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .7rem; font-weight: 600; }
.summary .line.dep { color: var(--text); font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; }
.when-big { font-family: var(--display); font-size: 1.6rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }

.bar-bottom { position: sticky; bottom: 0; margin: 1.5rem -1rem 0; padding: .9rem 1rem calc(.9rem + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 25%); display: flex; gap: .6rem; align-items: center; }
.bar-bottom .sum { flex: 1; font-size: .85rem; color: var(--muted); line-height: 1.3; }
.bar-bottom .sum b { color: var(--text); font-size: 1rem; display: block; }

.auth-box { max-width: 420px; margin: 1rem auto; }
.auth-box .logo { width: 150px; margin: 0 auto 1.5rem; }

.appt { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: start; }
.appt .date { text-align: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .4rem 0; }
.appt .date .m { font-family: var(--display); font-size: .65rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.appt .date .d { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }

/* ---------- Admin ---------- */
body.admin { background: var(--bg); }
.side { display: none; }
.admin-main { min-height: 100vh; padding-bottom: calc(80px + var(--safe-b)); }
.admin-top { position: sticky; top: 0; z-index: 15; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem;
  background: rgba(10,10,10,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-top h1 { font-size: 1.05rem; margin: 0; }
.admin-body { padding: 1rem; max-width: 1100px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(14,14,14,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .55rem 0 .5rem; color: var(--dim); text-decoration: none; background: none; border: 0; font: 500 .66rem var(--body); cursor: pointer; }
.tabbar a.on { color: var(--text); }
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet-panel { width: 100%; background: var(--surface); border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; padding: 1rem 1rem calc(1rem + var(--safe-b)); display: grid; gap: .2rem; animation: up .2s ease-out; max-height: 85vh; overflow: auto; }
.sheet-panel > a { display: flex; align-items: center; gap: .9rem; padding: .95rem .5rem; text-decoration: none; border-bottom: 1px solid var(--line); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

@media (min-width: 900px) {
  .side { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; width: 230px; border-right: 1px solid var(--line); padding: 1.2rem .8rem; background: #0d0d0d; }
  .side-brand img { width: 130px; margin: 0 auto 1.6rem; }
  .side nav { display: grid; gap: .15rem; }
  .side nav a { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: .93rem; }
  .side nav a:hover { background: var(--surface); color: var(--text); }
  .side nav a.on { background: var(--surface-2); color: var(--text); }
  .side .badge { margin-left: auto; }
  .side-foot { margin-top: auto; display: grid; gap: .3rem; font-size: .85rem; }
  .side-foot a { color: var(--dim); text-decoration: none; padding: .3rem .8rem; }
  .admin-main { margin-left: 230px; padding-bottom: 2rem; }
  .admin-top { padding: 1rem 2rem; }
  .admin-body { padding: 1.5rem 2rem; }
  .tabbar, #more-sheet { display: none !important; }
  .sheet { align-items: center; justify-content: center; }
  .sheet-panel { max-width: 480px; border-radius: 20px; border: 1px solid var(--line); }
}
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--warn); color: var(--ink); font: 700 .7rem var(--body); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 1.2rem; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; background: var(--surface); }
.stat .k { font-family: var(--display); font-size: .66rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.stat .v { font-family: var(--display); font-size: 1.6rem; line-height: 1.2; }
.stat .s { font-size: .78rem; color: var(--dim); }

/* agenda */
.agenda { display: grid; gap: .5rem; }
.ag { display: grid; grid-template-columns: 70px 1fr; gap: .8rem; align-items: stretch; }
.ag .t { font-family: var(--display); font-size: .95rem; letter-spacing: .04em; padding-top: .8rem; text-align: right; color: var(--muted); }
.ag .t small { display: block; font-size: .7rem; color: var(--dim); }
.ag .b { border: 1px solid var(--line-strong); border-left: 3px solid var(--text); border-radius: var(--radius-sm); padding: .75rem .9rem; background: var(--surface); text-decoration: none; display: block; }
.ag .b:hover { background: var(--surface-2); }
.ag.pending .b { border-left-color: var(--warn); }
.ag.hold .b { border-left-style: dashed; border-left-color: var(--muted); }
.ag.done .b { opacity: .55; }
.ag.gap .b { border: 1px dashed var(--line); background: transparent; color: var(--muted); font-size: .88rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.ag.gap.dead .b { border-color: color-mix(in srgb, var(--bad) 40%, transparent); color: color-mix(in srgb, var(--bad) 80%, var(--text)); }
.ag.off .b { border: 1px solid var(--line); border-left: 3px solid var(--dim); background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(255,255,255,.025) 8px 16px); color: var(--muted); }
.ag .nm { font-weight: 600; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.ag .sv { font-size: .87rem; color: var(--muted); }
.ag .acts { display: flex; gap: .4rem; margin-top: .6rem; flex-wrap: wrap; }

.daynav { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.daynav .lbl-day { flex: 1; text-align: center; font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; }
.daynav a { min-width: 44px; }

/* week grid */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.wk-day { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem .45rem; min-height: 120px; background: var(--surface); text-decoration: none; display: flex; flex-direction: column; gap: .25rem; }
.wk-day:hover { border-color: var(--line-strong); }
.wk-day.today { border-color: var(--text); }
.wk-day.closed { background: transparent; opacity: .55; }
.wk-day .wd { font-family: var(--display); font-size: .66rem; letter-spacing: .15em; color: var(--muted); text-transform: uppercase; }
.wk-day .dn { font-family: var(--display); font-size: 1.15rem; line-height: 1; }
.wk-day .ev { font-size: .68rem; line-height: 1.25; padding: .2rem .3rem; border-radius: 5px; background: var(--surface-2); border-left: 2px solid var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wk-day .ev.pending { border-left-color: var(--warn); }
.wk-day .ev.off { border-left-color: var(--dim); color: var(--muted); }
.wk-day .load { margin-top: auto; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.wk-day .load i { display: block; height: 100%; background: var(--text); }
@media (max-width: 640px) {
  .week { grid-template-columns: 1fr; }
  .wk-day { min-height: 0; flex-direction: row; align-items: center; flex-wrap: wrap; gap: .5rem .7rem; padding: .7rem .8rem; }
  .wk-day .ev { display: none; }
  .wk-day .load { margin: 0; flex: 1 0 100%; }
  .wk-day .cnt { margin-left: auto; font-size: .8rem; color: var(--muted); }
}
@media (min-width: 641px) { .wk-day .cnt { display: none; } }

/* service editor */
.svc-edit { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1rem; display: grid; gap: .8rem; }
.svc-edit + .svc-edit { margin-top: .7rem; }
.svc-edit .top { display: grid; grid-template-columns: 1fr; gap: .6rem; }
.svc-edit .nums { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.svc-edit .flags { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.svc-edit .flags label { display: flex; gap: .45rem; align-items: center; cursor: pointer; }
.svc-edit.inactive { opacity: .55; }
@media (min-width: 760px) { .svc-edit .top { grid-template-columns: 2fr 1fr 1fr; } }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--text); }
.stepper { display: flex; align-items: stretch; }
.stepper button { width: 44px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 1.2rem; cursor: pointer; }
.stepper button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; }
.stepper button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 0; }
.stepper input { border-radius: 0; text-align: center; }

/* time off */
.presets { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.presets button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 99px; padding: .55rem 1rem; font: 500 .88rem var(--body); cursor: pointer; }
.presets button:hover, .presets button.on { background: var(--text); color: var(--ink); }
.conflicts { border: 1px solid var(--warn); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.conflicts h3 { color: var(--warn); }
.off-item { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.off-item .when { font-weight: 600; }

/* hours editor */
.hrs-day { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; background: var(--surface); }
.hrs-day + .hrs-day { margin-top: .6rem; }
.hrs-day .hd { display: flex; justify-content: space-between; align-items: center; }
.hrs-day .hd b { font-family: var(--display); text-transform: uppercase; letter-spacing: .15em; font-size: .9rem; font-weight: 500; }
.hrs-range { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto; gap: .5rem; align-items: center; margin-top: .6rem; }
.hrs-range .vipchk { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; }
.hrs-day.closed .ranges { display: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.icon-btn:hover { color: var(--text); border-color: var(--text); }

table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.tbl th { text-align: left; font-size: .68rem; color: var(--muted); padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
table.tbl td { padding: .7rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.scroll-x { overflow-x: auto; }

.save-bar { position: sticky; bottom: calc(70px + var(--safe-b)); z-index: 10; margin-top: 1.2rem; padding: .8rem; background: rgba(19,19,19,.95); border: 1px solid var(--line-strong); border-radius: var(--radius); display: flex; gap: .6rem; align-items: center; justify-content: space-between; backdrop-filter: blur(8px); }
@media (min-width: 900px) { .save-bar { bottom: 1rem; } }
.save-bar .msg { color: var(--muted); font-size: .88rem; }

details.more { border: 1px solid var(--line); border-radius: var(--radius); padding: .2rem 1rem; background: var(--surface); }
details.more summary { cursor: pointer; padding: .8rem 0; font-family: var(--display); text-transform: uppercase; letter-spacing: .15em; font-size: .82rem; }
.mail-body { white-space: pre-wrap; font-size: .85rem; color: var(--muted); background: var(--bg); padding: .8rem; border-radius: 8px; margin-top: .5rem; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.hrs-range input[type=time] { min-width: 0; padding-left: .6rem; padding-right: .4rem; }
.ag.gap .b > .row { flex-wrap: nowrap; }

/* =====================================================================
   Depth & effects layer — shading, sheen, light. Monochrome throughout.
   ===================================================================== */
:root {
  --chrome: linear-gradient(180deg, #ffffff 0%, #e9e5dd 45%, #b9b3a8 100%);
  --chrome-text: linear-gradient(180deg, #ffffff 10%, #d9d4ca 55%, #8f897f 100%);
  --edge: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.03) 40%, rgba(255,255,255,.07));
  --panel: linear-gradient(180deg, #1a1a1a 0%, #121212 60%, #0f0f0f 100%);
  --panel-hi: linear-gradient(180deg, #222 0%, #171717 100%);
  --lift: 0 1px 0 rgba(255,255,255,.06) inset, 0 -1px 0 rgba(0,0,0,.6) inset, 0 18px 40px -22px rgba(0,0,0,.9), 0 2px 6px -2px rgba(0,0,0,.6);
  --glow: 0 0 0 1px rgba(255,255,255,.55), 0 10px 30px -6px rgba(255,255,255,.22);
}

/* Page backdrop: vignette + fine film grain */
body { background:
  radial-gradient(1200px 700px at 50% -10%, #1b1b1b 0%, transparent 60%),
  radial-gradient(900px 600px at 100% 100%, #121212 0%, transparent 60%),
  var(--bg); background-attachment: fixed; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Metallic headings */
h1, .when-big, .stat .v, .menu .pr, .day.sel .dn {
  background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.day.sel .dn { background: linear-gradient(180deg, #000, #3a3a3a); -webkit-background-clip: text; background-clip: text; }
h2 { display: flex; align-items: center; gap: .9rem; }
h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.22), transparent); }

/* Shaded surfaces */
.card, .svc, .list, .stat, .summary, .perk, .svc-edit, .hrs-day, details.more, .wk-day, .day, .slot, .ag .b, .conflicts {
  background: var(--panel); box-shadow: var(--lift); position: relative; }
.card, .list, .summary, .svc-edit, .hrs-day, details.more, .perk, .stat { border-color: #262626; }
/* hairline gradient edge, brighter on top like light from above */
.card::before, .summary::before, .perk::before, .stat::before, .svc::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--edge); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.list > li { background: transparent; }
.list a.item:hover, .svc:hover, .ag .b:hover, .wk-day:hover { background: var(--panel-hi); }
.svc, .perk, .wk-day, .ag .b, .slot, .day { transition: transform .2s ease, box-shadow .2s ease, background .2s, border-color .2s; }
@media (hover: hover) {
  .svc:hover, .perk:hover, .wk-day:hover { transform: translateY(-2px); box-shadow: var(--lift), 0 24px 40px -24px rgba(0,0,0,1); }
  .slot:hover, .day:not(.off):hover { transform: translateY(-1px); border-color: #555; }
}
/* pointer-follow glow on cards (desktop) */
.glowable { --x: 50%; --y: 50%; }
.glowable::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--x) var(--y), rgba(255,255,255,.07), transparent 60%); }
.glowable:hover::after { opacity: 1; }

/* Selection glow */
.svc:has(input:checked) { background: var(--panel-hi); border-color: rgba(255,255,255,.7); box-shadow: var(--lift), var(--glow); }
.svc input:checked { background: var(--chrome); box-shadow: 0 0 12px rgba(255,255,255,.35); }
.day.sel, .slot.sel { background: var(--chrome); border-color: #fff; box-shadow: var(--glow); }
.slot.sel { animation: pop .25s ease-out; }
@keyframes pop { 50% { transform: scale(1.05); } }
.steps span { background: #222; box-shadow: inset 0 1px 1px rgba(0,0,0,.6); }
.steps span.on { background: var(--chrome); box-shadow: 0 0 10px rgba(255,255,255,.35); }

/* Buttons: chrome with a light sweep */
.btn { position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0)); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 6px 16px -10px rgba(0,0,0,.9); }
.btn-primary { background: var(--chrome); color: #0a0a0a; border-color: #fff;
  box-shadow: 0 1px 0 #fff inset, 0 -2px 0 rgba(0,0,0,.18) inset, 0 10px 24px -10px rgba(255,255,255,.35), 0 2px 4px rgba(0,0,0,.5); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.btn-primary:hover { background: linear-gradient(180deg, #fff, #f2efe9 45%, #cdc7bc); box-shadow: 0 1px 0 #fff inset, 0 14px 30px -10px rgba(255,255,255,.45), 0 2px 4px rgba(0,0,0,.5); }
.btn::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transition: left .6s ease; pointer-events: none; }
.btn-primary::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent); z-index: 1; mix-blend-mode: soft-light; }
.btn:hover::before { left: 130%; }
.btn-ghost { background: transparent; box-shadow: none; }
.sweep::before { animation: sweep 5s ease-in-out 1.2s infinite; }
@keyframes sweep { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.badge { background: linear-gradient(180deg, #f6d38c, #c99a45); box-shadow: 0 0 10px rgba(227,184,102,.45); }
.pill-vip { background: var(--chrome); box-shadow: 0 0 10px rgba(255,255,255,.25); }

/* Bars */
.topbar { background: linear-gradient(180deg, rgba(20,20,20,.92), rgba(10,10,10,.82)); border-bottom: 0; box-shadow: 0 10px 30px -20px #000; }
.topbar::after, .admin-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); }
.admin-top { border-bottom: 0; }
.tabbar { background: linear-gradient(180deg, rgba(24,24,24,.94), rgba(8,8,8,.98)); box-shadow: 0 -10px 30px -12px #000; border-top-color: #262626; }
.tabbar a.on { color: #fff; text-shadow: 0 0 12px rgba(255,255,255,.6); }
.tabbar a.on svg { filter: drop-shadow(0 0 6px rgba(255,255,255,.5)); }
@media (min-width: 900px) {
  .side { background: linear-gradient(180deg, #121212, #090909); box-shadow: 10px 0 30px -20px #000; border-right-color: #1f1f1f; }
  .side nav a.on { background: var(--panel-hi); box-shadow: var(--lift); color: #fff; }
  .side nav a.on svg { filter: drop-shadow(0 0 6px rgba(255,255,255,.45)); }
}
.bar-bottom { background: linear-gradient(transparent, rgba(10,10,10,.92) 30%); }
.sticky-cta { box-shadow: 0 1px 0 #fff inset, 0 16px 40px -8px rgba(0,0,0,.9), 0 0 30px -6px rgba(255,255,255,.3); }

/* Hero: spotlight that follows the pointer, smoke, logo reveal */
.hero { --mx: 50%; --my: 40%; overflow: hidden; }
.hero::before { width: auto; aspect-ratio: auto; border-radius: 0; margin: 0;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255,255,255,.09), transparent 60%); transition: background .1s; }
.hero::after { content: ""; position: absolute; inset: -20%; pointer-events: none; opacity: .5; filter: blur(40px);
  background: radial-gradient(40% 30% at 30% 60%, rgba(255,255,255,.05), transparent 70%), radial-gradient(35% 25% at 70% 35%, rgba(255,255,255,.045), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(4%, -3%, 0) rotate(3deg) scale(1.05); } }
.hero > div { position: relative; z-index: 1; }
.hero-logo { filter: drop-shadow(0 0 30px rgba(255,255,255,.12)) drop-shadow(0 12px 24px rgba(0,0,0,.8));
  animation: logo-in 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes logo-in { from { opacity: 0; filter: blur(14px) drop-shadow(0 0 0 transparent); transform: scale(.94) translateY(10px); clip-path: inset(0 100% 0 0); }
  60% { clip-path: inset(0 0 0 0); } to { opacity: 1; } }
.hero .tag, .hero .row, .hero .small { animation: rise .9s ease-out both; }
.hero .tag { animation-delay: .7s; } .hero .row { animation-delay: .9s; } .hero .small { animation-delay: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.scroll-hint { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); opacity: .5; } }
.brand img { filter: drop-shadow(0 0 8px rgba(255,255,255,.15)); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Menu rows: soft sheen on hover */
.menu li { position: relative; border-bottom: 0; }
.menu li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.04)); }
@media (hover: hover) { .menu li { transition: padding .25s; } .menu li:hover { padding-left: .6rem; } }

/* Admin specifics */
.ag .b { border-color: #2c2c2c; }
.ag:not(.gap):not(.off) .b { border-left: 3px solid #f4f1eb; box-shadow: var(--lift), -6px 0 18px -10px rgba(255,255,255,.35); }
.ag.pending .b { border-left-color: var(--warn); box-shadow: var(--lift), -6px 0 18px -10px rgba(227,184,102,.5); }
.ag.gap .b { background: transparent; box-shadow: none; }
.ag.gap.dead .b { background: linear-gradient(90deg, rgba(226,104,93,.07), transparent); }
.wk-day .load { background: #1f1f1f; box-shadow: inset 0 1px 2px #000; }
.wk-day .load i { background: var(--chrome); box-shadow: 0 0 8px rgba(255,255,255,.4); }
.wk-day.today { border-color: #fff; box-shadow: var(--lift), var(--glow); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 0 18px -6px rgba(255,255,255,.3); }
input:not([type=checkbox]):not([type=radio]), select, textarea { background: linear-gradient(180deg, #0c0c0c, #141414); box-shadow: inset 0 2px 4px rgba(0,0,0,.6); }
.switch input[type=checkbox] { box-shadow: inset 0 2px 4px rgba(0,0,0,.7); }
.switch input[type=checkbox]:checked { background: var(--chrome); box-shadow: 0 0 12px rgba(255,255,255,.3); }
.flash { background: var(--panel); box-shadow: var(--lift); animation: rise .4s ease-out both; }
.sheet { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet-panel { background: linear-gradient(180deg, #1c1c1c, #111); box-shadow: 0 -20px 60px -10px #000; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-logo, .hero::after, .sweep::before, .scroll-hint { animation: none !important; }
}

/* VIP membership */
.qr { display: grid; place-items: center; }
.qr canvas { width: min(240px, 70vw); height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 20px 50px -18px rgba(255,255,255,.25); }
.vip-price { margin: 1.2rem 0 1.6rem; display: flex; align-items: baseline; justify-content: center; gap: .4rem; }
.vip-price .amt { font-family: var(--display); font-size: 3.2rem; line-height: 1; background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(255,255,255,.18)); }
.vip-price .per { color: var(--muted); font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; }

/* Alerts grid */
.alert-grid td, .alert-grid th { vertical-align: middle; }
.alert-grid th.center, .alert-grid td.center { width: 70px; text-align: center; }
.mini-switch { display: inline-block; position: relative; width: 44px; height: 26px; cursor: pointer; }
.mini-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mini-switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-strong); box-shadow: inset 0 2px 4px rgba(0,0,0,.7); transition: background .15s; pointer-events: none; }
.mini-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.mini-switch input:checked + span { background: var(--chrome); box-shadow: 0 0 10px rgba(255,255,255,.3); }
.mini-switch input:checked + span::after { transform: translateX(18px); background: var(--ink); }
.mini-switch input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
@media (max-width: 520px) { .alert-grid th.center, .alert-grid td.center { width: 54px; padding-left: .2rem; padding-right: .2rem; } .alert-grid td:first-child { padding-left: 0; } }

/* Check-out */
.checkout .due { display: flex; justify-content: space-between; align-items: baseline; margin: .9rem 0; padding: .9rem 1rem; border-radius: var(--radius); background: var(--panel); box-shadow: var(--lift); }
.checkout .due .amt { font-family: var(--display); font-size: 2rem; background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seg-wide { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
.seg-wide label { text-align: center; padding: .6rem .3rem; }
.checkout .change { font-family: var(--display); letter-spacing: .08em; font-size: 1.1rem; margin: -.3rem 0 1rem; }
.paid-line { font-size: .85rem; color: var(--good); }

/* Post-visit rating & tip */
.visit h1 { margin: .4rem 0 1rem; }
.stars { display: flex; flex-direction: row-reverse; justify-content: center; gap: .35rem; margin: .4rem 0 1.2rem; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 2.8rem; line-height: 1; cursor: pointer; color: #333; transition: transform .15s, color .15s, text-shadow .15s; -webkit-tap-highlight-color: transparent; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #f4f1eb; text-shadow: 0 0 14px rgba(255,255,255,.45); }
.stars input:checked + label { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 6px; }
.tip-block { margin: 1.2rem 0 1.4rem; padding: 1.1rem; border-radius: var(--radius); background: var(--panel); box-shadow: var(--lift); }
.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: .5rem; }
.tip-grid button { min-height: 56px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font: 500 1.15rem var(--display); letter-spacing: .05em; cursor: pointer; transition: all .15s; }
.tip-grid button.on { background: var(--chrome); color: var(--ink); border-color: #fff; box-shadow: var(--glow); }
.rating-line { color: var(--text); letter-spacing: .1em; }

/* Today: agenda + approvals side by side on wide screens (shop iPad in landscape, desktop) */
@media (min-width: 1100px) {
  .today-grid.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 1.6rem; align-items: start; }
  .today-grid.two .t-main { grid-column: 1; grid-row: 1; }
  .today-grid.two .t-side { grid-column: 2; grid-row: 1; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
  .today-grid.two .t-side .stats { grid-template-columns: 1fr 1fr; }
  .admin-body { max-width: 1400px; }
}
@media (min-width: 1100px) { .today-grid.two .t-main .stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }

/* Decline & risk */
.reason-list { display: grid; gap: .4rem; margin-bottom: .8rem; }
.reason { display: flex; gap: .7rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); cursor: pointer; }
.reason:has(input:checked) { border-color: var(--text); box-shadow: var(--glow); }
.reason input { accent-color: var(--text); }
.ban-toggle input[type=checkbox]:checked { background: linear-gradient(180deg, #f08a80, #b8483e); box-shadow: 0 0 12px rgba(226,104,93,.45); }
.risk { display: block; margin-top: .45rem; padding: .45rem .7rem; border-radius: 8px; font-size: .84rem; text-decoration: none;
  color: #ffd2cc; background: linear-gradient(90deg, rgba(226,104,93,.18), rgba(226,104,93,.05)); border: 1px solid rgba(226,104,93,.45); }
.pill-banned { color: #fff; background: linear-gradient(180deg, #e2685d, #a63c33); border-color: transparent; }
.link-row { display: flex; justify-content: space-between; gap: .8rem; align-items: center; }
