:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #0a66ff;
  --accent-dark: #0649ba;
  --warn: #9a4f12;
  --danger: #9d2c2c;
  --soft: #eef5ff;
  --soft-line: #cfe0ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.page-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.booking-body {
  background:
    linear-gradient(180deg, #ffffff 0, #f6f8fc 220px, #f5f7fb 100%);
}

.booking-shell {
  width: min(980px, calc(100vw - 28px));
  padding-top: 18px;
}

.topbar,
.panel,
.notice {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.booking-topbar {
  border: 0;
  background: transparent;
  padding: 8px 2px 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.subtle-link {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 700;
}

.booking-topbar .subtle-link {
  border-radius: 999px;
  padding: 8px 12px;
  background: #eef2f7;
  color: #111827;
  font-size: 13px;
}

.notice {
  margin: 14px 0;
  padding: 14px 16px;
  color: var(--muted);
}

.booking-note {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.layout,
.admin-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
  align-items: start;
}

.booking-layout > * {
  min-width: 0;
}

.admin-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.admin-dashboard {
  display: grid;
  gap: 14px;
}

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

.menu-button {
  display: grid;
  gap: 8px;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.menu-button:hover,
.menu-button:focus-visible {
  border-color: var(--soft-line);
  background: var(--soft);
  outline: 0;
}

.menu-button span {
  font-size: 19px;
  font-weight: 900;
}

.menu-button small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-view {
  gap: 14px;
}

.view-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0;
}

.booking-calendar-panel {
  min-height: 520px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 38px minmax(112px, auto) 38px;
  gap: 8px;
  align-items: center;
}

.calendar-toolbar strong {
  color: var(--ink);
  font-size: 15px;
  text-align: center;
}

.segmented-control {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: #f9fafb;
}

.segmented-control button {
  min-height: 34px;
  border-radius: 6px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
}

.segmented-control button.on {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.calendar-view-switch {
  margin: 0 0 14px;
}

.reservation-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: 14px;
  align-items: start;
}

.reservation-calendar-layout > * {
  min-width: 0;
}

.reservation-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.reservation-calendar-head {
  min-height: 30px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.reservation-calendar-blank {
  min-height: 106px;
}

.reservation-calendar-day {
  display: grid;
  min-height: 106px;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.reservation-calendar-day:hover,
.reservation-calendar-day:focus-visible {
  border-color: var(--soft-line);
  outline: 3px solid var(--soft-line);
}

.reservation-calendar-day.selected {
  border-color: var(--accent);
  background: var(--soft);
}

.reservation-calendar-day.has-pending {
  border-color: #f0c56d;
}

.reservation-calendar-day.has-approved {
  border-color: #9cc1eb;
}

.reservation-calendar-day.rest:not(.selected) {
  background: #f7f7f7;
}

.calendar-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.calendar-day-top strong {
  font-size: 18px;
  line-height: 1;
}

.calendar-day-top small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.calendar-day-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.calendar-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 2px 7px;
  background: #f2f4f7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.calendar-badge.open {
  background: #edf8f2;
  color: #227248;
}

.calendar-badge.pending {
  background: #fff7e8;
  color: var(--warn);
}

.calendar-badge.approved {
  background: #eaf3ff;
  color: #24578f;
}

.calendar-badge.rest {
  background: #ededed;
  color: var(--muted);
}

.calendar-day-times {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-day-detail {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.calendar-detail-head {
  display: grid;
  gap: 3px;
}

.calendar-detail-head h3,
.calendar-detail-section h4 {
  margin: 0;
}

.calendar-detail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.calendar-detail-section {
  display: grid;
  gap: 8px;
}

.calendar-detail-section h4 {
  color: var(--ink);
  font-size: 14px;
}

.calendar-time-row,
.calendar-request-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.calendar-time-row {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 900;
}

.calendar-request-card {
  display: grid;
  gap: 6px;
}

.calendar-request-card.status-pending {
  border-color: #f0c56d;
}

.calendar-request-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.reservation-week {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reservation-week-grid {
  display: grid;
  grid-template-columns: 72px repeat(7, minmax(96px, 1fr));
  min-width: 744px;
}

.reservation-week-corner,
.reservation-week-head,
.reservation-week-time,
.reservation-week-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reservation-week-corner,
.reservation-week-head {
  min-height: 70px;
  background: #f9fafb;
}

.reservation-week-corner,
.reservation-week-time {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.reservation-week-head {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px 6px;
  color: var(--ink);
}

.reservation-week-head strong {
  font-size: 15px;
}

.reservation-week-head span,
.reservation-week-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.reservation-week-head.selected {
  background: var(--soft);
  color: var(--accent-dark);
}

.reservation-week-head.outside,
.reservation-week-cell.outside {
  background: #f7f7f7;
  color: var(--muted);
}

.reservation-week-time,
.reservation-week-cell {
  min-height: 58px;
}

.reservation-week-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-content: flex-start;
  align-items: flex-start;
  padding: 6px;
  border-radius: 0;
  background: #fff;
}

.reservation-week-cell.selected {
  background: var(--soft);
}

.week-item {
  display: inline-flex;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-item.open {
  background: #edf8f2;
  color: #227248;
}

.week-item.pending {
  background: #fff7e8;
  color: var(--warn);
}

.week-item.approved {
  background: #eaf3ff;
  color: #24578f;
}

.week-item.rejected {
  background: #f3f3f3;
  color: var(--muted);
}

.panel {
  padding: 18px;
}

.availability-panel,
.request-panel {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.request-panel {
  position: sticky;
  top: 16px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.slot-list,
.request-list,
.stack-form,
.request-form {
  display: grid;
  gap: 12px;
}

.empty-state {
  padding: 14px;
}

.schedule-wrap {
  display: block;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.schedule-pager {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.schedule-pager strong {
  min-width: 0;
  text-align: center;
  font-size: 14px;
}

.schedule-pager button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.schedule-pager button:disabled {
  color: #c0c6cf;
  background: #f5f6f8;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 68px repeat(var(--date-count), minmax(76px, 1fr));
  min-width: calc(68px + var(--date-count) * 76px);
}

.schedule-corner,
.schedule-date,
.schedule-time,
.schedule-cell {
  min-height: 52px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.schedule-corner,
.schedule-date {
  background: #f9fafb;
}

.schedule-date {
  display: grid;
  place-items: center;
  gap: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.schedule-date small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.schedule-time {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.schedule-cell {
  display: grid;
  place-items: center;
  color: #c0c6cf;
  background: #fff;
}

.schedule-cell.is-open {
  background: #fff;
}

.schedule-slot {
  width: 100%;
  height: 100%;
  min-height: 52px;
  border-radius: 0;
  background: transparent;
  color: #42a5f5;
  font-size: 24px;
  line-height: 1;
}

.schedule-slot:hover,
.schedule-slot:focus-visible {
  background: var(--soft);
  color: var(--accent);
  outline: 2px solid var(--soft-line);
  outline-offset: -2px;
}

.schedule-slot.selected {
  background: var(--accent);
  color: #fff;
}

.slot-card,
.request-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.slot-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.slot-card.selected {
  border-color: var(--accent);
  background: var(--soft);
}

.slot-date {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
}

.slot-meta,
.request-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.selected-slot {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 12px;
  color: var(--accent-dark);
  background: var(--soft);
  font-weight: 800;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 12px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fffafa;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid var(--soft-line);
}

input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus {
  border-color: var(--danger);
  outline-color: #f1c6c6;
}

textarea {
  resize: vertical;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.request-form .field-grid {
  grid-template-columns: 1fr;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.booking-submit {
  min-height: 48px;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(10, 102, 255, 0.16);
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-dark);
}

.danger-button {
  background: #fff2f2;
  color: var(--danger);
  border: 1px solid #ecc8c8;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.form-status {
  min-height: 24px;
  margin-bottom: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.auto-save-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 9px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.status-pending {
  background: #fff7e8;
  color: var(--warn);
}

.status-booked,
.status-approved {
  background: #eaf3ff;
  color: #24578f;
}

.status-rejected,
.status-closed {
  background: #f3f3f3;
  color: var(--muted);
}

.wide-panel {
  grid-column: 1 / -1;
}

.hidden {
  display: none !important;
}

.availability-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.slot-builder select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.builder-actions {
  margin-top: 0;
}

.builder-config {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcff;
}

.builder-config summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.builder-config .field-grid {
  margin-top: 12px;
}

.builder-day-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 520px;
  overflow: auto;
  background: #fff;
}

.builder-day + .builder-day {
  border-top: 1px solid var(--line);
}

.builder-day-head {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.builder-day.open .builder-day-head {
  background: #f9fafb;
}

.builder-day.rest .builder-day-head {
  background: #fff7fb;
}

.builder-day-name {
  font-size: 14px;
  font-weight: 800;
}

.builder-day-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.builder-day-arrow {
  color: var(--muted);
  font-size: 12px;
}

.builder-day.open .builder-day-arrow {
  transform: rotate(180deg);
}

.builder-day-edit {
  padding: 4px 12px 14px;
}

.builder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-chip,
.builder-add-time {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.builder-chip.on {
  border-color: var(--soft-line);
  background: var(--soft);
  color: var(--accent-dark);
}

.builder-chip.custom,
.builder-add-time {
  border-style: dashed;
}

.tool-note {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.weekday-pick {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.weekday-button {
  min-width: 0;
  min-height: 42px;
  padding: 7px 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.weekday-button.sun {
  color: var(--danger);
}

.weekday-button.on {
  border-color: #ecc8d8;
  background: #fff2f7;
  color: #9a2f61;
}

.weekday-button:disabled {
  background: #f5f5f5;
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.preset-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.preset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.preset-row-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.preset-row-body span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.day-tools {
  margin: 0 0 10px;
}

.preset-select {
  width: auto;
  min-height: 40px;
  padding: 8px 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 16, 26, 0.38);
}

.modal-panel {
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(10, 16, 26, 0.18);
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.preset-date-nav {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.preset-month-picker {
  position: relative;
  min-width: 0;
}

.preset-month-toggle {
  width: 100%;
  min-height: 38px;
}

.preset-month-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 30;
  display: grid;
  width: min(320px, calc(100vw - 60px));
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(10, 16, 26, 0.16);
}

.preset-month-popover label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.preset-month-popover select {
  min-height: 40px;
}

.preset-date-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.preset-date-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.preset-date-blank {
  height: 54px;
}

.preset-date-cell {
  position: relative;
  display: block;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 4px;
  background: #fff;
  color: var(--ink);
}

.preset-date-cell strong {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  line-height: 1;
}

.preset-date-cell span {
  position: absolute;
  right: 4px;
  bottom: 6px;
  left: 4px;
  min-height: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.preset-date-cell.on {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--accent-dark);
}

.preset-date-cell.rest:not(.on) {
  background: #f5f5f5;
  color: var(--muted);
}

.preset-date-cell:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.modal-actions {
  justify-content: flex-end;
}

.preset-weekday-pick {
  margin-top: 12px;
}

@media (max-width: 820px) {
  .layout,
  .admin-grid,
  .admin-menu,
  .field-grid,
  .booking-layout,
  .reservation-calendar-layout {
    grid-template-columns: 1fr;
  }

  .topbar,
  .slot-card {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-head p {
    text-align: left;
  }

  .booking-topbar {
    align-items: flex-start;
    flex-direction: row;
  }

  .booking-topbar .subtle-link {
    flex: 0 0 auto;
    padding: 6px 10px;
  }

  .request-panel {
    position: static;
  }

  h1 {
    font-size: 24px;
  }

  .builder-day-head {
    grid-template-columns: 76px 1fr auto;
  }

  .preset-row {
    grid-template-columns: 1fr;
  }

  .calendar-toolbar {
    width: 100%;
  }

  .reservation-calendar {
    gap: 4px;
  }

  .reservation-calendar-blank,
  .reservation-calendar-day {
    min-height: 86px;
  }

  .reservation-calendar-day {
    padding: 8px 6px;
  }

  .calendar-day-top strong {
    font-size: 16px;
  }

  .calendar-badge {
    padding: 2px 5px;
    font-size: 10px;
  }

  .calendar-day-detail {
    position: static;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .booking-shell {
    width: min(100% - 20px, 980px);
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .booking-note,
  .panel {
    padding: 14px;
  }

  .booking-topbar {
    gap: 10px;
    padding-bottom: 12px;
  }

  .booking-topbar .subtle-link {
    padding: 6px 9px;
    font-size: 12px;
  }

  .schedule-pager {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
  }

  .schedule-pager button {
    width: 36px;
    height: 36px;
  }

  .schedule-pager strong {
    font-size: 13px;
  }

  .schedule-grid {
    grid-template-columns: 54px repeat(var(--date-count), minmax(68px, 1fr));
    min-width: calc(54px + var(--date-count) * 68px);
  }

  .schedule-corner,
  .schedule-date,
  .schedule-time,
  .schedule-cell {
    min-height: 48px;
  }

  .schedule-slot {
    min-height: 48px;
  }

  input,
  textarea,
  button {
    font-size: 16px;
  }
}
