:root {
  --ink: #142a33;
  --ink-soft: #435962;
  --muted: #6b7d84;
  --line: #d9e4e2;
  --bg: #f5f8f7;
  --surface: #ffffff;
  --teal: #0b6d68;
  --teal-dark: #074f4c;
  --teal-soft: #e3f2ef;
  --gold: #b68a3e;
  --danger: #a33a3a;
  --danger-soft: #fbeceb;
  --shadow: 0 10px 30px rgba(16, 48, 55, 0.06);
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.3;
  margin: 0 0 0.5em;
  font-weight: 650;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.8rem, 3.4vw, 2.65rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin-top: 0; }
small { font-size: 0.85em; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.site-main { padding: 34px 0 64px; min-height: 62vh; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-top {
  display: flex; align-items: center; gap: 24px; padding: 18px 0 14px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; background: var(--teal); color: #fff;
  font-family: Georgia, serif; font-size: 1.55rem; font-weight: 700;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; letter-spacing: 0.02em; }
.brand-text small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.03em; }

.search { display: flex; gap: 8px; margin-left: auto; }
.search input {
  width: 230px; border: 1px solid var(--line); background: var(--bg);
  border-radius: 999px; padding: 9px 16px; font: inherit; color: var(--ink);
}
.search input:focus { outline: 2px solid var(--teal-soft); border-color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: 14px; font-size: 0.92rem; }
.accent-link { color: var(--teal); }
.account-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.muted-link { color: var(--ink-soft); }
.dot-badge {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 999px; background: var(--gold); color: #fff;
  font-size: 0.68rem; line-height: 1;
}
.inline-form { display: inline; margin: 0; }
.linklike {
  border: 0; background: none; padding: 0; font: inherit; color: var(--ink-soft);
  cursor: pointer;
}
.linklike:hover { color: var(--teal); text-decoration: underline; }
.linklike.danger { color: var(--danger); }

.main-nav { border-top: 1px solid var(--line); background: #fbfdfc; }
.nav-inner { display: flex; gap: 30px; padding: 0; }
.nav-inner a {
  display: inline-block; padding: 12px 0 10px; color: var(--ink-soft);
  font-size: 0.95rem; border-bottom: 2px solid transparent;
}
.nav-inner a:hover { color: var(--teal); border-bottom-color: var(--teal); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 999px; padding: 10px 20px;
  font: inherit; font-weight: 600; font-size: 0.94rem; cursor: pointer;
  text-decoration: none; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); background: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #862d2d; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.text-link { font-size: 0.9rem; font-weight: 600; white-space: nowrap; }

/* Common blocks */
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.7rem;
  font-weight: 700; color: var(--teal); margin-bottom: 0.7em;
}
.lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 64ch; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.86rem; }
.small { font-size: 0.82rem; }
.fee { color: var(--ink-soft); font-size: 0.85rem; }

.crumbs {
  display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.82rem;
  color: var(--muted); margin-bottom: 22px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--teal); }

.page-head { margin-bottom: 30px; }
.page-head h1 { margin-bottom: 0.25em; }
.split-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.split-head > div { flex: 1; }

