/* AA Site Intelligence — 사내 업무 플랫폼(포털)·ARCHI Forecast와 같은 디자인 언어: 흰 바탕·검정 워드마크·넓은 여백·얇은 선
   색은 기능에만 쓴다(대상 필지 주황, 계획 매스 파랑, 판정 녹·황·적). 외부 글꼴·CDN 없음(CSP 'self'), 인라인 style 금지. */
:root {
  --ink: #0b0b0b; --ink2: #3f3f3c; --ink3: #6b6a65; --muted: #8a8983;
  --line: #e8e7e2; --line2: #dcdbd5; --plane: #f5f5f2; --surface: #fff; --surface2: #fafaf8; --hover: #f1f0ec;
  --focus: #3987e5; --accent: #1d5fb8; --site: #ea580c; --mass: #4f7fd8;
  --ok: #0d6b0d; --ok-bg: #ebf6eb; --ok-ln: #c9e6c9;
  --warn: #7a4b00; --warn-bg: #fff4e0; --warn-ln: #f2e2bb;
  --bad: #951b1b; --bad-bg: #fdeeee; --bad-ln: #f3cccc;
  --hold: #3d4756; --hold-bg: #eceff3; --hold-ln: #d6dbe2;
  --info: #184f95; --info-bg: #edf4fd; --info-ln: #d2e2f8;
  --r: 14px; --r2: 10px;
  --sh1: 0 1px 2px rgba(17, 17, 17, .04);
  --sh2: 0 1px 2px rgba(17, 17, 17, .04), 0 14px 34px -24px rgba(17, 17, 17, .3);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--plane); color: var(--ink);
  font: 14px/1.55 var(--font); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; overflow-wrap: anywhere; letter-spacing: -.015em; }
p { margin: 0 0 10px; }
code { font-family: var(--mono); font-size: 12.5px; background: var(--plane); border-radius: 5px; padding: 1px 5px; }
svg.ic { width: 18px; height: 18px; flex: 0 0 18px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.fine { font-size: 12.5px; color: var(--muted); max-width: 860px; margin-top: 8px; }

/* ---- 상단 ---- */
.top { position: sticky; top: 0; z-index: 400; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1440px; margin: 0 auto; height: 64px; padding: 0 28px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 132px; height: auto; display: block; }
.brand-t { display: flex; flex-direction: column; line-height: 1.25; padding-left: 14px; border-left: 1px solid var(--line2); min-width: 0; }
.brand-t b { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.brand-t small { font-size: 11.5px; color: var(--ink3); white-space: nowrap; }
.topnav { display: flex; gap: 2px; margin-left: 6px; overflow-x: auto; scrollbar-width: none; }
.topnav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px; color: var(--ink3); font-weight: 500; white-space: nowrap; }
.topnav a:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.topnav a.on { background: var(--ink); color: #fff; }
.topnav svg.ic { width: 16px; height: 16px; flex-basis: 16px; }
.me { margin-left: auto; position: relative; }
.me summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; }
.me summary::-webkit-details-marker { display: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex: 0 0 30px; }
.me-t { display: flex; flex-direction: column; line-height: 1.2; }
.me-t b { font-size: 13px; } .me-t small { font-size: 11px; color: var(--ink3); }
.me-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--sh2); padding: 6px; z-index: 50; }
.me-h { padding: 8px 10px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.me-menu a, .me-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; margin: 0; border-radius: 8px; border: 0; background: none;
  font: inherit; font-weight: 500; color: var(--ink2); cursor: pointer; text-align: left; }
.me-menu a:hover, .me-menu button:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.me-menu form { margin: 0; }

