:root {
  --ink: #17343d;
  --muted: #617b82;
  --teal: #0d8392;
  --teal-dark: #096b77;
  --teal-pale: #e8f6f7;
  --page: #f4fafb;
  --panel: #fff;
  --line: #d6e6e9;
  --soft: #eef5f6;
  --amber: #8d5f0a;
  --amber-pale: #fff4d9;
  --red: #ad3d49;
  --red-pale: #fff0f1;
  --green: #21784f;
  --green-pale: #ebf8f0;
  --shadow: 0 18px 50px rgba(28, 82, 92, .09);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--page); color-scheme: light; }
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .42; }
a { color: inherit; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(14px, 4vw, 38px);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; padding: 0; background: transparent; border: 0; text-decoration: none; }
.brand img { width: clamp(176px, 27vw, 276px); height: auto; display: block; mix-blend-mode: multiply; }
.header-back, .ghost-button {
  min-height: 44px;
  padding: 0 16px;
  color: #31535c;
  background: transparent;
  border: 1px solid #c7dadd;
  border-radius: 999px;
  font-weight: 650;
}
.public-main { width: min(100%, 1120px); flex: 1; margin: 0 auto; padding: clamp(32px, 5.6vw, 64px) clamp(13px, 4vw, 36px) 72px; }
.site-footer { display: flex; justify-content: center; gap: 20px; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); color: #789096; font-size: 12px; border-top: 1px solid var(--line); }
.site-footer a { text-underline-offset: 3px; }

