:root {
  color-scheme: light;
  font: 16px/1.45 Inter, system-ui, sans-serif;
  color: #17191b;
  background: #f5f6f7;
  --brand: #1b1d20;
  --quiet: #686d73;
  --line: #e7e9ec;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; color: inherit; }
button:focus-visible { outline: 3px solid #748294; outline-offset: 2px; }
button:disabled { cursor: default; }
.shell { width: min(100% - 40px, 970px); margin: 0 auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 1.26rem; font-weight: 800; letter-spacing: -.045em; }
.brand img { border-radius: 8px; }
.demo { color: #353b44; background: #eaecf0; padding: 6px 11px; border-radius: 50px; font-size: .77rem; font-weight: 700; }
main { padding: 31px 0 36px; }
.intro { margin-bottom: 26px; }
.intro p { margin: 8px 0 0; color: var(--quiet); }
.intro .salon { color: #353b44; font-weight: 700; font-size: .86rem; margin: 0 0 7px; }
.salon span { margin: 0 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); letter-spacing: -.055em; line-height: 1.07; }
h2 { font-size: 1.15rem; letter-spacing: -.025em; }
h3 { font-size: .94rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.42fr); gap: 18px; align-items: start; }
.preferences { display: grid; gap: 16px; }
.panel { background: #fff; border: 1px solid var(--line); padding: 18px; border-radius: 19px; box-shadow: 0 5px 25px #16191d08; }
.choices { display: grid; gap: 8px; margin-top: 12px; }
.choice { background: #fff; display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; min-height: 54px; width: 100%; }
.choice[aria-pressed="true"], .slot[aria-pressed="true"] { background: #ebedf0; border-color: #8b929b; color: #20242a; }
.choice-text { display: grid; gap: 1px; flex: 1; }
.choice b { font-size: .88rem; }
.choice small { font-size: .78rem; color: var(--quiet); }
.avatar { display: grid; place-items: center; flex: 0 0 35px; height: 35px; border-radius: 50%; background: #ebedf0; color: #303740; font-weight: 750; }
.radio { border: 1px solid #aab0b8; width: 16px; height: 16px; border-radius: 50%; flex: 0 0 16px; }
.choice[aria-pressed="true"] .radio { background: var(--brand); border-color: var(--brand); box-shadow: inset 0 0 0 3px #fff; }
.date-head, .month { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.secondary, .nav, .slot { background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; }
.secondary { min-height: 42px; padding: 7px 11px; color: #303740; font-size: .8rem; }
.secondary:disabled { opacity: .5; }
.month { margin: 14px 0 8px; text-transform: capitalize; }
.nav { width: 42px; height: 42px; font-size: 1.5rem; }
.nav:disabled { opacity: .34; }
.week, .dates { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; text-align: center; }
.week { font-size: .67rem; font-weight: 700; color: var(--quiet); margin: 0 0 7px; }
.date { min-height: 44px; border-radius: 9px; background: transparent; border: 1px solid transparent; font-size: .88rem; font-weight: 720; display: grid; gap: 2px; align-content: center; justify-items: center; padding: 2px; }
.date::after, .legend span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--status); }
.open { --status: #168951; }
.legend .medium { --status: #a67806; }
.full { --status: #d73449; }
.off { --status: #868c94; }
.date.open { background: #e9f6ee; color: #175639; }
.date.full { background: #fdf0f2; color: #8c2b3d; }
.date.off { background: #edeff2; color: #646a72; }
.date.past { color: #797f87; }
.date[aria-pressed="true"] { border: 2px solid var(--brand); box-shadow: 0 0 0 1px #e8ebef; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 12px 0 16px; color: var(--quiet); font-size: .73rem; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.times { border-top: 1px solid var(--line); padding-top: 13px; }
.slots { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-top: 9px; }
.slots p { grid-column: 1 / -1; color: var(--quiet); font-size: .84rem; }
.slot { min-height: 42px; padding: 5px 2px; font-size: .86rem; }
.footer { margin-top: 17px; }
#summary { margin-bottom: 7px; font-size: .84rem; font-weight: 650; }
.primary { width: 100%; min-height: 48px; border-radius: 12px; background: var(--brand); color: #fff; border: 0; font-weight: 750; }
.primary:disabled { background: #e6e8eb; color: #686e75; }
.micro { font-size: .76rem; color: var(--quiet); }
.footer .micro { margin-top: 7px; text-align: center; }
#notice:not(:empty) { padding: 9px 11px; margin-bottom: 12px; background: #e9ebee; color: #353c46; border-radius: 9px; }
.result { max-width: 540px; margin: 0 auto; text-align: center; padding: 25px 18px; }
.result p { margin: 10px 0; white-space: pre-line; }
.result-mark { margin: 0 auto 12px; border-radius: 50%; width: 55px; height: 55px; display: grid; place-items: center; font-size: 1.6rem; background: #e9edf0; color: #303740; }
@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 480px); }
  .top-inner { min-height: 56px; }
  main { padding-top: 22px; }
  .intro { margin-bottom: 16px; }
  .layout, .preferences { display: grid; grid-template-columns: 1fr; gap: 11px; }
  .panel { padding: 13px; border-radius: 15px; }
  #masters { grid-template-columns: 1fr 1fr; }
  #masters .avatar { display: none; }
  #masters .choice { gap: 4px; padding: 7px; }
  #masters .choice small { font-size: .67rem; }
}
a { color: #303740; }
a.secondary { display: inline-flex; align-items: center; text-decoration: none; }
.demo { text-decoration: none; }
.contact-fields, .form-fields { display: grid; gap: 9px; margin: 10px 0; }
.contact-fields label, .form-fields label { display: grid; gap: 4px; color: var(--quiet); font-size: .84rem; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: inherit; font: inherit; font-size: 1rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #748294; outline-offset: 1px; }
.demo-link { text-decoration: none; color: inherit; }
.cabinet-narrow { max-width: 490px; }
.cabinet { display: grid; gap: 12px; }
.cabinet .panel { max-width: 750px; }
.cabinet-nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.cabinet-nav [aria-pressed="true"] { background: #ebedf0; border-color: #8b929b; }
.inline-fields, .week-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.form-fields .inline-fields { margin: 0; }
.form-fields .check { display: flex; align-items: center; gap: 6px; }
.check input { min-height: auto; width: auto; }
.inset { background: #f6f7f8; border-radius: 12px; padding: 12px; border: 1px solid var(--line); }
.cabinet-list { display: grid; gap: 8px; margin-top: 10px; }
.cabinet-entry { display: grid; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
.cabinet-entry.pending { border-color: #c9ced5; background: #f3f5f7; }
.cabinet-entry header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px; }
.cabinet-entry .state { font-size: .77rem; color: #3d454f; font-weight: 700; }
.cabinet .actions .primary { width: auto; padding: 8px 12px; }
@media (max-width: 370px) { .inline-fields, .week-fields { grid-template-columns: 1fr; } }
.install-panel { margin-bottom: 12px; }
summary { min-height: 36px; display: list-item; padding: 6px 0; cursor: pointer; font-weight: 720; }
#install-hint, #push-status { margin: 4px 0 9px; }
#active-notification {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f5f6f7;
  color: inherit;
}
body:has(#active-notification[open]) { overflow: hidden; }
.notification-top {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: max(10px, env(safe-area-inset-top)) 0 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.notification-shell { width: min(100% - 36px, 580px); margin-inline: auto; }
.notification-content { padding: 24px 0 max(32px, env(safe-area-inset-bottom)); }
.notification-content h1 { font-size: clamp(1.75rem, 7vw, 2.65rem); }
#notification-message:not(:empty) { margin-top: 12px; color: var(--quiet); }
#active-booking .cabinet-entry {
  margin-top: 8px;
  padding: 16px;
  gap: 10px;
  background: #fff;
}
#active-booking .cabinet-entry header { gap: 8px; }
#active-booking .cabinet-entry header strong { font-size: 1.15rem; }
#active-booking .actions { margin-top: 8px; }
#active-booking .actions button { min-height: 46px; }
#active-booking .primary { flex-basis: 100%; }
.waitlist-card { margin-top: 12px; }
#waitlist-result:not(:empty) { margin: 8px 0; color: var(--quiet); }
.section-actions { margin-top: 9px; }
#waiting-push-status { margin-top: 5px; }
#leave-waiting { justify-self: start; }
.tariff-total { font-weight: 750; font-size: clamp(1.4rem,4vw,2.25rem); margin: .25rem 0; }

/* Booking and staff screens share the same calendar, sheets and controls. */
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  --brand: #1b1d20;
  --quiet: #666c73;
  --line: #e6e8eb;
  --app-bg: #f5f6f7;
  --control: #f0f2f4;
}
html { touch-action: pan-x pan-y; }
body { overflow-wrap: anywhere; }
input, select, textarea { min-width: 0; font-size: max(16px, 1rem); }
.form-fields label, .contact-fields label, .choice-text { min-width: 0; }
.date-head { flex-wrap: wrap; }
.top { padding-top: env(safe-area-inset-top); }
.top-inner { gap: 12px; }
.brand img { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 0; }
.booking-screen, .cabinet-screen { background: var(--app-bg); }
.booking-screen .shell, .cabinet-screen .shell { width: min(100% - 32px, 560px); }
.booking-screen .top, .cabinet-screen .top { background: #fff; }
.booking-screen .top-inner, .cabinet-screen .top-inner { min-height: 55px; }
.booking-screen main, .cabinet-screen main { padding-top: 17px; }
.cabinet-screen main { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.booking-intro, .cabinet-intro { margin: 0 0 16px; }
.booking-intro h1, .cabinet-intro h1 { font-size: clamp(1.65rem, 6vw, 2.3rem); line-height: 1.12; }
.cabinet-intro p { margin-top: 5px; font-size: .9rem; }
.booking-layout { display: grid; gap: 12px; align-items: start; }
.booking-layout .preferences { gap: 9px; }
.booking-screen .panel, .cabinet-screen .panel { box-shadow: none; border-radius: 17px; }
.month-panel.panel { padding: 12px 13px 11px; border-radius: 20px; }
.pinned-calendar { position: sticky; top: env(safe-area-inset-top); z-index: 2; }
#calendar-view { display: contents; }
#calendar-view[hidden] { display: none; }
#workspace-area:has(#calendar-view:not([hidden])) .month-panel { order: -1; }
.calendar-heading.month { margin: 0 0 10px; text-transform: none; }
.calendar-heading strong::first-letter { text-transform: uppercase; }
.calendar-heading strong { order: -1; margin-right: auto; font-size: 1.13rem; letter-spacing: -.023em; }
.calendar-heading .nav, .icon-action {
  border: 0;
  background: var(--control);
  color: var(--brand);
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
  font-size: 1.5rem;
  padding: 0;
}
.month-panel .week { margin: 4px 0; }
.month-panel .week, .month-panel .dates { gap: 1px; }
.calendar-date {
  min-width: 0;
  padding: 0;
  min-height: 40px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: 9px;
  font-size: .88rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.date-number {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 35px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--date-bg, #f7f8f9);
  color: var(--date-ink,#24282e);
  isolation: isolate;
}
.date-number::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(var(--ring,#343b44) var(--fill,0%), var(--track,#e8eaee) 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  pointer-events: none;
}
.calendar-date[data-load="low"] { --ring: #25835a; --track: #c6e4d3; --date-ink: #246148; }
.calendar-date[data-load="medium"] { --ring: #a67806; --track: #f0e2b6; --date-ink: #755504; }
.calendar-date[data-load="full"] { --ring: #c03348; --track: #f0c3cb; --date-ink: #9b293d; }
.calendar-date.off { --ring: #757b84; --date-bg: #eff1f3; --date-ink: #626972; --track: #d9dde2; }
.calendar-date:disabled .date-number { background: transparent; color: #81868d; opacity: .6; }
.calendar-date:disabled .date-number::before { display: none; }
.calendar-date[aria-current="date"] .date-number { font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.calendar-date[aria-pressed="true"] .date-number { background: #24272c; color: #fff; }
.calendar-date:not(:disabled) .date-number { background: var(--date-bg,#fff); }
.calendar-date[aria-pressed="true"] { --date-bg: #24272c; }
.calendar-date.open[aria-pressed="true"], .calendar-date.full[aria-pressed="true"], .calendar-date.off[aria-pressed="true"] { --date-bg: #24272c; }
.month-panel .legend { align-items: center; margin: 5px 1px 0; gap: 3px 10px; font-size: .7rem; }
.legend .occupancy::before { width: 9px; height: 9px; border: 1.5px solid var(--brand); border-right-color: #d1d6dc; }
.legend .text-action { margin-left: auto; padding: 4px 0 4px 8px; min-height: 30px; font-size: .76rem; }
.select-menu.panel { padding: 0 12px; }
.select-menu summary {
  display: grid;
  grid-template-columns: max-content minmax(0,1fr) 11px;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 5px 1px;
  font-size: .91rem;
  list-style: none;
}
.select-menu summary::-webkit-details-marker { display: none; }
.select-menu summary span { color: var(--quiet); font-weight: 600; }
.select-menu summary strong { text-align: right; font-size: .86rem; }
.select-menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid var(--quiet);
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.select-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.select-menu .choices { margin: 0 0 10px; }
.booking-screen #masters { grid-template-columns: repeat(2,minmax(0,1fr)); }
.booking-screen .choice { background: #f7f8f9; }
.booking-screen .choice[aria-pressed="true"] { background: #eaecf0; }
.nearest-action { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding-inline: 14px; border-radius: 13px; font-size: .89rem; background: var(--brand); color: #fff; }
.nearest-action span { font-size: 1.1rem; }
.text-action { min-height: 40px; border: 0; background: transparent; color: var(--brand); font-size: .88rem; font-weight: 700; }
.slot-guide { grid-column: 1 / -1; }
#month-message:empty, #day-message:empty, #sheet-message:empty, #wa-result:empty { display: none; }
#sheet-message:not(:empty), #day-message:not(:empty) { margin-top: 10px; color: #8a3040; }
.app-sheet {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  padding: 0;
  width: min(100%, 560px);
  max-width: 100%;
  max-height: min(88dvh, 800px);
  background: #fff;
  color: inherit;
  border: 0;
  border-radius: 23px 23px 0 0;
  overscroll-behavior: contain;
  box-shadow: 0 -16px 55px #191d2429;
}
.app-sheet::backdrop, #active-notification::backdrop { background: #16191e70; }
body:has(dialog[open]) { overflow: hidden; }
.sheet-content { padding: 9px 17px max(18px, env(safe-area-inset-bottom)); }
.sheet-handle { width: 35px; height: 4px; margin: 0 auto 10px; border-radius: 8px; background: #dbdee2; }
.sheet-content h2 { font-size: 1.25rem; text-transform: none; }
.sheet-content .date-head h2 { flex: 1; min-width: 0; }
#sheet-service { margin-top: 4px; }
.app-sheet .slots { margin-top: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.app-sheet .slot { background: #f7f8f9; padding: 4px; min-height: 46px; }
.app-sheet .slot[aria-pressed="true"] { color: #fff; background: var(--brand); border-color: var(--brand); }
.wa-choice-content > p { margin: 10px 0 14px; color: var(--quiet); }
#wa-choice-error:empty { display: none; }
#wa-choice-error:not(:empty) { color: #8a3040; }
#wa-accept, #wa-remember, #wa-skip { display: block; width: 100%; }
#wa-remember:not([hidden]) + #wa-accept { margin-top: 7px; }
#wa-skip { margin-top: 4px; }
.wa-link { display: grid; align-items: center; text-decoration: none; padding: 8px; }
.calendar-selector.panel { padding: 8px 12px; }
.calendar-selector .form-fields { margin: 0; }
.calendar-selector .form-fields:has(> label[hidden]) { grid-template-columns: minmax(0,1fr); }
.day-actions { margin-top: 6px; }
.tab-bar {
  position: fixed;
  z-index: 4;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
  padding: 5px 9px max(5px,env(safe-area-inset-bottom));
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 19px 19px 0 0;
  box-shadow: 0 -6px 22px #272d360f;
}
.tab-bar button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  min-height: 53px;
  padding: 3px 1px;
  border: 0;
  background: transparent;
  color: #626974;
  font-size: .74rem;
  font-weight: 720;
  border-radius: 12px;
}
.tab-bar button[aria-pressed="true"] { color: #17191b; }
.tab-bar button[aria-pressed="true"] svg { background: #20242a; color: #fff; }
.tab-bar svg { width: 34px; height: 28px; padding: 4px 7px; border-radius: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.settings-options { display: grid; margin: 10px 0; border-top: 1px solid var(--line); }
.settings-options button {
  min-height: 46px;
  padding: 8px 4px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}
.settings-options button::after {
  content: "";
  float: right;
  width: 7px;
  height: 7px;
  margin: 7px 4px 0 10px;
  border: solid var(--quiet);
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.settings-options button[aria-pressed="true"] { color: var(--brand); }
#permission-sheet p { margin: 8px 0 14px; color: var(--quiet); }
#permission-later { width: 100%; margin-top: 4px; }
@media (max-width: 360px) {
  .booking-screen .shell, .cabinet-screen .shell { width: calc(100% - 22px); }
  .month-panel.panel { padding-inline: 8px; }
  .calendar-date { min-height: 34px; }
  .month-panel .legend { gap: 3px 7px; }
  .app-sheet .sheet-content { padding-inline: 12px; }
}
@media (max-height: 550px) and (orientation: landscape) {
  .pinned-calendar { position: static; }
  .app-sheet { max-height: 96dvh; }
}
@media (display-mode: standalone) {
  .cabinet-screen #install-panel { display: none; }
}

.today-row.panel {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 9px 12px;
}
.today-row .day-index {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 12px;
  background: #edf0f3;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.today-row .today-label { display: grid; flex: 1; min-width: 0; }
.today-label strong { font-size: .9rem; }
.today-label span { color: var(--quiet); font-size: .78rem; }
.today-row .open-day { font-size: 1.26rem; color: var(--quiet); }

.desktop-switch { margin-left: auto; }
.arrival { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0 0 12px; }
.arrival strong { flex: 1 0 145px; }
#desktop-sound { margin-top: 10px; }
#desktop-sound .micro { margin: 4px 0 8px; }
@media (max-width: 600px) {
  .cabinet-screen:not(.desktop-screen) .desktop-switch { display: none; }
}
@media (min-width: 980px) {
  .desktop-screen .shell { width: min(100% - 56px,1400px); }
  .desktop-screen .top-inner { min-height: 64px; }
  .desktop-screen main { padding-top: 26px; padding-bottom: 36px; }
  .desktop-screen .cabinet-intro { margin-bottom: 21px; }
  .desktop-screen .cabinet-intro h1 { font-size: 2rem; }
  .desktop-screen #workspace-area {
    display: grid;
    grid-template-columns: 178px minmax(340px,1fr) minmax(286px,.88fr);
    grid-template-areas: "nav filters agenda" "nav month agenda" "nav today agenda";
    grid-template-rows: auto auto 1fr;
    align-items: start;
    gap: 12px 16px;
  }
  .desktop-screen #workspace-area:not(:has(#workspace-panel:not([hidden]))) {
    grid-template-areas: "nav month agenda" "nav today agenda";
    grid-template-rows: auto 1fr;
  }
  .desktop-screen #workspace-area:has(#calendar-view[hidden]) {
    grid-template-areas: "nav filters filters" "nav view view";
    grid-template-rows: auto 1fr;
  }
  .desktop-screen #workspace-area:has(#calendar-view[hidden]):not(:has(#workspace-panel:not([hidden]))) {
    grid-template-areas: "nav view view";
    grid-template-rows: 1fr;
  }
  .desktop-screen .cabinet .panel { max-width: none; }
  .desktop-screen #workspace-panel { grid-area: filters; }
  .desktop-screen .month-panel { grid-area: month; padding: 17px 19px; }
  .desktop-screen .today-row { grid-area: today; }
  .desktop-screen #requests-view, .desktop-screen #app-settings { grid-area: view; min-width: 0; }
  .desktop-screen .desktop-agenda {
    grid-area: agenda;
    min-width: 0;
    padding: 0;
    position: sticky;
    top: 12px;
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }
  .desktop-agenda .sheet-content { padding: 16px; }
  .desktop-agenda .sheet-handle, .desktop-agenda #close-day { display: none; }
  .desktop-agenda #calendar { margin-top: 14px; }
  .desktop-screen .calendar-date { min-height: clamp(36px, 6dvh, 54px); }
  .desktop-screen .date-number { width: 43px; }
  .desktop-screen .tab-bar {
    grid-area: nav;
    position: sticky;
    top: 12px;
    left: auto;
    bottom: auto;
    transform: none;
    width: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: none;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .desktop-screen .tab-bar button {
    display: flex;
    justify-content: flex-start;
    gap: 9px;
    min-height: 43px;
    padding: 4px 7px;
    font-size: .88rem;
  }
  .desktop-screen .tab-bar button[aria-pressed="true"] { background: #eef0f2; }
  .desktop-screen .tab-bar svg { flex: 0 0 32px; }
  .desktop-screen #app-settings { max-width: 860px; }
}

.wait-slot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
#waiting-choice:not(:empty) { margin-top: 8px; }
#waitlist-wa-confirm { margin-right: 4px; }

.contact-memory { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.contact-memory label { display: flex; flex-direction: row; align-items: center; gap: 6px; font-size: .79rem; font-weight: 560; }
.contact-memory input { width: 17px; height: 17px; min-height: 0; flex: 0 0 17px; accent-color: var(--brand); }
.contact-memory .text-action { min-height: 34px; padding: 4px 3px; font-size: .77rem; }

#tariff-access { margin: 10px 0; }
#tariff-progress, .platform-record progress { width: min(100%, 320px); accent-color: var(--brand); }
.month-panel #calendar-today { margin-top: 10px; border-radius: 12px; background: var(--control); }
.manual-time { display: grid; gap: 5px; min-width: 0; }
.manual-times { background: #fff; padding: 9px; border: 1px solid var(--line); border-radius: 12px; }
.manual-times .slots { grid-template-columns: repeat(auto-fit,minmax(61px,1fr)); max-height: 175px; overflow-y:auto; }
.booking-share { width: 100%; display: flex; gap: 7px; flex-wrap: wrap; }
.booking-share input { flex: 1 1 170px; }
.platform-screen { background: var(--app-bg); }
.platform-screen .panel { box-shadow: none; }
.platform-filters { margin: 0 0 14px; align-items: end; }
.platform-filters label { display: grid; gap: 4px; flex: 1 1 180px; }
.platform-list { display: grid; gap: 10px; }
.platform-list article { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.platform-record { display: grid; gap: 5px; flex: 1 1 270px; min-width: 0; }
.platform-access { font-size: .89rem; font-weight: 650; }
#platform-error:empty, #platform-message:empty { display:none; }
#platform-message { margin-bottom: 10px; }
@media (min-width: 980px) {
  .desktop-screen #workspace-area:not(:has(#calendar-view[hidden])) {
    --pane-height: clamp(400px, calc(100dvh - 335px), 700px);
    grid-template-columns: 178px repeat(2,minmax(0,1fr));
    grid-template-rows: auto var(--pane-height);
    grid-template-areas: "nav filters filters" "nav month agenda";
  }
  .desktop-screen #workspace-area:not(:has(#calendar-view[hidden])):not(:has(#workspace-panel:not([hidden]))) {
    --pane-height: clamp(400px, calc(100dvh - 245px), 700px);
    grid-template-rows: var(--pane-height);
    grid-template-areas: "nav month agenda";
  }
  .desktop-screen #workspace-area:not(:has(#calendar-view[hidden])) :is(.month-panel,.desktop-agenda) {
    height: var(--pane-height);
    max-height: none;
    overflow: auto;
    overscroll-behavior-y: contain;
  }
  .desktop-screen #requests-view { max-height: calc(100dvh - 155px); overflow:auto; overscroll-behavior-y:contain; }
}

#staff-wait-error:empty, #waitlist-staff-status:empty { display: none; }
#waitlist-staff-status:not(:empty), #platform-account { margin: 8px 0; }

#platform-password-error:empty, #staff-password-error:empty { display:none; }
#platform-password-error, #staff-password-error { color:#8a3040; }

.waitlist-requests {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line, #e2e3e5);
}
