:root {
  --bg: #ffffff; --surface: #f5f5f7; --surface-2: #ebebef; --fg: #1d1d1f; --muted: #6e6e73;
  --line: #d2d2d7; --accent: #b0195a; --accent-fg: #ffffff; --accent-soft: #fbe7ef;
  --ok: #1f8a4c; --warn: #b25e00; --bad: #c62828;
  --radius: 16px; --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e; --fg: #f5f5f7; --muted: #a1a1a6;
    --line: #38383a; --accent: #ff5c9a; --accent-fg: #1a0610; --accent-soft: #3a1224;
    --ok: #4cd680; --warn: #ffb14d; --bad: #ff6b6b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
main { max-width: 560px; margin: 0 auto; padding: 16px var(--gutter) 160px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 4px; }
h2 { font-size: 22px; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 20px 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.stack > * + * { margin-top: 10px; }
.hidden { display: none !important; }

.cover { width: 100%; height: 160px; object-fit: cover; border-radius: 20px; background: var(--surface); display: block; margin-bottom: 16px; }
.salon { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 20px; flex: none; }
.note { display: flex; gap: 8px; font-size: 14px; color: var(--muted); background: var(--surface); padding: 12px; border-radius: 12px; }

.step-label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 24px 0 2px; }
.card { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 14px; border-radius: var(--radius);
  border: 2px solid transparent; background: var(--surface); color: var(--fg); font: inherit; cursor: pointer; }
.card[aria-pressed="true"] { border-color: var(--accent); }
.card:focus-visible, .btn:focus-visible, .chip:focus-visible, .slot:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; margin-top: 1px; }
.card[aria-pressed="true"] .radio { border: 7px solid var(--accent); }
.card .body { flex: 1; min-width: 0; }
.card .title { font-weight: 600; }
.card .desc { color: var(--muted); font-size: 15px; }
.card .price { text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.card .price small { display: block; color: var(--muted); }

.counter { display: flex; align-items: center; gap: 4px; }
.counter button { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--surface-2); color: var(--fg); font-size: 20px; cursor: pointer; }
.counter button:disabled { opacity: .35; cursor: default; }
.counter output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.chip { flex: none; width: 58px; padding: 8px 0; border-radius: 14px; border: none; background: var(--surface); color: var(--fg); font: inherit; cursor: pointer; text-align: center; }
.chip span { display: block; font-size: 12px; }
.chip b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
.chip:disabled { color: var(--muted); opacity: .45; cursor: default; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.slot { height: 46px; border-radius: 12px; border: none; background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot.requested { background: transparent; border: 1.5px dashed var(--muted); }
.slot[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

label.field { display: block; font-size: 15px; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=tel], textarea { width: 100%; font: inherit; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
textarea { min-height: 88px; resize: vertical; }

.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { position: relative; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.add-photo { width: 96px; height: 96px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--fg); cursor: pointer; font-weight: 600; font-size: 14px; }
.add-photo input { display: none; }

.summary-lines { background: var(--surface); border-radius: var(--radius); padding: 14px; }
.line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 3px 0; }
.line span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.line.total { font-weight: 700; font-size: 17px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.line.total span:last-child { color: var(--fg); }

.footer { position: fixed; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.footer .inner { max-width: 560px; margin: 0 auto; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
.cart { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.cart .what { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart .meta { color: var(--muted); font-size: 13px; }
.cart .total { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.btn { display: block; width: 100%; height: 50px; border-radius: 14px; border: none; background: var(--accent); color: var(--accent-fg); font: inherit; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; line-height: 50px; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.secondary { background: var(--surface-2); color: var(--fg); }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--line); }
.blocker { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; min-height: 18px; }
.back { background: none; border: none; color: var(--accent); font: inherit; padding: 8px 0; cursor: pointer; }

.error { color: var(--bad); }
.warn { color: var(--warn); }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.status.pending { color: var(--warn); } .status.approved { color: var(--ok); } .status.bad { color: var(--bad); } .status.neutral { color: var(--muted); }
.booking { background: var(--surface); border-radius: var(--radius); padding: 14px; }
.center { text-align: center; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--surface-2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }
