:root {
  color-scheme: light;
  --ink: #2c2225;
  --muted: #74666b;
  --paper: #fffaf8;
  --rose: #b75d72;
  --rose-dark: #873f52;
  --blush: #f6e5e7;
  --line: #ead9db;
  --green: #2f765d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; }
a { color: inherit; }
.test-banner { padding: .55rem 1rem; color: white; background: #5e2533; text-align: center; font-size: .82rem; letter-spacing: .04em; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem clamp(1rem, 5vw, 5rem); border-bottom: 1px solid var(--line); background: rgba(255,250,248,.95); }
.brand { color: var(--rose-dark); font-family: Georgia, serif; font-size: 2rem; font-weight: 700; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 1rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--rose-dark); }
.page-shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0 5rem; }
.hero { display: grid; grid-template-columns: 1.4fr .8fr; gap: 2rem; align-items: center; min-height: 440px; }
h1, h2, h3 { line-height: 1.18; margin-top: 0; }
h1 { max-width: 760px; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(2.5rem, 6vw, 5.2rem); font-weight: 500; letter-spacing: -.035em; }
.lede { max-width: 670px; color: var(--muted); font-size: 1.12rem; }
.eyebrow { margin-bottom: .65rem; color: var(--rose-dark); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.button { display: inline-block; border: 0; border-radius: 999px; padding: .8rem 1.2rem; color: white; background: var(--rose); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--rose-dark); }
.button.secondary { color: var(--rose-dark); background: var(--blush); }
.button:disabled { cursor: not-allowed; opacity: .5; }
.status-card, .panel, .service-card, .auth-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 14px 45px rgba(70,35,43,.06); }
.pill { display: inline-block; border-radius: 999px; padding: .25rem .65rem; color: var(--rose-dark); background: var(--blush); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
dl div, .row { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
dt, .row span { color: var(--muted); }
dd { margin: 0; text-align: right; font-weight: 700; }
.section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin: 4rem 0 1.5rem; }
.section-heading > p { max-width: 520px; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.service-card h3 { margin: 1rem 0 .25rem; }
.service-card p { color: var(--muted); }
.duration { color: var(--rose-dark) !important; font-family: Georgia, serif; font-size: 2.25rem; }
.duration small { font-family: inherit; font-size: .9rem; }
.blocked-panel, .info-panel, .success-panel { margin-top: 2rem; padding: 1.5rem; border-radius: 20px; }
.blocked-panel { border: 1px dashed var(--rose); background: var(--blush); }
.info-panel { border: 1px solid var(--line); background: white; }
.success-panel { border: 1px solid #a5cfbd; background: #eaf7f1; }
.dashboard-grid, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem; margin-top: 1rem; }
.slot-list { display: grid; gap: 1rem; }
.date-strip { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: .5rem; margin-bottom: 1.25rem; }
.date-chip { display: grid; gap: .1rem; padding: .6rem; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: white; text-align: center; font-size: .75rem; }
.date-chip.available { color: var(--green); border-color: #a5cfbd; background: #eaf7f1; }
.slot-card { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.slot-services { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; }
.calendar-grid { display: grid; grid-template-columns: minmax(110px,.5fr) repeat(2,minmax(0,1fr)); gap: .65rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.calendar-grid > * { padding: .35rem; }
.calendar-head { color: var(--rose-dark); background: var(--blush); border-radius: 12px; }
.schedule-panel { margin-top: 1rem; }
.result-card { max-width: 760px; margin: 2rem auto; }
.auth-card { width: min(500px, 100%); margin: 2rem auto; }
form p { display: grid; gap: .35rem; }
input, select, textarea { width: 100%; border: 1px solid #cdbfc2; border-radius: 10px; padding: .75rem; color: var(--ink); background: white; font: inherit; }
.notice { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 12px; background: var(--blush); }
.notice.error { color: #7d273a; background: #fbe8eb; }
.notice.success { color: var(--green); background: #eaf7f1; }
.mono { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; }
footer { padding: 2rem; color: var(--muted); border-top: 1px solid var(--line); text-align: center; }
ul.errorlist { padding-left: 1.2rem; color: #9b2d47; }
@media (max-width: 760px) {
  .site-header, .section-heading { align-items: flex-start; flex-direction: column; }
  .hero, .dashboard-grid, .form-grid { grid-template-columns: 1fr; }
  .slot-card { align-items: stretch; flex-direction: column; }
  .slot-services { justify-content: flex-start; }
  .date-strip { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .hero { min-height: auto; }
  .page-shell { padding-top: 2rem; }
  h1 { font-size: 2.6rem; }
}
