.hm-dialog {
  box-sizing: border-box;
  inline-size: min(720px, calc(100% - 28px));
  max-block-size: min(840px, calc(100dvh - 28px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #8f7959;
  border-radius: 14px;
  background: #151f2e;
  color: #f5f1e8;
  box-shadow: 0 18px 70px #060b16bb;
  color-scheme: dark;
}
.hm-dialog[open] { display: flex; flex-direction: column; }
.hm-dialog::backdrop { background: #060c17b8; }
.hm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid #455063;
}
.hm-head h3 { margin: 0; color: #ffe0a0; font-size: 1rem; }
.hm-head div { display: flex; align-items: center; gap: 6px; }
.hm-dialog .btn { min-block-size: 44px; padding: 6px 10px; white-space: normal; }
.hm-dialog .btn.ghost { background: #233149; border-color: #60718b; color: #f5f1e8; }
.hm-dialog .btn[disabled] { opacity: .58; }
.hm-dialog :is(button, input, select):focus-visible { outline: 2px solid #ffdb92; outline-offset: 2px; }
.hm-dialog [hidden] { display: none; }
.hm-body { min-block-size: 0; padding: 14px 16px; overflow-y: auto; }
.hm-hotel {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #202d42;
}
.hm-hotel img { inline-size: 100%; block-size: 105px; object-fit: contain; }
.hm-hotel h4 { margin: 3px 0; color: #fff0cc; font-size: clamp(1.15rem, 3.7vw, 1.48rem); overflow-wrap: anywhere; }
.hm-hotel p { margin: 0; color: #d0dbea; font-size: .86rem; overflow-wrap: anywhere; }
.hm-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.hm-metrics div { padding: 9px 10px; border: 1px solid #45566f; border-radius: 8px; background: #1b293d; }
.hm-dialog dl dt { margin: 0; color: #c4d1e0; font-size: .8rem; }
.hm-dialog dl dd { margin: 3px 0 0; color: #ffedc7; font-weight: 650; overflow-wrap: anywhere; }
.hm-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.hm-tabs .btn[aria-pressed=true] { color: #24180d; background: #ffd077; border-color: #ffd077; }
.hm-panel { display: grid; gap: 10px; }
.hm-section { display: grid; gap: 9px; padding: 12px; border: 1px solid #46536b; border-radius: 9px; background: #1a2738; }
.hm-section h4 { margin: 0; color: #fff1cd; font-size: 1rem; }
.hm-section form, .hm-section label { min-inline-size: 0; }
.hm-section form { display: grid; gap: 8px; }
.hm-section label:not(.hm-check):not(.hm-choice) { display: grid; gap: 4px; }
.hm-section :is(input:not([type=radio]):not([type=checkbox]), select) {
  box-sizing: border-box;
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 44px;
  padding: 7px;
  border: 1px solid #7f8ba0;
  border-radius: 6px;
  color: #f8f3e8;
  background: #142032;
}
.hm-form-row, .hm-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 8px; }
.hm-section fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.hm-section legend { margin-bottom: 5px; color: #d4deed; font-weight: 650; }
.hm-choice, .hm-check { display: flex; align-items: flex-start; gap: 6px; cursor: pointer; }
.hm-choice { align-self: stretch; padding: 7px; border: 1px solid #5a6a84; border-radius: 7px; }
.hm-choice:has(:checked) { border-color: #ffd077; background: #2c3445; }
.hm-check { min-block-size: 44px; align-items: center; }
.hm-choice small, .hm-list li small { display: block; color: #cad6e6; margin-top: 2px; }
.hm-actions, .hm-heading, .hm-facility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px;
}
.hm-heading small, .hm-note { margin: 0; color: #d3deed; font-size: .88rem; }
.hm-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.hm-list { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.hm-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 4px; overflow-wrap: anywhere; }
.hm-list .btn { flex: none; }
.hm-order p { margin: 0; color: #ffdfaa; }
.hm-feedback { margin: 0; padding: 9px 16px; border-top: 1px solid #455063; color: #ffe0a0; }
.hm-feedback:empty { display: none; }
@media (max-width: 480px) {
  .hm-head, .hm-body { padding-inline: 10px; }
  .hm-hotel { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
  .hm-hotel img { block-size: 78px; }
  .hm-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-metrics { grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 5px; }
  .hm-metrics-kitchen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-metrics div { padding: 6px; }
  .hm-form-row, .hm-choices { grid-template-columns: 1fr; }
}
.hm-dialog [data-hm-hire-profile]:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}
.hm-dialog [data-hm-hire-profile] img {
  flex: 0 0 auto;
  image-rendering: pixelated;
}

/* 호텔과 백화점의 입점 안내 */
.tenancy .tenancy-body { padding: 14px 16px 20px; }
.tenancy h3 { overflow-wrap: anywhere; }
.tenancy h4 { margin: 0 0 5px; color: #fff2d0; }
.tenancy p { margin: 5px 0 10px; color: #d8ceba; line-height: 1.55; }
.tenancy .tenancy-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center 55%;
  border-radius: 8px;
}
.tenancy-tabs, .tenancy-space, .tenancy-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tenancy-tabs { margin-bottom: 12px; }
.tenancy-space { margin: 9px 0 14px; padding: 0; list-style: none; color: #e8d8b7; font-size: 13px; }
.tenancy-space li { padding: 5px 8px; border: 1px solid #524635; border-radius: 6px; }
.tenancy-space b { margin-inline-start: 4px; font-variant-numeric: tabular-nums; }
.tenancy p.tenancy-visits { color: #f0cf90; font-size: .86rem; }
.tenancy-tabs [aria-pressed="true"] { color: #ffe0a1; border-color: #ad8446; }
.tenancy .btn { min-height: 42px; white-space: normal; }
.tenancy :focus-visible { outline: 2px solid #e8bc6d; outline-offset: 3px; }
.tenancy .btn:active:not(:disabled) { transform: scale(.98); }
.tenancy-section { margin: 12px 0; }
.tenancy-shop { border-top: 1px solid #524635; padding-top: 13px; }
.tenancy-inline { justify-content: space-between; }
.tenancy .tenancy-inline > p { margin: 0; }
.tenancy-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  border-top: 1px solid #504737;
  padding: 7px 0;
}
.tenancy-item small { display: block; color: #e0d1b5; margin-top: 3px; }
.tenancy-contract { padding: 0 0 6px; border-bottom: 1px solid #524635; }
.tenancy-contract > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 14px;
  padding: 13px 0;
  cursor: pointer;
}
.tenancy-contract > summary::-webkit-details-marker { display: none; }
.tenancy-contract > summary small { color: #f0cf90; }
.tenancy-contract > summary span { overflow-wrap: anywhere; }
.tenancy-contract > summary span::before { content: '›'; display: inline-block; margin-right: 6px; }
.tenancy-contract[open] > summary span::before { transform: rotate(90deg); }
.tenancy details details, .tenancy form > details { margin: 8px 0; }
.tenancy details details > summary, .tenancy form > details > summary { padding: 8px 0; cursor: pointer; color: #f0cf90; }
.tenancy-terms, .tenancy-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 12px 0;
}
.tenancy-terms dt, .tenancy label { color: #e2d5bd; font-size: 13px; }
.tenancy-terms dd { margin: 4px 0 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.tenancy label { display: grid; gap: 4px; }
.tenancy select, .tenancy input[type=number] {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid #776548;
  border-radius: 6px;
  background: #211d18;
  color: #fff2d0;
  font: inherit;
  font-size: 16px;
}
.tenancy label.tenancy-check { display: flex; align-items: center; min-height: 42px; }
.tenancy-inline input[type=number] { width: 84px; }
.tenancy form > .btn + .btn { margin-left: 6px; }
@media (prefers-reduced-motion: reduce) {
  .tenancy .btn:active:not(:disabled) { transform: none; }
}

.hm-event-cover {
  position: relative;
  display: grid;
  isolation: isolate;
  align-items: end;
  min-block-size: 120px;
  overflow: hidden;
  border-radius: 8px;
  background: #292923;
}
.hm-event-cover img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center 50%;
  z-index: -1;
}
.hm-event-cover > div {
  padding: 18px 12px 10px;
  color: #fff2d7;
  background: linear-gradient(0deg, #100c08 12%, #100c08e3 66%, transparent);
}
.hm-event-cover p { margin: 3px 0 0; font-size: .85rem; }
.hm-event-trips ul { padding: 0; margin: 0; list-style: none; }
.hm-event-receipt {
  display: grid;
  justify-items: start;
  inline-size: 100%;
  gap: 7px;
  padding-block: 10px;
  border-block-end: 1px solid #506078;
}
.hm-event-invite { inline-size: 100%; }
.hm-event-invite button { justify-self: start; }
.hm-event-operations { padding-block: 10px; border-block-start: 1px solid #506078; }
.hm-event-operations summary { cursor: pointer; min-block-size: 36px; }
.hm-event-operations .hm-note, .hm-event-operations .hm-list { margin-block: 8px; }
.hm-event [hidden] { display: none; }
.mail-hotel-event { display: grid; gap: 6px; margin-block: 12px; }
.mail-hotel-event > p { margin: 0; }
.mail-hotel-event .hm-actions { justify-content: flex-start; }
.mail-hotel-event button { min-block-size: 44px; }
@media (min-width: 561px) {
  .hm-tabs:has([data-hm-tab="events"]) { grid-template-columns: repeat(auto-fit, minmax(102px, 1fr)); }
}