/* ---- 본문 틀 ---- */
.page { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 28px 28px 56px; }
.foot { max-width: 1440px; width: 100%; margin: 0 auto; padding: 18px 28px 28px; font-size: 12px; color: var(--muted); display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: space-between; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.ph { margin-bottom: 20px; }
.ph h1 { font-size: 28px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.ph p { margin: 8px 0 0; color: var(--ink3); max-width: 780px; }
.ph.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ph.row .actions { margin-top: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.sec { margin: 28px 0; }
.sec-t { font-size: 16px; font-weight: 650; margin-bottom: 14px; }

/* ---- 카드 ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--sh2); min-width: 0; }
.card + .card { margin-top: 16px; }
.card h1 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.card h2 { font-size: 15.5px; font-weight: 650; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-h h2 { margin: 0; }
.card.narrow { max-width: 480px; margin: 12px auto 0; display: flex; flex-direction: column; gap: 4px; }

/* ---- 입력 ---- */
label { display: block; margin: 12px 0 0; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
input, select, textarea { width: 100%; margin-top: 6px; font: inherit; font-size: 14px; font-weight: 400; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line2); border-radius: var(--r2); padding: 8px 11px; min-height: 40px; }
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11, 11, 11, .06); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; accent-color: var(--ink); }
input[type=range] { padding: 0; min-height: 0; border: 0; accent-color: var(--ink); box-shadow: none; }
input.auto-filled, select.auto-filled { background: #f1f8ef; border-color: #a7d3a0; }
.input-unit { display: flex; align-items: stretch; margin-top: 6px; border: 1px solid var(--line2); border-radius: var(--r2); background: var(--surface); overflow: hidden; }
.input-unit:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11, 11, 11, .06); }
.input-unit input { flex: 1; min-width: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none !important; text-align: right; font-variant-numeric: tabular-nums; }
.input-unit > span { display: flex; align-items: center; padding: 0 11px; background: var(--surface2); border-left: 1px solid var(--line); color: var(--ink3); font-weight: 500; font-size: 12.5px; white-space: nowrap; }
.area-unit select { width: auto; min-width: 64px; margin: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: var(--surface2); min-height: 0; box-shadow: none; }
.area-alt { display: block; min-height: 1.1em; margin-top: 4px; font-weight: 400; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.row3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 14px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 14px 0 0; padding: 4px 14px 14px; background: var(--surface2); }
fieldset.plain { border: 0; padding: 0; margin: 0; background: none; }
legend { font-size: 12px; color: var(--ink3); padding: 0 6px; font-weight: 600; }
.form label.inline { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.form label.inline:last-child { border-bottom: 0; }
label.inline select { width: auto; min-width: 104px; margin: 0; min-height: 34px; padding: 5px 9px; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.form-sec { font-size: 13px; font-weight: 700; color: var(--ink); margin: 22px 0 2px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline; }
.form-sec:first-of-type { border-top: 0; padding-top: 0; margin-top: 10px; }
.req { color: var(--site); }
.error { display: block; color: var(--bad); font-size: 12px; font-weight: 500; margin-top: 4px; }
details { margin: 14px 0 0; }
summary { cursor: pointer; color: var(--ink2); font-size: 13px; font-weight: 600; }
summary:hover { color: var(--ink); }

/* ---- 버튼 ---- */
button, .button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; margin-top: 0;
  border-radius: var(--r2); border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 600 13.5px var(--font); cursor: pointer;
  white-space: nowrap; text-decoration: none !important; }
button:hover, .button:hover { background: #2a2a28; }
button:disabled { opacity: .45; cursor: not-allowed; }
.btn, button.secondary, .button.ghost { background: var(--surface); color: var(--ink); border-color: var(--line2); }
.btn:hover, button.secondary:hover, .button.ghost:hover { background: var(--hover); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #2a2a28; }
.btn.lg { height: 46px; padding: 0 20px; font-size: 14.5px; border-radius: 12px; }
button.wide, .btn.wide { width: 100%; height: 46px; margin-top: 20px; font-size: 14.5px; }
.btn svg.ic, button svg.ic { width: 16px; height: 16px; flex-basis: 16px; }
.small-btn { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
button.linklike { background: none; border: 0; height: auto; padding: 0; color: var(--accent); font: inherit; }
button.linklike:hover { background: none; text-decoration: underline; }
.inline-form { display: inline; margin: 0; }
.reset { margin-left: 12px; font-size: 13px; }

/* ---- 알림·배지 ---- */
.flash, .notice { border-radius: var(--r2); padding: 10px 14px; font-size: 13px; margin: 0 0 12px; border: 1px solid transparent; }
.flash.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-ln); }
.flash.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-ln); }
.notice { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-ln); }
.print-hint { background: var(--info-bg); color: var(--info); border: 1px solid var(--info-ln); border-radius: var(--r2); padding: 10px 14px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; white-space: nowrap; vertical-align: middle;
  background: var(--plane); color: var(--ink3); box-shadow: inset 0 0 0 1px var(--line); letter-spacing: 0; }
