/* 빌딩킷 — 차분한 무채색 바탕 + 짙은 남색 포인트. 장식(그라데이션·이모지·큰 그림자) 없이 글자와 여백으로 정리한다. */
:root {
  --bg: #f5f5f2; --card: #ffffff; --ink: #17191c; --ink-2: #3c4148; --muted: #737a83; --faint: #a3a9b0;
  --line: #e4e4df; --line-2: #d6d6d0; --hover: #f2f2ee;
  --brand: #1c2a39; --brand-2: #2c3e52; --accent: #2f5d8a; --focus: #9db6cf;
  --ok: #2b6a4a; --ok-bg: #edf4ef; --warn: #8a5b12; --warn-bg: #faf3e6; --bad: #a3332b; --bad-bg: #faeeec;
  --run: #2f5d8a; --run-bg: #edf2f7;
  --r: 8px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
code, .num, .stats b, .kpi b { font-variant-numeric: tabular-nums; }

/* ---- 머리 ---- */
header.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
header.top a.brand { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 10px; }
header.top a.brand { white-space: nowrap; }
header.top a.brand i { font-style: normal; display: inline-block; width: 8px; height: 8px; background: var(--brand); margin-right: 8px;
  transform: translateY(-2px); }
header.top .sub { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; padding: 7px 12px;
  border-radius: 6px; border: 0; background: transparent; }
.nav a:hover, .nav button:hover { background: var(--hover); color: var(--ink); }
.nav a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 28px; padding-bottom: 64px; }

/* ---- 카드·글자 ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin-bottom: 16px; }
.card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h1, .card-head h2 { margin: 0; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 4px; }
h1 { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 6px; }
h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
p.hint { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.msg { color: var(--muted); font-size: 13px; }

/* ---- 입력 ---- */
textarea, input[type=text], input[type=password] {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; font: inherit; font-size: 15px;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea::placeholder, input::placeholder { color: var(--faint); }
textarea { min-height: 190px; resize: vertical; line-height: 1.7; }
textarea:focus, input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(47, 93, 138, .14); }
input[type=checkbox] { accent-color: var(--brand); width: 16px; height: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1 1 260px; }

