/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #F6F1EB;
  --surface: #FFFDFA;
  --surface-2: #EFE7DE;
  --ink: #1F1A17;
  --ink-2: #352F2B;
  --muted: #5F5650;
  --line: #E4DAD0;
  --line-strong: #CFC2B5;
  --accent: #7B2D3B;
  --accent-ink: #FFFFFF;
  --accent-soft: #F2E3E0;
  --accent-hover: #65222F;
  --ok: #3F6B4F;
  --ok-soft: #E3EDE5;
  --danger: #A33A2C;
  --danger-soft: #F6E1DC;
  --shadow: 0 1px 2px rgba(31, 26, 23, .04), 0 8px 24px -12px rgba(31, 26, 23, .18);
  --shadow-lg: 0 24px 64px -24px rgba(31, 26, 23, .35);
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px;
  --r-sm: 10px;
  --max: 1120px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #161311;
  --surface: #1F1B18;
  --surface-2: #2A2521;
  --ink: #F2EBE3;
  --ink-2: #E4DBD1;
  --muted: #BDB2A7;
  --line: #342E29;
  --line-strong: #4A423B;
  --accent: #D9939B;
  --accent-ink: #1F1215;
  --accent-soft: #3A2528;
  --accent-hover: #E5AAB1;
  --ok: #8CC29D;
  --ok-soft: #1F2E24;
  --danger: #E8907F;
  --danger-soft: #3A2320;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 64px -24px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow {
  font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------------ header */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent); color: var(--accent-ink); font: 600 19px/1 var(--serif);
}
.brand-name { font: 600 22px/1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 14px;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.active { color: var(--ink); }
.tools { display: flex; align-items: center; gap: 6px; }
.select-lang {
  appearance: none; -webkit-appearance: none; background: transparent; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 6px 28px 6px 12px; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237D736B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 0 12px; }
.btn-quiet:hover { color: var(--ink); background: var(--surface-2); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ home */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .9fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); margin: 18px 0 20px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: 17px; color: var(--ink-2); max-width: 30em; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow);
}
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row:first-child { padding-top: 0; }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row .icon { margin-top: 2px; color: var(--accent); }
.info-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.hours-list { display: grid; grid-template-columns: auto 1fr; gap: 3px 18px; font-size: 14px; margin-top: 4px; }
.hours-list .is-today { font-weight: 700; color: var(--ink); }
.hours-list span:nth-child(even) { text-align: right; font-variant-numeric: tabular-nums; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok);
}
.status-pill.off { background: var(--surface-2); color: var(--muted); }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.section { padding: 56px 0 88px; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(34px, 4vw, 46px); margin-top: 12px; }
.pricelist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 64px; }
.price-group h3 {
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin: 20px 0 4px;
}
.price-item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 18px 12px; margin: 0 -12px;
  border-radius: 0; border-bottom: 1px solid var(--line); text-decoration: none; cursor: pointer;
  background: transparent; border-left: 0; border-right: 0; border-top: 0; width: calc(100% + 24px); text-align: left;
  transition: background-color .15s;
}
.price-item:hover { background: var(--surface); }
.price-item:hover .price-book { opacity: 1; transform: none; }
.price-name { font: 600 22px/1.2 var(--serif); }
.price-val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; align-self: start; padding-top: 3px; }
.price-meta { font-size: 13.5px; color: var(--muted); }
.price-book {
  font-size: 12.5px; font-weight: 700; color: var(--accent); text-align: right; opacity: 0; transform: translateX(-4px);
  transition: opacity .15s, transform .15s; white-space: nowrap;
}

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