.badge.ok, .badge.s-live { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-ln); }
.badge.warn { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-ln); }
.badge.bad { background: var(--bad-bg); color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad-ln); }
.badge.hold { background: var(--hold); color: #fff; box-shadow: none; }
.badge.check, .badge.info, .badge.s-admin { background: #f1ecfd; color: #4b2aa3; box-shadow: inset 0 0 0 1px #ddd3f7; }
.badge.new, .badge.s-new { background: var(--info-bg); color: var(--info); box-shadow: inset 0 0 0 1px var(--info-ln); }
.basis { color: var(--muted); font-size: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); }
.chip.st-done { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-ln); }
.chip.st-doing { background: var(--info-bg); color: var(--info); box-shadow: inset 0 0 0 1px var(--info-ln); }
.chip.st-todo { background: var(--plane); color: var(--ink3); }
.chip.st-later { background: #f4effd; color: #5b3fd0; box-shadow: inset 0 0 0 1px #e2d9f8; }

/* ---- 표 ---- */
.grid { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0; font-size: 13px; }
.grid th, .grid td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.grid th { font-weight: 600; color: var(--ink2); }
.grid thead th { background: var(--surface2); font-size: 12px; color: var(--ink3); border-bottom: 1px solid var(--line2); white-space: nowrap; }
.grid thead th:first-child { border-top-left-radius: 8px; } .grid thead th:last-child { border-top-right-radius: 8px; }
.grid tbody tr:hover > * { background: #fbfbf9; }
.grid tr:last-child > * { border-bottom: 0; }
.grid .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid th.sub { padding-left: 26px; font-weight: 400; color: var(--ink3); }
.grid td.neg { color: var(--bad); font-weight: 600; }
.grid tr.bad td { background: var(--bad-bg); }
.grid.small { font-size: 12.5px; }
.grid.small th, .grid.small td { padding: 7px 10px; }
meter { width: 120px; height: 10px; vertical-align: middle; }
.summary { font-size: 15px; padding: 12px 16px; border-radius: var(--r2); margin: 6px 0 12px; }
.summary.pass { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-ln); }
.summary.fail { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-ln); }
.empty { color: var(--muted); }
.links { padding-left: 1.2rem; } .links li { margin: 6px 0; }
.steps { padding-left: 1.2rem; } .steps li { color: var(--muted); } .steps li.done { color: var(--ok); font-weight: 600; }

/* ---- 홈 ---- */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; padding: 36px 40px; box-shadow: var(--sh2); overflow: hidden; }
.home-hero h1 { font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.22; }
.home-hero-t > p:not(.eyebrow) { margin: 12px 0 0; color: var(--ink3); font-size: 15px; max-width: 620px; }
.home-hero-art { display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 520px; height: auto; display: block; }
.flow { list-style: none; counter-reset: fl; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 28px 0 0; padding: 0; }
.flow li { counter-increment: fl; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); }
.flow li::before { content: counter(fl); grid-row: 1 / 3; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.flow b { font-size: 13px; } .flow span { font-size: 12px; color: var(--ink3); }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh2);
  color: var(--ink); transition: transform .12s ease, box-shadow .12s ease, border-color .12s; min-width: 0; }