/* ---- 버튼 ---- */
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); padding: 0 16px; font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
button:hover, .btn:hover { background: var(--hover); border-color: #c9c9c2; }
button:disabled { opacity: .5; cursor: default; }
.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.danger { color: var(--bad); }
.danger:hover { background: var(--bad-bg); border-color: #e7c3bf; }
.btn.disabled { pointer-events: none; opacity: .4; }
.link-btn { height: auto; border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; }
.link-btn:hover { background: none; text-decoration: underline; }

/* ---- 알림 줄 ---- */
.flash, .error, .result { border-radius: var(--r); padding: 12px 14px 12px 16px; margin: 0 0 16px; font-size: 14px; border: 1px solid;
  position: relative; }
.flash::before, .error::before, .result::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: currentColor; }
.flash { background: var(--warn-bg); color: var(--warn); border-color: #efe0c2; }
.error { background: var(--bad-bg); color: var(--bad); border-color: #efd0cc; }
.result { font-weight: 600; }
.result.ok { background: var(--ok-bg); color: var(--ok); border-color: #cfe3d6; }
.result.warn { background: var(--warn-bg); color: var(--warn); border-color: #efe0c2; }
.result.bad { background: var(--bad-bg); color: var(--bad); border-color: #efd0cc; }
.result a, .flash a { color: inherit; font-weight: 700; }

/* ---- 표 ---- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; background: transparent; border-bottom-color: var(--line-2); }
tbody tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* ---- 상태 표시 ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 5px; font-size: 12.5px; font-weight: 600;
  white-space: nowrap; background: #f0f0ec; color: var(--ink-2); line-height: 1.6; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.s-완료 { background: var(--ok-bg); color: var(--ok); }
.s-진행중, .s-민원담김 { background: var(--run-bg); color: var(--run); }
.s-대기 { background: #f0f0ec; color: var(--muted); }
.s-검색불가, .s-중지 { background: var(--warn-bg); color: var(--warn); }
.s-사용자확인필요, .s-오류 { background: var(--bad-bg); color: var(--bad); }

/* ---- 진행 ---- */
.progress { height: 6px; background: #ebebe6; border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; background: var(--brand); width: 0; transition: width .4s; }
.progress-row { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; }
.progress-row .progress { flex: 1; }
.progress-row b { min-width: 48px; text-align: right; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.stats b { color: var(--ink); font-weight: 700; }
.stats .ok b { color: var(--ok); }
.stats .bad b { color: var(--bad); }
.log { background: #15181c; color: #c9d1d9; border-radius: var(--r); padding: 12px 14px; font: 12.5px/1.65 ui-monospace, Consolas, "Malgun Gothic", monospace;
  max-height: 260px; overflow: auto; white-space: pre-wrap; }
.log .t { color: #6e7781; margin-right: 8px; }
.empty { color: var(--muted); padding: 28px 0; text-align: center; font-size: 14px; }
.why { color: var(--bad); font-size: 13px; margin-top: 2px; }
table.items td.msg a { white-space: nowrap; }

/* ---- 로그인·가입 ---- */
.login { max-width: 400px; margin: 8vh auto; padding: 32px; }
.login .mark { display: inline-block; width: 10px; height: 10px; background: var(--brand); margin-bottom: 18px; }
label.field { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
label.field input, label.field textarea { margin-top: 6px; font-weight: 400; color: var(--ink); }
label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 8px 0; }
label.inline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
label.inline input, .acts input { width: auto; padding: 6px 8px; height: 34px; }
.btn.kakao { width: 100%; height: 48px; background: #fee500; border-color: #fee500; color: #191600; font-size: 15px; }
.btn.kakao:hover { background: #f5dc00; border-color: #f5dc00; }
.id-login { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.id-login summary { font-size: 13px; }
details summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; margin-left: 6px; color: var(--faint); }
details[open] summary::after { content: "–"; }

/* ---- 작업 입력 ---- */
.examples { border: 1px solid var(--line); background: #fafaf8; border-radius: var(--r); padding: 10px 14px; margin-bottom: 10px;
  font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.examples b { color: var(--ink-2); font-weight: 600; }
.examples code { font-family: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; }
.examples .tag { display: inline-block; min-width: 76px; font-weight: 600; color: var(--ink-2); }
.howto { margin-top: 4px; }
.howto summary { font-size: 13px; color: var(--accent); font-weight: 600; }
.howto summary::after { color: var(--accent); }
.howto-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.howto-body .msg { grid-column: 1 / -1; }
.howto figure { margin: 0; }
.howto svg { width: 100%; height: auto; display: block; }
.howto figure + figure svg { max-width: 150px; margin: 0 auto; }     /* 휴대폰 그림은 작게 */
.howto figcaption { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin-top: 6px; }
.howto figcaption ol { margin: 4px 0 0; padding-left: 18px; }
.compose { display: grid; gap: 16px; }
.compose.with-map { grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.4fr); }
.compose-input textarea { min-height: 280px; display: block; }
.compose.with-map .compose-input { display: flex; flex-direction: column; }
.compose.with-map .compose-input textarea { flex: 1; }
.count { text-align: right; margin-top: 6px; }
#map { width: 100%; height: 340px; border-radius: var(--r); border: 1px solid var(--line); margin: 10px 0 6px; }
.map-search { display: flex; gap: 8px; }
.map-search input { flex: 1; min-width: 0; }
.map-search button { white-space: nowrap; }
#map-range.on { background: var(--brand); color: #fff; border-color: var(--brand); }
#map.ranging { cursor: crosshair; touch-action: none; outline: 2px solid var(--accent); outline-offset: -2px; }
.r-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 8px 2px; border-bottom: 1px solid var(--line); cursor: pointer; word-break: keep-all; }
.r-row input { flex: none; }
.dot { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; border: 2px solid #fff;
  font: 700 11px/18px Pretendard, "Malgun Gothic", sans-serif; text-align: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.dot.hot { background: #b5542a; transform: scale(1.3); }
.picked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 132px; overflow: auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line-2); border-radius: 6px;
  padding: 2px 2px 2px 4px; font-size: 13px; cursor: pointer; height: 28px; }
.chip b { display: inline-block; min-width: 20px; height: 20px; border-radius: 4px; background: var(--brand); color: #fff;
  font-size: 11px; line-height: 20px; text-align: center; padding: 0 4px; }
.chip.typed b { background: var(--faint); }
.chip.hot { border-color: #d9a083; background: #fbf3ee; }
.chip.hot b { background: #b5542a; }
.chip button { border: 0; background: transparent; padding: 0 6px; height: 22px; color: var(--faint); font-size: 12px; }
.chip button:hover { color: var(--bad); background: transparent; }

/* ---- 작업 목록 ---- */
table.jobs tbody tr { cursor: pointer; }
table.jobs tbody tr:hover { background: #fafaf7; }
table.jobs tbody tr.sel { background: #f3f5f8; }
table.jobs tbody tr.sel td:first-child { box-shadow: inset 2px 0 0 var(--brand); font-weight: 700; }

/* ---- 팝업 ---- */
.modal-back { position: fixed; inset: 0; background: rgba(20, 22, 26, .45); display: flex; align-items: center; justify-content: center;
  padding: 16px; z-index: 10; }
.modal { background: var(--card); border-radius: 12px; padding: 28px 26px 22px; width: 100%; max-width: 420px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.modal .icon { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
  background: var(--ok-bg); color: var(--ok); }
.modal .icon.warn { background: var(--warn-bg); color: var(--warn); }
.modal .icon svg { width: 22px; height: 22px; }
.modal h2 { font-size: 18px; margin-bottom: 6px; }
.modal p { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.modal .row { justify-content: center; }
.units-modal { max-width: 720px; text-align: left; padding: 22px; }
.u-body { max-height: 55vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 12px; }
.u-dong { padding: 10px 0; border-bottom: 1px solid var(--line); }
.u-dong:last-child { border-bottom: 0; }
.u-head { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.u-hos { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0 24px; }
.u-ho { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px;
  font-size: 13px; cursor: pointer; background: #fff; }
.u-ho:has(input:checked) { background: #eef2f7; border-color: var(--focus); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 11px 18px; border-radius: var(--r); font-size: 14px; z-index: 20; max-width: calc(100% - 32px);
  box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.toast.bad { background: var(--bad); }

/* ---- 관리자 ---- */
.acts { display: flex; flex-wrap: wrap; gap: 4px; }
.acts button, .acts .inline button { height: 30px; padding: 0 10px; font-size: 12.5px; }
.acts .inline { font-size: 12.5px; }
table.admin tr.off { opacity: .5; }
.memo input { margin-top: 6px; padding: 4px 8px; font-size: 12.5px; height: 30px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kpi { padding: 14px 16px; border-right: 1px solid var(--line); background: #fff; }
.kpi:last-child { border-right: 0; }
.kpi span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin-top: 2px; }
.kpi small { color: var(--muted); font-size: 12.5px; }
.kpi .bad { color: var(--bad); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; padding: 2px; gap: 2px; }
.seg button { height: 30px; border: 0; border-radius: 5px; font-size: 13px; padding: 0 12px; color: var(--muted); }
.seg button.on { background: var(--brand); color: #fff; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin-top: 18px; padding-bottom: 22px; position: relative; }
.bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; min-width: 0; }
.bars .b i { display: block; background: var(--brand); border-radius: 2px 2px 0 0; min-height: 1px; }
.bars .b i.f { background: #d58b82; border-radius: 0; }
.bars .b em { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--faint); white-space: nowrap; }
.bars .b:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 5px; white-space: nowrap; z-index: 2; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--brand); margin-right: 5px; vertical-align: -1px; }
.legend i.f { background: #d58b82; }
.notify { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---- 건물 찾기 ---- */
select { width: 100%; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 10px; font: inherit; font-size: 15px;
  background: #fff; color: var(--ink); }
select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(47, 93, 138, .14); }
select:disabled { background: #f6f6f3; color: var(--faint); }
label.field select { margin-top: 6px; font-weight: 400; }
.bf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 12px; }
.bf-grid.bf-ranges { grid-template-columns: repeat(3, 1fr); gap: 10px 16px; margin-top: 6px; }
.range { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.range span { grid-column: 1 / -1; margin-bottom: 5px; }
.range span i { font-style: normal; color: var(--muted); font-weight: 500; }
.range b { display: none; }
.range input { height: 40px; }
.bf-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 8px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bf-presets button { height: 32px; font-size: 13px; padding: 0 12px; border-radius: 999px; }
.bf-presets .msg { margin-right: 4px; }
.bf-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px 5px 9px; cursor: pointer; background: #fff; }
.chk:has(input:checked) { background: #eef2f7; border-color: #9db6cf; }
.bf-cover { margin: 8px 0 4px; padding: 10px 12px; border-radius: var(--r); background: var(--warn-bg); color: var(--warn); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bf-cover button { height: 30px; font-size: 13px; padding: 0 12px; }
table.bld td, table.bld th { padding: 9px 10px; }
table.bld td.r, table.bld th.r { text-align: right; white-space: nowrap; }
table.bld tbody tr { cursor: pointer; }
table.bld tbody tr:hover { background: #fafaf7; }
table.bld tbody tr.on { background: #eef2f7; }
table.bld input[type=checkbox] { pointer-events: none; }
table.bld thead input[type=checkbox] { pointer-events: auto; }
.msg.room { color: var(--ok); font-weight: 600; }
/* 소유주 검색 표: 넓은 화면은 표, 휴대폰은 한 줄짜리 카드 */
table.ocards th, table.ocards td.date { white-space: nowrap; }
table.ocards td { word-break: keep-all; overflow-wrap: anywhere; }
table.ocards .rep { margin-left: 2px; color: var(--muted); font-weight: 600; }
table.ocards .pdf-link, .obld .pdf-link { white-space: nowrap; font-weight: 600; }
table.ocards td.addr { min-width: 180px; }
.ochips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.ochip { height: auto; min-height: 32px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--card); font-size: 13.5px; text-align: left; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.ochip:hover { border-color: var(--accent); background: var(--run-bg); }
.ochip .msg { font-size: 12px; }
.obld { padding: 14px 0; border-bottom: 1px solid var(--line); }
.obld:last-child { border-bottom: 0; }
.obld-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; word-break: keep-all; overflow-wrap: anywhere; }
.obld-head button { height: 28px; font-size: 12.5px; padding: 0 10px; }
@media (max-width: 640px) {
  table.ocards thead { display: none; }
  table.ocards, table.ocards tbody { display: block; }
  table.ocards tr { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 4px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
  table.ocards td { display: block; border: 0; padding: 0; text-align: left !important; font-size: 14px; }
  table.ocards td.full { flex-basis: 100%; }
  table.ocards td.full b { font-size: 15.5px; }
  table.ocards td[data-l]::before { content: attr(data-l) ' '; color: var(--faint); font-size: 12px; }
  table.ocards td.full[data-l]::before { display: block; }
  table.bcards tr { position: relative; padding-left: 36px; }
  table.bcards td:first-child { position: absolute; left: 4px; top: 14px; }
}
.status { display: inline-block; padding: 1px 8px; border-radius: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-확정 { background: var(--ok-bg); color: var(--ok); } .st-유력 { background: var(--run-bg); color: var(--run); }
.st-후보 { background: var(--warn-bg); color: var(--warn); } .st-미발견, .st-대장없음, .st-집합건물 { background: #f0f0ec; color: var(--muted); }

.new { display: inline-block; background: #b5542a; color: #fff; font-size: 10.5px; font-weight: 800; padding: 0 5px; border-radius: 4px; letter-spacing: .03em; }
.status.bal { background: #f0f0ec; color: var(--ink-2); font-weight: 600; }
.link-btn.copy { text-align: left; white-space: normal; font-weight: 700; color: var(--ink); text-decoration: underline dotted; text-underline-offset: 3px; }
.link-btn.copy.sub { font-weight: 500; color: var(--muted); font-size: 12.5px; }
table.trades select.tag { height: 30px; font-size: 12.5px; width: 92px; padding: 0 6px; }
table.trades .memo-in { height: 30px; font-size: 12.5px; padding: 4px 8px; margin-top: 4px; width: 140px; }
table.trades tbody tr { cursor: default; }

/* ---- 약관 ---- */
.terms { max-width: 760px; margin-left: auto; margin-right: auto; padding: 36px 40px; }
.terms h2 { margin-top: 26px; font-size: 15px; }
.terms p, .terms li { color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }
footer.foot { color: var(--faint); font-size: 12.5px; text-align: center; padding: 0 16px 32px; }
footer.foot a { color: var(--muted); }

@media (max-width: 860px) {
  .compose.with-map { grid-template-columns: 1fr; }
  .compose-input textarea { min-height: 160px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  /* 폰: 표 대신 한 건씩 카드처럼(주소가 좁은 칸에서 여러 줄로 쪼개지지 않게) */
  table.items thead, table.jobs thead { display: none; }
  table.items tr { display: grid; grid-template-columns: 22px 1fr auto; column-gap: 8px; row-gap: 2px;
    padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
  table.items td { border: 0; padding: 0; }
  table.items td:nth-child(1) { grid-row: 1 / span 2; padding-top: 2px; }
  table.items td:nth-child(2) { grid-column: 2; word-break: keep-all; overflow-wrap: anywhere; }
  table.items td:nth-child(3) { grid-column: 3; grid-row: 1; }
  table.items td:nth-child(4) { grid-column: 2 / 4; }
  table.items td:nth-child(4):empty { display: none; }
  table.jobs tr { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; row-gap: 4px; padding: 12px 6px; border-bottom: 1px solid var(--line); }
  table.jobs td { border: 0; padding: 0; }
  table.jobs td:nth-child(1) { grid-column: 1 / 3; font-weight: 600; }
  table.jobs td:nth-child(3) { grid-column: 1; }
  table.jobs td:nth-child(4) { grid-column: 2; text-align: right; }
  table.jobs tbody tr.sel { box-shadow: inset 2px 0 0 var(--brand); }
  table.jobs tbody tr.sel td:first-child { box-shadow: none; }
  header.top .wrap { height: 54px; }
  header.top .sub { display: none; }
  .nav a, .nav button { padding: 6px 7px; font-size: 13px; white-space: nowrap; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  header.top a.brand span:first-child { font-size: 16px; }
  .bf-grid, .bf-grid.bf-ranges { grid-template-columns: 1fr 1fr; }
  /* 건물 찾기 결과: 폰에서는 한 건씩 카드(주소 / 유형 / 대지·연면적·층·용적률) */
  #rows-wrap table.bld thead { display: none; }
  #rows-wrap table.bld tr { display: grid; grid-template-columns: 26px repeat(4, 1fr); column-gap: 8px; row-gap: 3px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  #rows-wrap table.bld td { border: 0; padding: 0; text-align: left !important; }
  #rows-wrap table.bld td:nth-child(1) { grid-row: 1 / span 3; padding-top: 2px; }
  #rows-wrap table.bld td:nth-child(2), #rows-wrap table.bld td:nth-child(3) { grid-column: 2 / 6; word-break: keep-all; }
  #rows-wrap table.bld td:nth-child(3) .msg { display: inline; margin-left: 6px; }
  #rows-wrap table.bld td[data-l] { font-size: 13px; }
  #rows-wrap table.bld td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--faint); }
  #rows-wrap table.bld td:nth-child(7), #rows-wrap table.bld td:nth-child(8), #rows-wrap table.bld td:nth-child(10) { display: none; }
  .wrap { padding: 0 16px; }
  main.wrap { padding-top: 16px; }
  .card { padding: 18px; border-radius: 8px; }
  .login, .terms { padding: 24px 20px; margin-top: 4vh; }
  .hide-sm { display: none; }
  .row > * { flex: 1 1 100%; }
  .row > .badge, .card-head .badge { flex: 0 0 auto; }
  textarea, input[type=text], input[type=password] { font-size: 16px; }   /* 아이폰: 16px 미만이면 입력할 때 화면이 확대됨 */
  .examples .tag, .examples .msg { display: block; }
  .howto-body { grid-template-columns: 1fr; }
  .howto figure + figure { order: -1; }                                 /* 폰에서는 휴대폰 방법을 먼저 */
  .progress-row b { font-size: 17px; }
  .kpi b { font-size: 20px; }
}
.trades .unit { font-size: 12.5px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.trade-line { margin-top: 5px; font-size: 13px; color: var(--ink-2); font-weight: 400; }
.trade-line b { font-weight: 600; }
.sold { margin-top: 5px; padding: 4px 8px; border-radius: 6px; background: var(--warn-bg); color: var(--warn); font-size: 12.5px; font-weight: 600; }
.badge.ru-ok { background: var(--ok-bg); color: var(--ok); }
.badge.ru-wait { background: var(--warn-bg); color: var(--warn); }
.badge.ru-again { background: var(--run-bg); color: var(--run); }
/* 소유주 검색: 대장 보기 / 바로 발급 버튼 */
.acts { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.act { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 7px; font-size: 13px; font-weight: 600;
  white-space: nowrap; text-decoration: none; cursor: pointer; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); }
.act svg { width: 14px; height: 14px; flex: none; }
.act-view { color: var(--accent); border-color: #c9d6e4; background: #f3f7fb; }
.act-view:hover { background: #e8f0f8; }
.act-issue { color: #fff; background: var(--brand); border-color: var(--brand); }
.act-issue:hover { background: var(--brand-2); }
.act-none { color: var(--faint); border-style: dashed; cursor: default; font-weight: 400; }
.obld-head .acts { margin-left: auto; }
.act small { font-weight: 400; opacity: .75; margin-left: 2px; }
.acts-col { flex-direction: column; align-items: stretch; }
table.ocards td:last-child .acts { min-width: 190px; }
table.trades td:last-child { min-width: 128px; }
.maps { display: inline-flex; gap: 10px; margin-top: 6px; font-size: 12.5px; white-space: nowrap; }
.maps a { color: var(--ink-2); text-decoration: none; border-bottom: 1px dotted var(--line-2); }
.maps a:hover { color: var(--accent); }
.trade-line .tl { margin-top: 3px; line-height: 1.5; }
.trade-line .amt { color: var(--ink); }
.trade-line .unit { margin-left: 6px; }
.badge.trust { background: var(--warn-bg); color: var(--warn); margin-left: 6px; font-size: 11.5px; }
@media (max-width: 640px) { table.ocards td:last-child .acts { min-width: 0; } }
/* 건축물대장 조회: 조회 방식 칸(지번 / 소유주 이름) */
.qtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.qtabs button { height: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; text-align: left;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink-2); }
.qtabs button b { font-size: 15px; color: var(--ink); }
.qtabs button span { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.qtabs button.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: #f4f7fb; }
/* 지도 바로가기: 네이버(초록 N) · 카카오(노랑 K) */
.maps a { display: inline-flex; align-items: center; gap: 5px; border-bottom: 0; }
.mi { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px;
  font: 800 11px/1 Arial, sans-serif; font-style: normal; }
.mi-n { background: #03c75a; color: #fff; }
.mi-k { background: #fee500; color: #191919; }
/* 건물 카드: 머리(주소·버튼) → 핵심 정보 칸 → 경고 → 소유자 표 */
.bcard { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; background: var(--card); }
.bcard.stale { border-color: #ead9b4; }
.bc-head { display: flex; gap: 10px; align-items: flex-start; }
.bc-head .pick { margin-top: 5px; flex: none; }
.bc-title { flex: 1; min-width: 0; }
.bc-title > b { font-size: 16.5px; word-break: keep-all; overflow-wrap: anywhere; margin-right: 6px; }
.bc-head .acts { flex: none; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 12px 0 8px; }
.fact { background: #f7f7f4; border-radius: 9px; padding: 9px 11px; min-width: 0; }
.fact span { display: block; font-size: 11.5px; color: var(--muted); }
.fact span small { font-size: 10.5px; }
.fact b { display: block; font-size: 15px; color: var(--ink); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact em { display: block; font-style: normal; font-size: 12px; color: var(--ink-2); margin-top: 1px; }
.fact.hl { background: #eef4fb; }
.fact.hl b { color: var(--accent); }
.otbl { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13.5px; }
.otbl th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.otbl td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: keep-all; overflow-wrap: anywhere; }
.otbl tr:last-child td { border-bottom: 0; }
.otbl .ochip { border: 0; padding: 0; min-height: 0; background: none; color: var(--accent); }
.otbl .ochip:hover { text-decoration: underline; background: none; }
.cause { display: inline-block; font-size: 11.5px; color: var(--muted); background: #f1f1ed; border-radius: 4px; padding: 0 5px; margin-left: 2px; }
.more-trades { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.more-trades span { color: var(--ink-2); }
@media (max-width: 640px) {
  .qtabs { grid-template-columns: 1fr; }
  .bc-head { flex-wrap: wrap; }
  .bc-head .acts { width: 100%; padding-left: 26px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .otbl th:nth-child(2), .otbl td:nth-child(2) { display: none; }
}
/* 소유주 이름 검색: 소유주 카드 */
.olist { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.ocard { height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 7px; padding: 13px 15px; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 400; cursor: pointer; }
.ocard:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(30, 50, 80, .07); }
.oc-name b { font-size: 16.5px; }
.oc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #f1f1ed; color: var(--ink-2); white-space: nowrap; }
.tag.strong { background: var(--brand); color: #fff; font-weight: 600; }
.oc-addr { font-size: 12.5px; color: var(--muted); line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.oc-go { font-size: 12.5px; color: var(--accent); font-weight: 600; align-self: flex-end; }
.bcard.on { border-color: var(--accent); background: #fbfdff; }
.otbl tr.me td { background: #f4f8fc; }
.otbl tr.me .ochip b::after { content: ' (이 사람)'; font-weight: 400; color: var(--muted); font-size: 11.5px; }
/* 과거 소유주 포함 · 대장 이력 */
.past-chk { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.tag.past { background: #ece9e2; color: #7a6a4c; }
.oc-blds { font-size: 13.5px; color: var(--ink); line-height: 1.6; overflow-wrap: anywhere; word-break: keep-all; }
.oc-blds .was { color: var(--muted); }
.ocard, .ocard * { white-space: normal; min-width: 0; }
.ocard { overflow: hidden; }
.bcard, .bc-title, .facts, .fact { min-width: 0; }
.bc-title > b { display: inline; overflow-wrap: anywhere; }
.bcard.was { background: #fafaf8; border-style: dashed; }
.badge.past { background: #ece9e2; color: #7a6a4c; margin-left: 6px; }
.was-note { background: #f3f1ec; color: #6b5d43; }
.past-box { margin-top: 10px; padding: 8px 10px; border-radius: 9px; background: #faf9f6; border: 1px dashed var(--line-2); }
.pb-head { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin: 8px 0 4px; }
.past-box .pb-head { margin-top: 0; }
.pb-row { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 3px 0; font-size: 13px; }
.pb-row .ochip { border: 0; padding: 0; min-height: 0; background: none; color: var(--accent); }
.hist-link, .hist a { font-size: 12px; font-weight: 600; color: var(--accent); }
.hist { margin-top: 8px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.thist { margin-top: 10px; }
.thist summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.otbl tr.cancel td { color: var(--faint); text-decoration: line-through; }
.kinds { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
/* 건물 정보(스펙) */
.spec { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f8f9fb; border: 1px solid #e6e9ee; }
.spec .pb-head { margin-top: 0; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 14px; }
.sp span { display: block; font-size: 11.5px; color: var(--muted); }
.sp b { display: block; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.sp em { display: block; font-style: normal; font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
@media (max-width: 640px) { .sp-grid { grid-template-columns: 1fr 1fr; } }
/* 실거래 표: 넓은 화면은 칸 폭을 지켜 가로로 스크롤(글자가 세로로 쪼개지지 않게), 휴대폰은 거래마다 카드 */
table.trades { min-width: 940px; }
table.trades th { white-space: nowrap; }
table.trades td { vertical-align: top; word-break: keep-all; overflow-wrap: break-word; }
table.trades td:nth-child(1), table.trades td:nth-child(2), table.trades td:nth-child(5) { white-space: nowrap; }
table.trades td:nth-child(3) { min-width: 120px; }
table.trades td:nth-child(4) { min-width: 110px; }
table.trades td:nth-child(6) { min-width: 200px; }
@media (max-width: 760px) {
  table.trades { min-width: 0; }
  table.trades thead { display: none; }
  table.trades, table.trades tbody { display: block; }
  table.trades tr { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  table.trades td { display: block; border: 0; padding: 0; min-width: 0 !important; text-align: left !important; font-size: 14px; }
  table.trades td.full { flex-basis: 100%; }
  table.trades td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--faint); }
  table.trades .acts-col { flex-direction: row; flex-wrap: wrap; }
}

/* 체크(집합건물 빼기 등)는 한 줄로, 실거래 카드의 지도 바로가기는 화면 안에서 줄바꿈 */
.chk { white-space: nowrap; }
.range .chk { justify-self: start; }
.range:has(.chk) { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.range:has(.chk) span { flex-basis: 100%; margin-bottom: 0; }
.maps { flex-wrap: wrap; white-space: normal; max-width: 100%; }
@media (max-width: 760px) {
  table.trades td.full { max-width: 100%; overflow-wrap: anywhere; }
  table.trades .maps { display: flex; gap: 12px; margin-top: 8px; }
  .table-scroll:has(table.trades) { overflow-x: visible; }
}
/* 건물 찾기: 지도로 결과 전체 보기 */
#bmap { width: 100%; height: 460px; border-radius: 10px; border: 1px solid var(--line); }
.bpin { min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; background: var(--brand); color: #fff; font: 700 12px/24px Arial, sans-serif;
  text-align: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; }
.bpin.on { background: var(--ok); }
.bpin.hot { background: #d9480f; transform: scale(1.25); }
.bmap-info { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.rnum { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 5px; margin-right: 6px; border-radius: 10px;
  background: #eef2f7; color: var(--brand); font-size: 11.5px; font-weight: 700; }
#rows tr.hot { background: #fff4e6; }
@media (max-width: 640px) { #bmap { height: 340px; } }
/* 대장 다운로드 · 공유 */
.act-dl, .act-share { color: #2b6a4f; border-color: #cfe3d8; background: #f2f8f4; cursor: pointer; }
.act-dl:hover, .act-share:hover { background: #e4f1e9; }
/* 실거래: 설명 접기, 계약 경과일, 정렬, 금액 옆 체크 */
details.fold { margin: 0 0 12px; }
details.fold summary { cursor: pointer; font-size: 13px; color: var(--muted); width: max-content; }
details.fold[open] summary { margin-bottom: 6px; }
.days { font-size: 12px; color: var(--muted); white-space: nowrap; }
.days.fresh { color: #c2410c; font-weight: 600; }
.sort { margin-left: auto; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.sort select { height: 32px; font-size: 13px; width: auto; }
.bf-grid.bf-ranges { grid-template-columns: 1fr 2fr; }
.range.range-amt { display: grid; grid-template-columns: minmax(230px, 300px) 1fr; align-items: center; column-gap: 10px; }
.range-amt .amt { display: flex; align-items: center; gap: 6px; }
.range-amt .amt input { flex: 1; min-width: 0; }
.range-amt .amt b { display: inline; color: var(--muted); font-weight: 600; }
.range-amt .chks { display: flex; gap: 6px; flex-wrap: nowrap; }
table.trades select.tag { width: 84px; }
table.trades .memo-in { width: 110px; }
table.trades td:last-child { min-width: 112px; }
table.trades td .maps { margin-top: 4px; }
@media (max-width: 760px) {
  .bf-grid.bf-ranges { grid-template-columns: 1fr; }
  .range.range-amt { grid-template-columns: 1fr; row-gap: 8px; }
  .range-amt .chks .chk { font-size: 13px; padding: 5px 10px 5px 8px; }
  .sort { margin-left: 0; }
}
.range .chk input { height: auto; width: auto; }
/* 실거래 표는 열이 많아 넓은 화면에서는 페이지를 넓게 써서 가로 스크롤 없이 */
@media (min-width: 1200px) { body:has(table.trades) .wrap { max-width: 1340px; } }
table.trades .acts-col .act { white-space: nowrap; }
@media (min-width: 761px) {
  table.trades .acts-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; min-width: 190px; }
  table.trades .acts-col > :first-child { grid-column: 1 / -1; }
  table.trades .acts-col .act { justify-content: center; padding-left: 6px; padding-right: 6px; }
}
.chk.past-chk { white-space: normal; max-width: 100%; border-radius: 12px; }
.chk.past-chk b { white-space: nowrap; }
/* 휴대폰: 상단 메뉴를 옆으로 밀지 않고 한눈에(줄바꿈해서 전부 보이게) */
@media (max-width: 760px) {
  header.top .wrap { height: auto; flex-wrap: wrap; gap: 4px 8px; padding-top: 8px; padding-bottom: 6px; }
  .nav { overflow: visible; flex-wrap: wrap; width: 100%; gap: 4px; }
  .nav a, .nav button { padding: 6px 9px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
  .nav a.on { box-shadow: none; border-color: var(--brand); background: var(--brand); color: #fff; border-radius: 999px; }
  .nav form { margin-left: auto; }
  .nav form button { border-color: transparent; color: var(--muted); }
}
@media (min-width: 761px) and (max-width: 1199px) {
  table.trades .memo-in { width: 88px; }
  table.trades select.tag { width: 76px; }
  table.trades td:nth-child(6) { min-width: 180px; }
  table.trades .acts-col { min-width: 170px; }
  body:has(table.trades) .wrap { max-width: none; }
  table.trades td:nth-child(3) { min-width: 100px; }
  table.trades td:nth-child(4) { min-width: 90px; }
  table.trades td, table.trades th { padding-left: 7px; padding-right: 7px; }
}
/* 조회 완료 표시(버튼 옆 빨간 글씨) */
.done-msg { font-size: 13px; font-weight: 700; align-self: center; }
.done-msg.busy { color: var(--muted); font-weight: 600; }
.done-msg.ok { color: #d9480f; animation: donePulse .9s ease; }
@keyframes donePulse { 0% { opacity: 0; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }
@media (max-width: 760px) { .done-msg { flex-basis: 100%; text-align: center; order: 3; } }
/* 법인 대표자: 미등록/등록됨 탭, 엑셀 받기·올리기 */
.tabs-row { display: flex; gap: 6px; margin: 4px 0 14px; }
.tab-btn { text-decoration: none; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; background: #fff; }
.tab-btn b { margin-left: 4px; }
.tab-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.corp-io { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.corp-io > div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); }
.corp-io p.msg { margin: 6px 0 10px; }
@media (max-width: 760px) { .corp-io { grid-template-columns: 1fr; } }
#corps td:last-child { white-space: nowrap; }
/* 지번·소유자 조회: 지역별 보관 대장 */
details.regions { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; }
details.regions > summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.rg-list { margin-top: 10px; display: grid; gap: 2px; }
details.rg > summary, .rg-row { display: grid; grid-template-columns: 92px 1fr 52px 80px; align-items: center; gap: 10px; padding: 5px 2px; font-size: 13.5px; }
details.rg > summary { cursor: pointer; list-style: none; border-radius: 6px; }
details.rg > summary::-webkit-details-marker { display: none; }
details.rg > summary:hover { background: var(--hover); }
details.rg > summary .rg-name::before { content: '▸ '; color: var(--muted); }
details.rg[open] > summary .rg-name::before { content: '▾ '; }
.rg-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-bar { height: 10px; background: #eef0f3; border-radius: 5px; overflow: hidden; }
.rg-bar i { display: block; height: 100%; background: var(--brand); border-radius: 5px; }
.rg-bar.sub i { background: #7f98b3; }
.rg-pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.rg-n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.rg-sub { margin: 2px 0 8px 14px; padding-left: 10px; border-left: 2px solid var(--line); }
.rg-sub .rg-row { font-size: 12.5px; padding: 3px 2px; }
@media (max-width: 640px) {
  details.rg > summary, .rg-row { grid-template-columns: 74px 1fr 46px 70px; gap: 6px; font-size: 12.5px; }
}
details.rg > summary::after { content: none !important; display: none; }
details.regions > summary { color: var(--ink); }
/* 상단 이용 상태 띠 */
.plan-bar { margin: -12px 0 14px; font-size: 12.5px; color: var(--ink-2); background: #eef3f9; border: 1px solid #d6e2ee; border-radius: 999px; padding: 5px 14px;
  width: fit-content; max-width: 100%; }
@media (max-width: 760px) { .plan-bar { margin-top: -4px; border-radius: 10px; } }
/* 내 정보: 요금제 카드 */
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.plan-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.plan-card.pick { border-color: var(--brand); box-shadow: 0 10px 30px rgba(28,42,57,.07); }
.plan-card.on { background: #f3f7fb; }
.pc-head { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.pc-price { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.plan-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.9; flex: 1; }
.plan-card li.no { color: var(--faint); text-decoration: line-through; }
@media (max-width: 640px) { .plan-cards { grid-template-columns: 1fr; } }
/* 작업 결과: 실패 이유 묶음 */
.fail-sum { margin-top: 10px; display: grid; gap: 8px; }
.fs-g { background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; color: var(--ink); }
.fs-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fs-list span { background: #fff; border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; font-size: 12px; color: var(--ink-2); }
.fs-list .fs-pick { background: #fff; border: 1px solid var(--brand-2); color: var(--brand-2); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600; cursor: pointer; height: auto; }
.fs-list .fs-pick:hover { background: #eef3f9; }
.rg-n { white-space: nowrap; }
