:root {
  --brand: #1D9E75;
  --brand-dark: #0F6E56;
  --brand-light: #E1F5EE;
  --brand-text: #085041;
  --ink: #1a1a18;
  --muted: #66665f;
  --line: #e3e1da;
  --surface: #ffffff;
  --bg: #f8f7f4;
  --danger: #b3302f;
  --danger-light: #fcecec;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 112px;
}

.top { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 16px; }
.logo { display: block; height: 60px; width: auto; max-width: 180px; margin: 0 auto; }
.wrap { max-width: 560px; margin: 0 auto; padding: 32px 16px; }
.eyebrow { margin: 0 0 6px; color: var(--brand-dark); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
h1 { margin: 0 0 24px; font-family: Georgia, 'Times New Roman', serif; font-size: 30px; font-weight: 500; line-height: 1.2; }
h2 { margin: 0 0 6px; font-family: Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 500; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.stack { display: grid; gap: 10px; margin-top: 18px; }

.notice { background: var(--danger-light); color: var(--danger); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 15px; }
.notice[hidden] { display: none; }

.btn { min-height: 46px; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-weight: 600; padding: 10px 16px; text-align: center; text-decoration: none; display: inline-block; }
.btn:hover { border-color: var(--brand); }
.btn:focus-visible, input:focus-visible { outline: 3px solid rgba(29, 158, 117, .35); outline-offset: 1px; }
.btn.primary { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.primary:hover { background: var(--brand-text); }
.btn.danger { color: var(--danger); }
.btn:disabled { cursor: default; opacity: .6; }
.link { background: none; border: 0; color: var(--brand-dark); cursor: pointer; font: inherit; font-weight: 600; min-height: 44px; padding: 8px 0; text-decoration: underline; }

.otp { width: 100%; height: 54px; margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 24px; letter-spacing: .3em; text-align: center; }

.day { padding: 16px 0; border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; padding-top: 0; }
.day:last-child { padding-bottom: 0; }
.day-name { margin: 0 0 10px; font-weight: 600; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot { min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--brand-text); cursor: pointer; font: inherit; font-weight: 600; }
.slot:hover { border-color: var(--brand); }
.slot[aria-pressed="true"] { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.booked { border-color: var(--brand); }
.status { display: inline-block; margin: 0 0 12px; border-radius: 999px; background: var(--brand-light); color: var(--brand-text); font-size: 13px; font-weight: 600; padding: 3px 10px; }
.when { font-family: Georgia, 'Times New Roman', serif; font-size: 25px; line-height: 1.25; margin-bottom: 4px; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px; }
.bar[hidden] { display: none; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 528px; margin: 0 auto; }
.bar-label { margin: 0; color: var(--muted); font-size: 13px; }
.bar-value { margin: 0; font-weight: 600; }
.bar .btn { width: auto; flex: none; }

@media (max-width: 420px) {
  h1 { font-size: 26px; }
  .bar-value { font-size: 15px; }
}
