.room-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.room-head h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 1.05;
}
.room-head p {
  max-width: 38rem;
}
.room-panel {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.room-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.room-panel .form-field {
  margin: 1rem 0;
  min-width: 0;
}
.room-panel input,
.room-panel select,
.room-panel textarea {
  max-width: 100%;
  width: 100%;
  min-height: 44px;
  font: inherit;
  padding: 0.7rem;
  border: 1px solid #827c6d;
  border-radius: 3px;
  background: #fff;
  color: #24231e;
}
.room-panel label {
  display: block;
  margin-bottom: 0.4rem;
}
.room-panel h3 {
  margin-top: 2rem;
}
.room-panel [hidden] {
  display: none !important;
}
.room-check {
  display: flex !important;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1rem 0;
}
.room-check input {
  width: 20px;
  min-width: 20px;
  min-height: 20px;
  margin-top: 0.2rem;
}
.room-help {
  font-size: 0.92rem;
  line-height: 1.55;
}
.room-total {
  font-size: 1.3rem;
  font-weight: 700;
  border-top: 1px solid #b5ae9f;
  padding-top: 1rem;
}
.room-occurrences {
  list-style: none;
  padding: 0;
}
.room-occurrences li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #c9c2b4;
  overflow-wrap: anywhere;
}
.room-occurrences .conflict {
  color: #8c251c;
  font-weight: 700;
}
.room-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem 1rem;
}
.room-summary dt {
  font-weight: 700;
}
.room-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.room-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.room-preview {
  padding: 1rem;
  background: #f7e6b8;
  border: 1px solid #8d7744;
}
.room-panel button {
  min-height: 44px;
  white-space: normal;
}
.room-panel button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.room-panel :focus-visible {
  outline: 3px solid #006785;
  outline-offset: 3px;
}
.room-date-row {
  display: flex;
  gap: 0.7rem;
  align-items: end;
}
.room-date-row .form-field {
  flex: 1;
}
.room-date-row button {
  margin-bottom: 1rem;
}
#room-message:empty {
  display: none;
}
#room-message {
  padding: 1rem;
  border-left: 3px solid #746b53;
  background: #fff9eb;
}
#room-cancel-review {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #8d7744;
}
#room-cancel-review .button {
  margin: 0.3rem;
}
.room-panel section {
  scroll-margin-top: 2rem;
}
@media (max-width: 850px) {
  .room-layout {
    grid-template-columns: 1fr;
  }
  .room-head h1 {
    font-size: 3rem;
  }
}
@media (max-width: 480px) {
  .room-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .room-summary {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .room-summary dd {
    margin-bottom: 0.7rem;
  }
  .room-date-row {
    align-items: center;
  }
  .room-date-row button {
    padding: 0.5rem;
  }
  .room-panel {
    padding: 1.1rem;
  }
}
