:root {
  --ink: #22424c;
  --muted: #66818a;
  --teal: #3ec1c9;
  --teal-dark: #2ba6ae;
  --teal-deep: #1c8b93;
  --teal-pale: #e4f6f7;
  --mint: #b5d041;
  --mint-dark: #8ba32a;
  --mint-pale: #f5f8e3;
  --sky: #53a6d8;
  --sky-dark: #3a83b3;
  --sky-pale: #edf6fc;
  --amber: #e8b45c;
  --amber-dark: #9a7027;
  --amber-pale: #fdf7ea;
  --line: #dcecee;
  --surface: #ffffff;
  --background: #f2f5f5;
  --danger: #d15a5e;
  --shadow: 0 16px 44px rgba(14, 120, 131, 0.09);
  font-family: "Noto Sans JP", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; line-height: 1.75; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--teal-dark); }
[hidden] { display: none !important; }

.shell { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.site-header { background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 32px; border-radius: 9px; background: var(--teal); color: white; font-size: 0.78rem; letter-spacing: 0.08em; }
.header-note { color: var(--muted); font-size: 0.88rem; }

body:not(.admin-page) .site-header { position: relative; box-shadow: 0 2px 14px rgba(14, 120, 131, 0.05); }
body:not(.admin-page) .site-header::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--teal) 0 80%, var(--mint) 80%); content: ""; }
body:not(.admin-page) .brand-mark { background: var(--teal); }
body:not(.admin-page) .header-note { color: var(--teal-dark); font-weight: 700; }

