@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

[hidden] { display: none !important; }

.admin-offline-notice {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0;
  padding: 12px 18px;
  border-bottom: 1px solid #ad7241;
  background: #fff2df;
  color: #532b11;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.admin-offline-notice[hidden] {
  display: none;
}

.admin-sync-notice {
  position: sticky;
  top: 0;
  z-index: 99;
  margin: 0;
  padding: 10px 18px;
  border-bottom: 1px solid #b36f40;
  background: #fff2df;
  color: #532b11;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.admin-sync-notice[hidden] {
  display: none;
}

.admin-offline [data-offline-write][aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
}

.log-title-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.push-toggle-button {
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
}

.push-toggle-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.push-icon {
  width: 18px;
  height: 18px;
}

.push-icon-on,
.push-toggle-button[data-enabled="true"] .push-icon-off {
  display: none;
}

.push-toggle-button[data-enabled="true"] .push-icon-on {
  display: block;
}

.confirm-dialog {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid #d9ded6;
  border-radius: 0;
  padding: 0;
  background: #fff;
  color: #191b19;
  box-shadow: 0 18px 50px rgba(25,27,25,.18);
}
.confirm-dialog::backdrop { background: rgba(20,25,20,.42); }
.confirm-dialog-panel { display: grid; gap: 22px; padding: 22px; }
.confirm-dialog-copy { display: grid; gap: 8px; }
.confirm-dialog-copy h2 { margin: 0; font-size: 21px; }
.confirm-dialog-copy p { margin: 0; color: #5d625d; font-size: 13px; line-height: 1.5; }
.confirm-dialog-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.confirm-dialog-actions button { min-height: 40px; border: 1px solid #cfd6cd; border-radius: 0; padding: 8px 12px; font-weight: 700; }
.confirm-dialog-cancel { background: #fff; color: #191b19; }
.confirm-dialog-submit { border-color: #191b19 !important; background: #191b19; color: #fff; }
.confirm-dialog[data-tone="error"] .confirm-dialog-submit { border-color: #a2383e !important; background: #a2383e; }
.confirm-dialog[data-mode="notice"] .confirm-dialog-actions { grid-template-columns: 1fr; }

/* Lisa production admin: visual system promoted from the approved template. */
* { box-sizing: border-box; }
body.production-admin { margin: 0; background: #fff; color: #191b19; font-family: "Space Grotesk", Arial, sans-serif; }
.production-admin button, .production-admin select, .production-admin textarea, .production-admin input { font: inherit; }
.production-admin button { cursor: pointer; }
.production-admin svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.preview-header { min-height: 68px; padding: 0 clamp(16px,3vw,44px); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #d9ded6; }
.preview-header h1 { margin: 0; font-size: clamp(17px,1.7vw,23px); line-height: 1.1; white-space: nowrap; }
.preview-header nav { display: flex; align-items: center; gap: 18px; min-width: 0; }
.preview-header nav > a { color: inherit; font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 2px solid #e4ff43; padding: 7px 0 5px; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .preview-header nav > a:hover { border-bottom-color: #191b19; } }
.preview-header nav > a.settings-link { display: inline-grid; padding: 0; border-bottom: 1px solid #d9ded6; }
.preview-header nav > a.settings-link[aria-disabled="true"] { opacity: .34; cursor: not-allowed; pointer-events: none; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; background: transparent; color: #3e4945; padding: 0; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .icon-button:hover { background: #f2f4f0; } }
.icon-button:disabled { opacity: .34; cursor: not-allowed; }
.header-tool { border: 1px solid #d9ded6; }
.preview-login { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12px; font-weight: 700; }
.owner-login input { width: 132px; height: 34px; padding: 6px 8px; border: 1px solid #d9ded6; background: #fff; }
.owner-login .login-button { height: 34px; padding: 0 11px; border: 1px solid #191b19; background: #191b19; color: #fff; font-weight: 700; }
.owner-login .form-message { position: absolute; top: 69px; right: 18px; z-index: 30; margin: 0; padding: 5px 8px; background: #fff; color: #8a2f35; font-size: 11px; }
.owner-session { border: 1px solid #d9ded6; padding-left: 9px; }
.owner-session > span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout-button { width: 30px; height: 30px; }
.admin-turnstile { position: absolute; top: 60px; right: 16px; z-index: 40; }
.preview-main { width: min(100%,1560px); margin: 0 auto; padding: 0 clamp(16px,3vw,44px) 80px; }
.schedule-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 80px; }
.day-navigation, .day-nav-controls { display: flex; align-items: center; min-width: 0; }
.day-navigation { gap: 12px; }
.day-nav-controls { gap: 6px; flex: none; }
.calendar-month { min-width: 92px; color: #303a31; font-size: 15px; font-weight: 700; }
.today-button { margin-right: 10px; border: 1px solid #cfd6cd; background: #fff; padding: 9px 13px; font-weight: 700; font-size: 13px; }
.today-button.is-active { background: #e4ff43; border-color: #191b19; }
.native-date-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mini-day-strip { display: grid; grid-template-columns: repeat(7,minmax(32px,40px)); gap: clamp(5px,1vw,12px); }
.mini-day { width: 100%; height: 60px; display: grid; grid-template-rows: 13px 22px 3px; justify-items: center; align-content: center; row-gap: 3px; padding: 3px 0; border: 0; background: transparent; color: #191b19; }
.mini-day-strip.future-page .mini-day { color: #657166; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .mini-day:hover:not(:disabled) { background: #f2f4f0; color: #191b19; } }
.mini-day.selected { color: #191b19; }
.mini-day:disabled { color: #9aa29b; cursor: not-allowed; }
.mini-day .day-weekday, .mini-day .date-weekday { font-size: 11px; font-weight: 700; }
.mini-day strong { font-size: 18px; line-height: 22px; }
.mini-day.selected strong { background: #e4ff43; box-shadow: 5px 0 #e4ff43,-5px 0 #e4ff43; }
.day-status-bar { width: 22px; height: 3px; background: #e7ebe5; }
.day-status-bar > span { display: block; height: 100%; background: #759b85; }
.availability-shell { position: relative; margin-left: auto; }
.settings-button { width: 40px; height: 40px; }
.settings-button[aria-expanded="true"] { background: #e4ff43; }
.availability-panel { position: absolute; top: calc(100% + 7px); right: 0; z-index: 25; width: min(290px,calc(100vw - 28px)); padding: 14px; border: 1px solid #bfc9be; background: #fff; box-shadow: 0 8px 24px rgba(25,27,25,.13); }
.availability-panel[hidden], .time-block-fields[hidden] { display: none; }
.availability-panel > strong { display: block; margin-bottom: 10px; font-size: 13px; }
.availability-option { display: block; width: 100%; padding: 10px 7px; text-align: left; border: 0; border-top: 1px solid #e3e8e1; background: #fff; font-size: 13px; font-weight: 700; }
.time-block-fields { padding: 9px 7px 12px; background: #f7f8f5; }
.time-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.time-selects label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; }
.time-selects select { min-width: 0; height: 34px; border: 1px solid #cbd3c9; background: #fff; }
.time-block-submit { width: 100%; margin-top: 9px; padding: 8px; border: 1px solid #191b19; background: #191b19; color: #fff; font-size: 12px; font-weight: 700; }
#timeBlockHint { margin: 6px 0 0; color: #8a3b3d; font-size: 11px; }
.existing-time-blocks:empty { display: none; }
.existing-block { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 3px; border-top: 1px solid #e3e8e1; font-size: 12px; font-variant-numeric: tabular-nums; }
.existing-block button { border: 0; background: transparent; color: #8a3b3d; font-size: 11px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .existing-block button:hover { text-decoration: underline; } }
.staff-toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 43px; padding-bottom: 7px; border-bottom: 1px solid #d9ded6; }
.day-summary { font-size: 12px; color: #4d5550; }
.add-booking, .solid-button { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #191b19; background: #191b19; color: #fff; font-size: 13px; font-weight: 700; }
.schedule-scroll { position: relative; width: calc(100% + 12px); margin-left: -12px; overflow: visible; }
.schedule-scroll::before { content: ""; position: absolute; top: 0; left: 0; z-index: 60; width: 0; height: 2px; background: #191b19; opacity: 0; pointer-events: none; }
.schedule-scroll.is-loading::before { width: 38%; opacity: 1; animation: schedule-loading 900ms ease-in-out infinite alternate; }
.schedule-scroll.is-loading .schedule-board { opacity: .58; }
@keyframes schedule-loading { from { transform: translateX(0); } to { transform: translateX(160%); } }
@media (prefers-reduced-motion: reduce) { .schedule-scroll.is-loading::before { width: 100%; animation: none; } }
.schedule-board { min-width: 0; }
.staff-schedule { --slot-height: 58px; display: grid; grid-template-columns: 43px repeat(var(--lane-count),minmax(76px,1fr)); }
.staff-schedule-head, .staff-schedule-body { display: grid; grid-column: 1/-1; grid-template-columns: 43px repeat(var(--lane-count),minmax(76px,1fr)); }
.staff-schedule-head { min-height: 36px; border-bottom: 1px solid #d9ded6; }
.staff-schedule-head > strong { display: flex; align-items: center; justify-content: center; gap: 5px; border-left: 1px solid #d9ded6; font-size: 11px; }
.staff-schedule-head .staff-avatar { width: 19px; height: 19px; display: grid; place-items: center; background: #e4ff43; font-size: 10px; }
.staff-schedule-body { position: relative; grid-template-rows: repeat(var(--calendar-rows),var(--slot-height)); }
.calendar-grid-end { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; border-bottom: 1px solid #cbd5ca; pointer-events: none; }
.now-line { position: absolute; left: 43px; right: 0; z-index: 8; border-top: 1px solid #cb4f4e; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #cb4f4e; }
.calendar-grid-line { grid-column: 2/-1; border-top: 1px solid #e6ebe4; pointer-events: none; }
.calendar-grid-line.hour-line { border-color: #cbd5ca; }
.staff-time-marker { position: relative; grid-column: 1; border-right: 1px solid #d9ded6; color: #66716b; font-size: 10px; font-variant-numeric: tabular-nums; }
.staff-time-marker span { position: absolute; right: 5px; top: -7px; background: #fff; padding: 0 2px; }
.calendar-lane-cell { border-left: 0; }
.calendar-lane-cell.is-staff-start { border-left: 1px solid #d9ded6; }
.calendar-lane-cell .service-block-menu { width: 100%; height: 100%; }
.calendar-lane-cell .service-block-menu > summary { width: 100%; height: 100%; opacity: 0; }
.calendar-event, .calendar-time-block { position: relative; z-index: 3; margin: 3px 4px; min-width: 0; padding: 6px 8px; overflow: visible; border: 1px solid rgba(55,65,59,.13); box-shadow: 0 2px 8px rgba(25,27,25,.07); }
.calendar-event:has(.service-block-menu[open]) { z-index: 30; }
.calendar-event { background: color-mix(in srgb,var(--slot-color,#dceee4) 24%,white); color: #273c31; }
.calendar-event-copy { display: flex; flex-direction: column; gap: 2px; width: 100%; min-width: 0; padding: 0 25px 0 0; border: 0; background: transparent; color: inherit; text-align: left; }
.calendar-event-copy strong, .calendar-event-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-copy strong { font-size: 12px; line-height: 1.2; }
.calendar-event-copy span { font-size: 11px; line-height: 1.2; }
.calendar-event-copy .event-detail { color: #52635a; }
.calendar-event .event-time { font-variant-numeric: tabular-nums; }
.calendar-event .online-label { position: absolute; top: 5px; right: 5px; z-index: 4; padding: 2px 4px; background: rgba(255,255,255,.78); font-size: 9px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.calendar-time-block { background: rgba(224,229,224,.88); color: #354139; }
.calendar-day-block { z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: rgba(232,235,230,.9); border-style: dashed; pointer-events: none; }
.calendar-day-block strong { font-size: 13px; }
.calendar-day-block span { color: #5d665f; font-size: 11px; }
.service-block-menu { position: absolute; top: 2px; right: 2px; z-index: 5; }
.service-block-menu[open] { z-index: 35; }
.service-block-menu > summary { list-style: none; width: 20px; height: 20px; display: grid; place-items: center; cursor: pointer; }
.service-block-menu > summary::-webkit-details-marker { display: none; }
.service-block-options { position: absolute; top: 22px; right: 0; z-index: 40; min-width: 145px; padding: 4px; border: 1px solid #d9ded6; background: #fff; box-shadow: 0 5px 14px rgba(25,27,25,.16); }
.service-block-options button { width: 100%; padding: 8px; border: 0; background: #fff; text-align: left; font-size: 12px; }
.booking-log { margin-top: 34px; border-top: 1px solid #191b19; }
.section-heading { display: flex; align-items: center; gap: 8px; padding: 21px 0 13px; }
.section-heading h2 { margin: 0; font-size: 18px; }
.section-heading > span { color: #5d625d; font-size: 12px; }
.log-title-actions { margin-left: auto; }
.log-entry { display: grid; grid-template-columns: 104px minmax(0,1fr); align-items: center; gap: 14px; min-height: 58px; padding: 10px 0; border-top: 1px solid #d9ded6; }
.log-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; font-size: 13px; text-align: left; }
.log-primary { display: flex; align-items: baseline; gap: 12px; width: 100%; min-width: 0; }
.log-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.log-copy > span, .log-phone { color: #5d625d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-phone { margin-left: auto; max-width: 55%; }
.log-actions { display: flex; justify-content: flex-start; width: 104px; }
.cancel-log { display: flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid #c97677; background: #fff; color: #9b3037; font-size: 11px; font-weight: 700; white-space: nowrap; }
.cancel-log svg { width: 13px; height: 13px; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .cancel-log:hover { background: #fdf0f0; } }
.log-entry.cancelled { padding-left: 8px; padding-right: 8px; background: #f2f2f1; color: #7a7f7b; }
.log-entry.cancelled .log-copy { text-decoration: line-through; }
.preview-dialog { width: min(460px,calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 22px; overflow-y: auto; border: 1px solid #d9ded6; box-shadow: 0 18px 50px rgba(25,27,25,.18); }
.preview-dialog::backdrop { background: rgba(20,25,20,.42); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.dialog-heading h2 { margin: 0; font-size: 21px; }
.form-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-fields label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12px; font-weight: 700; }
.form-fields .wide-field { grid-column: 1/-1; }
.form-fields select, .form-fields textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid #cfd6cd; background: #fff; color: #191b19; }
.dialog-message { min-height: 17px; color: #9b3037; font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.dialog-actions button { padding: 10px 13px; font-size: 13px; font-weight: 700; }
.text-button { border: 1px solid #cfd6cd; background: #fff; }
.detail-list { margin: 0; }
.detail-row { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 12px; padding: 10px 0; border-top: 1px solid #e3e8e1; font-size: 13px; }
.detail-row dt { color: #66716b; }.detail-row dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.action-toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 11px; width: min(390px,calc(100vw - 32px)); min-height: 52px; padding: 9px 10px 9px 13px; border: 1px solid #bfc9be; background: #fff; color: #1c3528; box-shadow: 0 8px 24px rgba(25,27,25,.13); font-size: 13px; line-height: 1.4; }
.action-toast.error { border-color: #c97677; color: #842b30; }
.toast-symbol { display: grid; place-items: center; width: 22px; height: 22px; flex: none; background: #e5f2e7; }
.action-toast.error .toast-symbol { background: #fbe9e9; }
.toast-symbol svg { width: 16px; height: 16px; stroke-width: 2.3; }
.action-toast.error .toast-symbol svg { display: none; }
.action-toast.error .toast-symbol::after { content: "!"; font-weight: 800; }
.toast-message { flex: 1; min-width: 0; }
.toast-close { width: 28px; height: 28px; flex: none; }
.toast-close svg { width: 15px; height: 15px; }
.pwa-update-notice { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 14px; width: min(390px,calc(100vw - 32px)); min-height: 52px; padding: 10px 12px 10px 15px; border: 1px solid color-mix(in srgb,var(--theme-accent,#9cff2e) 55%,#9da79f); background: var(--theme-page,#fff); color: var(--theme-ink,#1c2921); box-shadow: 0 8px 24px rgba(25,27,25,.16); font-size: 13px; line-height: 1.4; }
.pwa-update-notice[hidden] { display: none; }
.pwa-update-notice span { flex: 1; min-width: 0; }
.pwa-update-notice button { min-height: 34px; padding: 7px 12px; border: 1px solid var(--theme-ink,#1c2921); background: var(--theme-accent,#9cff2e); color: var(--theme-ink,#1c2921); font: inherit; font-weight: 800; cursor: pointer; }
.pwa-update-notice button:focus-visible { outline: 2px solid var(--theme-ink,#1c2921); outline-offset: 2px; }
.production-admin ::selection { background: var(--shop-accent, #e4ff43); color: #191b19; }
.production-admin :focus-visible { outline: 2px solid #191b19; outline-offset: 2px; }

@media (max-width:700px) {
  .preview-header { min-height: 56px; padding: 0 12px; gap: 7px; }
  .preview-header h1 { max-width: 116px; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
  .preview-header nav { gap: 7px; }
  .preview-header nav > a { font-size: 11px; }
  .header-tool { width: 27px; height: 27px; }
  .owner-login input { width: 76px; height: 30px; font-size: 10px; }
  .owner-login .login-button { height: 30px; padding: 0 7px; font-size: 10px; }
  .owner-session > span { display: none; }
  .preview-main { padding: 0 12px 50px; }
  .schedule-toolbar { position: relative; display: block; min-height: 109px; padding: 8px 0 6px; }
  .calendar-month { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); min-width: 0; margin: 0; font-size: 12px; text-align: center; }
  .day-navigation { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
  .day-nav-controls { height: 40px; }
  .mini-day-strip { width: 100%; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 1px; }
  .mini-day { height: 55px; grid-template-rows: 12px 20px 3px; }
  .mini-day strong { font-size: 16px; }.mini-day .day-weekday, .mini-day .date-weekday { font-size: 10px; }
  .today-button { padding: 7px 6px; font-size: 11px; }
  .availability-shell { position: absolute; top: 8px; right: 0; }
  .add-booking { width: 40px; height: 40px; padding: 0; justify-content: center; }.add-booking span { display: none; }
  .schedule-scroll { width: calc(100% + 8px); margin-left: -8px; }
  .staff-schedule, .staff-schedule-head, .staff-schedule-body { grid-template-columns: 36px repeat(var(--lane-count),minmax(0,1fr)); }
  .staff-schedule { min-width: 0; }
  .now-line { left: 36px; }
  .staff-schedule-head > strong { font-size: 9px; }
  .calendar-event { padding: 5px 4px; margin: 2px; }.calendar-event-copy strong { font-size: 10px; }.calendar-event-copy span { font-size: 9px; }
  .log-entry { grid-template-columns: 27px minmax(0,1fr); gap: 12px; }
  .log-actions { width: 27px; min-height: 27px; }
  .cancel-log { width: 27px; height: 27px; padding: 0; justify-content: center; }
  .cancel-log span { display: none; }
  .cancel-log svg { width: 16px; height: 16px; }
  .form-fields { grid-template-columns: 1fr; }.form-fields .wide-field { grid-column: auto; }
  .action-toast { right: 10px; bottom: 10px; width: min(286px,calc(100vw - 20px)); min-height: 40px; gap: 7px; padding: 6px 7px 6px 9px; font-size: 11px; }
  .toast-symbol { width: 18px; height: 18px; }
  .toast-symbol svg { width: 13px; height: 13px; }
  .toast-close { width: 22px; height: 22px; }
  .pwa-update-notice { right: auto; left: 50%; bottom: 10px; width: min(320px,calc(100vw - 20px)); min-height: 46px; padding: 8px 9px 8px 12px; transform: translateX(-50%); font-size: 12px; }
}
@media (orientation:portrait) and (max-width:700px) {
  .preview-header nav > a { display: none; }
  .preview-header nav > a.settings-link:not([hidden]) { display: inline-grid; }
}
