:root {
  color-scheme: light;
  --ink: #172b43;
  --muted: #475e74;
  --blue: #164d84;
  --blue-dark: #183a5c;
  --blue-soft: #e9f3fc;
  --orange: #f4a348;
  --orange-soft: #ffeed8;
  --paper: #f4f7fb;
  --white: #fff;
  --line: #d7e2ec;
  --green: #17563b;
  --green-soft: #e7f4ec;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 "Segoe UI", system-ui, sans-serif; }
.shell { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { line-height: 1.18; }
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -0.045em; }
h2 { font-size: 1.34rem; letter-spacing: -0.025em; }
h3 { font-size: 1rem; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.brand-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 65px; }
.brand { color: var(--blue-dark); font-weight: 760; }
.demo-label { color: #6d4114; background: var(--orange-soft); padding: 4px 8px; border-radius: 6px; font-size: 0.78rem; font-weight: 700; }
.intro {
  margin-top: 24px;
  padding: clamp(20px, 4vw, 36px);
  background: var(--blue-dark);
  color: var(--white);
  border-radius: 14px;
  display: grid;
  gap: 18px;
}
.intro-note { margin-top: 6px; color: #e2edf8; }
.business-name { color: #ffd19e; font-weight: 720; margin-bottom: 6px; }
.profile { display: grid; gap: 6px; align-self: end; }
.profile label { font-size: 0.85rem; font-weight: 700; }

button, select { font: inherit; }
button, select {
  min-height: 44px;
  border: 1px solid var(--blue);
  border-radius: 7px;
  padding: 8px 12px;
  background: var(--white);
  color: var(--blue-dark);
}
button { cursor: pointer; font-size: 0.875rem; font-weight: 700; }
button:disabled, select:disabled { opacity: 0.65; cursor: not-allowed; }
button:not(:disabled):hover { background: var(--blue-soft); }
button:focus-visible, select:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.profile select:focus-visible { outline-color: var(--orange); }
.button-primary { border-color: #bd6c23; background: var(--orange); color: #28190f; }
.button-primary:not(:disabled):hover { background: #eb9139; }
.button-secondary { border-color: #8fa8c0; }

.status-message { margin-block: 14px; min-height: 24px; color: var(--green); font-size: 0.925rem; font-weight: 700; }
.status-message.error { color: #8c3623; }
.noscript { margin-bottom: 12px; }
.workspace { display: grid; align-items: start; gap: 20px; }
.section-header { display: grid; gap: 3px; margin-bottom: 12px; }
.section-header p, .demo-footer p { color: var(--muted); font-size: 0.9rem; }
.class-list, .reservation-list { padding: 0; list-style: none; display: grid; gap: 11px; }
.class-card, .reservations {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.class-card { display: grid; gap: 12px; }
.class-name { display: flex; align-items: center; gap: 12px; }
.class-name time { padding: 6px 9px; background: var(--blue-soft); color: var(--blue-dark); border-radius: 7px; font-size: 0.9rem; font-weight: 750; }
.capacity { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; color: var(--muted); font-size: 0.9rem; }
.occupancy { display: inline-flex; gap: 4px; align-items: center; }
.occupancy i { width: 11px; height: 7px; border: 1px solid #8fa8c0; border-radius: 3px; }
.occupancy .filled { border-color: var(--blue); background: var(--blue); }
.class-card > button, .reservation > button { justify-self: start; }
.class-note { color: var(--blue-dark); font-size: 0.9rem; font-weight: 700; }
.reservations { min-width: 0; }
.reservation { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.reservation-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; justify-content: space-between; }
.badge { padding: 2px 8px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-dark); font-size: 0.8rem; font-weight: 720; }
.badge[data-status="confirmed"] { background: var(--green-soft); color: var(--green); }
.badge[data-status="waiting"] { background: var(--orange-soft); color: #714416; }
.badge[data-status="cancelled"] { background: #e9eef3; color: #475a6b; }
.history { color: var(--muted); font-size: 0.86rem; padding-left: 18px; }
.empty-state { color: var(--muted); background: var(--paper); border-radius: 7px; padding: 12px; font-size: 0.94rem; }
.demo-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 22px 28px; }
dialog { width: min(410px, calc(100% - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
dialog::backdrop { background: rgb(13 31 53 / 55%); }
dialog p { margin-top: 7px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; margin-top: 15px; }

@media (min-width: 710px) {
  .shell { width: min(1080px, calc(100% - 48px)); }
  .intro { grid-template-columns: minmax(0, 1fr) minmax(190px, 240px); }
  .workspace { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .class-card, .reservations { padding: 19px; }
}