/* ------------------------------------------------------------------ booking */
.page { padding: 48px 0 96px; }
.page-head { margin-bottom: 32px; }
.page-head h1 { font-size: clamp(38px, 5vw, 54px); margin-top: 12px; }
.page-head p { color: var(--ink-2); margin-top: 10px; font-size: 16px; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.steps { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.step-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
}
.step-chip .n {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px;
  background: var(--surface-2); color: var(--muted);
}
.step-chip.current { color: var(--ink); border-color: var(--ink); }
.step-chip.current .n { background: var(--ink); color: var(--bg); }
.step-chip.is-done { color: var(--ink-2); cursor: pointer; }
.step-chip.is-done .n { background: var(--accent); color: var(--accent-ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 20px; }
.panel-title { font: 500 28px/1.15 var(--serif); margin-bottom: 20px; }
.panel-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

.svc-list { display: grid; gap: 10px; }
.svc-cat { font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 14px 0 2px; }
.svc-cat:first-child { margin-top: 0; }
.svc-option {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .15s, background-color .15s;
}
.svc-option:hover { border-color: var(--line-strong); }
.svc-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.svc-option.selected .radio { border-color: var(--accent); }
.svc-option.selected .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.svc-name { font-weight: 600; font-size: 15.5px; }
.svc-desc { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.svc-right { text-align: right; }
.svc-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.svc-dur { font-size: 12.5px; color: var(--muted); }

.dt-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font: 600 22px/1 var(--serif); text-transform: capitalize; }
.cal-nav { display: flex; gap: 4px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 6px 0; }
.cal-day {
  aspect-ratio: 1; border-radius: 12px; border: 1px solid transparent; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14.5px;
}
.cal-day .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .7; }
.cal-day.avail { background: var(--bg); }
.cal-day.avail:hover { border-color: var(--line-strong); }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--ink-2); }
.cal-day.selected { background: var(--ink); color: var(--bg); }
.cal-day.selected .dot { background: var(--bg); }
.cal-day.off { color: var(--line-strong); cursor: default; font-weight: 500; }
.cal-day.full { color: var(--muted); cursor: default; text-decoration: line-through; text-decoration-color: var(--line-strong); font-weight: 500; }
.cal-day.blank { visibility: hidden; }
.cal-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--bg); border: 1px solid var(--line-strong); display: inline-block; }