.section { margin: 44px 0; }
.section-compact { margin: 26px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 18px;
}
.section-head h2 { margin-bottom: 0; }
.section-tint {
  background: var(--teal-soft); border-radius: 20px; padding: 30px;
  margin-left: -30px; margin-right: -30px;
}
.compact-head { margin-bottom: 12px; }
.block-title { margin-bottom: 14px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  min-width: 0;
}
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.soft-card { background: #fbfdfc; box-shadow: none; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 34px; align-items: stretch; padding: 22px 0 10px;
}
.hero-copy h1 { max-width: 16ch; margin-bottom: 0.35em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-stats {
  display: flex; gap: 34px; margin: 30px 0 0; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-stats div { margin: 0; }
.hero-stats dt { color: var(--muted); font-size: 0.82rem; }
.hero-stats dd { margin: 2px 0 0; font-family: Georgia, serif; font-size: 1.55rem; color: var(--teal); }
.hero-card {
  background: var(--ink); color: #e8f1ee; border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.hero-card h2 { color: #fff; }
.hero-card .muted { color: #a9c1ba; }
.hero-card .info-list dt { color: #9ab5ae; }
.hero-card .info-list dd { color: #f2f8f6; }
.hero-card .hint { color: #a9c1ba; margin-top: 18px; margin-bottom: 0; }

/* Info lists */
.info-list { margin: 0; }
.info-list > div, .mini-info > div {
  display: flex; gap: 14px; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.info-list > div:last-child, .mini-info > div:last-child { border-bottom: 0; }
.info-list dt, .mini-info dt { color: var(--muted); font-size: 0.86rem; flex: none; }
.info-list dd, .mini-info dd { margin: 0; text-align: right; }
.hero-card .info-list > div { border-bottom-color: rgba(255,255,255,0.15); }

/* Department/doctor cards */
.dept-card { display: flex; flex-direction: column; color: var(--ink); }
.dept-card:hover { color: var(--ink); text-decoration: none; border-color: var(--teal); }
.dept-category {
  display: inline-block; align-self: flex-start; font-size: 0.72rem;
  color: var(--teal); background: var(--teal-soft); border-radius: 999px;
  padding: 2px 10px; margin-bottom: 12px;
}
.dept-card p { color: var(--ink-soft); font-size: 0.92rem; }
.dept-card .text-link { margin-top: auto; }
.mini-info { margin: 6px 0 14px; }
.mini-info > div { padding: 5px 0; }
.mini-info dt, .mini-info dd { font-size: 0.82rem; }

.doctor-card { display: flex; gap: 18px; }
.doctor-card.compact { display: block; }
.doctor-avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal-soft);
  color: var(--teal-dark); font-size: 1.45rem; font-weight: 700;
  font-family: Georgia, serif;
}
.doctor-card.compact .doctor-avatar { margin-bottom: 14px; }
.doctor-body { min-width: 0; }
.doctor-body h3 { margin-bottom: 0.2em; }
.doctor-body h3 a { color: var(--ink); }
.doctor-body p { color: var(--ink-soft); font-size: 0.92rem; }
.specialty { color: var(--teal-dark) !important; font-size: 0.9rem; }

/* Schedule */
.schedule-list { display: flex; flex-direction: column; gap: 10px; }
.schedule-day {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 18px;
}
.schedule-date { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.schedule-date strong { font-size: 1.05rem; }
.schedule-date span { color: var(--muted); font-size: 0.82rem; }
.schedule-slots { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.slot-chip {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
  font-size: 0.84rem; background: #fff;
}
.slot-chip.is-disabled { opacity: 0.55; background: #f7f9f8; }
.slot-time { font-weight: 600; }
.slot-room { color: var(--muted); }
.slot-state { color: var(--muted); }
.slot-state.is-open { color: var(--teal); font-weight: 600; }
.mini-link { font-size: 0.82rem; font-weight: 600; }

/* Profile */
.profile-head {
  display: flex; gap: 26px; align-items: flex-start; padding: 6px 0 22px;
  border-bottom: 1px solid var(--line);
}
.profile-avatar {
  flex: none; width: 108px; height: 108px; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal); color: #fff;
  font-family: Georgia, serif; font-size: 2.5rem;
}
.profile-copy h1 { margin-bottom: 0.2em; }
.profile-copy h1 small { font-size: 0.42em; color: var(--muted); font-weight: 500; margin-left: 8px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--ink-soft); font-size: 0.9rem; margin: 14px 0 0; }
.contact-card { width: 320px; flex: none; }

/* Booking */
.booking-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.75fr); gap: 24px; }
.booking-main { padding: 0; overflow: hidden; }
.form-block { padding: 24px; border-bottom: 1px solid var(--line); }
.form-block:last-of-type { border-bottom: 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.block-head h2 { margin: 0; font-size: 1.08rem; }
.date-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin;
}
.date-tab {
  flex: none; min-width: 92px; display: flex; flex-direction: column;
  gap: 1px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; color: var(--ink-soft); background: #fff;
}
.date-tab:hover { border-color: var(--teal); text-decoration: none; color: var(--teal); }
.date-tab.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.date-tab strong { font-size: 0.95rem; }
.date-tab span { font-size: 0.78rem; }
.date-tab small { font-size: 0.72rem; opacity: 0.85; }

.slot-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.slot-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
  cursor: pointer; background: #fff;
}
.slot-option:hover { border-color: var(--teal); }
.slot-option.is-disabled { opacity: 0.5; cursor: not-allowed; background: #f7f9f8; }
.slot-option input { margin: 0; accent-color: var(--teal); }
.slot-option-main { display: flex; flex-direction: column; flex: 1; }
.slot-option-main small, .slot-option-side small { color: var(--muted); font-size: 0.76rem; }
.slot-option-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

.booking-side { display: flex; flex-direction: column; gap: 16px; }
.booking-side h2 small { font-size: 0.55em; color: var(--muted); font-weight: 400; }

.checkbox-line {
  display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem;
  color: var(--ink-soft); cursor: pointer;
}
.checkbox-line input { margin-top: 3px; accent-color: var(--teal); flex: none; }
.form-actions { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: #fbfdfc; }

.rule-list { margin: 0; padding-left: 1.15em; color: var(--ink-soft); font-size: 0.88rem; }
.rule-list li { margin-bottom: 7px; }

/* Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab {
  padding: 10px 16px; color: var(--ink-soft); border-bottom: 2px solid transparent;
  font-size: 0.94rem;
}
.tab:hover { color: var(--teal); text-decoration: none; }
.tab.is-active { color: var(--teal); border-bottom-color: var(--teal); font-weight: 600; }
.tab span {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px;
  border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark);
  font-size: 0.74rem; text-align: center;
}

/* Appointment */
.appointment-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 26px;
}
.appointment-head h1 { margin-bottom: 0.2em; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr); gap: 22px; }
.detail-card h2 { font-size: 1.15rem; }
.detail-list { margin: 0; }
.detail-list > div {
  display: flex; gap: 18px; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 0.88rem; flex: none; }
.detail-list dd { margin: 0; text-align: right; }
.status-line { font-size: 1.3rem; font-weight: 650; }
.status-line.status-booked { color: var(--teal); }
.status-line.status-cancelled { color: var(--muted); }
.status-line.status-completed { color: var(--gold); }
.notice { background: var(--danger-soft); color: var(--danger); padding: 10px 12px; border-radius: 8px; font-size: 0.9rem; }

.appointment-list { display: flex; flex-direction: column; gap: 12px; }
.appointment-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; }
.appointment-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.appointment-title h2 { margin: 0; font-size: 1.1rem; }
.appointment-title h2 a { color: var(--ink); }
.appointment-title h2 small { color: var(--muted); font-size: 0.68em; font-weight: 400; }
.appointment-main > p { margin: 4px 0 8px; font-size: 0.86rem; }
.appointment-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-soft); font-size: 0.86rem; }
.appointment-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.appointment-actions form { margin: 0; }

.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; white-space: nowrap;
}
.status-booked { background: var(--teal-soft); color: var(--teal-dark); }
.status-cancelled { background: #eef1f0; color: #6b7d84; }
.status-completed { background: #f7efdc; color: #8a6525; }
.status-no_show { background: #f4e9e7; color: #8a4b42; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table th { background: #fbfdfc; color: var(--muted); font-weight: 600; font-size: 0.8rem; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td form { margin: 0; }

/* Account */
.account-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card {
  display: flex; flex-direction: column; gap: 2px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px;
  color: var(--ink);
}
.stat-card:hover { border-color: var(--teal); color: var(--ink); text-decoration: none; }
.stat-card span { color: var(--muted); font-size: 0.84rem; }
.stat-card strong { font-family: Georgia, serif; font-size: 1.8rem; color: var(--teal); line-height: 1.2; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.7fr); gap: 20px; }
.next-appointment .next-time { color: var(--teal); font-weight: 600; margin-bottom: 0.4em; }
.next-appointment h3 { margin-bottom: 0.3em; }
.next-appointment h3 small { color: var(--muted); font-size: 0.72em; font-weight: 400; }
.notification-list { list-style: none; margin: 0; padding: 0; }
.notification-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.notification-list li:last-child { border-bottom: 0; }
.notification-list strong { display: block; font-size: 0.94rem; }
.notification-list p { margin: 2px 0; color: var(--ink-soft); font-size: 0.85rem; }
.notification-list small { color: var(--muted); }
.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.quick-link {
  display: flex; flex-direction: column; gap: 3px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink);
}
.quick-link:hover { border-color: var(--teal); color: var(--ink); text-decoration: none; }
.quick-link span { color: var(--muted); font-size: 0.82rem; }

/* Patients */
.patients-layout { align-items: start; }
.patient-list { display: flex; flex-direction: column; gap: 12px; }
.patient-card { padding: 18px 20px; }
.patient-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.patient-head h3 { margin: 0 0 2px; }
.patient-head p { margin: 0; font-size: 0.86rem; }
.patient-card .mini-info { margin: 12px 0 0; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: #eef1f0; color: var(--ink-soft); font-size: 0.72rem; font-weight: 600;
}
.badge-accent { background: var(--teal-soft); color: var(--teal-dark); }
.form-card { position: sticky; top: 18px; }
.form-grid { gap: 12px; }

/* Auth */
.auth-layout {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 34px; align-items: start; max-width: 920px; margin: 20px auto;
}
.auth-layout.narrow { grid-template-columns: minmax(0, 540px); justify-content: center; }
.auth-card { padding: 30px; }
.auth-card h1 { font-size: 1.8rem; }
.auth-aside { padding: 18px 6px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 0.88rem; }
.stack-form { display: flex; flex-direction: column; gap: 14px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 2px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 13px; font: inherit; color: var(--ink); background: #fff;
}
.input:focus, .select:focus, .textarea:focus {
  outline: 2px solid var(--teal-soft); border-color: var(--teal);
}
.input:disabled, .select:disabled { background: #f4f7f6; }
.checkbox { width: 18px; height: 18px; accent-color: var(--teal); }
.field-error, .errorlist { color: var(--danger); font-size: 0.82rem; margin: 2px 0 0; padding-left: 1.1em; }
.errorlist { list-style: disc; }
.field-error ul { margin: 2px 0 0; padding-left: 1.1em; }
.filter-bar {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px;
}
.field-inline { min-width: 180px; margin: 0; }
.field-inline input, .field-inline select { min-width: 180px; }
.form-grid .field { margin: 0; }

/* Alerts */
.flash-stack { margin-top: 18px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 12px; border: 1px solid transparent; }
.alert-success { background: #e7f3ed; border-color: #c5e3d6; color: #225b45; }
.alert-error, .alert-danger { background: var(--danger-soft); border-color: #efcfcc; color: #8b3232; }
.alert-info { background: #eaf1f5; border-color: #d3e1e9; color: #2f5668; }
.alert-warning { background: #f8f1e1; border-color: #eddfc0; color: #7a5a1c; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps span { display: inline-block; font-family: Georgia, serif; color: var(--gold); font-size: 0.9rem; margin-bottom: 8px; }
.steps h3 { font-size: 1rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }

.notice-band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 26px 28px;
}
.notice-band h2 { font-size: 1.25rem; }
.notice-band p { color: var(--ink-soft); }
.plain-list { margin: 0; padding-left: 1.15em; color: var(--ink-soft); font-size: 0.92rem; }
.plain-list li { margin-bottom: 6px; }

/* Empty/error/prose */
.empty-state {
  grid-column: 1 / -1; background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 28px; color: var(--muted); text-align: center;
}
.empty-state.large { padding: 50px 24px; }
.empty-state.large h2 { color: var(--ink); margin-top: 0; }
.error-page { max-width: 720px; margin: 40px auto 60px; text-align: center; }
.error-code { font-family: Georgia, serif; font-size: 4rem; color: var(--teal); margin: 0 0 0.2em; line-height: 1; }
.error-page .hero-actions { justify-content: center; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { margin-bottom: 0.5em; }
.prose h2 { margin-top: 1.8em; font-size: 1.25rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d8d4; margin-top: 40px; }
.footer-inner { padding: 28px 0; display: flex; flex-direction: column; gap: 10px; }
.copyright { margin: 0; font-size: 0.85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: #d7e5e1; font-size: 0.85rem; }
.disclaimer { margin: 0; color: #8fa8a2; font-size: 0.78rem; }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-stats, .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-layout, .detail-grid, .account-grid { grid-template-columns: 1fr; }
  .form-card { position: static; }
  .split-head { flex-direction: column; }
  .contact-card { width: 100%; }
}

@media (max-width: 760px) {
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .header-top { flex-wrap: wrap; gap: 12px; padding-top: 14px; }
  .brand-text small { font-size: 0.66rem; }
  .search { order: 4; width: 100%; margin-left: 0; }
  .search input { flex: 1; width: auto; }
  .header-actions { margin-left: auto; }
  .nav-inner { gap: 18px; overflow-x: auto; }
  .nav-inner a { white-space: nowrap; font-size: 0.9rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .slot-options { grid-template-columns: 1fr; }
  .notice-band { grid-template-columns: 1fr; }
  .appointment-row { flex-direction: column; align-items: stretch; }
  .appointment-actions { justify-content: flex-start; }
  .schedule-day { grid-template-columns: 1fr; gap: 8px; }
  .schedule-date { flex-direction: row; gap: 8px; align-items: baseline; border-right: 0; }
  .profile-head { flex-direction: column; }
  .profile-avatar { width: 78px; height: 78px; font-size: 1.8rem; }
  .auth-layout { grid-template-columns: 1fr; gap: 18px; }
  .auth-aside { padding: 0 4px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .detail-list > div, .info-list > div { flex-direction: column; gap: 2px; }
  .detail-list dd, .info-list dd { text-align: left; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 440px) {
  body { font-size: 15px; }
  .site-main { padding-top: 24px; }
  .account-stats, .quick-links, .steps { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .card { padding: 18px; }
  .form-block { padding: 18px; }
  .appointment-row { padding: 16px; }
  .data-table th, .data-table td { padding: 10px; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.3rem; }
  .brand-text strong { font-size: 1.15rem; }
  .header-actions { gap: 10px; font-size: 0.86rem; }
  .section-tint { margin-left: -14px; margin-right: -14px; padding: 20px; }
  .slot-option { align-items: flex-start; }
  .appointment-title { align-items: flex-start; }
}
