/* SalonOpening — shared styles
   Direction: "time as art". Gallery-like bone ground, deep ink type, one vivid poppy accent,
   photos set inside modern-art cutout shapes. Bold on marketing pages, calm in booking and dashboards. */
:root {
  --ink: #1c1823;
  --ink-2: #3a3442;
  --bone: #f5f2ec;
  --paper: #ffffff;
  --poppy: #ff5a36;
  --poppy-ink: #c2381a;      /* poppy dark enough for text on light grounds */
  --stone: #67606d;
  --line: #e3ddd4;
  --tint: #ece6dc;
  --ok: #1f7a4d;
  --warn: #8a5a00;
  --err: #b42318;
  --display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(28, 24, 35, .45);
  color-scheme: light;
  /* legacy aliases used by older page markup */
  --plum: var(--ink); --plum-soft: var(--ink-2); --coral: var(--poppy); --coral-ink: var(--poppy-ink);
  --cream: var(--bone); --muted: var(--stone);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f3efe8; --ink-2: #d6cfda; --bone: #16131b; --paper: #211d28; --poppy: #ff6a48; --poppy-ink: #ff8a6e;
    --stone: #b1a9b6; --line: #37313f; --tint: #2a2531; --ok: #6fd3a0; --warn: #f0c36a; --err: #ff8a80;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, .8); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f3efe8; --ink-2: #d6cfda; --bone: #16131b; --paper: #211d28; --poppy: #ff6a48; --poppy-ink: #ff8a6e;
  --stone: #b1a9b6; --line: #37313f; --tint: #2a2531; --ok: #6fd3a0; --warn: #f0c36a; --err: #ff8a80; color-scheme: dark;
}
* { box-sizing: border-box; }
html { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--poppy); }
[hidden] { display: none !important; }

.wrap { max-width: 720px; margin: 0 auto; padding-inline: 20px; padding-block: 0 72px; }
.wrap.wide { max-width: 1240px; }

/* ---------- Top navigation ---------- */
.topbar { position: sticky; top: 0; z-index: 1000; background: color-mix(in srgb, var(--bone) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.topbar-in { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark { width: 30px; height: 30px; flex: none; }
.logo { font: 800 21px/1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.logo span { color: var(--poppy-ink); }
.navlinks { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.navlinks a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.navlinks a:hover { text-decoration: underline; text-decoration-color: var(--poppy); text-decoration-thickness: 2px; }
.navlinks a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--poppy); }
.navlinks .nav-cta { background: var(--ink); color: var(--bone); padding: 10px 18px; border-radius: 999px; text-decoration: none !important; }
#authLinks { display: contents; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); padding: 8px 12px; font-size: 18px; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .navlinks { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; font-size: 17px; }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .navlinks .nav-cta { text-align: center; margin-top: 12px; border-bottom: 0; }
}

/* ---------- Type ---------- */
h1 { overflow-wrap: break-word; font: 800 clamp(38px, 7.4vw, 92px)/0.96 var(--display); letter-spacing: -0.035em; color: var(--ink); margin: 0 0 18px; text-wrap: balance; }
h2 { font: 700 clamp(26px, 3.6vw, 40px)/1.05 var(--display); letter-spacing: -0.025em; color: var(--ink); margin: 0 0 14px; text-wrap: balance; }
h3 { font: 700 19px/1.25 var(--display); letter-spacing: -0.01em; color: var(--ink); margin: 0 0 8px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--stone); margin: 0 0 24px; max-width: 34em; }
.muted { color: var(--stone); }
.small { font-size: 15px; }
.tiny { font-size: 13.5px; }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--poppy-ink); margin: 0 0 10px; }
.page-head { padding-block: 40px 22px; }
.page-head h1 { font-size: clamp(34px, 5.2vw, 60px); }
.section { padding-block: 44px; }

/* ---------- Panels ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel.tight { padding: 16px; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .grid.c2, .grid.c3 { grid-template-columns: 1fr; } }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .num { font: 800 32px/1.05 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat .lbl { font-size: 14px; color: var(--stone); margin-top: 6px; }

/* ---------- Forms ---------- */
label, .label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--stone); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 50px; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, .card-link:focus-visible {
  outline: 3px solid var(--poppy); outline-offset: 2px; }
.fields { display: grid; gap: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 560px) { .two, .three { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--stone); font-weight: 400; }
.consent input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--ink); }
.error { color: var(--err); font-size: 15px; font-weight: 600; margin: 0; }
.okmsg { color: var(--ok); font-size: 15px; font-weight: 700; margin: 0; }

