/* =========================================================================
   NAI Korea 상업용 부동산 통합 지도 — style.css
   ========================================================================= */

:root {
  --navy: #0b2a4a;
  --navy-2: #123a63;
  --navy-3: #1b4b7d;
  --bg: #eef2f7;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --line: #dfe6ef;
  --line-2: #eef2f7;
  --text: #16202e;
  --text-2: #3c4b5f;
  --muted: #6b7c91;
  --accent: #0b6bcb;
  --danger: #d93636;
  --shadow-sm: 0 1px 2px rgba(15, 35, 60, .08);
  --shadow-md: 0 6px 20px rgba(15, 35, 60, .12);
  --shadow-lg: 0 18px 48px rgba(9, 27, 48, .22);
  --radius: 10px;
  --header-h: 58px;
  --sidebar-w: 356px;
  --detail-w: 430px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font-family: inherit; }
.hidden { display: none !important; }
.only-mobile { display: none !important; }

/* ───────────────────────────── 헤더 ───────────────────────────── */
.app-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  position: relative;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 46px; height: 34px;
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .02em;
}
.brand-mark span { font-size: 7.5px; font-weight: 800; letter-spacing: .18em; margin-top: 2px; color: var(--navy-3); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand-text span { font-size: 11px; color: #b9cbe0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: #eaf2fb; }
.btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #e8f0f9; }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-ghost[aria-pressed="true"] { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .38); }
.icon-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, .17); }

