/* AI 평면도 설계 (plan.html) */
.pl-hero { background: linear-gradient(180deg, #f6f1e9, var(--paper, #faf8f4)); }
.pl { display: grid; gap: 18px; }
.pl-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 0; counter-reset: s; }
.pl-steps li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line, #e7e1d8); font-weight: 700; color: var(--muted, #6b6f76); font-size: 14.5px; }
.pl-steps li span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--stone, #efe9e0); font-size: 13px; }
.pl-steps li.is-on { border-color: var(--accent, #b5592b); color: var(--ink, #16181d); box-shadow: 0 6px 18px rgba(181, 89, 43, .12); }
.pl-steps li.is-on span, .pl-steps li.is-done span { background: var(--accent, #b5592b); color: #fff; }
.pl-steps li.is-done { color: var(--ink, #16181d); }
.pl-notice { margin: 0; padding: 12px 16px; border-radius: 12px; background: #f3efe8; border: 1px solid var(--line, #e7e1d8); font-size: 14.5px; }
.pl-notice.is-warn { background: #fdf1ea; border-color: #f0c8b0; color: #8a3d17; }
.pl-notice.is-ok { background: #eef6ef; border-color: #c9e2cc; color: #24572d; }
.pl-notice.is-info { background: #f4f1ec; }
.pl-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.pl-grid--plan { grid-template-columns: 1.2fr 1fr; align-items: start; }
.pl-card { background: #fff; border: 1px solid var(--line, #e7e1d8); border-radius: var(--radius-l, 20px); padding: 24px; min-width: 0; }
.pl-card--soft { background: var(--paper, #faf8f4); }
.pl-card h2 { font-size: 20px; margin-bottom: 6px; }
.pl-drop { display: grid; place-items: center; min-height: 220px; margin: 14px 0; border: 2px dashed #d9cfc2; border-radius: 16px; background: repeating-linear-gradient(45deg, #fbf9f5, #fbf9f5 12px, #f7f3ed 12px, #f7f3ed 24px); cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.pl-drop:hover, .pl-drop.is-over, .pl-drop:focus-within { border-color: var(--accent, #b5592b); background: #fdf6f1; }
.pl-drop-in { display: grid; gap: 6px; }
.pl-drop-in b { font-size: 17px; } .pl-drop-in small { color: var(--muted, #6b6f76); }
.pl-preview { display: grid; gap: 10px; justify-items: start; margin: 14px 0; }
.pl-preview img { width: 100%; max-height: 340px; object-fit: contain; border-radius: 12px; background: #f6f3ee; border: 1px solid var(--line, #e7e1d8); }
.pl-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-3, #3d4148); line-height: 1.55; }
.pl-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent, #b5592b); }
.pl-field { border: 0; padding: 0; margin: 16px 0 0; }
.pl-field > label, .pl-field legend { display: block; font-size: 13px; font-weight: 700; color: var(--ink-3, #3d4148); margin-bottom: 8px; }
.pl-inline { display: flex; align-items: center; gap: 8px; } .pl-inline input { width: 110px; }
.pl-field .opt-group { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.pl-planbox { position: relative; cursor: crosshair; }
.pl-planbox img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line, #e7e1d8); background: #fff; }
.pl-pins { position: absolute; inset: 0; pointer-events: none; }
.pl-pin { position: absolute; transform: translate(-50%, -50%); background: rgba(22, 24, 29, .86); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.pl-pin::before { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 6px; background: rgba(22, 24, 29, .86); }
.pl-planempty { margin: 0; padding: 40px 16px; text-align: center; color: var(--muted, #6b6f76); background: var(--paper, #faf8f4); border-radius: 12px; }
.pl-planview { display: grid; gap: 12px; }
.pl-rooms-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pl-rooms { display: grid; gap: 8px; margin: 12px 0; }
.pl-room { display: grid; grid-template-columns: 110px minmax(0, 1fr) 96px auto auto; gap: 6px; align-items: center; padding: 6px; border-radius: 10px; border: 1px solid transparent; }
.pl-room.is-pin { border-color: var(--accent, #b5592b); background: #fdf6f1; }
.pl-room select, .pl-room input { min-height: 40px; padding: 6px 8px; font-size: 14px; width: 100%; min-width: 0; }
.pl-area { display: flex; align-items: center; gap: 4px; } .pl-area small { color: var(--muted, #6b6f76); }
.pl-mini { min-height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line, #e7e1d8); background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.pl-mini[aria-pressed="true"] { background: var(--ink, #16181d); color: #fff; }
.pl-del { color: #a23b14; }
.pl-from-quiz { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #fdf6f1; font-size: 14px; }
.pl-styles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; }
.pl-style { text-align: left; display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line, #e7e1d8); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pl-style:hover { transform: translateY(-2px); }
.pl-style.is-on { border-color: var(--accent, #b5592b); box-shadow: 0 8px 20px rgba(181, 89, 43, .14); }
.pl-style small { color: var(--muted, #6b6f76); font-size: 12.5px; line-height: 1.5; }
.pl-pal { display: flex; height: 26px; border-radius: 8px; overflow: hidden; }
.pl-pal i { flex: 1; } .pl-pal--lg { height: 18px; max-width: 320px; margin-top: 12px; border-radius: 6px; }
.pl-lineups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.pl-lu { display: grid; gap: 4px; text-align: left; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line, #e7e1d8); background: #fff; cursor: pointer; }
.pl-lu b { font-size: 17px; } .pl-lu small { color: var(--muted, #6b6f76); }
.pl-lu.is-on { border-color: var(--accent, #b5592b); background: #fdf6f1; }
.pl-loading { display: grid; justify-items: center; gap: 12px; padding: 60px 0; color: var(--muted, #6b6f76); }
.pl-spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #eadfd3; border-top-color: var(--accent, #b5592b); animation: plSpin .9s linear infinite; }
@keyframes plSpin { to { transform: rotate(360deg); } }
.pl-res-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; background: #fff; border: 1px solid var(--line, #e7e1d8); border-radius: var(--radius-l, 20px); padding: 26px; }
.pl-res-head h2 { font-size: 26px; margin: 10px 0 6px; }
.pl-badge { display: inline-block; font-size: 12.5px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: #efe9e0; color: var(--ink-3, #3d4148); }
.pl-badge.is-ai { background: var(--accent, #b5592b); color: #fff; }
.pl-cost { background: var(--paper, #faf8f4); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; min-width: 240px; }
.pl-cost small { color: var(--muted, #6b6f76); font-size: 12.5px; } .pl-cost b { font-size: 24px; letter-spacing: -.02em; color: var(--accent-2, #8f3f17); }
.pl-concept, .pl-planmini { margin: 16px 0 0; } .pl-concept img { width: 100%; border-radius: 16px; }
.pl-planmini .pl-planbox { cursor: default; max-width: 560px; }
figcaption { font-size: 12.5px; color: var(--muted, #6b6f76); margin-top: 6px; }
.pl-rooms-res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.pl-rc { background: #fff; border: 1px solid var(--line, #e7e1d8); border-radius: 18px; padding: 20px; min-width: 0; }
.pl-rc header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pl-rc h3 { font-size: 18px; margin: 0; } .pl-rc > p { color: var(--ink-3, #3d4148); font-size: 14.5px; margin: 8px 0 12px; }
.pl-fin { list-style: none; display: grid; gap: 8px; margin: 0 0 12px; padding: 0; }
.pl-fin li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; }
.pl-sw { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .08); }
.pl-fin span { display: grid; min-width: 0; } .pl-fin small { color: var(--muted, #6b6f76); font-size: 12px; }
.pl-fin b { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; } .pl-fin em { font-style: normal; font-size: 12.5px; color: var(--accent-2, #8f3f17); }
.pl-tips { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--muted, #6b6f76); display: grid; gap: 4px; }
.pl-sched { margin-top: 16px; background: #fff; border: 1px solid var(--line, #e7e1d8); border-radius: 18px; padding: 16px 20px; }
.pl-sched summary { font-weight: 800; cursor: pointer; }
.pl-sched .table-wrap { margin-top: 10px; overflow-x: auto; }
.pl-actions--result { position: sticky; bottom: 12px; z-index: 5; background: rgba(250, 248, 244, .94); backdrop-filter: blur(8px); padding: 12px; border-radius: 16px; border: 1px solid var(--line, #e7e1d8); margin-top: 16px; }
@media (max-width: 960px) {
  .pl-grid, .pl-grid--plan { grid-template-columns: 1fr; }
  .pl-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-rooms-res { grid-template-columns: 1fr; }
  .pl-res-head { grid-template-columns: 1fr; }
  .pl-actions--result { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .pl-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .pl-steps li { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 11.5px; text-align: center; }
  .pl-card { padding: 18px; }
  .pl-room { grid-template-columns: 1fr 1fr; }
  .pl-room input[data-f="label"] { grid-column: 1 / -1; order: -1; }
  .pl-lineups { grid-template-columns: 1fr; }
  .pl-actions .btn { flex: 1 1 auto; }
  .pl-actions--result .btn { flex: 1 1 45%; font-size: 14px; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { .pl-spin { animation: none; } .pl-style:hover { transform: none; } }
.pl [hidden] { display: none !important; }
.pl > *, .pl-panel > *, #plResult > * { min-width: 0; }
.pl-sched .tbl { min-width: 560px; }
.pl-res-head > * { min-width: 0; }
@media (max-width: 960px) { .pl-actions--result { position: static; backdrop-filter: none; } }

/* 우리 아파트 찾기 */
.pl-apt { display: grid; gap: 12px; margin-bottom: 16px; border-color: #ead7c8; background: linear-gradient(180deg, #fff, #fdf9f4); }
.pl-apt-head h2 { margin-bottom: 4px; }
.pl-apt-form { display: grid; grid-template-columns: minmax(130px, 180px) 1fr auto; gap: 8px; }
.pl-apt-form select, .pl-apt-form input { min-height: 46px; padding: 0 12px; border: 1px solid var(--line, #e7e1d8); border-radius: 12px; background: #fff; font: inherit; font-size: 15px; min-width: 0; }
.pl-apt-form select:focus, .pl-apt-form input:focus { outline: 2px solid var(--accent, #b5592b); outline-offset: 1px; }
.pl-apt-msg { margin: 0; padding: 10px 14px; border-radius: 10px; background: #f4f1ec; }
.pl-apt-msg.is-warn { background: #fdf1ea; color: #8a3d17; }
.pl-apt-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-height: 300px; overflow: auto; }
.pl-apt-list button { width: 100%; text-align: left; padding: 11px 14px; border: 1px solid var(--line, #e7e1d8); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; display: grid; gap: 2px; }
.pl-apt-list button:hover, .pl-apt-list button:focus-visible { border-color: var(--accent, #b5592b); background: #fdf6f1; }
.pl-apt-list b { font-size: 15px; }
.pl-apt-list small { color: var(--muted, #6b6f76); }
.pl-apt-info { display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid #ead7c8; }
.pl-apt-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.pl-apt-title h3 { font-size: 18px; margin: 0; }
.pl-apt-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pl-apt-facts li { padding: 5px 10px; border-radius: 999px; background: var(--stone, #efe9e0); font-size: 13.5px; }
.pl-apt-types { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-apt-types .opt { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
.pl-apt-types .opt small { display: block; font-weight: 500; color: var(--muted, #6b6f76); font-size: 12px; }
.pl-apt-types .opt.is-on small { color: inherit; opacity: .85; }
.pl-apt-note { margin: 0; }
.pl-apt-src { margin: 0; font-size: 12.5px; color: var(--muted, #6b6f76); }
@media (max-width: 640px) {
  .pl-apt-form { grid-template-columns: 1fr; }
  .pl-apt-list { grid-template-columns: 1fr; }
}

/* 평면도 그림: 네이버에서 보고 캡처해 올리기 */
.pl-apt-plan { display: grid; gap: 10px; padding-top: 14px; border-top: 1px dashed #e3d3c4; }
.pl-apt-plan-t { margin: 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pl-apt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pl-apt-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--paper, #faf8f4); border: 1px solid var(--line, #e7e1d8); min-width: 0; }
.pl-apt-steps li > span { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent, #b5592b); color: #fff; font-size: 12.5px; font-weight: 700; }
.pl-apt-steps li > div { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.pl-apt-steps small { color: var(--muted, #6b6f76); font-size: 12.5px; line-height: 1.45; }
@media (max-width: 860px) { .pl-apt-steps { grid-template-columns: 1fr; } }

/* PDF 여러 쪽 넘기기 */
.pl-pdfpager { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0; font-size: 14px; }
.pl-pdfpager button[disabled] { opacity: .4; cursor: default; }