/* ---------- Buttons ---------- */
button, .btn { font: 700 16px/1 var(--body); border-radius: 999px; padding: 15px 24px; cursor: pointer; border: 1.5px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 50px; transition: transform .12s ease, background-color .12s; }
button:active, .btn:active { transform: translateY(1px); }
.btn-primary { background: var(--poppy); color: #1c1823; }
.btn-primary:hover { background: color-mix(in srgb, var(--poppy) 88%, #000); }
.btn-dark { background: var(--ink); color: var(--bone); }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: transparent; color: var(--err); border-color: color-mix(in srgb, var(--err) 45%, var(--line)); }
.btn-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.btn-sm { padding: 10px 16px; font-size: 15px; min-height: 42px; }
button[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Chips & pills ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0; font-weight: 400; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; }
.chip input:checked + span { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--poppy); outline-offset: 2px; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--tint); color: var(--ink); }
.pill.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pill.err { background: color-mix(in srgb, var(--err) 13%, transparent); color: var(--err); }
.pill.coral { background: color-mix(in srgb, var(--poppy) 20%, transparent); color: var(--poppy-ink); }

/* ---------- Notices ---------- */
.notice { border-radius: 14px; padding: 15px 18px; font-size: 16px; border: 1px solid var(--line); background: var(--paper); }
.notice.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 7%, var(--paper)); }
.notice.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 7%, var(--paper)); }
.notice.err { border-color: color-mix(in srgb, var(--err) 45%, var(--line)); background: color-mix(in srgb, var(--err) 6%, var(--paper)); }
.notice strong { display: block; margin-bottom: 2px; }
.empty { text-align: center; padding: 40px 18px; color: var(--stone); }
.empty h3 { color: var(--ink); font-size: 22px; }

/* ---------- Opening cards ---------- */
.slot-list { display: grid; gap: 10px; }
.day-head { font: 700 17px/1.2 var(--display); color: var(--ink); margin: 22px 0 4px; }
.day-head:first-child { margin-top: 0; }
.slot { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.slot:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.slot.active { border-color: var(--poppy); box-shadow: 0 0 0 2px color-mix(in srgb, var(--poppy) 30%, transparent); }
.slot .time { font: 800 21px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.slot .time small { display: block; font: 500 13.5px/1.3 var(--body); color: var(--stone); margin-top: 5px; letter-spacing: 0; }
.slot .what { min-width: 0; }
.slot .svc { font-weight: 700; }
.slot .where { font-size: 15px; color: var(--stone); }
.slot .where a { color: inherit; }
.slot .side { text-align: right; display: grid; gap: 6px; justify-items: end; }
.slot .price { font-weight: 800; font-variant-numeric: tabular-nums; }
.offpeak { font-size: 12.5px; font-weight: 700; color: var(--poppy-ink); }
@media (max-width: 540px) {
  .slot { grid-template-columns: 76px 1fr; }
  .slot .side { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
}

/* ---------- Search page ---------- */
.filters { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr auto; gap: 10px; align-items: end; }
@media (max-width: 760px) { .filters { grid-template-columns: 1fr 1fr; } .filters .go { grid-column: 1 / -1; } }
.search-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.map-wrap { position: sticky; top: 80px; }
#map, .map { height: calc(100vh - 120px); min-height: 360px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); z-index: 1; }
.map.small { height: 240px; min-height: 0; }
.map-toggle { display: none; }
@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; }
  .map-wrap { position: static; order: -1; }
  #map { height: 300px; }
  .map-wrap.collapsed #map { display: none; }
  .map-toggle { display: inline-flex; margin-bottom: 10px; }
}
.leaflet-popup-content { font: 15px/1.4 var(--body); }
.leaflet-popup-content b { font-family: var(--display); }
.pin { background: var(--poppy); color: #1c1823; border: 2px solid #fff; border-radius: 999px; font: 800 12px/1 var(--body); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.pin.off { background: #9a929e; color: #fff; }

/* ---------- Home: hero ---------- */
.hero { position: relative; padding-block: 40px 56px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 28px; } }
.hero h1 { margin-bottom: 20px; }
.hero h1 .clock { display: block; font-variant-numeric: tabular-nums; }
.searchbox { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); max-width: 620px; }
.searchbox .fields { gap: 14px; }
.searchbox button[type=submit] { width: 100%; font-size: 17px; }
.trustline { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 15px; color: var(--stone); }
.trustline span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--poppy); margin-right: 8px; vertical-align: 1px; }

