.top .header-user-controls{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:10px;direction:rtl;margin-left:auto;max-width:55%;min-width:0}
.top .header-user-controls .operator-access-button{margin:0;max-width:100%;white-space:normal}
.theme-picker{display:flex;align-items:center;gap:6px;font-size:12px;color:#334155;white-space:nowrap}
.theme-picker select{font:inherit;background:#fff;color:#1e293b;border:1px solid #cbd5e1;border-radius:9px;padding:7px;min-height:36px;max-width:120px}
.theme-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.theme-picker:focus-within+.theme-status{position:static;width:100%;height:auto;clip-path:none;white-space:normal;font-size:11px}
@media(max-width:760px){.top .header-user-controls{gap:6px;max-width:48%;justify-content:flex-start}.theme-picker{flex-wrap:wrap;gap:3px}.theme-picker select{max-width:100%;padding:5px}.top .brand.laloon-brand{max-width:48%}}
/* Dark rules are screen-only: print/PDF documents always retain their light palette. */
@media screen{
  html[data-theme="dark"]{color-scheme:dark;background:#0b1220;--ink:#e2e8f0;--navy:#dbeafe;--blue:#8fd1ec;--sea:#5eead4;--aqua:#5eead4;--coral:#fdba74;--sand:#0b1220;--paper:#172235;--line:#34445d;--mute:#afbed1;--soft-shadow:0 8px 28px #0003}
  html[data-theme="dark"] body{background:#0b1220!important;color:#e2e8f0!important}
  html[data-theme="dark"] :is(.top,.nav,.card,.box,.head,.home,.rates,.form,.preview,.quick,.today-item,.metric,.res,.payment,.row,.list,.editor,.quote,.impact,.booking,.allocation,.allocation-wrap,.detail-grid>div,.reservation-action-panel,.reservation-message-form,.new-reservation-note,.manual-price-card,.auto-price-card,.addon-price-catalog,.addon-price-row,.server-rate-workspace,.server-rate-list article,.server-rates-panel,.server-reservation-section,.server-reservation-summary,.server-reservation-unit,.property-branding-panel,dialog,dialog form){background:#172235!important;color:#e2e8f0!important;border-color:#34445d!important;box-shadow:none}
  html[data-theme="dark"] :is(h1,h2,h3,h4,label,.hint,.money,.amount,.theme-picker,.laloon-property,.row,.res small,.payment small,.quick small,.today-item small,.metric small,.fields label,.allocation small,.secure-note,.server-calendar-status,.server-rate-list small,.server-rate-list span){color:#cbd5e1!important}
  html[data-theme="dark"] :is(.hero,.detail-hero,.booking-header){background:linear-gradient(115deg,#172554,#164e63)!important;color:#f8fafc!important}
  html[data-theme="dark"] :is(.hero,.detail-hero,.booking-header) :is(h1,h2,b,p,small,span){color:#f1f5f9!important}
  html[data-theme="dark"] :is(input,select,textarea){background:#0e192b!important;color:#e2e8f0!important;border-color:#53647e!important;caret-color:#fff;accent-color:#2dd4bf}
  html[data-theme="dark"] :is(input,textarea)::placeholder{color:#9eacc0!important;opacity:1}
  html[data-theme="dark"] :is(input,button,select,textarea):focus-visible{outline:2px solid #67e8f9;outline-offset:3px}
  html[data-theme="dark"] :is(button.secondary,button.tag,.head button,.operator-access-button,.operator-close){background:#26374f!important;color:#e0f2fe!important;border-color:#53647e!important}
  html[data-theme="dark"] :is(button.primary,.nav button.active){background:linear-gradient(115deg,#4338ca,#0e7490)!important;color:#fff!important}
  html[data-theme="dark"] .nav button{color:#cbd5e1!important}
  html[data-theme="dark"] .header-new-reservation{background:#172235!important;border-color:#34445d!important}
  html[data-theme="dark"] :is(.brand .laloon-wordmark,#propertyLogoPreview){background:#f8fafc;border-radius:12px}
  html[data-theme="dark"] .brand .laloon-property{margin-top:4px}
  html[data-theme="dark"] :is(.room,.d,.mhead,.mroom,.mcell,.cell){background:#172235!important;color:#dbeafe!important;border-color:#34445d!important}
  html[data-theme="dark"] .room small{color:#b5c6dd!important}
  html[data-theme="dark"] #calendar .grid>:is(.cell.weekend,.d.weekend){background:#14373b!important;box-shadow:inset 0 0 0 1px #285c5d!important}
  html[data-theme="dark"] #calendar .grid>:is(.cell.holiday,.d.holiday){background:#343022!important}
  html[data-theme="dark"] #calendar .calendar-holiday-label{color:#fcd34d!important}
  html[data-theme="dark"] body #calendar .grid>:is(.room,.d,.cell){background:#172235!important;color:#dbeafe!important;border-color:#34445d!important}
  html[data-theme="dark"] body #calendar .grid>:is(.cell.weekend,.d.weekend){background:#14373b!important;color:#ccfbf1!important;box-shadow:inset 0 0 0 1px #285c5d!important}
  html[data-theme="dark"] body #calendar .grid>:is(.cell.holiday,.d.holiday){background:#343022!important;color:#fef3c7!important}
  html[data-theme="dark"] body #calendar .grid>.cell.past-operation-blocked{background:repeating-linear-gradient(135deg,#172235,#172235 7px,#202e42 7px,#202e42 14px)!important}
  html[data-theme="dark"] .matrix .mcell b{color:#a5e5f0}
  html[data-theme="dark"] .matrix .mcell small{color:#b5c6dd}
  html[data-theme="dark"] .unit-choice{background:#172235!important;border-color:#53647e!important;color:#dbeafe!important}
  html[data-theme="dark"] .unit-choice:has(input:checked){background:#134e4a!important;border-color:#2dd4bf!important}
  html[data-theme="dark"] :is(.operator-access-error,.danger-action){background:#481c27!important;color:#fecdd3!important}
  html[data-theme="dark"] :is(.operator-access-success,.toast){background:#134e4a!important;color:#d1fae5!important}
  html[data-theme="dark"] dialog::backdrop{background:#020617b3}
  html[data-theme="dark"] #bookingDialog #bookingForm,
  html[data-theme="dark"] #bookingDialog #bookingForm :is(.booking-workspace,.booking-guest-panel,.booking-stay-panel,.booking-pricing-panel,.booking-price-card,.booking-steps,.fixed-booking-source,.booking-note-row,.booking-summary-row,.booking-summary-status,.availability-check,.new-reservation-note){background:#172235!important;color:#e2e8f0!important;border-color:#53647e!important}
  html[data-theme="dark"] #bookingDialog #bookingForm :is(input,select,textarea){background:#0e192b!important;color:#e2e8f0!important;border-color:#53647e!important}
  html[data-theme="dark"] #bookingDialog #bookingForm :is(h2,h3,b,label,small,p,.unit-select-label){color:#cbd5e1!important}
  html[data-theme="dark"] #bookingDialog #bookingForm .manual{border-color:#fb923c!important}
  html[data-theme="dark"] #bookingDialog #bookingForm :is(strong,.booking-price-card>span,.fixed-booking-source>span){color:#a5f3fc!important}
  html[data-theme="dark"] #reservationDetails :is(.booking,.list,.detail-grid>div,.allocation-wrap,.allocation,.reservation-action-panel,.inline-reservation-form,.reservation-note-entry,.reservation-addon-row,.reservation-audit-entries article){background:#172235!important;color:#e2e8f0!important;border-color:#53647e!important}
  html[data-theme="dark"] #reservationDetails :is(h2,h3,b,strong,p,small,label){color:#dbeafe!important}
  html[data-theme="dark"] #reservationDetails :is(input,select,textarea){background:#0e192b!important;color:#e2e8f0!important;border-color:#53647e!important}
  html[data-theme="dark"] #reservationDetails :is(.detail-grid,.secure-note){background:#20334b!important;color:#dbeafe!important;border-color:#53647e!important}
  /* Booking/channel badges keep their existing semantic colors. Documents stay paper-white. */
  html[data-theme="dark"] :is(.guest-confirmation,#propertyPrintBody){color-scheme:light;background:#fff!important;color:#26424b!important}
  html[data-theme="dark"] :is(.guest-confirmation,#propertyPrintBody) :is(h1,h2,h3,h4,b,p,small,span,label){color:#26424b!important}
  html[data-theme="dark"] :is(.guest-confirmation,#propertyPrintBody) :is(section,article,.allocation,.row){background:#fff!important;color:#26424b!important;border-color:#dbe4ee!important}
}
@media print{html{color-scheme:light}.header-user-controls{display:none!important}}