.seg { display: inline-flex; background: rgba(0, 0, 0, .18); border-radius: 8px; padding: 2px; }
.seg-btn {
  border: 0; background: transparent; color: #cfdcea;
  font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 6px; cursor: pointer;
}
.seg-btn.is-active { background: #fff; color: var(--navy); }
.seg-btn:disabled { opacity: .45; cursor: not-allowed; }

.sync-chip {
  font-size: 10.5px; font-weight: 700; color: #d7e6f7;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: 3px 7px; border-radius: 20px; white-space: nowrap;
}
.sync-chip.err { color: #ffd3d3; border-color: rgba(255, 160, 160, .5); }

/* 접속 권한 배지 — 관리자 / 읽기 전용 */
.role-chip {
  font-size: 10.5px; font-weight: 700; color: #d7e6f7;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: 3px 8px; border-radius: 20px; white-space: nowrap;
}
.role-chip.is-readonly { color: #3d2c00; background: #fcd34d; border-color: #f59e0b; }

.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 60;
}
.menu button {
  display: block; width: 100%; text-align: left;
  border: 0; background: transparent; color: var(--text);
  font-size: 12.5px; padding: 8px 10px; border-radius: 6px; cursor: pointer;
}
.menu button:hover { background: var(--panel-2); }
.menu button.danger { color: var(--danger); }
.menu-sep { height: 1px; background: var(--line-2); margin: 5px 4px; }

/* ───────────────────────────── 레이아웃 ───────────────────────────── */
.app-body {
  display: flex;
  height: calc(100vh - var(--header-h));
  position: relative;
}

/* ───────────────────────────── 사이드바 ───────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar-head { padding: 12px 12px 8px; border-bottom: 1px solid var(--line-2); }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 11px; color: var(--muted); font-size: 16px; pointer-events: none; }
.search-wrap input {
  width: 100%;
  padding: 9px 32px 9px 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.search-wrap input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(11, 107, 203, .1); }
.search-clear {
  position: absolute; right: 6px;
  border: 0; background: transparent; color: var(--muted);
  font-size: 18px; width: 24px; height: 24px; cursor: pointer; border-radius: 50%;
}
.search-clear:hover { background: var(--line-2); }

.sidebar-scroll { overflow-y: auto; flex: 1; padding-bottom: 24px; }
.sidebar-scroll::-webkit-scrollbar { width: 10px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: #cfd8e3; border-radius: 8px; border: 3px solid #fff; }

.filter-block { padding: 12px 12px 10px; border-bottom: 1px solid var(--line-2); }
.filter-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; font-weight: 700; color: var(--muted);
  letter-spacing: .02em; margin-bottom: 8px;
}
.mini-btn {
  border: 0; background: transparent; color: var(--accent);
  font-size: 11px; font-weight: 600; cursor: pointer; padding: 2px 3px; border-radius: 4px;
}
.mini-btn:hover { background: rgba(11, 107, 203, .08); }
.mini-btn[aria-pressed="true"] { background: rgba(11, 107, 203, .12); }

.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
  transition: background .12s, border-color .12s;
}
.chip:hover { background: var(--panel-2); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip .cnt { margin-left: auto; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.is-on { border-color: currentColor; background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px currentColor; }
.chip.is-off { opacity: .48; background: var(--panel-2); }
.chip.is-off .dot { background: #b9c3cf !important; }

.filter-inline { display: flex; align-items: center; gap: 10px; }
.filter-stack { display: flex; flex-direction: column; gap: 6px; }
.filter-row { display: flex; align-items: center; gap: 10px; }
.filter-row label { font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; width: 62px; flex: none; }
.filter-stack select {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 12.5px;
  background: #fff;
  color: var(--text);
}

.list-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 6px;
  font-size: 12px; font-weight: 700; color: var(--text-2);
  position: sticky; top: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(4px); z-index: 3;
}
.list-head-right { display: flex; gap: 4px; }
.list-head .mini-btn[aria-pressed="true"] { background: #e8f1fc; }

.asset-list { padding: 0 8px; }
.asset-row {
  display: flex; align-items: flex-start; gap: 9px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 9px;
  padding: 8px 8px;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.asset-row:hover { background: var(--panel-2); }
.asset-row.is-selected { background: #e8f1fc; border-color: #bcd7f5; }
.asset-row .bar { width: 3px; align-self: stretch; border-radius: 2px; flex: none; }
.asset-row .row-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.asset-row .row-name {
  font-size: 13px; font-weight: 650; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.asset-row .row-sub {
  font-size: 11.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.asset-row .row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; max-width: 42%; }
.asset-row .row-meta { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pill {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 20px;
  color: #fff; white-space: nowrap;
}
.pill.soft { color: var(--text-2); background: var(--line-2); }
.im-mini { font-size: 10px; }
.list-more { padding: 10px 14px 2px; font-size: 11.5px; color: var(--muted); }
.empty-state { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.7; }

/* ───────────────────────────── 지도 ───────────────────────────── */
.map-area { flex: 1; position: relative; min-width: 0; background: #dfe7f0; overflow: hidden; }
.map-canvas { position: absolute; inset: 0; }
/* 카카오 로드뷰 SDK 가 #roadview 에 inline position:relative 를 주입해 위 inset:0 배치가 풀리고
   높이가 0 이 되는 문제를 막습니다 (2026-11-27). */
#roadview.map-canvas { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; background: #dfe7f0; }
#map { background: #e6ecf3; }
.preview-canvas { background: #dce8f4; cursor: grab; touch-action: none; }
.preview-canvas.is-dragging { cursor: grabbing; }
.preview-canvas svg { display: block; width: 100%; height: 100%; }

.preview-banner {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(11, 42, 74, .92);
  color: #e9f1fa;
  font-size: 11px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(15, 35, 60, .18);
  z-index: 6;
  white-space: nowrap; overflow: hidden;
}
.preview-banner span { overflow: hidden; text-overflow: ellipsis; }
.preview-banner strong { font-size: 11.5px; color: #fff; white-space: nowrap; }
.preview-banner code { background: rgba(255, 255, 255, .15); padding: 1px 4px; border-radius: 4px; }
.preview-banner .mini-btn { color: #fff; text-decoration: underline; white-space: nowrap; }

.map-notice {
  position: absolute; inset: 0; z-index: 8;
  display: flex; align-items: center; justify-content: center;
  background: #e9eef5;
  padding: 24px;
}
.notice-card {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 22px 24px; max-width: 460px; font-size: 13px; line-height: 1.7; color: var(--text-2);
}
.notice-card h3 { margin: 0 0 8px; font-size: 15px; color: var(--text); }
.notice-card code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.notice-card ol { padding-left: 18px; margin: 8px 0; }
.notice-card .btn { margin-top: 12px; }
.notice-card .btn-primary { background: var(--accent); color: #fff; }

.map-tools { position: absolute; left: 12px; bottom: 66px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.map-btn {
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  border-radius: 8px; padding: 7px 10px; font-size: 11.5px; font-weight: 600;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.map-btn:hover { background: var(--panel-2); }

.legend {
  position: absolute; left: 12px; bottom: 16px; z-index: 5;
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 11px; color: var(--text-2);
  box-shadow: var(--shadow-sm);
  max-width: calc(100% - 120px);
}
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-item .dot { width: 9px; height: 9px; border-radius: 50%; }
.legend-item b { font-weight: 700; color: var(--text); }
.legend-sep { width: 1px; background: var(--line); margin: 0 2px; }

.add-mode-bar {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  background: var(--navy); color: #fff;
  padding: 9px 14px; border-radius: 10px; font-size: 12.5px;
  box-shadow: var(--shadow-md); z-index: 7; white-space: nowrap;
}
.add-mode-bar .mini-btn { color: #ffd9d9; }

/* ───────────────────────────── 상세 패널 ───────────────────────────── */
.detail-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: var(--detail-w);
  max-width: 100%;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -14px 0 34px rgba(15, 35, 60, .12);
  z-index: 30;
  display: flex; flex-direction: column;
}
.detail-scroll { overflow-y: auto; flex: 1; }
.detail-scroll::-webkit-scrollbar { width: 10px; }
.detail-scroll::-webkit-scrollbar-thumb { background: #cfd8e3; border-radius: 8px; border: 3px solid #fff; }

.detail-head {
  position: sticky; top: 0; z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px 10px;
}
.detail-top { display: flex; align-items: flex-start; gap: 8px; }
.detail-top .sector-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.detail-title { font-size: 16px; font-weight: 750; line-height: 1.35; margin: 0; flex: 1; letter-spacing: -.01em; }
.detail-close {
  border: 0; background: var(--panel-2); color: var(--muted);
  width: 28px; height: 28px; border-radius: 50%; font-size: 17px; cursor: pointer; flex: none;
}
.detail-close:hover { background: var(--line); }
.detail-sub { margin: 4px 0 0 18px; font-size: 12px; color: var(--muted); }

.badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0 0 0; }
.badge {
  font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 5px;
  background: var(--line-2); color: var(--text-2);
}
.badge.status { color: #fff; }
.badge.type { background: #eef4fb; color: #235c96; }
.badge.warn { background: #fff4e5; color: #9a5b00; }
.badge.edited { background: #ffe9e9; color: #b42323; }
.badge.added { background: #e6f8ef; color: #0b7a50; }

.detail-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.action-btn {
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  border-radius: 7px; padding: 6px 9px; font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.action-btn:hover { background: var(--panel-2); }
.action-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.action-btn.primary:hover { background: #095ab0; }
.action-btn.danger { color: var(--danger); border-color: #f1cccc; }
.action-btn.danger:hover { background: #fdf1f1; }

.im-btn {
  display: flex; align-items: center; gap: 9px;
  margin: 10px 0 0;
  padding: 11px 12px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0b4f9c, #0b6bcb);
  color: #fff;
  text-decoration: none;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(11, 107, 203, .25);
}
.im-btn:hover { filter: brightness(1.06); }
.im-btn .im-btn-label { font-size: 10.5px; font-weight: 600; opacity: .85; display: block; margin-top: 1px; }
.im-btn .im-btn-arrow { margin-left: auto; font-size: 16px; }

/* ── ✨ AI 심층분석(Pickle) · Gemini · Claude 연동 (2026-11-28) ── */
.ai-cta { margin: 10px 0 0; padding: 10px 11px 9px; border: 1px solid #e4dcc6; border-radius: 11px;
  background: linear-gradient(180deg, #fdfcf7, #f7f4ea); }
.ai-cta-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; }
.ai-btn-main { flex: 1 1 176px; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: linear-gradient(135deg, #0b2a4a, #1b4b7d); color: #fff; text-decoration: none;
  font-size: 12.4px; font-weight: 800; letter-spacing: -.01em; padding: 9px 12px; border-radius: 9px;
  box-shadow: 0 3px 10px rgba(11, 42, 74, .22); }
.ai-btn-main:hover { filter: brightness(1.09); }
.ai-btn-main .ai-btn-sub { font-weight: 600; font-size: 10.8px; opacity: .82; }
.ai-btn-main .ai-arrow { font-size: 12px; opacity: .85; }
.ai-btn-alt { border: 1px solid #d9d1bd; background: #fff; color: var(--text-2); border-radius: 9px;
  font-family: inherit; font-size: 10.8px; font-weight: 700; padding: 0 9px; min-height: 34px;
  cursor: pointer; white-space: nowrap; }
.ai-btn-alt:hover { background: #fbf8ee; border-color: #c7bda2; color: var(--navy-2); }
.ai-cta-note { margin: 6px 2px 0; font-size: 10px; line-height: 1.55; color: var(--muted); }

.detail-section { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.detail-section h4 {
  margin: 0 0 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--muted);
  text-transform: uppercase;
}
.kv-grid { display: flex; flex-direction: column; gap: 7px; }
.kv { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.5; }
.kv-label { width: 88px; flex: none; color: var(--muted); font-size: 11.5px; padding-top: 1px; }
.kv-value { flex: 1; color: var(--text); word-break: break-word; }
.kv-value a { color: var(--accent); }
.kv-addr { padding: 0; border: 0; background: none; font: inherit; color: var(--accent); text-align: left; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.kv-addr:hover { text-decoration: underline; }
.detail-note { font-size: 12.5px; line-height: 1.65; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.detail-source { font-size: 11px; color: var(--muted); line-height: 1.6; word-break: break-word; }
.facts { width: 100%; border-collapse: collapse; font-size: 12px; }
.facts th, .facts td { text-align: left; padding: 5px 0; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.facts th { width: 38%; color: var(--muted); font-weight: 500; padding-right: 10px; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.sibling-list { display: flex; flex-direction: column; gap: 4px; }
.sibling-btn {
  display: flex; align-items: center; gap: 7px;
  width: 100%; border: 1px solid var(--line); background: #fff;
  border-radius: 7px; padding: 6px 8px; font-size: 12px; text-align: left; cursor: pointer; color: var(--text);
}
.sibling-btn:hover { background: var(--panel-2); }
.sibling-btn .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.link-list { display: flex; flex-wrap: wrap; gap: 6px; }
.link-list a {
  font-size: 11.5px; color: var(--accent); text-decoration: none;
  border: 1px solid #cfe1f5; background: #f4f9ff; border-radius: 6px; padding: 5px 8px;
}
.link-list a:hover { background: #e6f1fd; }

/* ───────────────────────────── 폼 ───────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 10px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 8px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 107, 203, .1); }
.field textarea { min-height: 72px; resize: vertical; line-height: 1.5; }
.field .hint { font-size: 10.5px; color: var(--muted); }
.field .row-inline { display: flex; gap: 6px; }
.field .row-inline input { flex: 1; }
.form-actions { display: flex; gap: 6px; margin-top: 12px; }
.btn-solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-solid:hover { background: #095ab0; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--text-2); }
.btn-outline:hover { background: var(--panel-2); }
.save-hint { font-size: 10.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.form-error { color: var(--danger); font-size: 11.5px; margin-top: 6px; }

/* ───────────────────────────── 모달 · 토스트 ───────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(9, 22, 38, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: #fff; border-radius: 13px; box-shadow: var(--shadow-lg);
  width: 420px; max-width: 100%; max-height: 88vh; overflow: auto;
  padding: 18px 20px;
}
.modal h3 { margin: 0 0 8px; font-size: 15.5px; }
.modal .modal-body { font-size: 12.8px; line-height: 1.7; color: var(--text-2); }
.modal .modal-body code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 11.5px; }
.modal .modal-body ol { padding-left: 18px; margin: 8px 0; }
.modal .modal-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 16px; }
.modal .btn { padding: 8px 13px; font-size: 12.5px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: rgba(15, 32, 52, .94); color: #fff;
  font-size: 12.5px; padding: 10px 16px; border-radius: 9px;
  box-shadow: var(--shadow-md); z-index: 400; max-width: 90vw;
}
.toast.err { background: rgba(150, 30, 30, .95); }

/* 마커 */
.marker-bubble {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 50% 50% 50% 2px;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10.5px; font-weight: 800;
}
.marker-bubble span { transform: rotate(45deg); }

/* ───────────────────────────── 반응형 ───────────────────────────── */
@media (max-width: 1280px) {
  :root { --sidebar-w: 320px; --detail-w: 400px; }
}
@media (max-width: 1024px) {
  :root { --sidebar-w: 296px; --detail-w: 380px; }
  .brand-text strong { font-size: 13.5px; }
  #btnCluster { display: none; }
}
@media (max-width: 900px) {
  .only-mobile { display: inline-flex !important; }
  .brand-text span { display: none; }
  .app-header { gap: 6px; padding: 0 8px; }
  .brand { flex: 1 1 auto; min-width: 0; gap: 8px; overflow: hidden; }
  .brand-mark { width: 38px; height: 30px; font-size: 12px; flex: none; }
  .brand-mark span { font-size: 6px; letter-spacing: .12em; }
  .brand-text { min-width: 0; overflow: hidden; }
  .brand-text strong { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .header-actions { gap: 5px; flex: none; }
  .header-actions .btn { padding: 5px 8px; font-size: 11px; }
  .header-actions .seg { display: none; }
  #btnAdd { padding: 5px 8px; }
  #btnExportMenu { padding: 5px 7px; }
  #btnHelp { display: none; }
  .sync-chip { display: none; }

  .sidebar {
    position: fixed; top: var(--header-h); bottom: 0; left: 0;
    width: min(86vw, 330px); min-width: 0;
    transform: translateX(-102%);
    transition: transform .22s ease;
    box-shadow: var(--shadow-lg);
    z-index: 45;
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: var(--header-h) 0 0 0; background: rgba(9, 22, 38, .35); z-index: 44; }

  .detail-panel {
    top: auto; left: 0; right: 0; bottom: 0;
    width: auto; max-height: 76vh;
    border-left: 0; border-top: 1px solid var(--line);
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -12px 34px rgba(15, 35, 60, .22);
  }
  .detail-panel::before {
    content: ""; display: block; width: 42px; height: 4px; border-radius: 3px;
    background: #d5dde8; margin: 7px auto 0;
  }
  .detail-panel { z-index: 35; }
  .preview-banner { font-size: 10.5px; gap: 6px; padding: 7px 8px; }
  .preview-banner span { display: none; }
  .legend { left: 8px; bottom: 10px; font-size: 10px; padding: 6px 8px; max-width: calc(100% - 100px); }
  .map-tools { left: auto; right: 8px; top: 46px; bottom: auto; }
  .add-mode-bar { bottom: 12px; max-width: calc(100% - 20px); white-space: normal; }
  .map-tools { top: 38px; }
  .form-grid { grid-template-columns: 1fr; }
  .kv-label { width: 78px; }
  .toast { bottom: 18px; }
}

/* ───────────────────────── 접속코드 게이트 ───────────────────────── */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(120% 120% at 50% 0%, #143a63 0%, #0b2a4a 55%, #071d33 100%);
}
.gate-card {
  width: 100%;
  max-width: 380px;
  padding: 28px 24px 22px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.gate-mark { font-size: 15px; }
.gate-title {
  margin: 14px 0 6px;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.3px;
}
.gate-sub {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
#gateForm { display: flex; flex-direction: column; gap: 10px; }
#gateCode {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  letter-spacing: 1px;
  text-align: center;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
#gateCode:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(11, 107, 203, .12); }
.gate-submit { width: 100%; padding: 12px; font-size: 14.5px; }
.gate-error {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--danger);
}
.gate-note {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: #93a2b5;
}

/* ═════════════════════════ 🤝 SI·화주 풀 탭 ═════════════════════════ */
:root { --tabs-h: 42px; }

.app-tabs {
  height: var(--tabs-h);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 8px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}
.vt-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-size: 12.2px;
  font-weight: 600;
  padding: 5px 8px;
  min-height: 32px;
  line-height: 1.2;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.vt-btn:hover { background: var(--panel-2); }
.vt-btn.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.pool-role { margin-left: auto; }

.app-body { height: calc(100vh - var(--header-h) - var(--tabs-h)); }

.pool-view {
  height: calc(100vh - var(--header-h) - var(--tabs-h));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.pool-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 8px;
}

/* 💼 투자자 Pool 서브탭 — SI / FI / 물류·화주 (2026-11-30) */
.pool-subtabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 9px 16px 0;
  background: var(--bg);
}
.pool-subtab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.pool-subtab:hover { background: var(--panel-2); color: var(--text); }
.pool-subtab.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.pool-subtab[disabled] { opacity: .5; cursor: default; }
.pool-subhint {
  margin-left: auto;
  font-size: 10.8px;
  color: var(--muted);
  letter-spacing: .01em;
}
.pool-title h2 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.pool-title p { margin: 3px 0 0; font-size: 11.8px; color: var(--muted); }
.pool-tools { margin-left: auto; display: flex; gap: 7px; }

.pool-filters {
  padding: 4px 16px 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pf-chips { align-items: center; }
.pf-chips .seg-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
  margin: 0 2px 0 4px;
}
.pf-search { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-search .search-wrap { flex: 1 1 320px; }
.pf-search .search-wrap input { padding: 8px 30px 8px 32px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px; width: 100%; }
.pf-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.pf-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pf-right { margin-left: auto; display: flex; gap: 6px; }

.pool-list {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  padding: 10px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pool-empty { padding: 40px 10px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.8; }

.pool-row {
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
}
.pool-row.is-sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f7fbff; }
.pr-check { padding-top: 2px; }
.pr-check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.pr-main { flex: 1; min-width: 0; }
.pr-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pr-kind {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}
.pr-kind.k-office { background: #e8f1fc; color: #0b5aa8; }
.pr-kind.k-bf { background: #fdeeff; color: #7c3aed; }
.pr-kind.k-rf { background: #e7f6f3; color: #0e7a68; }
.pr-kind.k-ship { background: #fff1e6; color: #b45309; }
.pr-region {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  background: #eef3f9;
  border: 1px solid #dbe5f0;
  border-radius: 5px;
  padding: 1px 6px;
}
.pr-role { font-size: 11px; color: var(--text-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.pr-year { font-size: 11px; color: var(--muted); }
.pr-amount { font-size: 11px; font-weight: 700; color: #b3262c; font-variant-numeric: tabular-nums; }
.pr-name { font-size: 14px; font-weight: 700; margin: 4px 0 2px; letter-spacing: -.01em; }
.pr-industry { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.pr-case { font-size: 12.3px; color: var(--text-2); line-height: 1.55; }
.pr-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.pr-contact { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 11.8px; align-items: center; }
.pc-name { color: var(--text); font-weight: 600; }
.pc-title { color: var(--muted); font-weight: 400; }
.pc-mail { color: var(--accent); text-decoration: none; }
.pc-mail:hover { text-decoration: underline; }
.pc-tel { color: var(--text-2); text-decoration: none; }
.pc-none { color: #b0bccb; }
.pr-actions { display: flex; flex-direction: column; gap: 4px; }
.mini-btn.danger { color: var(--danger); }

/* 메일 발송 바 */
.pool-compose {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 6px 16px 8px;
  box-shadow: 0 -4px 16px rgba(15, 35, 60, .06);
}
.pc-head { display: flex; align-items: center; gap: 10px; }
.pc-head strong { font-size: 12.8px; }
.compose-hint { font-size: 11.8px; color: var(--muted); }
.compose-hint b { color: var(--text); }
.compose-hint .warn { color: var(--danger); }
.pc-head .mini-btn { margin-left: auto; }
.pc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; margin-top: 6px; }
.pc-field { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); }
.pc-field input, .pc-field textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 12.3px;
  font-family: inherit;
  color: var(--text);
  width: 100%;
  resize: vertical;
}
.pc-msg { grid-column: 1 / -1; }
.pc-actions { display: flex; gap: 7px; margin-top: 6px; flex-wrap: wrap; }
.pc-actions .btn { font-size: 12.3px; padding: 8px 12px; }
.pc-actions .btn:disabled { opacity: .5; cursor: not-allowed; }

/* 관리자 편집 모달 */
#poolModal .modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(9, 22, 38, .45); }
.modal-card {
  position: fixed;
  z-index: 101;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 94vw);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 13px;
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
}
.modal-head { display: flex; align-items: center; margin-bottom: 10px; }
.modal-head h3 { margin: 0; font-size: 15px; }
.modal-head .icon-btn { margin-left: auto; }
.mf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.mf { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); }
.mf input, .mf select, .mf textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 12.3px;
  font-family: inherit;
  color: var(--text);
  width: 100%;
}
.mf textarea { resize: vertical; }
.mf-wide { grid-column: 1 / -1; }
.mf-sec {
  grid-column: 1 / -1;
  margin: 14px 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 11.6px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: -.01em;
}
.mf-sec:first-of-type { margin-top: 4px; }
.mf-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 11.9px;
  line-height: 1.55;
  margin: 0 0 8px;
}
.mf-err span { color: #7f1d1d; }
.mf-err .mini-btn {
  margin-top: 6px;
  color: #991b1b;
  background: #fff;
  border: 1px solid #fecaca;
}
.dc-sec h4 .mini-btn.dc-edit {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: #eaf2fd;
  border: 1px solid #cfe0f8;
}
.modal-foot { display: flex; justify-content: flex-end; gap: 7px; margin-top: 14px; }

@media (max-width: 820px) {
  .pool-head { flex-wrap: wrap; padding: 10px 12px 6px; }
  .pool-subtabs { padding: 8px 12px 0; }
  .pool-subtab { padding: 5px 11px; font-size: 12px; }
  .pool-subhint { display: none; }
  .pool-filters { padding: 4px 12px 8px; }
  .pool-list { padding: 8px 12px 12px; }
  .pool-compose { padding: 8px 12px 10px; }
  .pc-fields { grid-template-columns: 1fr; }
  .mf-grid { grid-template-columns: 1fr; }
  .pf-right { margin-left: 0; }
  .sidebar { top: calc(var(--header-h) + var(--tabs-h)); }
  .vt-btn { padding: 5px 8px; font-size: 11.7px; gap: 2px; }
}

/* 흰 배경 패널 안에서는 헤더용 버튼 색을 그대로 쓰지 않습니다. */
.pool-view .btn-primary,
#poolModal .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.pool-view .btn-primary:hover { background: #095ab0; }
.pool-view .btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--text-2);
}
.pool-view .btn-ghost:hover { background: var(--panel-2); }
.pc-actions .btn[disabled] { opacity: .45; }

/* ── 플랫폼 명칭(딜브릿지 (DealBridge) · 풀네임 Open AI Deal Bridge, 2026-11-29 개편) ── */
.brand-text .brand-pseudo,
.gate-title .brand-pseudo {
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  color: #9fb6cd;
  margin-left: 3px;
  letter-spacing: 0;
}
.gate-title .brand-pseudo { font-size: 13px; color: #8ea3ba; }
/* 접속 게이트 부제 — 풀네임(Open AI Deal Bridge) 보조 표기 */
.gate-fullname {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #5b7ea6;
  margin-bottom: 3px;
}
/* 좁은 화면에서는 로고의 영문 병기((DealBridge))를 감춰 이름이 잘리지 않게 */
@media (max-width: 520px) {
  .brand-text .brand-pseudo { display: none; }
}
.pool-title .pool-meta { margin-top: 2px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── 🏦 FI 풀: 펀드 메타데이터 ── */
.pr-kind.k-lp { background: #eef0ff; color: #4338ca; }
.pr-strat {
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 5px;
  padding: 1px 6px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.s-loan { background: #e8f1fc; color: #0b5aa8; border-color: #d3e4f8; }
.s-core { background: #eff6ef; color: #2f6b3a; border-color: #d8e8d9; }
.s-corep { background: #e9f8ee; color: #1d7a45; border-color: #cbe9d6; }
.s-va { background: #fff6e5; color: #9a6200; border-color: #f6e3bf; }
.s-opp { background: #fdeeff; color: #7c3aed; border-color: #eed4fb; }
.s-dev { background: #fdecec; color: #b3262c; border-color: #f6d6d6; }
.s-na { background: var(--panel-2); color: var(--muted); border-color: var(--line); }
.pr-funds { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 4px; }
.pr-fund { font-size: 11.8px; color: var(--text-2); }
.pr-fund .pr-lp { color: var(--muted); font-size: 11px; }
.pr-fund .pr-size { color: #b3262c; font-weight: 700; font-variant-numeric: tabular-nums; }
.pr-funds .more { color: var(--muted); }
.pr-fundkv { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.fk {
  font-size: 11.3px;
  color: var(--text-2);
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  max-width: 100%;
}
.fk b { font-weight: 700; color: var(--muted); margin-right: 4px; font-size: 10.5px; }
.fk-irr { color: #b3262c; background: #fff6f6; border-color: #f3dcdc; }
.fk-irr b { color: #c05252; }
.fk-dry { color: #0b5aa8; background: #f2f8ff; border-color: #dbe8f7; }
.fk-dry b { color: #5b80a8; }

/* ── 목록 상세 모달 (🔎) ── */
.dc-card { width: min(760px, 94vw); }
.dc-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.dc-sec { border-top: 1px solid var(--line); padding: 9px 0 3px; }
.dc-sec h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.dc-contact { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.3px; align-items: center; }
.dc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.dc-fund {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: #fcfdff;
}
.dc-fund-name { font-size: 12.6px; font-weight: 700; margin-bottom: 4px; }
.dc-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: 11.8px; color: var(--text-2); }
.dc-kv b { color: var(--muted); font-weight: 700; margin-right: 5px; font-size: 11px; }
.dc-kv span { line-height: 1.55; }
.dc-text { font-size: 12.2px; color: var(--text-2); line-height: 1.62; word-break: break-word; }
.dc-none { font-size: 12px; color: var(--muted); }

/* 📊 5개년 재무현황 — 목록 카드 배지 + 상세 표 */
.pr-fin {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  background: #e8f6ee;
  color: #0b6b47;
  border: 1px solid #cfe9dc;
}
.dc-fin h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; }
.dc-fin-note { font-size: 10.8px; font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.fin-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fin-table {
  width: 100%;
  min-width: 400px;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.fin-table th, .fin-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fin-table thead th {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
  background: #f6f9fc;
  border-bottom: 1px solid #dbe5f0;
}
.fin-table thead th:first-child { text-align: left; border-radius: 6px 0 0 0; }
.fin-table tbody th {
  text-align: left;
  font-size: 11.8px;
  font-weight: 700;
  color: var(--text-2);
  background: #fcfdff;
}
.fin-table td { text-align: right; color: var(--text); font-weight: 600; }
.fin-table .is-latest { background: #eef6ff; color: #0b5aa8; }
.fin-table td.neg { color: var(--danger); }
.fin-table .fin-na { color: #c3ccd8; font-weight: 400; }
.dc-fin-src { margin-top: 5px; font-size: 10.8px; color: var(--muted); }
.mf-hint { margin: 0 0 10px; font-size: 11.3px; color: var(--muted); line-height: 1.6; }
.mf-hint code { background: var(--panel-2); padding: 1px 4px; border-radius: 4px; font-size: 10.8px; }
@media (max-width: 820px) {
  .dc-kv { grid-template-columns: 1fr; }
  .gate-title .brand-pseudo { display: block; font-size: 11px; margin: 3px 0 0; }
}

/* ═════════════════════════ 📊 밸류에이션·민감도 탭 ═════════════════════════ */
.action-btn.sim {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 700;
}
.action-btn.sim:hover { background: var(--navy-2); }

.val-view {
  height: calc(100vh - var(--header-h) - var(--tabs-h));
  background: var(--bg);
  overflow: auto;
}
.val-shell { max-width: 1560px; margin: 0 auto; padding: 14px 16px 40px; }

.val-top {
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.val-title h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.val-title p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.val-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.vp-btn {
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  font-size: 12.2px; font-weight: 650; padding: 7px 12px; border-radius: 999px;
  cursor: pointer; white-space: nowrap;
}
.vp-btn:hover { background: var(--panel-2); }
.vp-btn.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.val-main { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 14px; align-items: start; }

.val-inputs {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 12px 14px; box-shadow: var(--shadow-sm);
  position: sticky; top: 8px; max-height: calc(100vh - var(--header-h) - var(--tabs-h) - 90px);
  overflow: auto;
}
.vg { padding: 8px 0 4px; border-bottom: 1px dashed var(--line-2); }
.vg:last-child { border-bottom: 0; }
.vg h4 {
  margin: 2px 0 8px; font-size: 11px; letter-spacing: .02em;
  color: var(--navy-3); text-transform: none;
}
.vg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vf { display: flex; flex-direction: column; gap: 3px; }
.vf.wide { grid-column: span 2; }
.vf label { font-size: 10.6px; color: var(--muted); font-weight: 600; }
.vf input, .vf select {
  width: 100%; border: 1px solid var(--line); border-radius: 7px;
  padding: 6px 7px; font-size: 12.4px; font-family: inherit;
  background: #fff; color: var(--text); text-align: right;
}
.vf select { text-align: left; }
.vf input:focus, .vf select:focus { outline: 2px solid rgba(11,107,203,.18); border-color: var(--accent); }

.val-out { min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.val-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 12px; box-shadow: var(--shadow-sm);
}
.val-badge {
  font-size: 12px; font-weight: 700; color: var(--navy);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}
.val-badge.modified { color: #8a5b00; background: #fff7e6; border-color: #f2dfb0; }
.val-save { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.val-save input {
  border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px;
  font-size: 12px; font-family: inherit; width: 230px;
}
.val-save select {
  border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px;
  font-size: 12px; font-family: inherit; max-width: 220px; background: #fff;
}
.btn-s {
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  border-radius: 7px; padding: 6px 11px; font-size: 12px; font-weight: 650; cursor: pointer;
}
.btn-s:hover { background: #095ab0; }
.btn-s.ghost { background: #fff; color: var(--text-2); border-color: var(--line); }
.btn-s.ghost:hover { background: var(--panel-2); }
.sv-empty { font-size: 11.5px; color: var(--muted); }
.ro-note { font-size: 11.5px; color: var(--muted); }

.val-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.vk {
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.vk-l { font-size: 10.6px; color: var(--muted); font-weight: 650; }
.vk-v { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.vk-s { font-size: 10.5px; color: var(--muted); }
.vk.good { border-color: #a9dcc4; background: linear-gradient(180deg,#f4fcf8,#fff); }
.vk.good .vk-v { color: #0b7a50; }
.vk.bad .vk-v { color: #b3262c; }

.val-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px 12px; box-shadow: var(--shadow-sm);
}
.val-block h3 {
  margin: 2px 0 8px; font-size: 13px; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 8px;
}
.val-block h3 span { font-size: 10.6px; color: var(--muted); font-weight: 600; }
.val-block-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.val-block-head h3 { margin: 0; }
.seg-mini { display: inline-flex; gap: 3px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.seg-mini button {
  border: 0; background: transparent; color: var(--text-2);
  font-size: 11.2px; font-weight: 650; padding: 4px 8px; border-radius: 6px; cursor: pointer;
}
.seg-mini button.on { background: var(--navy); color: #fff; }

.val-table-wrap { overflow: auto; max-height: 340px; }
table.vt { width: 100%; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; }
table.vt th, table.vt td { padding: 5px 7px; text-align: right; white-space: nowrap; }
table.vt th { position: sticky; top: 0; background: var(--panel-2); color: var(--text-2); font-size: 10.6px; z-index: 1; border-bottom: 1px solid var(--line); }
table.vt th:first-child, table.vt td:first-child { text-align: left; }
table.vt tbody tr:nth-child(even) { background: #fcfdff; }
table.vt tbody tr.last { background: #f3f7fc; font-weight: 700; }
table.vt td.b { font-weight: 700; color: var(--navy); }
table.vt td.neg { color: var(--danger); }
table.vt tfoot td { background: var(--panel-2); font-weight: 700; color: var(--text-2); border-top: 1px solid var(--line); }

table.mt { border-collapse: collapse; font-size: 11.6px; font-variant-numeric: tabular-nums; width: 100%; }
table.mt th, table.mt td { border: 1px solid var(--line); padding: 6px 8px; text-align: center; }
table.mt thead th { background: var(--panel-2); font-size: 10.8px; color: var(--text-2); font-weight: 700; }
table.mt .mt-corner { text-align: left; font-size: 10.4px; color: var(--muted); }
table.mt .mt-row { text-align: right; background: var(--panel-2); font-weight: 700; font-size: 11px; }
table.mt th.is-base { background: #e6eef8; color: var(--navy); }
table.mt td.is-base { outline: 2px solid var(--navy); outline-offset: -2px; font-weight: 800; background: #f4f8ff; }
table.mt td.good { background: #eaf7f0; color: #0b7a50; font-weight: 700; }
table.mt td.good-2 { background: #cdeedd; color: #075d3d; font-weight: 800; }
.mt-hint { margin: 7px 0 0; font-size: 10.8px; color: var(--muted); }
table.mt td.warn { background: #fff7e6; color: #8a5b00; font-weight: 700; }

/* ── 공동주택 개발형(RLV) ─────────────────────────────────────────── */
.dev-toggle { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 8px; }
.dev-toggle button {
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  font-size: 11.4px; font-weight: 650; padding: 5px 9px; border-radius: 7px; cursor: pointer;
}
.dev-toggle button:hover { background: var(--panel-2); }
.dev-toggle button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.dev-f .dev-range { display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 7px; align-items: center; }
.dev-f input[type=range] { width: 100%; accent-color: var(--navy); padding: 0; margin: 0; }
.dev-note { font-size: 10.4px; color: var(--muted); line-height: 1.45; margin: 5px 0 0; }

table.dev-t { width: 100%; border-collapse: collapse; font-size: 11.9px; font-variant-numeric: tabular-nums; }
table.dev-t th, table.dev-t td { padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
table.dev-t th { text-align: left; font-weight: 650; color: var(--text-2); white-space: nowrap; }
table.dev-t td.num { text-align: right; white-space: nowrap; font-weight: 700; color: var(--navy); width: 130px; }
table.dev-t td.memo { font-size: 10.8px; color: var(--muted); text-align: left; }
table.dev-t tr.sum th, table.dev-t tr.sum td { border-top: 1px solid var(--line); border-bottom: 2px solid var(--line); font-weight: 800; background: #f8fbff; }
table.dev-t td.pos { color: #0b7a50; }
table.dev-t td.neg { color: var(--danger); }
table.dev-t.sm th, table.dev-t.sm td { padding: 3px 6px; font-size: 11px; border-bottom: 1px dashed var(--line-2); }
table.dev-t.sm td { text-align: left; color: var(--text-2); }

.dev-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dev-cmp-card { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px 11px; background: #fcfdff; }
.dev-cmp-card.is-on { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(11,107,203,.12); }
.dev-cmp-card .dcc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.dev-cmp-card h5 { margin: 0; font-size: 12.4px; }
.dcc-tag { margin-left: auto; font-size: 10.2px; font-weight: 700; color: #8a5b00; background: #fff4e0; border: 1px solid #f2dfb0; border-radius: 999px; padding: 1px 7px; }
.dcc-tag.ok { color: #0b7a50; background: #e6f4ec; border-color: #b7e0c8; }
.dev-cmp-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: 11.6px; }
.dev-cmp-card dt { color: var(--muted); }
.dev-cmp-card dd { margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.dev-cmp-card dd.b { color: var(--navy); font-weight: 800; }
.dev-cmp-card dd.pos { color: #0b7a50; }
.dev-cmp-card dd.neg { color: var(--danger); }
.dev-ref { border-left: 3px solid #f0b429; padding: 2px 0 2px 10px; margin-top: 10px; }
.dev-ref strong { display: block; font-size: 11px; margin-bottom: 3px; }

.vs-src, .vs-memo, .vs-verify {
  border-left: 3px solid var(--line); padding: 2px 0 2px 10px; margin-bottom: 10px;
}
.vs-src { border-color: var(--accent); }
.vs-memo { border-color: #f0b429; }
.vs-verify { border-color: #d93636; }
.vs-src strong, .vs-memo strong, .vs-verify strong { display: block; font-size: 11px; margin-bottom: 3px; }
.vs-src p, .vs-memo p, .vs-verify p { margin: 0; font-size: 11.8px; line-height: 1.55; color: var(--text-2); }
.vs-verify p { color: #8a1f1f; }
.vs-list { margin: 6px 0 0; padding: 0; list-style: none; }
.vs-list li { font-size: 11.5px; line-height: 1.55; color: var(--text-2); padding: 3px 0 3px 0; display: flex; gap: 6px; }
.vs-badge {
  flex: none; font-size: 9.6px; font-weight: 800; border-radius: 4px;
  padding: 1px 5px; height: 16px; line-height: 14px; margin-top: 2px;
}
.vs-list li.doc .vs-badge { background: #e6f4ec; color: #0b7a50; border: 1px solid #b7e0c8; }
.vs-list li.assume .vs-badge { background: #fff4e0; color: #8a5b00; border: 1px solid #f2dfb0; }
.vs-foot { margin: 10px 0 0; font-size: 10.8px; color: var(--muted); line-height: 1.55; }
.val-note-empty { font-size: 11.8px; color: var(--muted); }

@media (max-width: 1180px) {
  .val-main { grid-template-columns: 1fr; }
  .val-inputs { position: static; max-height: none; }
  .val-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .val-shell { padding: 10px 10px 40px; }
  .val-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-cmp { grid-template-columns: 1fr; }
  .val-save { margin-left: 0; width: 100%; }
  .val-save input { width: 100%; }
  .vp-btn { font-size: 11.4px; padding: 6px 10px; }
  .vg-grid { grid-template-columns: 1fr 1fr; }
}

/* ═════════════════ 3단 권한 게이트 (내부 접속 / 외부 방문자) ═════════════════ */
.gate-card { transition: max-width .16s ease; }
.gate-card.wide { max-width: 468px; text-align: left; }
.gate-card.wide .gate-mark, .gate-card.wide .gate-title, .gate-card.wide .gate-sub { text-align: center; display: block; }
.gate-tabs { display: flex; gap: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 14px; }
.gate-tab { flex: 1; border: 0; background: transparent; color: var(--text-2); font-family: inherit; font-size: 12.4px; font-weight: 700; padding: 8px 6px; border-radius: 8px; cursor: pointer; }
.gate-tab:hover { color: var(--navy); }
.gate-tab.is-active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.gate-panel { text-align: left; }
.gate-panel #gateForm { display: flex; flex-direction: column; gap: 10px; }
.gate-hint { margin: 10px 0 0; font-size: 11.3px; line-height: 1.6; color: var(--muted); }
.gate-hint b { color: var(--navy); font-weight: 700; }
.gate-stabs { display: flex; border-bottom: 1px solid var(--line); margin: 2px 0 12px; }
.gate-stab { flex: 1; border: 0; background: none; padding: 8px 4px 9px; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.gate-stab.is-active { color: var(--navy); border-bottom-color: var(--accent); }
.ext-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.ext-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ext-field.wide { grid-column: span 2; }
.ext-field span { font-size: 10.8px; font-weight: 700; color: var(--muted); }
.ext-field input, .ext-field select {
  width: 100%; padding: 9px 10px; font-size: 13px; font-family: inherit; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px;
}
.ext-field input:focus, .ext-field select:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 107, 203, .12); }
.ext-guide { background: #f4f8ff; border: 1px solid #d6e4f7; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.ext-guide b { font-size: 11.8px; color: var(--navy); }
.ext-guide p { margin: 4px 0 0; font-size: 11.6px; line-height: 1.6; color: var(--text-2); }
.ext-step { display: block; font-size: 11.8px; color: var(--navy); margin-bottom: 8px; }
.ext-check { display: flex; align-items: center; gap: 7px; font-size: 11.6px; color: var(--text-2); margin: 2px 0 10px; }
.role-chip.is-internal { color: #0b4a7a; background: #dbeafe; border-color: #93c5fd; }
.role-chip.is-external { color: #7a4a00; background: #fdeac9; border-color: #f0b429; }
.pr-contact.pr-masked { color: var(--muted); font-size: 11.6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pr-contact.pr-masked .pc-title { color: #9aa8b9; }
body.role-external .pool-compose { display: none !important; }
body.role-external .pf-toggle { display: none; }
@media (max-width: 520px) {
  .ext-grid { grid-template-columns: 1fr; }
  .ext-field.wide { grid-column: span 1; }
  .gate-card.wide { max-width: 100%; }
}
/* 게이트 버튼: 흰 배경 테마의 .btn-primary(흰 버튼)를 게이트 카드에서는 강조색으로 */
.gate .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.gate .btn-primary:hover { background: #095ab0; border-color: #095ab0; }
.gate .btn-primary:disabled { background: #9bbfe6; border-color: #9bbfe6; color: #fff; }
.gate-tab, .gate-stab { white-space: nowrap; }

/* =========================================================================
   2026-11-22 — 물건 구분(🏢 일반 자산 / 🏛️ 경·공매) · 토지 섹터 · 경공매 상세
   ========================================================================= */

/* ── 물건 구분 토글 (사이드바 최상단) ── */
.deal-block .filter-title { margin-bottom: 7px; }
.deal-chips { display: flex; flex-direction: column; gap: 9px; }
.deal-group { display: flex; flex-direction: column; gap: 5px; }
.deal-chip {
  --deal-color: #334155;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 37px; padding: 5px 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  font-size: 11px; font-weight: 700;
  color: var(--text-2);
  line-height: 1.15;
  cursor: pointer;
  transition: background .12s, border-color .12s, box-shadow .12s, color .12s;
}
.deal-chip .dl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em; }
.deal-chip .cnt { font-size: 9.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.deal-chip:hover { border-color: #c3d0de; background: var(--panel-2); }
.deal-chip.is-on {
  color: #fff; background: var(--deal-color); border-color: var(--deal-color);
  box-shadow: 0 2px 8px rgba(15, 35, 60, .18);
}
.deal-chip.is-on .cnt { color: rgba(255, 255, 255, .85); }
.deal-hint {
  margin: 6px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--muted);
}

/* ── 목록: 경·공매 행 ── */
.asset-row.is-auction .row-name { color: #7c3f00; }
.auc-tag {
  display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: -.01em;
  color: #8a4b00; background: #fdecc8; border: 1px solid #f3d192;
  border-radius: 4px; padding: 1px 4px; margin-right: 2px; vertical-align: 1px;
}
.asset-row.is-auction .row-meta { color: #b45309; font-weight: 700; }

/* ── 상세: 경·공매 배지·핵심 지표 ── */
.badge.auc { background: #fdecc8; color: #7c3f00; border: 1px solid #f3d192; }
.auc-block h4 { color: #7c3f00; }
.auc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.auc-cell {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 8px;
  padding: 7px 9px;
  display: flex; flex-direction: column; gap: 3px;
}
.auc-cell .auc-k { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.auc-cell .auc-v { font-size: 13px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.auc-cell.ac { background: #fff8ec; border-color: #f3d192; }
.auc-cell.ac .auc-v { color: #a2530a; }
.auc-src {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px; font-size: 11.5px; font-weight: 700;
  color: #0b5aa8; text-decoration: none;
  border: 1px solid #cddffa; background: #f2f7ff; border-radius: 7px; padding: 6px 9px;
}
.auc-src:hover { background: #e6f0ff; }
.auc-note { margin: 8px 0 0; font-size: 10.5px; line-height: 1.55; color: var(--muted); }

/* ── 상세: 📋 공시·공공 데이터 (2026-11-23) ── */
.badge.disc { background: #eef4ff; color: #0b4f9c; border: 1px solid #cddffa; }
.disc-mini { font-size: 10px; vertical-align: 1px; }
.disc-block h4 { color: #0b4f9c; }
.disc-list { display: flex; flex-direction: column; gap: 8px; }
.disc-card {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 9px;
  padding: 9px 10px;
}
.disc-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.disc-src {
  font-size: 10.5px; font-weight: 800; letter-spacing: -.01em;
  color: #0b4f9c; background: #e8f0fe; border: 1px solid #cddffa;
  border-radius: 5px; padding: 2px 6px;
}
.disc-asof { font-size: 10.5px; color: var(--muted); }
.disc-title { margin-top: 5px; font-size: 12px; font-weight: 700; color: var(--text); }
.disc-facts { margin-top: 6px; font-size: 11.5px; }
.disc-facts th { width: 34%; font-size: 11px; }
.disc-facts th, .disc-facts td { padding: 4px 0; }
.disc-link {
  display: inline-block; margin-top: 7px; font-size: 11px; font-weight: 700;
  color: #0b5aa8; text-decoration: none;
  border: 1px solid #cddffa; background: #f2f7ff; border-radius: 6px; padding: 4px 8px;
}
.disc-link:hover { background: #e6f0ff; }
.disc-items { list-style: none; margin: 7px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.disc-items li { font-size: 11px; line-height: 1.5; color: var(--text-2); position: relative; padding-left: 9px; word-break: break-word; }
.disc-items li::before { content: '·'; position: absolute; left: 0; color: var(--muted); }
.disc-items a { color: #0b5aa8; text-decoration: none; }
.disc-items a:hover { text-decoration: underline; }
.disc-note { margin: 6px 0 0; font-size: 10px; line-height: 1.55; color: var(--muted); }

@media (max-width: 420px) {
  .auc-grid { grid-template-columns: 1fr; }
}

/* ═════════════════════════ 🏠 딜 브릿지 홈 (2026-11-23) ═════════════════════════ */
/* ── 홈 맨 앞 새로고침 바 (2026-11-28) ── */
.hh-refresh {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 10px; padding: 6px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  box-shadow: var(--shadow-sm);
}
.hh-rf-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--navy-3); background: #eef5fd; color: var(--navy);
  border-radius: 9px; padding: 6px 12px; min-height: 32px;
  font-size: 12.4px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.hh-rf-btn:hover { background: #e2eefc; }
.hh-rf-btn:disabled { opacity: .72; cursor: progress; }
.hh-rf-i { font-size: 14px; line-height: 1; display: inline-block; }
.hh-rf-btn.is-busy .hh-rf-i { animation: hh-spin .9s linear infinite; }
@keyframes hh-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hh-rf-at { font-size: 11.4px; color: var(--text-2); font-weight: 700; }
.hh-rf-hint { font-size: 10.8px; color: var(--muted); }
@media (max-width: 760px) {
  .hh-refresh { gap: 6px; padding: 6px 8px; }
  .hh-rf-hint { width: 100%; }
}
.home-view {
  height: calc(100vh - var(--header-h) - var(--tabs-h));
  overflow-y: auto;
  background: var(--bg);
  padding: 14px 16px 28px;
}
.home-hero {
  display: flex;
  gap: 18px;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 62%, #1f6aa5 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.hh-left { flex: 1 1 360px; min-width: 260px; }
.hh-kicker { margin: 0; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #9dc4e8; }
.hh-title { margin: 6px 0 4px; font-size: 25px; font-weight: 700; letter-spacing: -.02em; }
.hh-title b { color: #ffd97a; font-weight: 800; }
.hh-sub { margin: 0; font-size: 12.8px; color: #d5e6f7; line-height: 1.55; }
.hh-meta { margin: 8px 0 0; font-size: 11px; color: #8fb6d8; }
.hh-kpis { display: grid; grid-template-columns: repeat(4, minmax(112px, 1fr)); gap: 10px; flex: 1 1 460px; }
.kpi {
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.kpi-k { font-size: 11px; color: #cfe3f5; }
.kpi-v { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.kpi-s { font-size: 10.5px; color: #a7c8e4; }
.kpi-auc .kpi-v { color: #ffcf8a; }
.kpi-sale .kpi-v { color: #b9f0d0; }
.kpi-art .kpi-v { color: #ffe9a8; }

.home-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  align-items: start;
}
.home-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 16px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.hc-deals { grid-column: span 12; }
.hc-quick { grid-column: span 4; }
.hc-search { grid-column: span 8; }
.hc-articles { grid-column: span 6; }
.hc-notices { grid-column: span 3; }
.hc-subs { grid-column: span 3; }
.hc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.hc-head h2 { margin: 0; font-size: 14.5px; letter-spacing: -.01em; }
.hc-tag { font-size: 10.5px; font-weight: 600; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; padding: 2px 8px; margin-left: 4px; }
.hc-hint { font-size: 11px; color: var(--muted); }
.hc-tools { margin-left: auto; display: flex; gap: 6px; }
.hc-foot { margin-top: 10px; }
.hc-foot .mini-btn { font-size: 11.5px; }

.strip-h { margin: 12px 0 8px; font-size: 12px; color: var(--text-2); font-weight: 700; }
.cards-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.deal-card {
  flex: 0 0 214px;
  text-align: left;
  display: flex; flex-direction: column; gap: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 11px;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.deal-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.dc-badge {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  border-radius: 6px; padding: 2px 7px;
  background: #eef2f7; color: var(--text-2);
}
.dc-badge.mini { font-size: 9.5px; padding: 1px 5px; }
.dc-badge.today { background: #d93636; color: #fff; }
.dc-badge.urgent { background: #f97316; color: #fff; }
.dc-badge.soon { background: #fbbf24; color: #3b2c00; }
.dc-badge.later { background: #dbeafe; color: #1d4fbe; }
.dc-badge.nego { background: #0f766e; color: #fff; }
.dc-badge.past { background: #e5e7eb; color: #6b7280; }
.dc-badge.gen { background: var(--navy); color: #fff; }
/* 거래 상태 배지·매각/임대 단계·금액 성격 라벨 (2026-11-28) */
.dc-badge.t-sale { background: #dc2626; color: #fff; }
.dc-badge.t-lease { background: #0f766e; color: #fff; }
.dc-top { display: flex; align-items: center; gap: 5px; min-width: 0; }
.dc-stage {
  font-size: 10px; font-weight: 800; color: var(--navy);
  background: #eef2f7; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.ptag {
  font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .01em;
  border-radius: 4px; padding: 1px 4px; white-space: nowrap; flex: 0 0 auto;
}
.ptag.pt-est { background: #fef3c7; color: #92400e; }
.ptag.pt-deal { background: #dcfce7; color: #166534; }
.ptag.pt-ask { background: #dbeafe; color: #1d4fbe; }
.ptag.pt-low { background: #f1f5f9; color: #334155; border: 1px solid var(--line); }
.ptag.pt-src { background: #f1f5f9; color: #64748b; }
.ptag.pt-none { background: #f8fafc; color: #94a3b8; border: 1px solid var(--line); }
.dc-sector { font-size: 10.5px; font-weight: 700; }
.dc-name { font-size: 12.8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-addr { font-size: 10.8px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-price { font-size: 12px; font-weight: 800; color: var(--navy); margin-top: 2px; display: flex; align-items: center; gap: 4px; min-width: 0; }
.dc-price b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hsi-right .ptag { margin-right: 4px; }
.dc-date { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qtile {
  display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto;
  column-gap: 8px; row-gap: 0; align-items: center;
  text-align: left;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel-2);
  padding: 10px 11px; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.qtile:hover { border-color: var(--accent); background: #fff; }
.qti { font-size: 16px; grid-row: span 2; text-align: center; }
.qtt { font-size: 12.6px; font-weight: 700; }
.qts { font-size: 10.5px; color: var(--muted); line-height: 1.35; }

/* ── 🧾 업무 신청 (TR · LM · 매입 · 매각 — 홈에서 바로 접수, 2026-11-25) ── */
.hc-apply {
  margin-top: 14px;
  background: linear-gradient(180deg, #f7fbff, #fff);
  border-color: #d9e7f6;
}
.apply-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.apply-btn {
  display: flex; align-items: center; gap: 10px; min-height: 62px;
  text-align: left; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 11px 13px; cursor: pointer; color: var(--text);
  -webkit-tap-highlight-color: rgba(11, 42, 74, .07); touch-action: manipulation;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.apply-btn:hover, .apply-btn:focus-visible {
  border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px); outline: none;
}
.apply-btn:active { transform: none; box-shadow: var(--shadow-sm); }
.apply-btn .ab-i {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font-size: 18px; background: #eef5fd;
}
.apply-btn .ab-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.apply-btn .ab-t b { font-size: 13.2px; letter-spacing: -.01em; color: var(--navy); }
.apply-btn .ab-t span {
  font-size: 10.8px; color: var(--muted); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.apply-btn .ab-t em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--accent); }
.apply-btn .ab-go { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--navy-3); white-space: nowrap; }
.apply-btn.v-tr .ab-i { background: #e8f4fd; }
.apply-btn.v-lease .ab-i { background: #e6f7f3; }
.apply-btn.v-buy .ab-i { background: #eaf7ee; }
.apply-btn.v-sale .ab-i { background: #eef1fd; }
@media (max-width: 980px) {
  .apply-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .apply-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .apply-btn { min-height: 58px; padding: 10px; gap: 8px; }
  .apply-btn .ab-i { width: 32px; height: 32px; font-size: 16px; }
  .apply-btn .ab-t span { white-space: normal; }
  .apply-btn .ab-go { display: none; }
}

.hs-form { display: grid; grid-template-columns: minmax(190px, 1.5fr) repeat(4, minmax(104px, 1fr)) auto; gap: 7px; }
.hs-form input, .hs-form select {
  height: 34px; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px;
  font-size: 12.4px; font-family: inherit; background: #fff; color: var(--text);
}
.hs-form .btn { height: 34px; padding: 0 16px; }
.hs-result { margin-top: 10px; }
.hs-empty { margin: 6px 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.hs-count { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.hs-list { display: flex; flex-direction: column; }
.hs-item {
  display: flex; align-items: center; gap: 10px;
  border: none; border-top: 1px solid var(--line-2);
  background: none; padding: 8px 2px; text-align: left; cursor: pointer;
}
.hs-item:hover { background: var(--panel-2); }
.hsi-sector { width: 4px; height: 30px; border-radius: 3px; flex: 0 0 4px; }
.hsi-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hsi-main strong { font-size: 12.8px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hsi-sub { font-size: 10.8px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hsi-right { font-size: 11.6px; font-weight: 700; color: var(--navy); white-space: nowrap; }

.art-list, .noti-list { display: flex; flex-direction: column; }
.art-item, .noti-item {
  border: none; border-bottom: 1px solid var(--line-2);
  background: none; padding: 9px 2px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
}
.art-item:hover, .noti-item:hover { background: var(--panel-2); }
.ai-date, .ni-date { font-size: 10.5px; color: var(--muted); }

/* ── 아티클: 내부 스크롤 · 더 보기 · 전체 검색 (2026-11-26) ── */
#artList {
  max-height: 342px; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-right: 2px;
}
#artList::-webkit-scrollbar { width: 8px; }
#artList::-webkit-scrollbar-track { background: transparent; }
#artList::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.ai-badge {
  display: inline-block; font-style: normal; font-size: 9.5px; font-weight: 700;
  color: #fff; background: var(--accent); border-radius: 5px; padding: 0 5px; margin-left: 6px;
  vertical-align: 1px;
}
.art-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.art-count { font-size: 10.8px; color: var(--muted); }
.art-btns { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.art-foot .mini-btn { font-size: 11.4px; }
.art-foot .mini-btn.art-all-btn {
  background: rgba(11, 107, 203, .08); border-radius: 6px; padding: 3px 7px;
}
.art-modal .hm-card { height: min(780px, 92vh); }
.art-modal .hm-body { display: flex; flex-direction: column; overflow: hidden; }
.art-search { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex: 0 0 auto; }
.art-search input {
  flex: 1; min-width: 0; height: 34px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 10px; font-size: 12.6px; font-family: inherit; background: #fff; color: var(--text);
}
.art-qcount { font-size: 11px; color: var(--muted); white-space: nowrap; }
.art-all-list {
  flex: 1 1 auto; min-height: 160px; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  border-top: 1px solid var(--line-2); padding-right: 4px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.art-all-list::-webkit-scrollbar { width: 8px; }
.art-all-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.read-top { margin-bottom: 10px; }
.read-top .mini-btn { font-size: 11.5px; background: var(--panel-2); border-radius: 6px; padding: 4px 9px; }
.ai-title, .ni-title { font-size: 12.9px; font-weight: 700; line-height: 1.4; }
.ai-sum { font-size: 11.3px; color: var(--text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.noti-item { flex-direction: row; align-items: center; gap: 8px; }
.ni-title { flex: 1; }
.ni-pin { font-size: 11px; }

.subs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.subbox {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2);
  padding: 9px 10px; cursor: pointer;
}
.subbox:hover { border-color: var(--accent); background: #fff; }
.sb-i { font-size: 15px; }
.sb-k { font-size: 10.8px; color: var(--muted); }
.sb-v { font-size: 17px; font-weight: 800; color: var(--navy); }

/* ── 홈 모달 ── */
.home-modal {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(9, 20, 34, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
}
.hm-card {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  width: min(760px, 100%); max-height: 92vh; display: flex; flex-direction: column;
}
.home-modal.wide .hm-card { width: min(1020px, 100%); }
.hm-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.hm-head strong { font-size: 14px; }
.hm-close {
  margin-left: auto; border: none; background: var(--panel-2); border-radius: 8px;
  width: 30px; height: 30px; font-size: 18px; line-height: 1; cursor: pointer; color: var(--text-2);
}
.hm-body { padding: 16px; overflow-y: auto; }

.fm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fm { display: flex; flex-direction: column; gap: 4px; font-size: 11.6px; color: var(--text-2); }
.fm.wide { grid-column: span 2; }
.fm span { font-weight: 600; }
.fm input, .fm select, .fm textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  font-size: 12.6px; font-family: inherit; color: var(--text); background: #fff;
}
.fm textarea { resize: vertical; }
.fm-note { margin: 0 0 12px; font-size: 11.8px; color: var(--text-2); background: #f2f7fd; border: 1px solid #d6e6f7; border-radius: 8px; padding: 9px 11px; line-height: 1.55; }
.fm-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.fm-hint { font-size: 11px; color: var(--muted); }
.fm-err { margin-top: 8px; font-size: 11.8px; color: var(--danger); }
.reg-modes { display: flex; gap: 6px; margin-bottom: 10px; }
.reg-mode {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 7px 13px; font-size: 12.2px; font-weight: 600; cursor: pointer; color: var(--text-2);
}
.reg-mode.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.read-meta { font-size: 11px; color: var(--muted); }
.read-title { margin: 6px 0 10px; font-size: 20px; line-height: 1.35; letter-spacing: -.01em; }
.read-sum { margin: 0 0 12px; font-size: 13px; color: var(--text-2); background: var(--panel-2); border-left: 3px solid var(--accent); padding: 9px 12px; border-radius: 0 8px 8px 0; line-height: 1.6; }
.read-body { font-size: 13.2px; line-height: 1.78; color: var(--text); }
.read-body p { margin: 0 0 12px; }
.rd-tags { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.rd-tag { font-size: 11px; color: var(--accent); background: #eef4fd; border-radius: 14px; padding: 2px 9px; }
.read-tools { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; }

.subs-table-wrap { overflow-x: auto; }
.subs-table { border-collapse: collapse; width: 100%; font-size: 11.5px; }
.subs-table th, .subs-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; white-space: nowrap; }
.subs-table th { background: var(--panel-2); font-weight: 700; color: var(--text-2); }

/* ── TM/IM 브리프 미리보기 (인쇄용) ── */
.brief-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px; padding: 9px 12px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; font-weight: 700;
}
.bb-right { margin-left: auto; display: flex; gap: 8px; }
.bb-ok { font-size: 11px; font-weight: 600; color: #0f766e; background: #e6f7f3; border-radius: 6px; padding: 3px 8px; }
.brief-sheet {
  background: #fff; width: 100%; max-width: 820px; margin: 0 auto;
  padding: 30px 34px 34px; border: 1px solid var(--line); border-radius: 6px;
  color: #222a35; font-size: 12px; line-height: 1.6;
}
.naip-brand { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid #252525; padding-bottom: 8px; }
.naip-logo { font-size: 17px; font-weight: 800; letter-spacing: .06em; color: #252525; }
.naip-logo span { color: #c00000; }
.naip-conf { margin-left: auto; font-size: 9.5px; letter-spacing: .12em; color: #7f7f7f; }
.naip-cover { padding-bottom: 16px; border-bottom: 1px solid #d0d0d0; margin-bottom: 18px; }
.naip-cover-mid { padding: 26px 0 20px; }
.naip-kicker { margin: 0; font-size: 10.5px; letter-spacing: .22em; color: #c00000; font-weight: 700; }
.naip-cover-mid h1 { margin: 8px 0 6px; font-size: 25px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; color: #1a1a1a; }
.naip-loc { margin: 0; font-size: 11.5px; color: #595959; }
.naip-deal { margin: 10px 0 0; font-size: 14px; font-weight: 800; color: #c00000; }
.naip-cover-foot { display: flex; justify-content: space-between; font-size: 10px; color: #7f7f7f; letter-spacing: .08em; }
.naip-sec { margin-bottom: 18px; }
.naip-sec h2 { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; color: #252525; border-left: 3px solid #c00000; padding-left: 8px; }
.naip-tb { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 11.2px; }
.naip-tb th { width: 132px; background: #f1f2f1; color: #545454; font-weight: 700; text-align: left; padding: 5px 9px; border: 1px solid #d0d0d0; }
.naip-tb td { padding: 5px 9px; border: 1px solid #d0d0d0; color: #333; }
.naip-li { margin: 6px 0 0; padding-left: 16px; }
.naip-li li { margin-bottom: 5px; }
.naip-note { margin: 8px 0 0; font-size: 10.2px; color: #7f7f7f; line-height: 1.6; }
.naip-foot { margin-top: 18px; padding-top: 8px; border-top: 1px solid #d0d0d0; font-size: 9.5px; color: #7f7f7f; }

@media (max-width: 1180px) {
  .hc-quick { grid-column: span 12; }
  .hc-search { grid-column: span 12; }
  .hc-articles { grid-column: span 12; }
  .hc-notices { grid-column: span 6; }
  .hc-subs { grid-column: span 6; }
  .hs-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hh-kpis { grid-template-columns: 1fr 1fr; }
  .home-grid { grid-template-columns: 1fr; }
  .hc-deals, .hc-quick, .hc-search, .hc-articles, .hc-notices, .hc-subs { grid-column: span 1; }
  .fm-grid { grid-template-columns: 1fr; }
  .fm.wide { grid-column: span 1; }
  .hs-form { grid-template-columns: 1fr; }
  #artList { max-height: 306px; }
  .art-modal .hm-card { height: min(660px, 90vh); }
  .art-btns { margin-left: 0; width: 100%; }
  .brief-sheet { padding: 18px; }
}

/* 인쇄: 브리프 시트만 출력 */
@media print {
  body.printing-brief > * { display: none !important; }
  body.printing-brief .home-modal { display: block !important; position: static; background: none; padding: 0; }
  body.printing-brief .hm-card { box-shadow: none; width: auto; max-height: none; }
  body.printing-brief .hm-head, body.printing-brief .brief-bar { display: none !important; }
  body.printing-brief .hm-body { overflow: visible; padding: 0; }
  body.printing-brief .brief-sheet { border: none; max-width: none; padding: 0; }
}

/* =========================================================================
   2026-11-24 추가 — 🏢 NAI 매각·LM 탭 · 🔒 팀장회의 · 섹터 밸류에이션 · IM 슬라이드
   ========================================================================= */

/* ── 탭 배지 ── */
.nai-view {
  height: calc(100vh - var(--header-h) - var(--tabs-h));
  overflow-y: auto;
  background: var(--bg);
}
.nai-shell { max-width: 1520px; margin: 0 auto; padding: 14px 16px 40px; }
.nai-head {
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 10px;
}
.nai-title h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.nai-title p { margin: 4px 0 0; font-size: 12px; color: var(--muted); max-width: 760px; line-height: 1.5; }
.nai-meta { font-weight: 650; color: var(--text-2) !important; }
.team-flag { color: #7c3aed; }
.nai-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nai-search {
  display: inline-flex; align-items: center; gap: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; box-shadow: var(--shadow-sm);
}
.nai-search span { color: var(--muted); font-size: 14px; }
.nai-search input { border: 0; outline: 0; font-family: inherit; font-size: 12.4px; width: 220px; background: transparent; }
.nai-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 10px; }
.nai-sort { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); margin-left: auto; }
.nai-sort .mini-btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.nai-count { font-size: 11.5px; color: var(--muted); margin: 0 0 6px 2px; }

.nai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.nai-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px 10px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px; cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.nai-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #c7d6e8; }
.nai-card.is-ref { background: linear-gradient(180deg,#fbfcfe,#fff); }
.nc-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nc-kind {
  font-size: 10.4px; font-weight: 800; letter-spacing: .01em; color: #fff; background: #0f766e;
  border-radius: 999px; padding: 3px 8px;
}
.nc-kind.LM { background: #1d4ed8; }
.nc-kind.개발 { background: #a855f7; }
.nc-kind.참고 { background: #94a3b8; }
.nc-kind.매각LM { background: #0e7490; }
.nc-sector { font-size: 10.6px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px; }
.nc-team { font-size: 10.4px; font-weight: 750; color: #6d28d9; background: #f3ecff; border: 1px solid #ddd0fb; border-radius: 999px; padding: 2px 7px; }
.nc-name { margin: 2px 0 0; font-size: 14.2px; letter-spacing: -.01em; line-height: 1.32; }
.nc-addr { margin: 0; font-size: 11.2px; color: var(--muted); line-height: 1.4; }
.nc-rows { display: flex; flex-direction: column; gap: 3px; margin: 4px 0 2px; }
.nc-row { display: flex; gap: 8px; font-size: 11.4px; line-height: 1.4; }
.nc-row span { color: var(--muted); flex: 0 0 62px; }
.nc-row b { font-weight: 650; color: var(--text-2); }
.nc-state { margin: 2px 0 0; font-size: 11.2px; color: #0b6bcb; font-weight: 650; }
.nc-foot { font-size: 10.8px; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 6px; }
.nc-acts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.nc-acts .mini-btn { font-size: 10.8px; padding: 4px 8px; }

/* ── 🔒 팀장회의 (관리자 전용) ── */
.nai-team {
  margin-top: 22px; border: 1px solid #ddd0fb; background: linear-gradient(180deg,#faf7ff,#fff);
  border-radius: 14px; padding: 14px 16px 18px;
}
.nt-head h3 { margin: 0 0 4px; font-size: 15px; color: #5b21b6; display: flex; align-items: center; gap: 8px; }
.nt-lock { font-size: 10px; font-weight: 800; color: #fff; background: #7c3aed; border-radius: 999px; padding: 2px 8px; }
.nt-head p { margin: 0 0 10px; font-size: 11.6px; color: var(--muted); }
.nt-date { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; }
.nt-d { font-size: 12.6px; font-weight: 800; color: var(--navy); }
.nt-c { font-size: 11px; color: var(--muted); }
.nt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.nt-card {
  background: #fff; border: 1px solid #e6dcfb; border-left: 3px solid #8b5cf6;
  border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow-sm);
}
.nt-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 5px; }
.nt-tag { font-size: 10px; font-weight: 700; color: #5b21b6; background: #f4edff; border-radius: 999px; padding: 2px 7px; }
.nt-tag.state { color: #0b6bcb; background: #eaf3fd; }
.nt-tag.due { color: #b45309; background: #fff7e6; }
.nt-card h4 { margin: 0 0 4px; font-size: 13px; line-height: 1.35; }
.nt-card p { margin: 0 0 6px; font-size: 11.6px; color: var(--text-2); line-height: 1.55; }
.nt-spk { font-size: 10.4px; color: var(--muted); }
.nt-card .mini-btn { margin-top: 6px; font-size: 10.6px; }

.nai-weekly { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.nai-weekly h3 { margin: 0 0 4px; font-size: 14px; }
.nw-note { margin: 0 0 8px; font-size: 11.4px; color: var(--muted); }
.nw-list { display: flex; flex-direction: column; gap: 4px; }
.nw-item {
  display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px;
  font-family: inherit; font-size: 12.2px; cursor: pointer;
}
.nw-item:hover { background: #eef4fb; }
.nw-d { font-weight: 750; color: var(--navy); font-size: 11.4px; }
.nw-t { flex: 1; color: var(--text-2); }
.nw-o { font-size: 10.8px; color: var(--accent); }
.nw-body h4 { margin: 12px 0 4px; font-size: 12.6px; color: var(--navy); }

/* ── 지도·상세 배지 ── */
.nai-tag { font-size: 9.6px; font-weight: 800; color: #fff; background: #0f766e; border-radius: 4px; padding: 1px 5px; vertical-align: 1px; }
.team-mini { font-size: 10px; }
.badge.nai { background: #0f766e; color: #fff; }
.badge.team { background: #7c3aed; color: #fff; }
.detail-team { border: 1px solid #ddd0fb; background: #fbf8ff; border-radius: 10px; padding: 10px; }
.detail-team h4 { color: #5b21b6; }
.dt-lock { font-size: 9.6px; font-weight: 800; color: #fff; background: #7c3aed; border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
.dt-item { border-top: 1px dashed #e3d8fa; padding: 8px 0 4px; }
.dt-item:first-of-type { border-top: 0; }
.dt-tags { display: flex; gap: 5px; align-items: center; margin-bottom: 3px; }
.dt-tag { font-size: 9.8px; font-weight: 700; color: #5b21b6; background: #f2e9ff; border-radius: 999px; padding: 1px 6px; }
.dt-tag.due { color: #b45309; background: #fff4e0; }
.dt-date { font-size: 9.8px; color: var(--muted); margin-left: auto; }
.dt-item strong { display: block; font-size: 12.2px; margin-bottom: 2px; }
.dt-item p { margin: 0; font-size: 11.4px; color: var(--text-2); line-height: 1.5; }

/* ── 📊 밸류에이션: 즐겨찾기 · 최근 검토 · 섹터 런처 ── */
.val-favbar { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; margin-top: 6px; }
.vf-block { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; box-shadow: var(--shadow-sm); max-width: 100%; }
.vf-t { font-size: 11px; font-weight: 750; color: var(--navy); white-space: nowrap; }
.vf-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.vf-chip {
  display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line);
  background: var(--panel-2); border-radius: 999px; padding: 3px 9px; font-size: 11.2px; cursor: pointer;
  font-family: inherit; color: var(--text-2);
}
.vf-chip:hover { background: #eaf3fd; }
.vf-chip.recent { background: #fff7f0; border-color: #f6dfd0; }
.vf-time { font-size: 9.6px; color: var(--muted); }
.vf-x { margin-left: 2px; color: #b9c4d2; font-weight: 800; }
.vf-x:hover { color: var(--danger); }
.vf-empty { font-size: 11px; color: var(--muted); }
.val-launch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.vl-t { font-size: 11px; font-weight: 750; color: var(--muted); }
.vl-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.vl-chip {
  border: 1px solid var(--line); background: #fff; color: var(--text-2); border-radius: 8px;
  padding: 5px 10px; font-size: 11.6px; font-weight: 650; cursor: pointer; font-family: inherit;
}
.vl-chip:hover { background: var(--panel-2); }
.vl-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.val-presets-fold { margin-left: auto; }
.val-presets-fold summary { font-size: 11px; color: var(--accent); cursor: pointer; }
.val-presets-fold .val-presets { margin-top: 6px; }
.val-cur { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.6px !important; }
.val-cur b { color: var(--navy); }
.val-engine-head { padding: 6px 0 8px; border-bottom: 1px solid var(--line-2); }
.ve-badge { font-size: 10.4px; font-weight: 800; color: #fff; background: var(--navy); border-radius: 999px; padding: 2px 8px; margin-right: 6px; }
.val-engine-head strong { font-size: 13px; }
.val-engine-head p { margin: 5px 0 0; font-size: 11.2px; color: var(--muted); line-height: 1.45; }
.val-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-top: 8px; }
.val-hint { font-size: 10.6px; color: var(--muted); }
.val-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 14px; align-items: start; }
.val-result { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.val-pl, .val-cf, .val-sens { width: 100%; border-collapse: collapse; font-size: 12px; }
.val-pl th, .val-cf th, .val-sens th {
  text-align: left; font-weight: 650; color: var(--text-2); padding: 5px 8px;
  border-bottom: 1px solid var(--line-2); background: var(--panel-2);
}
.val-pl td, .val-cf td, .val-sens td { padding: 5px 8px; text-align: right; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.val-pl tr.noi th, .val-pl tr.noi td { background: #eef8f2; font-weight: 800; color: #0b6b45; border-top: 1px solid #b8e3cb; }
.val-pl td.neg { color: #b3262c; }
.val-cf td:first-child, .val-cf th:first-child { text-align: center; }
.val-sens th { text-align: center; font-size: 11px; }
.val-sens td { text-align: center; }
.val-sens td.good { background: #eafaf1; color: #0b6b45; font-weight: 700; }
.val-sens td.bad { background: #fdf0f0; color: #a32a2a; }
.val-sens td.base { outline: 2px solid #0b6bcb; outline-offset: -2px; }
.val-notes { margin: 0; padding-left: 16px; font-size: 11.6px; color: var(--text-2); line-height: 1.6; }
.val-notes li { margin-bottom: 4px; }
.val-note { margin: 6px 0 0; font-size: 10.8px; color: var(--muted); }

/* ── 📘 IM 16:9 슬라이드 프리뷰 ── */
.home-modal.deck { width: min(1180px, 96vw); }
.im-deck-wrap {
  background: #dfe6ef; padding: 16px; border-radius: 10px;
  display: flex; flex-direction: column; gap: 16px; max-height: 76vh; overflow: auto;
}
.im-slide {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: #fff; color: #16202e;
  border-radius: 6px; box-shadow: 0 8px 26px rgba(9,27,48,.18); padding: 26px 34px 30px;
  display: flex; flex-direction: column; overflow: hidden; flex: 0 0 auto;
}
.im-slide::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #0b2a4a, #1b4b7d 55%, #c9a227); }
.ims-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ims-logo { font-size: 13px; font-weight: 900; letter-spacing: .04em; color: #0b2a4a; }
.ims-logo span { color: #c9a227; margin-left: 2px; }
.ims-no { font-size: 11px; color: #93a3b6; font-weight: 700; }
.ims-body { flex: 1; min-height: 0; overflow: hidden; }
.ims-foot {
  display: flex; justify-content: space-between; font-size: 9.6px; color: #8b9aad;
  border-top: 1px solid #eef2f7; padding-top: 6px; margin-top: 8px;
}
.im-slide h1 { margin: 6px 0 8px; font-size: clamp(20px, 3.1vw, 38px); line-height: 1.18; letter-spacing: -.02em; color: #0b2a4a; }
.im-slide.cover { background: linear-gradient(150deg, #0b2a4a 0%, #123a63 62%, #1b4b7d 100%); color: #fff; }
.im-slide.cover::before { background: linear-gradient(90deg, #c9a227, #f0d98a 50%, #c9a227); }
.im-slide.cover .ims-logo { color: #fff; }
.im-slide.cover .ims-foot { color: rgba(255,255,255,.55); border-top-color: rgba(255,255,255,.18); }
.ims-cover { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.ims-cover h1 { color: #fff; }
.ims-kicker { margin: 0; font-size: 11.5px; letter-spacing: .28em; color: #f0d98a; font-weight: 700; }
.ims-loc { margin: 0 0 14px; font-size: 12.6px; color: rgba(255,255,255,.78); }
.ims-cover-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: rgba(255,255,255,.9); }
.ims-draft { margin: 18px 0 0; font-size: 10.6px; letter-spacing: .18em; color: rgba(255,255,255,.55); }
.ims-h2 { margin: 0 0 12px; font-size: 15px; color: #0b2a4a; border-left: 4px solid #c9a227; padding-left: 9px; }
.ims-toc { display: flex; flex-direction: column; gap: 6px; }
.toc-row { display: flex; gap: 12px; align-items: baseline; border-bottom: 1px solid #eef2f7; padding-bottom: 5px; font-size: 13px; }
.toc-row span { color: #c9a227; font-weight: 900; width: 30px; }
.toc-row b { color: #2c3e52; font-weight: 650; }
.ims-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.imsc { background: #f6f9fc; border: 1px solid #e6edf5; border-radius: 8px; padding: 11px 12px; }
.imsc span { font-size: 10.6px; font-weight: 800; color: #0b6bcb; letter-spacing: .02em; }
.imsc p { margin: 5px 0 0; font-size: 11.4px; line-height: 1.55; color: #2c3e52; }
.ims-two { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; }
.ims-maplike {
  background: linear-gradient(150deg, #eaf2fb, #f8fbff); border: 1px solid #dbe7f4; border-radius: 8px;
  padding: 14px; display: flex; flex-direction: column; gap: 5px;
}
.ims-maplike span { font-size: 22px; }
.ims-maplike b { font-size: 12.4px; color: #0b2a4a; line-height: 1.4; }
.ims-maplike i { font-style: normal; font-size: 10.6px; color: #7c8da3; }
.ims-maplike em { font-style: normal; font-size: 10.6px; font-weight: 700; color: #0b6bcb; }
.ims-side { display: flex; flex-direction: column; gap: 6px; }
.ims-li span { font-size: 10.4px; font-weight: 800; color: #0b6bcb; }
.ims-li p { margin: 1px 0 0; font-size: 11.2px; line-height: 1.5; color: #2c3e52; }
.ims-table { width: 100%; border-collapse: collapse; font-size: 11.4px; }
.ims-table th { text-align: left; width: 30%; padding: 5px 8px; color: #5a6b80; font-weight: 650; background: #f7fafd; border-bottom: 1px solid #e9eff6; }
.ims-table td { padding: 5px 8px; border-bottom: 1px solid #e9eff6; color: #16202e; }
.ims-table td.neg { color: #a32a2a; text-align: right; }
.ims-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.imsk { background: #0b2a4a; color: #fff; border-radius: 8px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; }
.imsk span { font-size: 10px; color: rgba(255,255,255,.7); font-weight: 650; }
.imsk b { font-size: 16px; letter-spacing: -.02em; }
.ims-note { margin: 8px 0 0; font-size: 10.4px; color: #7c8da3; }
.ims-empty { font-size: 11.6px; color: #7c8da3; }
.ims-steps { display: flex; flex-direction: column; gap: 5px; }
.ims-step { display: flex; align-items: center; gap: 8px; font-size: 11.4px; color: #2c3e52; }
.ims-step span { width: 19px; height: 19px; border-radius: 50%; background: #0b2a4a; color: #fff; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.ims-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ims-contact b { font-size: 12.6px; color: #0b2a4a; }
.ims-contact p { margin: 4px 0 0; font-size: 11.2px; color: #2c3e52; line-height: 1.5; }

/* 인쇄 / PDF — 슬라이드 1장 = 1페이지 */
@media print {
  body.printing-brief > *:not(.home-modal) { display: none !important; }
  body.printing-brief .home-modal { position: static; background: #fff; padding: 0; }
  body.printing-brief .brief-bar { display: none !important; }
  body.printing-brief .im-deck-wrap { background: #fff; padding: 0; gap: 0; max-height: none; overflow: visible; }
  body.printing-brief .im-slide { box-shadow: none; border-radius: 0; page-break-after: always; break-after: page; aspect-ratio: auto; height: 190mm; }
  body.printing-brief .im-slide:last-child { page-break-after: auto; }
  @page { size: A4 landscape; margin: 8mm; }
  body.printing-brief .ims-cards, body.printing-brief .ims-kpis { break-inside: avoid; }
}

@media (max-width: 1100px) {
  .val-grid, .val-main { grid-template-columns: 1fr; }
  .val-inputs { position: static; max-height: none; }
  .ims-two { grid-template-columns: 1fr; }
  .ims-cards { grid-template-columns: 1fr; }
  .im-slide { padding: 18px 20px 20px; }
}
@media (max-width: 760px) {
  .nai-tools { width: 100%; margin-left: 0; }
  .nai-search input { width: 100%; }
  .nis-grid, .nai-grid { grid-template-columns: 1fr; }
  .val-favbar { flex-direction: column; }
  .vf-block { width: 100%; }
}

/* IM 프리뷰 상단 버튼 대비 보강 */
.brief-bar .btn-ghost {
  background: #fff; color: var(--navy); border: 1px solid var(--line); font-weight: 650;
}
.brief-bar .btn-ghost:hover { background: #eaf3fd; border-color: #b9d3ee; }
.brief-bar .bb-ok { color: #0b7a50; font-weight: 700; }

/* =========================================================================
   2026-11-24 신설 — 🤖 AI 매물 매칭 · 🛰️ 관리자 로그 · 📋 TR 모달 ·
   📜 등기부 버튼 · 🏢 DART 칸 · 목록 페이징
   ========================================================================= */
:root {
  --gold: #c8a34a;
  --gold-2: #e8ca85;
}

/* ── 목록 페이징 (2,429건 대응) ── */
.asset-row { content-visibility: auto; contain-intrinsic-size: auto 54px; }
.list-more { padding: 10px 12px 18px; font-size: 11.5px; color: var(--muted); text-align: center; }
.list-more .mini-btn { margin-left: 4px; }

/* ── 상세 패널: 📜 등기부 · 👁️ 열람 이력 · 🏢 DART ── */
.action-btn.reg { background: #fbf7ec; border-color: #e6d6a8; color: #7a5c17; }
.action-btn.reg:hover { background: #f6eeda; }
.action-btn.logs { background: #eef2f8; border-color: #cfdaea; color: var(--navy-2); }
.dart-block { border-left: 3px solid var(--gold); }
.dart-badge { font-size: 9.5px; font-weight: 800; letter-spacing: .02em; color: #7a5c17;
  background: #fbf3dc; border: 1px solid #e9d9ab; border-radius: 20px; padding: 1px 7px; margin-left: 6px; }
.dart-corp { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 2px 0 9px; }
.dart-corp .dart-k { font-size: 10.5px; color: var(--muted); }
.dart-corp .dart-v { font-size: 13px; font-weight: 700; color: var(--navy); }
.dart-corp .dart-sub { font-size: 10.5px; color: var(--muted); }
.dart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dart-cell { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 8px; display: flex; justify-content: space-between; gap: 6px; }
.dart-cell .dart-k { font-size: 10.2px; color: var(--muted); }
.dart-cell .dart-v { font-size: 11.5px; font-weight: 700; color: var(--text); text-align: right; }
.dart-cell .dart-v.empty { color: #b6c0cd; font-weight: 600; }
.dart-foot { margin-top: 9px; display: flex; flex-direction: column; gap: 4px; }
.dart-link { font-size: 11.5px; font-weight: 700; color: var(--accent); text-decoration: none; }
.dart-link:hover { text-decoration: underline; }
.dart-note { font-size: 10.5px; color: var(--muted); line-height: 1.5; }

/* ── 📋 TR 모달 ── */
.tr-modal { position: fixed; inset: 0; z-index: 140; background: rgba(9,20,34,.55);
  display: flex; align-items: center; justify-content: center; padding: 18px; }
.tr-card { width: min(760px, 100%); max-height: 92vh; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.tr-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f7f9fc, #fff); display: flex; gap: 10px; align-items: flex-start; }
.tr-head h3 { margin: 0 0 4px; font-size: 16px; color: var(--navy); }
.tr-head p { margin: 0; font-size: 11.6px; color: var(--muted); line-height: 1.6; }
.tr-x { margin-left: auto; border: none; background: var(--panel-2); color: var(--text-2);
  width: 30px; height: 30px; border-radius: 8px; font-size: 19px; line-height: 1; cursor: pointer; }
.tr-scroll { padding: 14px 18px; overflow-y: auto; }
.tr-sec { margin-bottom: 14px; }
.tr-sec h4 { margin: 0 0 8px; font-size: 12px; color: var(--navy-2); letter-spacing: .01em; }
.tr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.tr-f { display: flex; flex-direction: column; gap: 4px; font-size: 11.2px; color: var(--text-2); }
.tr-f.wide { grid-column: 1 / -1; }
.tr-f span b { color: var(--danger); }
.tr-f em { font-style: normal; font-size: 10.2px; color: var(--muted); }
.tr-f input, .tr-f select, .tr-f textarea { border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 9px; font-size: 12.4px; font-family: inherit; color: var(--text); background: #fff; }
.tr-f textarea { resize: vertical; }
.tr-f input:focus, .tr-f select:focus, .tr-f textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(27,75,125,.12); }
.tr-note { margin: 2px 0 0; font-size: 10.6px; color: var(--muted); line-height: 1.6; }
.tr-err { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: #fdeeee; color: #b3262c; font-size: 11.6px; }
.tr-actions { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #fbfcfe; }

/* ── 🤖 AI 매물 매칭 ── */
.match-view { height: calc(100vh - var(--header-h) - var(--tabs-h)); overflow-y: auto; background: var(--bg); }
.mt-wrap { max-width: 1160px; margin: 0 auto; padding: 18px 16px 40px; }
.mt-hero { background: linear-gradient(135deg, #0b2a4a 0%, #123a63 62%, #1b4b7d 100%); color: #fff;
  border-radius: 16px; padding: 20px 20px 16px; box-shadow: var(--shadow-md); }
.mt-hero-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mt-hero h1 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.mt-db { font-size: 11px; color: #cfe0f2; }
.mt-db b { color: var(--gold-2); }
.mt-sub { margin: 7px 0 14px; font-size: 12.2px; color: #d7e4f2; line-height: 1.6; }
.mt-form { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 6px 6px 6px 12px; }
.mt-ico { color: var(--muted); font-size: 16px; }
.mt-form input { flex: 1; border: none; outline: none; font-size: 13.4px; font-family: inherit; color: var(--text); background: transparent; padding: 8px 2px; }
.mt-go { white-space: nowrap; }
.mt-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mt-ex { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #eaf2fb;
  font-size: 11px; padding: 5px 10px; border-radius: 20px; cursor: pointer; }
.mt-ex:hover { background: rgba(255,255,255,.18); }
.mt-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.mt-tools .btn-outline { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.06); }
.mt-tools .btn-outline:hover { background: rgba(255,255,255,.16); }
.mt-hint { font-size: 10.8px; color: #c3d6ea; }
.mt-parsed { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 2px 0; }
.mt-ptitle { font-size: 11px; font-weight: 800; color: var(--muted); margin-right: 2px; }
.mt-chip { font-size: 11px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px; color: var(--text-2); }
.mt-chip b { color: var(--navy); margin-right: 3px; font-weight: 800; }
.mt-chip.off { color: var(--muted); background: var(--panel-2); }
.mt-result { margin-top: 12px; }
.mt-empty { font-size: 12px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; }
.mt-rhead { display: flex; justify-content: space-between; align-items: center; font-size: 11.8px; color: var(--text-2); margin: 4px 4px 8px; }
.mt-rtime { color: var(--muted); font-size: 10.8px; }
.mt-list { display: flex; flex-direction: column; gap: 8px; }
.mt-card { display: grid; grid-template-columns: 34px 54px 1fr auto; gap: 10px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; box-shadow: var(--shadow-sm); }
.mt-card:hover { border-color: #c8d7e8; box-shadow: var(--shadow-md); }
.mt-rank { font-size: 12px; font-weight: 800; color: #b9c6d4; text-align: center; padding-top: 6px; }
.mt-score { --sc: 50; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--navy-3) calc(var(--sc) * 1%), #e6edf5 0); position: relative; flex-direction: column; }
.mt-score::before { content: ''; position: absolute; inset: 5px; background: #fff; border-radius: 50%; }
.mt-score span { position: relative; font-size: 14px; font-weight: 800; color: var(--navy); line-height: 1; }
.mt-score em { position: relative; font-style: normal; font-size: 8.5px; color: var(--muted); }
.mt-main { min-width: 0; }
.mt-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mt-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mt-name { font-size: 13.4px; color: var(--text); }
.mt-tag { font-size: 10px; font-weight: 800; }
.mt-status { font-size: 9.6px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2); border-radius: 20px; padding: 1px 7px; }
.mt-meta { font-size: 11px; color: var(--text-2); margin-top: 3px; }
.mt-why { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.mt-why-i { font-size: 10px; color: #1c7a56; background: #edf8f3; border: 1px solid #d3eee4; border-radius: 20px; padding: 1px 7px; }
.mt-why-i.partial { color: #9a6a10; background: #fdf6e7; border-color: #f0e2c2; }
.mt-addr { font-size: 10.4px; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-acts { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.mt-acts .mini-btn { white-space: nowrap; }
.mt-more { margin: 14px 0 0; text-align: center; }
.mt-cta { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  background: #fff; border: 1px solid #e3d9c1; border-radius: 14px; padding: 16px 18px; }
.mt-cta strong { font-size: 14px; color: var(--navy); }
.mt-cta p { margin: 5px 0 6px; font-size: 11.5px; color: var(--text-2); line-height: 1.6; }
.mt-cta-li { margin: 0; padding-left: 16px; font-size: 10.8px; color: var(--muted); line-height: 1.7; }
.mt-cta-r { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.mt-ai-alt { display: flex; gap: 5px; }
.mt-pickle-sub { font-weight: 600; font-size: 10.8px; opacity: .82; }
.mt-pickle { display: inline-block; background: linear-gradient(135deg, #0b2a4a, #1b4b7d); color: #fff;
  font-size: 12.6px; font-weight: 800; text-decoration: none; padding: 11px 16px; border-radius: 11px; box-shadow: var(--shadow-md); white-space: nowrap; }
.mt-pickle:hover { filter: brightness(1.08); }
.mt-cta-note { font-size: 10px; color: var(--muted); }

/* ── 🛰️ 관리자 · 접속 로그 ── */
.admin-view { height: calc(100vh - var(--header-h) - var(--tabs-h)); overflow-y: auto; background: var(--bg); }
.ad-wrap { max-width: 1240px; margin: 0 auto; padding: 16px 16px 40px; }
.ad-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.ad-head h1 { margin: 0; font-size: 18px; color: var(--navy); }
.ad-head p { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }
.ad-tools { display: flex; gap: 6px; }
.ad-kpi { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; }
.ad-k { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; }
.ad-k span { font-size: 10.4px; color: var(--muted); }
.ad-k strong { font-size: 16px; color: var(--navy); }
.ad-k em { font-style: normal; font-size: 9.6px; color: #9aa8b8; }
.ad-bar { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ad-subs { display: flex; gap: 6px; flex-wrap: wrap; }
.ad-sub { border: 1px solid var(--line); background: var(--panel-2); color: var(--text-2); font-size: 11.6px; font-weight: 700;
  padding: 6px 12px; border-radius: 20px; cursor: pointer; }
.ad-sub.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.ad-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 9px; }
.ad-filters input[type=search] { flex: 1; min-width: 180px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 12px; font-family: inherit; }
.ad-filters select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 11.6px; font-family: inherit; background: #fff; }
.ad-note { font-size: 10.8px; color: var(--muted); }
.ad-body { margin-top: 10px; }
.ad-empty { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 20px; text-align: center; font-size: 12px; color: var(--muted); }
.ad-hint { font-size: 11px; color: var(--muted); margin: 2px 4px 8px; line-height: 1.55; }
.ad-list { display: flex; flex-direction: column; gap: 6px; }
.ad-row { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ad-row.is-open { border-color: #c6d6e8; box-shadow: var(--shadow-sm); }
.ad-row.is-focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(200,163,74,.18); }
.ad-row-main { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none; text-align: left;
  padding: 10px 12px; cursor: pointer; font-family: inherit; }
.ad-role { font-size: 9.6px; font-weight: 800; border-radius: 20px; padding: 2px 8px; white-space: nowrap;
  background: #eef2f8; color: var(--navy-2); border: 1px solid #dbe5f1; }
.ad-role.ra { background: #fbf3dc; color: #7a5c17; border-color: #ecdcb1; }
.ad-role.ri { background: #eaf3fd; color: #175a9e; border-color: #d2e5f8; }
.ad-role.re { background: #eef7f1; color: #1c7a56; border-color: #d3eee4; }
.ad-who { display: flex; flex-direction: column; gap: 1px; min-width: 150px; flex: 1; }
.ad-who strong { font-size: 12.4px; color: var(--text); }
.ad-who em { font-style: normal; font-size: 10.4px; color: var(--muted); }
.ad-cnt { font-size: 11px; font-weight: 700; color: var(--navy-2); white-space: nowrap; }
.ad-when { font-size: 10.6px; color: var(--muted); white-space: nowrap; }
.ad-caret { color: #a9b7c6; font-size: 10px; }
.ad-detail { border-top: 1px solid var(--line-2); background: var(--panel-2); padding: 8px 12px 10px; }
.ad-table { border-collapse: collapse; width: 100%; font-size: 11px; background: #fff; }
.ad-table th, .ad-table td { border: 1px solid var(--line-2); padding: 5px 7px; text-align: left; vertical-align: top; }
.ad-table th { background: var(--panel-2); font-size: 10.2px; color: var(--muted); font-weight: 800; }
.ad-table td.nowrap { white-space: nowrap; }
.ad-table code { font-size: 10.2px; color: var(--navy-2); background: #eef2f8; border-radius: 4px; padding: 1px 5px; }
.ad-tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.ad-raw td.ad-det { max-width: 520px; word-break: break-all; color: var(--text-2); }
.ad-det { font-size: 10.2px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.ad-act { font-size: 10px; font-weight: 800; color: var(--navy-2); background: #eef2f8; border-radius: 20px; padding: 1px 7px; }
.ad-h4 { margin: 14px 4px 6px; font-size: 12px; color: var(--navy-2); }
.ad-st { border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font-size: 10.6px; font-family: inherit; background: #fff; }
.ad-drow { margin-top: 6px; }

/* 모바일 */
@media (max-width: 900px) {
  .mt-card { grid-template-columns: 26px 46px 1fr; }
  .mt-acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .mt-score { width: 46px; height: 46px; }
  .mt-cta { grid-template-columns: 1fr; }
  .mt-cta-r { align-items: stretch; }
  .mt-pickle { text-align: center; }
  .mt-ai-alt { width: 100%; }
  .mt-ai-alt .ai-btn-alt { flex: 1; }
  .ad-kpi { grid-template-columns: repeat(2, 1fr); }
  .tr-grid { grid-template-columns: 1fr; }
  .dart-grid { grid-template-columns: 1fr; }
  .ad-who { min-width: 100px; }
  .ad-when { display: none; }
  .mt-hero { padding: 16px 14px 14px; }
  .mt-hero h1 { font-size: 17px; }
}

/* ══════════════════════════════════════════════════════════════════════
   2026-11-24 2단계 대개편 — 3Q 마켓 리포트 · 딜·참여 허브 · 자문사 VDR ·
   밸류애드 시뮬레이터 · IM 프리뷰 개선 · LM 상태 · TR 지도 레이어
   ══════════════════════════════════════════════════════════════════════ */

/* ── 📊 3Q 마켓 리포트 ─────────────────────────────────────────────── */
.report-btn { color: var(--gold-2, #f6c667); }
.hh-report { display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0 8px;
  padding: 11px 14px; border-radius: 12px; cursor: pointer; text-align: left;
  background: linear-gradient(120deg, rgba(246,198,103,.18), rgba(255,255,255,.08));
  border: 1px solid rgba(246,198,103,.45); color: #fff; }
.hh-report:hover { background: linear-gradient(120deg, rgba(246,198,103,.3), rgba(255,255,255,.14)); }
.hh-report .hr-i { font-size: 20px; }
.hh-report .hr-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hh-report .hr-t b { font-size: 13px; letter-spacing: -.01em; }
.hh-report .hr-t em { font-style: normal; font-size: 10.8px; color: #d8e3f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-report .hr-go { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--gold-2, #f6c667); white-space: nowrap; }

.rp-modal { position: fixed; inset: 0; z-index: 160; background: rgba(9,20,34,.6);
  display: flex; align-items: flex-start; justify-content: center; padding: 22px 16px; overflow-y: auto; }
.rp-card { width: min(1080px, 100%); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.rp-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 18px; background: linear-gradient(120deg, #0b2a4a, #1b4b7d); color: #fff; }
.rp-head strong { font-size: 15px; }
.rp-head span { display: block; font-size: 10.8px; color: #c9d9ea; margin-top: 2px; }
.rp-close { border: none; background: rgba(255,255,255,.14); color: #fff; width: 30px; height: 30px;
  border-radius: 8px; font-size: 19px; line-height: 1; cursor: pointer; }
.rp-body { padding: 18px; background: #fbfcfe; }
.rp-loading { padding: 40px; text-align: center; color: var(--muted); font-size: 12.5px; }
.rp-cover { background: linear-gradient(135deg, #0b2a4a 0%, #14324f 60%, #1b4b7d 100%); color: #fff;
  border-radius: 14px; padding: 22px 22px 18px; }
.rp-kicker { margin: 0 0 6px; font-size: 10.5px; letter-spacing: .14em; color: var(--gold-2, #f6c667); font-weight: 800; }
.rp-cover h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.02em; }
.rp-cover h2 em { font-style: normal; color: var(--gold-2, #f6c667); }
.rp-msg { margin: 0 0 12px; font-size: 13px; color: #dbe7f4; line-height: 1.65; }
.rp-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-meta span { font-size: 10.5px; color: #cfe0f0; background: rgba(255,255,255,.1); border-radius: 20px; padding: 4px 9px; }
.rp-sec { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); }
.rp-sec h3 { margin: 0 0 12px; font-size: 14.5px; color: var(--navy); display: flex; align-items: baseline; gap: 8px; }
.rp-sec h3 span { font-size: 10.8px; color: var(--muted); font-weight: 600; }
.rp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rp-col { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rp-col h4 { margin: 0 0 8px; font-size: 12.5px; color: var(--navy-2); }
.rp-li { margin: 0; padding-left: 16px; font-size: 11.8px; color: var(--text-2); line-height: 1.7; }
.rp-li li { margin-bottom: 3px; }
.rp-li-sm { margin-top: 10px; font-size: 11.4px; }
.rp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.rp-k { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.rp-k span { font-size: 10.4px; color: var(--muted); font-weight: 700; }
.rp-k b { font-size: 17px; color: var(--navy); letter-spacing: -.02em; }
.rp-k b small { font-size: 10.5px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.rp-k i { font-style: normal; font-size: 10.4px; color: var(--muted); }
.rp-k.good { border-color: #b6e0c9; background: #f4fcf8; }
.rp-k.good b { color: #0b7a50; }
.rp-k.bad { border-color: #f2c6c6; background: #fef7f7; }
.rp-k.bad b { color: #b3262c; }
.rp-k.up i { color: #0b7a50; }
.rp-k.down i { color: #b3262c; }
.rp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 11.4px; }
.rp-table th, .rp-table td { padding: 7px 9px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.rp-table thead th { background: #f1f5fa; color: var(--text-2); font-size: 10.6px; font-weight: 800; position: sticky; top: 0; }
.rp-table thead th span { font-weight: 600; color: var(--muted); }
.rp-table tbody th { font-weight: 700; color: var(--navy); white-space: nowrap; }
.rp-table tfoot th, .rp-table tfoot td { background: #f7fafd; font-weight: 800; }
.rp-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-table .b { font-weight: 800; color: var(--navy); }
.rp-table .up { color: #0b7a50; }
.rp-table .down { color: #b3262c; }
.rp-bar-col { width: 150px; }
.rp-bar { display: inline-block; width: 84px; height: 7px; border-radius: 4px; background: #e8eef6; vertical-align: middle; overflow: hidden; }
.rp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1b4b7d, #0b6bcb); }
.rp-bar-col em { font-style: normal; font-size: 10.5px; color: var(--muted); margin-left: 6px; }
.rp-deals th.rp-deal-name { min-width: 190px; }
.rp-note { display: block; font-size: 9.6px; color: #b45309; font-weight: 600; }
.rp-remark { color: var(--muted); white-space: nowrap; }
.rp-hint { margin: 8px 2px 0; font-size: 10.4px; color: var(--muted); line-height: 1.6; }
.rp-topdeals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.rp-td { background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.rp-td span { font-size: 10px; color: var(--muted); font-weight: 700; }
.rp-td b { display: block; font-size: 13px; color: var(--navy); margin: 2px 0; }
.rp-td em { font-style: normal; font-size: 12px; font-weight: 800; color: #0b6bcb; }
.rp-td p { margin: 4px 0 0; font-size: 10.8px; color: var(--text-2); line-height: 1.55; }
.rp-ivs { display: flex; flex-direction: column; gap: 10px; }
.rp-iv { border: 1px solid var(--line); border-left: 3px solid var(--navy-3); border-radius: 10px; padding: 11px 13px; background: #fdfefe; }
.rp-iv h4 { margin: 0 0 4px; font-size: 12.6px; color: var(--navy); }
.rp-iv-sub { margin: 0; font-size: 10.6px; color: var(--muted); }
.rp-foot { margin: 14px 2px 4px; font-size: 10.2px; color: var(--muted); line-height: 1.7; }

/* ── 📝 딜·참여 등록 허브 ──────────────────────────────────────────── */
.hub-modal { position: fixed; inset: 0; z-index: 145; background: rgba(9,20,34,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.hub-card { width: min(1100px, 96vw); }
.hub-types { display: flex; gap: 6px; padding: 10px 14px; background: #f6f9fc; border-bottom: 1px solid var(--line); overflow-x: auto; }
.hub-type { display: flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 20px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; white-space: nowrap; font-size: 11.6px; color: var(--text-2); }
.hub-type .ht-i { font-size: 13px; }
.hub-type .ht-n { font-size: 9px; font-weight: 800; color: #fff; background: #b9c6d4; border-radius: 50%;
  width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; }
.hub-type.on { border-color: var(--navy-3); background: #eef5fd; color: var(--navy); font-weight: 800; }
.hub-type.on .ht-n { background: var(--navy-3); }
.hub-desc { background: #f2f7fd; border: 1px solid #d8e6f5; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.hub-desc b { display: block; font-size: 12.4px; color: var(--navy); margin-bottom: 3px; }
.hub-desc span { font-size: 11.2px; color: var(--text-2); line-height: 1.6; }
.hub-spacer { flex: 1; }
.hub-list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.hub-fchips { display: flex; gap: 5px; flex-wrap: wrap; }
.hub-fchip { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 4px 10px;
  font-size: 11px; color: var(--text-2); cursor: pointer; }
.hub-fchip b { color: var(--muted); font-weight: 800; margin-left: 3px; }
.hub-fchip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.hub-fchip.on b { color: #ffd98a; }
.hub-list-tools input[type=search] { flex: 1; min-width: 170px; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; font-size: 12px; font-family: inherit; }
.hub-count { font-size: 10.8px; color: var(--muted); font-weight: 700; }
.hub-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.hub-table { width: 100%; min-width: 1000px; border-collapse: collapse; font-size: 11.2px; table-layout: fixed; }
.hub-table col.c-date { width: 92px; }
.hub-table col.c-type { width: 54px; }
.hub-table col.c-company { width: 108px; }
.hub-table col.c-who { width: 84px; }
.hub-table col.c-phone { width: 104px; }
.hub-table col.c-cond { width: 118px; }
.hub-table col.c-status { width: 52px; }
.hub-table col.c-share { width: 116px; }
.hub-table col.c-acts { width: 104px; }
.hub-table th { white-space: nowrap; }
.hub-table th, .hub-table td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.hub-table thead th { background: #f1f5fa; font-size: 10.4px; color: var(--text-2); font-weight: 800; position: sticky; top: 0; }
.hub-table .nowrap { white-space: nowrap; }
.hub-table .wide-cell { min-width: 0; overflow: hidden; }
.hub-table .wide-cell b { display: block; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-memo { display: block; max-width: 100%; font-size: 9.8px; color: var(--muted); margin-top: 2px; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-table td:nth-child(4), .hub-table td:nth-child(5) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-blind { color: var(--muted); font-weight: 700; letter-spacing: -0.1px; }
.hub-sub { display: block; margin-top: 2px; font-size: 9.8px; color: var(--muted); font-weight: 600; }
.hub-tag { display: inline-block; white-space: nowrap; font-size: 10px; font-weight: 800; border-radius: 6px; padding: 2px 7px; background: #eef2f7; color: var(--text-2); }
.hub-tag.t-매각 { background: #e8f0fd; color: #0b6bcb; }
.hub-tag.t-매입 { background: #eaf6ef; color: #0b7a50; }
.hub-tag.t-임대 { background: #e6f6f4; color: #0f766e; }
.hub-tag.t-TR { background: #e8f4fd; color: #0284c7; }
.hub-tag.t-호텔운영 { background: #fdeef0; color: #b3262c; }
.hub-tag.t-금융 { background: #f3eefd; color: #6d3fd4; }
.hub-st { font-size: 10px; color: var(--muted); }
.hub-empty { padding: 26px; text-align: center; font-size: 12px; color: var(--muted); }
.hub-foot { margin: 8px 2px 0; font-size: 10.2px; color: var(--muted); }

/* ── 🗂️ 접수·의뢰 축 분리 (상업용 · 주거 · 경·공매, 2026-11-29) ────────────
   목록: 축 요약 카드 → 축 안 유형·트랙 칩 → 검색. 모바일(360px)에서는
   카드·칩 줄이 줄바꿈 없이 가로 스크롤되고, 표만 따로 좌우 스크롤됩니다. */
.hub-axbar { flex: 0 0 auto; display: flex; gap: 6px; padding: 10px 14px 0; background: #f6f9fc; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hub-axpick { flex: 0 0 auto; display: flex; flex-direction: column; gap: 1px; padding: 7px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--text-2); cursor: pointer; white-space: nowrap; text-align: left; }
.hub-axpick .ha-top { display: flex; align-items: center; gap: 5px; }
.hub-axpick .ha-i { font-size: 13px; }
.hub-axpick .ha-t { font-size: 11.8px; font-weight: 800; }
.hub-axpick .ha-d { font-size: 9.8px; color: var(--muted); font-weight: 600; }
.hub-axpick.on { border-color: #1d4ed8; background: #eef4ff; color: #1d4ed8; }
.hub-axpick.on .ha-d { color: #3b6bd9; }

.hub-axcards { flex: 0 0 auto; display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: #f8fafc; border-bottom: 1px solid var(--line); }
.hub-axcard { flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; min-width: 162px; max-width: 240px;
  padding: 8px 11px 7px; border: 1px solid var(--line); border-left: 3px solid #94a3b8; border-radius: 10px;
  background: #fff; cursor: pointer; text-align: left; }
.hub-axcard .ha-top { display: flex; align-items: center; gap: 5px; }
.hub-axcard .ha-i { font-size: 13px; }
.hub-axcard .ha-t { font-size: 11.6px; font-weight: 800; color: var(--text-2); }
.hub-axcard .ha-n { font-size: 18px; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.15; }
.hub-axcard .ha-n em { font-style: normal; font-size: 9.6px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.hub-axcard .ha-b { font-size: 9.6px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-axcard.ax-all { border-left-color: var(--navy-3); }
.hub-axcard.ax-commercial { border-left-color: #1d4ed8; }
.hub-axcard.ax-residential { border-left-color: #0f766e; }
.hub-axcard.ax-auction { border-left-color: #b45309; }
.hub-axcard.on { background: #eef4ff; border-color: #1d4ed8; }
.hub-axcard.ax-residential.on { background: #eaf7f2; border-color: #0f766e; }
.hub-axcard.ax-auction.on { background: #fdf4e8; border-color: #b45309; }
.hub-axcard.on .ha-t { color: var(--navy); }
.hub-axinv-wrap { flex: 0 0 auto; }
.hub-axinv { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 14px 0; padding: 8px 11px;
  border: 1px dashed #e3c9a4; background: #fdf8f0; border-radius: 10px; font-size: 10.8px; color: var(--text-2); }
.hub-axinv > b { font-size: 11.2px; color: #b45309; }
.hub-axinv span b { color: var(--navy); }
.hub-axinv em { font-style: normal; font-size: 9.8px; color: var(--muted); }
.hub-fchip.trk-commercial.on { background: #b45309; border-color: #b45309; }
.hub-fchip.trk-residential.on { background: #0f766e; border-color: #0f766e; }
.hub-types, .hub-list-tools { flex: 0 0 auto; }
.hub-table col.c-type { width: 78px; }
.hub-table .c-type-cell { white-space: normal; }
.hub-table .hub-track { display: block; margin-top: 2px; width: fit-content; }
.hd-f .hub-track { display: inline-block; width: auto; font-size: 9.6px; font-weight: 800; margin-top: 0; vertical-align: middle; }
.hub-tag { border-left: 2px solid transparent; }
.hub-tag.ax-commercial { border-left-color: #1d4ed8; }
.hub-tag.ax-residential { border-left-color: #0f766e; }
.hub-tag.ax-auction { border-left-color: #b45309; }
.hub-tag.t-주거 { background: #e6f7f1; color: #0f766e; }
.hub-tag.t-경공매 { background: #fdf1e3; color: #b45309; }
.hub-track { display: inline-block; margin-top: 3px; white-space: nowrap; font-size: 9.2px; font-weight: 800;
  border-radius: 5px; padding: 1px 5px; }
.hub-track.trk-commercial { background: #fdf1e3; color: #b45309; }
.hub-track.trk-residential { background: #e6f7f1; color: #0f766e; }
.hub-auclink { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #e3c9a4; background: #fdf8f0; border-radius: 10px; }
.hub-auclink > b { display: block; font-size: 11.6px; color: #b45309; margin-bottom: 6px; }
.hub-aucbtnrow { display: flex; gap: 6px; flex-wrap: wrap; }
.hub-aucbtn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; font-size: 11.2px; color: var(--text-2); cursor: pointer; }
.hub-aucbtn b { color: var(--navy); font-weight: 900; }
.hub-aucbtn.ax-commercial { border-color: #e8c9a0; }
.hub-aucbtn.ax-residential { border-color: #b8dfd2; }
.hub-aucnote { display: block; margin-top: 6px; font-size: 9.8px; color: var(--muted); line-height: 1.5; }
.hub-row.ax-auction td { background: #fffdf9; }
.hub-row.ax-auction:hover td { background: #fdf8f0; }
@media (max-width: 760px) {
  /* 좁은 화면에서는 축 카드·축 선택이 가로 스크롤 없이 한 줄에 모두 보이도록 4/3열로 */
  .hub-axbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 8px 10px 0; overflow: visible; }
  .hub-axpick { min-width: 0; padding: 8px; justify-content: center; }
  .hub-axpick .ha-d { display: none; }
  .hub-axpick .ha-t { font-size: 11.2px; }
  .hub-axcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 8px 10px; overflow: visible; }
  .hub-axcard { min-width: 0; max-width: none; padding: 6px 7px 5px; }
  .hub-axcard .ha-b { display: none; }
  .hub-axcard .ha-t { font-size: 10.4px; }
  .hub-axcard .ha-n { font-size: 15px; }
  .hub-axcard .ha-n em { font-size: 8.6px; margin-left: 1px; }
  .hub-list-card .tr-head p { font-size: 10.6px; line-height: 1.55; }
  .hub-list-card .tr-head p .hub-extra { display: none; }
  .hub-axinv { margin: 8px 10px 0; }
  .hub-table col.c-type { width: 76px; }
}

/* ── 📥 접수 상세 팝업 — 기본부터 크게 · 더블클릭/⤢ 전체 화면 (2026-11-28) ── */
.btn.btn-outline.danger { color: var(--danger); border-color: #f0c9c9; }
.btn.btn-outline.danger:hover { background: #fdf2f2; }
.hub-modal.is-full { padding: 0; }
.hub-detail-card { width: min(1100px, 96vw); max-height: 90vh; }

/* 모바일: 더블탭 확대 대신 카드 안 더블탭이 확대/축소로 동작하도록 (핀치줌은 유지) */
.hub-detail-card { touch-action: manipulation; }
@media (max-width: 760px) {
  .hub-detail-card .tr-x.hub-full { width: 36px; height: 36px; font-size: 20px; }
}

.hub-detail-card.is-full { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
.hub-detail-card.is-full .tr-scroll { padding: 16px 22px; }
.hub-detail-card .tr-scroll { flex: 1 1 auto; min-height: 0; }
.hd-f .hub-tag { display: inline-block; width: auto; }
.hub-detail-card.is-full .hd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.hub-full { overflow: hidden; }
.hub-detail-card .tr-head { cursor: default; }
.hub-detail-card .tr-head h3 { font-size: 15.5px; }
.hd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.hd-f { padding: 5px 0 6px; border-bottom: 1px dashed var(--line-2); min-width: 0; }
.hd-f span { display: block; font-size: 10.6px; font-weight: 800; color: var(--muted); letter-spacing: .01em; }
.hd-f b { display: block; margin-top: 2px; font-size: 12.8px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.hd-memo { margin-top: 12px; border: 1px solid var(--line); background: #f8fafc; border-radius: 10px; padding: 10px 12px; }
.hd-memo > b { display: block; font-size: 11.6px; color: var(--navy); margin-bottom: 4px; }
.hd-memo ul { margin: 0; padding-left: 16px; }
.hd-memo li { font-size: 12.2px; line-height: 1.65; color: var(--text-2); }
.hub-row { cursor: pointer; }
.hub-row:hover td { background: #f5faff; }
.hub-acts { display: inline-flex; gap: 3px; align-items: center; }
@media (max-width: 760px) {
  .hd-grid { grid-template-columns: 1fr; }
  .hub-detail-card { width: 96vw; max-height: 92vh; }
  .hub-detail-card.is-full .hd-grid { grid-template-columns: 1fr; }
  .hub-detail-card .tr-actions { flex-wrap: wrap; }
}

/* ── 🏢 자문사 VDR ─────────────────────────────────────────────────── */
.vdr-view { height: calc(100vh - var(--header-h) - var(--tabs-h)); overflow-y: auto; background: var(--bg); }
.vdr-shell { max-width: 1320px; margin: 0 auto; padding: 16px 16px 40px; }
.vdr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.vdr-top h2 { margin: 0 0 5px; font-size: 19px; color: var(--navy); }
.vdr-top p { margin: 0; font-size: 11.6px; color: var(--text-2); line-height: 1.65; max-width: 780px; }
.vdr-offline { margin-top: 6px !important; color: #b45309 !important; background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 8px; padding: 6px 9px; display: inline-block; }
.vdr-top-actions { display: flex; gap: 8px; }
.vdr-grid { display: grid; grid-template-columns: 264px minmax(0,1fr); gap: 14px; align-items: start; }
.vdr-rooms { display: flex; flex-direction: column; gap: 7px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 9px; box-shadow: var(--shadow-sm); }
.vdr-room { display: flex; flex-direction: column; gap: 2px; text-align: left; border: 1px solid transparent;
  border-radius: 10px; padding: 9px 10px; background: var(--panel-2); cursor: pointer; }
.vdr-room:hover { border-color: #cddced; background: #f6fafe; }
.vdr-room.on { border-color: var(--navy-3); background: #eef5fd; box-shadow: inset 3px 0 0 var(--navy-3); }
.vr-stage { font-size: 9.6px; font-weight: 800; color: #0b6bcb; }
.vdr-room strong { font-size: 12.4px; color: var(--navy); }
.vr-asset { font-size: 10.4px; color: var(--text-2); }
.vr-meta { font-size: 9.8px; color: var(--muted); }
.vr-n { font-size: 9.8px; color: #0f766e; font-weight: 700; }
.vdr-main { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-sm); min-height: 420px; }
.vdr-room-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 11px; }
.vdr-room-head h3 { margin: 3px 0 2px; font-size: 16px; color: var(--navy); }
.vdr-room-head p { margin: 0; font-size: 11px; color: var(--muted); }
.vdr-room-kpis { display: flex; gap: 14px; flex-wrap: wrap; }
.vdr-room-kpis span { display: flex; flex-direction: column; font-size: 9.6px; color: var(--muted); }
.vdr-room-kpis b { font-size: 13px; color: var(--navy); }
.vdr-desc { margin: 10px 0 0; font-size: 11.4px; color: var(--text-2); line-height: 1.65; }
.vdr-tabs { display: flex; gap: 6px; margin: 12px 0 12px; }
.vdr-tab { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 6px 13px;
  font-size: 11.6px; color: var(--text-2); cursor: pointer; }
.vdr-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 800; }
.vdr-docs { display: flex; flex-direction: column; gap: 10px; }
.vdr-doc { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.vdr-doc-head { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: #f7fafd; border-bottom: 1px solid var(--line); }
.vdr-doc-head h4 { margin: 0; font-size: 12.2px; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.vdr-doc-head h4 span { font-size: 9.8px; color: var(--muted); font-weight: 600; }
.vdr-doc-head .mini-btn { margin-left: auto; }
.vdr-doc-empty { margin: 0; padding: 12px; font-size: 11.2px; color: var(--muted); }
.vdr-table-wrap { overflow-x: auto; }
.vdr-table { width: 100%; border-collapse: collapse; font-size: 11.2px; }
.vdr-table th, .vdr-table td { padding: 6px 9px; border-bottom: 1px solid var(--line-2); text-align: left; }
.vdr-table thead th { background: #f1f5fa; font-size: 10.3px; color: var(--text-2); font-weight: 800; }
.vdr-table td.b, .vdr-table td.total b { color: var(--navy); font-weight: 800; }
.vdr-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vdr-table .ctr { text-align: center; }
.vdr-table tr.top { background: #f4fbf7; }
.vdr-table tr.vdr-sample { background: #fffdf5; }
.vdr-sub { display: block; font-size: 9.6px; color: var(--muted); }
.vdr-terms { font-size: 10.4px; color: var(--text-2); max-width: 210px; }
.vdr-smp { font-size: 9px; background: #fef3c7; color: #92400e; border-radius: 4px; padding: 1px 4px; }
.vdr-note { margin: 8px 2px 0; font-size: 10.2px; color: var(--muted); line-height: 1.65; }
.vdr-hint { font-size: 10.4px; color: var(--muted); }
.vdr-empty { padding: 22px; text-align: center; font-size: 11.8px; color: var(--muted); background: var(--panel-2); border: 1px dashed var(--line); border-radius: 10px; }
.vdr-empty.big { padding: 46px; font-size: 12.4px; }
.vdr-bid-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.vdr-ai { display: flex; flex-direction: column; gap: 10px; }
.vdr-ai-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  background: linear-gradient(120deg, #0b2a4a, #1b4b7d); color: #fff; border-radius: 12px; padding: 12px 14px; }
.vdr-ai-head b { font-size: 13.6px; display: block; }
.vdr-ai-head span { font-size: 10.6px; color: #cfe0f0; }
.vdr-ai-count { font-weight: 800; color: var(--gold-2, #f6c667) !important; }
.vdr-ai-weights { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--text-2); }
.vdr-ai-weights label { display: flex; align-items: center; gap: 4px; }
.vdr-ai-weights input { width: 58px; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font-size: 11.4px; font-family: inherit; }
.vdr-rec { border: 1px solid #b6e0c9; background: #f4fcf8; border-radius: 12px; padding: 12px 14px; }
.vdr-rec-badge { font-size: 10px; font-weight: 800; color: #fff; background: #0b7a50; border-radius: 20px; padding: 3px 9px; margin-right: 7px; }
.vdr-rec b { font-size: 14px; color: var(--navy); }
.vdr-rec em { display: block; font-style: normal; font-size: 11.4px; color: var(--text-2); margin-top: 4px; }
.vdr-rec p { margin: 4px 0 0; font-size: 10.8px; color: var(--muted); }
.vdr-grade { display: inline-block; width: 22px; height: 22px; line-height: 22px; border-radius: 50%;
  font-size: 11px; font-weight: 800; color: #fff; background: #94a3b8; }
.vdr-grade.gA { background: #0b7a50; } .vdr-grade.gB { background: #0b6bcb; }
.vdr-grade.gC { background: #b45309; } .vdr-grade.gD { background: #b3262c; }
.vdr-modal { position: fixed; inset: 0; z-index: 155; background: rgba(9,20,34,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.vdr-card { width: min(620px, 100%); max-height: 92vh; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.vdr-card.wide { width: min(780px, 100%); }
.vdr-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#f7f9fc,#fff); }
.vdr-card-head strong { font-size: 14px; color: var(--navy); }
.vdr-card-body { padding: 14px 16px; overflow-y: auto; }
.vdr-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.4px; line-height: 1.6; }

/* ── 🏗️ 밸류애드 시뮬레이터 ────────────────────────────────────────── */
.va-block { border: 1px solid #d7e6f6; background: linear-gradient(180deg, #f8fbff, #fff); }
.va-tag { font-size: 10px; font-weight: 800; border-radius: 20px; padding: 3px 9px; background: #eef2f7; color: var(--muted); }
.va-tag.on { background: #0b7a50; color: #fff; }
.va-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.va-preset { border: 1px solid #cfdff0; background: #fff; border-radius: 20px; padding: 5px 11px;
  font-size: 11px; color: var(--navy-2); cursor: pointer; }
.va-preset:hover { background: #eef5fd; border-color: var(--navy-3); }
.va-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 9px; margin-bottom: 12px; }
.va-f { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.va-fhead { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 10.6px; color: var(--text-2); font-weight: 700; }
.va-fhead b { display: flex; align-items: center; gap: 2px; font-size: 10.4px; color: var(--muted); }
.va-fhead input { width: 56px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 5px;
  font-size: 12px; font-family: inherit; text-align: right; color: var(--navy); font-weight: 800; }
.va-f input[type=range] { width: 100%; margin: 7px 0 4px; accent-color: var(--navy-3); }
.va-f em { font-style: normal; font-size: 9.4px; color: var(--muted); line-height: 1.45; display: block; }
.va-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-bottom: 10px; }
.va-sum { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.va-sum span { font-size: 10px; color: var(--muted); font-weight: 700; }
.va-sum b { font-size: 15px; color: var(--navy); }
.va-sum b.good { color: #0b7a50; } .va-sum b.bad { color: #b3262c; }
.va-sum em { font-style: normal; font-size: 9.4px; color: var(--muted); }
.va-table th { width: 34%; }
.va-d { font-size: 11px; font-weight: 800; color: var(--muted); }
.va-d.up { color: #0b7a50; } .va-d.down { color: #b3262c; }
.va-note { margin: 8px 2px 0; font-size: 10.2px; color: var(--muted); line-height: 1.65; }

/* ── 📘 IM 프리뷰 개선 ─────────────────────────────────────────────── */
.im-request-note { margin: 0 0 10px; padding: 8px 11px; border-radius: 9px; background: #f5f9ff;
  border: 1px solid #d7e6f6; font-size: 10.8px; color: var(--text-2); line-height: 1.6; }
.im-request-note.ok { background: #f2fbf6; border-color: #b6e0c9; color: #0b6b47; }
.im-real { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap;
  margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #0b2a4a; color: #fff; }
.im-real b { display: block; font-size: 12px; }
.im-real span { font-size: 10.6px; color: #cfe0f0; }
.im-real.ghost { background: #f6f9fc; color: var(--text); border: 1px solid var(--line); }
.im-real.ghost b { color: var(--navy); }
.im-real.ghost span { color: var(--text-2); }
.im-real.none { background: #fffaf0; border: 1px solid #fde4b5; color: var(--text); }
.im-real.none b { color: #92400e; }
.im-real.none span { color: var(--text-2); }
.im-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.im-kpi { background: #f7fafd; border: 1px solid #e3ecf6; border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.im-kpi span { font-size: 9.6px; color: var(--muted); font-weight: 700; }
.im-kpi b { font-size: 13px; color: var(--navy); line-height: 1.35; }
.im-kpi em { font-style: normal; font-size: 9.4px; color: var(--muted); }
.im-points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.im-point { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--navy-3); border-radius: 8px; padding: 8px 10px; }
.im-point span { font-size: 9.8px; font-weight: 800; color: #0b6bcb; }
.im-point p { margin: 3px 0 0; font-size: 10.8px; color: var(--text-2); line-height: 1.55; }
.im-2col { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 12px; align-items: start; }
.im-mapbox { background: linear-gradient(135deg, #eef5fd, #f8fbff); border: 1px solid #d7e6f6; border-radius: 10px;
  padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.im-pin { font-size: 22px; }
.im-mapbox b { font-size: 12px; color: var(--navy); line-height: 1.45; }
.im-mapbox em { font-style: normal; font-size: 10.4px; color: var(--text-2); }
.im-mapbox i { font-style: normal; font-size: 9.4px; color: var(--muted); }
.im-loc { border-bottom: 1px dashed var(--line); padding: 6px 0; }
.im-loc:last-child { border-bottom: none; }
.im-loc span { font-size: 9.8px; font-weight: 800; color: #0b6bcb; }
.im-loc p { margin: 2px 0 0; font-size: 10.8px; color: var(--text-2); line-height: 1.55; }
.im-empty-line { background: #f7fafd; border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; margin: 6px 0 0; font-size: 10.8px; }
.im-steps-h { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 7px; margin-bottom: 12px; }
.im-steps-h .ims-step { flex-direction: column; align-items: flex-start; gap: 3px; }
.im-steps-h .ims-step b { font-size: 11px; color: var(--navy); }
.im-steps-h .ims-step em { font-style: normal; font-size: 9.4px; color: var(--muted); }
.im-va-table td { font-size: 10.8px; }

/* ── 🔑 NAI 임대(LM) 카드·상태 · TR 지도 레이어 ────────────────────── */
.nc-lm { font-size: 9.6px; font-weight: 800; border-radius: 5px; padding: 2px 6px; background: #e6f6f4; color: #0f766e; }
.nc-lm.lm-임대진행중 { background: #e0f2fe; color: #0369a1; }
.nc-lm.lm-임대완료 { background: #eef2f7; color: #4b5563; }
.nc-lm.lm-임대보류 { background: #f1f5f9; color: #64748b; }
.nai-card.is-lm { border-left: 3px solid #0f766e; }
.lm-chip.on { background: #0f766e !important; border-color: #0f766e !important; color: #fff !important; }
.map-btn.tr-layer.on { background: #0ea5e9; color: #fff; border-color: #0284c7; }

@media (max-width: 1100px) {
  .va-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .im-kpi-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .rp-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .vdr-grid { grid-template-columns: 1fr; }
  .vdr-rooms { flex-direction: row; overflow-x: auto; }
  .vdr-room { min-width: 200px; }
  .rp-cols, .rp-topdeals, .im-points { grid-template-columns: 1fr; }
  .im-2col { grid-template-columns: 1fr; }
  .va-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .va-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .im-kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .im-steps-h { grid-template-columns: 1fr 1fr; }
}

/* ── 🗒 미팅·의향 CRM ─────────────────────────────────────────────── */
.crm-in { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 7px; }
.crm-h { display: flex; align-items: center; gap: 7px; font-size: 10.8px; color: var(--text-2); }
.crm-h b { color: var(--navy); font-size: 11px; }
.crm-n { font-size: 10px; color: var(--muted); font-weight: 700; }
.crm-add { margin-left: auto; }
.crm-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.crm-list li { display: flex; align-items: baseline; gap: 6px; font-size: 10.6px; color: var(--text-2); line-height: 1.5; }
.crm-list .crm-memo { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-list em { font-style: normal; font-size: 9.6px; color: var(--muted); white-space: nowrap; }
.crm-more { margin-top: 4px; border: none; background: none; color: #0b6bcb; font-size: 10.4px; cursor: pointer; padding: 0; }
.crm-stage { display: inline-block; font-size: 9.4px; font-weight: 800; border-radius: 5px; padding: 1px 6px;
  background: #eef2f7; color: var(--text-2); white-space: nowrap; }
.crm-stage.s-매입검토 { background: #e8f0fd; color: #0b6bcb; }
.crm-stage.s-임차검토 { background: #e6f6f4; color: #0f766e; }
.crm-stage.s-투자검토 { background: #f3eefd; color: #6d3fd4; }
.crm-stage.s-개발SI참여 { background: #fdeef0; color: #b3262c; }
.crm-stage.s-단순미팅 { background: #f1f5f9; color: #475569; }
.crm-stage.s-조건협의 { background: #fff7ed; color: #b45309; }
.crm-time { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.crm-time li { border-left: 3px solid #cfdff0; padding: 4px 0 4px 10px; }
.crm-tl-head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.crm-tl-head b { font-size: 11.4px; color: var(--navy); }
.crm-tl-head em { font-style: normal; font-size: 10px; color: var(--muted); }
.crm-role { font-size: 9.4px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.crm-time p { margin: 3px 0 0; font-size: 11.2px; color: var(--text-2); line-height: 1.6; white-space: pre-wrap; }
.crm-empty { margin: 6px 0 0; font-size: 10.8px; color: var(--muted); }
.crm-local { margin: 6px 0 0; font-size: 10px; color: #b45309; }
.crm-modal { position: fixed; inset: 0; z-index: 165; background: rgba(9,20,34,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.crm-card { width: min(560px, 100%); max-height: 92vh; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.crm-card.wide { width: min(720px, 100%); }
.crm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#f7f9fc,#fff); }
.crm-card-head strong { font-size: 14px; color: var(--navy); }
.crm-card-body { padding: 13px 16px; overflow-y: auto; }
.crm-target { margin: 0 0 10px; font-size: 12.4px; font-weight: 800; color: var(--navy); }
.crm-target span { font-size: 10px; color: var(--muted); font-weight: 700; margin-left: 5px; }
.crm-detail h4 { display: flex; align-items: center; gap: 7px; }

/* 물류TF — 홈 타일에서도 VDR·대출요청은 노출하지 않음 (탭과 동일 규칙) */
body.role-logi [data-home="vdr"],
body.role-logi [data-home="loan"] { display: none !important; }

/* ── 📧 파트너 메일 공유 (2026-11-25) ─────────────────────────────── */
.share-modal { position: fixed; inset: 0; z-index: 150; background: rgba(9,20,34,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.share-modal.hidden { display: none; }
.sh-card { width: min(720px, 100%); max-height: 92vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(9,20,34,.35); overflow: hidden; }
.sh-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sh-head h3 { margin: 0 0 4px; font-size: 16px; color: var(--navy); }
.sh-head p { margin: 0; font-size: 11.6px; color: var(--muted); line-height: 1.6; }
.sh-scroll { padding: 14px 18px; overflow-y: auto; }
.sh-sec { margin-bottom: 14px; }
.sh-sec h4 { margin: 0 0 8px; font-size: 11.6px; color: var(--navy-2, var(--navy)); display: flex; align-items: center; gap: 8px; }
.sh-blindtag { font-style: normal; font-size: 10px; font-weight: 800; color: #0b6bcb; background: #e8f0fd;
  border-radius: 20px; padding: 2px 8px; }
.sh-orgs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.sh-org { padding: 7px 12px; border-radius: 20px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 11.6px; color: var(--text-2); font-weight: 700; }
.sh-org.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.sh-note { margin: 6px 0 0; font-size: 10.4px; color: var(--muted); line-height: 1.6; }
.sh-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; margin: 6px 0 8px; }
.sh-preset { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 9px; cursor: pointer; background: #fbfcfe; }
.sh-preset.on { border-color: var(--navy-3, #2f6fed); background: #eef4ff; }
.sh-preset input { margin: 0; }
.sh-preset span { display: flex; flex-direction: column; line-height: 1.35; }
.sh-preset b { font-size: 11.4px; color: var(--navy); font-weight: 700; }
.sh-preset em { font-style: normal; font-size: 10px; color: var(--muted); }
.sh-sec textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.7; }
.sh-actions { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; background: #fbfcfe; }
.sh-spacer { flex: 1; }
.action-btn.share { background: #eef4ff; color: #0b4a8f; border-color: #cfe0fa; }
.hub-share { padding: 2px 7px; font-size: 12px; }

/* ── 📇 SI·화주·FI 컨택포인트 · NAI 담당자 (2026-11-25) ─────────── */
.pr-owner { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 800;
  color: #0b4a8f; background: #eaf2ff; border: 1px solid #d3e2fb; border-radius: 20px; padding: 1px 7px; }
.pr-owner.none { color: #8a97a6; background: #f4f6f9; border-color: #e6ebf1; font-weight: 700; }
.pf-owner { height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 11.6px; color: var(--text-2); padding: 0 8px; max-width: 190px; }
.pf-owner:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(27,75,125,.12); }
.mf-req { font-size: 9px; font-weight: 800; color: #0b6bcb; background: #e8f0fd; border-radius: 10px; padding: 1px 6px; margin-left: 3px; }

/* 🏢 사옥 이벤트 (si_watch · 관리자 전용, 2026-11-26) */
.pr-siox{display:inline-flex;align-items:center;gap:2px;padding:1px 6px;border-radius:999px;
  background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe;font-size:11px;font-weight:700;white-space:nowrap}
.dc-si{border:1px solid #c7d2fe;background:#f8faff;border-radius:10px;padding:10px 12px}
.dc-si h4{color:#3730a3}
.dc-si-lock{font-size:10px;font-weight:700;color:#fff;background:#4f46e5;border-radius:999px;padding:1px 6px;margin-left:6px;vertical-align:middle}
.dc-si .dc-kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px 14px}
.dc-si .dc-kv span{font-size:12px;color:#1f2937;line-height:1.45}
.dc-si .dc-kv b{display:block;font-size:10px;color:#6366f1;margin-bottom:1px}

/* ═════════════ 2026-11-27 홈 재배치 · 거래상태 · 실수요자 · 자문사 딜 시트 ═════════════ */

/* 물건 구분 — '자산 구분'과 'NAI 실행 딜' 두 그룹으로 정리 (2026-11-27 재디자인) */
.deal-group .dg-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 800; color: var(--muted); letter-spacing: .02em;
}
.deal-group .dg-head::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.deal-row { display: grid; gap: 6px; }
.deal-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.deal-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* 좁은 폭(모바일 드로어·작은 창)에서는 칸이 짜부라지지 않고 2열로 떨어지게 */
@media (max-width: 360px) {
  .deal-row.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 거래 상태 칩 (매각중 · 임대중) */
.trade-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.trade-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 4px 9px; font-size: 11.5px; font-weight: 700; color: var(--text-2);
  cursor: pointer; transition: background .12s, border-color .12s;
}
.trade-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tc, #334155); flex: none; }
.trade-chip .cnt { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.trade-chip:hover { background: var(--panel-2); }
.trade-chip.is-on { border-color: var(--tc); box-shadow: inset 0 0 0 1px var(--tc); background: #fff; color: var(--text); }
.trade-chip.t-sale.is-on { background: #fef2f2; }
.trade-chip.t-lease.is-on { background: #ecfdf5; }

/* 섹터 그룹 — 🎯 실수요자 / 🏢 자산 */
.sector-group { margin-bottom: 8px; }
.sector-group + .sector-group { margin-top: 2px; }
.sg-head { display: flex; align-items: baseline; gap: 6px; margin: 0 0 4px; }
.sg-head b { font-size: 11px; font-weight: 800; color: var(--text-2); }
.sg-head span { font-size: 9.8px; color: var(--muted); }
.sector-group .chip-grid { grid-template-columns: 1fr 1fr; }

/* 목록 · 상세 거래상태 배지 */
.trade-badge {
  display: inline-flex; align-items: center; gap: 3px; vertical-align: middle;
  font-size: 10px; font-weight: 800; border-radius: 5px; padding: 1px 5px; margin-right: 4px;
  border: 1px solid transparent;
}
.trade-badge.mini { font-size: 9.2px; padding: 0 4px; margin-right: 3px; }
.trade-badge.t-sale { color: #b91c1c; background: #fff1f2; border-color: #fecaca; }
.trade-badge.t-lease { color: #0f766e; background: #ecfdf5; border-color: #99f6e4; }
.badge.trade { border: 1px solid transparent; }
.badge.trade.t-sale { color: #b91c1c; background: #fff1f2; border-color: #fecaca; }
.badge.trade.t-lease { color: #0f766e; background: #ecfdf5; border-color: #99f6e4; }

/* 범례 — 그룹 · 링 표시 */
.legend-group { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.legend-group > b { font-size: 10.5px; color: var(--muted); margin-right: 2px; }
.legend .dot.ring { background: #fff !important; border: 3px solid #fff; width: 11px; height: 11px; }

/* 홈 KPI — 버튼 (누르면 리스트) */
.kpi {
  -webkit-appearance: none; appearance: none; text-align: left; cursor: pointer;
  color: #fff; font-family: inherit; transition: background .12s, transform .12s;
}
.kpi:hover { background: rgba(255, 255, 255, .19); transform: translateY(-1px); }
.kpi:focus-visible { outline: 2px solid #ffd97a; outline-offset: 2px; }
.kpi-all .kpi-v { color: #dbeafe; }
.kpi-lease .kpi-v { color: #a7f3d0; }

/* 홈 — 오늘 아티클 · 공지 줄 */
.hc-today { grid-column: span 12; padding: 10px 14px; }
.today-row { display: flex; align-items: baseline; gap: 8px; min-height: 22px; }
.today-row + .today-row { margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--line); }
.today-row.noti { color: var(--text-2); }
.tr-k { font-size: 10.5px; font-weight: 800; color: var(--muted); white-space: nowrap; flex: none; }
.tr-v { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; min-width: 0; }
.tr-art, .tr-noti {
  border: 0; background: transparent; padding: 1px 0; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 700; color: var(--navy, #0b2a4a); text-align: left;
  display: inline-flex; align-items: baseline; gap: 5px; max-width: 100%;
}
.tr-noti { font-weight: 600; color: var(--text-2); }
.tr-art:hover .ta-t, .tr-noti:hover { text-decoration: underline; }
.tr-art .ta-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 74vw; }
.tr-art .ta-d { font-style: normal; font-size: 9.6px; font-weight: 700; color: #0b6bcb; background: #eaf2ff; border-radius: 999px; padding: 0 5px; }
.tr-dot { color: var(--muted); font-size: 11px; }
.tr-empty { font-size: 11.5px; color: var(--muted); }
.today-more { display: flex; gap: 8px; margin-top: 6px; }

/* 홈 카드 배치 — 단일 흐름 */
.hc-search, .hc-apply, .hc-deals, .hc-quick, .hc-today { grid-column: span 12; }
.hc-quick .quick-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.hc-apply .apply-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) {
  .hc-apply .apply-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hc-apply .apply-grid { grid-template-columns: 1fr; }
  .hc-search, .hc-apply, .hc-deals, .hc-quick, .hc-today { grid-column: span 1; }
  .tr-art .ta-t { max-width: 60vw; }
}

/* KPI 리스트 모달 */
.kp-list-head { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-bottom: 8px; }
.kpl-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kpl-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kpl-ic { margin-right: 3px; }
.kpl-chip b, .strip-chips .mini-btn b { font-weight: 800; color: var(--accent); margin-left: 2px; }
.kpl-chip.is-on b, .strip-chips .mini-btn.is-on b { color: var(--navy); }
.kpl-count { font-size: 11.5px; color: var(--text-2); margin-left: 4px; }
.kpl-count b { color: var(--navy, #0b2a4a); font-size: 13px; }
.kpl-spacer { flex: 1; }
.mini-btn.is-on { background: rgba(11, 107, 203, .14); color: var(--accent); }
.btn.mini { padding: 4px 9px; font-size: 11.5px; }
.strip-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.strip-note { font-size: 10px; color: var(--muted); margin-left: auto; }

/* ═════════════ 🧾 자문사 딜 프로세싱 시트 (2026-11-27) ═════════════ */
.advise-view {
  height: calc(100vh - var(--header-h) - var(--tabs-h));
  overflow-y: auto; background: var(--bg); padding: 14px 16px 28px;
}
.view-advise .app-body { display: none; }
.adv-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--navy) 0%, #1f6aa5 100%);
  color: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-md); }
.adv-head h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.01em; }
.adv-head p { margin: 0; font-size: 11.8px; color: #d6e6f5; line-height: 1.6; }
.adv-head .adv-meta { margin-top: 5px; font-size: 10.8px; color: #9dc4e8; }
.adv-head b { color: #ffd97a; }
.adv-tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.adv-stages { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 10px; }
.adv-stage {
  display: flex; flex-direction: column; gap: 1px; min-width: 96px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 11px;
  font-family: inherit; text-align: left;
}
.adv-stage b { font-size: 11px; color: var(--text-2); font-weight: 700; }
.adv-stage span { font-size: 16px; font-weight: 800; color: var(--navy, #0b2a4a); }
.adv-stage.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f5f9ff; }
.adv-stage:hover { background: var(--panel-2); }
.adv-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.adv-toolbar input {
  flex: 1 1 260px; height: 32px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 10px; font-size: 12px; font-family: inherit; background: #fff;
}
.adv-toolbar input:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(27, 75, 125, .12); }
.adv-count { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.adv-body { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.adv-table-wrap { overflow-x: auto; }
.adv-table { width: 100%; border-collapse: collapse; font-size: 11.6px; }
.adv-table th { background: var(--panel-2); color: var(--text-2); font-weight: 800; text-align: left;
  padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 10.8px; }
.adv-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adv-table tr:hover td { background: #fafcff; }
.adv-table td.nowrap { white-space: nowrap; }
.adv-table .wide-cell b { display: block; font-size: 12px; color: var(--navy, #0b2a4a); }
.adv-table .wide-cell { max-width: 420px; }
.adv-sub { display: block; font-size: 10.4px; color: var(--muted); margin-top: 1px; }
.adv-when em { display: block; font-style: normal; font-size: 10px; color: #b45309; font-weight: 700; }
.adv-pill { display: inline-block; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 2px 8px;
  background: #eef2f7; color: #334155; white-space: nowrap; }
.adv-pill.s0 { background: #e0f2fe; color: #075985; }
.adv-pill.s1 { background: #ede9fe; color: #5b21b6; }
.adv-pill.s2 { background: #fef3c7; color: #92400e; }
.adv-pill.s3 { background: #dcfce7; color: #166534; }
.adv-pill.s4 { background: #cffafe; color: #155e75; }
.adv-pill.s5 { background: #e5e7eb; color: #374151; }
.adv-bar { display: block; width: 84px; height: 4px; border-radius: 3px; background: #e8eef6; margin-top: 5px; }
.adv-bar i { display: block; height: 4px; border-radius: 3px; background: linear-gradient(90deg, #2f6fed, #12a06b); }
.adv-empty { padding: 26px 10px; text-align: center; color: var(--muted); font-size: 12px; }
.adv-guide p { margin: 4px 0; font-size: 12px; }
.adv-guide p b { color: var(--navy, #0b2a4a); }
.adv-guide-btns { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.adv-foot { margin: 8px 2px 0; font-size: 10.6px; color: var(--muted); }
.kpl-all { font-style: normal; font-size: 10.5px; color: var(--muted); }
.deal-card .dc-badge.lease { background: #ecfdf5; color: #0f766e; border: 1px solid #99f6e4; }
/* KPI 박스 — 히어로 높이에 맞춰 내용 세로 중앙 정렬 (2026-11-27) */
.home-hero { align-items: center; }
.hh-kpis { align-self: stretch; }
.kpi { justify-content: center; }
/* 섹터 칩 — 그룹 안에서 글자 폭에 맞춰 흐르게 (세로로 찢어지던 문제 수정, 2026-11-27) */
.sector-group .chip-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.sector-group .chip { width: auto; white-space: nowrap; padding: 5px 8px; font-size: 11.5px; }
.sector-group .chip .cnt { margin-left: 2px; }
.sector-group .sg-head { flex-wrap: wrap; row-gap: 2px; }
/* 공개 소개(게이트 하단) — 검색엔진·비회원 안내 (2026-11-27) */
.gate-public {
  max-width: 620px; margin: 18px auto 0; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm); text-align: left;
}
.gate-public h2 { margin: 0 0 8px; font-size: 15px; color: var(--navy, #0b2a4a); letter-spacing: -.01em; }
.gate-public p { margin: 0 0 8px; font-size: 12px; line-height: 1.65; color: var(--text-2); }
.gate-public ul { margin: 0 0 8px; padding-left: 18px; }
.gate-public li { font-size: 12px; line-height: 1.6; color: var(--text-2); margin-bottom: 3px; }
.gate-public .gp-note { font-size: 11px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }
.im-hold {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 8px; padding: 7px 10px; border-radius: 8px;
  background: #f7fafd; border: 1px solid var(--line); font-size: 11px; color: var(--text-2);
}
.val-assume-note { margin: 4px 0 0; font-size: 10.8px; color: var(--muted); line-height: 1.5; }
.val-assume-note b { color: var(--text-2); }

/* ───────────── 🗂️ NAI 행정 — 팀장·월간 회의록 (2026-11-27) ───────────── */
.admin-hq-view { height: calc(100vh - var(--header-h) - var(--tabs-h)); overflow-y: auto; background: var(--bg); }
.hq-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.hq-body { margin-top: 10px; }
.hq-count { font-size: 11.4px; color: var(--muted); margin: 4px 0 2px; }
.hq-card h4 { margin-bottom: 6px; }
.hq-card .hq-acts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.hq-card .hq-acts .mini-btn { font-size: 10.6px; padding: 3px 7px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; color: var(--text-2); }
.hq-card .hq-acts .mini-btn:hover { background: #eef4fb; border-color: #c9d8e8; }
.nt-tag.hq-kind { color: #0b2a4a; background: #e8eef6; }
.nt-tag.hq-deal { color: #b3262c; background: #fdecec; }
.hq-meta { font-size: 11.4px; color: var(--muted); margin: 8px 0 0; }
.hq-empty { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 18px 16px; }
.hq-empty b { color: var(--navy); }
.hq-empty p { margin: 6px 0 0; font-size: 11.8px; color: var(--text-2); line-height: 1.6; }
.hq-acl-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-end; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 10px 0; }
.hq-acl-form label { display: flex; flex-direction: column; gap: 3px; font-size: 10.8px; color: var(--muted); }
.hq-acl-form input, .hq-acl-form select { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font-size: 11.6px; background: #fff; min-width: 150px; }
.hq-dealpick { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.8px; color: var(--text-2); }
@media (max-width: 900px) {
  .hq-wrap { padding: 12px 10px 30px; }
  .hq-acl-form input, .hq-acl-form select { min-width: 120px; }
}
/* 🤝 공유 그룹(TFT) 필터 — 2026-11-27 */
.tft-banner {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 8px 16px 0; padding: 7px 12px; border-radius: 9px;
  background: #eef4ff; border: 1px solid #cfe0fa; color: #0b4a8f; font-size: 11.8px;
}
.tft-banner b { font-size: 12px; }
.tft-banner .tft-types { font-size: 10.5px; color: #4b6f9a; }
.tft-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tft-k { font-size: 10.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.tft-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 9px;
  font-size: 11.2px; font-weight: 700; color: var(--text-2); cursor: pointer; font-family: inherit;
}
.tft-chip em { font-style: normal; font-weight: 600; color: var(--muted); font-size: 9.8px; margin-left: 3px; }
.tft-chip.is-on { border-color: #2f6fed; background: #eef4ff; color: #0b4a8f; box-shadow: inset 0 0 0 1px #2f6fed; }
.strip-tft { font-size: 10.8px; font-weight: 800; color: #0b4a8f; background: #eef4ff; border: 1px solid #cfe0fa; border-radius: 999px; padding: 2px 9px; }
.hub-noshare { color: #b6c0cc; font-size: 11px; }
.tft-modal { position: fixed; inset: 0; z-index: 9000; background: rgba(9,20,35,.45); display: flex; align-items: center; justify-content: center; padding: 18px; }
.tft-modal.hidden { display: none; }
.tftm-card { background: #fff; border-radius: 12px; width: min(560px, 96vw); max-height: 82vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 18px 40px rgba(6,24,44,.28); }
.tftm-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tftm-head b { font-size: 13px; color: var(--navy, #0b2a4a); }
.tftm-head span { font-size: 11px; color: var(--muted); }
.tftm-head .tr-x { margin-left: auto; }
.tftm-body { overflow-y: auto; padding: 8px; }

/* ═════════════ 2026-11-27 물건 지도 좌측 패널 정리 (지도 화면 전용) ═════════════
   검색 / 필터 / 목록 세 구역으로 나누고, 필터는 자기 영역에서만 스크롤합니다.
   목록은 별도 스크롤이라 필터가 길어져도 목록이 밀려나지 않습니다.
   다른 탭의 칩 스타일은 건드리지 않도록 #sidebar 하위로만 적용합니다. */
#sidebar { background: #fff; }
#sidebar .sidebar-head { padding: 10px 12px 9px; background: #fff; }
#sidebar .search-wrap input { height: 34px; font-size: 12.5px; border-radius: 8px; }

#sidebar .sidebar-filters {
  flex: 0 0 auto; max-height: 56%; overflow-y: auto; overscroll-behavior: contain;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
#sidebar .sidebar-filters::-webkit-scrollbar { width: 8px; }
#sidebar .sidebar-filters::-webkit-scrollbar-thumb { background: #dce3ec; border-radius: 8px; border: 2px solid #fbfcfe; }

#sidebar .filter-block { padding: 10px 12px; border-bottom: 0; border-top: 1px solid var(--line-2); }
#sidebar .filter-block:first-child { border-top: 0; }
#sidebar .filter-block.deal-block { border-top: 0; }
#sidebar .filter-title {
  font-size: 10px; font-weight: 800; letter-spacing: .07em; color: #8492a3;
  text-transform: uppercase; margin-bottom: 7px;
}
#sidebar .filter-title .mini-btn { font-size: 10px; font-weight: 700; letter-spacing: 0; padding: 1px 2px; }

/* 칩 규격 통일 — 높이·패딩·라운드·글자 크기 한 값으로 */
#sidebar .chip {
  min-height: 27px; padding: 3px 8px; border-radius: 7px;
  font-size: 11.5px; font-weight: 600; gap: 5px;
  background: #fff; border: 1px solid var(--line); color: var(--text-2);
}
#sidebar .chip .cnt { font-size: 10px; font-weight: 600; color: #9aa6b4; }
#sidebar .chip:hover { background: #f2f6fb; }
/* 선택 = 채움, 비선택 = 테두리만 (색 체계는 기존 섹터·상태 색 유지) */
#sidebar .chip.is-on { background: currentColor; border-color: currentColor; }
#sidebar .chip.is-on span { color: #fff !important; }
#sidebar .chip.is-on .dot { background: #fff !important; }
#sidebar .chip.is-on .cnt { color: rgba(255, 255, 255, .82) !important; }
#sidebar .chip.is-off { opacity: .55; background: #f7f9fc; }
#sidebar .chip-grid { gap: 5px; }
#sidebar .chip-wrap { gap: 5px; }

/* 거래 상태 칩 — 규격 통일, 선택 시 채움 */
#sidebar .trade-chips { gap: 5px; margin: 8px 0 0; }
#sidebar .trade-chip { min-height: 27px; padding: 3px 9px; font-size: 11px; font-weight: 700; gap: 5px; }
#sidebar .trade-chip .cnt { font-size: 10px; }
#sidebar .trade-chip.is-on { background: var(--tc); border-color: var(--tc); box-shadow: none; }
#sidebar .trade-chip.is-on, #sidebar .trade-chip.is-on .cnt { color: #fff; }
#sidebar .trade-chip.is-on .dot { background: #fff; }
#sidebar .deal-hint { margin-top: 8px; font-size: 10px; line-height: 1.5; color: #93a0af; }

#sidebar .filter-stack { gap: 5px; }
#sidebar .filter-row { gap: 8px; }
#sidebar .filter-row label { width: 56px; font-size: 10.5px; font-weight: 700; color: #8492a3; }
#sidebar .filter-stack select { border-radius: 7px; padding: 5px 7px; font-size: 11.5px; border-color: var(--line); }

/* 목록 — 목록만 스크롤 */
#sidebar .sidebar-list { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#sidebar .list-head {
  position: static; padding: 8px 12px; background: #fff;
  border-bottom: 1px solid var(--line-2);
  font-size: 11px; font-weight: 800; color: var(--text-2);
}
#sidebar .list-head-right { align-items: center; gap: 8px; }
#sidebar .list-sort {
  font-size: 9.5px; font-weight: 700; color: #93a0af;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 6px;
}
#sidebar .asset-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 6px 12px; }
#sidebar .asset-list::-webkit-scrollbar { width: 8px; }
#sidebar .asset-list::-webkit-scrollbar-thumb { background: #dce3ec; border-radius: 8px; border: 2px solid #fff; }
#sidebar .asset-row { padding: 8px 9px; border-radius: 8px; border: 1px solid transparent; margin-bottom: 1px; gap: 8px; }
#sidebar .asset-row + .asset-row { border-top: 0; }
#sidebar .asset-row:hover { background: #f4f7fb; }
#sidebar .asset-row.is-selected { background: #eaf3fd; border-color: #bcd7f5; }
#sidebar .asset-row .row-name { font-size: 12.5px; font-weight: 700; }
#sidebar .asset-row .row-sub { font-size: 10.5px; }
#sidebar .asset-row .row-meta { font-size: 10px; }
#sidebar .list-more { flex: none; padding: 8px 12px; font-size: 11px; border-top: 1px solid var(--line-2); background: #fff; }

@media (max-width: 900px) {
  #sidebar .sidebar-filters { max-height: 46%; }
}

/* ═════════════ 📑 RFP 발주 · 🤝 자문사 포털 (2026-11-27) ═════════════ */
.rfp-view, .portal-view {
  height: calc(100vh - var(--header-h) - var(--tabs-h));
  overflow-y: auto; background: var(--bg);
}
body.view-rfp .app-body, body.view-portal .app-body { display: none; }
.rfp-shell { max-width: 1360px; margin: 0 auto; padding: 16px 16px 44px; }
.rfp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.rfp-title h2 { margin: 0 0 5px; font-size: 19px; color: var(--navy); letter-spacing: -.01em; }
.rfp-title p { margin: 0; font-size: 11.8px; color: var(--text-2); line-height: 1.65; max-width: 820px; }
.rfp-title p.rfp-meta { margin-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 10.8px; color: var(--muted); }
.rfp-beta { display: inline-block; vertical-align: middle; font-size: 9.5px; font-weight: 800; letter-spacing: .02em;
  color: #0b6bcb; background: #eaf3ff; border: 1px solid #cfe0fa; border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.rfp-mode { font-size: 10px; font-weight: 800; color: #0f766e; background: #ecfdf5; border: 1px solid #a7f3d0;
  border-radius: 999px; padding: 2px 9px; }
.rfp-mode.on { color: #0b4a8f; background: #eef4ff; border-color: #cfe0fa; }
.rfp-top-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.rfp-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 12px; }
.rfp-step { display: flex; flex-direction: column; gap: 2px; min-width: 150px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 9px 13px; font-family: inherit; }
.rfp-step b { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.rfp-step b i { font-style: normal; width: 17px; height: 17px; border-radius: 50%; background: #e8eef6; color: #40556e;
  font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.rfp-step span { font-size: 10.4px; color: var(--muted); }
.rfp-step:hover { background: #f6fafe; }
.rfp-step.on { border-color: var(--navy); background: #eef5fd; box-shadow: inset 0 0 0 1px var(--navy); }
.rfp-step.on b i { background: var(--navy); color: #fff; }

.rfp-grid { display: grid; grid-template-columns: 272px minmax(0,1fr); gap: 14px; align-items: start; }
.rfp-aside { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: var(--shadow-sm); }
.rfp-aside-head { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--navy); padding: 2px 4px 8px; }
.rfp-aside-head span { font-size: 10px; color: var(--muted); font-weight: 700; }
.rfp-aside-empty, .rfp-aside-foot { font-size: 10.6px; color: var(--muted); line-height: 1.6; margin: 6px 4px; }
.rfp-worklist { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.rfp-work { display: flex; flex-direction: column; gap: 2px; text-align: left; border: 1px solid transparent; border-radius: 9px;
  padding: 8px 9px; background: var(--panel-2); cursor: pointer; font-family: inherit; }
.rfp-work:hover { border-color: #cddced; background: #f6fafe; }
.rfp-work.on { border-color: var(--navy-3); background: #eef5fd; box-shadow: inset 3px 0 0 var(--navy-3); }
.rfp-work strong { font-size: 12px; color: var(--navy); }
.rfp-work-sub { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rfp-work-meta { font-size: 9.8px; color: #0f766e; font-weight: 700; }
.rfp-main { min-height: 460px; }

.rfp-empty { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center;
  font-size: 12px; color: var(--text-2); line-height: 1.7; }
.rfp-empty.big { padding: 46px 22px; }
.rfp-empty b { display: block; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.rfp-empty p { margin: 6px 0 12px; color: var(--muted); }
.rfp-sec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 11px; }
.rfp-sec-head h3 { margin: 0 0 3px; font-size: 15.5px; color: var(--navy); }
.rfp-sec-head p { margin: 0; font-size: 11.2px; color: var(--muted); line-height: 1.6; }
.rfp-sec-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rfp-hint { font-size: 10.8px; color: var(--muted); line-height: 1.65; margin: 7px 2px; }
.rfp-hint b { color: var(--text-2); }
.rfp-muted { color: #94a3b8; font-size: 10.5px; }
.rfp-err { color: #b3262c; background: #fdecec; border: 1px solid #f6c9c9; border-radius: 8px; padding: 7px 10px; font-size: 11px; margin: 8px 0; }
.rfp-note { font-size: 11.2px; color: var(--text-2); line-height: 1.65; margin: 0 0 10px; }

/* 자료 카드 */
.rfp-docgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.rfp-doccard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-sm); }
.rfp-doccard.k-rentroll { grid-column: 1 / -1; }
.rfp-doccard.k-opex { grid-column: 1 / -1; }
.rfp-doccard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line-2); padding-bottom: 8px; }
.rfp-doccard-head b { font-size: 12.4px; color: var(--navy); display: block; }
.rfp-doccard-head span { font-size: 10.2px; color: var(--muted); }
.rfp-doccard-tools { display: flex; gap: 5px; flex-shrink: 0; }
.rfp-doccard-empty { font-size: 10.8px; color: var(--muted); margin: 9px 2px 2px; }
.rfp-filelist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.rfp-filelist li { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; }
.rfp-filelist.big li { padding: 8px 10px; }
.rfp-file-ico { font-size: 14px; flex-shrink: 0; }
.rfp-file-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rfp-file-main b { font-size: 11.4px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rfp-file-main em { font-style: normal; font-size: 9.8px; color: var(--muted); }
.rfp-file-act { display: flex; gap: 4px; flex-shrink: 0; }

.rfp-summary { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 9px; }
.rfp-kpis { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.rfp-kpi { display: flex; flex-direction: column; background: #f4f8fd; border: 1px solid #e1ebf7; border-radius: 9px; padding: 6px 11px; min-width: 88px; }
.rfp-kpi b { font-size: 13.5px; color: var(--navy); letter-spacing: -.01em; }
.rfp-kpi em { font-style: normal; font-size: 9.6px; color: var(--muted); }
.rfp-pmline { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 6px; }
.rfp-pm { display: flex; flex-direction: column; min-width: 108px; border: 1px solid var(--line); border-radius: 9px; padding: 6px 8px; background: #fff; }
.rfp-pm.latest { border-color: #0f766e; background: #ecfdf5; }
.rfp-pm b { font-size: 11px; color: var(--navy); }
.rfp-pm em { font-style: normal; font-size: 9px; color: #0f766e; font-weight: 800; }
.rfp-pm span { font-size: 9.4px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 표 */
.rfp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.rfp-table { width: 100%; border-collapse: collapse; font-size: 11px; background: #fff; }
.rfp-table th, .rfp-table td { padding: 7px 9px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.rfp-table thead th { background: #f6f9fc; color: #40556e; font-size: 10.4px; font-weight: 800; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.rfp-table tbody tr:last-child td { border-bottom: none; }
.rfp-table tbody tr:hover td { background: #fbfdff; }
.rfp-table .num, .rfp-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.rfp-table .ctr { text-align: center; }
.rfp-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.rfp-table.small th, .rfp-table.small td { padding: 5px 7px; font-size: 10.4px; }
.rfp-table tr.vac td { color: #94a3b8; background: #fcfcfd; }
.rfp-table tr.sum td { background: #f6f9fc; font-weight: 800; }
.rfp-table .sticky-col { position: sticky; left: 0; background: #fff; z-index: 2; min-width: 128px; box-shadow: 1px 0 0 var(--line-2); }
.rfp-cmp th:first-child { min-width: 132px; }
.rfp-th-sub { display: block; font-size: 9.4px; color: var(--muted); font-weight: 600; }
.rfp-in { width: 100%; min-width: 54px; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font-size: 11px; font-family: inherit; background: #fff; }
.rfp-in.num { text-align: right; }
.rfp-in.memo { min-width: 150px; resize: vertical; }
.rfp-in:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(27,75,125,.12); }
.rfp-total td { background: #eef5fd !important; font-weight: 800; font-size: 12.5px; }
.rfp-rank td { background: #f4f8fd !important; font-weight: 700; }
.rfp-crit-hint { display: block; font-style: normal; font-size: 9.4px; color: var(--muted); font-weight: 400; }

/* RFP 목록·문서 */
.rfp-rfplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 9px; margin-bottom: 12px; }
.rfp-rfpc { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; border: 1px solid var(--line);
  background: #fff; border-radius: 11px; padding: 10px 12px; cursor: pointer; font-family: inherit; }
.rfp-rfpc:hover { border-color: #cddced; background: #f9fbff; }
.rfp-rfpc.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #f2f8ff; }
.rfp-rfpc strong { font-size: 12px; color: var(--navy); }
.rfp-rfpc-meta { font-size: 10px; color: var(--muted); }
.rfp-rfpc-st { font-size: 9.4px; font-weight: 800; border-radius: 999px; padding: 1px 8px; background: #eef2f7; color: #40556e; }
.rfp-rfpc-st.s-배포 { background: #eef4ff; color: #0b4a8f; }
.rfp-rfpc-st.s-제안\ 접수 { background: #fff7ed; color: #b45309; }
.rfp-rfpc-st.s-선정 { background: #ecfdf5; color: #0f766e; }
.rfp-rfpc-st.s-종결 { background: #f1f5f9; color: #64748b; }
.rfp-rfpview { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-sm); }
.rfp-rfpview-tools { justify-content: flex-end; margin-bottom: 10px; border-bottom: 1px solid var(--line-2); padding-bottom: 9px; }
.rfp-due { font-size: 10.6px; font-weight: 800; color: #0b4a8f; background: #eef4ff; border: 1px solid #cfe0fa; border-radius: 999px; padding: 3px 10px; }
.rfp-due.soon { color: #b45309; background: #fff7ed; border-color: #fed7aa; }
.rfp-due.over { color: #b3262c; background: #fdecec; border-color: #f6c9c9; }
.rfp-rfpchips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.rfp-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 11px;
  color: var(--text-2); cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 5px; }
.rfp-chip em { font-style: normal; font-size: 9.4px; color: var(--muted); }
.rfp-chip:hover { background: var(--panel-2); }
.rfp-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.rfp-chip.on em { color: #cfe0fa; }
.rfp-sel { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 11px; font-family: inherit; background: #fff; max-width: 260px; }

.rfp-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.rfp-panel-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 9px; }
.rfp-panel-head b { font-size: 12.6px; color: var(--navy); }
.rfp-panel-head > span { font-size: 10.4px; color: var(--muted); }
.rfp-panel-tools { margin-left: auto; display: flex; gap: 5px; }
.rfp-tag { display: inline-block; font-size: 9.6px; font-weight: 800; border-radius: 999px; padding: 2px 8px; background: #eef2f7; color: #40556e; }
.rfp-tag.ok { background: #ecfdf5; color: #0f766e; }
.rfp-tag.wait { background: #fff7ed; color: #b45309; }
.rfp-tag.off { background: #fdecec; color: #b3262c; }
.rfp-tag.pool-FI { background: #eef4ff; color: #0b4a8f; }
.rfp-tag.pool-SI { background: #f3eefd; color: #6d3fd4; }
.rfp-tag.pool-화주 { background: #fff7ed; color: #b45309; }
.rfp-select-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rfp-selectbtn { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 13px; font-size: 11.6px;
  color: var(--text-2); cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 7px; }
.rfp-selectbtn em { font-style: normal; font-size: 10px; color: var(--muted); }
.rfp-selectbtn.on { border-color: #0f766e; background: #ecfdf5; color: #0f766e; font-weight: 800; }

/* 문서(RFP) */
.rfp-doc { font-size: 11.6px; color: var(--text-2); line-height: 1.72; }
.rfp-doc-head { border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 12px; }
.rfp-doc-kicker { font-size: 9.4px; letter-spacing: .14em; color: #0b6bcb; font-weight: 800; }
.rfp-doc-head h1 { margin: 4px 0 5px; font-size: 19px; color: var(--navy); letter-spacing: -.01em; }
.rfp-doc-head p { margin: 0; font-size: 10.8px; color: var(--muted); }
.rfp-doc-meta { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.rfp-doc-meta th, .rfp-doc-meta td { border: 1px solid var(--line); padding: 5px 8px; font-size: 10.8px; text-align: left; }
.rfp-doc-meta th { background: #f6f9fc; color: #40556e; width: 90px; white-space: nowrap; }
.rfp-doc section { margin: 0 0 12px; }
.rfp-doc h3 { font-size: 12.4px; color: var(--navy); margin: 0 0 5px; padding-bottom: 3px; border-bottom: 1px solid var(--line-2); }
.rfp-pre { white-space: pre-wrap; background: #fafcff; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 11px; font-size: 11.2px; }
.rfp-doc-list { margin: 4px 0 4px 16px; padding: 0; font-size: 11.2px; }
.rfp-doc-list li { margin: 2px 0; }
.rfp-doc-table { width: 100%; border-collapse: collapse; margin: 5px 0; }
.rfp-doc-table th, .rfp-doc-table td { border: 1px solid var(--line); padding: 5px 8px; font-size: 10.8px; text-align: left; }
.rfp-doc-table th { background: #f6f9fc; }
.rfp-doc-table .num { text-align: right; }
.rfp-doc-note { font-size: 10.2px; color: var(--muted); margin: 4px 0 0; }
.rfp-doc-foot { margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }

/* 모달 */
.rfp-modal { position: fixed; inset: 0; z-index: 260; background: rgba(9,20,34,.55); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.rfp-modal.hidden { display: none; }
.rfp-card { width: min(620px, 100%); max-height: 92vh; background: #fff; border-radius: 14px; display: flex; flex-direction: column;
  box-shadow: 0 22px 50px rgba(6,24,44,.32); overflow: hidden; }
.rfp-card.wide { width: min(880px, 100%); }
.rfp-card-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rfp-card-head strong { font-size: 13.5px; color: var(--navy); }
.rfp-x { margin-left: auto; border: none; background: var(--panel-2); color: var(--text-2); width: 26px; height: 26px;
  border-radius: 8px; font-size: 16px; line-height: 1; cursor: pointer; }
.rfp-card-body { padding: 14px 16px; overflow-y: auto; flex: 1; }
.rfp-card-foot { padding: 11px 16px; border-top: 1px solid var(--line); background: #fbfcfe; display: flex; justify-content: flex-end; gap: 8px; }
.rfp-formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.rfp-f { display: flex; flex-direction: column; gap: 4px; font-size: 11.2px; color: var(--text-2); }
.rfp-f.wide { grid-column: 1 / -1; }
.rfp-f span b { color: var(--danger); }
.rfp-f em { font-style: normal; font-size: 10px; color: var(--muted); }
.rfp-f input, .rfp-f select, .rfp-f textarea { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 11.6px; font-family: inherit; background: #fff; color: var(--text); }
.rfp-f textarea { resize: vertical; line-height: 1.55; }
.rfp-f input:focus, .rfp-f select:focus, .rfp-f textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(27,75,125,.12); }
.rfp-f .mini-btn { align-self: flex-start; }
.rfp-uploadgrid { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 14px; }
.rfp-paste { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px; font-size: 11px; line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; overflow: auto; }
.rfp-det { margin-top: 9px; }
.rfp-det summary { font-size: 10.8px; color: #0b4a8f; cursor: pointer; padding: 4px 0; }
.rfp-search { margin-bottom: 8px; }
.rfp-search input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; font-size: 11.8px; font-family: inherit; }
.rfp-picklist { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.rfp-pick { display: flex; flex-direction: column; gap: 2px; text-align: left; border: 1px solid var(--line-2); background: #fff;
  border-radius: 9px; padding: 7px 10px; cursor: pointer; font-family: inherit; }
.rfp-pick:hover { border-color: #cddced; background: #f8fbff; }
.rfp-pick b { font-size: 11.6px; color: var(--navy); }
.rfp-pick span { font-size: 10.2px; color: var(--muted); }
.rfp-pick em { font-style: normal; font-size: 9.6px; color: #0f766e; font-weight: 800; align-self: flex-start; }
.rfp-pick label, label.rfp-pick { flex-direction: row; align-items: center; gap: 8px; }
label.rfp-pick { flex-wrap: wrap; }
label.rfp-pick b { flex: 0 0 auto; }
label.rfp-pick span { flex: 1; }
.rfp-advpick { display: flex; flex-direction: column; gap: 5px; max-height: 34vh; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 9px; padding: 7px; }
.rfp-advrow { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; font-size: 11.4px; }
.rfp-advrow:hover { background: var(--panel-2); }
.rfp-advrow span { display: flex; flex-direction: column; }
.rfp-advrow b { color: var(--navy); font-size: 11.6px; }
.rfp-advrow em { font-style: normal; font-size: 9.8px; color: var(--muted); }
.rfp-addadv { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; margin-top: 10px; }
.rfp-addadv-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.rfp-mailbox { margin-top: 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.rfp-mailbox pre { margin: 6px 0; font-size: 10.6px; color: var(--text-2); white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; }
.rfp-codebig { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 26px; font-weight: 800; letter-spacing: .08em;
  color: var(--navy); text-align: center; background: #eef5fd; border: 1px dashed #9dc4e8; border-radius: 12px; padding: 16px; margin: 10px 0; cursor: copy; }
.rfp-checkrow { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 8px 0; font-size: 11.2px; }
.rfp-checkrow b { font-size: 11px; color: var(--navy); margin-right: 4px; }
.rfp-checkrow label { display: inline-flex; align-items: center; gap: 5px; }
.rfp-pickone { margin-top: 8px; }
.rfp-pickone b { font-size: 10.6px; color: var(--muted); display: block; margin-bottom: 5px; }
.rfp-attach { border: 1px solid var(--line-2); border-radius: 9px; padding: 9px; margin-top: 10px; background: #fbfcfe; }
.rfp-attach-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.rfp-attach-head b { font-size: 11.4px; color: var(--navy); }
.rfp-attach-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rfp-attach-list li { display: flex; align-items: center; gap: 7px; font-size: 10.8px; background: #fff; border: 1px solid var(--line-2); border-radius: 7px; padding: 5px 8px; }
.rfp-attach-list li.empty { justify-content: center; color: var(--muted); border-style: dashed; }
.rfp-attach-list li span { flex: 1; }
.rfp-attach-list li em { font-style: normal; color: var(--muted); font-size: 9.8px; }

/* 인쇄 */
.rfp-print { position: fixed; inset: 0; z-index: 400; background: #eef2f7; overflow-y: auto; }
.rfp-print.hidden { display: none; }
.rfp-print-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; justify-content: space-between;
  background: var(--navy); color: #fff; padding: 10px 16px; font-size: 12.5px; }
.rfp-print-tools { display: flex; gap: 7px; }
.rfp-paper { max-width: 820px; margin: 18px auto 60px; background: #fff; padding: 44px 46px; border-radius: 4px; box-shadow: 0 10px 30px rgba(9,27,48,.16); }
@media print {
  body.rfp-printing > * { display: none !important; }
  body.rfp-printing #rfpPrint { display: block !important; position: static; background: #fff; }
  body.rfp-printing .rfp-print-bar { display: none !important; }
  body.rfp-printing .rfp-paper { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  .rfp-paper { padding: 0; }
}

/* 포털 */
.portal-body { min-width: 0; }
.portal-tabs .rfp-step { min-width: 132px; }
.portal-gate { display: flex; justify-content: center; padding: 28px 8px 40px; }
.portal-gate-card { width: min(560px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 24px; box-shadow: var(--shadow-md); }
.portal-gate-card h2 { margin: 8px 0 6px; font-size: 19px; color: var(--navy); }
.portal-gate-card p { font-size: 11.6px; color: var(--text-2); line-height: 1.65; margin: 0 0 8px; }
.portal-gate-card form { display: flex; gap: 8px; margin: 12px 0 8px; }
.portal-gate-card input { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 14px;
  font-family: ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.portal-gate-admin { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.portal-gate-admin b { font-size: 10.8px; color: var(--muted); display: block; margin-bottom: 6px; }
.rfp-portal-who { font-weight: 800; color: #0b4a8f; background: #eef4ff; border: 1px solid #cfe0fa; border-radius: 999px; padding: 2px 9px; }

@media (max-width: 1100px) {
  .rfp-grid { grid-template-columns: 1fr; }
  .rfp-aside { order: 2; }
  .rfp-worklist { max-height: none; }
}
@media (max-width: 760px) {
  .rfp-shell { padding: 10px 10px 36px; }
  .rfp-docgrid { grid-template-columns: 1fr; }
  .rfp-formgrid { grid-template-columns: 1fr; }
  .rfp-addadv { grid-template-columns: 1fr 1fr; }
  .rfp-uploadgrid { grid-template-columns: 1fr; }
  .rfp-step { min-width: 0; flex: 1 1 46%; }
  .rfp-paper { padding: 22px 18px; }
  .rfp-top-actions { width: 100%; }
}

/* ── 탭 16개 — 전체 라벨·여백을 조금씩 줄여 1440px 한 줄에 들어오게 (2026-11-28) ──
   · 압축(폭 줄이기)은 금지: 글자가 잘리지 않게 flex: 0 0 auto 로 두고,
     그래도 남는 폭이 모자라는 작은 화면(≤1100px)에서는 좌우 스크롤을 보조 수단으로 허용합니다. */
.app-tabs { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth; scroll-padding-inline: 8px; }
.app-tabs .vt-btn { flex: 0 0 auto; }
.app-tabs::-webkit-scrollbar { height: 4px; }
.app-tabs::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.app-tabs .vt-btn.is-active { box-shadow: var(--shadow-sm); }

/* ─────────── 2026-11-27 📤 화주 공개 목록 (물류센터 TFT) ─────────── */
.sl-modal { position: fixed; inset: 0; z-index: 90; background: rgba(9, 20, 35, .42); display: flex; align-items: center; justify-content: center; padding: 24px; }
.sl-modal.hidden { display: none; }
.sl-card { width: min(1080px, 100%); max-height: 88vh; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(9,20,35,.28); display: flex; flex-direction: column; overflow: hidden; }
.sl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line-2); }
.sl-head b { font-size: 14px; }
.sl-sub { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.sl-x { border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; }
.sl-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line-2); background: #fbfcfe; }
.sl-tools input[type="search"] { flex: 1 1 200px; min-width: 160px; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-size: 12.5px; }
.sl-tools select { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font-size: 12px; background: #fff; }
.sl-btn { height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 700; color: var(--text-2); cursor: pointer; }
.sl-btn:hover { background: #eef4fb; }
.sl-count { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); }
.sl-body { overflow: auto; }
.sl-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sl-table th { position: sticky; top: 0; background: #f4f7fb; text-align: left; font-size: 10.5px; letter-spacing: .04em; color: #8492a3; padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.sl-table td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.sl-table tbody tr:hover { background: #f8fbff; }
.sl-name strong { display: block; font-size: 12.5px; font-weight: 700; }
.sl-name span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.sl-pub { min-width: 58px; height: 26px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer; }
.sl-pub.is-on { background: #0f766e; border-color: #0f766e; color: #fff; }
.sl-in { width: 100%; min-width: 90px; height: 28px; border: 1px solid transparent; border-radius: 6px; padding: 0 6px; font-size: 12px; background: transparent; }
.sl-in:hover { border-color: var(--line-2); background: #fbfcfe; }
.sl-in:focus { border-color: var(--accent); background: #fff; outline: none; }
.sl-date { min-width: 118px; }
.sl-empty, .sl-more { padding: 18px; text-align: center; color: var(--muted); font-size: 11.5px; }

/* RFP 문서 상단 도구 버튼 가독성 (2026-11-27) */
.rfp-rfpview-tools .btn-ghost { border: 1px solid var(--line); color: var(--text-2); background: #fff; }
.rfp-rfpview-tools .btn-ghost:hover { background: var(--panel-2); }

/* RFP 화면 도구 버튼 테두리 (2026-11-27) */
.rfp-sec-tools .btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--text-2); }
.rfp-sec-tools .btn-ghost:hover { background: var(--panel-2); }

/* 밝은 배경 화면에서 btn-ghost 가 흰 글자(헤더용)라 안 보이던 문제 — RFP·포털·모달 보정 (2026-11-27) */
.rfp-view .btn-ghost, .portal-view .btn-ghost, .rfp-card .btn-ghost, .rfp-print .btn-ghost {
  background: #fff; border: 1px solid var(--line); color: var(--text-2);
}
.rfp-view .btn-ghost:hover, .portal-view .btn-ghost:hover, .rfp-card .btn-ghost:hover { background: var(--panel-2); }
.rfp-view .btn-ghost[disabled], .portal-view .btn-ghost[disabled] { opacity: .5; }

/* 📰 아티클 배포 대상 선택 (2026-11-27) — 🗂️ NAI 행정 안의 관리자 도구 */
.bc-card { width: min(880px, 96vw); }
.bc-body { max-height: 74vh; overflow-y: auto; }
.bc-sec { border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 10px 12px; margin: 10px 0; }
.bc-h { display: flex; align-items: center; gap: 7px; font-size: 12.4px; font-weight: 800; color: var(--navy); margin-bottom: 7px; }
.bc-h b { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 10.6px; font-weight: 800; }
.bc-count { font-size: 11.4px; font-weight: 700; color: #0b6bcb; }
.bc-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bc-select, .bc-search { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 12px;
  background: #fff; color: var(--text); font-family: inherit; min-width: 150px; }
.bc-select { flex: 1; min-width: 220px; }
.bc-search { flex: 1; }
.bc-select:focus, .bc-search:focus { outline: none; border-color: var(--accent); }
.bc-modes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.bc-mode { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; cursor: pointer;
  font-size: 11.8px; font-weight: 700; color: var(--text-2); font-family: inherit; }
.bc-mode:hover { background: var(--panel-2); }
.bc-mode.is-on { border-color: #2f6fed; background: #eef4ff; color: #0b4a8f; box-shadow: inset 0 0 0 1px #2f6fed; }
.bc-check { display: inline-flex; gap: 6px; align-items: center; font-size: 11.6px; color: var(--text-2); margin-bottom: 4px; }
.bc-hits { max-height: 176px; overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; margin-top: 7px; background: #fff; }
.bc-hit { display: grid; grid-template-columns: 84px 1fr auto 20px; gap: 6px; align-items: center; width: 100%;
  text-align: left; border: 0; border-bottom: 1px solid var(--line-2, #eef2f7); background: #fff; padding: 6px 9px;
  cursor: pointer; font-family: inherit; font-size: 11.6px; color: var(--text-2); }
.bc-hit:last-child { border-bottom: 0; }
.bc-hit:hover { background: #f7fafd; }
.bc-hit.is-on { background: #eef4ff; }
.bc-hit-name { font-weight: 800; color: var(--navy); }
.bc-hit-sub { font-size: 10.9px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-hit-mail { font-size: 10.7px; opacity: .78; }
.bc-hit-tick { font-weight: 800; color: #0b6bcb; text-align: center; }
.bc-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.bc-chip { display: inline-flex; align-items: center; gap: 4px; background: #eef4ff; border: 1px solid #cfe0fa; border-radius: 999px;
  padding: 2px 4px 2px 9px; font-size: 11px; color: #0b4a8f; font-weight: 700; }
.bc-chip-x { border: 0; background: transparent; color: #0b4a8f; cursor: pointer; font-size: 12px; line-height: 1; padding: 0 3px; font-family: inherit; }
.bc-empty { padding: 14px; text-align: center; color: var(--muted); font-size: 11.8px; background: var(--panel-2); border-radius: 9px; }
.bc-note { font-size: 10.8px; color: var(--muted); line-height: 1.6; margin: 8px 0 0; }
.bc-tablewrap { max-height: 260px; overflow: auto; margin-top: 6px; }
.bc-miss { font-size: 9.6px; color: #b45309; background: #fff5e6; border-radius: 4px; padding: 1px 4px; }
.bc-emptydir { border: 1px dashed var(--line); border-radius: 10px; padding: 12px; background: var(--panel-2); }
.bc-emptydir b { color: var(--navy); font-size: 12px; }
.bc-emptydir p { margin: 5px 0 8px; font-size: 11.4px; color: var(--text-2); line-height: 1.6; }
.bc-gedit { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.bc-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.bc-acts .btn { margin-left: auto; }
.bc-hist-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.bc-hdet { font-size: 10.8px; color: var(--text-2); background: #f7fafd; line-height: 1.7; }
@media (max-width: 700px) {
  .bc-hit { grid-template-columns: 1fr auto 20px; }
  .bc-hit-mail { display: none; }
  .bc-acts .btn { margin-left: 0; width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════
   2026-11-27 금융기관 실체 진위확인 (3단계 체크리스트 · 인증 대장)
   ══════════════════════════════════════════════════════════════════════ */
.lv-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.lv-chip { display: inline-flex; align-items: baseline; gap: 5px; font-size: 10.2px; font-weight: 800;
  border-radius: 999px; padding: 3px 10px; background: #eef2f7; color: #40556e; border: 1px solid transparent; }
.lv-chip b { font-size: 12.5px; letter-spacing: -.01em; }
.lv-chip.ok { background: #ecfdf5; color: #0f766e; border-color: #a7f3d0; }
.lv-chip.wait { background: #fff7ed; color: #b45309; border-color: #fde3c0; }
.lv-chip.off { background: #fdecec; color: #b3262c; border-color: #f6c9c9; }
.lv-chip.info { background: #eef4ff; color: #0b4a8f; border-color: #cfe0fa; }

.lv-prog { display: inline-flex; gap: 3px; vertical-align: middle; }
.lv-prog i { width: 17px; height: 17px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 9.6px; font-weight: 800; background: #eef2f7; color: #94a3b8; }
.lv-prog i.pass { background: #0f766e; color: #fff; }
.lv-prog i.warn { background: #f59e0b; color: #fff; }
.lv-prog i.fail { background: #b3262c; color: #fff; }
.lv-prog i.hold { background: #e2e8f0; color: #64748b; }

.lv-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lv-card { border: 1px solid var(--line); border-left: 3px solid #cbd5e1; border-radius: 12px;
  padding: 10px 11px; background: #fff; box-shadow: var(--shadow-sm); }
.lv-card.st-done { border-left-color: #0f766e; }
.lv-card.st-doing { border-left-color: #f59e0b; }
.lv-card.st-rejected { border-left-color: #b3262c; }
.lv-card.st-review { border-left-color: #dc2626; background: #fffbfb; }
.lv-head { display: flex; align-items: flex-start; gap: 7px; flex-wrap: wrap; }
.lv-head b { font-size: 12.6px; color: var(--navy); }
.lv-head em { font-style: normal; font-size: 9.8px; color: var(--muted); }
.lv-tools { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.lv-steps { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.lv-step { display: flex; align-items: flex-start; gap: 7px; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 5px 8px; background: #fbfcfe; }
.lv-step .lv-ico { width: 17px; height: 17px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; background: #eef2f7; color: #94a3b8; flex-shrink: 0; }
.lv-step b { font-size: 10.9px; color: var(--text-2); display: block; }
.lv-step em { font-style: normal; font-size: 9.8px; color: var(--muted); display: block; line-height: 1.5; }
.lv-step.st-pass { border-color: #bbf0d9; background: #f2fdf8; }
.lv-step.st-pass .lv-ico { background: #0f766e; color: #fff; }
.lv-step.st-warn { border-color: #fde3c0; background: #fffbf3; }
.lv-step.st-warn .lv-ico { background: #f59e0b; color: #fff; }
.lv-step.st-fail { border-color: #f6c9c9; background: #fdf5f5; }
.lv-step.st-fail .lv-ico { background: #b3262c; color: #fff; }
.lv-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 9.8px; color: var(--muted); }
.lv-reject { color: #b3262c; background: #fdecec; border: 1px dashed #f6c9c9; border-radius: 8px;
  padding: 5px 8px; font-size: 10.2px; margin-top: 7px; line-height: 1.55; }

.lv-sec { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 11px; background: #fbfdff; }
.lv-sec-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; flex-wrap: wrap; }
.lv-sec-head b { font-size: 11.9px; color: var(--navy); }
.lv-sec-head .lv-n { width: 19px; height: 19px; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lv-badge { font-size: 9.6px; font-weight: 800; border-radius: 999px; padding: 2px 8px; background: #eef2f7; color: #64748b; margin-left: auto; }
.lv-badge.pass { background: #ecfdf5; color: #0f766e; }
.lv-badge.warn { background: #fff7ed; color: #b45309; }
.lv-badge.fail { background: #fdecec; color: #b3262c; }
.lv-badge.hold { background: #f1f5f9; color: #475569; }
.lv-links { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 5px 0 8px; font-size: 10.2px; }
.lv-links a { color: #0b6bcb; text-decoration: none; }
.lv-links a:hover { text-decoration: underline; }
.lv-auto { border: 1px dashed var(--line); border-radius: 9px; padding: 8px 10px; background: #fff; font-size: 10.4px; color: var(--text-2); }
.lv-auto > b { font-size: 10.6px; color: var(--navy); }
.lv-auto ul { margin: 5px 0 0 14px; padding: 0; }
.lv-auto li { margin: 1px 0; line-height: 1.5; }
.lv-auto li.ok { color: #0f766e; }
.lv-auto li.warn { color: #b45309; }
.lv-auto li.bad { color: #b3262c; font-weight: 700; }
.lv-file { display: flex; align-items: center; gap: 7px; font-size: 10.4px; background: #f6f9fc;
  border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 8px; margin-top: 5px; }
.lv-file em { font-style: normal; font-size: 9.8px; color: var(--muted); }
.lv-file .mini-btn { margin-left: auto; }
.lv-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; margin-right: 5px; vertical-align: middle; }
.lv-dot.ok { background: #0f766e; }
.lv-dot.wait { background: #f59e0b; }
.lv-dot.off { background: #b3262c; }

@media (max-width: 860px) {
  .lv-board { grid-template-columns: 1fr; }
  .lv-sec .rfp-formgrid { grid-template-columns: 1fr; }
}
.bc-arttitle { font-size: 12.6px; font-weight: 800; color: var(--navy); line-height: 1.45; margin-top: 4px; }
.bc-artmeta { font-size: 10.8px; color: var(--muted); margin-top: 2px; }
.bc-artsum { font-size: 11.4px; color: var(--text-2); line-height: 1.6; margin-top: 4px; }
.bc-artnote { font-size: 10.4px; color: #9aa8b8; margin-top: 4px; }

/* ═════════════ 🧾 자문사 딜 — 자문사별 매각 자문 진행현황판 (2026-11-28 개편) ═════════════ */
.adx-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--navy) 0%, #1f6aa5 100%);
  color: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-md); }
.adx-head-main { flex: 1 1 420px; min-width: 0; }
.adx-head h2 { margin: 0 0 5px; font-size: 18px; letter-spacing: -.01em; }
.adx-head p { margin: 0; font-size: 11.9px; color: #d6e6f5; line-height: 1.65; }
.adx-head .adx-meta { margin-top: 6px; font-size: 10.8px; color: #9dc4e8; }
.adx-head b { color: #ffd97a; }
.adx-tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.adx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; margin: 12px 0 4px; }
.adx-tile { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; box-shadow: var(--shadow-sm); }
.adx-tile span { display: block; font-size: 10.8px; font-weight: 700; color: var(--text-2); }
.adx-tile b { display: block; font-size: 21px; font-weight: 800; color: var(--navy); line-height: 1.25; }
.adx-tile b em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-left: 3px; }
.adx-tile i { display: block; font-style: normal; font-size: 10px; color: #93a3b6; margin-top: 1px; }

.adx-groups { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 0; }
.adx-group { border: 1px solid var(--line); background: #fff; color: var(--text-2); border-radius: 999px;
  padding: 5px 12px; font-size: 11.6px; font-weight: 700; cursor: pointer; }
.adx-group:hover { background: var(--panel-2); }
.adx-group.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.adx-advs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.adx-adv { display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 9px;
  font-size: 11.4px; font-weight: 700; color: var(--text-2); }
.adx-adv .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--adx-c, #94a3b8); flex: 0 0 auto; }
.adx-adv b { color: var(--navy); font-size: 11.8px; }
.adx-adv:hover { background: var(--panel-2); }
.adx-adv.is-on { border-color: var(--adx-c, var(--accent)); box-shadow: inset 0 0 0 1px var(--adx-c, var(--accent)); background: #f6faff; }
.adx-adv.is-zero { opacity: .5; }
.adx-adv.all { background: #f1f5f9; }

.adx-stages { display: flex; gap: 6px; flex-wrap: wrap; margin: 9px 0 2px; }
.adx-stage { display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 10px;
  font-size: 11.4px; font-weight: 700; color: var(--text-2); }
.adx-stage i { width: 8px; height: 8px; border-radius: 2px; background: var(--adx-c, #94a3b8); }
.adx-stage b { color: var(--navy); }
.adx-stage:hover { background: var(--panel-2); }
.adx-stage.is-on { border-color: var(--adx-c, var(--accent)); box-shadow: inset 0 0 0 1px var(--adx-c, var(--accent)); background: #fbfdff; }
.adx-stage.all { background: #f1f5f9; }

.adx-toolbar { display: flex; align-items: center; gap: 10px; margin: 10px 0 8px; flex-wrap: wrap; }
.adx-toolbar input { flex: 1 1 240px; min-width: 160px; padding: 7px 11px; border: 1px solid var(--line);
  border-radius: 9px; font-family: inherit; font-size: 12px; background: #fff; }
.adx-toolbar input:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(27, 75, 125, .12); }
.adx-views { display: flex; gap: 4px; background: #eef3f9; border-radius: 9px; padding: 3px; }
.adx-view { border: 0; background: transparent; border-radius: 7px; padding: 4px 10px; font-size: 11.4px; font-weight: 700; color: var(--text-2); cursor: pointer; }
.adx-view.is-on { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.adx-count { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

.adx-body { min-height: 60px; }
.adx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 11px; }
.adx-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 13px 10px 15px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px;
  border-left: 4px solid var(--adx-c, #94a3b8); }
.adx-card:hover { box-shadow: var(--shadow-md); }
.adx-card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adx-sec { font-size: 10.6px; font-weight: 800; color: var(--navy); background: #eef4fb; border-radius: 6px; padding: 2px 7px; }
.adx-region { font-size: 10.6px; color: var(--muted); font-weight: 700; }
.adx-pill { display: inline-block; font-size: 10.4px; font-weight: 800; border-radius: 999px; padding: 2px 9px;
  color: #fff; background: var(--adx-c, #64748b); margin-left: auto; white-space: nowrap; }
.adx-card h3 { margin: 1px 0 0; font-size: 14.2px; color: var(--navy); letter-spacing: -.01em; line-height: 1.35; }
.adx-where { margin: 0; font-size: 10.9px; color: var(--muted); line-height: 1.5; }
.adx-price { font-size: 13px; font-weight: 800; color: #0b4a8f; }
.adx-price em { font-style: normal; font-size: 9.8px; font-weight: 700; color: #b45309; background: #fff7e6;
  border-radius: 5px; padding: 1px 5px; margin-left: 5px; vertical-align: 2px; }
.adx-advisors { display: flex; gap: 4px; flex-wrap: wrap; }
.adx-advchip { font-size: 10.6px; font-weight: 700; border-radius: 6px; padding: 2px 7px;
  color: var(--adx-c, #334155); background: #f4f8fd;
  background: color-mix(in srgb, var(--adx-c, #64748b) 12%, #fff);
  border: 1px solid #e2eaf4;
  border-color: color-mix(in srgb, var(--adx-c, #64748b) 28%, #fff); }
.adx-advchip.none { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.adx-advchip.co { color: #475569; background: #f8fafc; border-color: var(--line); font-weight: 600; }
.adx-kv { margin: 2px 0 0; display: grid; grid-template-columns: 46px 1fr; gap: 2px 8px; }
.adx-kv dt { font-size: 10.3px; font-weight: 800; color: #8b9aad; }
.adx-kv dd { margin: 0; font-size: 11.3px; color: var(--text-2); line-height: 1.55; }
.adx-foot { margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.adx-date { font-size: 10px; font-weight: 700; color: #94a3b8; white-space: nowrap; }
.adx-srcs { font-size: 10px; color: #64748b; }
.adx-src { color: #1d6fb8; text-decoration: none; }
.adx-src:hover { text-decoration: underline; }

/* ── 물건 DB 연결·NAI 배지·역링크 (2026-11-29) ──────────────────────────── */
.adx-flags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 7px 0 0; }
.adx-flag { display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  border-radius: 999px; padding: 4px 11px; font-size: 11.2px; font-weight: 800; }
.adx-flag b { color: var(--navy); }
.adx-flag:hover { background: var(--panel-2); }
.adx-flag.is-on { background: #0b2a4a; border-color: #0b2a4a; color: #fff; }
.adx-flag.is-on b { color: #ffd97a; }
.adx-flag-help { font-size: 10.4px; color: var(--muted); line-height: 1.5; }
.adx-nai { display: inline-block; font-size: 9.8px; font-weight: 800; letter-spacing: -.01em;
  color: #7c2d12; background: #fff3e0; border: 1px solid #fed7aa; border-radius: 5px;
  padding: 1px 6px; margin-left: 5px; vertical-align: 1px; white-space: nowrap; }
.adx-card.is-linked { cursor: pointer; }
.adx-card.is-linked:hover { border-color: #b9d4ee; border-left-color: var(--adx-c, #94a3b8); }
.adx-card.is-linked:focus-visible { outline: 2px solid var(--navy-3, #1b4b7d); outline-offset: 1px; }
.adx-goto { font-size: 9.8px; font-weight: 800; color: #0b4a8f; background: #eef4fb;
  border: 1px solid #dbe9f7; border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.adx-goto-mini { font-size: 10px; }
.adx-table tr.is-linked { cursor: pointer; }
.adx-table tr.is-linked:hover td { background: #f3f8ff; }
.adx-card.is-focus, .adx-table tr.is-focus td { box-shadow: inset 0 0 0 2px #f59e0b; }
.adx-card.is-focus { box-shadow: 0 0 0 2px #f59e0b, var(--shadow-md); }
.adx-card.is-focus::after { content: '물건 상세에서 넘어온 딜'; position: absolute; top: -9px; right: 10px;
  font-size: 9.4px; font-weight: 800; color: #92400e; background: #fff7e6; border: 1px solid #fde68a;
  border-radius: 999px; padding: 1px 7px; }

/* 물건 상세 패널의 '관련 자문사 딜' (app.js renderDetail → NAI_ADVISE_LINKS) */
.adx-linksec h4 .adx-ls-n { font-size: 10.4px; font-weight: 800; color: #b45309; background: #fff7e6;
  border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
.adx-ls-hint { margin: 0 0 6px; font-size: 10.6px; color: var(--muted); line-height: 1.55; }
.adx-ls-list { display: flex; flex-direction: column; gap: 6px; }
.adx-ls-item { display: flex; align-items: flex-start; gap: 8px; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; }
.adx-ls-item:hover { border-color: #b9d4ee; background: #f8fbff; }
.adx-ls-stage { flex: 0 0 auto; font-size: 9.8px; font-weight: 800; color: #fff;
  background: var(--adx-c, #64748b); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.adx-ls-body { flex: 1 1 auto; min-width: 0; display: block; }
.adx-ls-body b { display: block; font-size: 11.8px; color: var(--navy); line-height: 1.35; }
.adx-ls-body em { display: block; font-style: normal; font-size: 10.2px; color: var(--muted); margin-top: 1px; }
.adx-ls-asof { flex: 0 0 auto; font-size: 9.6px; color: #94a3b8; white-space: nowrap; }
.adx-ls-asof i { font-style: normal; color: var(--navy); font-weight: 800; }

.adx-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.adx-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.adx-table th { background: var(--panel-2); color: var(--text-2); font-weight: 800; text-align: left;
  padding: 8px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.adx-table td { padding: 7px 9px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--text-2); }
.adx-table tr:hover td { background: #fafcff; }
.adx-table td.nowrap, .adx-table th.nowrap { white-space: nowrap; }
.adx-t-name b { display: block; font-size: 12px; color: var(--navy); }
.adx-t-name span { display: block; font-size: 10.2px; color: var(--muted); }
.adx-co { display: block; font-size: 10px; color: var(--muted); }
.adx-src-cell { font-size: 10px; color: var(--muted); }
.adx-table .muted { color: var(--muted); }

.adx-empty { text-align: center; color: var(--muted); font-size: 12px; padding: 26px 10px; }
.adx-h3 { margin: 22px 0 8px; font-size: 13.4px; color: var(--navy); letter-spacing: -.01em; }
.adx-h3 span { font-size: 10.6px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.adx-mtable-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.adx-mtable { width: 100%; border-collapse: collapse; font-size: 11.4px; }
.adx-mtable th { background: var(--panel-2); color: var(--text-2); font-weight: 800; padding: 7px 8px;
  border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.adx-mtable th.num, .adx-mtable td.num { text-align: right; }
.adx-mtable td { padding: 6px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.adx-m-name { white-space: nowrap; font-weight: 700; color: var(--navy); }
.adx-m-name .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--adx-c, #94a3b8); margin-right: 6px; }
.adx-mtable td.zero { color: #cbd5e1; }
.adx-m-recent { font-size: 10.8px; color: var(--text-2); }
.adx-m-recent em { font-style: normal; font-weight: 700; color: #0b6bcb; }
.adx-m-memo td { font-size: 10.3px; color: var(--muted); background: #fcfdff; padding-top: 0; line-height: 1.55; }

.adx-notes-wrap { margin-top: 4px; }
.adx-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 9px; }
.adx-note { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; box-shadow: var(--shadow-sm); }
.adx-note b { font-size: 11.6px; color: var(--navy); }
.adx-note p { margin: 4px 0 0; font-size: 11px; color: var(--text-2); line-height: 1.6; }
.adx-note .adx-note-src { font-size: 10px; color: #94a3b8; }
.adx-note a { color: #1d6fb8; text-decoration: none; }

.adx-intake { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.adx-intake > summary { cursor: pointer; padding: 11px 14px; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.adx-intake > summary::-webkit-details-marker { display: none; }
.adx-intake > summary::before { content: '▸ '; color: var(--muted); font-size: 11px; }
.adx-intake[open] > summary::before { content: '▾ '; }
.adx-intake > summary b { font-size: 12.4px; color: var(--navy); }
.adx-intake > summary span { font-size: 10.6px; color: var(--muted); line-height: 1.5; }
.adx-intake-body { padding: 0 14px 14px; }
.adx-intake-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.adx-intake-bar input { flex: 1 1 200px; min-width: 140px; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 8px; font-family: inherit; font-size: 11.6px; }
.adx-in-stages { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.adx-in-chip { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 4px 9px;
  font-size: 11px; font-weight: 700; color: var(--text-2); cursor: pointer; }
.adx-in-chip b { color: var(--navy); }
.adx-in-chip.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f6faff; }
.adx-in-body { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; }
.adx-in-foot { margin: 8px 2px 0; font-size: 10.4px; color: var(--muted); }

@media (max-width: 720px) {
  .adx-grid { grid-template-columns: 1fr; }
  .adx-head h2 { font-size: 16px; }
  .adx-kv { grid-template-columns: 40px 1fr; }
}

/* ── 🔐 JK Value CA · 블라인드 · VDR · LOI (2026-11-28) ───────────────── */
.jkv-logo { display: inline-block; font-size: 10.5px; font-weight: 900; letter-spacing: .12em;
  color: #fff; background: linear-gradient(135deg, #0b2a4a, #174d7d); border-radius: 5px;
  padding: 3px 7px; margin-right: 6px; vertical-align: 2px; }
.jkv-chip { display: inline-block; font-size: 10px; font-weight: 800; border-radius: 20px;
  padding: 3px 9px; margin-left: 6px; vertical-align: 2px; }
.jkv-chip-ok { background: #e7f7ef; color: #0b7a50; border: 1px solid #b6e0c9; }
.jkv-chip-wait { background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; }
.jkv-chip-none { background: #f1f5fa; color: #64748b; border: 1px solid #d7e0ea; }
.jkv-op-note { margin: 0 0 10px; padding: 9px 12px; font-size: 11px; line-height: 1.6;
  color: #1e4a72; background: #eef5fd; border: 1px solid #cfe0f2; border-radius: 9px; }
.jkv-btn-primary { background: var(--navy) !important; color: #fff !important; border-color: var(--navy) !important; font-weight: 800; }
.jkv-btn-primary:hover { background: #123f6b !important; }

/* 워터마크 배지 · 오버레이 */
.jkv-wm-badge { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px;
  padding: 7px 11px; font-size: 10.6px; color: #1e4a72; background: #f3f8fe;
  border: 1px dashed #b9d3ea; border-radius: 8px; }
.jkv-wm-badge b { color: var(--navy); }
.jkv-wm-badge span { color: var(--muted); margin-left: auto; }
.jkv-wm { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; gap: 20px; }
.jkv-wm span { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: #0b2a4a;
  opacity: .075; transform: rotate(-22deg); white-space: nowrap; }

/* 블라인드 자산소개서 */
.jkv-teaser-wrap { position: relative; }
.jkv-teaser { position: relative; border: 1px solid #d5e3f2; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #fbfdff, #fff); }
.jkv-teaser-head { position: relative; z-index: 1; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 14px; padding: 16px 18px 12px;
  background: linear-gradient(135deg, #0b2a4a, #174d7d); color: #fff; }
.jkv-brand { display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: .18em;
  color: #d9b25c; border: 1px solid rgba(217,178,92,.5); border-radius: 4px; padding: 2px 6px; }
.jkv-teaser-head h4 { margin: 7px 0 3px; font-size: 17px; color: #fff; }
.jkv-teaser-head h4 span { font-size: 10.5px; font-weight: 600; color: #b9d0e6; margin-left: 6px; }
.jkv-teaser-head p { margin: 0; font-size: 11px; color: #cfe0f0; line-height: 1.6; }
.jkv-code { text-align: right; flex: none; }
.jkv-code b { display: block; font-size: 15px; letter-spacing: .08em; color: #f6c667; }
.jkv-code span { font-size: 9.4px; color: #a9c3da; letter-spacing: .1em; }
.jkv-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jkv-cell { padding: 11px 14px; border-right: 1px solid #edf3fa; border-bottom: 1px solid #edf3fa; }
.jkv-cell span { display: block; font-size: 9.8px; color: var(--muted); margin-bottom: 3px; }
.jkv-cell b { font-size: 12.2px; color: var(--navy); line-height: 1.45; }
.jkv-locked { position: relative; z-index: 1; margin: 14px; padding: 14px 16px; border-radius: 11px;
  background: #fbfcfe; border: 1px dashed #c7d6e6; }
.jkv-locked-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.jkv-locked-head b { font-size: 12.4px; color: var(--navy); }
.jkv-locked-head span { font-size: 10.2px; color: var(--muted); }
.jkv-locked ul { margin: 0 0 12px; padding-left: 18px; font-size: 11.2px; color: var(--text-2); line-height: 1.85; }
.jkv-cta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.jkv-note { margin: 8px 0 0; font-size: 10.2px; color: var(--muted); line-height: 1.65; }
.jkv-source { position: relative; z-index: 1; margin: 0; padding: 9px 16px 13px; font-size: 9.8px; color: #94a3b8; }
.jkv-open { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 14px; padding: 12px 14px;
  border-radius: 11px; background: #f2fbf7; border: 1px solid #b6e0c9; font-size: 11.4px; color: #0b5c40; }
.jkv-open span { color: #2f6b53; }
.jkv-open .btn { margin-left: auto; }

/* 자료 잠금 */
.jkv-banner-lock { margin-bottom: 10px; padding: 9px 12px; font-size: 11px; color: #92400e;
  background: #fff8ed; border: 1px solid #fde3bd; border-radius: 8px; }
.jkv-docs-wrap { position: relative; display: flex; flex-direction: column; gap: 10px; }
.jkv-locked-doc .jkv-doc-lock { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 16px 14px; font-size: 11.2px; color: var(--muted); background:
  repeating-linear-gradient(135deg, #fbfcfe, #fbfcfe 8px, #f5f8fc 8px, #f5f8fc 16px); }
.jkv-locked-doc .jkv-doc-lock b { font-size: 12px; color: var(--navy); }
.jkv-im-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.jkv-im-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.jkv-file { display: inline-block; font-size: 11.6px; font-weight: 700; color: #0b5c9a;
  background: #f2f8fe; border: 1px solid #cfe3f4; border-radius: 8px; padding: 8px 12px; text-decoration: none; }
.jkv-file:hover { background: #e7f2fd; }
.jkv-dd-body { padding: 12px 14px; font-size: 11.2px; color: var(--text-2); }
.jkv-dd-body p { margin: 0 0 8px; line-height: 1.7; }

/* CA·열람 */
.jkv-ca { display: flex; flex-direction: column; gap: 12px; }
.jkv-status { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 13px 16px; border-radius: 11px; background: #f7fafd; border: 1px solid var(--line); }
.jkv-status-k { display: block; font-size: 9.8px; color: var(--muted); margin-bottom: 3px; }
.jkv-status b { font-size: 15px; color: var(--navy); }
.jkv-status-meta { display: flex; flex-direction: column; gap: 2px; font-size: 10.4px; color: var(--text-2); text-align: right; }
.jkv-st-ok { background: #f2fbf7; border-color: #b6e0c9; }
.jkv-st-ok b { color: #0b7a50; }
.jkv-st-wait { background: #fff9f0; border-color: #fde3bd; }
.jkv-st-wait b { color: #b45309; }
.jkv-st-no { background: #fdf4f4; border-color: #f3c9c9; }
.jkv-st-no b { color: #b3262c; }
.jkv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.jkv-step { display: flex; gap: 8px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.jkv-step-no { flex: none; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%;
  font-size: 10.4px; font-weight: 800; background: #eef2f7; color: #64748b; }
.jkv-step b { display: block; font-size: 11px; color: var(--navy); margin-bottom: 2px; }
.jkv-step span span, .jkv-step div span { font-size: 9.8px; color: var(--muted); line-height: 1.5; display: block; }
.jkv-step.done { background: #f6fbf8; border-color: #cfeadd; }
.jkv-step.done .jkv-step-no { background: #0b7a50; color: #fff; }
.jkv-step.now { border-color: #0b6bcb; box-shadow: inset 0 0 0 1px #0b6bcb; }
.jkv-step.now .jkv-step-no { background: #0b6bcb; color: #fff; }
.jkv-ca-cta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.jkv-wait { padding: 11px 13px; font-size: 11.4px; color: #92400e; background: #fff9f0; border: 1px solid #fde3bd; border-radius: 9px; }
.jkv-approved { padding: 11px 13px; font-size: 11.6px; color: #0b5c40; background: #f2fbf7; border: 1px solid #b6e0c9; border-radius: 9px; }
.jkv-approved .jkv-wm-badge { margin: 9px 0 0; background: #fff; }
.jkv-reject { margin: 0; font-size: 11px; color: #b3262c; }
.jkv-terms { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fbfcfe; }
.jkv-terms h4 { margin: 0 0 8px; font-size: 12.4px; color: var(--navy); }
.jkv-terms ol { margin: 0 0 9px; padding-left: 18px; font-size: 11px; color: var(--text-2); line-height: 1.85; }
.jkv-admin { border: 1px solid #d7e0ea; border-radius: 11px; padding: 12px 14px; background: #fff; }
.jkv-admin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.jkv-admin-head h4 { margin: 0; font-size: 12.4px; color: var(--navy); }
.jkv-admin-head h4 span { font-size: 9.6px; font-weight: 600; color: var(--muted); margin-left: 5px; }
.jkv-count { font-size: 10.6px; font-weight: 800; color: var(--navy); }
.jkv-ok { font-size: 10.6px; font-weight: 800; color: #0b7a50; }
.jkv-reqs { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.jkv-reqs h5 { margin: 0 0 6px; font-size: 11.2px; color: var(--navy); }
.jkv-reqs ul { margin: 0; padding-left: 16px; font-size: 10.8px; color: var(--text-2); line-height: 1.8; }
.jkv-reqs li span { color: var(--muted); }
.jkv-logs h4 { margin: 0 0 7px; font-size: 12.2px; color: var(--navy); }
.jkv-logs h4 span { font-size: 9.8px; font-weight: 600; color: var(--muted); margin-left: 5px; }

/* LOI */
.jkv-loi { display: flex; flex-direction: column; gap: 11px; }
.jkv-gate-box { padding: 16px; border: 1px dashed #c7d6e6; border-radius: 11px; background: #fbfcfe; }
.jkv-gate-box b { font-size: 12.6px; color: var(--navy); }
.jkv-gate-box p { margin: 6px 0 11px; font-size: 11.2px; color: var(--text-2); line-height: 1.7; }
.jkv-scope { display: flex; flex-direction: column; gap: 5px; margin: 11px 0; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe; font-size: 11.2px; color: var(--text-2); }
.jkv-scope b { color: var(--navy); font-size: 11.6px; margin-bottom: 2px; }
.jkv-scope label { display: flex; align-items: center; gap: 6px; }
.jkv-agree { display: flex; align-items: flex-start; gap: 7px; margin: 9px 0; font-size: 11.2px;
  color: var(--text-2); line-height: 1.6; }
.jkv-agree b { color: #b3262c; }
.jkv-terms-full h4 { margin: 12px 0 4px; font-size: 11.8px; color: var(--navy); }
.jkv-terms-full p { margin: 0 0 5px; font-size: 11.2px; color: var(--text-2); line-height: 1.75; }

@media (max-width: 900px) {
  .jkv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jkv-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .jkv-grid { grid-template-columns: 1fr; }
  .jkv-steps { grid-template-columns: 1fr; }
  .jkv-teaser-head { flex-direction: column; }
  .jkv-code { text-align: left; }
  .jkv-wm-badge span { margin-left: 0; }
}
.jkv-room-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px;
  font-size: 10.4px; color: var(--muted); }
/* 헤더 툴바 버튼은 밝은 배경 — 어두운 헤더용 btn-ghost 색을 덮습니다 */
.vdr-top-actions .btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--navy); }
.vdr-top-actions .btn-ghost:hover { background: #eef5fd; }
.vdr-top-actions .btn-ghost[aria-pressed="true"] { background: #eef5fd; border-color: #9dc3e6; color: #0b5c9a; }
.vdr-top-actions .btn-primary { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.jkv-loi .vdr-table th, .jkv-loi .vdr-table td { vertical-align: top; }
.jkv-loi .vdr-table td { word-break: break-word; }
.jkv-loi .vdr-terms { max-width: 230px; }

/* ═════════════ 2026-11-28 — 발주~접수·분석·선정 파이프라인 · 딜 보드 · 딜 룸 ═════════════ */
body.view-fin .app-body { display: none; }
#finView .fin-view { height: calc(100vh - var(--header-h) - var(--tabs-h)); overflow-y: auto; background: var(--bg); }
.rfp-fsteps { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 10px 0 8px; }
.rfp-fstep { display: inline-flex; align-items: center; gap: 5px; font-size: 10.6px; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.rfp-fstep i { font-style: normal; width: 15px; height: 15px; border-radius: 50%; background: #e8eef6; color: #40556e;
  font-size: 9px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.rfp-fstep.done { border-color: #b7e4cf; background: #f0fbf6; color: #0f766e; }
.rfp-fstep.done i { background: #12a06b; color: #fff; }
.rfp-fstep.on { border-color: var(--navy); background: #eef5fd; color: var(--navy); font-weight: 800; }
.rfp-fstep.on i { background: var(--navy); color: #fff; }
.rfp-fstep.perf { border-color: #c7b7f4; background: #f5f1ff; color: #5b21b6; }
.rfp-farrow { color: #b8c4d4; font-size: 11px; }
.rfp-flowbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: #f7fafd; border: 1px solid #dbe7f4; border-radius: 10px; padding: 8px 11px; margin-bottom: 10px; }
.rfp-flowbar-main { font-size: 11.4px; color: var(--text-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rfp-flowbar-main em { font-style: normal; color: var(--muted); font-size: 10.8px; }
.rfp-flowbar-act { display: flex; gap: 6px; flex-wrap: wrap; }
.rfp-tag.flow { color: #0b4a8f; background: #eef4ff; border-color: #cfe0fa; }
.rfp-tag.over { color: #b3262c; background: #fdecec; border-color: #f6c9c9; }
.rfp-tag.soon { color: #b45309; background: #fff7ed; border-color: #fed7aa; }
.rfp-tag.wait { color: #64748b; background: #f4f6f9; border-color: #dde4ec; }
.rfp-tag.adv { color: #0f766e; background: #ecfdf5; border-color: #a7f3d0; }
.rfp-tag.inv { color: #5b21b6; background: #f5f1ff; border-color: #d8cdf7; }
.rfp-tag.fi { color: #0b4a8f; background: #eef4ff; border-color: #cfe0fa; }
.rfp-tag.tag { color: #475569; background: #f1f5f9; border-color: #e2e8f0; }
.rfp-sub { display: block; font-size: 9.6px; color: var(--muted); }
.rfp-panel-tools { display: inline-flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.rfp-draftbanner { background: #fff8e6; border: 1px solid #f5dfa3; color: #7a5a10; border-radius: 9px; padding: 8px 11px;
  font-size: 10.8px; line-height: 1.6; margin-bottom: 9px; }
.rfp-draftbanner b { color: #8a6100; }
.rfp-evalcard { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin: 8px 0; background: #fff; }
.rfp-evalcard summary { cursor: pointer; font-size: 11.6px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.rfp-evalsum { margin: 7px 0 6px; }
.rfp-evalsum textarea { width: 100%; }
.rfp-evalchips { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0; }
.rfp-evalfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.rfp-table.tiny th, .rfp-table.tiny td { font-size: 9.8px; padding: 4px 5px; }
.rfp-reviewgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.rfp-reviewcard { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; }
.rfp-reviewcard b { font-size: 12px; color: var(--navy); }
.rfp-selectrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.rfp-sel { border: 1px solid var(--line); border-radius: 7px; padding: 4px 6px; font-size: 10.6px; font-family: inherit; }
.rfp-loc { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #f7fafd;
  border: 1px solid #dbe7f4; border-radius: 10px; padding: 9px 11px; margin: 6px 0; }
.rfp-loc.ok { background: #f3fbf7; border-color: #c6ead9; }
.rfp-loc-main b { display: block; font-size: 12px; color: var(--navy); }
.rfp-loc-main span { display: block; font-size: 10.4px; color: var(--muted); }
.rfp-loc-main em { font-style: normal; font-size: 10px; color: #64748b; }
.rfp-loc-act { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
a.mini-btn { text-decoration: none; display: inline-flex; align-items: center; }
.rfp-mats { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.rfp-mat { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 8px; font-size: 10.4px; }
.rfp-mat b { color: var(--text-2); }
.rfp-mat em { font-style: normal; color: var(--muted); }
.rfp-matactions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.rfp-matgroup { margin: 7px 0; }
.rfp-matgroup > b { font-size: 11px; color: var(--navy); }
.rfp-matlist { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.rfp-matif { display: inline-flex; flex-direction: column; background: #f8fafc; border: 1px solid var(--line-2);
  border-radius: 7px; padding: 4px 7px; font-size: 10px; }
.rfp-matif.latest { border-color: #b7e4cf; background: #f3fbf7; }
.rfp-matif b { font-size: 10.4px; color: var(--text); }
.rfp-matif em { font-style: normal; color: var(--muted); font-size: 9.4px; }
.rfp-caflow { border: 1px solid #dbe7f4; border-radius: 10px; padding: 9px 11px; background: #f9fbfe; margin: 6px 0 10px; }
.rfp-caflow-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rfp-casteps { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.rfp-castep { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--muted);
  background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 7px; }
.rfp-castep i { font-style: normal; font-size: 8.6px; font-weight: 800; color: #94a3b8; }
.rfp-castep.done { color: #0f766e; border-color: #b7e4cf; background: #f0fbf6; }
.rfp-castep.on { color: var(--navy); border-color: var(--navy-3); background: #eef5fd; font-weight: 800; }
.rfp-cainfo { display: flex; flex-direction: column; gap: 3px; font-size: 10.4px; color: var(--text-2); margin: 5px 0; }
.rfp-caacts { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.rfp-uploadbox { border: 1px dashed var(--line); border-radius: 9px; padding: 9px; margin: 8px 0; }
.rfp-uploadbox > b { font-size: 11px; color: var(--navy); margin-right: 6px; }
.rfp-uploadbox > span { font-size: 10px; color: var(--muted); }
.rfp-attach-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 10.4px; color: var(--text-2); }
.rfp-attach-list li { padding: 3px 0; }
.rfp-attach-list li.empty { color: var(--muted); }
.rfp-advpick { display: flex; flex-direction: column; gap: 4px; max-height: 46vh; overflow-y: auto; border: 1px solid var(--line-2);
  border-radius: 9px; padding: 6px; margin: 6px 0; }
.rfp-advrow { display: flex; align-items: flex-start; gap: 7px; padding: 5px 6px; border-radius: 7px; cursor: pointer; }
.rfp-advrow:hover { background: #f4f8fd; }
.rfp-advrow span { display: flex; flex-direction: column; min-width: 0; }
.rfp-advrow b { font-size: 11.2px; color: var(--text); }
.rfp-advrow em { font-style: normal; font-size: 9.8px; color: var(--muted); }
.rfp-advrow select { margin-left: auto; }
.rfp-distbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; }
.rfp-distbar input[type="search"] { flex: 1 1 220px; min-width: 180px; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 9px; font-size: 11px; font-family: inherit; }
.rfp-specchips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.rfp-selcount { font-size: 10.8px; font-weight: 800; color: var(--navy); }
.rfp-folderbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.rfp-doc-table.opt th { width: 18%; }

/* 딜 보드 */
.adv-deals { margin: 12px 0 4px; }
.deal-board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.deal-board-head h3 { margin: 0 0 3px; font-size: 15px; color: var(--navy); }
.deal-board-head p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.6; }
.deal-board-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.deal-board-tools input[type="search"] { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 11px; font-family: inherit; }
.deal-board .deal-check { font-size: 10.6px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.deal-board .deal-stages { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; }
.deal-board .deal-schip { font-size: 10.2px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 9px; cursor: pointer; font-family: inherit; color: var(--text-2); }
.deal-board .deal-schip.on { border-color: var(--navy); background: #eef5fd; color: var(--navy); font-weight: 800; }
.deal-board .deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 9px; }
.deal-board .deal-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px; box-shadow: var(--shadow-sm); cursor: pointer; }
.deal-board .deal-card:hover { border-color: var(--navy-3); box-shadow: 0 6px 18px rgba(11,42,74,.10); }
.deal-board .deal-card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.deal-board .deal-stage { font-size: 9.6px; font-weight: 800; border-radius: 999px; padding: 2px 8px; background: #eef4ff; color: #0b4a8f; border: 1px solid #cfe0fa; }
.deal-board .deal-stage.s-자문수행 { background: #f5f1ff; color: #5b21b6; border-color: #d8cdf7; }
.deal-board .deal-stage.s-수행완료 { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.deal-board .deal-locchk { font-size: 9.2px; color: #b45309; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 999px; padding: 1px 7px; }
.deal-board .deal-locchk.ok { color: #0f766e; background: #ecfdf5; border-color: #a7f3d0; }
.deal-board .deal-due { margin-left: auto; font-size: 10px; font-weight: 800; color: var(--text-2); }
.deal-board .deal-due.soon { color: #b45309; }
.deal-board .deal-due.over { color: #b3262c; }
.deal-board .deal-title { display: block; font-size: 13px; color: var(--navy); margin-bottom: 2px; }
.deal-board .deal-meta { margin: 0 0 6px; font-size: 10.4px; color: var(--muted); line-height: 1.5; }
.deal-board .deal-tracks { display: flex; flex-direction: column; gap: 2px; font-size: 10.2px; color: var(--text-2); }
.deal-board .deal-track b { color: var(--navy); margin-right: 4px; }
.deal-board .deal-track em { font-style: normal; color: #0f766e; font-weight: 700; }
.deal-board .deal-next { margin: 6px 0 4px; font-size: 10.4px; color: #7a5a10; background: #fff8e6; border: 1px solid #f5dfa3; border-radius: 7px; padding: 4px 7px; }
.deal-board .deal-acts { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }

/* 딜 룸 */
.dr-shell { max-width: 1240px; }
.dr-mytop { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.dr-mytop-title { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--navy); margin-bottom: 6px; }
.dr-mytop-title span { font-size: 10px; color: var(--muted); }
.dr-mydeals { display: flex; gap: 6px; flex-wrap: wrap; }
.dr-mydeal { display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); background: #fff;
  border-radius: 9px; padding: 6px 9px; cursor: pointer; font-family: inherit; }
.dr-mydeal.on { border-color: var(--navy); background: #eef5fd; box-shadow: inset 3px 0 0 var(--navy-3); }
.dr-mydeal b { font-size: 11.2px; color: var(--navy); }
.dr-mydeal em { font-style: normal; font-size: 9.6px; color: var(--muted); }
.dr-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.dr-kicker { font-size: 9.4px; letter-spacing: .1em; font-weight: 800; color: #0b6bcb; }
.dr-head h2 { margin: 2px 0 3px; font-size: 18px; color: var(--navy); }
.dr-head p { margin: 0; font-size: 11px; color: var(--muted); }
.dr-head .dr-sub { font-size: 10px; color: #64748b; margin-top: 2px; }
.dr-head-act { display: flex; gap: 5px; flex-wrap: wrap; align-items: flex-start; }
.dr-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.dr-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line-2); padding-bottom: 6px; margin-bottom: 7px; }
.dr-card-head b { font-size: 12.6px; color: var(--navy); }
.dr-card-head > span { font-size: 10.2px; color: var(--muted); }
.dr-tools { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.dr-loc { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dr-loc b { display: block; font-size: 12px; color: var(--navy); }
.dr-loc span { display: block; font-size: 10.4px; color: var(--muted); }
.dr-loc em { font-style: normal; font-size: 10px; color: #64748b; }
.dr-loc-act { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.dr-lockbanner { display: flex; flex-direction: column; gap: 4px; background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 9px; padding: 8px 10px; margin-bottom: 8px; font-size: 10.8px; color: #7c3f04; }
.dr-lockbanner b { font-size: 11.6px; }
.dr-matgroup { margin: 8px 0; }
.dr-matg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dr-matg-head b { font-size: 11.4px; color: var(--navy); }
.dr-matg-head > span { font-size: 10px; color: var(--muted); }
.dr-matif { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; background: #f8fafc; border: 1px solid var(--line-2);
  border-radius: 8px; padding: 5px 8px; margin-top: 4px; }
.dr-matif.locked { background: #fbfbfc; border-style: dashed; }
.dr-matif b { font-size: 10.8px; color: var(--text); }
.dr-matif em { font-style: normal; font-size: 9.6px; color: var(--muted); }
.dr-matif .dr-tools { margin-left: auto; }
.dr-reason { font-size: 9.6px; color: #b45309; }
.dr-tags { display: inline-flex; gap: 3px; }
.dr-hint { font-size: 10.2px; color: var(--muted); line-height: 1.6; margin: 4px 0; }
.dr-yes { color: #0f766e; font-weight: 800; }
.dr-no { color: #b3262c; font-weight: 700; }
.dr-req { font-style: normal; font-size: 9px; color: #b45309; background: #fff7ed; border-radius: 4px; padding: 0 4px; }
.dr-subgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.dr-sub { border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 9px; background: #fdfefe; }
.dr-sub.wide { grid-column: 1 / -1; }
.dr-sub > b { display: block; font-size: 11.2px; color: var(--navy); }
.dr-sub > span { display: flex; gap: 4px; flex-wrap: wrap; font-size: 10px; color: var(--muted); margin: 2px 0; }
.dr-sub > em { font-style: normal; display: block; font-size: 9.8px; color: var(--muted); }
.dr-tablewrap { overflow-x: auto; }
.dr-listhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 10px 0 5px; }
.dr-listhead b { font-size: 12px; color: var(--navy); }
.dr-rowact { display: flex; gap: 3px; flex-wrap: wrap; }
.dr-submits { white-space: nowrap; }
.dr-submits em { font-style: normal; font-size: 9px; color: var(--muted); margin-left: 3px; }
.dr-terms { max-width: 190px; font-size: 9.8px; color: var(--text-2); }
.dr-review { margin-top: 10px; }
.dr-review b { font-size: 11.6px; color: var(--navy); }
.dr-sched { display: flex; gap: 8px; flex-wrap: wrap; }
.dr-sched span { display: flex; flex-direction: column; background: #f4f8fd; border: 1px solid #e1ebf7; border-radius: 8px; padding: 5px 9px; }
.dr-sched b { font-size: 10.2px; color: var(--navy); }
.dr-sched em { font-style: normal; font-size: 10px; color: var(--muted); }
.dr-miles { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.dr-mile { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 8px; font-size: 9.6px; background: #fff; }
.dr-mile.done { border-color: #b7e4cf; background: #f0fbf6; }
.dr-mile b { font-size: 10px; color: var(--text-2); }
.dr-mile em { font-style: normal; color: var(--muted); }
.dr-deliv { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 10.2px; }
.dr-deliv li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #f8fafc; border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 7px; }
.dr-deliv li.empty { color: var(--muted); background: none; border: none; }
.dr-deliv b { color: var(--text); }
.dr-deliv em { font-style: normal; color: var(--muted); font-size: 9.6px; }
.dr-uploader { border: 1px dashed var(--line); border-radius: 9px; padding: 8px; margin: 8px 0; }
.dr-uploader b { font-size: 10.8px; color: var(--navy); }
.dr-check { display: block; font-size: 11px; color: var(--text-2); padding: 3px 0; }
.dr-warn { font-size: 10.4px; color: #b3262c; background: #fdecec; border: 1px solid #f6c9c9; border-radius: 7px; padding: 5px 8px; }
.dr-empty { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center; font-size: 12px; color: var(--muted); }
.dr-empty b { display: block; font-size: 13.5px; color: var(--navy); margin-bottom: 5px; }
.dr-memo { border: 1px solid var(--line-2); border-radius: 8px; padding: 7px; margin: 5px 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dr-memo b { font-size: 11px; color: var(--navy); }
.dr-memo span { font-size: 10px; color: var(--muted); }

/* 마켓 */
.mk-cats { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; }
.mk-cat { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: 7px 11px; cursor: pointer; font-family: inherit; font-size: 11.4px; color: var(--text-2); }
.mk-cat em { font-style: normal; font-size: 9.4px; color: var(--muted); }
.mk-cat.on { border-color: var(--navy); background: #eef5fd; color: var(--navy); font-weight: 800; }
.mk-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.mk-col { display: flex; flex-direction: column; gap: 6px; }
.mk-col > b { font-size: 11.4px; color: var(--navy); }
.mk-post { border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 9px; background: #fdfefe; }
.mk-post-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mk-post-top b { font-size: 11.2px; color: var(--text); }
.mk-side { font-size: 9px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.mk-side.sup { color: #0f766e; background: #ecfdf5; border: 1px solid #a7f3d0; }
.mk-side.dem { color: #5b21b6; background: #f5f1ff; border: 1px solid #d8cdf7; }
.mk-post em { font-style: normal; display: block; font-size: 9.8px; color: var(--muted); }
.mk-post p { margin: 3px 0; font-size: 10.2px; color: var(--text-2); line-height: 1.5; }
.svc-filters { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-bottom: 7px; }
.svc-filters input[type="search"] { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 11px; font-family: inherit; min-width: 160px; }
.svc-host { min-height: 120px; }
@media (max-width: 900px) {
  .rfp-reviewgrid, .mk-grid, .dr-subgrid { grid-template-columns: 1fr; }
  .deal-board .deal-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════
   2026-11-28 — 공통 창 확대(modalgrow.js) · 마켓 리포트 섹터 탭 · 홈 섹터 스트립
   ══════════════════════════════════════════════════════════════════════ */

/* ── 공통 확대 버튼·상태 ─────────────────────────────────────────── */
.mg-btn { border: 0; background: rgba(120,140,160,.16); color: inherit; width: 30px; height: 30px;
  border-radius: 8px; font-size: 15px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.mg-btn:hover { background: rgba(120,140,160,.3); }
.rp-head .mg-btn { background: rgba(255,255,255,.14); color: #fff; margin-left: auto; }
.rp-head .mg-btn:hover { background: rgba(255,255,255,.26); }
.rp-head .rp-close { margin-left: 8px; }
.hm-head .mg-btn { margin-left: auto; }
.hm-head .hm-close { margin-left: 8px; }
.tr-head .mg-btn { margin-left: 8px; }

/* 확대 상태 — 모달 컨테이너는 여백 제거, 카드는 화면을 채움 */
.mg-host { padding: 0 !important; align-items: stretch !important; justify-content: center; }
.mg-max { width: 100% !important; max-width: none !important; border-radius: 0 !important;
  height: 100vh; height: 100dvh; max-height: 100vh !important; max-height: 100dvh !important; }
.mg-max .hm-body, .mg-max .rp-body, .mg-max .tr-scroll, .mg-max .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.mg-max .tr-scroll { max-height: none !important; }
/* 확대하면 행 높이·글자 크기도 함께 키웁니다(빈 공간만 늘지 않도록) */
.mg-max table { font-size: 12.8px !important; }
.mg-max table thead th { font-size: 11.6px !important; }
.mg-max table th, .mg-max table td { padding: 10px 12px !important; }
.mg-max .hub-table td .hub-memo, .mg-max .ad-det { font-size: 11.6px; }
.mg-max .hm-body, .mg-max .rp-body, .mg-max .tr-scroll { padding: 18px 22px; }
.mg-max .rp-k b { font-size: 19px; }
.mg-max .rp-lead { font-size: 13.4px; }
.mg-max .rp-cover h2 { font-size: 30px; }
.mg-max .rp-li { font-size: 12.4px; }

/* 패널(모달이 아닌 표 영역) 확대 — 전체 화면 오버레이 */
.mg-panel.mg-max { position: fixed; inset: 0; z-index: 180; background: #fff; overflow: auto;
  padding: 14px 16px 28px; border-radius: 0; }
html.mg-panel-lock { overflow: hidden; }
.mg-fab { position: fixed; top: 12px; right: 14px; z-index: 181; width: auto; height: 32px;
  padding: 0 12px; border-radius: 8px; background: #14324f; color: #fff; font-size: 12px; font-weight: 700; box-shadow: var(--shadow-md); }

/* ── 마켓 리포트 — 섹터 탭 ──────────────────────────────────────── */
.rp-tabs { position: sticky; top: 0; z-index: 2; display: flex; gap: 5px; overflow-x: auto;
  padding: 8px 4px 9px; margin: -6px -4px 4px; background: #fbfcfe; border-bottom: 1px solid var(--line); }
.rp-tabs button { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--text-2);
  border-radius: 999px; padding: 6px 12px; font-size: 11.6px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rp-tabs button:hover { border-color: #b9cfe6; }
.rp-tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.rp-tabs button i { font-style: normal; font-size: 9.6px; font-weight: 800; color: var(--gold-2, #f6c667); margin-left: 4px; }
.rp-tabs button.on i { color: #ffe4a8; }
.rp-panel { display: none; }
.rp-panel.on { display: block; }
.rp-sechead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rp-grade { flex: 0 0 auto; font-size: 9.8px; font-weight: 800; color: #0b7a50; background: #f0fbf5;
  border: 1px solid #b6e0c9; border-radius: 999px; padding: 2px 8px; }
.rp-lead { margin: 0 0 10px; font-size: 12.6px; color: var(--text-2); line-height: 1.6; }
.rp-impl { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: #f2f7fd;
  border: 1px solid #d5e5f6; font-size: 11.8px; color: var(--navy-2); line-height: 1.6; }
.rp-impl b { color: var(--navy); margin-right: 6px; }
.rp-basis { margin-top: 8px; }
.rp-basis li { font-size: 10.4px; color: var(--muted); }
.rp-next { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fbfbf6;
  border: 1px dashed #dfd9b8; font-size: 10.8px; color: #7a6a2f; line-height: 1.6; }
.rp-homegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.rp-homecard { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 11px;
  padding: 9px 11px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.rp-homecard:hover { border-color: #b9cfe6; box-shadow: var(--shadow-sm); }
.rp-homecard span { font-size: 10.2px; color: var(--muted); font-weight: 700; }
.rp-homecard b { font-size: 14.5px; color: var(--navy); letter-spacing: -.01em; }
.rp-homecard b small { font-size: 9.6px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.rp-homecard em { font-style: normal; font-size: 9.8px; color: var(--muted); }

/* ── 홈 — 섹터별 3Q 지표 스트립 (새로 고침 포인트) ───────────────── */
.hc-mkt { margin-top: 12px; }
.mkt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.mkt-tile { position: relative; text-align: left; border: 1px solid var(--line); background: linear-gradient(180deg, #fff, #f7fafd);
  border-radius: 11px; padding: 10px 11px 9px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 124px;
  touch-action: pan-y; user-select: none; }
.mkt-tile:hover, .mkt-tile:focus-visible { border-color: #b9cfe6; box-shadow: var(--shadow-sm); transform: translateY(-1px); outline: none; }
.mkt-top { display: flex; align-items: center; gap: 4px; }
.mkt-top .mkt-i { font-size: 13px; }
.mkt-top .mkt-n { font-size: 10.6px; font-weight: 800; color: var(--navy-2); }
.mkt-mlabel { font-size: 10px; font-weight: 800; color: #0b6bcb; letter-spacing: -.01em; margin-top: 3px; }
.mkt-body { display: flex; flex-direction: column; gap: 1px; min-height: 42px; }
.mkt-body b { font-size: 19px; color: var(--navy); letter-spacing: -.02em; line-height: 1.12; }
.mkt-body b small { font-size: 9.6px; color: var(--muted); font-weight: 600; margin-left: 1px; }
.mkt-tile .mkt-d { font-size: 9.6px; color: #0b6bcb; font-weight: 700; line-height: 1.35; }
.mkt-src { font-size: 8.8px; color: var(--muted); line-height: 1.3; margin-top: auto; padding-top: 3px; }
.mkt-dots { display: flex; gap: 0; margin-top: 1px; margin-left: -6px; }
/* 점은 16px 터치 영역, 보이는 원은 6px — 모바일에서 손가락으로 누를 수 있게 */
.mkt-dot { position: relative; width: 16px; height: 16px; display: inline-block; }
.mkt-dot::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 6px; height: 6px; border-radius: 50%; background: #cfdae6; transition: background .2s, width .2s; }
.mkt-dot.on::before { background: #0b6bcb; width: 14px; border-radius: 3px; }
@keyframes mktSwap { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.mkt-body.swap { animation: mktSwap .34s ease-out; }
@media (prefers-reduced-motion: reduce) { .mkt-body.swap { animation: none; } }
.mkt-new { position: absolute; top: 6px; right: 7px; font-size: 8.4px; font-weight: 800; letter-spacing: .06em;
  color: #b3262c; background: #fdeff0; border: 1px solid #f2c6c6; border-radius: 999px; padding: 0 5px; }
.hh-report .hr-new { font-size: 8.6px; font-weight: 800; letter-spacing: .05em; color: #0b2a4a;
  background: var(--gold-2, #f6c667); border-radius: 999px; padding: 1px 6px; margin-left: 6px; }

@media (max-width: 900px) {
  .rp-homegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mkt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rp-table.rp-wide { min-width: 560px; }
  .mg-max table { font-size: 12.2px !important; }
  .mg-max table th, .mg-max table td { padding: 9px 10px !important; }
  .mg-max .hm-body, .mg-max .rp-body, .mg-max .tr-scroll { padding: 12px; }
  .mkt-grid { grid-template-columns: 1fr 1fr; }
  .mkt-tile { min-height: 122px; padding: 9px 10px 6px; }
  .mkt-body b { font-size: 16.5px; }
  .mkt-src { font-size: 8.4px; }
}

/* ── RFP 3단계(제출·접수) / 4단계(평가·선정) 분리 (2026-11-28) ─────── */
.rfp-fscope { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; }
.rfp-fscope span { font-size: 10.4px; color: var(--muted); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.rfp-fscope span b { color: var(--text-2); margin-right: 4px; }
.rfp-fscope span.on { background: #0b2a4a; border-color: #0b2a4a; color: #dbe7f4; }
.rfp-fscope span.on b { color: #f6c667; }
.rfp-evalscope { margin: -2px 0 6px; }
.rfp-folderbar .rfp-goto { margin-left: auto; }
.rfp-goto em { font-style: normal; font-size: 10px; opacity: .8; margin-left: 5px; }

/* 관리자 TR 접수 목록 — 확대 대상 */
.ad-trwrap { border: 0; }
.ad-trhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ad-trhead b { font-size: 12.6px; color: var(--navy); }
.ad-trhead span { font-size: 10.4px; color: var(--muted); }
.ad-trhead .mg-btn { margin-left: auto; }

/* 금융 연결 — 역할 안내·3단계 안내·빈 상태 (2026-11-28) */
.fin-guide { margin: 8px 0 10px; padding: 9px 12px; border-radius: 10px; background: #f2f7fd;
  border: 1px solid #d5e5f6; font-size: 11.6px; color: #33475b; line-height: 1.6; }
.fin-guide b { color: var(--navy); margin-right: 6px; }
.fin-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 12px; }
.fin-steps span { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); font-size: 11.2px; color: var(--text-2); }
.fin-steps i { font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: var(--navy);
  width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.fin-steps b { color: var(--navy); font-size: 12px; }
.fin-steps em { font-style: normal; font-size: 10.4px; color: var(--muted); }
.fin-empty { padding: 16px; border-radius: 12px; background: var(--panel-2); border: 1px dashed var(--line);
  text-align: left; }
.fin-empty b { font-size: 12.6px; color: var(--navy); }
.fin-empty p { margin: 5px 0 10px; font-size: 11.4px; color: var(--muted); line-height: 1.6; }
.fin-empty .dr-tools { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 700px) { .fin-steps { grid-template-columns: 1fr; } }
.fin-note { margin: 8px 0; font-size: 11.2px; color: var(--muted); }

/* VDR 내 제출물 — 단계·안내·제출 버튼 (2026-11-28) */
.dr-steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 8px; }
.dr-step { display: inline-flex; align-items: center; gap: 5px; font-size: 10.6px; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 4px; }
.dr-step i { font-style: normal; width: 15px; height: 15px; border-radius: 50%; background: #dbe4ee; color: #55708c;
  font-size: 9.4px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.dr-step.done { border-color: #b6e0c9; background: #f4fcf8; color: #0b7a50; }
.dr-step.done i { background: #0b7a50; color: #fff; }
.dr-farrow { color: #b9c9d8; font-size: 11px; }
.dr-subguide { margin: 0 0 10px; padding: 8px 11px; border-radius: 9px; background: #f4f8fd;
  border: 1px solid #d9e6f4; font-size: 11.4px; color: #33475b; line-height: 1.6; }
.dr-sub2 { display: block; font-size: 10.2px; color: var(--muted); margin-top: 1px; }
.dr-submitbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px;
  padding: 10px 12px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); }
.dr-submitbar b { font-size: 11.6px; color: var(--navy); margin-right: 2px; }
.dr-submitbar .dr-hint { flex: 1 1 220px; margin: 0; }

/* 🧩 매칭 마켓 — 카테고리·품목 카드 (2026-11-28) */
.mk-catwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.mk-catcard { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; }
.mk-catcard-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.mk-catcard-head b { font-size: 12.4px; color: var(--navy); }
.mk-catcard-head span { font-size: 10.2px; color: var(--muted); }
.mk-items { display: flex; flex-direction: column; gap: 4px; }
.mk-item { display: flex; align-items: center; gap: 6px; border-radius: 8px; border: 1px solid transparent; padding: 2px 4px; }
.mk-item:hover { background: #f6f9fd; border-color: var(--line); }
.mk-item.on { background: #eef5fd; border-color: #b9cfe6; }
.mk-item-name { flex: 1 1 auto; text-align: left; border: 0; background: none; cursor: pointer; font-size: 11.4px; color: var(--text-2); font-family: inherit; padding: 4px 0; }
.mk-item-name em { font-style: normal; margin-left: 6px; font-size: 10px; color: var(--muted); }
.mk-item-act { display: flex; gap: 3px; flex: 0 0 auto; }
.mk-item-act .mini-btn { padding: 2px 6px; font-size: 10px; }
.mk-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-post-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 5px; }
@media (max-width: 820px) { .mk-catwrap { grid-template-columns: 1fr; } .mk-cols { grid-template-columns: 1fr; } }

/* ── 🧩 매칭 마켓 — 품목이 많은 카테고리(자문·보험) 2열 + 한 줄 설명 (2026-11-28) ── */
.mk-items.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.mk-item-desc { display: block; font-size: 9.8px; color: var(--muted); line-height: 1.35; margin: -1px 0 2px; }
.mk-items.cols2 .mk-item-name { font-size: 11px; }
.mk-items.cols2 .mk-item-act .mini-btn { padding: 2px 5px; font-size: 9.6px; }
@media (max-width: 720px) { .mk-items.cols2 { grid-template-columns: 1fr; } }
.mk-inboxopt { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2);
  background: #f6f9fd; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 9px; }

/* ── 🧠 접수 매칭 검토 (trreview.js, 2026-11-28) ── */
.trm-modal { z-index: 150; }
.trm-card { width: min(1240px, 97vw); max-height: 94vh; }
.trm-head { position: relative; }
.trm-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 10px 18px 4px; }
.trm-k { border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); padding: 7px 10px; }
.trm-k span { display: block; font-size: 10.2px; color: var(--muted); }
.trm-k strong { font-size: 16px; color: var(--navy); }
.trm-k em { display: block; font-style: normal; font-size: 9.6px; color: var(--muted); }
.trm-tabs { display: flex; align-items: center; gap: 6px; padding: 6px 18px 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.trm-tab { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 5px 11px; font-size: 11.4px;
  color: var(--text-2); cursor: pointer; font-family: inherit; }
.trm-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.trm-tab b { font-weight: 800; }
.trm-savehint { font-size: 10px; color: var(--muted); margin-left: auto; }
.trm-body { display: grid; grid-template-columns: 360px minmax(0, 1fr); min-height: 0; flex: 1 1 auto; overflow: hidden; }
.trm-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: #fbfcfe; }
.trm-tools { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line-2); }
.trm-tools input[type=search] { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 12px; font-family: inherit; }
.trm-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.trm-chips .hub-fchip { font-size: 10.4px; padding: 3px 8px; }
.trm-listwrap { overflow-y: auto; padding: 8px; }
.trm-list { display: flex; flex-direction: column; gap: 6px; }
.trm-row { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px;
  cursor: pointer; font-family: inherit; display: block; width: 100%; }
.trm-row:hover { border-color: #b9cfe6; }
.trm-row.on { border-color: var(--navy-3); box-shadow: 0 0 0 2px rgba(27,75,125,.12); }
.trm-row-top { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.trm-row-top b { font-size: 12.2px; color: var(--text); line-height: 1.35; }
.trm-row-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; font-size: 10.2px; color: var(--muted); }
.trm-tag { background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-size: 9.8px; color: var(--text-2); }
.trm-row-foot { margin-top: 4px; font-size: 10.2px; color: var(--muted); }
.trm-row-foot b { color: var(--navy-3); }
.trm-st { font-size: 9.8px; border-radius: 20px; padding: 2px 7px; white-space: nowrap; border: 1px solid transparent; }
.trm-st.s-received { background: #eef2f7; color: #475569; }
.trm-st.s-matched { background: #e0edff; color: #1d4fbe; }
.trm-st.s-approved { background: #e5f7ee; color: #0b7a50; }
.trm-st.s-routed { background: #ede9fe; color: #5b21b6; }
.trm-st.s-draft { background: #fff4e0; color: #b45309; }
.trm-st.s-delivered { background: #e6f7f7; color: #0f766e; }
.trm-st.s-closed { background: #eef2f7; color: #64748b; }
.trm-main { overflow-y: auto; min-height: 0; }
.trm-detail { padding: 12px 16px 26px; }
.trm-dhead { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.trm-dhead b { font-size: 15px; color: var(--navy); }
.trm-dhead p { margin: 3px 0 0; font-size: 10.8px; color: var(--muted); }
.trm-steps { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin: 10px 0 4px; }
.trm-step { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 8px;
  padding: 4px 7px; background: #fff; min-width: 58px; }
.trm-step i { font-style: normal; font-size: 13px; opacity: .55; }
.trm-step span { font-size: 9.4px; color: var(--muted); }
.trm-step.done { background: #f0f7f2; border-color: #cfe6d8; }
.trm-step.on { background: #eef5fd; border-color: var(--navy-3); }
.trm-step.on span { color: var(--navy); font-weight: 700; }
.trm-arrow { font-style: normal; color: var(--muted); font-size: 11px; }
.trm-sec { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; margin-top: 10px; }
.trm-sec h4 { margin: 0 0 8px; font-size: 12px; color: var(--navy-2); }
.trm-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.trm-sec-head h4 { margin: 0; }
.trm-sec-tools { font-size: 10px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.trm-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.trm-f { display: flex; flex-direction: column; gap: 1px; border-bottom: 1px dashed var(--line-2); padding: 3px 0; }
.trm-f span { font-size: 9.8px; color: var(--muted); }
.trm-f b { font-size: 11.6px; color: var(--text); font-weight: 600; }
.trm-basis { font-style: normal; font-size: 9.4px; color: var(--muted); margin-left: 4px; }
.trm-memo { margin-top: 8px; }
.trm-memo summary { font-size: 10.4px; color: var(--navy-3); cursor: pointer; }
.trm-memo p { font-size: 10.8px; color: var(--text-2); line-height: 1.6; background: var(--panel-2); border-radius: 8px; padding: 8px; }
.trm-note { font-size: 10.2px; color: var(--muted); line-height: 1.6; margin: 6px 0 0; }
.trm-warn { color: #b45309; }
.trm-cands { display: flex; flex-direction: column; gap: 8px; }
.trm-cand { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fdfefe; }
.trm-cand.is-ok { border-color: #9fd7b6; background: #f7fdf9; }
.trm-cand.is-no { opacity: .62; }
.trm-cand-head { display: flex; align-items: center; gap: 8px; }
.trm-rank { width: 20px; height: 20px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line);
  font-size: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-2); flex: 0 0 auto; }
.trm-cand-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.trm-cand-name b { font-size: 12.4px; color: var(--text); }
.trm-cand-name em { font-style: normal; font-size: 10px; color: var(--muted); }
.trm-score { display: flex; align-items: baseline; gap: 1px; flex: 0 0 auto; }
.trm-score b { font-size: 18px; color: var(--navy); }
.trm-score i { font-style: normal; font-size: 10px; color: var(--muted); }
.trm-score u { display: block; text-decoration: none; font-size: 9px; color: #b45309; margin-left: 4px; }
.trm-ev { margin-top: 6px; border-top: 1px dashed var(--line); }
.trm-ev-row { display: grid; grid-template-columns: 96px minmax(0,1fr) 52px 46px; gap: 6px; align-items: center;
  font-size: 10.4px; padding: 3px 0; border-bottom: 1px solid var(--line-2); }
.trm-ev-k { color: var(--text-2); font-weight: 600; }
.trm-ev-v { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.trm-ev-p { text-align: right; color: var(--navy-3); }
.trm-ev-s { text-align: center; font-size: 9.6px; border-radius: 4px; padding: 1px 0; background: #eef2f7; color: #475569; }
.trm-ev-row.st-match .trm-ev-s { background: #e5f7ee; color: #0b7a50; }
.trm-ev-row.st-partial .trm-ev-s { background: #fff4e0; color: #b45309; }
.trm-ev-row.st-miss .trm-ev-s { background: #fdeeee; color: #b3262c; }
.trm-ev-row.st-unknown .trm-ev-s { background: #f1f5f9; color: #64748b; }
.trm-ev-row.st-unknown .trm-ev-v { color: var(--muted); }
.trm-cand-acts { display: flex; gap: 5px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.trm-cand-acts .mini-btn.on { background: #e5f7ee; border-color: #9fd7b6; color: #0b7a50; }
.trm-dec { font-size: 9.8px; color: var(--muted); margin-left: 4px; }
.trm-assetbox { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.trm-adt { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 10px; }
.trm-adt-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.trm-adt-head b { font-size: 12.4px; color: var(--navy); }
.trm-adt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.trm-adt-facts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.trm-adt-facts span { font-size: 9.8px; background: #fff; border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; color: var(--text-2); }
.trm-adt-facts i { font-style: normal; color: var(--muted); margin-right: 4px; }
.trm-adt-src { margin-top: 6px; font-size: 9.8px; color: var(--muted); line-height: 1.5; }
.trm-src-tag { background: #eef5fd; color: var(--navy-3); border-radius: 4px; padding: 0 4px; }
.trm-adt-acts { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.trm-approve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trm-field { display: flex; flex-direction: column; gap: 3px; font-size: 10.4px; color: var(--text-2); }
.trm-field.wide { grid-column: 1 / -1; }
.trm-field input, .trm-field select, .trm-field textarea { border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 8px; font-size: 12px; font-family: inherit; color: var(--text); background: #fff; }
.trm-field textarea { resize: vertical; line-height: 1.55; }
.trm-approve-sum { margin-top: 8px; font-size: 11px; color: var(--text-2); }
.trm-approve-sum em { font-style: normal; color: var(--muted); }
.trm-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; align-items: center; }
.trm-acts .btn { padding: 7px 12px; font-size: 11.6px; }
.trm-acts .btn[disabled] { opacity: .45; cursor: not-allowed; }
.trm-route { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.trm-route div { display: flex; flex-direction: column; gap: 1px; }
.trm-route span { font-size: 9.8px; color: var(--muted); }
.trm-route b { font-size: 11.4px; color: var(--text); font-weight: 600; }
.trm-ok { color: #0b7a50; }
.trm-wait { color: #b45309; }
.trm-hist { list-style: none; margin: 0; padding: 0; }
.trm-hist li { font-size: 10.4px; color: var(--text-2); padding: 3px 0; border-bottom: 1px solid var(--line-2); }
.trm-hist em { font-style: normal; color: var(--muted); margin-right: 6px; }
.trm-hist span { color: var(--navy-3); margin-right: 6px; }
.trm-hist b { color: var(--text); margin-right: 6px; }
.trm-empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.trm-empty b { display: block; color: var(--text); margin-bottom: 6px; font-size: 13px; }
.trm-fullwrap { overflow-y: auto; padding: 12px 16px 26px; grid-column: 1 / -1; }
.trm-tablewrap { overflow-x: auto; }
.trm-qrow { cursor: pointer; }
.trm-picker { margin-top: 8px; }
.trm-pickresults { border: 1px solid var(--line); border-radius: 9px; margin-top: 6px; max-height: 220px; overflow-y: auto; }
.trm-pickrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 9px; border-bottom: 1px solid var(--line-2); }
.trm-pickrow span { display: flex; flex-direction: column; min-width: 0; }
.trm-pickrow b { font-size: 11.4px; }
.trm-pickrow em { font-style: normal; font-size: 9.8px; color: var(--muted); }
.trm-wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trm-inline { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-top: 10px; background: #fbfcfe; }
.trm-inline-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trm-inline-head b { font-size: 12px; color: var(--navy); }
.trm-inline-cands { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.trm-inline-cand { display: flex; gap: 8px; align-items: center; font-size: 10.8px; }
.trm-inline-cand b { flex: 1 1 auto; font-weight: 600; color: var(--text-2); }
.trm-inline-cand span { color: var(--navy-3); }
.trm-inline-cand em { font-style: normal; font-size: 9.6px; color: var(--muted); }
@media (max-width: 1000px) {
  .trm-body { grid-template-columns: 1fr; }
  .trm-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 42vh; }
  .trm-listwrap { max-height: 32vh; }
  .trm-kpis { grid-template-columns: repeat(3, 1fr); }
  .trm-fgrid, .trm-approve-grid, .trm-adt-grid, .trm-wgrid { grid-template-columns: 1fr; }
  .trm-route { grid-template-columns: 1fr 1fr; }
  .trm-ev-row { grid-template-columns: 74px minmax(0,1fr) 44px 40px; }
  .trm-card { width: 100vw; max-height: 96vh; }
}
.mk-inboxopt { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2);
  background: #f6f9fd; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 9px; }

/* ── 경·공매 구분 토글 ([상업·개발 | 주거·소액]) — 경·공매 선택 시에만 노출 (2026-11-29) ──
   auction_rights.js 가 #dealTypeFilters 안에 #arTrackHost 를 붙입니다.
   app.js 가 칩을 다시 그릴 때 data-deal-type 을 갱신합니다. */
#dealTypeFilters .ar-track-host { display: none; }
#dealTypeFilters[data-deal-type="auction"] .ar-track-host { display: block; }

/* ─── 🔒 담당자 연락처 — 관리자 전용 (2026-12-01) ─── */
.detail-section.uf-contact{ background:#fffbf0; border:1px solid #f1dda2; border-radius:12px; padding:12px 14px; }
.detail-section.uf-contact h4{ display:flex; align-items:center; gap:6px; }
.uf-badge{ font-size:10px; font-weight:700; color:#8a6d1f; background:#fdeec4; border:1px solid #e9d18d; border-radius:999px; padding:1px 7px; }
.uf-row{ display:flex; gap:10px; padding:4px 0; border-bottom:1px dashed rgba(140,110,30,.18); font-size:12.5px; }
.uf-row:last-of-type{ border-bottom:0; }
.uf-k{ flex:0 0 84px; color:#8a6d1f; font-weight:600; }
.uf-v{ flex:1; word-break:break-all; color:#3a2f10; }
.uf-v a{ color:#0b5ea8; text-decoration:none; }
.uf-note{ margin-top:6px; font-size:10.5px; color:#8a6d1f; opacity:.85; }