/* Cutout collage: photos inside modern-art shapes */
.collage { position: relative; aspect-ratio: 1 / 1.02; max-width: 600px; width: 100%; justify-self: center; }
.collage .shape { position: absolute; overflow: hidden; background: var(--tint); }
.collage .shape img { width: 100%; height: 100%; object-fit: cover; }
.collage .s1 { left: 0; top: 4%; width: 58%; height: 62%; border-radius: 999px 999px 24px 24px; }        /* arch */
.collage .s2 { right: 0; top: 0; width: 40%; height: 40%; border-radius: 50%; }                            /* circle */
.collage .s3 { right: 2%; bottom: 0; width: 52%; height: 52%; border-radius: 24px 140px 24px 24px; }       /* leaf */
.collage .disc { position: absolute; left: 6%; bottom: 6%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--poppy); }
.collage .bar { position: absolute; right: 42%; top: 44%; width: 11%; height: 30%; border-radius: 999px; background: var(--ink); }
.collage .ticket { position: absolute; left: 10%; bottom: 14%; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); min-width: 210px; }
.collage .ticket .t { font: 800 30px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.collage .ticket .d { font-size: 14px; color: var(--stone); margin-top: 4px; }
.collage .ticket .b { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 800; background: var(--poppy); color: #1c1823; border-radius: 999px; padding: 6px 12px; }
@media (prefers-reduced-motion: no-preference) {
  .collage .shape, .collage .disc, .collage .bar, .collage .ticket { animation: cut .9s cubic-bezier(.2,.8,.2,1) both; }
  .collage .s2 { animation-delay: .08s; } .collage .s3 { animation-delay: .16s; } .collage .disc { animation-delay: .24s; } .collage .bar { animation-delay: .3s; } .collage .ticket { animation-delay: .45s; }
  @keyframes cut { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
}

/* Live openings rail */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.rail > * { scroll-snap-align: start; }
.tile-time { display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; color: var(--ink); }
.tile-time:hover { border-color: var(--ink); }
.tile-time .t { font: 800 34px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile-time .day { font-size: 14px; font-weight: 700; color: var(--poppy-ink); margin-bottom: 8px; }
.tile-time .s { font-weight: 700; margin-top: 10px; }
.tile-time .w { font-size: 14px; color: var(--stone); }

/* Category gallery */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cat { position: relative; display: block; text-decoration: none; color: var(--ink); }
.cat .frame { aspect-ratio: 3 / 4; overflow: hidden; background: var(--tint); }
.cat:nth-child(6n+1) .frame { border-radius: 999px 999px 18px 18px; }
.cat:nth-child(6n+2) .frame { border-radius: 18px; }
.cat:nth-child(6n+3) .frame { border-radius: 18px 18px 999px 999px; }
.cat:nth-child(6n+4) .frame { border-radius: 120px 18px 120px 18px; }
.cat:nth-child(6n+5) .frame { border-radius: 999px 999px 18px 18px; }
.cat:nth-child(6n+6) .frame { border-radius: 18px 120px 18px 18px; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat:hover img { transform: scale(1.04); }
.cat .name { font: 700 18px/1.2 var(--display); margin-top: 10px; display: flex; justify-content: space-between; gap: 6px; }
.cat .name::after { content: "↗"; color: var(--poppy-ink); }
@media (max-width: 960px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* Steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bone); font: 800 18px/40px var(--display); justify-content: center; margin-bottom: 14px; }
.steps strong { display: block; color: var(--ink); margin-bottom: 6px; font-family: var(--display); font-size: 20px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Big split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .art { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; }
.split .art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.ink-band { background: var(--ink); color: var(--bone); border-radius: 32px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; overflow: hidden; position: relative; }
.ink-band h2, .ink-band h3 { color: var(--bone); }
.ink-band p { color: color-mix(in srgb, var(--bone) 78%, transparent); }
.ink-band .art { border-radius: 999px 999px 24px 24px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 360px; justify-self: end; width: 100%; }
.ink-band .art img { width: 100%; height: 100%; object-fit: cover; }
.ink-band .btn-ghost { color: var(--bone); border-color: color-mix(in srgb, var(--bone) 40%, transparent); }
.ink-band .figs { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin: 24px 0 28px; justify-content: start; }
.ink-band .figs b { display: block; font: 800 38px/1 var(--display); color: var(--poppy); letter-spacing: -0.03em; }
.ink-band .figs span { font-size: 14px; color: color-mix(in srgb, var(--bone) 70%, transparent); }
@media (max-width: 860px) { .ink-band { grid-template-columns: 1fr; } .ink-band .art { justify-self: start; max-width: 260px; } }
:root[data-theme="dark"] .ink-band, :root:not([data-theme="light"]) .ink-band { }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ink-band { background: #2b2534; color: #f3efe8; } :root:not([data-theme="light"]) .ink-band h2 { color: #f3efe8; } }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.promise div { border-top: 3px solid var(--ink); padding-top: 14px; }
.promise strong { display: block; font: 700 19px/1.25 var(--display); margin-bottom: 6px; }
.promise p { margin: 0; color: var(--stone); font-size: 16px; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; gap: 20px; } }
.areas { display: flex; flex-wrap: wrap; gap: 8px; }
.areas a { text-decoration: none; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 600; }
.band { background: var(--ink); color: var(--bone); border-radius: 28px; padding: 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.band h2 { color: var(--bone); margin: 0 0 4px; }
.band p { margin: 0; opacity: .85; }

/* Page hero image strip for inner marketing pages */
.page-art { border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 420px; }
.page-art img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--stone); padding: 13px 14px; white-space: nowrap; min-height: 0; font-weight: 700; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--poppy); }
.tabs .count { background: var(--poppy); color: #1c1823; border-radius: 999px; font-size: 12px; padding: 2px 8px; margin-left: 6px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13.5px; color: var(--stone); font-weight: 700; background: color-mix(in srgb, var(--bone) 60%, var(--paper)); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Rows ---------- */
.rows { display: grid; gap: 10px; }
.row { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 15px 18px; display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.row .main { min-width: 0; flex: 1 1 260px; }
.row .title { font-weight: 700; }
.row .meta { font-size: 15px; color: var(--stone); }
.row .row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Check-in code ---------- */
.code { font: 800 52px/1 var(--display); letter-spacing: .14em; color: var(--ink); font-variant-numeric: tabular-nums; }
.code-box { text-align: center; padding: 22px; border: 2px dashed var(--line); border-radius: 18px; }

/* ---------- Salon profile ---------- */
.profile-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.avatar { width: 84px; height: 84px; border-radius: 999px 999px 18px 18px; background: var(--ink); color: var(--bone); font: 800 32px/84px var(--display); text-align: center; flex: none; object-fit: cover; }
.stars { color: var(--poppy-ink); letter-spacing: 1px; }
.meta-line { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 15px; color: var(--stone); }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 900px) { .profile-layout { grid-template-columns: 1fr; } }
.menu-list { display: grid; }
.menu-list div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.menu-list div:last-child { border-bottom: 0; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.starpick { display: flex; gap: 4px; }
.starpick button { background: none; border: 0; font-size: 34px; color: var(--line); padding: 0 2px; min-height: 0; }
.starpick button.on { color: var(--poppy); }

/* ---------- Toast & dialog ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bone); padding: 14px 20px; border-radius: 14px; font-weight: 700; z-index: 3000; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.err { background: var(--err); color: #fff; }
dialog { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--paper); color: var(--ink); width: min(540px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(28, 24, 35, .5); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; background: var(--ink); color: var(--bone); }
.site-footer .in { max-width: 1240px; margin: 0 auto; padding: 48px 20px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; font-size: 15px; }
.site-footer .word { font: 800 clamp(44px, 8vw, 110px)/.9 var(--display); letter-spacing: -0.045em; color: var(--bone); grid-column: 1 / -1; margin-bottom: 8px; }
.site-footer .word span { color: var(--poppy); }
.site-footer h4 { font: 700 15px/1.2 var(--display); margin: 0 0 10px; color: var(--bone); }
.site-footer a { color: color-mix(in srgb, var(--bone) 80%, transparent); text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--bone); text-decoration: underline; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--bone) 18%, transparent); padding-top: 18px; font-size: 13.5px; color: color-mix(in srgb, var(--bone) 65%, transparent); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer .fine a { display: inline; }
@media (max-width: 760px) { .site-footer .in { grid-template-columns: 1fr 1fr; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #0f0d13; } }

/* ---------- Legal ---------- */
.legal h1 { font-size: clamp(32px, 6vw, 48px); }
.legal h2 { font-size: 22px; margin: 34px 0 8px; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 20px; }
.updated { color: var(--stone); font-size: 15px; margin: 0 0 24px; }

.preview-bar { background: var(--ink); color: var(--bone); text-align: center; font-size: 14px; font-weight: 600; padding: 8px 12px; }
.preview-bar b { color: var(--poppy); }
.skeleton { background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--line) 40%, var(--paper)), var(--line)); background-size: 200% 100%; border-radius: 16px; height: 78px; }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: sk 1.2s infinite linear; } @keyframes sk { to { background-position: -200% 0; } } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.credit { font-size: 12.5px; color: var(--stone); }
@media (max-width: 600px) {
  .collage { max-width: 420px; aspect-ratio: 1 / .92; }
  .collage .ticket { min-width: 0; left: 4%; bottom: 8%; padding: 10px 12px; }
  .collage .ticket .t { font-size: 24px; }
  .ink-band .figs { grid-template-columns: repeat(3, auto); gap: 18px; }
  .ink-band .figs b { font-size: 30px; }
}
.ink-band .figs div { min-width: 80px; }
.hero > * { min-width: 0; }
.cover { height: clamp(150px, 22vw, 260px); border-radius: 28px 28px 999px 28px; overflow: hidden; background: var(--tint); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
