:root {
  font-family: "DM Sans", "Noto Sans TC", sans-serif;
  color: #282a25;
  background: #f7f6f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #282a25;
  --muted: #777971;
  --line: #e7e5de;
  --paper: #fffefa;
  --canvas: #f7f6f2;
  --green: #536959;
  --green-dark: #35493a;
  --sage: #e4ebe2;
  --load-low: #fffefa;
  --load-light: #f6efc6;
  --load-medium: #f2d8ac;
  --load-high: #eebf98;
  --load-full: #e9b5b1;
  --closed: #e8e8e5;
  --shadow: 0 16px 46px rgba(44, 48, 38, .055);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.site-header { height: 76px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; background: rgba(255,254,250,.88); border-bottom: 1px solid rgba(231,229,222,.7); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 38px; border: 1px dashed #b6c3b3; border-radius: 50%; background: #fffefa; }
.brand-name { display: flex; flex-direction: column; gap: 1px; }
.brand-name strong { font-family: "Noto Serif TC", serif; font-size: 17px; letter-spacing: .08em; }
.brand-name small { color: var(--muted); font-size: 9px; letter-spacing: .19em; }
.header-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; color: #666a61; }
.header-nav a { padding: 9px 0; }
.header-nav button { border: 0; padding: 9px 0; background: transparent; color: inherit; font: inherit; }
.header-nav a.active { color: var(--green-dark); border-bottom: 1px solid var(--green); }
.booking-page { max-width: 1200px; margin: 0 auto; padding: 54px 28px 88px; }
.booking-intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: 38px; align-items: end; margin: 0 0 32px; }
.eyebrow { color: #7a8679; letter-spacing: .18em; text-transform: uppercase; font-size: 10px; font-weight: 600; }
h1,h2,h3,p { margin-top: 0; }
.booking-intro h1 { font-family: "Noto Serif TC", serif; font-size: clamp(28px, 4vw, 42px); letter-spacing: .035em; line-height: 1.45; font-weight: 500; margin: 8px 0 7px; }
.booking-intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.intro-note { border-left: 1px solid #cbd2c7; padding: 8px 0 8px 20px; color: #73776e; font-size: 12px; line-height: 1.8; }
.salon-info { display: grid; align-self: end; gap: 8px; }
.salon-info-title { color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.salon-address { display: grid; gap: 2px; color: #656961; line-height: 1.65; }
.salon-map-link { color: var(--green-dark); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.salon-hours { display: grid; gap: 4px; padding-top: 7px; border-top: 1px solid #e7e5de; }
.salon-hours > div { display: flex; justify-content: space-between; gap: 12px; }
.salon-hours-heading { margin-bottom: 1px; color: var(--ink); font-size: 11px; }
.salon-hours time { color: #50574e; font-variant-numeric: tabular-nums; white-space: nowrap; }
.salon-booking-note { margin: 0; color: #92948d; font-size: 10px; line-height: 1.6; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); gap: 22px; align-items: start; }
.surface { background: var(--paper); border: 1px solid #e9e7e0; border-radius: 18px; box-shadow: var(--shadow); }
.booking-main { padding: clamp(20px, 3.2vw, 34px); }
.step-block + .step-block { margin-top: 31px; padding-top: 27px; border-top: 1px solid #efeee9; }
.step-heading { display: flex; align-items: baseline; gap: 11px; margin-bottom: 16px; }
.step-number { font-size: 11px; color: #879082; letter-spacing: .08em; }
.step-heading h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: .025em; }
.step-hint { margin-left: auto; color: #92948e; font-size: 11px; }
.service-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.service-card { text-align: left; padding: 15px 16px 13px; border: 1px solid var(--line); background: #fffefa; border-radius: 12px; color: var(--ink); transition: border-color .15s ease, background .15s ease; min-width: 0; }
.service-card:hover { border-color: #aab8aa; }
.service-card.selected { border-color: #738a75; background: #f5f8f2; box-shadow: inset 0 0 0 1px #738a75; }
.service-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.service-top strong { font-size: 14px; font-weight: 600; }
.service-price { white-space: nowrap; font-size: 13px; color: var(--green-dark); font-weight: 600; }
.service-card p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 8px 0 10px; }
.service-meta { color: #85877f; font-size: 10px; letter-spacing: .025em; }
.staff-list { display: flex; gap: 10px; overflow-x: auto; padding: 1px 1px 6px; scrollbar-width: thin; }
.staff-card { min-width: 135px; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fffefa; color: var(--ink); }
.staff-card.selected { border-color: #718875; background: #f4f7f1; }
.avatar { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--sage); color: #46604c; font-family: "Noto Serif TC",serif; font-size: 16px; }
.avatar.rose { background: #f2e2de; color: #875d57; }
.avatar.sand { background: #efe7d8; color: #796744; }
.avatar.blue { background: #e1e9eb; color: #526d73; }
.staff-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.staff-copy strong { font-size: 13px; }
.staff-copy small { color: var(--muted); font-size: 10px; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 14px; }
.calendar-toolbar h3 { margin: 0; font-family: "Noto Serif TC",serif; font-size: 17px; font-weight: 600; }
.month-controls { display: flex; gap: 6px; }
.icon-button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: #686d65; }
.icon-button:hover { border-color: #aab8aa; color: var(--green-dark); }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; }
.weekday { text-align: center; font-size: 10px; color: #989a93; padding: 5px 0 7px; }
.day-cell { position: relative; min-width: 0; aspect-ratio: 1 / .82; padding: 7px 4px 5px; border: 1px solid #e9e7e0; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--load-low); color: var(--ink); }
.day-cell.load-light { background: var(--load-light); border-color: #eee4bd; }
.day-cell.load-medium { background: var(--load-medium); border-color: #ead3a9; }
.day-cell.load-high { background: var(--load-high); border-color: #e5b797; }
.day-cell.load-full { background: var(--load-full); border-color: #dfa9a4; }
.day-cell.closed { background: var(--closed); color: #8a8c88; border-color: #e2e2df; }
.day-cell:disabled { opacity: .55; }
.day-cell.closed:disabled { opacity: 1; }
.day-cell:not(:disabled):hover { outline: 2px solid #79917d; outline-offset: 1px; }
.day-cell.selected { outline: 2px solid #526b56; outline-offset: 1px; }
.day-cell.today .day-number::after { content: ""; position: absolute; width: 4px; height: 4px; margin: 2px 0 0 3px; border-radius: 50%; background: #56725a; }
.day-number { font-weight: 600; font-size: 13px; }
.day-label { margin-top: 4px; font-size: 9px; white-space: nowrap; line-height: 1.2; }
.day-cell.empty { border-color: transparent; background: transparent; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; margin-top: 13px; color: #85877f; font-size: 10px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.swatch { width: 11px; height: 11px; border: 1px solid rgba(0,0,0,.06); border-radius: 3px; }
.slot-panel { margin-top: 21px; padding-top: 18px; border-top: 1px solid #efeee9; }
.slot-panel h3 { margin-bottom: 4px; font-size: 14px; }
.slot-subtitle { color: var(--muted); font-size: 11px; margin-bottom: 14px; }
.slot-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.slot-button { border: 1px solid #e2e5dc; background: #fff; padding: 10px 5px; color: #39473a; border-radius: 8px; font-weight: 600; font-size: 12px; }
.slot-button:hover,.slot-button.selected { background: #526b56; border-color: #526b56; color: white; }
.empty-state { padding: 20px 15px; text-align: center; border-radius: 10px; background: #f6f5f0; color: #85877f; font-size: 12px; line-height: 1.7; }
.details-card { padding: 24px; position: sticky; top: 18px; }
.details-card h2 { margin: 6px 0 20px; font-family: "Noto Serif TC",serif; font-size: 20px; font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #efeee9; font-size: 12px; }
.summary-row span { color: var(--muted); }
.summary-row strong { text-align: right; font-weight: 600; }
.form-stack { display: grid; gap: 11px; margin-top: 14px; }
.field { display: grid; gap: 6px; color: #656961; font-size: 11px; }
.field input,.field select,.field textarea { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #dedfd7; border-radius: 8px; outline: none; background: #fffefa; color: var(--ink); font-size: 13px; }
.field textarea { height: auto; padding: 10px 12px; min-height: 80px; }
.field input:focus,.field select:focus,.field textarea:focus { border-color: #819384; box-shadow: 0 0 0 3px rgba(93,117,96,.1); }
.primary-button,.secondary-button,.danger-button { width: 100%; min-height: 44px; border: 0; border-radius: 9px; padding: 10px 16px; background: var(--green); color: white; font-weight: 600; font-size: 13px; }
.primary-button:hover { background: var(--green-dark); }
.primary-button:disabled { background: #b7beb5; }
.secondary-button { width: auto; background: #f1f3ee; color: #485a4a; border: 1px solid #e0e6dc; }
.secondary-button:hover { background: #e7ece4; }
.danger-button { width: auto; min-height: 34px; padding: 7px 11px; background: #fbefed; color: #9a5148; border: 1px solid #f0d8d4; font-size: 11px; }
.helper { color: #8c8f87; font-size: 10px; line-height: 1.7; margin: 1px 0 0; }
.status-message { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #f7e9e5; color: #9a5148; font-size: 12px; line-height: 1.6; }
.status-message.success { color: #3e634a; background: #eaf2e9; }
.success-card { text-align: center; padding: 12px 0 4px; }
.success-mark { margin: 0 auto 13px; width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; background: #e6efe5; color: #52745b; font-size: 22px; }
.success-card h3 { margin-bottom: 8px; font-family: "Noto Serif TC",serif; font-size: 20px; }
.success-card p { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.privacy-note { margin-top: 16px; color: #95978f; font-size: 10px; line-height: 1.7; }
.page-footer { text-align: center; padding: 27px 20px 40px; color: #96988f; font-size: 10px; letter-spacing: .04em; }
.admin-page { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 225px minmax(0,1fr); }
.admin-sidebar { padding: 28px 17px; border-right: 1px solid var(--line); background: #f3f2ed; }
.admin-sidebar .eyebrow { margin: 2px 11px 18px; display: block; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav button { text-align: left; border: 0; border-radius: 8px; background: transparent; color: #686c64; padding: 12px 13px; font-size: 13px; }
.admin-nav button.active { color: #35493a; background: #e5ebe2; font-weight: 600; }
.admin-local-note { margin: 24px 11px 0; color: #92948d; font-size: 10px; line-height: 1.7; }
.admin-content { min-width: 0; padding: clamp(22px,4vw,45px); max-width: 1460px; width: 100%; }
.admin-title-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.admin-title-row h1 { font-family: "Noto Serif TC",serif; font-size: 27px; font-weight: 600; margin: 4px 0 3px; }
.admin-title-row p { color: var(--muted); font-size: 12px; margin: 0; }
.admin-actions { display: flex; gap: 9px; align-items: center; }
.admin-actions .secondary-button,.admin-actions .primary-button { min-height: 38px; padding: 8px 13px; font-size: 11px; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 17px; }
.admin-toolbar .field { min-width: 170px; }
.admin-toolbar select,.admin-toolbar input { height: 38px; }
.admin-calendar { padding: 23px; }
.admin-calendar .day-cell { aspect-ratio: 1 / .64; }
.admin-day-panel { margin-top: 18px; padding: 23px; }
.admin-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-day-head h2 { font-family: "Noto Serif TC",serif; font-size: 18px; margin: 0; }
.admin-day-head span { color: var(--muted); font-size: 11px; }
.appointment-list { display: grid; gap: 8px; }
.appointment-row { display: grid; grid-template-columns: 105px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #ecebe5; border-radius: 10px; background: #fffefa; }
.appointment-time { color: #49634d; font-size: 13px; font-weight: 700; }
.appointment-main strong { font-size: 12px; }
.appointment-main small { display: block; margin-top: 4px; color: #85877f; font-size: 10px; line-height: 1.6; }
.appointment-actions { display: flex; gap: 6px; }
.source-chip { display: inline-flex; align-items: center; border-radius: 99px; background: #eff1eb; padding: 3px 8px; color: #64705f; font-size: 9px; margin-left: 6px; }
.free-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 9px; background: #f2f6f0; color: #5f7561; font-size: 11px; }
.free-row button { min-height: 30px; padding: 5px 10px; font-size: 10px; }
.admin-form-panel { margin: 15px 0; padding: 18px; border: 1px solid #dfe7dc; border-radius: 12px; background: #f8faf6; }
.admin-form-panel h3 { margin: 0 0 14px; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.form-grid .wide { grid-column: 1/-1; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.form-actions button { width: auto; min-height: 37px; font-size: 11px; }
.admin-section { padding: 23px; }
.admin-section + .admin-section { margin-top: 15px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-family: "Noto Serif TC",serif; font-size: 18px; }
.staff-admin-list { display: grid; gap: 10px; }
.staff-admin-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; border: 1px solid #ecebe5; border-radius: 11px; padding: 14px; }
.staff-admin-info { display: flex; align-items: center; gap: 11px; min-width: 0; }
.staff-admin-info strong { font-size: 13px; }
.staff-admin-info small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.toggle-line { display: inline-flex; align-items: center; gap: 8px; color: #74776f; font-size: 11px; }
.toggle-line input { accent-color: #536959; }
.schedule-table-wrap { overflow-x: auto; }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.schedule-table th,.schedule-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #efeee9; font-size: 11px; }
.schedule-table th { color: #85877f; font-weight: 500; }
.schedule-table input[type="time"] { padding: 7px; border: 1px solid #e0e1d9; border-radius: 6px; color: var(--ink); }
.schedule-table button { min-height: 31px; padding: 5px 9px; font-size: 10px; }
.timeoff-list { display: grid; gap: 8px; margin-top: 17px; }
.timeoff-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid #ecebe5; border-radius: 9px; }
.timeoff-row strong { font-size: 11px; }
.timeoff-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.flash { margin: 0 0 15px; padding: 10px 13px; border-radius: 8px; color: #3e634a; background: #eaf2e9; font-size: 12px; }
.flash.error { color: #9a5148; background: #f7e9e5; }
.mobile-admin-tabs { display: none; }
@media (max-width: 860px) {
  .booking-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 14px; }
  .details-card { padding: 19px; }
  .admin-page { grid-template-columns: 180px minmax(0,1fr); }
  .admin-sidebar { padding: 24px 12px; }
  .appointment-row { grid-template-columns: 80px minmax(0,1fr) auto; }
}
@media (max-width: 700px) {
  .site-header { height: 64px; padding: 0 17px; }
  .header-nav { gap: 15px; font-size: 11px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name strong { font-size: 13px; letter-spacing: 0; }
  .booking-page { padding: 31px 14px 56px; }
  .booking-intro { display: block; margin-bottom: 21px; }
  .booking-intro h1 { font-size: 29px; }
  .booking-intro p { font-size: 12px; }
  .salon-info { margin-top: 17px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
  .booking-layout { display: flex; flex-direction: column; }
  .booking-main { width: 100%; padding: 19px 15px 20px; }
  .details-card { position: static; width: 100%; padding: 19px; }
  .step-block + .step-block { margin-top: 23px; padding-top: 21px; }
  .step-hint { font-size: 9px; }
  .service-list { grid-template-columns: 1fr; gap: 8px; }
  .service-card { padding: 12px 13px 10px; }
  .service-card p { margin: 6px 0 7px; }
  .calendar-grid { gap: 3px; }
  .day-cell { aspect-ratio: 1 / .95; border-radius: 7px; padding: 5px 1px; }
  .day-number { font-size: 12px; }
  .day-label { font-size: 8px; }
  .weekday { font-size: 9px; }
  .legend { gap: 8px 10px; font-size: 9px; }
  .slot-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .admin-page { display: block; min-height: auto; }
  .admin-sidebar { display: none; }
  .admin-content { padding: 23px 14px 50px; }
  .admin-title-row { margin-bottom: 16px; }
  .admin-title-row h1 { font-size: 23px; }
  .admin-actions { width: 100%; }
  .admin-actions button { flex: 1; }
  .mobile-admin-tabs { display: flex; overflow-x: auto; gap: 5px; margin: 0 -14px 14px; padding: 0 14px 7px; }
  .mobile-admin-tabs button { flex: 0 0 auto; border: 1px solid #e2e4dc; background: #fffefa; color: #71746c; border-radius: 99px; padding: 8px 12px; font-size: 10px; }
  .mobile-admin-tabs button.active { background: #526b56; border-color: #526b56; color: white; }
  .admin-calendar { padding: 14px 10px; border-radius: 13px; }
  .admin-calendar .day-cell { aspect-ratio: 1 / .88; }
  .admin-day-panel { padding: 16px 12px; }
  .appointment-row { grid-template-columns: 1fr auto; gap: 7px; padding: 11px; }
  .appointment-time { grid-column: 1/-1; }
  .appointment-actions { grid-column: 1/-1; justify-content: flex-end; }
  .admin-day-head { align-items: start; }
  .admin-day-head span { text-align: right; }
  .admin-section { padding: 16px 13px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .staff-admin-row { grid-template-columns: 1fr; }
}
@media (max-width: 370px) {
  .header-nav { gap: 10px; }
  .header-nav a { font-size: 10px; }
  .brand-name small { letter-spacing: .12em; }
  .calendar-grid { gap: 2px; }
  .day-cell { border-radius: 5px; }
  .day-label { font-size: 7px; }
}

/* Readability pass: raise small labels and supporting text across booking and admin screens. */
.brand-name strong { font-size: 18px; }
.brand-name small,.salon-booking-note,.eyebrow,.service-meta,.staff-copy small,
.weekday,.privacy-note,.page-footer,.admin-local-note,.appointment-main small,
.staff-admin-info small,.timeoff-row small { font-size: 12px; }
.header-nav,.salon-info-title,.step-number,.step-hint,.service-price,.staff-copy strong,
.legend,.slot-subtitle,.summary-row,.status-message,.success-card p,.admin-title-row p,
.admin-day-head span,.free-row,.flash { font-size: 14px; }
.booking-intro p,.intro-note,.service-card p,.empty-state,.field,.helper,.admin-nav button,
.appointment-main strong,.staff-admin-info strong,.schedule-table th,.schedule-table td,
.timeoff-row strong { font-size: 15px; }
.salon-map-link,.salon-hours-heading,.field input,.field select,.field textarea,
.primary-button,.secondary-button,.danger-button,.slot-button,.service-top strong,
.appointment-time,.form-actions button,.admin-actions .secondary-button,
.admin-actions .primary-button { font-size: 16px; }
.salon-hours time,.salon-address { font-size: 15px; }
.step-heading h2,.slot-panel h3,.admin-form-panel h3,.calendar-toolbar h3 { font-size: 18px; }
.day-number { font-size: 14px; }
.day-label { font-size: 11px; }
.admin-day-head h2,.section-heading h2 { font-size: 20px; }
.source-chip { font-size: 12px; }
.free-row button,.schedule-table button { font-size: 13px; }

@media (max-width: 700px) {
  .header-nav { font-size: 13px; }
  .brand-name strong { font-size: 15px; }
  .brand-name small { font-size: 11px; }
  .booking-intro p { font-size: 14px; }
  .booking-intro h1 { font-size: 30px; }
  .step-hint { font-size: 12px; }
  .day-number { font-size: 13px; }
  .day-label { font-size: 10px; }
  .weekday { font-size: 11px; }
  .legend { font-size: 12px; }
  .admin-title-row h1 { font-size: 24px; }
  .mobile-admin-tabs button { font-size: 13px; }
}

@media (max-width: 370px) {
  .header-nav { gap: 8px; }
  .header-nav a { font-size: 12px; }
  .brand-name strong { font-size: 14px; }
  .day-label { font-size: 9px; }
}
