.hk-policy{margin-bottom:18px;padding:20px 24px}
.hk-policy-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}
.hk-policy-heading h2{font-size:16px;font-weight:650;margin-bottom:7px}
.hk-policy-heading .wb-muted{font-size:12px;line-height:1.7}
.hk-policy-heading>div{min-width:0}
.hk-policy-heading>.wb-button{flex-shrink:0}
.hk-warnings{margin-top:14px;padding:11px 13px;border:1px solid #f0d6a4;border-radius:7px;background:#fff8e9;color:#926123;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.hk-room-editor{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:15px 0;margin:0 0 16px}
.hk-current{font-size:13px;line-height:1.7;margin-bottom:13px;color:#465873}
.hk-room-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.hk-dialog .wb-form-grid{gap:12px 16px}
.hk-dialog .wb-form-grid label{margin-bottom:0}
.hk-dialog .wb-field-note{margin-bottom:10px}
.hk-room-editor input{max-width:100%;width:100%}
@media(max-width:760px){.hk-policy{padding:16px}.hk-policy-heading{align-items:flex-start;flex-direction:column;gap:12px}.hk-policy-heading h2{font-size:15px}.hk-policy-heading>.wb-button{padding:8px 12px}.hk-dialog{padding:20px}.hk-dialog .wb-form-grid{grid-template-columns:1fr}.hk-dialog .wb-dialog-heading h2{font-size:18px}.hk-room-actions>.wb-button{flex:1;padding:9px 10px}}

#room-dialog, #schedule-dialog {
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  width: min(740px, calc(100vw - 32px));
  max-height: calc(100dvh - 36px);
}
#schedule-dialog { width: min(790px, calc(100vw - 32px)); }
#room-dialog[open], #schedule-dialog[open], #room-form {
  display: flex; flex-direction: column; min-height: 0;
}
#room-form { width: 100%; max-height: inherit; }
#room-dialog .wb-dialog-heading, #schedule-dialog .wb-dialog-heading {
  flex: none; padding: 18px 24px; margin: 0; border-bottom: 1px solid var(--line);
}
.wb-room-dialog-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 20px 24px; }
.wb-room-dialog-body:focus-visible { outline: 2px solid #91b6ff; outline-offset: -3px; }
.wb-room-dialog-body h3 { font-size: 15px; margin: 0 0 12px; line-height: 1.5; }
.wb-room-dialog-body > section + section { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.wb-room-price-grid, .wb-room-cleaning-grid { display: grid; gap: 10px 16px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.wb-room-cleaning-grid { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
.wb-room-dialog-body label { margin: 0; min-width: 0; }
.wb-room-dialog-body .wb-field-note { margin: 9px 0 0; line-height: 1.6; font-size: 12px; }
.wb-room-cleaning-grid .hk-room-editor { display: contents; }
.wb-room-cleaning-grid .hk-room-editor > label { grid-area: 1 / 2; }
.wb-room-cleaning-grid .hk-current { grid-area: 2 / 1; align-self: center; margin: 0; font-size: 12px; }
.wb-room-cleaning-grid .hk-room-actions { grid-area: 2 / 2; justify-content: flex-end; margin: 0; }
.wb-room-cleaning-grid .hk-room-actions .wb-button { padding: 6px 9px; font-size: 12px; }
.wb-room-cleaning-grid :is(.wb-button,input):disabled { opacity: 1; color: #8595ad; border-color: #dce4ef; background: #f5f7fb; }
.wb-room-cleaning-grid .hk-room-editor > .wb-muted { grid-column: 1/-1; font-size: 12px; }
.wb-room-cleaning-grid .hk-room-editor:has(#room-cleaning-estimate:disabled) > .wb-muted { display: none; }
.wb-room-dialog-footer {
  flex: none; display: flex; justify-content: space-between; align-items: center;
  gap: 14px; padding: 14px 24px; border-top: 1px solid var(--line);
}
.wb-room-dialog-footer > span { color: var(--muted); font-size: 12px; }
.wb-room-dialog-footer .wb-error, .wb-room-dialog-footer .wb-form-actions { margin: 0; }
.wb-room-dialog-footer .wb-form-actions { margin-left: auto; flex: none; }
#room-error:empty, #schedule-error:empty { display: none; }
.wb-schedule-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 20px 0 12px; }
.wb-schedule-heading h3 { margin: 0; }
#schedule-clock { color: #526b89; font-size: 13px; font-variant-numeric: tabular-nums; }
.wb-schedule-periods {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; padding: 4px;
  background: #f3f6fb; border: 1px solid var(--line); border-radius: 8px;
}
.wb-schedule-periods button {
  padding: 8px 2px; border: 0; border-radius: 5px; background: transparent;
  color: #536982; font: inherit; font-size: 13px; font-weight: 600;
}
.wb-schedule-periods button[aria-pressed="true"] { background: var(--blue); color: white; }
#schedule-slots { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; margin: 15px 0; }
#schedule-slots > div {
  display: grid; align-content: center; min-height: 70px; padding: 7px 4px;
  font-size: 16px; font-weight: 650; border: 1px solid #d3e8dd; background: #f0faf5;
}
#schedule-slots small { font-size: 12px; font-weight: 450; }
#schedule-slots > .blocked { border-color: #dde5ef; color: #74869c; background: #f5f7fa; }
#schedule-slots > .reserved { color: #7445ae; background: #f5effc; border-color: #e0d4f1; }
#schedule-slots > .short { color: #8d6819; background: #fffaed; border-color: #eedeb9; }
#schedule-slots > [aria-current="time"] { box-shadow: inset 0 0 0 1px #2365eb; border-color: #2365eb; background: #ecf4ff; color: #155cd4; }
@media (max-width: 600px) {
  #room-dialog, #schedule-dialog { width: calc(100vw - 18px); max-width: none; max-height: calc(100dvh - 18px); }
  #room-dialog .wb-dialog-heading, #schedule-dialog .wb-dialog-heading, .wb-room-dialog-body, .wb-room-dialog-footer { padding: 14px 15px; }
  .wb-room-price-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wb-room-price-grid label:last-child { grid-column: 1/-1; }
  .wb-room-cleaning-grid { grid-template-columns: 1fr; }
  .wb-room-cleaning-grid .hk-room-editor > label, .wb-room-cleaning-grid .hk-current, .wb-room-cleaning-grid .hk-room-actions { grid-area: auto; }
  .wb-room-cleaning-grid .hk-room-actions { justify-content: flex-start; }
  #schedule-slots { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .wb-schedule-periods { gap: 2px; }
  .wb-schedule-periods button { font-size: 11px; }
  #schedule-slots > div { min-height: 55px; }
  .wb-room-dialog-footer { flex-wrap: wrap; gap: 6px; }
}
