* { box-sizing: border-box; }
html { min-width: 0; }
body.preview-admin {
  --theme-page: var(--shop-page, #fdfff8);
  --theme-field: var(--shop-field, #fbffef);
  --theme-hover: var(--shop-hover, #f5ffd1);
  margin: 0; background: var(--theme-page); color: #191b19; font-family: Arial, Helvetica, sans-serif;
}
.preview-admin button, .preview-admin select, .preview-admin textarea { font-family: inherit; }
.preview-admin button { cursor: pointer; }
.preview-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-family: "Space Grotesk", Arial, sans-serif; font-size: clamp(17px, 1.7vw, 23px); line-height: 1.1; white-space: nowrap; }
.preview-header nav { display: flex; align-items: center; gap: 18px; flex: none; }
.preview-header nav a { color: inherit; font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--shop-accent, #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; } }
.header-tool { width: 32px; height: 32px; border: 1px solid #d9ded6; }
.preview-header nav a.settings-link { display: inline-grid; padding: 0; border-bottom: 1px solid #d9ded6; }
.preview-header nav a.settings-link[hidden] { display: none !important; }
.header-tool:disabled { opacity: .6; }
.preview-login { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; padding: 8px 10px; border: 1px solid #d9ded6; white-space: nowrap; }
.preview-login svg { width: 16px; height: 16px; }
.role-login { padding: 4px; gap: 5px; }
.role-login label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.role-login select, .role-login input, .role-login button, .preview-logout { min-height: 28px; border: 0; background: transparent; color: inherit; font: inherit; }
.role-login select { padding: 3px 22px 3px 6px; }
.role-login input { width: 82px; padding: 3px 6px; border-left: 1px solid #d9ded6; }
.role-login button { padding: 3px 8px; background: #191b19; color: #fff; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .role-login button:hover { background: #353c35; } }
.preview-session { padding-right: 4px; }
.preview-logout { padding: 3px 7px; border-left: 1px solid #d9ded6; font-size: 11px; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .preview-logout:hover { background: var(--theme-hover); } }
.preview-main { width: min(100%, 1560px); margin: 0 auto; padding: 0 clamp(16px, 3vw, 44px) 80px; }
.schedule-toolbar { display: flex; justify-content: space-between; align-items: center; 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; font-family: "Space Grotesk", Arial, sans-serif; font-size: 15px; font-weight: 700; color: #303a31; }
.availability-shell { margin-left: auto; }
.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 .day-weekday { font-size: 11px; font-weight: 700; line-height: 13px; }
.mini-day-strip.today-page .mini-day:nth-child(2) { color: #303a31; }
.mini-day-strip.today-page .mini-day:nth-child(3) { color: #414b42; }
.mini-day-strip.today-page .mini-day:nth-child(4) { color: #4c574d; }
.mini-day-strip.today-page .mini-day:nth-child(5) { color: #586359; }
.mini-day-strip.today-page .mini-day:nth-child(6) { color: #637065; }
.mini-day-strip.today-page .mini-day:nth-child(7) { color: #6d796e; }
.mini-day-strip.future-page .mini-day { color: #657166; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .mini-day:hover:not(:disabled) { background: var(--theme-hover); color: #191b19; } }
.mini-day.selected, .mini-day-strip.future-page .mini-day.selected { color: #191b19; }
.mini-day:disabled { color: #9aa29b !important; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .mini-day:disabled:hover { background: transparent; } }
.mini-day strong { font-family: "Space Grotesk", Arial, sans-serif; font-size: 18px; line-height: 22px; }
.mini-day.selected strong { background: var(--shop-accent, #e4ff43); box-shadow: 5px 0 var(--shop-accent, #e4ff43), -5px 0 var(--shop-accent, #e4ff43); }
.day-status-bar { width: 22px; height: 3px; background: #e7ebe5; }
.day-status-bar > span { display: block; height: 100%; background: #759b85; min-width: 0; }
.mini-day.blocked .day-status-bar > span { background: #b9c0ba; }
.today-button { border: 1px solid #cfd6cd; background: var(--theme-field); padding: 9px 13px; margin-right: 10px; font-weight: 700; font-size: 13px; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .today-button:hover { background: var(--theme-hover); } }
.today-button.is-active { background: var(--shop-accent, #e4ff43); border-color: #191b19; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; background: transparent; color: #3e4945; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .icon-button:hover { background: var(--theme-hover); } }
.icon-button:disabled { opacity: .32; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .icon-button:disabled:hover { background: transparent; } }
.preview-header .header-tool:disabled { opacity: .68; }
.add-booking, .solid-button { border: 1px solid #191b19; background: #191b19; color: #fff; font-weight: 700; }
.add-booking { display: flex; align-items: center; gap: 8px; padding: 11px 15px; font-size: 13px; flex: none; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .add-booking:hover, .solid-button:hover { background: #353c35; } }
.add-booking:disabled { opacity: .42; cursor: not-allowed; }
.staff-toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 43px; padding: 0 0 7px; border-bottom: 1px solid #d9ded6; }
.day-summary { font-size: 12px; color: #4d5550; font-weight: 700; }
.availability-shell { position: relative; }
.settings-button { width: 40px; height: 40px; margin: 0; }
.settings-button[aria-expanded="true"] { background: var(--shop-accent, #e4ff43); }
.settings-button.is-filtered:not([aria-expanded="true"]) { background: var(--shop-selected, #efffb0); }
.availability-panel { position: absolute; top: calc(100% + 7px); right: 0; width: min(290px, calc(100vw - 28px)); padding: 14px; z-index: 20; border: 1px solid #bfc9be; background: var(--theme-page); box-shadow: 0 8px 24px rgba(25,27,25,.13); }
.availability-panel[hidden], .time-block-fields[hidden] { display: none; }
.availability-panel > strong { display: block; font-size: 13px; margin-bottom: 10px; }
.staff-visibility-settings { margin: 0 0 14px; padding: 0 0 12px; border: 0; border-bottom: 1px solid #e3e8e1; }
.staff-visibility-settings legend { margin-bottom: 7px; padding: 0; color: #4d5550; font-size: 11px; font-weight: 700; }
.staff-visibility-all, .staff-visibility-options label { display: flex; align-items: center; min-height: 32px; cursor: pointer; }
.staff-visibility-all { font-size: 12px; font-weight: 700; }
.staff-visibility-all input, .staff-visibility-options input { width: 16px; height: 16px; margin: 0 9px 0 0; accent-color: #191b19; }
.staff-visibility-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; margin-top: 3px; }
.staff-visibility-options label > span { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; }
.staff-visibility-options i { width: 20px; height: 18px; display: grid; place-items: center; flex: none; background: var(--staff-color); color: #191b19; font-size: 8px; font-style: normal; }
.staff-visibility-options input:disabled + span { opacity: .4; cursor: not-allowed; }
.staff-visibility-settings legend span { color: #727b74; font-size: 10px; font-weight: 500; }
.availability-option { display: block; width: 100%; padding: 10px 7px; text-align: left; border: 0; border-top: 1px solid #e3e8e1; background: var(--theme-page); font-size: 13px; font-weight: 700; }
.availability-option[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .availability-option:hover:not(:disabled) { background: var(--theme-hover); } }
.availability-option:disabled { color: #8a928b; cursor: not-allowed; }
.time-block-fields { padding: 9px 7px 12px; background: var(--theme-field); }
.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; padding: 3px 6px; border: 1px solid #cbd3c9; background: var(--theme-field); font-size: 12px; }
.time-block-submit { width: 100%; margin-top: 9px; padding: 8px; border: 1px solid #191b19; background: #191b19; color: #fff; font-size: 12px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .time-block-submit:hover { background: #353c35; } }
#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; border-top: 1px solid #e3e8e1; padding: 8px 3px; 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; } }
.schedule-scroll { width: calc(100% + 12px); margin-left: -12px; overflow: visible; }
.schedule-board { display: grid; grid-template-columns: 30px minmax(0, 1fr); min-width: 0; }
.time-gutter, .staff-column { min-width: 0; }
.gutter-heading, .staff-name { height: 36px; border-bottom: 1px solid #d9ded6; }
.gutter-heading { border-right: 1px solid #d9ded6; }
.staff-name { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 5px; border-left: 1px solid #d9ded6; background: var(--theme-page); font-size: 12px; text-align: center; }
.staff-column.is-readonly .staff-name { color: #687169; background: var(--theme-field); }
.readonly-label { margin-left: 4px; color: #788078; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.staff-online-indicator { display: inline-flex; width: 13px; height: 13px; flex: 0 0 13px; color: #17748a; }
.staff-online-indicator svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; }
.staff-avatar { width: 24px; height: 19px; display: grid; place-items: center; font-size: 9px; background: var(--staff-color, var(--shop-accent, #e4ff43)); font-weight: 700; text-transform: uppercase; }
.staff-columns { display: grid; grid-template-columns: repeat(var(--staff-count, 2), minmax(0, 1fr)); }
.staff-columns.single-staff { grid-template-columns: minmax(0, 1fr); }
.time-labels, .staff-timeline { position: relative; }
.time-labels { border-right: 1px solid #d9ded6; border-bottom: 1px solid #d9ded6; }
.hour-label { position: absolute; right: 5px; transform: translateY(-50%); color: #505c55; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--theme-page); padding: 0 2px; z-index: 1; }
.staff-timeline { border-left: 1px solid #d9ded6; background: var(--theme-page); border-bottom: 1px solid #d9ded6; }
.time-row { position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; border-top: 1px solid #e6ebe4; }
.time-row.hour-row { border-color: #cbd5ca; }
.schedule-slot-action { position: absolute; left: 0; right: 0; z-index: 1; padding: 0; border: 0; background: transparent; cursor: cell; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .schedule-slot-action:hover { background: color-mix(in srgb, var(--shop-accent, #e4ff43) 12%, transparent); outline: 1px solid color-mix(in srgb, var(--shop-accent, #e4ff43) 42%, transparent); outline-offset: -1px; } }
.schedule-slot-action:focus-visible { z-index: 4; outline: 2px solid var(--shop-accent, #e4ff43); outline-offset: -2px; }
.availability-shade { position: absolute; left: 0; right: 0; z-index: 0; background: var(--shop-blocked, #edf0df); }
.staff-column:first-child :is(.staff-name, .staff-timeline) { border-left: 0; }
.staff-column:last-child :is(.staff-name, .staff-timeline) { border-right: 1px solid #d9ded6; }
.closed-day { grid-column: 1 / -1; padding: 24px 0; border-top: 1px solid #d9ded6; color: #6b756d; font-size: 12px; text-align: center; }
.calendar-event { position: absolute; z-index: 2; left: 6px; right: 6px; padding: 6px 9px 5px; overflow: visible; display: flex; flex-direction: column; gap: 1px; min-width: 0; border: 1px solid rgba(55, 65, 59, .12); box-shadow: 0 2px 8px rgba(25, 27, 25, .07); }
.calendar-event.split { width: calc(50% - 10px); right: auto; }
.calendar-event.split.lane-1 { left: calc(50% + 3px); }
.calendar-event.full { right: 25%; }
.calendar-event { background: color-mix(in srgb, var(--service-color, #e7ece8) 80%, transparent); color: #26342d; }
.event-main { display: flex; flex: 1; flex-direction: column; gap: 1px; width: 100%; min-width: 0; min-height: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .event-main:hover strong { text-decoration: underline; text-underline-offset: 2px; } }
.event-main:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.event-main strong { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.2; }
.event-detail, .event-time { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.2; }
.event-detail { opacity: .85; }
.event-time { max-width: calc(100% - 18px); overflow: visible; text-overflow: clip; font-size: 13px; font-variant-numeric: tabular-nums; }
.online-indicator { position: absolute; right: 5px; bottom: 5px; display: grid; place-items: center; width: 17px; height: 17px; color: currentColor; opacity: .72; }
.online-indicator svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.event-menu-button { position: absolute; top: 4px; right: 4px; z-index: 3; width: 18px; height: 18px; padding: 0; border: 0; background: transparent; color: inherit; display: grid; place-items: center; }
.block-heading .event-menu-button { top: 4px; right: 4px; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .event-menu-button:hover { background: rgba(255,255,255,.65); } }
.event-menu-button svg { width: 15px; height: 15px; }
.event-menu { position: absolute; top: 22px; right: 3px; z-index: 6; background: var(--theme-page); border: 1px solid #d9ded6; box-shadow: 0 5px 14px rgba(25,27,25,.16); min-width: 125px; }
.event-menu[hidden] { display: none; }
.event-menu button { width: 100%; text-align: left; padding: 9px 11px; border: 0; background: transparent; font-size: 12px; color: #8a2f35; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .event-menu button:hover { background: #fdf0f0; } }
.calendar-event:has(.event-menu:not([hidden])) { z-index: 7; }
.calendar-block { position: absolute; left: 5px; right: 5px; z-index: 2; min-height: 34px; padding: 5px 7px; background: var(--shop-blocked-strong, #e1e4da); color: var(--shop-blocked-ink, #58604f); border: 1px solid var(--shop-line, #dfe2da); font-size: 11px; overflow: visible; }
.calendar-block.day-block { background: color-mix(in srgb, var(--shop-blocked, #edf0df) 78%, transparent); }
.calendar-block .block-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.calendar-block .block-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.calendar-block > span { display: block; font-variant-numeric: tabular-nums; }
.calendar-block:has(.event-menu:not([hidden])) { z-index: 7; }
.now-line { position: absolute; left: 0; right: 0; z-index: 5; border-top: 1px solid #cb4f4e; pointer-events: none; }
.now-line::before { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; left: -3px; top: -3px; background: #cb4f4e; }
.booking-log { margin-top: 34px; border-top: 1px solid #191b19; }
.section-heading { display: flex; gap: 8px; align-items: baseline; padding: 21px 0 13px; }
.section-heading h2 { font-family: "Space Grotesk", Arial, sans-serif; font-size: 18px; margin: 0; }
.section-heading span { color: #5d625d; font-size: 12px; }
.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 { width: 100%; display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.log-copy strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-phone { margin-left: auto; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-copy span { color: #5d625d; }
.log-actions { width: 104px; display: flex; justify-content: flex-start; }
.cancel-log { display: flex; align-items: center; gap: 5px; border: 1px solid #c97677; background: #fff; color: #9b3037; padding: 5px 7px; 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 { background: #f2f2f1; color: #7a7f7b; padding-left: 8px; padding-right: 8px; }
.log-entry.cancelled .log-copy { text-decoration: line-through; }
.empty-log { margin: 0; padding: 16px 0; border-top: 1px solid #d9ded6; color: #5d625d; font-size: 13px; }
.preview-dialog { width: min(460px, calc(100vw - 24px)); border: 1px solid #d9ded6; padding: 22px; box-shadow: 0 18px 50px rgba(25,27,25,.18); max-height: calc(100vh - 24px); overflow-y: auto; }
.preview-dialog::backdrop { background: rgba(20,25,20,.42); }
.detail-dialog { width: min(420px, calc(100vw - 24px)); }
.detail-dialog .dialog-heading { margin-bottom: 13px; }
.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; line-height: 1.4; }
.detail-row dt { color: #66716b; }
.detail-row dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-weight: 600; white-space: pre-wrap; }
.detail-actions { display: flex; justify-content: space-between; gap: 9px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #e3e8e1; }
.detail-actions[hidden] { display: none; }
.detail-delete { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 10px; border: 1px solid #c97677; background: #fff; color: #8f2931; font-size: 12px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .detail-delete:hover { background: #fdf0f0; } }
.detail-delete:focus-visible { outline: 2px solid #8f2931; outline-offset: 2px; }
.detail-delete svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail-edit { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 10px; border: 1px solid #191b19; background: #191b19; color: #fff; font-size: 12px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .detail-edit:hover { background: #343834; } }
.detail-edit:focus-visible { outline: 2px solid #191b19; outline-offset: 2px; }
.detail-edit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.dialog-heading h2 { font-size: 21px; margin: 0; }
.dialog-close { margin: -6px -6px 0 0; }
.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; }
.service-select-shell { display: block; min-width: 0; }
.service-select-shell select { transition: background-color 120ms ease; }
.form-fields select, .form-fields textarea, .form-fields input { width: 100%; min-width: 0; border: 1px solid #cfd6cd; background: var(--theme-field); padding: 10px; font-size: 13px; color: #191b19; }
.form-fields select, .form-fields input { height: 41px; }
.form-fields .date-input-shell { display: flex; align-items: center; width: 100%; min-width: 0; height: 41px; padding: 0 10px; overflow: hidden; border: 1px solid #cfd6cd; background: var(--theme-field); }
.form-fields .date-input-shell input[type="date"] { display: block; flex: 1 1 auto; width: 100%; min-width: 0; max-width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; background: transparent; color: #191b19; font: inherit; line-height: normal; }
.form-fields input[type="date"]::-webkit-date-and-time-value { display: flex; align-items: center; height: 100%; min-height: 0; margin: 0; padding: 0; text-align: left; }
.form-fields textarea { resize: vertical; }
.dialog-message { min-height: 17px; margin: 10px 0 0; 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: var(--theme-field); }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .text-button:hover { background: var(--theme-hover); } }
.danger-button { color: #fff; background: #a2383e; border: 1px solid #a2383e; }
@media (hover: hover) and (pointer: fine) and (orientation: landscape) { .danger-button:hover { background: #842b30; } }
.dialog-actions button:disabled { opacity: .42; cursor: not-allowed; }
.confirm-dialog p { font-size: 14px; line-height: 1.5; margin: 0; }
.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: var(--theme-page); color: #1c3528; box-shadow: 0 8px 24px rgba(25,27,25,.13); font-size: 13px; line-height: 1.4; }
.action-toast[hidden] { display: none; }
.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; }
@media (max-width: 700px) {
  .preview-header { min-height: 56px; padding: 0 12px; gap: 8px; }
  .preview-header h1 { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
  .preview-header nav { gap: 8px; }
  .preview-header nav a { font-size: 11px; }
  .header-tool { width: 27px; height: 27px; }
  .header-tool svg { width: 14px; height: 14px; }
  .preview-login { padding: 6px; font-size: 10px; gap: 4px; }
  .preview-login svg { width: 13px; height: 13px; }
  .role-login { padding: 3px; }
  .role-login select { max-width: 74px; min-height: 25px; padding-left: 4px; font-size: 10px; }
  .role-login input { width: 62px; min-height: 25px; padding: 3px 4px; font-size: 10px; }
  .role-login button, .preview-logout { min-height: 25px; padding: 3px 5px; font-size: 9px; }
  .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; gap: 2px; }
  .mini-day-strip { width: 100%; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
  .mini-day { height: 55px; grid-template-rows: 12px 20px 3px; row-gap: 3px; }
  .mini-day .day-weekday { font-size: 10px; line-height: 12px; }
  .mini-day strong { font-size: 16px; line-height: 20px; }
  .today-button { padding: 7px 6px; margin-right: 2px; font-size: 11px; }
  .day-nav-controls .icon-button { width: 25px; height: 29px; }
  .day-nav-controls .icon-button svg { width: 15px; height: 15px; }
  .availability-shell { position: absolute; top: 8px; right: 0; margin: 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; }
  .schedule-board { grid-template-columns: 25px minmax(0,1fr); min-width: 0; }
  .hour-label { font-size: 12px; right: 2px; }
  .staff-name { padding: 0 3px; gap: 4px; font-size: 10px; }
  .readonly-label { display: none; }
  .staff-avatar { width: 17px; height: 17px; font-size: 9px; }
  .calendar-event { left: 3px; right: 3px; padding: 5px 4px 3px; }
  .calendar-event.full { right: 25%; }
  .calendar-event.split { width: calc(50% - 5px); }
  .calendar-event.split.lane-1 { left: calc(50% + 2px); }
  .event-main strong { font-size: 12px; }
  .event-detail { font-size: 10px; }
  .event-time { max-width: calc(100% - 16px); font-size: 11px; letter-spacing: 0; }
  .online-indicator { right: 3px; bottom: 3px; width: 15px; height: 15px; }
  .online-indicator svg { width: 13px; height: 13px; }
  .event-menu-button { width: 15px; height: 18px; top: 3px; right: 2px; }
  .event-menu-button svg { width: 13px; height: 13px; }
  .calendar-block { left: 3px; right: 3px; padding: 4px; font-size: 9px; }
  .calendar-block .block-heading strong { font-size: 10px; }
  .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; }
  .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; }
  .toast-close svg { width: 13px; height: 13px; }
}
@media (orientation: portrait) and (max-width: 700px) {
  .action-toast { right: auto; left: 50%; transform: translateX(-50%); }
  .preview-header nav a { display: none; }
  .preview-header nav a.settings-link:not([hidden]) { display: inline-grid; }
  .preview-session span { display: none; }
}
@media (max-width: 380px) {
  .preview-login span { display: none; }
  .mini-day-strip { gap: 0; }
  .mini-day strong { font-size: 15px; }
  .calendar-event.split { padding-left: 3px; padding-right: 3px; }
  .calendar-event.split .event-time { font-size: 10px; }
  .staff-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Demo voice appointment experiment. The control is only present in demo/admin. */
.voice-appointment-control { position: fixed; right: 20px; bottom: 20px; z-index: 52; display: none; align-items: center; gap: 9px; }
.voice-appointment-control[hidden] { display: none; }
.voice-appointment-status { max-width: min(280px, calc(100vw - 100px)); padding: 9px 12px; border: 1px solid #c8d0c6; background: var(--theme-page); color: #243029; box-shadow: 0 7px 20px rgba(25,27,25,.12); font-size: 12px; font-weight: 700; }
.voice-appointment-button { display: grid; place-items: center; width: 56px; height: 56px; flex: none; padding: 0; border: 1px solid color-mix(in srgb, var(--shop-accent) 72%, #202820); border-radius: 50%; background: var(--shop-accent); color: #111; box-shadow: 0 8px 22px rgba(25,27,25,.2); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.voice-appointment-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; }
.voice-appointment-button .voice-spinner { display: none; stroke-dasharray: 35 16; animation: voice-spin .8s linear infinite; }
.voice-appointment-button[data-state="recording"] { background: #d43e45; border-color: #9e252c; color: #fff; transform: scale(1.06); }
.voice-appointment-button[data-state="requesting"] .voice-microphone,
.voice-appointment-button[data-state="processing"] .voice-microphone { display: none; }
.voice-appointment-button[data-state="requesting"] .voice-spinner,
.voice-appointment-button[data-state="processing"] .voice-spinner { display: block; }
.voice-appointment-button:disabled { opacity: 1; cursor: wait; }
@keyframes voice-spin { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .voice-appointment-control { right: 18px; bottom: max(64px, calc(env(safe-area-inset-bottom) + 52px)); gap: 9px; }
  .voice-appointment-button { width: 64px; height: 64px; }
  .voice-appointment-button svg { width: 28px; height: 28px; }
  .voice-appointment-status { max-width: calc(100vw - 104px); padding: 8px 10px; font-size: 11px; }
}
@media (orientation: portrait) {
  .voice-appointment-control:not([hidden]) { display: flex; }
}
