#room-wait {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - max(14px, env(safe-area-inset-top)) - max(14px, env(safe-area-inset-bottom)));
  padding: 7px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #233e32;
  border-radius: 3px;
  background: #f6e8c9;
  color: #173f34;
  box-shadow: 3px 4px 0 #182c2399, 0 22px 65px #0b211d73;
}
#room-wait::backdrop { background: #122b25ce; }

.room-wait__sheet { border: 1px solid #8d9375; }
.room-wait__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px clamp(15px, 5vw, 27px);
  color: #7e3629;
  font: 700 14px/1.25 var(--sans);
  letter-spacing: .07em;
}
.room-wait__header img { display: block; }
.room-wait__header::after { content: ''; flex: 1; height: 1px; background: #c5ad86; }
.room-wait__print {
  height: clamp(74px, 18vh, 125px);
  border-block: 1px solid #929477;
  background: #ead9af url('./assets/street-frontispiece.webp') 50% 56% / cover no-repeat;
  background-blend-mode: multiply;
}
.room-wait__body { padding: clamp(17px, 5vw, 27px); }
#room-wait-title {
  margin: 0;
  font: 800 clamp(26px, 6vw, 34px)/1.14 var(--serif);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
#room-wait-title:focus { outline: 0; }
#room-wait-detail {
  margin: 10px 0 17px;
  color: #3c5244;
  font: 500 15px/1.5 var(--sans);
}
.room-wait__status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 13px 0;
  border-block: 1px dashed #989777;
  color: #234739;
  font: 650 14px/1.4 var(--sans);
  font-variant-numeric: tabular-nums;
}
.room-wait__lamp {
  width: 9px;
  height: 9px;
  margin-inline: 1px 2px;
  flex: none;
  border-radius: 50%;
  background: #8c6123;
  box-shadow: 0 0 0 3px #e3d1a2;
}
#room-wait[data-checking="true"] .room-wait__lamp {
  background: #397250;
  box-shadow: 0 0 0 3px #d0dbb6;
}
.room-wait__actions { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 16px; }
.room-wait__actions button {
  min-height: 44px;
  max-width: 100%;
  padding: 8px 15px;
  border: 1px solid #71816a;
  border-radius: 3px;
  background: transparent;
  color: #294f40;
  font: 700 14px/1.35 var(--sans);
  overflow-wrap: anywhere;
}
.room-wait__actions button:hover { background: #e7dcbd; }
.room-wait__actions [data-wait-match] {
  border-color: #8e3929;
  background: #963d2c;
  color: #fff4da;
}
.room-wait__actions [data-wait-match]:hover { background: #7b3024; }
.room-wait__actions button:focus-visible { outline: 3px solid #235a49; outline-offset: 2px; }

@media (max-height: 470px) {
  .room-wait__print { height: 40px; }
  .room-wait__header { padding-block: 6px; }
  .room-wait__body { padding-block: 13px; }
  .room-wait__actions { margin-top: 10px; }
  #room-wait-detail { margin-block: 7px 11px; }
}
