/* ============================================================
   Ms.Brow · LIFF 預約時段
   色票／字體沿用 ms-brow-snow-salon（neutral mist）
   ============================================================ */

:root {
  --bg:        oklch(0.985 0.003 75);
  --bg-elev:   oklch(0.993 0.002 75);
  --bg-veil:   oklch(0.96  0.006 80);
  --ink:       oklch(0.20  0.005 60);
  --ink-soft:  oklch(0.42  0.005 60);
  --ink-mute:  oklch(0.58  0.004 60);
  --hairline:      oklch(0.86 0.004 60);
  --hairline-soft: oklch(0.93 0.003 60);
  --accent:    oklch(0.55 0.018 60);

  --open:      oklch(0.52 0.075 155);
  --open-bg:   oklch(0.955 0.028 155);
  --booked:    oklch(0.60 0.090 45);
  --booked-bg: oklch(0.960 0.030 55);
  --closed:    oklch(0.66 0.004 60);

  --font-serif:  "Noto Serif TC", "Songti TC", serif;
  --font-sans:   "Noto Sans TC", "PingFang TC", -apple-system, sans-serif;
  --font-num:    "Manrope", "Helvetica Neue", sans-serif;

  --radius: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(24px + var(--safe-b)); }

/* ---------- Header ---------- */
.hd {
  position: sticky; top: 0; z-index: 20;
  margin: 0 -16px; padding: 14px 16px 12px;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hairline-soft);
}
.hd-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hd h1 { margin: 0; font-family: var(--font-serif); font-size: 19px; font-weight: 500; letter-spacing: .04em; }
.hd .sub { font-size: 12px; color: var(--ink-mute); letter-spacing: .08em; }

