@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --ink: #16263d;
  --ink-2: #3f5068;
  --muted: #78869b;
  --paper: #ffffff;
  --wash: #f2f4f7;
  --wash-2: #e8ecf2;
  --line: #d5dbe4;
  --line-firm: #aab5c4;
  --navy: #1b4a7a;
  --navy-dark: #12365c;
  --navy-tint: #e6eef6;
  --seal: #a8342a;
  --seal-tint: #f8ecea;
  --amber: #8a6112;
  --amber-tint: #f7efdd;
  --radius: 3px;
  --shell: 1200px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.012em;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.28; letter-spacing: -0.03em; }
p { margin: 0 0 0.75em; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 22px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── 상단 ─────────────────────────────────────────────── */
.legal-strip {
  background: var(--ink);
  color: #c6d1e0;
  font-size: 12.5px;
  letter-spacing: 0;
}
.legal-strip .shell { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.legal-strip b { color: #fff; font-weight: 600; }

.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: none; }
.brand .mark { font-size: 19px; font-weight: 700; letter-spacing: -0.045em; color: var(--ink); white-space: nowrap; }
.brand .sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.topbar nav { display: flex; align-items: center; gap: 22px; }
.topbar nav a.navlink { color: var(--ink-2); font-weight: 500; }
.topbar nav a.navlink[aria-current='page'] { color: var(--ink); font-weight: 700; }
.tel {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px; border: 1.5px solid var(--navy); border-radius: 999px;
  color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tel:hover { background: var(--navy); color: #fff; text-decoration: none; }
.menu-btn { display: none; border: 1px solid var(--line-firm); background: #fff; border-radius: var(--radius); padding: 8px 12px; white-space: nowrap; font-size: 14px; }

/* ── 공지 ─────────────────────────────────────────────── */
.notice-band { background: var(--wash); border-bottom: 1px solid var(--line); padding: 34px 0; }
.notice-card { position: relative; background: #fff; border: 1px solid var(--line-firm); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 30px 34px; max-width: 860px; margin: 0 auto; text-align: center; }
.notice-mark { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--navy-dark); background: var(--navy-tint); padding: 4px 12px; border-radius: 2px; margin-bottom: 14px; }
.notice-card h2 { font-size: clamp(19px, 2.6vw, 25px); line-height: 1.4; margin-bottom: 18px; }
.notice-card h2::after { content: ''; display: block; width: 54px; height: 3px; background: var(--navy); margin: 16px auto 0; }
.notice-body { text-align: left; font-size: 15.5px; color: var(--ink-2); max-width: 62ch; margin: 0 auto; }
.notice-body p { margin: 0 0 12px; }
.notice-body p:nth-child(2) { background: var(--navy-tint); border-left: 3px solid var(--navy); padding: 14px 16px; color: var(--ink); font-weight: 500; margin: 18px 0; }
.notice-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; color: var(--muted); font-size: 24px; line-height: 1; padding: 4px 8px; border-radius: 2px; }
.notice-close:hover { background: var(--wash); color: var(--ink); }
.notice-ack { margin-top: 18px; }
.notice-strip button { border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 17px; line-height: 1; padding: 2px 9px; border-radius: 2px; flex: none; }
.notice-strip button:hover { background: rgba(255,255,255,.3); }

/* 접힌 공지 */
.notice-mini { background: var(--wash); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.notice-mini .shell { display: flex; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.notice-mini b { background: var(--navy-tint); color: var(--navy-dark); padding: 2px 9px; border-radius: 2px; font-size: 12.5px; font-weight: 700; flex: none; }
.notice-mini-main { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0;
  border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; }
.notice-mini-main span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-mini-main:hover span { color: var(--navy); text-decoration: underline; }
.notice-mini .btn { flex: none; }
.notice-sign { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 600; }

.notice-strip { background: var(--navy); color: #fff; font-size: 14px; }
.notice-strip .shell { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.notice-strip b { background: rgba(255,255,255,.18); padding: 2px 9px; border-radius: 2px; font-size: 12.5px; flex: none; }
.notice-strip span { flex: 1 1 auto; min-width: 0; }
.notice-strip a { color: #fff; text-decoration: underline; flex: none; }

/* ── 배너 · 머리말 ───────────────────────────────────── */
.banner { border-bottom: 3px solid var(--ink); background: #efe7da; }
.banner img { display: block; width: 100%; height: auto; }

.intro-band { border-bottom: 1px solid var(--line); padding: 42px 0 46px; }
.intro-in { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }
.intro-in h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; margin-bottom: 12px; max-width: 20ch; }
.intro-in .lede { color: var(--ink-2); max-width: 52ch; margin-bottom: 24px; }

.cred { list-style: none; margin: 0; padding: 6px 18px; background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.cred li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cred li:last-child { border-bottom: 0; }
.cred span { color: var(--muted); flex: none; }
.cred b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick select { flex: 0 1 200px; }
.quick input[type='search'] { flex: 1 1 240px; }

.ceo-row { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.ceo-row img { width: 148px; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); display: block; }
.ceo-row b { display: block; font-size: 16px; margin-bottom: 7px; }
.ceo-row p { font-size: 14.5px; color: var(--ink-2); }
.ceo-row .sig { font-size: 13px; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }

/* ── 폼 ───────────────────────────────────────────────── */
input, select, textarea {
  font-family: inherit; font-size: 15.5px; color: var(--ink); background: #fff;
  border: 1px solid var(--line-firm); border-radius: var(--radius); padding: 10px 12px; width: 100%;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.65; }
input::placeholder, textarea::placeholder { color: #9aa6b6; }
select {
  appearance: none; padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: right 15px center, right 10px center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
label.field .help { display: block; font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 400; }
label.check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; margin-bottom: 12px; }
label.check input { width: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--navy); background: var(--navy); color: #fff; font-weight: 600;
  padding: 11px 22px; border-radius: var(--radius); width: auto;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); text-decoration: none; color: #fff; }
.btn.ghost { background: #fff; color: var(--navy); }
.btn.ghost:hover { background: var(--navy-tint); color: var(--navy-dark); }
.btn.quiet { background: #fff; color: var(--ink-2); border-color: var(--line-firm); }
.btn.quiet:hover { background: var(--wash); color: var(--ink); }
.btn.danger { background: #fff; color: var(--seal); border-color: #ddb5b0; }
.btn.danger:hover { background: var(--seal-tint); }
.btn.small { padding: 7px 13px; font-size: 13.5px; font-weight: 500; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.notice { font-size: 14.5px; padding: 11px 13px; border-radius: var(--radius); margin-top: 12px; }
.notice.ok { background: var(--navy-tint); color: var(--navy-dark); }
.notice.bad { background: var(--seal-tint); color: var(--seal); }
.notice.warn { background: var(--amber-tint); color: var(--amber); }

/* ── 레이아웃 ─────────────────────────────────────────── */
.band { padding: 58px 0; border-top: 1px solid var(--line); }
.band.tinted { background: var(--wash); }
.band-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.band-head h2 { font-size: 23px; }
.band-head p { margin: 0; font-size: 14px; color: var(--muted); }

.layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 36px; padding: 30px 0 64px; align-items: start; }
.sidebar { position: sticky; top: 84px; }
.sidebar .group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.sidebar .group:last-child { border-bottom: 0; }
.sidebar h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.pill-list { display: flex; flex-direction: column; gap: 2px; }
.pill-list button { border: 0; background: none; text-align: left; padding: 7px 10px; border-radius: var(--radius); color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; }
.pill-list button:hover { background: var(--wash); }
.pill-list button[aria-pressed='true'] { background: var(--navy-tint); color: var(--navy-dark); font-weight: 600; }
.pill-list button i { font-style: normal; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.results-head .count { font-weight: 700; }
.results-head p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ── 매물 카드 ────────────────────────────────────────── */
.cards { list-style: none; margin: 0; padding: 0; }
.cards.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px 22px; }
.card { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.cards.grid .card { display: block; padding: 0 0 18px; }
.card:hover .card-title { color: var(--navy); }
.card.is-featured { padding-left: 16px; }
.cards.grid .card.is-featured { padding-left: 0; }
.card.is-featured::before { content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; background: var(--navy); }
.cards.grid .card.is-featured::before { display: none; }

.card-media { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--wash); position: relative; }
.cards.grid .card-media { margin-bottom: 13px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media.empty {
  display: grid; place-items: center; color: #93a1b3; font-size: 13.5px;
  background: linear-gradient(transparent 0 calc(100% - 1px), #e2e7ee 0), linear-gradient(90deg, transparent 0 calc(100% - 1px), #e2e7ee 0);
  background-size: 24px 24px;
}
.card-media .shots { position: absolute; right: 8px; bottom: 8px; background: rgba(11,22,38,.78); color: #fff; font-size: 12px; padding: 2px 7px; border-radius: 2px; }

.tagrow { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 2px; background: var(--navy-tint); color: var(--navy-dark); }
.badge.grey { background: var(--wash-2); color: var(--ink-2); }
.badge.code { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; font-variant-numeric: tabular-nums; }
.badge.st-거래중 { background: var(--amber-tint); color: var(--amber); }
.badge.st-거래완료 { background: var(--wash-2); color: var(--muted); }
.badge.st-거래가능 { display: none; }
.badge.alert { background: var(--seal-tint); color: var(--seal); }

.price { font-size: 25px; font-weight: 700; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; margin-bottom: 5px; }
.price .unit { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-left: 1px; }
.price .sep { color: var(--muted); font-weight: 400; margin: 0 4px; }
.card-title { font-size: 17px; font-weight: 600; margin-bottom: 5px; }
.card-line { font-size: 14.5px; color: var(--ink-2); }
.card-line.spec { color: var(--muted); font-variant-numeric: tabular-nums; }
.card-summary { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }

.empty-state { padding: 62px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-firm); border-radius: var(--radius); margin-top: 24px; }
.empty-state strong { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 6px; }

/* ── 명시사항 표 (등기부 조판) ────────────────────────── */
.spec-block { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin: 24px 0; }
.spec-block caption, .spec-cap {
  text-align: left; padding: 12px 0 10px; font-size: 14px; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.spec-cap b { color: var(--ink); font-weight: 700; }
.spec-cap span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
table.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
table.spec th, table.spec td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
table.spec th { width: 168px; color: var(--ink-2); font-weight: 500; background: var(--wash); }
table.spec td { font-variant-numeric: tabular-nums; }
table.spec td .sub { display: block; font-size: 13px; color: var(--muted); font-variant-numeric: normal; }

.maint-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
.maint-table th, .maint-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.maint-table th { background: var(--wash); font-weight: 500; color: var(--ink-2); }
.maint-table td { text-align: right; font-variant-numeric: tabular-nums; }

/* ── 상세 ─────────────────────────────────────────────── */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; padding: 30px 0 64px; align-items: start; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--wash); aspect-ratio: 16 / 10; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.gallery-thumbs button { border: 1px solid var(--line); background: none; padding: 0; width: 84px; aspect-ratio: 4/3; border-radius: 2px; overflow: hidden; }
.gallery-thumbs button[aria-current='true'] { border-color: var(--navy); border-width: 2px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.aside-card { border: 1px solid var(--line-firm); border-radius: var(--radius); padding: 20px; position: sticky; top: 88px; }
.aside-card h3 { font-size: 17px; margin-bottom: 3px; }
.aside-card .hint { font-size: 13.5px; color: var(--muted); margin-bottom: 15px; }
.office-mini { font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.office-mini div { margin-bottom: 3px; }

/* ── 지도 ─────────────────────────────────────────────── */
.map-block { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-canvas { width: 100%; height: 340px; background: var(--wash); }
.map-canvas.map-empty { display: grid; place-content: center; text-align: center; color: var(--muted); font-size: 14.5px; padding: 20px; }
.map-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 11px 14px; border-top: 1px solid var(--line); background: var(--wash); font-size: 13.5px; color: var(--ink-2); }
.map-links { display: flex; gap: 14px; flex: none; }

/* 관리자 : 주소 검색 결과 */
.geo-result { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; background: var(--wash); }
.geo-item + .geo-item { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.geo-head { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.geo-head span { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.geo-cands { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── 게시판 ───────────────────────────────────────────── */
table.board { width: 100%; border-collapse: collapse; font-size: 15px; }
table.board th, table.board td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.board thead th { border-bottom: 2px solid var(--ink); font-size: 13px; color: var(--muted); font-weight: 600; }
table.board td.c, table.board th.c { text-align: center; width: 92px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
table.board tr.row { cursor: pointer; }
table.board tr.row:hover td { background: var(--wash); }
.lock { color: var(--muted); font-size: 13px; margin-right: 5px; }
.answer-tag { font-size: 12px; font-weight: 600; color: var(--navy-dark); background: var(--navy-tint); padding: 2px 7px; border-radius: 2px; margin-left: 7px; }

.post-view { border-top: 2px solid var(--ink); padding-top: 20px; }
.post-view .meta { font-size: 13.5px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.post-body { font-size: 15.5px; white-space: pre-wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.post-answer { background: var(--wash); border-left: 3px solid var(--navy); padding: 16px 18px; margin-top: 18px; white-space: pre-wrap; font-size: 15.5px; }
.post-answer .who { display: block; font-size: 13px; color: var(--navy-dark); font-weight: 600; margin-bottom: 6px; }

.svcgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 12px; }
.svcgrid.three, .linkgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc { border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 19px; background: #fff; }
.svc b { display: block; font-weight: 600; margin-bottom: 5px; }
.svc span { display: block; font-size: 14px; color: var(--ink-2); }

/* ── 링크 모음 ────────────────────────────────────────── */
.linkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.linkgrid a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; color: var(--ink); }
.linkgrid a:hover { border-color: var(--navy); text-decoration: none; }
.linkgrid a b { display: block; font-weight: 600; margin-bottom: 2px; }
.linkgrid a span { font-size: 13px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 46px; align-items: start; }
.factlist { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.factlist li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.factlist .k { color: var(--muted); width: 92px; flex: none; }
.factlist .v { font-variant-numeric: tabular-nums; }
.formcard { background: #fff; border: 1px solid var(--line-firm); border-radius: var(--radius); padding: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-pair img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }

/* ── 푸터 ─────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--line); background: var(--ink); color: #b9c5d6; padding: 34px 0 44px; font-size: 13.5px; }
footer.site a { color: #dbe4ef; }
footer.site .cols { display: flex; gap: 34px; flex-wrap: wrap; justify-content: space-between; }
footer.site .office b { color: #fff; font-weight: 600; font-size: 15px; display: block; margin-bottom: 8px; letter-spacing: -0.03em; }
footer.site .office div { margin-bottom: 2px; }
footer.site .rights { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12.5px; color: #8fa0b6; }

/* ── 관리자 ───────────────────────────────────────────── */
.admin-shell { max-width: 1140px; margin: 0 auto; padding: 0 22px 90px; }
.login-wrap { min-height: 76vh; display: grid; place-items: center; }
.login-card { width: min(380px, 92vw); border: 1px solid var(--line-firm); border-radius: 5px; padding: 28px; }
.tabs { display: flex; gap: 24px; border-bottom: 2px solid var(--ink); margin: 24px 0 22px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 11px 2px; color: var(--muted); font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button[aria-selected='true'] { color: var(--ink); font-weight: 700; border-bottom-color: var(--navy); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input[type='search'], .toolbar select { width: auto; min-width: 150px; }

table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th, table.grid td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.grid thead th { font-size: 12.5px; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--line-firm); }
table.grid td.r, table.grid th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.grid tr.dim td { color: var(--muted); }
.rowbtns { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

dialog { border: 0; border-radius: 6px; padding: 0; width: min(900px, 95vw); max-height: 93vh; color: var(--ink); }
dialog::backdrop { background: rgba(11,22,38,.55); }
.sheet-head { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 17px 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; z-index: 2; }
.sheet-close { border: 0; background: none; color: var(--muted); font-size: 24px; line-height: 1; padding: 2px 6px; }
.sheet-body { padding: 22px 24px 26px; }
.sheet-actions { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 14px 24px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.fieldset-title { grid-column: 1/-1; font-size: 13px; font-weight: 700; color: var(--navy-dark); border-bottom: 1px solid var(--line); padding-bottom: 7px; margin: 14px 0 14px; }
.checklist { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.checklist li { display: flex; gap: 9px; padding: 6px 0; border-bottom: 1px dotted var(--line); }
.checklist li .mark { flex: none; width: 18px; font-weight: 700; }
.checklist li.miss { color: var(--seal); }
.checklist li.miss .mark::before { content: '·'; }
.checklist li.hit .mark::before { content: '✓'; color: var(--navy); }
.checklist li .note { display: block; font-size: 12.5px; color: var(--muted); }

.uploader { border: 1px dashed var(--line-firm); border-radius: var(--radius); padding: 16px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.thumbs figure { margin: 0; width: 108px; }
.thumbs img { width: 108px; height: 81px; object-fit: cover; border: 1px solid var(--line); border-radius: 2px; display: block; }
.thumbs figcaption { display: flex; gap: 4px; margin-top: 4px; }
.thumbs figcaption button { flex: 1; font-size: 11.5px; padding: 3px 0; border: 1px solid var(--line); background: #fff; border-radius: 2px; color: var(--ink-2); }

.inq-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; margin-bottom: 10px; }
.inq-card.done { opacity: .55; }
.inq-card .meta { font-size: 13px; color: var(--muted); display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 7px; }
.inq-card .who { font-weight: 600; color: var(--ink); }

/* ── 반응형 ───────────────────────────────────────────── */
@media (max-width: 940px) {
  .layout, .detail, .intro-in { grid-template-columns: 1fr; gap: 24px; }
  .svcgrid.three, .linkgrid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar, .aside-card { position: static; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar nav a.navlink { display: none; }
  .menu-btn { display: inline-block; }
  .mobile-nav { display: none; border-bottom: 1px solid var(--line); background: #fff; }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: 13px 22px; border-bottom: 1px solid var(--line); color: var(--ink); }
}
@media (min-width: 941px) { .mobile-nav { display: none; } }
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .brand .sub { display: none; }
  .brand .mark { font-size: 17px; }
  .topbar nav { gap: 10px; }
  .tel { padding: 7px 13px; font-size: 14px; }
  .cred li { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 0; }
  .cred b { text-align: left; }
  .legal-strip { font-size: 12px; }
  .legal-strip .shell { gap: 4px 14px; }
  .legal-strip .hide-sm { display: none; }
  .topbar-in { height: 60px; }
  .card { grid-template-columns: 124px minmax(0, 1fr); gap: 14px; }
  .card-summary { display: none; }
  .price { font-size: 21px; }
  .intro-band { padding: 28px 0 32px; }
  .ceo-row { grid-template-columns: 1fr; }
  .notice-card { padding: 22px 18px; }
  .notice-band { padding: 22px 0; }
  .ceo-row img { width: 132px; }
  table.spec th { width: 108px; font-size: 13.5px; }
  .photo-pair { grid-template-columns: 1fr; }
  .svcgrid.three, .linkgrid.three { grid-template-columns: 1fr; }
  .map-canvas { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
