:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.985 0.006 343);
  --surface-strong: oklch(0.957 0.026 343);
  --ink: oklch(0.23 0.032 320);
  --muted: oklch(0.48 0.035 320);
  --line: oklch(0.89 0.018 340);
  --pink: oklch(0.60 0.20 343);
  --pink-dark: oklch(0.49 0.19 343);
  --plum: oklch(0.31 0.10 320);
  --violet: oklch(0.48 0.16 315);
  --success: oklch(0.57 0.14 155);
  --danger: oklch(0.56 0.20 28);
  --radius: 14px;
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid oklch(0.75 0.14 343 / .45); outline-offset: 2px; }
.app-shell { width: min(100%, 540px); min-height: 100dvh; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 20px calc(92px + var(--safe-bottom)); }
.topbar, .intro-row, .panel-title-row, .calendar-header, .settings-heading, .form-row, .lookup-row, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar { margin-bottom: 30px; }
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--bg); background: var(--pink); font-weight: 800; font-size: 22px; font-style: italic; }
.eyebrow, .section-kicker { margin: 0 0 4px; color: var(--pink-dark); font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .07em; }
.brand-lockup h1 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.profile-button { width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--plum); background: var(--surface-strong); font-weight: 800; }
.intro-row { align-items: end; margin-bottom: 18px; }.intro-row.compact { align-items: center; }
h2, h3 { margin: 0; letter-spacing: -.035em; text-wrap: balance; }h2 { font-size: 28px; line-height: 1.1; }h3 { font-size: 18px; }.open-status, .admin-badge, .wechat-tag { flex: 0 0 auto; padding: 7px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }.open-status { color: var(--success); background: oklch(0.94 0.05 155); }.open-status i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; }.admin-badge { color: var(--plum); background: oklch(0.93 0.035 320); }.wechat-tag { color: var(--pink-dark); background: var(--surface-strong); }
button.wechat-tag { border: 0; }
button.wechat-tag:active { background: var(--pink); color: var(--bg); }
.booking-panel, .identity-panel, .calendar-card, .block-card, .settings-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }.booking-panel { display: grid; gap: 25px; }.identity-panel, .calendar-card, .block-card, .settings-card { margin-top: 16px; }.field-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 800; }.field-heading > span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: var(--bg); background: var(--plum); font-size: 11px; }.time-heading small { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 500; }.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.service-option { min-height: 76px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--bg); text-align: left; transition: background .18s ease, border-color .18s ease, transform .18s ease; }.service-option strong { display: block; font-size: 16px; }.service-option small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }.service-option[aria-pressed="true"] { border-color: var(--pink); background: var(--surface-strong); }.service-option[aria-pressed="true"] strong { color: var(--pink-dark); }
.date-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }.date-option { min-height: 62px; padding: 7px 2px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: transparent; }.date-option span, .date-option strong { display: block; }.date-option span { font-size: 11px; }.date-option strong { margin-top: 4px; font-size: 16px; }.date-option[aria-selected="true"] { color: var(--bg); background: var(--plum); }.date-option.rest-day { color: var(--danger); }.date-option.rest-day::after { content: "休"; font-size: 10px; }.slot-legend { display: flex; gap: 13px; margin: -2px 0 12px; color: var(--muted); font-size: 11px; }.slot-legend span { display: flex; align-items: center; gap: 4px; }.slot-legend b { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-strong); }.slot-legend span + span b { background: var(--line); }.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }.time-option { min-height: 42px; border: 1px solid var(--line); border-radius: 9px; color: var(--plum); background: var(--bg); font-size: 13px; font-weight: 700; }.time-option.selected { border-color: var(--pink); color: var(--bg); background: var(--pink); }.time-option:disabled { border-color: transparent; color: oklch(0.72 0.02 320); background: var(--surface); text-decoration: line-through; cursor: not-allowed; }.rest-notice { margin: 0; color: var(--danger); font-size: 13px; }.hidden { display: none; }
.panel-title-row { align-items: start; margin-bottom: 14px; }.form-row { padding: 11px 0; border-bottom: 1px solid var(--line); }.form-row label { flex: 0 0 96px; font-size: 14px; font-weight: 700; }.form-row input, .lookup-row input { min-width: 0; width: 100%; border: 0; color: var(--ink); background: transparent; text-align: right; }.form-row input::placeholder, .lookup-row input::placeholder { color: oklch(0.66 0.025 320); }.form-help, .settings-card > p { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.sticky-action { position: sticky; bottom: 14px; display: flex; align-items: center; gap: 12px; margin: 18px -4px 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: oklch(1 0 0 / .96); backdrop-filter: blur(10px); }.selection-summary { min-width: 0; flex: 1; color: var(--muted); font-size: 12px; line-height: 1.4; }.primary-button, .secondary-button, .danger-button, .ghost-button, .text-button { min-height: 44px; border-radius: 10px; font-weight: 800; }.primary-button { flex: 0 0 auto; padding: 0 16px; border: 1px solid var(--pink); color: var(--bg); background: var(--pink); }.primary-button:disabled { border-color: var(--line); color: oklch(0.65 0.025 320); background: var(--surface); cursor: not-allowed; }.secondary-button { padding: 0 14px; border: 1px solid var(--plum); color: var(--plum); background: var(--bg); }.danger-button { padding: 0 14px; border: 1px solid var(--danger); color: var(--bg); background: var(--danger); }.ghost-button, .text-button { padding: 0; border: 0; color: var(--pink-dark); background: transparent; }.ghost-button { width: 100%; margin-top: 14px; border: 1px solid var(--line); color: var(--muted); }.text-button { min-height: 36px; }
.bottom-nav { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: 7px; padding: 8px 20px var(--safe-bottom); border-top: 1px solid var(--line); background: oklch(1 0 0 / .95); backdrop-filter: blur(12px); }.nav-item { display: grid; place-items: center; gap: 2px; min-width: 78px; min-height: 48px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 11px; }.nav-icon { font-size: 21px; line-height: .8; }.nav-item.active { color: var(--pink-dark); background: var(--surface-strong); font-weight: 800; }.screen { display: none; }.screen.active { display: block; animation: reveal .2s ease-out; }.booking-list { display: grid; gap: 10px; }.booking-item { padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }.booking-item-top, .booking-item-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.booking-item time { color: var(--pink-dark); font-size: 13px; font-weight: 800; }.booking-item h3 { margin: 10px 0 4px; }.booking-item p { margin: 0; color: var(--muted); font-size: 13px; }.booking-item-actions { justify-content: flex-end; margin-top: 14px; }.small-button { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--plum); background: var(--bg); font-size: 12px; font-weight: 700; }.small-button.danger { color: var(--danger); }.empty-state { padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }.empty-state h3 { margin-bottom: 7px; color: var(--ink); }.lookup-panel { margin-top: 22px; }.lookup-panel h3 { margin-bottom: 14px; }.lookup-row { padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 11px; }.lookup-row input { text-align: left; }
.week-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 14px; }.summary-cell { padding: 12px 10px; border-radius: 11px; background: var(--surface); }.summary-cell strong, .summary-cell span { display: block; }.summary-cell strong { font-size: 20px; }.summary-cell span { margin-top: 2px; color: var(--muted); font-size: 11px; }.calendar-header, .settings-heading { align-items: start; margin-bottom: 15px; }.calendar-header span, .settings-heading > span { color: var(--muted); font-size: 11px; }.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 14px; }.calendar-day { min-height: 54px; border: 0; border-radius: 8px; color: var(--muted); background: var(--surface); }.calendar-day span, .calendar-day strong { display: block; }.calendar-day span { font-size: 10px; }.calendar-day strong { margin-top: 3px; font-size: 14px; }.calendar-day.active { color: var(--bg); background: var(--plum); }.calendar-day.rest { color: var(--danger); }.calendar-agenda { display: grid; gap: 8px; }.agenda-item { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }.agenda-item:last-child { border-bottom: 0; }.agenda-item time { color: var(--pink-dark); font-size: 12px; font-weight: 800; white-space: nowrap; }.agenda-item h4, .agenda-item p { margin: 0; }.agenda-item h4 { font-size: 14px; }.agenda-item p { margin-top: 3px; color: var(--muted); font-size: 12px; }.agenda-empty { margin: 6px 0; color: var(--muted); font-size: 13px; }.rest-day-list { display: grid; gap: 1px; margin-top: 14px; }.rest-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }.rest-row:last-child { border-bottom: 0; }.rest-row small { display: block; margin-top: 3px; color: var(--muted); }.switch { position: relative; display: inline-flex; width: 46px; height: 28px; flex: 0 0 auto; }.switch input { width: 0; height: 0; opacity: 0; }.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .18s ease; }.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); transition: transform .18s ease; }.switch input:checked + span { background: var(--pink); }.switch input:checked + span::after { transform: translateX(18px); }.switch input:focus-visible + span { outline: 3px solid oklch(0.75 0.14 343 / .45); outline-offset: 2px; }
.toast { position: fixed; z-index: 30; right: 20px; bottom: calc(86px + var(--safe-bottom)); left: 20px; max-width: 500px; margin: auto; padding: 12px 14px; border-radius: 10px; color: var(--bg); background: var(--plum); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; text-align: center; font-size: 13px; font-weight: 700; }.toast.show { opacity: 1; transform: translateY(0); }.confirm-dialog { width: min(calc(100% - 40px), 390px); padding: 0; border: 0; border-radius: 14px; color: var(--ink); }.confirm-dialog::backdrop { background: oklch(.15 0 .0 / .32); }.confirm-dialog form { padding: 22px; }.confirm-dialog h3 { margin: 8px 0; }.confirm-dialog form > p:not(.section-kicker) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }.dialog-actions { justify-content: flex-end; margin-top: 20px; }
@keyframes reveal { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 680px) { body { background: oklch(.975 .008 343); }.app-shell { margin-top: 20px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }.bottom-nav { left: 50%; width: min(100%, 540px); transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; } }
@media (hover: hover) { .service-option:hover, .time-option:not(:disabled):hover { border-color: var(--pink); transform: translateY(-1px); }.primary-button:not(:disabled):hover { background: var(--pink-dark); }.nav-item:hover { color: var(--pink-dark); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.agenda-item.blocked time, .agenda-item.blocked h4 { color: var(--violet); }
.agenda-notice { margin: 0; padding: 9px 10px; border-radius: 8px; color: var(--danger); background: oklch(.96 .035 28); font-size: 12px; }
.block-card > p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.block-form { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 8px; }.block-form label { min-width: 0; }.block-form span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }.block-form select, .block-add-row input { width: 100%; min-width: 0; min-height: 42px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--bg); padding: 0 8px; }.block-add-row { display: flex; gap: 8px; margin-top: 10px; }.block-add-row input::placeholder { color: oklch(.66 .025 320); }.block-add-row .secondary-button { flex: 0 0 auto; }.block-list { display: grid; gap: 7px; margin-top: 14px; }.block-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }.block-item:last-child { border-bottom: 0; }.block-item strong, .block-item span { display: block; }.block-item strong { font-size: 13px; }.block-item span { margin-top: 3px; color: var(--muted); font-size: 11px; }.block-empty { margin: 0; color: var(--muted); font-size: 12px; }