.hero { position: relative; overflow: hidden; background: var(--teal); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 290px; height: 290px; right: -70px; top: -140px; border: 48px solid rgba(255, 255, 255, 0.12); }
.hero::after { width: 210px; height: 210px; left: -95px; bottom: -145px; background: rgba(255, 255, 255, 0.1); }
.hero-inner { position: relative; z-index: 1; padding: 64px 0 56px; text-align: center; }
.eyebrow { margin: 0 0 8px; color: var(--teal-dark); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.19em; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.85); }
.hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.35; letter-spacing: 0.04em; color: #ffffff; }
.hero-copy { margin: 16px auto 0; color: rgba(255, 255, 255, 0.94); font-size: clamp(1rem, 2.2vw, 1.15rem); }
.benefits { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.benefits li { padding: 7px 19px; border: 0; border-radius: 999px; background: #ffffff; color: var(--teal-deep); font-size: 0.88rem; font-weight: 800; }
.benefits li:nth-child(2) { background: #ffffff; color: var(--teal-deep); }
.benefits li:nth-child(3) { background: var(--mint); color: #ffffff; }
.test-banner { max-width: 760px; margin: 26px auto 0; padding: 12px 18px; border: 1px solid rgba(232, 180, 92, 0.65); border-radius: 10px; background: var(--amber-pale); color: var(--amber-dark); text-align: left; font-size: 0.88rem; }

.booking-section { padding: 48px 0 78px; }
.booking-layout { width: min(1680px, calc(100% - 80px)); margin-inline: auto; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: start; }
.booking-layout:has(> .mini-calendar[hidden]) { display: block; width: min(1080px, calc(100% - 80px)); }
.booking-shell { width: 100%; min-width: 0; }
.mini-calendar { width: 300px; margin-top: 60px; padding: 24px 22px 20px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 12px 32px rgba(14, 120, 131, 0.07); }
.mini-calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-calendar-header h2 { margin: 0; font-size: 1.05rem; }
.mini-calendar-navigation { display: flex; gap: 2px; }
.mini-calendar-navigation button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #3f6069; cursor: pointer; font-size: 1.4rem; }
.mini-calendar-navigation button:hover, .mini-calendar-navigation button:focus-visible { background: var(--teal-pale); outline: none; }
.mini-calendar-navigation button:disabled { cursor: default; opacity: 0.25; background: transparent; }
.mini-calendar-weekdays, .mini-calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.mini-calendar-weekdays { margin-top: 15px; color: #6c8289; font-size: 0.77rem; text-align: center; }
.mini-calendar-weekdays span { padding: 4px 0; }
.mini-calendar-days { row-gap: 3px; margin-top: 3px; }
.mini-calendar-day { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #2b4750; cursor: pointer; font-size: 0.82rem; }
.mini-calendar-day:hover:not(:disabled), .mini-calendar-day:focus-visible:not(:disabled) { background: #dcf2f4; outline: none; }
.mini-calendar-day.is-current-week:not(.is-today) { background: #ecf8f9; }
.mini-calendar-day.is-today { background: var(--mint); color: white; font-weight: 900; box-shadow: 0 3px 9px rgba(181, 208, 65, 0.4); }
.mini-calendar-day.has-open-slots::after { position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--mint-dark); content: ""; }
.mini-calendar-day.is-today::after { background: white; }
.mini-calendar-day.is-outside-month { color: #9fb1b5; }
.mini-calendar-day:disabled { cursor: default; color: #c6d2d4; }
.mini-calendar > p { margin: 14px 0 0; color: var(--muted); font-size: 0.75rem; line-height: 1.6; }
.mobile-slot-picker { display: none; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 26px; }
.step { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; color: #8ba0a6; font-size: 0.88rem; font-weight: 700; }
.step:not(:last-child)::after { content: ""; position: absolute; left: calc(50% + 47px); right: calc(-50% + 47px); top: 17px; height: 1px; background: #c9e0e3; }
.step span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ddedef; color: #6d858a; }
.step.is-active { color: var(--teal-dark); }
.step.is-active span { background: var(--teal); color: white; box-shadow: 0 4px 13px rgba(62, 193, 201, 0.32); }
.message { margin-bottom: 20px; padding: 14px 18px; border: 1px solid #e5b2b4; border-radius: 10px; background: #fdf2f2; color: #8f3a3d; }

.booking-card { padding: clamp(24px, 5vw, 46px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.card-heading { display: flex; align-items: flex-start; gap: 17px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.heading-number { color: var(--mint-dark); font-size: 0.82rem; font-weight: 900; letter-spacing: 0.1em; padding-top: 6px; }
.card-heading h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.65rem); line-height: 1.45; }
.card-heading p { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 180px; color: var(--muted); }
.spinner { width: 24px; height: 24px; border: 3px solid #d6edef; border-top-color: var(--teal); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.calendar-controls { padding-top: 26px; }
.calendar-toolbar { display: flex; align-items: center; gap: 10px; }
.calendar-today-button, .calendar-nav-button { border: 1px solid #c3dcdf; background: white; color: #33555e; cursor: pointer; font-weight: 700; transition: background 0.15s ease, border-color 0.15s ease; }
.calendar-today-button { min-height: 40px; padding: 0 16px; border-radius: 9px; font-size: 0.86rem; }
.calendar-navigation { display: flex; gap: 3px; }
.calendar-nav-button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 1.55rem; line-height: 1; }
.calendar-today-button:hover, .calendar-today-button:focus-visible, .calendar-nav-button:hover, .calendar-nav-button:focus-visible { border-color: var(--teal); background: var(--teal-pale); outline: none; }
.calendar-nav-button:disabled { cursor: default; opacity: 0.35; background: white; }
.calendar-range { margin: 0 0 0 8px; color: var(--ink); font-size: 1.08rem; line-height: 1.4; }
.calendar-legend { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px 18px; margin: 16px 0 9px; color: var(--muted); font-size: 0.76rem; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.is-open { background: var(--teal); }
.legend-dot.is-closed { background: #d9e5e6; }
.calendar-scroll-hint { display: none; margin: 10px 0 6px; color: var(--muted); font-size: 0.75rem; }
.slot-list { padding-top: 4px; }
.calendar-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: white; scrollbar-color: #a4ced3 transparent; }
.calendar-grid { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.calendar-grid th, .calendar-grid td { border-right: 1px solid #e4f0f1; border-bottom: 1px solid #e4f0f1; }
.calendar-grid tr > :last-child { border-right: 0; }
.calendar-grid tbody tr:last-child > * { border-bottom: 0; }
.calendar-grid thead th { height: 70px; padding: 8px; background: #f8fcfc; text-align: center; }
.calendar-corner { width: 72px; color: #7d9298; font-size: 0.72rem; font-weight: 600; }
.calendar-day-heading span { display: block; color: var(--muted); font-size: 0.73rem; font-weight: 600; }
.calendar-day-heading strong { display: inline-grid; place-items: center; min-width: 38px; height: 34px; margin-top: 2px; border-radius: 999px; color: #315058; font-size: 1rem; }
.calendar-day-heading.is-today strong { background: var(--mint); color: white; box-shadow: 0 3px 9px rgba(181, 208, 65, 0.4); }
.calendar-time { position: sticky; left: 0; z-index: 1; width: 72px; padding: 0 9px; background: #f8fcfc; color: #4f6b73; font-size: 0.78rem; font-weight: 700; text-align: center; }
.calendar-grid td { height: 76px; padding: 7px; background: white; text-align: center; }
.calendar-slot-button { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; height: 100%; min-height: 56px; border: 0; border-radius: 9px; background: var(--teal); color: #ffffff; cursor: pointer; font-size: 0.78rem; font-weight: 700; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
.calendar-slot-button > span { font-size: 1rem; }
.calendar-slot-button:hover, .calendar-slot-button:focus-visible { transform: translateY(-1px); background: var(--teal-dark); box-shadow: 0 4px 12px rgba(62, 193, 201, 0.35); outline: none; }
.calendar-unavailable { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 9px; background: #f5f8f8; color: #b3c2c4; }
.empty-state { margin-top: 28px; padding: 26px; border-radius: 12px; background: var(--background); color: var(--muted); text-align: center; }

.selected-slot { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 16px; margin: 26px 0 30px; padding: 17px 20px; border-left: 4px solid var(--teal-deep); border-radius: 0 10px 10px 0; background: var(--teal); }
.selected-slot > span { color: rgba(255, 255, 255, 0.85); font-size: 0.84rem; }
.selected-slot strong { color: #ffffff; }
.selected-slot .text-button { color: #ffffff; }
.text-button { border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--teal-dark); cursor: pointer; font-size: 0.83rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; color: #32515a; font-size: 0.9rem; font-weight: 700; }
.field-full { grid-column: 1 / -1; }
.field span b { margin-left: 5px; padding: 2px 6px; border-radius: 4px; background: #e0666a; color: white; font-size: 0.66rem; }
.field span small { margin-left: 5px; color: var(--muted); font-weight: 500; }
.field input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #bcd6d9; border-radius: 9px; background: white; color: var(--ink); outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42, 183, 193, 0.16); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-help { color: var(--muted); font-weight: 400; }
.field-error { min-height: 1em; color: var(--danger); font-size: 0.78rem; font-weight: 600; }
.method-box { display: flex; align-items: center; gap: 13px; margin-top: 28px; padding: 16px 18px; border: 1px solid #a9dee2; border-radius: 12px; background: #f2fbfc; }
.method-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: white; }
.method-box div { display: flex; flex-direction: column; flex: 1; }
.method-box small { color: var(--muted); }
.method-check { color: var(--mint-dark); font-size: 0.8rem; font-weight: 800; }
.consent { display: flex; align-items: flex-start; justify-content: center; gap: 10px; margin-top: 27px; color: #41606a; font-size: 0.88rem; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 5px; accent-color: var(--teal); }
.consent-error { display: block; text-align: center; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 20px; width: min(100%, 460px); min-height: 60px; margin: 28px auto 0; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--teal); color: white; cursor: pointer; font-size: 1rem; font-weight: 900; box-shadow: 0 10px 24px rgba(43, 166, 174, 0.3); transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease; }
.primary-button:hover, .primary-button:focus-visible { transform: translateY(-2px); background: var(--teal-dark); box-shadow: 0 13px 30px rgba(43, 166, 174, 0.38); outline: none; }
.primary-button:disabled { cursor: wait; opacity: 0.65; transform: none; }
.submit-note { margin: 9px 0 0; color: var(--muted); font-size: 0.78rem; text-align: center; }

.support-section { padding: 0 0 72px; }
.support-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; padding: 35px 42px; border: 1px solid var(--line); border-top: 4px solid var(--mint); border-radius: 18px; background: white; }
.support-card h2 { margin: 0; font-size: 1.3rem; }
.support-card p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; }
.support-card address { display: flex; flex-direction: column; padding-left: 36px; border-left: 1px solid var(--line); font-style: normal; }
.support-card address a { font-weight: 800; text-decoration: none; }
.support-card address small { margin-top: 7px; color: var(--muted); }
footer { padding: 32px 0; background: #354052; color: rgba(255, 255, 255, 0.85); font-size: 0.8rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
footer a { color: white; }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 680px); }
  .header-note { display: none; }
  .hero-inner { padding: 44px 0 40px; }
  .booking-section { padding: 32px 0 56px; }
  .step { flex-direction: column; gap: 4px; font-size: 0.74rem; }
  .step:not(:last-child)::after { left: calc(50% + 26px); right: calc(-50% + 26px); top: 17px; }
  .booking-card { padding: 23px 18px 28px; border-radius: 15px; }
  .card-heading { gap: 10px; }
  .calendar-controls, .slot-list { display: none !important; }
  .mobile-slot-picker { display: block; padding-top: 24px; }
  .mobile-picker-label { margin: 0 0 9px; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
  .mobile-date-tabs { display: flex; gap: 8px; overflow-x: auto; margin-inline: -18px; padding: 2px 18px 12px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .mobile-date-tabs::-webkit-scrollbar { display: none; }
  .mobile-date-tab { flex: 0 0 72px; min-height: 62px; padding: 7px 6px; border: 1px solid #c6dee1; border-radius: 12px; background: white; color: #4f6b73; cursor: pointer; scroll-snap-align: center; }
  .mobile-date-tab strong, .mobile-date-tab span { display: block; }
  .mobile-date-tab strong { color: var(--ink); font-size: 0.95rem; }
  .mobile-date-tab span { margin-top: 1px; font-size: 0.7rem; }
  .mobile-date-tab.is-selected { border-color: var(--teal); background: var(--teal); color: white; box-shadow: 0 5px 14px rgba(62, 193, 201, 0.28); }
  .mobile-date-tab.is-selected strong { color: white; }
  .mobile-selected-day { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 15px 0 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .mobile-selected-day h3 { margin: 0; font-size: 1.05rem; }
  .mobile-selected-day p { margin: 2px 0 0; color: var(--muted); font-size: 0.76rem; }
  .mobile-selected-day > span { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: var(--teal-pale); color: var(--teal-deep); font-size: 0.67rem; font-weight: 800; }
  .mobile-slot-times { display: grid; gap: 9px; margin-top: 14px; }
  .mobile-time-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px; padding: 11px 16px; border: 0; border-radius: 12px; background: var(--teal); color: rgba(255, 255, 255, 0.9); cursor: pointer; text-align: left; }
  .mobile-time-button strong { color: #ffffff; font-size: 1.12rem; }
  .mobile-time-button span { font-size: 0.76rem; font-weight: 800; }
  .mobile-time-button:active { background: var(--teal-dark); }
  .calendar-toolbar { flex-wrap: wrap; }
  .calendar-range { flex-basis: 100%; order: -1; margin: 0 0 5px; font-size: 1rem; }
  .calendar-legend { justify-content: flex-start; }
  .calendar-scroll-hint { display: block; }
  .calendar-grid { min-width: 620px; }
  .selected-slot { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .selected-slot > span { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .method-check { display: none; }
  .support-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
  .support-card address { padding: 22px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 14px; }
}

@media (max-width: 900px) {
  .booking-layout { display: block; width: min(900px, calc(100% - 40px)); }
  .mini-calendar { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.visually-hidden { 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; }
.admin-page { min-height: 100vh; background: #f2f5f5; }
.admin-main { width: min(1240px, calc(100% - 40px)); margin-inline: auto; padding: 48px 0 80px; }
.admin-login-card { width: min(100%, 480px); margin: 54px auto 0; padding: 38px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.admin-login-card h1 { margin: 0; font-size: 1.65rem; }
.admin-login-card > p:not(.eyebrow) { margin: 9px 0 28px; color: var(--muted); font-size: 0.9rem; }
.admin-login-card .primary-button { margin-top: 18px; }
.admin-dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.admin-dashboard-heading h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.admin-last-updated { margin: 5px 0 0; color: var(--muted); font-size: 0.78rem; }
.admin-heading-actions { display: flex; align-items: center; gap: 14px; }
.admin-secondary-button { min-height: 42px; padding: 8px 18px; border: 1px solid #b3d6da; border-radius: 9px; background: white; color: var(--teal-dark); cursor: pointer; font-weight: 800; }
.admin-secondary-button:disabled { cursor: wait; opacity: 0.55; }
.admin-text-button { padding: 8px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.82rem; }
.admin-test-notice { max-width: none; margin: 24px 0 0; }
.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.admin-summary article { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.admin-summary span { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.admin-summary strong { color: var(--teal-dark); font-size: 1.8rem; line-height: 1; }
.admin-view-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.admin-view-switch { display: inline-flex; flex: 0 0 auto; padding: 4px; border-radius: 11px; background: #e8f3f4; }
.admin-view-switch button { min-height: 38px; padding: 7px 16px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.8rem; font-weight: 800; }
.admin-view-switch button.is-active { background: white; color: var(--teal-dark); box-shadow: 0 2px 9px rgba(14, 120, 131, 0.13); }
.admin-view-bar .admin-list-tools { flex: 1; justify-content: flex-end; margin: 0; }
.admin-calendar-card { margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 12px 34px rgba(14, 120, 131, 0.06); }
.admin-calendar-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-calendar-main { min-width: 0; }
.admin-mini-calendar { padding: 20px 18px 17px; border: 1px solid #d3e6e9; border-radius: 14px; background: #f9fdfd; }
.admin-mini-calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-mini-calendar-header h2 { margin: 0; font-size: 1rem; }
.admin-mini-calendar-header > div { display: flex; gap: 2px; }
.admin-mini-calendar-header button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--admin-teal-dark); cursor: pointer; font-size: 1.25rem; }
.admin-mini-calendar-header button:hover, .admin-mini-calendar-header button:focus-visible { background: var(--admin-teal-pale); outline: none; }
.admin-mini-calendar-weekdays, .admin-mini-calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.admin-mini-calendar-weekdays { margin-top: 12px; color: #71888e; font-size: 0.68rem; text-align: center; }
.admin-mini-calendar-days { row-gap: 2px; margin-top: 3px; }
.admin-mini-calendar-day { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #325059; cursor: pointer; font-size: 0.72rem; }
.admin-mini-calendar-day:hover, .admin-mini-calendar-day:focus-visible { background: var(--admin-teal-pale); outline: none; }
.admin-mini-calendar-day.is-current-week:not(.is-today) { background: var(--admin-mint-pale); }
.admin-mini-calendar-day.is-today { background: var(--admin-teal-dark); color: white; font-weight: 900; }
.admin-mini-calendar-day.is-outside-month { color: #a7b8bc; }
.admin-mini-calendar-day.has-bookings::after { position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--admin-mint-dark); content: ""; }
.admin-mini-calendar-day.is-today::after { background: white; }
.admin-mini-calendar > p { display: flex; align-items: center; gap: 7px; margin: 13px 0 0; color: var(--muted); font-size: 0.7rem; }
.admin-mini-calendar > p span { width: 6px; height: 6px; border-radius: 50%; background: var(--admin-mint-dark); }
.admin-calendar-toolbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; margin-bottom: 20px; }
.admin-calendar-toolbar h2 { margin: 0; font-size: 1.24rem; line-height: 1.4; }
.admin-calendar-navigation { display: flex; align-items: center; gap: 7px; }
.admin-calendar-nav-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #c3dcdf; border-radius: 50%; background: white; color: #33555e; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.admin-calendar-nav-button:hover, .admin-calendar-nav-button:focus-visible { border-color: var(--teal); background: var(--teal-pale); outline: none; }
.admin-calendar-legend { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 0.76rem; }
.admin-calendar-legend span { width: 9px; height: 9px; border-radius: 3px; background: var(--teal); }
.admin-calendar-scroll-hint { display: none; margin: -6px 0 10px; color: var(--muted); font-size: 0.74rem; }
.admin-calendar-scroll { overflow: auto; max-height: 720px; border: 1px solid var(--line); border-radius: 14px; scrollbar-color: #a4ced3 transparent; }
.admin-week-calendar { --admin-hour-height: 72px; display: grid; grid-template-columns: 64px repeat(7, minmax(130px, 1fr)); grid-template-rows: 68px calc(var(--admin-hour-height) * 9); min-width: 1000px; background: white; }
.admin-calendar-corner, .admin-calendar-day-heading { position: sticky; top: 0; z-index: 4; grid-row: 1; border-bottom: 1px solid var(--line); background: #f8fcfc; }
.admin-calendar-corner { display: flex; align-items: flex-end; justify-content: center; grid-column: 1; padding-bottom: 9px; color: #86999e; font-size: 0.64rem; }
.admin-calendar-day-heading { display: flex; align-items: center; justify-content: center; flex-direction: column; border-left: 1px solid #e6f1f2; }
.admin-calendar-day-heading span { color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.admin-calendar-day-heading strong { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; }
.admin-calendar-day-heading.is-today strong { background: var(--teal); color: white; }
.admin-calendar-time-column { position: relative; grid-column: 1; grid-row: 2; border-right: 1px solid var(--line); background: #f8fcfc; }
.admin-calendar-time-column span { position: absolute; right: 9px; transform: translateY(-50%); color: #6f858b; font-size: 0.67rem; line-height: 1; }
.admin-calendar-time-column span:first-child { transform: translateY(0); }
.admin-calendar-time-column span:last-child { transform: translateY(-100%); }
.admin-calendar-day-column { position: relative; grid-row: 2; border-right: 1px solid #e6f1f2; background-color: white; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--admin-hour-height) - 1px), #e6f1f2 calc(var(--admin-hour-height) - 1px), #e6f1f2 var(--admin-hour-height)); }
.admin-calendar-day-column:last-child { border-right: 0; }
.admin-calendar-day-column.is-today { background-color: #fafdfd; }
.admin-calendar-event { position: absolute; left: 4px; right: 4px; z-index: 2; overflow: hidden; padding: 3px 7px; border: 0; border-left: 4px solid var(--teal-dark); border-radius: 6px; background: #ddf3f5; color: #0b6570; cursor: pointer; line-height: 1.15; text-align: left; box-shadow: 0 2px 5px rgba(14, 120, 131, 0.09); }
.admin-calendar-event:hover, .admin-calendar-event:focus-visible { z-index: 3; background: #c8ebee; outline: 2px solid rgba(42, 183, 193, 0.35); }
.admin-calendar-event strong { margin-right: 5px; font-size: 0.69rem; }
.admin-calendar-event span { font-size: 0.69rem; font-weight: 800; }
.admin-calendar-event small { display: none; }
.admin-calendar-event.is-cancelled { border-left-color: #8b9a9c; background: #eef1f1; color: #66777a; text-decoration: line-through; }
.admin-calendar-card > .empty-state { margin: 15px 0 0; padding: 16px; }
.admin-list-card { margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 12px 34px rgba(14, 120, 131, 0.06); }
.admin-list-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.admin-list-tools label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.admin-list-tools select, .admin-list-tools input { height: 42px; padding: 0 12px; border: 1px solid #bcd6d9; border-radius: 9px; background: white; color: var(--ink); }
.admin-list-tools select { min-width: 160px; }
.admin-search-field { width: min(100%, 340px); }
.admin-table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.admin-table th { padding: 11px 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.72rem; text-align: left; }
.admin-table td { padding: 17px 13px; border-bottom: 1px solid #e7f1f2; vertical-align: top; }
.admin-table td > strong, .admin-table td > small { display: block; }
.admin-table td > small { margin-top: 3px; color: var(--muted); }
.admin-contact-links { display: flex; flex-direction: column; }
.admin-contact-links a { overflow-wrap: anywhere; text-decoration: none; }
.admin-status { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.admin-status.is-confirmed { background: var(--teal-pale); color: var(--teal-deep); }
.admin-status.is-cancelled { background: #f1f3f3; color: #748588; }
.admin-zoom-link { display: inline-block; padding: 5px 9px; border: 1px solid #9edce1; border-radius: 8px; text-decoration: none; white-space: nowrap; }
.admin-list-card > .empty-state { margin-top: 0; }
.admin-booking-dialog { width: min(520px, calc(100% - 28px)); padding: 28px; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 24px 80px rgba(9, 58, 64, 0.28); }
.admin-booking-dialog::backdrop { background: rgba(11, 47, 52, 0.46); backdrop-filter: blur(2px); }
.admin-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.admin-dialog-heading h2 { margin: 0; font-size: 1.35rem; }
.admin-dialog-heading button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #e8f3f4; color: #4b666d; cursor: pointer; font-size: 1.35rem; }
.admin-dialog-details { margin: 4px 0 0; }
.admin-dialog-details div { display: contents; }
.admin-dialog-details dt, .admin-dialog-details dd { margin: 0; padding: 11px 0; border-bottom: 1px solid #eaf3f4; }
.admin-dialog-details dt { float: left; clear: left; width: 92px; color: var(--muted); font-size: 0.76rem; }
.admin-dialog-details dd { min-height: 48px; padding-left: 108px; font-size: 0.88rem; font-weight: 700; overflow-wrap: anywhere; }
.admin-dialog-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.admin-dialog-actions a { padding: 8px 13px; border: 1px solid #9edce1; border-radius: 9px; background: #f2fbfc; font-size: 0.8rem; font-weight: 800; text-decoration: none; }

/* Admin palette: fresh teal system aligned with the booking page. */
.admin-page {
  --admin-teal: #3ec1c9;
  --admin-teal-dark: #2ba6ae;
  --admin-teal-deep: #1c8b93;
  --admin-teal-pale: #e4f6f7;
  --admin-mint: #b5d041;
  --admin-mint-dark: #8ba32a;
  --admin-mint-pale: #f5f8e3;
  --admin-sky: #53a6d8;
  --admin-sky-dark: #3a83b3;
  --admin-sky-pale: #edf6fc;
  --admin-navy: #24444d;
  color: var(--admin-navy);
  background: #f2f5f5;
}
.admin-page .site-header { position: relative; border-bottom-color: #d7e6e9; box-shadow: 0 2px 12px rgba(14, 120, 131, 0.05); }
.admin-page .site-header::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--admin-teal) 0 80%, var(--admin-mint) 80%); content: ""; }
.admin-page .brand-mark { background: var(--admin-teal); }
.admin-page .header-note { color: var(--admin-teal-dark); font-weight: 700; }
.admin-page .eyebrow { color: var(--admin-teal-dark); }
.admin-dashboard-heading h1 { color: var(--admin-navy); letter-spacing: 0.01em; }
.admin-secondary-button { border-color: #b3d6da; color: var(--admin-teal-dark); }
.admin-secondary-button:hover, .admin-secondary-button:focus-visible { border-color: var(--admin-teal); background: var(--admin-teal-pale); outline: none; }
.admin-test-notice { border-color: rgba(232, 180, 92, 0.65); background: var(--amber-pale); color: var(--amber-dark); }
.admin-summary article { position: relative; overflow: hidden; border: 0; background: var(--admin-teal); box-shadow: 0 10px 26px rgba(43, 166, 174, 0.2); }
.admin-summary article::after { position: absolute; width: 96px; height: 96px; right: -30px; bottom: -44px; border-radius: 50%; content: ""; background: rgba(255, 255, 255, 0.14); }
.admin-summary article:nth-child(3) { background: var(--admin-mint); box-shadow: 0 10px 26px rgba(181, 208, 65, 0.28); }
.admin-summary article span { color: rgba(255, 255, 255, 0.92); }
.admin-summary article strong { color: white; }
.admin-view-bar, .admin-calendar-card, .admin-list-card { border-color: #d7e6e9; box-shadow: 0 11px 30px rgba(14, 120, 131, 0.06); }
.admin-view-switch { background: #e8f3f4; }
.admin-view-switch button.is-active { color: var(--admin-teal-dark); box-shadow: inset 0 -3px 0 var(--admin-teal), 0 2px 9px rgba(14, 120, 131, 0.1); }
.admin-list-tools select:focus, .admin-list-tools input:focus { border-color: var(--admin-teal); outline: 3px solid rgba(42, 183, 193, 0.16); }
.admin-calendar-nav-button { border-color: #c0dade; color: var(--admin-teal-dark); }
.admin-calendar-nav-button:hover, .admin-calendar-nav-button:focus-visible { border-color: var(--admin-teal); background: var(--admin-teal-pale); }
.admin-calendar-legend span { background: var(--admin-teal); }
.admin-calendar-day-heading.is-today strong { background: var(--admin-teal-dark); color: white; box-shadow: 0 3px 10px rgba(42, 183, 193, 0.3); }
.admin-calendar-day-column.is-today { background-color: #f7fcfd; }
.admin-calendar-event { border-left-color: var(--admin-teal); background: var(--admin-teal-pale); color: #0b6570; }
.admin-calendar-event:hover, .admin-calendar-event:focus-visible { background: #d3f0f2; outline-color: rgba(42, 183, 193, 0.4); }
.admin-calendar-event.is-cancelled { border-left-color: #b6c4c7; background: #f0f3f4; color: #748588; }
.admin-status.is-confirmed { background: var(--admin-teal-pale); color: var(--admin-teal-deep); }
.admin-status.is-cancelled { background: #f0f3f4; color: #748588; }
.admin-zoom-link { border-color: #a8d3ec; background: var(--admin-sky-pale); color: var(--admin-sky-dark); }
.admin-booking-dialog { border-top: 5px solid var(--admin-teal); }
.admin-dialog-heading button { background: var(--admin-teal-pale); color: var(--admin-teal-deep); }
.admin-dialog-actions a { border-color: #a8d3ec; background: var(--admin-sky-pale); color: var(--admin-sky-dark); }
.admin-dialog-actions a:first-child { border-color: #9edce1; background: var(--admin-teal-pale); color: var(--admin-teal-deep); }

@media (max-width: 900px) {
  .admin-calendar-layout { grid-template-columns: 1fr; }
  .admin-mini-calendar { display: none; }
}

@media (max-width: 700px) {
  .admin-main { width: min(100% - 28px, 620px); padding-top: 30px; }
  .admin-login-card { margin-top: 22px; padding: 28px 22px; }
  .admin-dashboard-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .admin-summary { grid-template-columns: 1fr; gap: 9px; }
  .admin-summary article { padding: 16px 18px; }
  .admin-view-bar { align-items: stretch; flex-direction: column; padding: 14px; }
  .admin-view-switch { align-self: stretch; }
  .admin-view-switch button { flex: 1; }
  .admin-view-bar .admin-list-tools { align-items: stretch; }
  .admin-calendar-card { margin-inline: -2px; padding: 16px 12px; }
  .admin-calendar-toolbar { grid-template-columns: 1fr; gap: 12px; }
  .admin-calendar-toolbar h2 { grid-row: 1; font-size: 1.05rem; }
  .admin-calendar-navigation { grid-row: 2; }
  .admin-calendar-legend { display: none; }
  .admin-calendar-scroll-hint { display: block; }
  .admin-calendar-scroll { max-height: 650px; }
  .admin-week-calendar { grid-template-columns: 54px repeat(7, 112px); min-width: 838px; }
  .admin-calendar-event { left: 3px; right: 3px; padding-inline: 5px; }
  .admin-list-card { padding: 18px 14px; }
  .admin-list-tools { align-items: stretch; flex-direction: column; }
  .admin-search-field { width: 100%; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table thead { display: none; }
  .admin-table tr { margin-bottom: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
  .admin-table td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid #eaf3f4; }
  .admin-table td:last-child { border-bottom: 0; }
  .admin-table td::before { color: var(--muted); content: attr(data-label); font-size: 0.72rem; font-weight: 700; }
}

.completion-main, .document-main { min-height: calc(100vh - 70px); padding: 56px 0 80px; }
.completion-shell { max-width: 760px; }
.completion-card { text-align: center; }
.completion-card h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.completion-card > p:not(.eyebrow, .test-banner, .submit-note) { color: var(--muted); }
.completion-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--teal); color: white; font-size: 2rem; font-weight: 900; box-shadow: 0 8px 22px rgba(62, 193, 201, 0.3); }
.test-icon { background: var(--sky); }
.booking-summary { margin: 30px 0; border-top: 1px solid var(--line); text-align: left; }
.booking-summary div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 15px 10px; border-bottom: 1px solid var(--line); }
.booking-summary dt { color: var(--muted); font-size: 0.84rem; }
.booking-summary dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.completion-divider { margin: 34px 0 22px; border: 0; border-top: 1px solid var(--line); }
.cancel-button { border: 0; border-bottom: 1px solid currentColor; background: transparent; color: #8a5555; cursor: pointer; font-size: 0.85rem; }
.cancel-button:disabled { opacity: 0.5; cursor: wait; }
.completion-card .message { margin-top: 20px; text-align: center; }
.compact-card { max-width: 700px; }
.document-card { max-width: 820px; }
.document-card h1 { margin-top: 0; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.document-card h2 { margin: 30px 0 7px; font-size: 1.12rem; color: var(--teal-dark); }
.document-card p, .document-card address { color: #4c6971; font-style: normal; }

@media (max-width: 560px) {
  .booking-summary div { grid-template-columns: 1fr; gap: 3px; }
  .completion-main, .document-main { padding-top: 30px; }
}
