/* Gezellig Male Grooming. Shared styles for every page.
   Palette: the shop's own charcoal and forest green, with white type. Dark first, light variant below. */
:root {
  --bg: #1a1a1a;
  --surface: #222222;
  --surface-2: #2b2b2b;
  --fg: #f2f2ee;
  --muted: #a3a8a3;
  --line: #363936;
  --accent: #3f7552;        /* green fills: buttons, boxes */
  --accent-text: #62a878;   /* green used as text and line art on charcoal */
  --accent-fg: #ffffff;
  --ok: #8fe0a8;
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f4f1; --surface: #ffffff; --surface-2: #e7eae5; --fg: #1a1a1a; --muted: #5a615b; --line: #d3d8d1;
    --accent: #2f6a45; --accent-text: #2f6a45; --accent-fg: #ffffff; --ok: #1c7a4a; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f4f1; --surface: #ffffff; --surface-2: #e7eae5; --fg: #1a1a1a; --muted: #5a615b; --line: #d3d8d1;
  --accent: #2f6a45; --accent-text: #2f6a45; --accent-fg: #ffffff; --ok: #1c7a4a; color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.wrap { max-width: 1100px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 32px; } }
.eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; margin: 0; text-wrap: balance; letter-spacing: .01em; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 5.5vw, 3rem); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
section[id] { scroll-margin-top: 60px; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.mark { font-weight: 800; letter-spacing: .08em; text-decoration: none; font-size: .95rem; }
.mark span { color: var(--accent-text); }
.links { display: flex; align-items: center; gap: 22px; font-size: .88rem; font-weight: 500; }
.links a.l { text-decoration: none; color: var(--muted); }
.links a.l:hover { color: var(--fg); }
@media (max-width: 560px) { .links { gap: 14px; } .links a.l:not(.keep) { display: none; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-fg); border: 0; padding: 12px 20px; border-radius: 4px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.sm { padding: 9px 14px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .88rem; padding-block: 18px 0; }
.back:hover { color: var(--fg); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.motif { position: absolute; inset: 0; color: var(--accent-text); opacity: .38; -webkit-mask-image: radial-gradient(70% 90% at 88% 15%, #000, transparent 75%); mask-image: radial-gradient(70% 90% at 88% 15%, #000, transparent 75%); pointer-events: none; }
.motif svg { width: 100%; height: 100%; display: block; }
.hero .wrap { position: relative; padding-block: clamp(40px, 8vw, 96px) clamp(36px, 6vw, 72px); display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(2.5rem, 13vw, 8rem); font-weight: 900; letter-spacing: -.01em; line-height: .98; overflow-wrap: anywhere; }
.hero h1 .g { color: var(--accent-text); display: block; }
.hero h1 .m { display: block; font-size: .62em; letter-spacing: 0; margin-top: .08em; }
.hero-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
@media (max-width: 760px) { .hero-row { grid-template-columns: 1fr; } }
.lede { font-size: clamp(1.15rem, 2.4vw, 1.45rem); max-width: 34ch; margin: 0 0 22px; border-left: 3px solid var(--accent); padding-left: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.facts { display: flex; flex-direction: column; gap: 14px; background: var(--accent); color: var(--accent-fg); border-radius: 14px; padding: 20px; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts b { font-weight: 800; font-size: 1.5rem; line-height: 1.15; }
.facts span { opacity: .85; font-size: .85rem; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .8rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); }
.status.open .dot { background: #b8f5c8; box-shadow: 0 0 0 4px rgba(184,245,200,.28); }

/* Definition */
.def { padding-block: clamp(56px, 9vw, 110px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
@media (max-width: 800px) { .def { grid-template-columns: 1fr; } }
.word { font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; font-size: clamp(2.8rem, 9vw, 5rem); line-height: 1; margin: 0 0 12px; }
.ipa { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }
.def p { margin: 0 0 16px; max-width: 58ch; }
.def p.big { font-size: 1.2rem; line-height: 1.55; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillars div { background: var(--bg); padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pillars h3 { font-size: .9rem; letter-spacing: .08em; color: var(--accent-text); }
.pillars span { color: var(--muted); font-size: .88rem; }

/* Menu */
.menu { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(48px, 8vw, 96px) 0; }
.menu-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.menu-head p { margin: 0; color: var(--muted); max-width: 44ch; font-size: .92rem; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 8px; }
.tabs button { flex: 0 0 auto; background: transparent; border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: .88rem; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { width: 100%; display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: start; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 18px 4px; cursor: pointer; }
.row:hover .name { color: var(--accent-text); }
.box { width: 22px; height: 22px; border: 1.5px solid var(--muted); border-radius: 3px; display: grid; place-items: center; margin-top: 2px; }
.row[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.box svg { width: 14px; height: 14px; opacity: 0; }
.row[aria-pressed="true"] .box svg { opacity: 1; }
.name { font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.25; color: var(--accent-text); }
.sub { display: block; color: var(--muted); font-size: .88rem; margin-top: 6px; max-width: 54ch; line-height: 1.5; }
.price { font-family: var(--font-mono); font-weight: 500; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.bar { position: sticky; bottom: env(safe-area-inset-bottom, 0px); background: var(--surface-2); border-top: 1px solid var(--line); margin-top: 8px; }
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.sum { display: flex; flex-direction: column; min-width: 0; }
.sum b { font-family: var(--font-mono); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.sum span { color: var(--muted); font-size: .82rem; }
.bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Products */
.prod-head { padding-block: clamp(20px, 4vw, 40px) 28px; display: flex; flex-direction: column; gap: 14px; }
.prod-head p { margin: 0; color: var(--muted); max-width: 52ch; font-size: 1.02rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; padding-bottom: clamp(36px, 6vw, 72px); }
.prod { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; min-width: 0; }
.prod .art { background: var(--surface-2); color: var(--accent-text); display: grid; place-items: center; padding: 22px 0 12px; border-bottom: 1px solid var(--line); }
.prod .art svg { width: 110px; height: 128px; display: block; }
.prod .info { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.prod .tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.prod .pname { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.prod h3 { font-size: 1rem; letter-spacing: .03em; }
.prod .pprice { font-family: var(--font-mono); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.prod-note { border-top: 1px solid var(--line); padding-block: 28px 32px; color: var(--muted); max-width: 60ch; }
.prod-note p { margin: 0; }
.prod-note b { color: var(--fg); font-weight: 700; }
.back-bottom { padding-bottom: 56px; }

/* Visit */
.visit { border-top: 1px solid var(--line); padding-block: clamp(48px, 8vw, 96px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 80px); }
@media (max-width: 800px) { .visit { grid-template-columns: 1fr; } }
.visit > div { min-width: 0; }
.hours { width: 100%; border-collapse: collapse; margin: 22px 0 0; font-family: var(--font-mono); font-size: .92rem; }
.hours td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today { color: var(--accent-text); }
.drinks { margin-top: 22px; background: var(--accent); color: var(--accent-fg); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.drinks b { font-weight: 800; font-size: 1rem; }
.drinks span { opacity: .92; font-size: .92rem; }
.contact { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.contact .item { display: flex; flex-direction: column; gap: 6px; }
.contact .label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact .val { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.02rem; overflow-wrap: anywhere; }
.note { color: var(--muted); font-size: .88rem; margin-top: 18px; max-width: 48ch; }
.toast { min-height: 1.2em; font-size: .82rem; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: .85rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.foot-l { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.foot-r { margin-left: auto; width: min(100%, 340px); display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 700px) { .foot-r { margin-left: 0; width: 100%; } }
.maplink { align-self: flex-end; color: var(--accent-text); font-weight: 600; text-decoration: none; font-size: .82rem; }
.maplink:hover { text-decoration: underline; }

/* Map photo card: Google Maps screenshot, zoomed on the shop, opens full size */
.mapcard { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; text-align: left; }
.mapcard img { position: absolute; width: 200%; max-width: none; height: auto; left: -45%; top: -36%; display: block; }
.ring { position: absolute; left: 50.7%; top: 48%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid var(--accent); animation: pulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(.45); opacity: .95; } 100% { transform: scale(1.5); opacity: 0; } }
.chip { position: absolute; background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--fg); border-radius: 6px; padding: 3px 8px; font-size: .72rem; pointer-events: none; }
.chip.cap { left: 10px; top: 10px; display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; }
.chip.cap b { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; }
.chip.cap span { color: var(--muted); }
.chip.hint { left: 10px; bottom: 10px; color: var(--muted); }
.chip.credit { right: 10px; bottom: 10px; color: var(--muted); font-size: .66rem; }
[hidden] { display: none !important; }
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.82); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.lb-body { width: min(1100px, 100%); max-height: calc(100% - 56px); overflow: auto; border-radius: 10px; background: var(--surface-2); }
.lb-body img { display: block; width: max(100%, 820px); max-width: none; height: auto; }
.lb-bar { width: min(1100px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; font-size: .8rem; }
.lb-bar button { background: #fff; color: #111; border: 0; border-radius: 4px; padding: 9px 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; opacity: .9; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Additions for the multi-page site ---- */
.mark i { font-style: normal; }
@media (max-width: 560px) { .mark i { display: none; } }
.links a.l[aria-current="page"] { color: var(--fg); }
.foot-links a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.prod .art.photo { padding: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.prod .art.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Loyalty teaser on the home page */
.loyal { padding-block: clamp(48px, 8vw, 96px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 800px) { .loyal { grid-template-columns: 1fr; } }
.loyal > div { min-width: 0; }
.loyal p { margin: 16px 0 22px; max-width: 46ch; color: var(--muted); font-size: 1.05rem; }
.mini { background: var(--accent); border-radius: 18px; padding: 22px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 420px; }
.mini i { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,255,255,.5); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .6rem; color: #fff; text-transform: uppercase; text-align: center; line-height: 1.1; }
.mini i.on { background: #fff; border: 2px solid #fff; color: var(--accent); }
.mini i.rw { border-style: solid; border-color: #fff; }

/* Shop photos. Hidden until photos are added. */
.gallery { padding-block: 0 clamp(48px, 8vw, 96px); }
.gallery h2 { margin: 10px 0 22px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 6px; background: var(--surface-2); }

/* ---- Loyalty card, staff and owner pages ---- */
.app { max-width: 520px; margin-inline: auto; padding: 28px 16px 64px; display: flex; flex-direction: column; gap: 18px; }
.app.wide { max-width: 900px; }
.app h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.app .intro { margin: 0; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel h2 { font-size: 1rem; letter-spacing: .06em; }
.panel p { margin: 0; color: var(--muted); font-size: .95rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.app input[type="text"], .app input[type="password"] { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 12px; width: 100%; min-width: 0; }
.app input:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.app input.pin { font-family: var(--font-mono); font-size: 1.3rem; letter-spacing: .3em; text-align: center; }
.app input.code { font-family: var(--font-mono); }
.brow { display: flex; flex-wrap: wrap; gap: 8px; }
.brow .btn { flex: 1 1 auto; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--bad); }
.msg { min-height: 1.3em; font-size: .9rem; color: var(--muted); }
.msg.bad { color: var(--bad); }
.msg.good { color: var(--ok); }
.steps { margin: 0; padding-left: 1.2em; color: var(--muted); display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.small { font-size: .85rem; color: var(--muted); }

.pass { background: var(--accent); color: #fff; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.pass-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.brand { font-weight: 900; font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.brand small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .16em; opacity: .8; margin-top: 5px; }
.tally { text-align: right; font-weight: 900; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tally small { display: block; font-weight: 600; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; margin-top: 5px; }
.stamps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,255,255,.5); display: grid; place-items: center; min-width: 0; }
.stamp.on { border: 2px solid #fff; background: #fff; color: #2f6a45; }
.stamp svg { width: 46%; height: 46%; }
.stamp.reward { font-weight: 800; font-size: .54rem; letter-spacing: .02em; text-transform: uppercase; text-align: center; line-height: 1.1; padding: 2px; border-style: solid; border-color: #fff; }
.rewards { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.rewards li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.25); }
.rewards li:last-child { border-bottom: 0; padding-bottom: 0; }
.rewards b { font-weight: 800; }
.rewards span { opacity: .85; text-align: right; font-size: .8rem; }
.qr-panel { background: #fff; color: #1a1a1a; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
#qr { width: 200px; height: 200px; display: grid; place-items: center; text-align: center; font-size: .85rem; color: #5a615b; }
#qr img, #qr canvas { width: 200px !important; height: 200px !important; display: block; }
.qr-panel.dim #qr { opacity: .25; }
.qr-status { font-weight: 700; font-size: .92rem; text-align: center; }
.qr-code { font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: .08em; color: #1a1a1a; }
.pass-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.pass-foot span { display: block; opacity: .8; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; }
.pass-foot b { font-family: var(--font-mono); font-weight: 500; font-size: .88rem; }

.visits { list-style: none; margin: 0; padding: 0; }
.visits li { display: grid; grid-template-columns: 2.2em 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.visits li:last-child { border-bottom: 0; }
.visits .n { font-family: var(--font-mono); color: var(--accent-text); font-weight: 500; }
.visits .w { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.visits .w b { font-weight: 600; font-size: .95rem; }
.visits .w span { color: var(--muted); font-size: .85rem; }

.who { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.who button { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 16px 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.who button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.who button:disabled { opacity: .45; cursor: not-allowed; }
.result { border-radius: 10px; padding: 14px; border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 3px; }
.result b { font-weight: 800; font-size: 1.1rem; }
.result.good { border-color: var(--accent-text); } .result.good b { color: var(--accent-text); }
.result.bad { border-color: var(--bad); } .result.bad b { color: var(--bad); }
.result.warn { border-color: var(--warn); } .result.warn b { color: var(--warn); }
.signed { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.signed b { font-weight: 800; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stats div { background: var(--accent); color: #fff; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; }
.stats b { font-size: 1.8rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { font-size: .82rem; opacity: .9; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.people li:last-child { border-bottom: 0; }
.people .p { display: flex; flex-direction: column; min-width: 0; }
.people .p b { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.people .p span { color: var(--muted); font-size: .85rem; }
.people .off b { color: var(--muted); text-decoration: line-through; }
.people .set { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.people .set input { flex: 1 1 140px; }
.scroll { overflow-x: auto; }
.log { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 820px; }
.log th { text-align: left; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.log td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.log td.mono { font-family: var(--font-mono); font-size: .82rem; white-space: nowrap; }
.log tr.void td { color: var(--muted); text-decoration: line-through; }
.log tr.void td:last-child { text-decoration: none; }
.log button { background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 5px 10px; font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.log button.sure { border-color: var(--bad); color: var(--bad); }
:root { --bad: #e58a82; --warn: #d9a441; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --bad: #b3261e; --warn: #8a5a00; } }
:root[data-theme="light"] { --bad: #b3261e; --warn: #8a5a00; }

/* Service picker and reward working on the staff page */
.pick { display: flex; flex-direction: column; gap: 10px; }
.plabel { font-weight: 800; font-size: .95rem; }
.pgroup { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 6px 0 6px; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr)); gap: 8px; }
.chip-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; min-width: 0; }
.chip-btn span { font-weight: 600; font-size: .88rem; line-height: 1.25; }
.chip-btn b { font-family: var(--font-mono); font-weight: 500; font-size: .85rem; color: var(--muted); }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-btn[aria-pressed="true"] b { color: #fff; }
.quote { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.qrow { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.qrow span { color: var(--muted); }
.qrow b { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
.qrow.strong { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.qrow.strong span { color: var(--fg); font-weight: 700; }
.qrow.strong b { font-size: 1.15rem; color: var(--accent-text); }
.visits .w span.rw { color: var(--accent-text); font-weight: 600; }

.tick { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: .92rem; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; font-family: var(--font-body) !important; color: var(--fg) !important; }
.tick input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.tick input:disabled + span { opacity: .5; }
.app input[type="email"] { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 12px; width: 100%; min-width: 0; }
.signed h2 { margin: 0; }
.legal { max-width: 720px; }
.legal h2 { font-size: 1.05rem; margin-top: 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.found { list-style: none; margin: 0; padding: 0; }
.found li { border-bottom: 1px solid var(--line); }
.found li:last-child { border-bottom: 0; }
.found button { width: 100%; text-align: left; background: transparent; border: 0; padding: 12px 4px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.found button:hover b { color: var(--accent-text); }
.found b { font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.found span { color: var(--muted); font-size: .85rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.seg button { border: 0; background: transparent; padding: 9px; border-radius: 6px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--accent); color: #fff; }
.restore { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; color: #1a1a1a; border-radius: 12px; padding: 16px; text-align: center; }
.restore #rqr { width: 200px; height: 200px; display: grid; place-items: center; font-size: .85rem; }
.restore #rqr img, .restore #rqr canvas { width: 200px !important; height: 200px !important; }
.restore .small { color: #4a514b; }
.restore code { font-size: .72rem; word-break: break-all; }

/* Student discount band on the home page */
.student { padding-block: clamp(36px, 6vw, 64px) 0; }
.stu { border: 1px solid var(--accent-text); border-radius: 14px; padding: clamp(20px, 4vw, 32px); display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px 40px; align-items: end; }
@media (max-width: 760px) { .stu { grid-template-columns: 1fr; } }
.stu p { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.stu #stu-today { color: var(--accent-text); font-weight: 700; }
/* Section labels (Students, Walk-in prices, Opening hours, Loyalty card…) at 16px */
.eyebrow { font-size: 1rem; letter-spacing: .14em; }

/* Recovery and home screen */
.altline { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }
.nudge { border-color: var(--accent-text); }
.pinrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.ico { display: inline-block; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: .85em; }

/* Logo: razor G monogram with the Gezellig lockup */
:root { --brass: #C9A46A; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --brass: #A9824A; } }
:root[data-theme="light"] { --brass: #A9824A; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); min-width: 0; }
.logo .mono { width: 42px; height: 42px; flex: 0 0 auto; display: block; }
.logo .lock { display: inline-flex; flex-direction: column; line-height: 1; }
.logo .lock b { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-weight: 600; font-size: 1.7rem; letter-spacing: .01em; }
/* MALE GROOMING spread to exactly the width of "Gezellig", edge to edge */
.logo .lock i { display: flex; justify-content: space-between; font-style: normal; font-family: var(--font-body); font-weight: 500; font-size: .5rem; color: var(--brass); margin-top: 4px; }
@media (max-width: 380px) { .logo .mono { width: 34px; height: 34px; } .logo .lock b { font-size: 1.4rem; } .logo .lock i { font-size: .42rem; } }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mono { width: 40px; height: 40px; flex: 0 0 auto; color: #fff; }
.stamp.reward { font-size: .5rem; letter-spacing: 0; }
.brand .bn { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.75rem; letter-spacing: .01em; text-transform: none; line-height: 1; min-width: 0; }
.brand .bn small { font-family: var(--font-body); color: #E3C793; opacity: 1; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; margin-top: 6px; }
@media (max-width: 360px) { .brand .mono { width: 32px; height: 32px; } .brand .bn { font-size: 1.45rem; } .tally { font-size: 1.6rem; } }

/* Phone menu: Book stays visible, everything else sits behind the menu button */
.menu-btn { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 38px; padding: 0 10px; background: transparent; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-panel { border-top: 1px solid var(--line); background: var(--bg); }
.menu-panel .wrap { display: flex; flex-direction: column; padding-block: 6px 14px; }
.menu-panel a { padding: 14px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; }
.menu-panel a:last-child { border-bottom: 0; }
.menu-panel a[aria-current="page"] { color: var(--accent-text); }
@media (max-width: 720px) { .links a.l { display: none !important; } .menu-btn { display: inline-flex; } .links { gap: 10px; } }
@media (min-width: 721px) { .menu-panel { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .menu-btn span { transition: none; } }
.menu-panel .wrap { align-items: stretch; }
.menu-panel a { display: block; width: 100%; text-align: left; }
.bonus-on { display: block; border: 1px solid var(--brass, #C9A46A); color: var(--brass, #C9A46A); border-radius: 8px; padding: 10px 12px; font-weight: 700; font-size: .9rem; }
.pass-foot > div { min-width: 0; }
.typo { font-size: .9rem; color: var(--warn); margin-top: 6px; }
.typo .linkbtn { color: var(--warn); }

/* SEO additions: heading line, plain price list, reviews, FAQ */
.hero h1 .t { display: block; font-size: .24em; font-weight: 700; letter-spacing: .02em; line-height: 1.2; margin-top: .55em; color: var(--fg); }
.plist { margin: 26px 0 0; border-top: 1px solid var(--line); }
.plist summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: .95rem; list-style-position: inside; }
.plist summary span { color: var(--muted); font-weight: 500; font-size: .85rem; }
.plist h3 { font-size: .72rem; font-family: var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); margin: 18px 0 4px; }
.plist dl { margin: 0; }
.plist dl > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plist dt { font-weight: 700; }
.plist dd { margin: 0; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.plist dd.d { grid-column: 1 / -1; font-family: var(--font-body); color: var(--muted); font-size: .85rem; }
.plist .pn { color: var(--muted); font-size: .85rem; margin: 14px 0 24px; }
.reviews, .faq { padding-block: clamp(40px, 7vw, 80px) 0; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.quotes figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.quotes blockquote { margin: 0; font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 1.15rem; line-height: 1.45; }
.quotes figcaption { font-size: .85rem; color: var(--muted); font-weight: 600; }
.reviews .src { color: var(--muted); font-size: .85rem; margin-top: 14px; }
.reviews .src a { color: var(--accent-text); }
.qa { margin-top: 20px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 1rem; }
.qa details p { margin: 0 0 16px; color: var(--muted); max-width: 70ch; }
/* Open price list (no calculator) */
.plist.open { border-top: 0; margin-top: 0; display: grid; grid-template-columns: 1fr; gap: 8px 48px; }
.plist.open .grp { min-width: 0; }
.plist.open h3 { margin-top: 22px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.plist.open dt { font-size: 1.02rem; }
.plist.open dd:not(.d) { font-weight: 500; font-size: 1.05rem; color: var(--accent-text); }
@media (min-width: 820px) { .plist.open { grid-template-columns: 1fr 1fr; } }
.pfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-block: 26px clamp(48px, 8vw, 96px); }
.pfoot .pn { margin: 0; max-width: 60ch; }
/* Open price list matches the original menu rows: bold green names, white prices */
.plist.open dl > div { padding: 18px 4px; gap: 6px 16px; }
.plist.open dt { font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.25; color: var(--accent-text); }
.plist.open dd:not(.d) { font-family: var(--font-mono); font-weight: 500; font-size: 1.2rem; color: var(--fg); }
.plist.open dd.d { font-size: .88rem; line-height: 1.5; max-width: 54ch; }
.plist.open h3 { font-size: .78rem; color: var(--fg); margin-top: 28px; }
.pfoot .pn { color: var(--muted); }
/* Price section sits on the same charcoal as the rest of the page */
.menu { background: var(--bg); }
/* Price groups: tap to open on phones, always open on computers */
.plist.open .grp summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.plist.open .grp summary::-webkit-details-marker { display: none; }
.plist.open .grp summary h3 { margin: 0; padding: 0; border: 0; font-size: .9rem; }
.plist.open .grp .cnt { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; }
.plist.open .grp .cnt::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.plist.open .grp[open] .cnt::after { transform: rotate(-135deg) translateY(-2px); }
@media (min-width: 820px) {
  .plist.open .grp summary { cursor: default; padding: 0 0 6px; margin-top: 28px; }
  .plist.open .grp summary h3 { font-size: .78rem; }
  .plist.open .grp .cnt { display: none; }
}
@media (prefers-reduced-motion: reduce) { .plist.open .grp .cnt::after { transition: none; } }
/* Card runs out soon: warning on the customer's card and the barber's screen */
.exp-warn { margin: 0; background: #E3C793; color: #1a1a1a; border-radius: 8px; padding: 10px 12px; font-weight: 700; font-size: .88rem; line-height: 1.4; }
.result .exp-soon { color: var(--warn); font-weight: 700; margin-top: 6px; }

/* iPhone: Add to Home Screen guide */
.inapp { border: 1px solid var(--brass, #C9A46A); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
.inapp > b { color: var(--brass, #C9A46A); }
.inapp span { color: var(--fg); }
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.62); display: flex; align-items: flex-end; justify-content: center; padding: 0 12px calc(24px + env(safe-area-inset-bottom, 0px)); }
.sheet { width: 100%; max-width: 440px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sheet-head b { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.isteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.isteps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; font-size: .95rem; line-height: 1.4; }
.isteps .k { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: #3d8bfd; }
.isteps .k .i { width: 22px; height: 22px; }
.isteps .k.g { background: #1E3530; color: #F3EEE4; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 1.35rem; border-color: #C9A46A; }
/* Owner: restore a customer's card */
.restore-o { border: 1px solid var(--accent-text); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.or-grid { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.or-grid #or-qr { margin-top: 8px; background: #fff; padding: 10px; border-radius: 8px; width: max-content; }
.or-send { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.or-send input { width: 100%; min-width: 0; font-family: var(--font-mono); font-size: .8rem; }
@media (max-width: 620px) { .or-grid { grid-template-columns: 1fr; } }
.or-grid > div { min-width: 0; }
.or-grid #or-qr { max-width: 100%; }
.restore-o .brow { flex-wrap: wrap; }
.restore-o .brow .btn { flex: 1 1 140px; }
@media (max-width: 620px) { .or-grid { grid-template-columns: minmax(0, 1fr); } }

/* Online booking page */
.step h2 { display: flex; align-items: center; gap: 10px; }
.step h2 .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-size: .85rem; font-weight: 800; flex: 0 0 auto; }
#svc { display: flex; flex-direction: column; gap: 4px; }
.bk-sum { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-sum.warn { border-color: var(--warn); color: var(--warn); }
.bk-sum.big, .bk-card { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
.bk-sum.big b, .bk-card b { font-size: 1.1rem; font-weight: 800; }
.bk-card { border: 1px solid var(--accent-text); border-radius: 12px; padding: 14px 16px; }
.days-wrap { margin-inline: -18px; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.days { display: flex; gap: 8px; padding: 2px 18px 8px; width: max-content; }
.day { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 58px; padding: 8px 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; position: relative; }
.day b { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.day .dw, .day .dm { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.day:disabled { opacity: .35; cursor: not-allowed; }
.day[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.day[aria-selected="true"] .dw, .day[aria-selected="true"] .dm { color: var(--accent-fg); }
.day.prov::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--brass, #C9A46A); }
.note-prov { margin: 0; border: 1px solid var(--brass, #C9A46A); border-radius: 10px; padding: 10px 12px; font-size: .88rem; }
.tday { margin: 4px 0 0; font-weight: 800; }
#times { display: flex; flex-direction: column; gap: 6px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { padding: 11px 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-mono); font-size: .95rem; cursor: pointer; }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
#details { display: flex; flex-direction: column; gap: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two > * { min-width: 0; }
@media (max-width: 380px) { .two { grid-template-columns: 1fr; } }
.app input[type="tel"] { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 12px; width: 100%; min-width: 0; }
.btn.danger.sure { background: var(--bad); color: #fff; }

/* Owner and staff: bookings, rota, outbox */
.rota-banner { background: #E3C793; color: #1a1a1a; border-radius: 10px; padding: 12px 14px; font-weight: 700; }
.daynav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.daynav b { flex: 1 1 auto; text-align: center; font-weight: 800; }
.app input[type="date"], .app input[type="time"] { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; min-width: 0; color-scheme: inherit; }
.daynav input[type="date"] { flex: 1 1 150px; }
.bk-log { min-width: 760px; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); font-size: .72rem; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.tag.bad { border-color: var(--bad); color: var(--bad); }
.tag.good { border-color: var(--ok); color: var(--ok); }
.tag.warn { border-color: var(--warn); color: var(--warn); white-space: normal; margin-left: 0; }
.flags { border: 1px solid var(--warn); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.flags > b { color: var(--warn); }
.flag { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: .9rem; }
.flag span { flex: 1 1 240px; min-width: 0; }
.ro-status { margin: 0; font-size: .9rem; color: var(--muted); }
.ro-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.ro-day { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ro-h { font-weight: 800; font-size: .92rem; }
.ro-row { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: center; min-width: 0; }
.ro-who { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 6px; font-weight: 700; font-size: .82rem; cursor: pointer; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-row.on .ro-who { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.ro-times { display: none; align-items: center; gap: 6px; min-width: 0; font-size: .82rem; color: var(--muted); }
.ro-times input { flex: 1 1 0; width: 0; padding: 6px; font-size: .85rem; }
.ro-row.on .ro-times { display: flex; }
.ro-off { color: var(--muted); font-size: .82rem; }
.ro-row.on .ro-off { display: none; }
.usual summary { cursor: pointer; font-weight: 800; padding: 6px 0; }
.usual[open] { display: flex; flex-direction: column; gap: 10px; }
#ro-pub.sure { background: var(--warn); color: #1a1a1a; }
.outbox { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.outbox li { border-bottom: 1px solid var(--line); padding: 8px 0; }
.outbox summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: .9rem; }
.outbox summary .tag { margin-left: 0; }
.outbox pre { white-space: pre-wrap; word-break: break-word; font-family: var(--font-body); font-size: .85rem; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0 0; }
.dv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dv li { display: grid; grid-template-columns: 52px 1fr; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dv li:last-child { border-bottom: 0; }
.dv li.ns { opacity: .7; }
.dv .t { display: flex; flex-direction: column; font-family: var(--font-mono); }
.dv .t b { font-size: 1rem; }
.dv .t span { font-size: .78rem; color: var(--muted); }
.dv .w { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dv .w .tag { margin-left: 0; align-self: flex-start; }
.dv .brow { grid-column: 2; }
.dv .brow .btn { flex: 0 1 auto; }
.ro-days { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.ro-row { grid-template-columns: 84px 1fr; }
.ro-times select { flex: 1 1 0; min-width: 0; font: inherit; font-family: var(--font-mono); font-size: .85rem; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 4px; }
.daynav b { flex: 1 1 0; min-width: 0; }
/* Preferred barber: his free days and times in gold */
.day.pref { box-shadow: inset 0 -3px 0 var(--brass, #C9A46A); }
.slot.pref { border-color: var(--brass, #C9A46A); box-shadow: inset 0 0 0 1px var(--brass, #C9A46A); }
.slot.pref[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--brass, #C9A46A); }
.pref-key { margin: 0; }
.app textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%; min-width: 0; resize: vertical; }

/* Shop calendar */
.cal { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cal-info { margin: 0; }
.cal-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.cal-wd { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; min-width: 0; }
.cal-wd.today { border-color: var(--accent-text); }
.cal-wd b { font-weight: 800; }
.cal-wd .n { font-weight: 700; }
.cal-wd .bar { display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.cal-wd .bar i { display: block; height: 100%; background: var(--accent-text); }
.cal-wd .tag { margin-left: 0; }
.cal-wrap { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.cal-grid { display: grid; position: relative; min-width: max-content; }
.cal-corner, .cal-head { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 6px; font-weight: 800; font-size: .82rem; text-align: center; }
.cal-corner { left: 0; z-index: 4; }
.cal-head.me { color: var(--accent-text); }
.cal-times { position: sticky; left: 0; z-index: 2; background: var(--surface); border-right: 1px solid var(--line); }
.cal-times span { position: absolute; right: 6px; transform: translateY(-50%); font-family: var(--font-mono); font-size: .68rem; color: var(--muted); }
.cal-times span:first-child { transform: none; }
.cal-col { position: relative; border-right: 1px solid var(--line); cursor: copy;
  background-image: repeating-linear-gradient(to bottom, transparent 0 43px, var(--line) 43px 44px); }
.cal-col > div { position: absolute; left: 3px; right: 3px; border-radius: 6px; }
.cal-out { left: 0 !important; right: 0 !important; border-radius: 0 !important; background: repeating-linear-gradient(45deg, var(--surface-2) 0 6px, transparent 6px 12px); cursor: not-allowed; }
.cal-past { left: 0 !important; right: 0 !important; border-radius: 0 !important; background: color-mix(in srgb, var(--bg) 55%, transparent); pointer-events: none; }
.cal-bk { background: var(--accent); color: var(--accent-fg); padding: 3px 6px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; gap: 1px; font-size: .74rem; line-height: 1.25; z-index: 1; box-shadow: 0 0 0 1px var(--surface); }
.cal-bk b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-bk span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
.cal-bk .nt { font-style: italic; }
.cal-bk.noshow { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.cal-bk.flag { box-shadow: inset 0 0 0 2px var(--brass, #C9A46A); }
.cal-bk:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 1px; }
.cal-now { position: absolute; left: 46px; right: 0; height: 2px; background: var(--bad); z-index: 2; pointer-events: none; }
.cal-key { margin: 0; }
.cal-sheet { align-items: flex-end; padding: 0 0 env(safe-area-inset-bottom, 0px); z-index: 60; }
.cal-sheet .sheet { max-height: 88vh; overflow: auto; border-radius: 18px 18px 0 0; max-width: 560px; }
.cal-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; }
.cal-dl .k { color: var(--muted); font-size: .82rem; }
.cal-dl span { min-width: 0; overflow-wrap: anywhere; }
.cal-form { display: flex; flex-direction: column; gap: 10px; }
.cal-form .chips { max-height: 220px; overflow: auto; }
.cal-sheet select { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.cal .daynav b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-bk .nm { font-weight: 700; opacity: 1; }
@media (max-width: 480px) { .cal .daynav b { flex: 1 1 calc(100% - 110px); } .cal .daynav .btn:nth-of-type(n+3) { flex: 1 1 40%; } }
.cal-bk.short { flex-direction: row; gap: 4px; align-items: baseline; white-space: nowrap; }
.cal-bk.short span:not(.nm) { display: none; }
.cal-bk.short .nm { overflow: hidden; text-overflow: ellipsis; }
.cal-bk.short b { flex: 0 0 auto; overflow: visible; }
.cal-sheet input[type="text"], .cal-sheet input[type="tel"], .cal-sheet input[type="email"], .cal-sheet textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; width: 100%; min-width: 0; }
.cal-sheet .field label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cal-sheet input:focus-visible, .cal-sheet textarea:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }

/* ===== Shop calendar, Booksy-style layout ===== */
.bk { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bk-top { display: flex; align-items: center; gap: 10px; }
.bk-bell, .bk-icon { position: relative; display: grid; place-items: center; width: 42px; height: 42px; background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--fg); cursor: pointer; flex: 0 0 auto; }
.bk-bell svg, .bk-icon svg { width: 22px; height: 22px; }
.bk-bell i { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bad); color: #fff; font-style: normal; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.bk-bell i:empty, .bk-bell i[hidden] { display: none; }
.bk-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; background: transparent; border: 0; color: var(--fg); cursor: pointer; padding: 2px 4px; text-align: left; }
.bk-title b { font-size: 1.2rem; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.bk-title b::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.bk-title.open b::after { transform: rotate(-135deg) translateY(-1px); }
.bk-title span { font-size: .85rem; color: var(--muted); }
.bk-strip { display: grid; grid-template-columns: 26px repeat(7, 1fr) 26px; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.bk-arrow { background: transparent; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; padding: 6px 0; }
.bk-d { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; background: transparent; border: 0; color: var(--fg); cursor: pointer; padding: 4px 0 8px; }
.bk-d .w { font-size: .68rem; color: var(--muted); letter-spacing: .06em; }
.bk-d b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 1.05rem; font-weight: 600; }
.bk-d.today b { color: var(--bad); }
.bk-d.on b { background: var(--fg); color: var(--bg); }
.bk-d .busy { position: absolute; bottom: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); }
.bk-d .m { position: absolute; bottom: -8px; font-size: .6rem; color: var(--muted); }
.bk-month { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.bk-mhead { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.bk-mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.bk-mgrid .w { font-size: .68rem; color: var(--muted); padding: 4px 0; }
.bk-md { background: transparent; border: 0; color: var(--fg); padding: 9px 0; border-radius: 50%; cursor: pointer; font-size: 1rem; aspect-ratio: 1; max-width: 46px; margin: 0 auto; width: 100%; }
.bk-md.out { color: var(--muted); opacity: .5; }
.bk-md.today { color: var(--bad); font-weight: 700; }
.bk-md.on { background: var(--fg); color: var(--bg); }
.bk-body { min-width: 0; }
.bk-note { margin: 0 0 8px; border: 1px solid var(--brass, #C9A46A); border-radius: 8px; padding: 8px 10px; font-size: .85rem; }
.bk-empty { color: var(--muted); padding: 24px 0; text-align: center; }
.bk-wrap { height: min(72vh, 900px); overflow: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line); }
.bk-grid { display: grid; position: relative; min-width: max-content; }
.bk-corner, .bk-head { position: sticky; top: 0; z-index: 4; background: var(--surface); border-bottom: 1px solid var(--line); }
.bk-corner { left: 0; z-index: 5; }
.bk-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px; min-width: 0; }
.bk-head .t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.bk-head .t b { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-head .t span { font-size: .75rem; color: var(--muted); }
.bk-head.me .t b { color: var(--accent-text); }
.av { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--fg); font-weight: 700; font-size: .8rem; flex: 0 0 auto; }
.av.big { width: 48px; height: 48px; font-size: 1rem; background: var(--accent); color: var(--accent-fg); }
.bk-times { position: sticky; left: 0; z-index: 3; background: var(--surface); }
.bk-times span { position: absolute; right: 8px; transform: translateY(-50%); font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bk-times span.h { color: var(--fg); font-weight: 600; }
.bk-times span:first-child { transform: none; }
.bk-col { position: relative; border-left: 1px solid var(--line); cursor: copy;
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px), repeating-linear-gradient(to bottom, transparent 0 23px, color-mix(in srgb, var(--line) 55%, transparent) 23px 24px);
  background-size: 100% 96px, 100% 24px; }
.bk-col > div { position: absolute; left: 4px; right: 4px; border-radius: 6px; }
.bk-out { left: 0 !important; right: 0 !important; border-radius: 0 !important; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--muted) 18%, transparent) 0 2px, transparent 2px 9px); cursor: not-allowed; }
.bk-appt { background: color-mix(in srgb, var(--accent-text) 18%, var(--surface)); border-left: 4px solid var(--accent-text); color: var(--fg); padding: 3px 7px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; gap: 1px; font-size: .78rem; line-height: 1.3; z-index: 1; border-radius: 4px 6px 6px 4px !important; }
.bk-appt .tm { font-weight: 800; font-size: .8rem; }
.bk-appt .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-appt .nt { font-style: italic; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-appt.short { justify-content: center; }
.bk-appt.noshow { border-left-color: var(--muted); background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.bk-appt.flag { box-shadow: inset 0 0 0 2px var(--brass, #C9A46A); }
.bk-appt:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 1px; }
.bk-blk { padding: 3px 7px; font-size: .75rem; line-height: 1.25; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; z-index: 1; color: var(--muted); }
.bk-blk.reserve { background: var(--surface-2); border: 1px dashed var(--line); }
.bk-blk.off { left: 0 !important; right: 0 !important; border-radius: 0 !important; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--bad) 18%, transparent) 0 2px, transparent 2px 9px); }
.bk-blk b { color: var(--fg); font-size: .78rem; }
.bk-now { position: absolute; left: 44px; right: 0; height: 2px; background: var(--bad); z-index: 2; pointer-events: none; }
.bk-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.bk-fab { position: absolute; right: 14px; bottom: 14px; z-index: 6; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--fg); color: var(--bg); font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.bk-todaypill { position: absolute; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 6; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.bk-todaypill[hidden] { display: none; }
/* list view */
.bk-day { padding: 12px 0 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.bk-dh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bk-dh h3 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.bk-dh .pill { border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: .8rem; }
.bk-sum3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.bk-sum3 > div { display: flex; flex-direction: column; gap: 2px; padding: 0 8px; border-left: 1px solid var(--line); }
.bk-sum3 > div:first-child { border-left: 0; padding-left: 0; }
.bk-sum3 span { font-size: .68rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.bk-sum3 b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.bk-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; text-align: left; background: transparent; border: 0; color: var(--fg); padding: 6px 0; cursor: pointer; }
.bk-row .t { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.bk-row .t b { font-size: 1rem; }
.bk-row .t span, .bk-row .w span { font-size: .8rem; color: var(--muted); }
.bk-row .w { display: flex; flex-direction: column; border-left: 3px solid var(--accent-text); padding-left: 10px; min-width: 0; }
.bk-row .w b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-row.ns { opacity: .6; }
/* sheets */
.cal-sheet .sheet.full { max-width: 560px; width: 100%; min-height: min(88vh, 820px); }
@media (max-width: 560px) { .cal-sheet .sheet.full { min-height: 92vh; } }
.cal-sheet .sheet-head { align-items: flex-start; }
.cal-sheet .sheet-head .st { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-sheet .sheet-head .st span { font-size: .8rem; color: var(--muted); }
.cal-sheet .sheet-head.band { margin: -18px -18px 0; padding: 18px; border-radius: 18px 18px 0 0; }
.cal-sheet .sheet-head.band.ok { background: var(--accent); color: var(--accent-fg); }
.cal-sheet .sheet-head.band.ok .st span, .cal-sheet .sheet-head.band.ok .linkbtn { color: var(--accent-fg); }
.cal-sheet .sheet-head.band.grey { background: var(--surface-2); }
.cal-sheet .sheet-head.band.done { background: var(--ok); color: #0b1f13; }
.bk-menu { display: flex; flex-direction: column; }
.bk-menu > button { background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--fg); padding: 18px 8px; font-size: 1.05rem; font-weight: 700; cursor: pointer; text-align: center; }
.bk-menu > button:last-child { border-bottom: 0; }
.bk-menu > button.danger { color: var(--bad); }
.bk-filter { display: flex; flex-direction: column; }
.bk-filter label { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.bk-filter input { width: 22px; height: 22px; accent-color: var(--accent); }
.bk-filter .t { display: flex; flex-direction: column; } .bk-filter .t span { font-size: .8rem; color: var(--muted); }
.bk-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bk-feed button { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; position: relative; }
.bk-feed .new button::before { content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.bk-feed .k { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bk-feed span { font-size: .88rem; }
.bk-when { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
.bk-when > div { display: flex; flex-direction: column; padding: 10px 14px; } .bk-when > div + div { border-left: 1px solid var(--line); }
.bk-when span, .bk-tot span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.bk-when b { font-size: 1.15rem; }
.bk-who { display: flex; align-items: center; gap: 12px; }
.bk-who > div { display: flex; flex-direction: column; min-width: 0; } .bk-who b { font-size: 1.05rem; } .bk-who span { overflow-wrap: anywhere; }
.bk-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bk-contact .btn { padding: 12px 6px; text-transform: none; letter-spacing: 0; font-size: .9rem; }
.bk-svc { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-left: 4px solid var(--accent-text); padding: 6px 0 6px 12px; }
.bk-svc > div { display: flex; flex-direction: column; min-width: 0; } .bk-svc span { font-size: .82rem; color: var(--muted); }
.bk-svc .pr { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bk-noteline { margin: 0; font-style: italic; }
.bk-tot { display: flex; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.bk-tot > div { display: flex; flex-direction: column; } .bk-tot > div:last-child { align-items: flex-end; } .bk-tot b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.bk-acts { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 8px; }
.bk-ban { color: var(--bad); padding: 0; } .bk-ban svg { width: 24px; height: 24px; }
/* forms in sheets */
.cfield { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cfield > span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cal-sheet select, .cal-sheet input[type="search"] { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 10px; width: 100%; min-width: 0; }
.bk-client { display: flex; align-items: center; gap: 12px; width: 100%; background: transparent; border: 1px dashed var(--line); border-radius: 10px; padding: 14px; color: var(--fg); cursor: pointer; text-align: left; }
.bk-client:disabled { cursor: default; border-style: solid; }
.bk-client .t { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; } .bk-client .t span { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.bk-client .chev { color: var(--muted); font-size: 1.4rem; }
.bk-svlist { display: flex; flex-direction: column; gap: 8px; } .svrow { display: flex; flex-direction: column; gap: 4px; } .bk-addsv { align-self: flex-start; }
.bk-se { display: grid; grid-template-columns: 1fr 84px; gap: 10px; align-items: end; }
.bk-se2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-pick { display: flex; align-items: center; gap: 6px; } .bk-pick select:first-child { flex: 1 1 auto; } .bk-pick select { flex: 0 0 auto; width: auto; }
.bk-end { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 11px 10px; text-align: center; font-variant-numeric: tabular-nums; }
.bk-req { display: flex; align-items: center; gap: 12px; background: transparent; border: 0; color: var(--fg); font-weight: 800; font-size: 1rem; cursor: pointer; padding: 4px 0; }
.bk-req .h { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; font-size: 1.3rem; color: var(--bad); }
.bk-sumline { margin: 0; font-weight: 700; }
.bk-search { margin-top: 4px; }
.bk-clients { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bk-clients button { display: flex; gap: 12px; align-items: center; width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--fg); padding: 10px 2px; cursor: pointer; text-align: left; }
.bk-clients .t { display: flex; flex-direction: column; } .bk-clients .t span { font-size: .82rem; color: var(--muted); }
.bk-newclient { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.cal-sheet label.c { display: flex; align-items: center; gap: 10px; cursor: pointer; } .cal-sheet label.c input { width: 22px; height: 22px; accent-color: var(--accent); }
.bk-strip { grid-template-columns: 22px repeat(7, minmax(0, 1fr)) 22px; gap: 0; }
.bk-d b { width: min(38px, 100%); aspect-ratio: 1; height: auto; }
@media (max-width: 420px) { .bk-head .av { width: 26px; height: 26px; font-size: .7rem; } .bk-head { gap: 6px; padding: 8px 6px; } .bk-head .t span { font-size: .7rem; } }
.bk-pick select { flex: 1 1 0; }
.bk-se { grid-template-columns: 1fr 96px; }
.bk-sum3 span { font-size: .62rem; letter-spacing: .04em; white-space: nowrap; }
/* Owner: staff names */
.sn-seg { grid-template-columns: repeat(3, 1fr); }
.sn-list { display: flex; flex-direction: column; gap: 8px; }
.sn-row { display: grid; grid-template-columns: minmax(80px, 140px) 1fr; gap: 12px; align-items: center; }
.sn-who { font-weight: 700; color: var(--muted); }
#sn-pick .btn.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
#sn-pick[hidden] { display: none; }
/* Quick bookings */
.bk-qt { padding: 2px 0; font-weight: 700; }
.bk-quick { display: flex; flex-direction: column; gap: 8px; border: 1px dashed var(--brass, #C9A46A); border-radius: 10px; padding: 12px; }
.bk-quick[hidden], .bk-client[hidden], .bk-contact[hidden] { display: none; }
.bk-missing { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--brass, #C9A46A); border-radius: 10px; padding: 12px; }
.bk-missing b { color: var(--brass, #C9A46A); }
.bk-missing .btn { align-self: flex-start; }
/* Their usual / something different */
.bk-usual { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; text-align: left; padding: 14px 16px; margin-bottom: 10px; border-radius: 12px; border: 1px solid var(--brass, #C9A46A); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.bk-usual b { font-size: 1.05rem; }
.bk-usual.ghost { border-color: var(--line, #3a3a3a); }
.bk-warn { color: var(--brass, #C9A46A); }
.bk-warn[hidden] { display: none; }
/* Walk-in queue (desk) */
.q { display: flex; flex-direction: column; gap: 12px; }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q-wait { display: flex; flex-direction: column; gap: 2px; }
.q-wait span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.q-wait b { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.q-wait small { color: var(--muted); font-size: .82rem; }
.q-add { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.q-add[hidden] { display: none; }
.q-add .chips { max-height: 260px; overflow: auto; }
.q-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.q-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.q-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.q-row .w { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.q-row .w b { display: flex; align-items: center; gap: 8px; }
.q-row .w > span { color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.q-row .w .q-est { color: var(--fg); font-weight: 600; }
.q-row .n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .78rem; }
.q-row .a { display: flex; gap: 6px; flex-wrap: wrap; }
.q-row.away { border-style: dashed; border-color: var(--warn, #C9A46A); }
.q-row.chair { border-left: 4px solid var(--accent-text); }
.q-row.bk { border-left: 4px solid var(--warn, #C9A46A); }
.q-row.done { opacity: .75; }
.q-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.q-tags .tag { margin-left: 0; }
.q-pick { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 4px; }
.q-ended summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 4px 0; }
.q-ended .q-list { margin-top: 8px; }
/* walk-ins and clients in the chair on the calendar */
.bk-walk { position: absolute; left: 3px; right: 3px; background: color-mix(in srgb, var(--warn, #C9A46A) 20%, var(--surface)); border-left: 4px solid var(--warn, #C9A46A); color: var(--fg); padding: 3px 7px; overflow: hidden; display: flex; flex-direction: column; font-size: .78rem; line-height: 1.3; z-index: 1; border-radius: 4px 6px 6px 4px; cursor: pointer; }
.bk-walk .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-walk.short { justify-content: center; }
.bk-appt.chair { box-shadow: inset 0 0 0 2px var(--accent-text); }
/* Walk-in queue (public page) */
.q-big { display: flex; flex-direction: column; gap: 4px; }
.q-big b { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.q-big span { color: var(--muted); }
.q-check, .q-rule:not(:empty) { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--warn, #C9A46A); border-radius: 10px; padding: 12px; }
.q-check b, .q-rule b { color: var(--warn, #C9A46A); }
.q-check span, .q-rule span { color: var(--muted); font-size: .9rem; }
.q-check[hidden] { display: none; }
/* Owner: queue mode comparison */
.qm-wrap { overflow-x: auto; }
.qm { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 560px; }
.qm th, .qm td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.qm thead th { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; white-space: normal; }
.qm td.m-on { color: var(--accent-text); font-weight: 700; }
.qm td.m-off { color: var(--muted); }
#skip[hidden], #welcome[hidden] { display: none; }
.q-alt { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.q-alt[hidden] { display: none; }
.q-alt span { color: var(--muted); font-size: .9rem; }
/* Checkout and takings */
.till-body { display: flex; flex-direction: column; gap: 10px; }
.till-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.till-lines li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.till-lines li span { flex: 1; }
.till-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.till-card .h { display: flex; flex-direction: column; gap: 2px; }
.till-card .h span { color: var(--muted); font-size: .86rem; font-family: var(--font-mono); }
.till-card .good { color: var(--ok); font-weight: 700; }
.till-card .linkbtn { align-self: flex-start; }
.till-find { display: flex; gap: 8px; } .till-find input { flex: 1; min-width: 0; }
.till-new summary { cursor: pointer; font-weight: 600; color: var(--accent-text); }
.till-new[open] { display: flex; flex-direction: column; gap: 8px; }
.till-student { font-weight: 600; }
.till-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.till-prod { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.till-prod.on { border-color: var(--accent-text); }
.till-prod .t { display: flex; flex-direction: column; } .till-prod .t b { color: var(--muted); font-family: var(--font-mono); font-weight: 500; font-size: .85rem; }
.till-prod .q { display: flex; align-items: center; gap: 6px; } .till-prod .q b { min-width: 16px; text-align: center; }
.till-prod .q .btn { min-width: 36px; padding-left: 0; padding-right: 0; }
.till-sum { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.till-sum > div { display: flex; justify-content: space-between; gap: 10px; }
.till-sum .disc b { color: var(--ok); }
.till-sum .total { font-size: 1.3rem; font-weight: 800; padding-top: 4px; }
.till-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.till-done { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--accent-text); border-radius: 12px; }
.till-done > b:first-child { font-size: 1.4rem; }
.till-done .good { color: var(--ok); font-weight: 700; } .till-done .warn { color: var(--warn, #C9A46A); }
.till-qr { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.till-qr > div { background: #fff; padding: 8px; border-radius: 8px; }
.q-row.pay { border-left: 4px solid var(--ok); }
.tk { display: flex; flex-direction: column; gap: 10px; }
.tk-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .tk-head b { margin-right: auto; font-size: 1.05rem; }
.tk-tot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tk-tot div { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); min-width: 0; }
.tk-tot b { font-size: 1.15rem; font-weight: 800; } .tk-tot span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 420px) { .tk-tot { grid-template-columns: repeat(2, 1fr); } }
.cal-sheet input[type="number"] { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; width: 100%; min-width: 0; }
.till-prod .q { flex-direction: row; flex-wrap: nowrap; flex: none; }
.till-prod .q .btn { width: 40px; height: 40px; padding: 0; flex: none; font-size: 1.1rem; }
.till-prod .t { min-width: 0; }
/* Till reports and cash up */
.tk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tk-bar select { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.tk-range { font-size: 1.05rem; margin-right: auto; }
.tk-tot.five { grid-template-columns: repeat(5, 1fr); }
.tk-tot .big { background: color-mix(in srgb, var(--accent-text) 16%, var(--bg)); border-color: var(--accent-text); }
@media (max-width: 620px) { .tk-tot.five { grid-template-columns: repeat(2, 1fr); } .tk-tot.five .big { grid-column: 1 / -1; } }
.qm .r { text-align: right; }
.qm tfoot th, .qm tfoot td { font-weight: 700; border-top: 1px solid var(--line); border-bottom: 0; }
.tk-chart { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 4px; background: var(--bg); }
.tk-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.tk-chart text { font-size: 11px; fill: var(--muted); font-family: var(--font-mono); }
.tk-chart .g { stroke: var(--line); stroke-width: 1; }
.tk-chart .b { fill: var(--accent-text); }
.tk-chart .b.on { fill: var(--fg); }
.tk-chart .hit { fill: transparent; cursor: pointer; }
.tk-tip { position: absolute; top: 8px; min-width: 150px; background: var(--fg); color: var(--bg); border-radius: 8px; padding: 8px 10px; font-size: .8rem; pointer-events: none; display: flex; flex-direction: column; gap: 2px; z-index: 2; }
.tk-tip[hidden] { display: none; }
.tk-tip div { display: flex; justify-content: space-between; gap: 12px; } .tk-tip .s { opacity: .75; }
.tk-edit select, .tk-edit input, .till-custom select, .till-custom input { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px; min-width: 0; }
.tk-edit input[type=number] { width: 90px; }
.till-custom { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .till-custom input[type=text] { flex: 1 1 140px; } .till-custom input[type=number] { width: 100px; }
.cu-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .cu-grid { grid-template-columns: minmax(0, 1fr); } }
.cu-ledger { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg); }
.ledger { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; }
.ledger .num { text-align: right; font-variant-numeric: tabular-nums; }
.ledger .minus { color: var(--bad); } .ledger .big { font-weight: 800; font-size: 1.1rem; } .ledger .sub, .ledger small { color: var(--muted); font-size: .85rem; }
.ledger .rule { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.ledger .ok { color: var(--ok); } .ledger .bad { color: var(--bad); }
.ledger input { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px; width: 110px; text-align: right; }
.callout { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: .9rem; color: var(--muted); margin: 0; }
.cu-grid .qm { min-width: 0; }
.cu-grid .qm th, .cu-grid .qm td { white-space: normal; padding: 6px; }