.app:hover { transform: translateY(-2px); border-color: var(--line2); box-shadow: 0 1px 2px rgba(17, 17, 17, .05), 0 22px 40px -26px rgba(17, 17, 17, .38); text-decoration: none; }
.app-h { display: flex; align-items: center; gap: 14px; }
.app-t { min-width: 0; } .app-t h3 { font-size: 16.5px; font-weight: 700; } .app-t p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink3); }
.app-d { margin: 14px 0 18px; color: var(--ink2); font-size: 13.5px; flex: 1; }
.app-f { display: flex; align-items: center; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.enter { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 600; font-size: 12.5px; }
.enter svg.ic { width: 14px; height: 14px; flex-basis: 14px; }
/* 설계안 3D 검토 카드: 카드 전체가 아니라 설계안별 줄을 누른다 */
.twin-card:hover { transform: none; }
.twin-card .app-d { flex: 0 0 auto; margin-bottom: 10px; }
.twin-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; flex: 1; align-content: start; }
.twin-list a { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); }
.twin-list a:hover { border-color: var(--line2); background: var(--bg, #f7f7f5); text-decoration: none; }
.twin-list b { font-size: 13px; } .twin-list span { font-size: 12px; color: var(--ink3); }
.enter:hover { text-decoration: none; background: #2a2a28; }
.twin-link { margin-top: 8px; }
.tile { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; flex: 0 0 44px; }
.tile svg.ic { width: 22px; height: 22px; flex-basis: 22px; }
.c-orange { background: #fdeee3; color: #c2410c; } .c-blue { background: #e6effc; color: #1d5fb8; } .c-slate { background: #eceff3; color: #3d4756; }
.c-green { background: #e6f5e9; color: #1c7a32; } .c-amber { background: #fdf2df; color: #9a5600; } .c-violet { background: #efeafd; color: #5b3fd0; }
.c-indigo { background: #e9ecfb; color: #3743a5; }

/* ---- 신규 검토: 지도 중심 ---- */
.explorer { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: stretch; margin-bottom: 16px; }
.explorer-map { position: relative; min-height: 520px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh2); background: #eef0ec; }
.site-map { position: absolute; inset: 0; height: auto; margin: 0; border: 0; border-radius: 0; z-index: 1; }
.site-map.map-off { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--ink3);
  background-color: #f3f3ef; background-image: linear-gradient(rgba(11, 11, 11, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 11, 11, .045) 1px, transparent 1px);
  background-size: 32px 32px; }
.map-off-in { max-width: 420px; margin-top: 70px; padding: 20px 22px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh2); }
.map-off-in b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.map-off-in p { margin: 0 0 6px; font-size: 13px; }
.map-off-in p.small { color: var(--muted); font-size: 12px; margin: 0; }
.map-search { position: absolute; z-index: 600; top: 16px; left: 16px; right: 16px; max-width: 560px; margin: 0; }
.search-field { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line2);
  border-radius: 14px; box-shadow: 0 10px 30px -12px rgba(17, 17, 17, .35); color: var(--muted); }
.search-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11, 11, 11, .06), 0 10px 30px -12px rgba(17, 17, 17, .35); }
.search-field input { flex: 1; min-width: 0; margin: 0; border: 0; padding: 0; min-height: 0; height: 100%; font-size: 15px; background: none; box-shadow: none !important; }
.addr-box { position: relative; }
.addr-list { position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh2); max-height: 320px; overflow-y: auto; }
.addr-list li { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.addr-list li strong { font-weight: 600; font-size: 13.5px; }
.addr-list li span { color: var(--muted); font-size: 12px; }
.addr-list li:hover, .addr-list li.active { background: var(--hover); }
.addr-status { margin: 8px 0 0; padding: 9px 12px; border-radius: 10px; background: rgba(237, 244, 253, .97); color: var(--info); border: 1px solid var(--info-ln); }
.addr-status[data-kind=error] { background: rgba(253, 238, 238, .97); color: var(--bad); border-color: var(--bad-ln); }
.explorer-side { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh2); padding: 20px; min-width: 0; }
.side-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.side-h h2 { font-size: 15.5px; font-weight: 650; }
.site-facts { flex: 1; margin: 0; overflow-y: auto; }
.open-3d-hint { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-ln); }
.site-facts .grid { margin: 4px 0 8px; }
.site-facts .grid th { width: 104px; color: var(--ink3); font-weight: 500; vertical-align: top; white-space: nowrap; }
.site-facts .grid td { font-weight: 600; color: var(--ink); }
.site-facts .grid td .basis { display: block; font-weight: 400; font-size: 11.5px; }
.site-facts p.small { margin: 6px 0; }
.site-facts button { width: 100%; margin-top: 8px; }
.side-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 2px; color: var(--ink3); }
.side-empty svg.ic { width: 28px; height: 28px; color: var(--site); }
.side-empty b { color: var(--ink); font-size: 15px; }
.side-empty p { font-size: 13px; margin: 0; }
.explorer-side .btn.wide { margin-top: 14px; }
.leaflet-container { font: 12px/1.4 var(--font); }

