.home-inquiry-page .item-inquiry-hero {
  padding: clamp(32px, 5vw, 66px) 0;
}
.item-inquiry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 460px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  text-align: left;
}
.home-inquiry-page .item-inquiry-lead h1 { margin: 0; }
.home-inquiry-page .item-inquiry-hero .item-inquiry-lead .sub { margin: 15px 0 0; line-height: 1.6; }

.item-inquiry-panel {
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #dbe3ea;
  border-radius: 18px;
  background: #fff;
  color: #182a3c;
  box-shadow: 0 14px 36px rgba(5, 18, 32, .16);
  text-align: left;
}
.item-inquiry-panel [hidden] { display: none; }
.page-inquiry-panel {
  width: min(calc(100% - 32px), 680px);
  margin: 18px auto 24px;
  scroll-margin-top: 90px;
}
.nw-guide > .page-inquiry-panel { width: min(100%, 680px); margin-top: 0; }
.nw-document .page-inquiry-panel .item-inquiry-kakao-link { color: #292300; }
@media (max-width: 560px) {
  .page-inquiry-panel { margin-top: 10px; margin-bottom: 18px; }
  .nw-guide:has(> .page-inquiry-panel) { padding-top: 12px; }
}
.item-inquiry-panel form > label {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 750;
}
.item-inquiry-panel form > input + label { margin-top: 15px; }
.item-inquiry-panel form > :is(input, textarea) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #acbdc9;
  border-radius: 8px;
  background: #fff;
  color: #172b3e;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.item-inquiry-panel input { min-height: 44px; }
.item-inquiry-panel textarea { min-height: 88px; resize: vertical; }
.item-inquiry-panel ::placeholder { color: #617383; opacity: 1; }
.item-inquiry-panel :is(a, button, input, textarea):focus-visible {
  outline: 3px solid #267098;
  outline-offset: 2px;
}
.item-inquiry-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.item-inquiry-panel :is(#item-inquiry-status, #item-inquiry-lookup-note, .item-inquiry-noscript, #item-inquiry-reply) {
  margin: 8px 0 0;
  color: #475f71;
  font-size: 14px;
  line-height: 1.55;
}
.item-inquiry-panel #item-inquiry-status { color: #903523; }
.item-inquiry-panel #item-inquiry-status:empty { margin: 0; }
.item-inquiry-panel #item-inquiry-lookup-note { font-size: 12px; }

.item-inquiry-send {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 14px 0 0;
  border: 0;
  border-radius: 10px;
  background: #183c56;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
}
.item-inquiry-send:hover { background: #102f46; }
.item-inquiry-send:disabled { background: #617586; cursor: default; }
.item-inquiry-kakao {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 9px;
  border-top: 1px solid #e2e8ee;
  margin-top: 14px;
  padding-top: 12px;
}
.item-inquiry-kakao-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 8px 13px;
  border-radius: 8px;
  background: #fee500;
  color: #292300;
  font-size: 15px;
  font-weight: 750;
}
.item-inquiry-kakao-link:hover { background: #f6dd00; }
.item-inquiry-kakao-id { color: #40576b; font-size: 14px; }
.home-inquiry-page .item-inquiry-kakao .contact-copy {
  min-height: 44px;
  border: 0;
  padding: 4px 6px;
  background: transparent;
  color: #385569;
  text-underline-offset: 3px;
  text-decoration: underline;
}
.item-inquiry-panel .contact-status { text-align: center; }
#item-inquiry-confirmed { color: #183c56; font-size: 21px; line-height: 1.4; }
body:has(#item-inquiry-panel :focus) .float-kakao { visibility: hidden; }

@media (max-width: 760px) {
  .home-inquiry-page .float-kakao { display: none; }
  .home-inquiry-page .item-inquiry-hero { padding: 17px 0 24px; }
  .item-inquiry-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-inquiry-page .item-inquiry-lead h1 { font-size: clamp(24px, 5.8vw, 36px); }
  .home-inquiry-page .item-inquiry-hero .item-inquiry-lead .sub { margin: 7px 0 0; font-size: 15px; line-height: 1.45; }
  .item-inquiry-panel { padding: 18px; border-radius: 14px; }
}
@media (max-width: 360px) {
  .item-inquiry-panel { padding: 15px; }
  .item-inquiry-kakao { gap: 4px 6px; }
}

.maple-chat { min-width: 0; color: #1b3043; }
.maple-chat .chat-title { color: inherit; margin: 0; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.chat-muted, .chat-feedback { margin: 7px 0; color: #526775; font-size: 13px; line-height: 1.5; }
.chat-feedback { color: #903523; }
.chat-feedback:empty { margin: 0; }
.chat-log { overflow-y: auto; overscroll-behavior: contain; max-height: min(45svh, 350px); min-height: 64px;
  margin: 12px 0; padding: 8px 2px; border-top: 1px solid #e1e8ee; border-bottom: 1px solid #e1e8ee; }
.chat-line { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; margin: 6px 0 10px; }
.chat-line.mine { align-items: flex-end; }
.chat-meta { color: #526775; font-size: 12px; line-height: 1.5; }
.chat-bubble { box-sizing: border-box; max-width: 90%; margin-top: 2px; padding: 8px 11px; text-align: left;
  color: #182a3c; background: #f1f5f8; border: 1px solid #dce5ed; border-radius: 3px 12px 12px;
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
.mine .chat-bubble { background: #fff0e1; border-color: #efcfaa; border-radius: 12px 3px 12px 12px; }
.maple-chat .chat-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 8px; }
.maple-chat .chat-compose label, .maple-chat .chat-compose .chat-feedback { grid-column: 1/-1; margin: 0; }
.maple-chat .chat-compose label { font-size: 14px; font-weight: 700; }
.maple-chat .chat-compose textarea, .chat-owner-page input { box-sizing: border-box; width: 100%; min-width: 0;
  padding: 9px 11px; border: 1px solid #aabdc9; border-radius: 8px; font: inherit; font-size: 16px; line-height: 1.45; }
.maple-chat .chat-compose textarea { min-height: 46px; max-height: 140px; resize: vertical; }
.maple-chat .chat-compose .item-inquiry-send { width: auto; min-width: 62px; min-height: 46px; margin: 0; padding: 8px 12px; }
.chat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 7px; }
.chat-restart { box-sizing: border-box; width: 100%; min-height: 44px; margin-top: 3px; padding: 10px 12px;
  border: 1px solid #9bbfa7; border-radius: 9px; background: #eff8f1; color: #205c37;
  font: inherit; font-size: 14px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.chat-restart:hover { background: #e1f1e5; }
.chat-restart:disabled { cursor: default; opacity: .65; }
.chat-restart:focus-visible { outline: 3px solid #267098; outline-offset: 2px; }
.chat-quiet { min-height: 36px; padding: 5px 7px; border: 0; background: transparent; color: #475f71;
  font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.maple-chat .chat-history { margin: 14px 0 0; }
.chat-history summary { padding: 5px 0; cursor: pointer; color: #435d71; font-size: 14px; }

.chat-owner-page { margin: 0; color: #1b3043; background: #f3f6f9; font: 16px/1.5 system-ui, "Malgun Gothic", sans-serif; }
.chat-owner-page *, .chat-owner-page *::before, .chat-owner-page *::after { box-sizing: border-box; }
.chat-owner-page [hidden] { display: none; }
.chat-owner-page :focus-visible { outline: 3px solid #267098; outline-offset: 2px; }
.chat-owner-header { background: #172b3e; color: white; }
.chat-owner-header>div, .chat-owner-main { max-width: 1000px; margin: 0 auto; padding: 14px 20px; }
.chat-owner-header>div, .chat-owner-heading, .chat-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-owner-header a { color: white; font-weight: 800; text-decoration: none; }
.chat-owner-header span { font-size: 13px; }
.chat-owner-main h1 { margin: 10px 0 16px; font-size: 28px; }
.chat-owner-main h2 { margin: 0; font-size: 19px; }
.chat-owner-page button { cursor: pointer; }
.chat-owner-heading button { padding: 7px 12px; border: 1px solid #cbd9e3; border-radius: 8px; background: white; color: #244257; }
.chat-card { background: white; border: 1px solid #d5dfe7; border-radius: 14px; padding: 17px; min-width: 0; }
#chat-login { max-width: 380px; } #chat-login label { display: block; margin-bottom: 6px; font-weight: 700; }
#chat-login input + label { margin-top: 14px; }
.chat-inbox { display: grid; grid-template-columns: minmax(215px, .7fr) minmax(0, 1.5fr); gap: 14px; align-items: start; }
#chat-rooms { display: grid; gap: 6px; max-height: 62svh; overflow-y: auto; }
.chat-choice { display: grid; gap: 2px; min-width: 0; width: 100%; padding: 9px 11px; border: 1px solid #d3dfe7; border-radius: 8px;
  background: white; color: #1b3043; text-align: left; font: inherit; }
.chat-choice[aria-pressed="true"] { border-color: #cc8945; background: #fff7ef; }
.chat-choice strong, .chat-choice small, .chat-choice .chat-snippet { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-choice small { font-size: 12px; color: #50687a; }.chat-snippet { font-size: 14px; }
@media(max-width:390px) {
  .home-inquiry-page .site-header .gnb { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .home-inquiry-page .site-header .gnb a:not(.cta) { flex: 0 0 auto; padding-inline: 4px; }
  .home-inquiry-page .item-inquiry-hero { padding-top: 12px; }
  .item-inquiry-panel #item-inquiry-message { min-height: 68px; height: 72px; }
}
@media(max-width:650px) {
  .chat-owner-main, .chat-owner-header>div { padding: 12px; }
  .chat-inbox { grid-template-columns: minmax(0,1fr); }
  #chat-rooms { max-height: 180px; }
}
.chat-photo-slot { min-width: 0; }
.maple-chat .chat-compose > textarea { grid-column: 1; grid-row: 2; }
.maple-chat .chat-compose > .item-inquiry-send { grid-column: 2; grid-row: 2; }
.maple-chat .chat-compose > .chat-photo-slot { grid-column: 1/-1; grid-row: 3; }
.maple-chat .chat-compose > .chat-feedback { grid-row: 4; }
.chat-photo-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin: 10px 0 2px; min-width: 0; }
.chat-photo-add { min-height: 40px; padding: 7px 11px; border: 1px solid #b5cfc3; border-radius: 8px; background: #f1f8f4; color: #174e43; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.chat-photo-add:disabled { opacity: .55; cursor: default; }
.chat-photo-hint { color: #60756a; font-size: 12px; }
.chat-photo-picker > .chat-feedback { width: 100%; margin: 0; }
.chat-photo-picker > .chat-feedback:empty, .chat-photo-previews:empty { display: none; }
.chat-photo-previews { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; width: 100%; }
.chat-photo-preview { position: relative; min-width: 0; border: 1px solid #d3e0d9; border-radius: 9px; background: #f5f8f6; overflow: hidden; }
.chat-photo-preview img { display: block; width: 100%; height: 104px; object-fit: contain; }
.chat-photo-remove { position: absolute; top: 3px; right: 3px; min-width: 32px; min-height: 32px; padding: 0; border: 1px solid #cbd8d1; border-radius: 50%; background: #fff; color: #294f3e; font: 22px/1 system-ui; cursor: pointer; }
.chat-photo-gallery { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; width: min(100%,330px); }
.mine .chat-photo-gallery { justify-content: flex-end; }
.chat-photo-gallery a { display: block; width: calc(50% - 5px); max-width: 160px; min-width: 82px; border: 1px solid #ccdcd3; border-radius: 8px; overflow: hidden; background: #fff; }
.chat-photo-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; }
.chat-photo-add:focus-visible, .chat-photo-remove:focus-visible, .chat-photo-gallery a:focus-visible { outline: 3px solid #d9ae43; outline-offset: 2px; }