.slots-title { font-weight: 600; margin-bottom: 12px; min-height: 22px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot {
  height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px;
}
.slot:hover { border-color: var(--ink); }
.slot.selected { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slot.taken { color: var(--line-strong); text-decoration: line-through; cursor: not-allowed; background: transparent; }
.slot.taken:hover { border-color: var(--line); }
.empty {
  border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 28px 20px; text-align: center; color: var(--muted); font-size: 14px;
}

.field { display: grid; gap: 7px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.input.invalid { border-color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

.summary { position: sticky; top: 92px; }
.summary .panel { padding: 24px; }
.sum-title { font: 500 24px/1 var(--serif); margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sum-row .k { color: var(--muted); }
.sum-row .v { font-weight: 600; text-align: right; }
.sum-row .v.placeholder { color: var(--muted); font-weight: 500; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.sum-total .v { font: 600 28px/1 var(--serif); }
.sum-note { font-size: 12.5px; color: var(--muted); margin-top: 16px; line-height: 1.5; }

.done { text-align: center; padding: 48px 28px; }
.done-mark {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ok);
}
.done-mark .icon { width: 28px; height: 28px; stroke-width: 2; }
.done h2 { font-size: 42px; margin-bottom: 10px; }
.done-card { max-width: 380px; margin: 28px auto; text-align: left; background: var(--bg); border-radius: var(--r); padding: 6px 20px; }
.done-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------ my appointments */
.narrow { max-width: 640px; }
.lookup { display: flex; gap: 10px; }
.lookup .input { flex: 1; }
.appt {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 20px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.appt:last-child { border-bottom: 0; }
.appt-date { text-align: center; border-radius: 12px; background: var(--bg); padding: 10px 0; }
.appt-date .d { font: 600 30px/1 var(--serif); }
.appt-date .m { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.appt-title { font-weight: 600; font-size: 16px; }
.appt-meta { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.appt-lock { font-size: 12.5px; color: var(--muted); max-width: 190px; text-align: right; }

/* ------------------------------------------------------------------ admin */
.login-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 400px; }
.login-card h1 { font-size: 40px; margin: 12px 0 8px; }

.admin { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.side { border-right: 1px solid var(--line); padding: 28px 16px; display: flex; flex-direction: column; gap: 2px; }
.side a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14.5px;
}
.side a:hover { background: var(--surface-2); color: var(--ink); }
.side a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
.side a.active .icon { color: var(--accent); }
.side .spacer { flex: 1; }
.admin-main { padding: 36px 40px 80px; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-head h1 { font-size: 40px; }
.admin-head p { color: var(--muted); margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.stat .k { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stat .v { font: 600 40px/1 var(--serif); margin-top: 12px; font-variant-numeric: tabular-nums; }
.stat .v small { font: 600 14px var(--sans); color: var(--muted); margin-left: 4px; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }

.sched { display: grid; }
.sched-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.sched-item:last-child { border-bottom: 0; }
.sched-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.sched-time small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.sched-name { font-weight: 600; }
.sched-svc { font-size: 13.5px; color: var(--muted); }
.tel { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.tel:hover { color: var(--accent); }
.tel .icon { width: 15px; height: 15px; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.day-nav { display: inline-flex; align-items: center; gap: 4px; }
.day-nav .label-day { min-width: 190px; text-align: center; font-weight: 600; }
.input-date { height: 36px; border-radius: 999px; padding: 0 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-strong { font-weight: 600; }
.t-sub { font-size: 12.5px; color: var(--muted); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.group-row td { background: var(--bg) !important; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 10px 16px; }

.hours-grid { display: grid; }
.hours-row { display: grid; grid-template-columns: 140px 120px 1fr; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: 0; }
.hours-row .day { font-weight: 600; }
.hours-times { display: flex; align-items: center; gap: 10px; }
.hours-times .input { width: 150px; height: 40px; }
.hours-row.is-closed .hours-times { opacity: .35; pointer-events: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background-color .15s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; }
.chip b { font-weight: 600; }
.chip .x { width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); }
.chip .x:hover { background: var(--danger-soft); color: var(--danger); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.inline-form .field { flex: 1; min-width: 160px; }
.sub { color: var(--muted); font-size: 14px; margin: -12px 0 20px; }
.stack > * + * { margin-top: 20px; }
.save-bar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ------------------------------------------------------------------ modal + toast */
.modal-bg {
  position: fixed; inset: 0; z-index: 60; background: rgba(20, 16, 14, .45); display: grid; place-items: center; padding: 20px;
  animation: fade .15s ease-out;
}
.modal { width: 100%; max-width: 520px; background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); animation: rise .2s ease-out; max-height: calc(100vh - 40px); overflow: auto; }
.modal h3 { font-size: 30px; margin-bottom: 8px; }
.modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
#toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--danger); color: #fff; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.view.view-in { animation: fade .25s ease-out; }
.loading-line { height: 200px; display: grid; place-items: center; color: var(--muted); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 40px; }
  .pricelist { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .summary.is-empty { display: none; }
  .summary .sum-note { display: none; }
  .dt-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; gap: 4px; }
  .side a { white-space: nowrap; padding: 8px 12px; }
  .side .spacer { display: none; }
  .admin-main { padding: 28px 20px 64px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .topbar .wrap { height: 60px; gap: 12px; }
  .nav { display: none; }
  .brand-name { font-size: 19px; }
  .tools { margin-left: auto; }
  .mobile-nav { display: flex !important; }
  body { padding-bottom: 72px; }
  .form-grid { grid-template-columns: 1fr; }
  .panel { padding: 20px; border-radius: 16px; }
  .panel-title { font-size: 24px; }
  .appt { grid-template-columns: 64px 1fr; }
  .appt > :last-child { grid-column: 1 / -1; justify-self: start; }
  .appt-lock { text-align: left; max-width: none; }
  .hours-row { grid-template-columns: 1fr auto; }
  .hours-row .hours-times { grid-column: 1 / -1; }
  .hours-times .input { flex: 1; width: auto; }
  .price-book { display: none; }
  .day-nav .label-day { min-width: 0; flex: 1; }
  .day-nav { width: 100%; }
  .lookup { flex-direction: column; }
  .stat .v { font-size: 32px; }
  .login-wrap { min-height: auto; }
}
.mobile-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  justify-content: space-around;
}
.mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px 10px; }
.mobile-nav a.active { color: var(--accent); }
.mobile-nav .icon { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.cal-legend s { font-weight: 600; text-decoration-color: var(--line-strong); }

.info-row a { text-decoration: none; font-weight: 500; }
.info-row a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.topbar.is-admin .wrap { max-width: none; padding: 0 24px 0 28px; }
.two-col > .panel + .panel { margin-top: 0; }
.sched-item { grid-template-columns: 70px 1fr auto; }
@media (max-width: 720px) {
  .sched-item { grid-template-columns: 58px 1fr; }
  .sched-item .tel { grid-column: 2; }
  .stat .v { font-size: 28px; }
  .topbar.is-admin .wrap { padding: 0 16px; }
}
@media (max-width: 960px) {
  .admin { grid-template-rows: auto 1fr; }
  .side { align-items: center; }
}
@media (max-width: 720px) {
  .table-wrap { overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; }
  .table-wrap thead { display: none; }
  .table-wrap tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table-wrap tbody tr:last-child { border-bottom: 0; }
  .table-wrap td { padding: 0; border: 0; }
  .table-wrap tbody tr:hover td { background: transparent; }
  .table-wrap td.num { text-align: left; }
  .table-wrap .row-actions { justify-content: flex-start; margin-top: 6px; }
  .table-wrap tr.group-row { display: block; padding: 0; }
  .table-wrap tr.group-row td { padding: 10px 16px; }
}
@media (max-width: 720px) {
  .table-wrap tbody tr { grid-template-columns: 1fr; }
  .tbl-bookings tbody tr { grid-template-columns: 64px 1fr; }
  .tbl-bookings tbody tr td:first-child { grid-row: span 5; }
}
.brand-mark .icon { width: 18px; height: 18px; stroke-width: 1.8; }
.start { margin-bottom: 20px; border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.start-list { margin: 0; padding-left: 22px; line-height: 2; font-weight: 500; }
.start-list a { color: var(--accent); text-underline-offset: 3px; }
select.input { appearance: auto; }
@media (max-width: 720px) {
  .side .icon { display: none; }
  .side a { padding: 8px 10px; font-size: 14px; }
}
.day-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin: -4px 0 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.day-bar b { font-weight: 700; font-variant-numeric: tabular-nums; }
.badge-soft { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
form[data-form="dayset"].is-closed .dayset-fields { opacity: .35; pointer-events: none; }
form[data-form="dayset"].mode-range .only-times, form[data-form="dayset"].mode-times .only-range { display: none; }
.time-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.time-chip { display: inline-flex; align-items: center; gap: 2px; padding-right: 4px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.time-chip .input { border: 0; height: 40px; width: 130px; background: transparent; box-shadow: none; }
.time-chip .x { width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); }
.time-chip .x:hover { background: var(--danger-soft); color: var(--danger); }
.hint { font-size: 12.5px; color: var(--muted); }
.price-val { text-align: right; }
@media (max-width: 720px) { .select-lang { max-width: 118px; text-overflow: ellipsis; } }
@media (max-width: 720px) { .tools .btn-primary { display: none; } }

/* readability */
::placeholder { color: #857A71; opacity: 1; }
:root[data-theme="dark"] ::placeholder { color: #9A8F85; }
.cal-day.off { color: #ADA196; }
:root[data-theme="dark"] .cal-day.off { color: #6E655D; }
.slot.taken { color: #A99D92; }
.empty { color: var(--ink-2); }
.bell { position: relative; }
.bell-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.bell-badge[hidden] { display: none; }
.ev-list { margin-top: 12px; max-height: 60vh; overflow: auto; }
.ev-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ev-item:last-child { border-bottom: 0; }
.ev-item.unread .ev-text { font-weight: 700; }
.ev-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.ev-dot .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.ev-dot.booked { background: var(--ok-soft); color: var(--ok); }
.ev-dot.cancelled { background: var(--danger-soft); color: var(--danger); }
.ev-text { font-size: 14.5px; }
.ev-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ev-at { font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.notice-ok { display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin-bottom: 18px; border-radius: var(--r); background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.notice-ok .icon { stroke-width: 2.2; }
.push-row { margin-top: 18px; }
.push-row .switch { align-items: flex-start; line-height: 1.45; }
.push-row .switch .track { margin-top: 1px; }
.push-row b { font-weight: 700; color: var(--ink); }
.push-hint { font-weight: 500; }
.push-row input:disabled + .track { opacity: .5; }
.push-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px 14px; margin-bottom: 18px; }
.rule-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 14px; font-weight: 600; }
.rule-note .icon { color: var(--accent); margin-top: 1px; }
.slug-row { display: flex; align-items: center; gap: 6px; }
.slug-row .muted { font-size: 13.5px; white-space: nowrap; }
.slug-row .input { flex: 1; min-width: 0; }
tr.row-off td { opacity: .55; }
tr.row-off td:nth-child(2), tr.row-off td:last-child { opacity: 1; }
.t-sub a { color: var(--accent); text-decoration: none; }
.t-sub a:hover { text-decoration: underline; }
@media (max-width: 720px) { .slug-row { flex-direction: column; align-items: stretch; } }
.r-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.r-results { margin-top: 12px; display: grid; gap: 8px; }
.r-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--bg); }
.r-result:hover { border-color: var(--accent); }
.r-result > span { display: flex; flex-direction: column; gap: 2px; }
.r-result .muted { font-size: 13px; }
.r-result .icon { color: var(--accent); }
@media (max-width: 860px) { .r-grid { grid-template-columns: 1fr; } }
.r-grid > .panel + .panel { margin-top: 0; }
.help-steps { margin: 12px 0; padding-left: 22px; line-height: 1.7; font-weight: 600; }

/* ------------------------------------------------------------------ clean, unified look (one font, tighter layout) */
:root { --serif: var(--sans); --max: 1040px; }
body { font-size: 15px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.eyebrow { display: none; }
.brand-mark { font-family: var(--sans); font-size: 16px; }
.brand-name { font: 700 18px/1 var(--sans); letter-spacing: -.01em; }
.select-lang { letter-spacing: 0; }

/* uppercase, letter-spaced small labels -> plain text */
.info-label, th, .cal-dow, .svc-cat, .price-group h3, .group-row td, .appt-date .m {
  text-transform: none; letter-spacing: 0; font-size: 13px;
}

/* home */
.hero { padding: 48px 0 32px; }
.hero .wrap { grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.hero h1 { font-size: clamp(32px, 4.2vw, 46px); margin: 0 0 14px; }
.hero h1 em { font-style: normal; color: inherit; }
.hero-sub { font-size: 16px; }
.hero-actions { margin-top: 24px; }
.section { padding: 0 0 56px; border-top: 0; }
.section-head { display: block; margin-bottom: 16px; }
.section-head h2 { font-size: 24px; margin: 0 0 4px; }
.section-head p, .section-head .muted { font-size: 14.5px; }
.pricelist {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 4px 24px; box-shadow: var(--shadow);
}
.price-group h3 { color: var(--ink-2); font-weight: 700; border-bottom: 1px solid var(--line); margin: 16px 0 0; padding-bottom: 10px; }
.price-item { padding: 16px 12px; }
.price-group:last-child .price-item:last-child, .pricelist > .price-item:last-child { border-bottom: 0; }
.price-name { font: 700 16px/1.3 var(--sans); }

/* booking + inner pages */
.page { padding: 36px 0 72px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 36px); margin-top: 0; }
.page-head p { font-size: 15px; margin-top: 6px; }
.book-grid { gap: 24px; }
.panel { padding: 24px; }
.panel-title { font: 700 20px/1.25 var(--sans); margin-bottom: 16px; }
.sum-title { font: 700 18px/1.2 var(--sans); }
.sum-total .v { font: 700 22px/1 var(--sans); }
.cal-title { font: 700 17px/1 var(--sans); }
.appt-date .d { font: 700 24px/1 var(--sans); }
.stat .v { font: 700 30px/1 var(--sans); }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 32px 0 24px; }
}
@media (max-width: 720px) {
  .pricelist { padding: 0 16px; }
  .panel { padding: 20px; }
}
.admin-head { margin-bottom: 20px; align-items: center; }
.admin-head h1 { font-size: 28px; }
.price-group h3:empty { display: none; }
.price-group:first-child .price-item:first-of-type { border-top: 0; }

.chip-edit { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.chip-edit:hover b { text-decoration: underline; }
.inline-form-2 { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 720px) { .inline-form-2 { grid-template-columns: 1fr; } }

.reglink-row { display: flex; gap: 10px; flex-wrap: wrap; }
.reglink-row .input { flex: 1; min-width: 220px; font-weight: 600; }

.r-grid.r-grid-1 { grid-template-columns: minmax(0, 560px); }

.open-br { display: flex; gap: 8px; flex-wrap: wrap; }
.open-br .btn { height: 40px; font-size: 13.5px; }

.o-filter { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.o-filter #o-q { flex: 1; min-width: 200px; }
.o-filter #o-f { width: auto; min-width: 150px; }

.code-box { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin: 4px auto 10px; padding: 12px 26px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--bg); }
.code-box span { font-size: 13px; color: var(--muted); }
.code-box b { font-size: 28px; letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.lookup-2 { display: flex; gap: 10px; flex-wrap: wrap; }
.lookup-2 .input { flex: 1; min-width: 150px; }

.footer-links { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.privacy-accept { margin-top: 12px; }
.privacy-accept a { color: var(--accent); font-weight: 600; }
.privacy h3 { margin-bottom: 8px; }
.privacy h4 { font-size: 15px; margin: 18px 0 6px; }
.privacy p, .privacy li { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.privacy ul { padding-left: 20px; margin: 0; }
.privacy li + li { margin-top: 6px; }

.lookup-2 .input { height: 46px; min-height: 46px; }
.lookup-2 .btn { height: 46px; }
#lc::placeholder { text-transform: none; }