.loading-panel { min-height: 48vh; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); }
.spinner { width: 30px; height: 30px; border: 3px solid #d3e5e8; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .075em; }
.page-heading { margin-bottom: 30px; }
.page-heading h1, .legal-page h1 { margin: 0; font-size: clamp(28px, 4.2vw, 42px); font-weight: 680; line-height: 1.35; letter-spacing: .015em; }
.page-heading > p:last-child { margin: 10px 0 0; color: var(--muted); line-height: 1.75; }
.menu-grid { width: min(100%, 760px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 auto; }
.menu-card {
  min-height: 202px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 27px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.menu-card:hover, .menu-card:focus-visible { transform: translateY(-2px); border-color: var(--teal); box-shadow: 0 22px 54px rgba(31,88,98,.13); }
.menu-card strong, .menu-card small { display: block; }
.menu-card strong { margin-bottom: 8px; font-size: clamp(20px, 2.2vw, 24px); font-weight: 680; }
.menu-card small { color: var(--muted); font-size: 14px; line-height: 1.75; }
.menu-card i { width: 44px; height: 44px; display: grid; place-items: center; align-self: flex-end; color: white; background: var(--teal); border-radius: 50%; font-size: 20px; font-style: normal; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 21px; box-shadow: var(--shadow); }
.schedule-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 17px; align-items: start; }
.calendar-panel, .timetable-panel, .form-panel { padding: clamp(17px, 3vw, 26px); }
.month-bar, .section-bar { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 15px; }
.month-bar h2, .section-bar h2 { margin: 0; font-size: 20px; }
.month-controls { display: flex; gap: 7px; }
.month-controls button { width: 44px; height: 44px; padding: 0; background: #f5fafb; border: 1px solid #c9dcdf; border-radius: 50%; font-size: 21px; }
.helper { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.calendar-head, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calendar-head { margin-bottom: 6px; }
.calendar-head span { padding: 4px 0; color: #738a90; font-size: 12px; text-align: center; }
.calendar-empty { min-height: 48px; }
.calendar-day {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  color: var(--ink);
  background: #f9fcfc;
  border: 1px solid #dfebed;
  border-radius: 11px;
}
.calendar-day i { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.calendar-day.closed, .calendar-day.unavailable { color: #a1b1b5; background: #f0f4f5; border-color: #e9eff0; }
.calendar-day.partial { color: var(--amber); background: var(--amber-pale); border-color: #efd495; }
.calendar-day[aria-pressed="true"] { color: white; background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,131,146,.14); }
.calendar-day[aria-pressed="true"] i { background: white; }
.calendar-day:disabled { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend .open { background: var(--teal); }
.legend .partial { background: #bf7f00; }
.legend .closed { background: #adbcbf; }
.schedule-note { margin: 12px 0 0; padding: 11px 13px; color: #715012; background: #fff7e5; border-radius: 10px; font-size: 13px; line-height: 1.55; }
.venue-pills { display: inline-flex; gap: 4px; padding: 4px; background: #edf5f6; border-radius: 999px; }
.venue-pills button { min-height: 40px; padding: 0 14px; color: #5f777e; background: transparent; border: 0; border-radius: 999px; }
.venue-pills button[aria-pressed="true"] { color: var(--ink); background: white; box-shadow: 0 3px 12px rgba(31,88,98,.11); }
.class-group { overflow: hidden; margin-bottom: 9px; border: 1px solid #ddebed; border-radius: 13px; }
.class-group-title { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; background: #f8fbfc; }
.class-group-title strong { font-size: 14px; }
.class-group-title small { color: var(--muted); }
.class-row { display: grid; grid-template-columns: 96px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border-top: 1px solid #e5eef0; }
.class-row-button { width: 100%; color: inherit; background: white; border: 0; border-top: 1px solid #e5eef0; text-align: left; transition: background .16s ease, box-shadow .16s ease; }
.class-row-button:hover { background: #f5fafb; }
.class-row-button:focus-visible { position: relative; z-index: 1; outline: 0; box-shadow: inset 0 0 0 2px var(--teal); }
.class-row time { color: var(--teal-dark); font-weight: 700; }
.class-row strong, .class-row small { display: block; }
.class-row strong { font-size: 14px; }
.class-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.class-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.class-row-actions > i { color: #668087; font-size: 21px; font-style: normal; line-height: 1; }
.accept-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.tag { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.tag.trial { color: #835709; background: #fff1ce; }
.tag.makeup { color: var(--teal-dark); background: #e5f6f7; }
.tag.none { color: #7b8e93; background: #edf2f3; }
.empty-state { padding: 38px 16px; color: var(--muted); background: #f8fbfc; border: 1px solid #dfeaec; border-radius: 13px; text-align: center; }
.empty-state.compact { margin-bottom: 18px; padding: 22px 14px; }

.booking-shell { width: min(100%, 800px); margin: 0 auto; }
.booking-kind { display: inline-flex; margin-bottom: 9px; color: var(--teal); font-weight: 800; font-size: 12px; letter-spacing: .05em; }
.progress { display: flex; gap: 7px; margin: 0 0 24px; }
.progress span { height: 4px; flex: 1; background: #d9e8ea; border-radius: 999px; }
.progress span.active { background: var(--teal); }
.form-panel { margin-bottom: 16px; }
.trial-first-section { padding-top: 0; }
.trial-filters { margin-bottom: 2px; }
.form-section + .form-section { margin-top: 26px; padding-top: 25px; border-top: 1px solid #e0eaec; }
.form-section h2 { margin: 0 0 6px; font-size: 19px; }
.form-section > p { margin: 0 0 17px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 14px; }
.field { margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label, .field > span:first-child { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 680; }
.required { margin-left: 5px; color: var(--red); font-size: 11px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 11px 13px;
  background: white;
  border: 1px solid #bdd3d7;
  border-radius: 11px;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,131,146,.12); }
.field textarea { min-height: 96px; resize: vertical; }
.field-hint { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.choice-card {
  min-height: 74px;
  padding: 13px;
  color: var(--ink);
  background: white;
  border: 1px solid #c7dade;
  border-radius: 13px;
  text-align: left;
}
.choice-card strong, .choice-card small { display: block; }
.choice-card small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.choice-card[aria-pressed="true"] { background: var(--teal-pale); border-color: var(--teal); box-shadow: 0 0 0 2px rgba(13,131,146,.12); }
.selection-summary { margin: 0 0 18px; padding: 14px 15px; background: var(--teal-pale); border: 1px solid #c8e7ea; border-radius: 13px; }
.selection-summary span, .selection-summary strong, .selection-summary small { display: block; }
.selection-summary span { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.selection-summary small { margin-top: 4px; color: var(--muted); }
.class-detail-link { min-height: 38px; margin-top: 12px; padding: 7px 12px; color: var(--teal-dark); background: white; border: 1px solid #9fcbd0; border-radius: 999px; font-size: 12px; font-weight: 700; }
.class-detail-link:hover, .class-detail-link:focus-visible { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,131,146,.11); outline: 0; }

.class-detail-backdrop { position: fixed; z-index: 80; inset: 0; background: rgba(13, 38, 45, .46); backdrop-filter: blur(2px); }
.class-detail-modal {
  width: min(calc(100vw - 32px), 520px);
  max-height: calc(100dvh - 32px);
  position: fixed;
  z-index: 90;
  top: 50%;
  left: 50%;
  overflow: auto;
  padding: 24px;
  background: white;
  border: 1px solid #cfe1e4;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(9, 40, 47, .28);
  transform: translate(-50%, -50%);
  overscroll-behavior: contain;
}
.class-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.class-detail-head .eyebrow { margin: 0; }
.class-detail-close { min-height: 40px; padding: 0 14px; color: #31535c; background: #f3f8f9; border: 1px solid #c7dadd; border-radius: 999px; font-weight: 700; }
.class-detail-close:focus-visible { outline: 3px solid rgba(13,131,146,.18); outline-offset: 2px; }
.class-detail-modal h2 { margin: 0 0 11px; font-size: clamp(23px, 5vw, 30px); line-height: 1.42; }
.class-detail-intro { margin: 0 0 21px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.class-detail-list { margin: 0; border-top: 1px solid #dce9eb; }
.class-detail-list > div { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 16px; padding: 15px 2px; border-bottom: 1px solid #dce9eb; }
.class-detail-list dt { color: var(--muted); font-size: 13px; font-weight: 650; }
.class-detail-list dd { margin: 0; font-weight: 700; line-height: 1.55; }
.class-detail-section { margin-top: 25px; padding-top: 23px; border-top: 1px solid #dce9eb; }
.class-detail-section h3 { margin: 0 0 12px; font-size: 17px; }
.class-detail-section ul { display: grid; gap: 8px; margin: 0; padding-left: 1.25em; line-height: 1.75; }
.class-detail-note { margin: 14px 0 0; padding: 12px 13px; color: #415f67; background: #f3f8f9; border-radius: 10px; font-size: 13px; line-height: 1.7; }
.class-detail-contact > p { margin: 0 0 13px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.class-detail-contact > div { display: grid; gap: 8px; }
.class-detail-contact a { width: fit-content; color: var(--teal-dark); font-weight: 750; text-underline-offset: 3px; }
.class-detail-bottom-close { width: 100%; min-height: 50px; margin-top: 25px; color: var(--ink); background: white; border: 1px solid #bfd3d7; border-radius: 12px; font-weight: 700; }
.class-detail-bottom-close:hover, .class-detail-bottom-close:focus-visible { border-color: var(--teal); outline: 3px solid rgba(13,131,146,.11); outline-offset: 1px; }
.primary, .secondary, .danger, .text-button { min-height: 52px; padding: 10px 18px; border-radius: 12px; font-weight: 700; }
.primary { color: white; background: var(--teal); border: 1px solid var(--teal); }
.primary:hover:not(:disabled) { background: var(--teal-dark); }
.secondary { background: white; border: 1px solid #bfd3d7; }
.danger { color: var(--red); background: white; border: 1px solid #e7b9bf; }
.text-button { color: var(--teal-dark); background: transparent; border: 0; }
.full-button { width: 100%; }
.button-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.55fr); gap: 10px; margin-top: 18px; }
.booking-shell .primary, .booking-shell .secondary { min-height: 50px; height: auto; display: inline-flex; align-items: center; justify-content: center; padding: 11px 17px; font-size: 15px; line-height: 1.35; }
.booking-shell .form-panel > .full-button { width: min(100%, 360px); margin: 18px auto 0; }
.person-card { margin-bottom: 13px; padding: 17px; background: #f8fbfc; border: 1px solid #dce9eb; border-radius: 14px; }
.person-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.person-title h3 { margin: 0; font-size: 16px; }
.inherit-choice { display: grid; gap: 8px; margin: 0 0 17px; }
.radio-row, .check-row { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; background: white; border: 1px solid #d4e2e4; border-radius: 10px; }
.radio-row input, .check-row input { width: 18px; height: 18px; accent-color: var(--teal); }
.add-person { width: 100%; min-height: 49px; margin: 1px 0 18px; color: var(--teal-dark); background: transparent; border: 1px dashed #77b6be; border-radius: 12px; font-weight: 680; }
.profile-box { margin-top: 10px; padding: 15px; background: #f5f9fa; border: 1px solid #dce7e9; border-radius: 12px; }
.profile-box .check-row { padding: 0; background: transparent; border: 0; }
.profile-actions { display: flex; justify-content: flex-end; margin-top: 7px; }
.profile-actions button { min-height: 38px; padding: 0 8px; color: var(--muted); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.confirm-list { display: grid; gap: 11px; }
.confirm-block { padding: 16px; background: #f8fbfc; border: 1px solid #dce9eb; border-radius: 13px; }
.confirm-block h3 { margin: 0 0 7px; font-size: 13px; }
.confirm-block p { margin: 0; line-height: 1.75; }
.confirm-block p + p { margin-top: 12px; }
.error-banner, .warning-banner, .success-banner { margin: 0 0 16px; padding: 13px 15px; border-radius: 11px; font-size: 13px; line-height: 1.6; }
.error-banner { color: #8e2e3a; background: var(--red-pale); border: 1px solid #e8bec3; }
.warning-banner { color: #72500d; background: var(--amber-pale); border: 1px solid #efd79e; }
.success-banner { color: #1e6846; background: var(--green-pale); border: 1px solid #c6e5d3; }
.complete-panel { width: min(100%, 720px); margin: 0 auto; padding: clamp(30px, 7vw, 52px); text-align: center; }
.complete-mark { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 20px; color: white; background: var(--teal); border-radius: 50%; font-size: 24px; }
.complete-panel h1 { margin: 0 0 13px; font-size: clamp(26px,4vw,36px); }
.complete-panel p { color: var(--muted); line-height: 1.75; }
.reservation-code { display: block; margin: 20px 0; padding: 17px; background: var(--teal-pale); border-radius: 13px; font-size: clamp(17px,3vw,22px); letter-spacing: .05em; }
.text-link { display: inline-flex; margin-top: 18px; color: var(--teal-dark); font-weight: 700; text-underline-offset: 4px; }
.prose { margin-top: 26px; padding: clamp(20px,4vw,34px); }
.prose p { margin: 0 0 18px; line-height: 1.9; }
.legal-page { width: min(100%, 900px); }
.legal-heading { margin-bottom: 28px; }
.legal-heading h1 { margin: 0; font-size: clamp(28px, 4.2vw, 42px); font-weight: 680; line-height: 1.35; letter-spacing: .015em; }
.legal-heading > p:last-child { max-width: 720px; margin: 12px 0 0; color: var(--muted); line-height: 1.85; }
.legal-document { padding: clamp(22px, 4.4vw, 42px); }
.legal-document section + section { margin-top: 34px; padding-top: 32px; border-top: 1px solid #e1ebed; }
.legal-document h2, .support-summary h2, .support-card h2 { margin: 0 0 13px; font-size: clamp(18px, 2.5vw, 22px); line-height: 1.5; }
.legal-document p, .legal-document li, .support-summary p, .support-card p, .support-card li { color: #405e66; line-height: 1.9; }
.legal-document p { margin: 0; }
.legal-document p + p { margin-top: 13px; }
.legal-document ul, .support-card ul { margin: 14px 0 0; padding-left: 1.35em; }
.legal-document li + li, .support-card li + li { margin-top: 6px; }
.legal-definition-list { display: grid; gap: 10px; margin: 16px 0; }
.legal-definition-list > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 15px; padding: 14px 16px; background: #f5fafb; border: 1px solid #deeaec; border-radius: 12px; }
.legal-definition-list dt { color: var(--ink); font-weight: 760; }
.legal-definition-list dd { margin: 0; color: #405e66; line-height: 1.75; }
.legal-meta { margin-top: 38px; padding-top: 22px; border-top: 1px solid #dbe7e9; color: var(--muted); font-size: 13px; }
.legal-meta p + p { margin-top: 4px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 7px; }
.inline-link { color: var(--teal-dark); font-weight: 700; text-underline-offset: 4px; }
.support-page { width: min(100%, 1040px); }
.support-summary { margin-bottom: 17px; padding: clamp(22px, 4vw, 34px); }
.support-summary > p { max-width: 760px; margin: 0; }
.support-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 24px 0 0; }
.support-specs > div { padding: 15px 16px; background: var(--teal-pale); border-radius: 12px; }
.support-specs dt { margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 750; }
.support-specs dd { margin: 0; font-weight: 720; }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.support-card { position: relative; padding: clamp(22px, 3.4vw, 30px); }
.support-number { display: inline-flex; margin-bottom: 18px; color: var(--teal); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.support-card ul { margin-bottom: 0; }
.support-card p { margin: 0; }
.support-card p + p { margin-top: 11px; }
.contact-card { background: #eef8f8; border-color: #cde6e8; }
.support-contact { width: fit-content; display: inline-flex; align-items: center; justify-content: center; margin-top: 20px; text-decoration: none; }

/* Admin */
.admin-body { background: #f2f6f7; }
.admin-shell { min-height: 100vh; }
.admin-sidebar { width: 246px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 24px 16px 18px; background: white; border-right: 1px solid #dbe7e9; z-index: 20; }
.admin-logo { display: block; padding: 0 9px 22px; border-bottom: 1px solid #e3ecee; }
.admin-logo img { width: 180px; display: block; mix-blend-mode: multiply; }
.admin-nav { display: grid; gap: 6px; margin-top: 19px; }
.admin-nav button { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: #597279; background: transparent; border: 0; border-radius: 11px; text-align: left; }
.admin-nav button i { width: 30px; height: 30px; display: grid; place-items: center; background: #edf3f4; border-radius: 9px; font-style: normal; font-size: 11px; font-weight: 800; }
.admin-nav button[aria-current="page"] { color: var(--teal-dark); background: var(--teal-pale); font-weight: 750; }
.admin-nav button[aria-current="page"] i { color: white; background: var(--teal); }
.admin-account { margin-top: auto; padding: 15px 9px 0; border-top: 1px solid #e3ecee; }
.admin-account strong, .admin-account small { display: block; }
.admin-account small { margin-top: 4px; color: var(--muted); }
.admin-account button { width: 100%; min-height: 40px; margin-top: 11px; background: white; border: 1px solid #d0dfe1; border-radius: 9px; }
.admin-content { min-height: 100vh; margin-left: 246px; }
.admin-header { min-height: 124px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 25px clamp(24px,4vw,46px); background: rgba(255,255,255,.9); border-bottom: 1px solid #dce8ea; }
.admin-header h1 { margin: 0; font-size: clamp(25px,3vw,32px); }
.admin-header p { margin: 5px 0 0; color: var(--muted); }
.admin-main { width: min(100%,1320px); margin: 0 auto; padding: 28px clamp(18px,3.4vw,40px) 60px; }
.dashboard-date-picker { display: flex; align-items: flex-end; gap: 9px; margin-bottom: 16px; padding: 13px 15px; background: white; border: 1px solid #dae7e9; border-radius: 16px; box-shadow: 0 10px 28px rgba(31,88,98,.05); }
.dashboard-date-picker > button { width: 44px; height: 44px; padding: 0; color: var(--teal-dark); background: #f3f8f9; border: 1px solid #cbdde0; border-radius: 11px; font-size: 21px; font-weight: 700; }
.dashboard-date-picker label { width: 100%; min-width: 0; overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 750; }
.dashboard-date-picker label span { display: block; margin-bottom: 6px; }
.dashboard-date-picker input { box-sizing: border-box; width: 190px; min-width: 0; max-width: 100%; height: 44px; padding: 0 11px; color: var(--ink); background: white; border: 1px solid #cadcdf; border-radius: 10px; font: inherit; font-size: 13px; }
.dashboard-date-picker .dashboard-today { width: auto; padding: 0 16px; font-size: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 16px; }
.metric-card { min-height: 128px; padding: 19px; background: white; border: 1px solid #dae7e9; border-radius: 17px; box-shadow: 0 10px 28px rgba(31,88,98,.05); }
.metric-card > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-card > strong { display: block; margin-top: 12px; font-size: 31px; }
.metric-card > strong small { margin-left: 4px; color: var(--muted); font-size: 12px; }
.metric-card.alert { background: #fff9ea; border-color: #ecdcae; }
.admin-card { background: white; border: 1px solid #dae7e9; border-radius: 18px; box-shadow: 0 10px 30px rgba(31,88,98,.05); overflow: hidden; }
.admin-card + .admin-card { margin-top: 16px; }
.admin-card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 21px 15px; }
.admin-card-title h2 { margin: 0; font-size: 18px; }
.admin-card-title span { padding: 6px 10px; color: var(--teal-dark); background: var(--teal-pale); border-radius: 999px; font-size: 11px; font-weight: 700; }
.table-wrap { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.admin-table th { padding: 10px 16px; color: #7a9096; background: #f6f9fa; font-size: 10px; text-align: left; }
.admin-table td { padding: 14px 16px; border-top: 1px solid #e5eef0; font-size: 12px; vertical-align: middle; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { margin-top: 3px; color: var(--muted); }
.admin-table td:last-child { text-align: right; }
.dashboard-reservation-table { min-width: 620px; }
.dashboard-reservation-table .booking-cell strong { display: flex; align-items: baseline; gap: 7px; }
.dashboard-reservation-table .booking-cell time { color: var(--teal-dark); font-size: 12px; font-weight: 800; white-space: nowrap; }
.small-action { min-height: 34px; padding: 0 12px; color: var(--teal-dark); background: white; border: 1px solid #c8dadd; border-radius: 9px; }
.kind-badge, .status-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.kind-badge.trial { color: #835709; background: #fff0cc; }
.kind-badge.makeup { color: var(--teal-dark); background: #e5f6f7; }
.status-badge.attention { color: #922f3b; background: #fff0f1; }
.status-badge.ok { color: #206b49; background: #ebf8f0; }
.filter-bar { display: grid; grid-template-columns: 160px 150px minmax(220px,1fr) auto; gap: 10px; padding: 20px; border-bottom: 1px solid #e4edef; }
.filter-bar label { min-width: 0; color: var(--muted); font-size: 10px; font-weight: 750; }
.filter-bar input, .filter-bar select { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; height: 42px; display: block; margin-top: 6px; padding: 0 11px; background: white; border: 1px solid #cadcdf; border-radius: 9px; font-size: 12px; }
.filter-bar button { align-self: end; height: 42px; padding: 0 13px; color: var(--teal-dark); background: #f3f8f9; border: 1px solid #d3e2e4; border-radius: 9px; }
.schedule-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-bottom: 1px solid #e4edef; }
.schedule-toolbar p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-month { display: flex; align-items: center; gap: 10px; }
.admin-month h2 { min-width: 120px; margin: 0; text-align: center; font-size: 20px; }
.admin-month button { width: 38px; height: 38px; background: #f5f9fa; border: 1px solid #d2e0e2; border-radius: 10px; }
.schedule-admin-row { display: grid; grid-template-columns: 92px minmax(420px,1.35fr) minmax(220px,.8fr); gap: 14px; align-items: center; min-height: 63px; padding: 9px 20px; border-top: 1px solid #e5edef; }
.schedule-admin-row.is-closed { color: #7e9095; background: #f1f4f5; }
.schedule-admin-row.is-closed .schedule-date { color: #7e9095; }
.schedule-admin-row.is-closed input { color: #73868b; background: #f8fafa; border-color: #d8e1e3; }
.schedule-admin-row.is-closed .state-buttons button { color: #87979b; background: #e9edef; border-color: #d8e0e2; }
.schedule-admin-row.is-closed .state-buttons button[aria-pressed="true"] { color: #586d72; background: #dfe6e8; border-color: #aebdc1; }
.schedule-date strong { font-size: 14px; }
.schedule-date small { color: var(--muted); font-size: 10px; }
.state-buttons { display: grid; grid-template-columns: .72fr .72fr 1.25fr .82fr; gap: 6px; }
.state-buttons button { min-height: 36px; padding: 0 8px; color: #81949a; background: #f1f5f6; border: 1px solid #dbe4e6; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.state-buttons button[aria-pressed="true"] { color: #176b49; background: #edf8f1; border-color: #72bc9d; }
.schedule-admin-row input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #cadcdf; border-radius: 9px; }
.class-settings-card > .admin-card-title { border-bottom: 1px solid #e1ebed; }
.class-settings-card > .admin-card-title > div p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.class-settings-list { display: grid; gap: 16px; padding: 18px; background: #f5f8f9; }
.class-day-group { overflow: hidden; background: white; border: 1px solid #d9e6e8; border-radius: 14px; }
.class-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; background: #eef6f5; border-bottom: 1px solid #d9e6e8; }
.class-day-heading h2 { margin: 0; color: var(--teal-dark); font-size: 18px; }
.class-day-heading span { color: var(--muted); font-size: 10px; font-weight: 750; }
.class-venue-group + .class-venue-group { border-top: 5px solid #f5f8f9; }
.class-venue-heading { padding: 10px 18px; background: #fbfcfc; border-bottom: 1px solid #e7eef0; }
.class-venue-heading strong { display: flex; align-items: center; gap: 8px; color: #536d74; font-size: 11px; }
.class-venue-heading strong::before { width: 7px; height: 7px; content: ""; background: var(--teal); border-radius: 50%; }
.class-setting-row { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 20px; align-items: center; min-height: 66px; padding: 10px 18px; }
.class-setting-row + .class-setting-row { border-top: 1px solid #e8eff0; }
.class-setting-main { display: grid; grid-template-columns: 122px minmax(0,1fr); gap: 14px; align-items: center; }
.class-setting-main time { color: #344f57; font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 760; white-space: nowrap; }
.class-setting-main strong { font-size: 13px; line-height: 1.5; }
.class-accept { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 9px; align-items: center; color: var(--muted); font-size: 10px; font-weight: 750; }
.class-accept select { width: 100%; height: 42px; padding: 0 11px; background: white; border: 1px solid #cadcdf; border-radius: 10px; font-size: 12px; }
.admin-footer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 13px; padding: 16px 20px; background: #f8fbfc; border-top: 1px solid #e2ecee; }
.admin-footer-actions span { color: var(--muted); font-size: 11px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(10,35,42,.3); border: 0; }
.drawer { width: min(440px,95vw); position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; overflow-y: auto; padding: 25px; background: white; box-shadow: -18px 0 42px rgba(14,42,49,.18); }
.drawer-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #e2ecee; }
.drawer-head h2 { margin: 9px 0 0; }
.drawer-head button { width: 40px; height: 40px; background: #f1f5f6; border: 0; border-radius: 50%; font-size: 20px; }
.detail-list { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 12px; margin: 22px 0; font-size: 12px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; line-height: 1.65; }
.drawer-actions { display: grid; gap: 9px; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: var(--page); }
.login-card { width: min(100%,420px); padding: 30px; }
.login-card img { width: 210px; display: block; margin: 0 auto 28px; mix-blend-mode: multiply; }
.login-card h1 { margin: 0 0 8px; font-size: 26px; text-align: center; }
.login-card > p { margin: 0 0 24px; color: var(--muted); text-align: center; }
.staff-layout { display: grid; gap: 18px; }
.staff-invite-panel { padding-bottom: 18px; }
.staff-invite-form { display: grid; grid-template-columns: 1fr 1.35fr .7fr auto; gap: 12px; align-items: end; padding: 18px 20px 10px; }
.staff-invite-form label, .staff-account-row label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 750; }
.staff-invite-form input, .staff-invite-form select, .staff-account-row select { min-height: 42px; padding: 0 11px; background: white; border: 1px solid #cadcdf; border-radius: 10px; }
.staff-help { margin: 4px 20px 0; color: var(--muted); font-size: 11px; }
.staff-account-list, .staff-invitation-list { display: grid; }
.staff-account-row { display: grid; grid-template-columns: minmax(210px,1fr) 140px 110px auto auto; gap: 12px; align-items: center; padding: 13px 18px; }
.staff-account-row + .staff-account-row, .staff-invitation-row + .staff-invitation-row { border-top: 1px solid #e7eef0; }
.staff-account-row > div, .staff-invitation-row > div { display: grid; gap: 4px; }
.staff-account-row small, .staff-invitation-row small { color: var(--muted); }
.staff-active { display: flex !important; grid-auto-flow: column; align-items: center; justify-content: start; }
.staff-active input { width: 18px; height: 18px; }
.staff-invitation-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.invite-code-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 20px 22px; background: #eaf7f5; border: 1px solid #b9ded8; border-radius: 16px; }
.invite-code-card div { display: grid; gap: 5px; }
.invite-code-card small { color: var(--teal-dark); font-weight: 750; }
.invite-code-card strong { color: var(--teal-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 25px; letter-spacing: .06em; }
.invite-code-card p { margin: 0; color: var(--muted); font-size: 11px; }

@media (max-width: 980px) {
  .menu-grid { grid-template-columns: 1fr; max-width: 620px; }
  .menu-card { min-height: 140px; }
  .schedule-layout { grid-template-columns: 1fr; }
  .admin-sidebar { width: 100%; position: relative; padding: 12px 14px 8px; border-right: 0; border-bottom: 1px solid #dbe7e9; }
  .admin-logo, .admin-account { display: none; }
  .admin-nav { display: flex; overflow-x: auto; margin-top: 0; padding-bottom: 4px; }
  .admin-nav button { flex: 0 0 auto; min-height: 42px; }
  .admin-content { margin-left: 0; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .site-header { min-height: 74px; padding-inline: 13px; }
  .brand img { width: 171px; }
  .public-main { padding-top: 35px; }
  .menu-card { padding: 22px; }
  .form-grid, .choice-grid, .button-row { grid-template-columns: 1fr; }
  .booking-shell .primary, .booking-shell .secondary { min-height: 48px; padding: 11px 14px; font-size: 15px; }
  .booking-shell .button-row { gap: 8px; margin-top: 16px; }
  .booking-shell .form-panel > .full-button { width: 100%; margin-top: 16px; }
  .field.full { grid-column: auto; }
  .button-row .secondary { order: 2; }
  .section-bar { align-items: stretch; flex-direction: column; }
  .venue-pills { width: 100%; }
  .venue-pills button { flex: 1; }
  .class-row { grid-template-columns: 84px minmax(0,1fr); }
  .class-row-actions { grid-column: 2; justify-content: space-between; }
  .accept-tags { justify-content: flex-start; }
  .class-detail-modal { width: 100%; max-height: min(82dvh, 680px); top: auto; bottom: 0; padding: 22px 19px calc(22px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 24px 24px 0 0; transform: translateX(-50%); }
  .admin-header { min-height: 106px; padding: 19px 17px; }
  .admin-main { padding: 17px 12px 48px; }
  .dashboard-date-picker { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: end; padding: 12px; }
  .dashboard-date-picker label { min-width: 0; }
  .dashboard-date-picker input { width: 100%; }
  .dashboard-date-picker .dashboard-today { width: 100%; grid-column: 1 / -1; }
  .dashboard-reservation-wrap { overflow: visible; }
  .dashboard-reservation-table { min-width: 0; display: block; }
  .dashboard-reservation-table thead { display: none; }
  .dashboard-reservation-table tbody { display: grid; }
  .dashboard-reservation-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px 10px; align-items: center; padding: 14px 13px; border-top: 1px solid #e5eef0; }
  .dashboard-reservation-table td { padding: 0; border: 0; }
  .dashboard-reservation-table .booking-cell { grid-column: 1; grid-row: 1; min-width: 0; }
  .dashboard-reservation-table .booking-cell strong { flex-wrap: wrap; gap: 3px 7px; }
  .dashboard-reservation-table .person-cell { grid-column: 1; grid-row: 2; min-width: 0; }
  .dashboard-reservation-table .kind-cell { grid-column: 2; grid-row: 1; }
  .dashboard-reservation-table .status-cell { grid-column: 2; grid-row: 2; }
  .dashboard-reservation-table .detail-cell { grid-column: 3; grid-row: 1 / 3; }
  .filter-bar { grid-template-columns: minmax(0,1fr); padding: 15px; }
  .filter-bar label:last-of-type, .filter-bar button { grid-column: auto; }
  .schedule-toolbar { align-items: flex-start; flex-direction: column; padding: 16px; }
  .admin-month { width: 100%; justify-content: space-between; }
  .schedule-admin-row { grid-template-columns: 74px minmax(0,1fr); gap: 8px; padding: 10px 12px; }
  .state-buttons { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .schedule-admin-row input { grid-column: 1 / -1; }
  .class-settings-list { gap: 12px; padding: 12px; }
  .class-day-heading { padding-inline: 14px; }
  .class-venue-heading { padding-inline: 14px; }
  .class-setting-row { grid-template-columns: 1fr; gap: 9px; padding: 12px 14px; }
  .class-setting-main { grid-template-columns: 112px minmax(0,1fr); gap: 10px; }
  .class-accept { grid-template-columns: 38px minmax(0,1fr); }
  .staff-invite-form { grid-template-columns: 1fr; }
  .staff-account-row { grid-template-columns: 1fr 1fr; }
  .staff-account-row > div { grid-column: 1 / -1; }
  .invite-code-card { align-items: stretch; flex-direction: column; }
  .admin-footer-actions { align-items: stretch; flex-direction: column; }
  .admin-footer-actions button { width: 100%; }
  .legal-definition-list > div { grid-template-columns: 1fr; gap: 5px; }
  .support-specs, .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .public-main { padding-inline: 12px; }
  .menu-card { min-height: 132px; }
  .calendar-panel, .timetable-panel, .form-panel { padding: 16px; }
  .calendar-head, .calendar-grid { gap: 3px; }
  .calendar-day, .calendar-empty { min-height: 42px; }
  .calendar-day { border-radius: 9px; font-size: 13px; }
  .metric-grid { gap: 9px; }
  .metric-card { min-height: 116px; padding: 15px; }
  .admin-nav button i { display: none; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-bar label:last-of-type, .filter-bar button { grid-column: auto; }
  .admin-month { align-items: stretch; flex-direction: column; }
  .admin-month > div { display: flex; justify-content: space-between; }
  .state-buttons button { min-height: 34px; padding-inline: 6px; font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