/* ---------- 區塊 ---------- */
.sec { margin-top: 18px; }
.sec-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.sec-hd h2 {
  margin: 0; font-size: 12px; font-weight: 500;
  letter-spacing: .16em; color: var(--ink-mute);
}
.sec-hd .act { font-size: 12px; color: var(--accent); background: none; border: 0; padding: 4px 0; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-elev); color: var(--ink-soft);
  font-size: 14px; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.chip[aria-pressed="true"] {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.chip .n { font-family: var(--font-num); font-size: 12px; opacity: .65; margin-left: 5px; }

.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 月曆 ---------- */
.cal { margin-top: 4px; }
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 10px; }
.cal-nav button {
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--bg-elev);
  display: grid; place-items: center; font-size: 15px;
}
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-nav .label { font-family: var(--font-num); font-size: 16px; letter-spacing: .04em; min-width: 116px; text-align: center; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow {
  text-align: center; font-size: 11px; color: var(--ink-mute);
  letter-spacing: .08em; padding-bottom: 4px;
}
.cal-dow.sun, .cal-dow.sat { color: var(--accent); }

.day {
  position: relative; aspect-ratio: 1 / 1;
  border: 1px solid transparent; border-radius: 11px;
  background: transparent; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.day .d { font-family: var(--font-num); font-size: 15px; color: var(--ink-mute); }
.day.has { background: var(--bg-elev); border-color: var(--hairline-soft); }
.day.has .d { color: var(--ink); font-weight: 500; }
.day .cnt {
  font-family: var(--font-num); font-size: 10px; line-height: 1;
  color: var(--open); background: var(--open-bg);
  padding: 2px 5px; border-radius: 999px;
}
.day.none .cnt { color: var(--ink-mute); background: var(--bg-veil); }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.day[aria-pressed="true"] .d { color: var(--bg); }
.day[aria-pressed="true"] .cnt { color: var(--ink); background: var(--bg); }
.day.today .d { text-decoration: underline; text-underline-offset: 3px; }
.day.out { visibility: hidden; }
.day.past .d { opacity: .3; }

.legend { display: flex; gap: 14px; justify-content: center; margin-top: 12px; font-size: 11px; color: var(--ink-mute); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }

/* ---------- 時段列表 ---------- */
.slots { margin-top: 16px; }
.slot-group {
  border: 1px solid var(--hairline-soft); border-radius: var(--radius);
  background: var(--bg-elev); padding: 12px 14px; margin-bottom: 10px;
}
.slot-group h3 {
  margin: 0 0 9px; font-size: 14px; font-weight: 500;
  display: flex; align-items: baseline; gap: 8px;
}
.slot-group h3 .meta { font-size: 11px; color: var(--ink-mute); letter-spacing: .06em; font-weight: 400; }
.slot-row { display: flex; flex-wrap: wrap; gap: 7px; }

.slot {
  font-family: var(--font-num); font-size: 14px; letter-spacing: .02em;
  padding: 8px 13px; border-radius: 9px;
  border: 1px solid var(--open); color: var(--open); background: var(--open-bg);
  min-width: 68px; text-align: center;
}
.slot:active { transform: scale(.97); }
.slot.booked { border-color: var(--hairline); color: var(--closed); background: var(--bg-veil); cursor: default; text-decoration: line-through; }
.slot.closed { border-style: dashed; border-color: var(--hairline); color: var(--closed); background: transparent; }

/* 客服端三態 */
.slot.adm { min-width: 74px; }
.slot.adm.open   { border-color: var(--open);   color: var(--open);   background: var(--open-bg); }
.slot.adm.booked { border-color: var(--booked); color: var(--booked); background: var(--booked-bg); text-decoration: none; cursor: pointer; }
.slot.adm.closed { border-color: var(--hairline); color: var(--closed); background: transparent; border-style: dashed; }
.slot .st { display: block; font-family: var(--font-sans); font-size: 10px; letter-spacing: .06em; opacity: .8; margin-top: 1px; }
/* 還沒存到伺服器的時段：右上角一顆小圓點（不再把整顆按鈕變淡，狀態一點就看得清楚） */
.slot.adm.saving { position: relative; }
.slot.adm.saving::after {
  content: ''; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; animation: blink .9s ease-in-out infinite alternate;
}
@keyframes blink { from { opacity: .2 } to { opacity: .9 } }

/* 批次設定（客服端） */
.r-group { margin-bottom: 10px; }
.r-group small { display: block; font-size: 11px; color: var(--ink-mute); letter-spacing: .06em; margin-bottom: 5px; }
.rule-card { border: 1px solid var(--hairline-soft); border-radius: var(--radius); background: var(--bg-elev); padding: 11px 13px; margin-bottom: 8px; }
.rule-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rule-card .top b { font-weight: 500; font-size: 15px; }
.rule-card .meta { font-size: 12px; color: var(--ink-soft); }
.rule-card .dates { font-size: 13px; color: var(--ink-soft); margin-top: 3px; line-height: 1.6; }
.rule-card .acts { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.rule-card .who { font-size: 11px; color: var(--ink-mute); margin-left: auto; }
.day:disabled { cursor: default; }

/* 儲存狀態（客服端畫面下方） */
.save-pill {
  position: fixed; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translateX(-50%); z-index: 80;
  display: none; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; font-size: 13px;
  background: var(--bg-elev); color: var(--ink-soft); border: 1px solid var(--hairline);
  box-shadow: 0 6px 24px oklch(0.2 0.005 60 / .14);
}
.save-pill.on { display: flex; }
.save-pill.ok { color: var(--open); border-color: var(--open); background: var(--open-bg); }
.save-pill.err { color: #fff; background: oklch(0.45 0.13 25); border-color: transparent; }
.save-pill button { padding: 3px 11px; border-radius: 999px; border: 1px solid currentColor; background: transparent; font-size: 12px; }
.save-pill .spin {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--hairline); border-top-color: var(--ink-soft); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
.save-pill.on ~ .toast { bottom: calc(76px + var(--safe-b)); }

/* ---------- 空狀態 / 載入 ---------- */
.empty { text-align: center; color: var(--ink-mute); font-size: 13px; padding: 28px 12px; }
.empty .big { font-family: var(--font-serif); font-size: 15px; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.skeleton { height: 210px; border-radius: var(--radius); background: linear-gradient(90deg, var(--bg-veil), var(--bg-elev), var(--bg-veil)); background-size: 200% 100%; animation: sh 1.3s ease-in-out infinite; }
@keyframes sh { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

/* ---------- 底部彈窗 ---------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 50;
  background: oklch(0.2 0.005 60 / .38);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0 } }
.sheet {
  width: 100%; max-width: 560px;
  background: var(--bg); border-radius: 20px 20px 0 0;
  padding: 20px 18px calc(18px + var(--safe-b));
  animation: rise .22s cubic-bezier(.2,.7,.3,1);
  max-height: 88vh; overflow-y: auto;
}
@keyframes rise { from { transform: translateY(24px); opacity: .6 } }
.sheet h2 { margin: 0 0 4px; font-family: var(--font-serif); font-size: 18px; font-weight: 500; }
.sheet .lead { margin: 0 0 16px; font-size: 12px; color: var(--ink-mute); }

.kv { display: grid; grid-template-columns: 76px 1fr; gap: 8px 10px; font-size: 14px; margin-bottom: 16px; }
.kv dt { color: var(--ink-mute); font-size: 12px; padding-top: 2px; }
.kv dd { margin: 0; }
.kv dd.hi { font-family: var(--font-num); font-size: 16px; }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12px; color: var(--ink-mute); margin-bottom: 5px; letter-spacing: .06em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--bg-elev);
}
.field textarea { min-height: 62px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.btn-row { display: flex; gap: 10px; margin-top: 6px; }
.btn {
  flex: 1; padding: 13px 16px; border-radius: 11px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  font-size: 15px; letter-spacing: .04em;
}
.btn.ghost { background: transparent; color: var(--ink-soft); border-color: var(--hairline); }
.btn:disabled { opacity: .5; }
.btn.sm { flex: 0 0 auto; padding: 8px 14px; font-size: 13px; border-radius: 9px; }

.note-box {
  font-size: 12px; color: var(--ink-mute); line-height: 1.65;
  background: var(--bg-veil); border-radius: 10px; padding: 10px 12px; margin: 14px 0 4px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translateX(-50%);
  z-index: 90; max-width: 88vw;
  background: var(--ink); color: var(--bg);
  padding: 11px 18px; border-radius: 999px; font-size: 13px;
  box-shadow: 0 6px 24px oklch(0.2 0.005 60 / .22);
  animation: rise .2s ease;
}
.toast.err { background: oklch(0.45 0.13 25); }

/* ---------- 客服端專用 ---------- */
.admin-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding: 10px 12px;
  background: var(--bg-veil); border-radius: 11px; font-size: 12px; color: var(--ink-soft);
}
.admin-bar .who { font-weight: 500; }
.admin-bar .spacer { flex: 1; }
.tabs { display: flex; gap: 6px; margin-top: 14px; }
.tabs button {
  flex: 1; padding: 9px; border-radius: 9px; font-size: 14px;
  border: 1px solid var(--hairline); background: var(--bg-elev); color: var(--ink-soft);
}
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tabs button .badge {
  display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px;
  border-radius: 999px; background: var(--booked); color: #fff;
  font-family: var(--font-num); font-size: 11px; line-height: 18px;
}

.req {
  border: 1px solid var(--hairline-soft); border-radius: var(--radius);
  background: var(--bg-elev); padding: 13px 14px; margin-bottom: 10px;
}
.req.done { opacity: .55; }
.req .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.req .when { font-family: var(--font-num); font-size: 16px; }
.req .tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--booked-bg); color: var(--booked); }
.req .tag.done { background: var(--open-bg); color: var(--open); }
.req .tag.cancelled { background: var(--bg-veil); color: var(--ink-mute); }
.req .line { font-size: 13px; color: var(--ink-soft); margin-top: 5px; }
.req .line b { font-weight: 500; color: var(--ink); }
.req .acts { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; align-items: center; }
.req .chk { flex: 1 1 100%; font-size: 12px; color: var(--ink-mute); display: flex; align-items: center; gap: 6px; }

.login { max-width: 340px; margin: 14vh auto 0; padding: 0 4px; }
.login h1 { font-family: var(--font-serif); font-size: 22px; font-weight: 500; margin: 0 0 6px; }
.login p { font-size: 13px; color: var(--ink-mute); margin: 0 0 22px; }

.setup-msg {
  max-width: 460px; margin: 12vh auto; padding: 22px;
  border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--bg-elev);
  font-size: 14px; line-height: 1.8;
}
.setup-msg code { font-family: var(--font-num); background: var(--bg-veil); padding: 1px 6px; border-radius: 5px; font-size: 13px; }

/* ---------- 無法一鍵送出時的備援畫面 ---------- */
a.btn { display: block; text-align: center; text-decoration: none; }
.linkbtn {
  background: none; border: 0; padding: 12px 4px 0;
  font-size: 13px; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px;
}
.diag { margin: 12px 0 0; font-size: 11px; line-height: 1.5; color: var(--ink-mute); text-align: center; }

/* ---------- 客人端：可預約時段列表（一天一行，時間以 / 分隔） ---------- */
.avail { margin-top: 2px; }
.avail-row {
  display: grid; grid-template-columns: 58px 1fr; column-gap: 8px; align-items: baseline;
  padding: 0;
}
.avail-date {
  font-family: var(--font-num); font-size: 15px; font-weight: 500;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.avail-date .dow { margin-left: 4px; font-family: var(--font-sans); font-size: 11px; font-weight: 400; color: var(--ink-mute); }
.avail-times { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.avail-cell { display: inline-block; white-space: nowrap; }
.avail-time {
  background: none; border: 0; border-radius: 7px;
  padding: 6px 3px; margin: 0 -3px;
  font: inherit; font-size: 15px; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 4px;
}
.avail-time:active { background: var(--open-bg); color: var(--open); }
.avail-sep { color: var(--ink-mute); margin: 0 4px; }
/* 實測：5 個時段在 375px 以下會擠成兩行，窄螢幕改用 14px（360px 仍保留 12px 餘裕） */
@media (max-width: 389px) { .avail-time { font-size: 14px; } }

/* 確認視窗：不指定老師時選美睫師 */
.pick-staff { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-staff .chip { padding: 6px 12px; font-size: 13px; }
.pick-hint { margin-top: 6px; font-size: 11px; color: var(--ink-mute); }

/* ---------- ?debug=1 的載入明細 ---------- */
.debug {
  margin: 24px auto; max-width: 560px; padding: 12px 14px;
  border: 1px solid var(--hairline); border-radius: 10px; background: var(--bg-elev);
  font-family: var(--font-num); font-size: 11px; line-height: 1.9; color: var(--ink-soft);
}
.debug b { display: block; margin-bottom: 6px; font-family: var(--font-sans); font-size: 12px; color: var(--ink); }
.debug div { display: flex; justify-content: space-between; gap: 12px; }
.debug div span:first-child { color: var(--ink-mute); }

/* ---------- 客人端三步驟 ---------- */
.steps { display: flex; gap: 6px; margin-top: 14px; font-size: 11px; letter-spacing: .04em; color: var(--ink-mute); }
.steps span { flex: 1; text-align: center; padding: 7px 0; border-bottom: 2px solid var(--hairline-soft); white-space: nowrap; }
.steps span.on { color: var(--ink); border-color: var(--ink); font-weight: 500; }
.steps span.done { color: var(--ink-soft); border-color: var(--hairline); cursor: pointer; }
.summary {
  display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px;
  background: var(--bg-veil); border-radius: 10px; font-size: 13px;
}
.summary .edit { margin-left: auto; background: none; border: 0; padding: 0; font-size: 12px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.chips-wrap .chip.big { padding: 11px 18px; font-size: 15px; }

/* 分店卡片：照片＋店名三欄，選到的整張反白；「不指定店點」是下方一整條 */
.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.branch-card {
  padding: 0; border: 1px solid var(--hairline-soft); border-radius: 14px; overflow: hidden;
  background: var(--bg-elev); text-align: center; transition: border-color .15s, background .15s, color .15s;
}
.branch-card .ph { display: block; aspect-ratio: 8 / 7; background: var(--bg-veil); overflow: hidden; }
.branch-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.branch-card b { display: block; padding: 10px 4px 12px; font-size: 15px; font-weight: 500; letter-spacing: .04em; }
.branch-card[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.branch-any {
  display: block; width: 100%; margin-top: 10px; padding: 11px 14px; border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--bg-elev); color: var(--ink-soft); font-size: 15px; letter-spacing: .3em; text-indent: .3em; transition: background .15s, color .15s, border-color .15s;
}
.branch-any[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-row.next { margin-top: 22px; }

/* ---------- 第一頁：不指定店點 / 款式卡片 ---------- */
/* 第一頁固定置底的「下一步」 */
.sticky-next {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(10px + var(--safe-b));
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-top: 1px solid var(--hairline-soft);
}
.sticky-next .btn { display: block; width: 100%; max-width: 528px; margin: 0 auto; }
.page-pad { height: calc(76px + var(--safe-b)); }
/* 款式分類頁籤：往下捲到看不到「選擇服務」時貼在頁首正下方（--hdr-h 由 JS 量頁首高度） */
.cat-tabs {
  position: sticky; top: var(--hdr-h, 54px); z-index: 10;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -16px 10px; padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--hairline-soft);
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs button {
  flex: 0 0 auto; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 9px 10px; font-size: 13px; color: var(--ink-mute); white-space: nowrap;
}
.cat-tabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); font-weight: 500; }

/* 分類主圖（多張可左右滑）＋說明 */
.style-hero { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg-veil); aspect-ratio: 4 / 3; }
.style-hero[data-swipe] { touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.style-hero .track { display: flex; height: 100%; transition: transform .25s ease; will-change: transform; }
.style-hero .track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; pointer-events: none; }
.style-hero .count {
  position: absolute; right: 10px; bottom: 10px; font-family: var(--font-num); font-size: 11px; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff;
}
.style-hero .dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.style-hero .dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .55); }
.style-hero .dots i.on { background: #fff; }
.style-hero-cap { padding: 12px 2px 14px; }
.style-hero-cap .ttl { display: flex; align-items: center; gap: 8px; }
.style-hero-cap .ttl b { font-size: 20px; font-weight: 500; letter-spacing: .04em; }
.style-hero-cap .note { margin: 6px 0 0; font-size: 13px; color: var(--ink-mute); line-height: 1.7; white-space: pre-line; }
.style-hero-cap .badge, .style-row .badge {
  font-style: normal; font-family: var(--font-num); font-size: 10px; letter-spacing: .08em; vertical-align: middle;
  padding: 2px 7px; border-radius: 999px; background: var(--ink); color: var(--bg);
}
.style-hero-cap .badge { background: #e8776f; color: #fff; }

/* 款式列表（純文字） */
.style-list { display: flex; flex-direction: column; gap: 8px; }
.style-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; text-align: left;
  border: 1px solid var(--hairline-soft); border-radius: 12px; background: var(--bg-elev);
  transition: border-color .15s, box-shadow .15s;
}
.style-row .tx { flex: 1 1 auto; min-width: 0; }
.style-row .tx b { display: block; font-size: 15px; font-weight: 500; }
.style-row .tx small { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-mute); line-height: 1.4; }
.style-row .price { flex: 0 0 auto; font-style: normal; font-family: var(--font-num); font-size: 13px; color: var(--ink); letter-spacing: .02em; }
.style-row .chev { flex: 0 0 auto; font-size: 18px; color: var(--ink-mute); }
.style-row[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.style-row[aria-pressed="true"] .chev { color: var(--ink); }

/* ---------- 第二頁：美睫師卡片 ---------- */
.any-card {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 12px;
  padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--bg-elev); text-align: left;
}
.any-card .txt b { display: block; font-size: 15px; font-weight: 500; }
.any-card .txt small { font-size: 12px; color: var(--ink-mute); }
.any-card .chev { margin-left: auto; font-size: 18px; color: var(--ink-mute); }
.staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.staff-card {
  padding: 0 0 12px; border: 1px solid var(--hairline-soft); border-radius: 14px; overflow: hidden;
  background: var(--bg-elev); text-align: left; display: flex; flex-direction: column;
}
.staff-card .ava { display: block; aspect-ratio: 1 / 1; background: var(--bg-veil); overflow: hidden; }
.staff-card .ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-card .ava .ini { display: grid; place-items: center; height: 100%; font-family: var(--font-serif); font-size: 40px; color: var(--ink-mute); }
.staff-card .nm { display: block; padding: 10px 12px 0; }
.staff-card .nm b { font-size: 15px; font-weight: 500; }
.staff-card .nm small { display: block; font-size: 11px; color: var(--ink-mute); margin-top: 1px; }
.staff-card .intro { display: block; padding: 4px 12px 0; font-size: 11px; color: var(--ink-soft); line-height: 1.5; }
.staff-card .tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 7px 12px 0; }
.staff-card .memo { display: block; margin: 8px 12px 0; padding: 7px 0 0; border-top: 1px solid var(--ink); font-size: 11px; color: var(--ink-soft); line-height: 1.5; white-space: pre-line; }
.staff-card .tags i { font-style: normal; font-size: 10px; font-weight: 500; padding: 3px 8px; border-radius: 999px; background: #F5F4EF; color: var(--ink); }
.staff-card .tags i.hit { background: var(--ink); color: var(--bg); }
.staff-card .fee { display: block; padding: 8px 12px 0; font-size: 12px; color: var(--ink); margin-top: auto; }

/* ---------- 確認視窗：需要卸睫 切換鈕 ---------- */
/* 選擇器要壓過 .field label 的 display:block / 12px / margin */
.field label.opt-toggle {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; margin: 0; letter-spacing: 0;
  padding: 9px 14px 9px 11px; border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--bg-elev); font-size: 14px; color: var(--ink-soft); user-select: none;
}
.opt-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-toggle .box {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--hairline);
  display: grid; place-items: center; font-size: 12px; color: var(--bg); transition: background .15s, border-color .15s;
}
.opt-toggle .box::after { content: '✓'; opacity: 0; }
.field label.opt-toggle:has(input:checked) { border-color: var(--ink); color: var(--ink); }
.opt-toggle:has(input:checked) .box { background: var(--ink); border-color: var(--ink); }
.opt-toggle:has(input:checked) .box::after { opacity: 1; }

/* 光固化詢問小視窗 */
.btn-col { display: grid; gap: 10px; margin-top: 14px; }
.btn-col .btn { width: 100%; }
.linkish { display: block; margin: 14px auto 0; padding: 4px 8px; background: none; border: 0; color: var(--ink-mute); font-size: 13px; text-decoration: underline; }

/* 分類統一價格：分類名稱右邊 */
.style-hero-cap .ttl .price { margin-left: auto; font-style: normal; font-family: var(--font-num); font-size: 15px; color: var(--ink); letter-spacing: .02em; }

/* 「請先選擇分店」小視窗：分店四顆並排 */
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.pick-grid button { padding: 11px 2px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--bg-elev); color: var(--ink); font-size: 13px; white-space: nowrap; }
.pick-grid button:active { background: var(--ink); color: var(--bg); }