/* 주변 3D */
.site3d { margin: 0 0 16px; padding: 0; }
.site3d > summary { list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 22px; font-size: 15px; color: var(--ink); }
.site3d > summary::-webkit-details-marker { display: none; }
.site3d > summary::after { content: "펼치기"; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink3); border: 1px solid var(--line2); border-radius: 8px; padding: 3px 10px; }
.site3d[open] > summary::after { content: "접기"; }
.site3d[open] > summary { border-bottom: 1px solid var(--line); }
.sum-t { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.site3d > *:not(summary) { margin-left: 22px; margin-right: 22px; }
.site3d > *:last-child { margin-bottom: 18px; }
.site3d > table.grid { width: calc(100% - 44px); }
.site3d-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 14px; margin-bottom: 10px; }
.site3d-bar label { margin: 0; }
.site3d-bar label.check { padding-bottom: 11px; }
.site3d-bar input[type=number] { width: 92px; text-align: right; }
.site3d-stage { position: relative; }
.site3d-view { height: 520px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f3f5f8; }
.site3d-wide-btn { position: absolute; top: 10px; right: 10px; z-index: 3; height: 32px; padding: 0 12px; font-size: 12.5px; }
.site3d-stage.wide { position: fixed; inset: 4vh 4vw; z-index: 900; box-shadow: 0 0 0 100vmax rgba(11, 11, 11, .55); border-radius: 12px; margin: 0 !important; }
.site3d-stage.wide .site3d-view { height: 100%; }
.site3d-tip { position: absolute; pointer-events: none; background: rgba(11, 11, 11, .9); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 8px; max-width: 280px; z-index: 2; }
.site3d-legend { margin-top: 10px; }
.site3d-legend .sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin: 0 5px 0 12px; vertical-align: -1px; }
.site3d-legend .sw:first-child { margin-left: 0; }
.sw-site { background: #f97316; } .sw-bld { background: #9aa4b2; } .sw-est { background: #d5dae1; box-shadow: inset 0 0 0 1px #7b8494; } .sw-mass { background: #5b8def; }
.site3d [data-s3=out] th { width: 140px; white-space: nowrap; }
.site3d [data-s3=status] { margin-top: 4px; color: var(--info); }
.site3d [data-s3=status][data-kind=error] { color: var(--bad); }

/* 조건·결과 */
.review-layout { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
.review-layout > .form { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; }
.results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.results > .card { overflow-x: auto; }
.results .card + .card { margin-top: 0; }
.result-empty p { margin: 16px 0 0; color: var(--ink3); }
.re-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.re-grid > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 14px; border: 1px dashed var(--line2); border-radius: 12px; background: var(--surface2); }
.re-grid .tile { grid-row: 1 / 3; }
.re-grid b { font-size: 14px; } .re-grid small { color: var(--ink3); font-size: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.kpi { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 16px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh1); overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line2); }
.kpi-q { font-size: 12px; color: var(--ink3); font-weight: 600; }
.kpi-main { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi > span:last-child { font-size: 12.5px; color: var(--ink3); }
.kpi.ok { background: var(--ok-bg); border-color: var(--ok-ln); } .kpi.ok::before { background: var(--ok); } .kpi.ok .kpi-main { color: var(--ok); }
.kpi.warn { background: var(--warn-bg); border-color: var(--warn-ln); } .kpi.warn::before { background: #c27a00; } .kpi.warn .kpi-main { color: var(--warn); }
.kpi.bad { background: var(--bad-bg); border-color: var(--bad-ln); } .kpi.bad::before { background: var(--bad); } .kpi.bad .kpi-main { color: var(--bad); }
.kpi.hold { background: var(--hold-bg); border-color: var(--hold-ln); } .kpi.hold::before { background: var(--hold); }
.risks { list-style: none; padding: 0; margin: 0; }
.risks li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.risks li:last-child { border-bottom: 0; }
.risks li .badge { margin-right: 6px; }
.export-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.export-row label { min-width: 200px; margin: 0; }
.export-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.grid.volume { font-size: 12.5px; }
.grid.volume tr.applied td { background: var(--info-bg); }
.grid.volume tr.basis-row td { padding-top: 0; border-bottom: 1px solid var(--line); }
.grid.volume tr:has(+ .basis-row) td { border-bottom: 0; }

/* ---- 건축계산기 ---- */
.calc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.calc-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.calc-main .card + .card { margin-top: 0; }
.calc-menu { position: sticky; top: 80px; padding: 16px; }
.calc-menu h2 { font-size: 15px; margin: 0 0 6px; }
.calc-menu h2 a { color: var(--ink); }
.calc-cat { margin: 14px 0 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.calc-menu ul { list-style: none; margin: 0; padding: 0; }
.calc-menu li a { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; color: var(--ink2); font-size: 13.5px; font-weight: 500; }
.calc-menu li a:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.calc-menu li a.active { background: var(--ink); color: #fff; }
.calc-menu li a.active .badge { box-shadow: none; }
.calc-cat-title { font-size: 15px; font-weight: 650; margin: 8px 0 0; }
.calc label { margin-top: 12px; }
.menu-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.menu-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh1); color: var(--ink); min-width: 0; }
a.menu-card:hover, a.tool-card:hover { border-color: var(--line2); box-shadow: var(--sh2); text-decoration: none; }
.menu-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.menu-card h3 { font-size: 15px; font-weight: 650; }
.menu-card h3 a { color: var(--ink); }
.menu-card p { margin: 0; font-size: 13px; color: var(--ink3); flex: 1; }
.menu-card footer { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11.5px; color: var(--muted); }
.menu-card footer span { background: var(--plane); border-radius: 6px; padding: 1px 7px; }
.menu-card footer .note { background: var(--warn-bg); color: var(--warn); border: 0; margin: 0; }
.menu-card.st-done { box-shadow: inset 3px 0 0 var(--ok), var(--sh1); }
.menu-card.st-doing { box-shadow: inset 3px 0 0 var(--accent), var(--sh1); }
.menu-card.st-later { opacity: .8; }
.calc3d { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 18px; margin-top: 8px; }
.calc3d-controls label.slider { display: block; margin: 10px 0; }
.slider-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.slider-row input[type=range] { flex: 1; margin: 0; }
.slider-row input[type=number] { width: 84px; margin: 0; min-height: 34px; padding: 5px 8px; text-align: right; }
.slider-row .unit { color: var(--muted); font-weight: 400; font-size: 12px; width: 18px; }
.calc3d-stage { min-width: 0; }
.calc3d-view { height: 460px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f3f5f8; }
.calc3d-out th { width: 96px; }
.unit-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.unit-tabs a { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink2); font-size: 13px; background: var(--surface); }
.unit-tabs a:hover { border-color: var(--line2); text-decoration: none; }
.unit-tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.unit-table tr.from th, .unit-table tr.from td { background: var(--info-bg); font-weight: 600; }
.unit-table tr.variant th { box-shadow: inset 3px 0 0 #c27a00; }
.unit-table tr.variant { background: #fffaf0; }
tr.group-start th, tr.group-start td { border-top: 2px solid var(--line2); }

/* ---- 로드맵 ---- */
.roadmap-head h2 { font-size: 14px; margin: 20px 0 10px; }
.status-totals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.steps-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0; }
.steps-bar li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); }
.steps-bar li.st-done { background: var(--ok-bg); border-color: var(--ok-ln); }
.steps-bar li.st-doing { background: var(--info-bg); border-color: var(--info-ln); box-shadow: inset 0 -3px 0 var(--accent); }
.step-code { font-weight: 700; font-size: 12px; color: var(--muted); }
.step-title { font-size: 13.5px; font-weight: 600; }
.step-state { font-size: 12px; color: var(--ink3); }
.phase-block { margin-top: 26px; }
.phase-title { font-size: 16px; font-weight: 650; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.phase-tag { background: var(--ink); color: #fff; border-radius: 8px; padding: 3px 9px; font-size: 12px; }

/* ---- 관리(조례·계정) ---- */
.admin h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 12px; }
.filters label { margin: 0; }
.filters select { width: auto; min-width: 130px; }
.batch { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 16px; align-items: end; margin-bottom: 12px; }
.batch label { margin: 0; }
.batch-buttons { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.excerpt { margin: 6px 0 0; padding: 9px 10px; background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; line-height: 1.55; max-width: 440px; }
.rules td { vertical-align: top; }
.form-wide label { margin: 12px 0 0; }
.import-box .coverage { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 16px; }
.import-box .coverage a.chip { color: inherit; }
.import-form .import-go { display: flex; align-items: flex-end; }
.import-form details { margin-top: 12px; }
.manual-box { margin-top: 16px; }
.manual-grid input { width: 96px; text-align: right; }
.users tr.inactive td { color: var(--muted); }
.user-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.user-actions form { display: flex; gap: 4px; align-items: center; margin: 0; }
.user-actions input, .user-actions select { width: 11rem; margin: 0; min-height: 32px; padding: 4px 8px; font-size: 12.5px; }
.user-actions button { height: 32px; padding: 0 11px; font-size: 12.5px; }

/* ---- 검토서(1페이지 요약) ---- */
.page:has(.report-sheet) { max-width: 900px; }
.report-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 32px 36px; box-shadow: var(--sh2); }
.report-sheet h1 { margin: 0 0 4px; font-size: 24px; }
.report-sheet h2 { font-size: 15px; margin: 20px 0 8px; }
.report-sheet .confidential { text-align: right; color: var(--muted); font-size: 12px; margin: 0; }
.verdict-line { font-weight: 600; }
.verdict-line strong { font-size: 22px; margin: 0 8px; }
.v-ok { color: var(--ok); } .v-warn { color: #b45309; } .v-bad { color: var(--bad); } .v-hold { color: var(--hold); }
.placeholder-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.placeholder { border: 1px dashed var(--line2); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }
.report-foot { margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; text-align: center; }

/* ---- 로그인·첫 설정 ---- */
body.auth { background: var(--surface); }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-side { background: #0b0b0b; color: #f5f5f2; display: flex; align-items: flex-end; padding: 56px; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .2)); }
.auth-side::after { content: ""; position: absolute; right: 12%; top: 16%; width: 168px; height: 112px; border: 2px solid #ea580c; background: rgba(234, 88, 12, .12);
  transform: skewX(-24deg) rotate(-8deg); box-shadow: 220px -60px 0 -40px rgba(255, 255, 255, .06), -160px 90px 0 -30px rgba(255, 255, 255, .05); }
.auth-side-in { position: relative; z-index: 1; max-width: 480px; }
.auth-kicker { font-size: 13px; letter-spacing: .06em; color: #c9c8c1; margin: 0 0 18px; }
.auth-side h2 { font-size: 40px; line-height: 1.15; letter-spacing: -.03em; font-weight: 700; }
.auth-side p { color: #c9c8c1; margin: 18px 0 26px; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: #e8e7e2; }
.auth-points li { display: flex; align-items: center; gap: 12px; }
.auth-points span { font-size: 11.5px; font-weight: 700; color: #f5f5f2; border: 1px solid rgba(255, 255, 255, .28); border-radius: 6px; padding: 1px 7px; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: min(400px, 100%); display: flex; flex-direction: column; }
.auth-logo { width: 170px; height: auto; margin-bottom: 26px; }
.auth-card h1, .auth-card h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.auth-sub { margin: 6px 0 18px; color: var(--ink3); }
.auth-card label { margin-top: 14px; }
.auth-submit { width: 100%; height: 46px; margin-top: 22px; font-size: 15px; }
.auth-help { font-size: 12px; color: var(--muted); margin: 16px 0 0; }
.auth-card pre.code { background: var(--plane); border: 1px dashed var(--line2); color: var(--ink); padding: 12px 14px; border-radius: 10px; overflow-x: auto; font: 13px var(--mono); }
.auth-foot { margin-top: 40px; font-size: 12px; color: var(--muted); }

/* ---- 반응형 ---- */
@media (max-width: 1180px) {
  .explorer { grid-template-columns: minmax(0, 1fr) 340px; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero { grid-template-columns: minmax(0, 1fr); }
  .home-hero-art { display: none; }
  .brand-t { display: none; }
}
@media (max-width: 960px) {
  .explorer, .review-layout, .calc-layout, .calc3d { grid-template-columns: minmax(0, 1fr); }
  .explorer-map { min-height: 420px; }
  .review-layout > .form, .calc-menu { position: static; max-height: none; }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .steps-bar { grid-template-columns: 1fr; }
  .grid.volume, .rules { display: block; overflow-x: auto; }
  .topnav a span { display: none; }
  .me-t { display: none; }
  .me summary { padding: 3px; }
}
@media (max-width: 640px) {
  .top-in { height: 58px; padding: 0 14px; gap: 10px; }
  .brand img { width: 100px; }
  .page { padding: 18px 14px 40px; }
  .foot { padding: 14px; }
  .ph h1, .home-hero h1 { font-size: 23px; }
  .home-hero { padding: 24px 20px; }
  .apps, .flow, .re-grid, .row2 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 18px; }
  .site3d-view, .calc3d-view { height: 340px; }
  .map-search { top: 10px; left: 10px; right: 10px; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .top, .foot, .no-print { display: none !important; }
  .page { margin: 0; max-width: none; padding: 0; }
  .report-sheet { border: 0; padding: 0; box-shadow: none; }
  .kpi { break-inside: avoid; }
}
