/* APT-BID — 디자인 v5 (입찰공고 목록 UI 설계/입찰공고 v5.dc.html) 기준. 라이트/다크 */
@font-face {
  font-family: 'Pretendard Variable';
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: local('Pretendard Variable'),
       url('../fonts/PretendardVariable.woff2') format('woff2-variations'),
       url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/woff2/PretendardVariable.woff2') format('woff2-variations');
}
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f9fb;   /* 행 hover · 세부공종 상자 */
  --surface-3: #f5f7fa;   /* 버튼 hover · 표 머리 */
  --surface-4: #f0f2f5;   /* 회색 뱃지 */
  --panel-foot: #fafbfc;
  --border: #e6e9ee;
  --border-strong: #d5dae2;
  --line: #eef0f3;
  --line-2: #f3f4f6;
  --text: #141b26;
  --text-2: #5b6576;
  --muted: #8a93a3;
  --faint: #b4bcc8;
  --accent: #2450b8;
  --accent-2: #1c3f93;
  --accent-soft: #eef3fc;
  --accent-text: #ffffff;
  --ink: #141b26;         /* 진한 버튼 */
  --ink-2: #2a3342;
  --ink-text: #ffffff;
  --hot: #d4461c;         /* D-day 임박 */
  --good: #237a4b;
  --good-soft: #eaf4ee;
  --warn: #9a5b00;
  --warn-soft: #fdf3e4;
  --bad: #b23a15;
  --bad-soft: #fbede8;
  --violet: #5b3fb0;
  --violet-soft: #f1edfb;
  --teal: #0f6f78;
  --teal-soft: #e5f3f4;
  --slate-soft: #f0f2f5;
  --bar: #c3cfe9;
  --bar-2: #c3cfe9;
  --track: #eef1f5;
  --shadow: none;
  --shadow-pop: 0 12px 32px rgba(20, 27, 38, .14);
  --shadow-lg: 0 24px 64px rgba(20, 27, 38, .24);
  --backdrop: rgba(20, 27, 38, .45);
  --radius: 12px;
  --radius-sm: 8px;
  --cat-s: 60%;
  --cat-l-bg: 95%;
  --cat-l-fg: 32%;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', 'Noto Sans KR', 'Segoe UI', Roboto, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, 'D2Coding', monospace;
  color-scheme: light;
}
/* 다크 모드는 헤더의 라이트/다크 스위치로만 켠다 (OS 설정은 따르지 않음 — 기본은 디자인과 같은 라이트) */
:root[data-theme="dark"] {
  --bg: #0f1319; --surface: #151a22; --surface-2: #1a2029; --surface-3: #1f2630; --surface-4: #252d38; --panel-foot: #181e27;
  --border: #2a323e; --border-strong: #3a4452; --line: #232a34; --line-2: #20262f;
  --text: #e6eaf0; --text-2: #aeb7c4; --muted: #858fa0; --faint: #5a6474;
  --accent: #7ea2ff; --accent-2: #9db8ff; --accent-soft: #1d2a48; --accent-text: #0c1320;
  --ink: #e6eaf0; --ink-2: #c9d0db; --ink-text: #0f1319; --hot: #ff7a52;
  --good: #5bcb8a; --good-soft: #15321f; --warn: #f0b050; --warn-soft: #3a2a12; --bad: #ff8a6b; --bad-soft: #3d1f17;
  --violet: #b095ff; --violet-soft: #2a2145; --teal: #4fcad4; --teal-soft: #123236; --slate-soft: #252d38;
  --bar: #34466e; --bar-2: #34466e; --track: #232a35;
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, .5); --shadow-lg: 0 24px 64px rgba(0, 0, 0, .6); --backdrop: rgba(0, 0, 0, .6);
  --cat-s: 40%; --cat-l-bg: 20%; --cat-l-fg: 78%;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -.015em; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; }
.muted, .mu { color: var(--muted); }
.mu2 { color: var(--faint); }
.small, .sm { font-size: 12px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap, .nw { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sp { flex: 1; }
[hidden] { display: none !important; }
.n5-scroll { scrollbar-width: none; }
.n5-scroll::-webkit-scrollbar { display: none; }

/* ---------- 상단 바 ---------- */
.topbar { position: relative; z-index: 45; background: var(--surface); border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top, 0px); }
.topbar-in { display: flex; align-items: center; gap: 28px; max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 56px; }
.brand { font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 6px; color: var(--text-2); white-space: nowrap; font-weight: 500; font-size: 14px; }
.nav a:hover { background: var(--surface-3); text-decoration: none; }
.nav a.on { color: var(--text); font-weight: 700; }
.top-right { display: flex; align-items: center; gap: 16px; white-space: nowrap; font-size: 13px; }
.theme-tg { display: inline-flex; align-items: center; padding: 2px; gap: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-3); cursor: pointer; }
.theme-tg .o { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 6px; font-size: 12px; color: var(--text-2); }
.theme-tg .o b { font-weight: 500; }
.theme-tg:hover .o { color: var(--text); }
:root:not([data-theme="dark"]) .theme-tg .l, :root[data-theme="dark"] .theme-tg .d { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(20, 27, 38, .12); }
:root:not([data-theme="dark"]) .theme-tg .l b, :root[data-theme="dark"] .theme-tg .d b { font-weight: 700; }
.top-alert { color: var(--text-2); }
.top-alert:hover { color: var(--text); text-decoration: none; }
.top-alert b { color: var(--hot); font-weight: 700; }
.acct-wrap { position: relative; }
.avatar {
  width: 30px; height: 30px; border-radius: 15px; background: var(--ink); color: var(--ink-text); border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; padding: 0;
}
.avatar.on, .avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 4px var(--accent); }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; width: 280px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; white-space: normal;
}
.acct { display: flex; flex-direction: column; }
.acct-who { padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.acct-who b, .acct-who .acct-user { font-size: 14px; font-weight: 700; color: var(--text); }
.acct-who span { font-size: 12px; color: var(--muted); }
.acct a, .acct button, .acct-links a, .acct-links button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text); background: none; border: 0; cursor: pointer;
}
.acct-who a.acct-user { padding: 0; }
.acct a:hover, .acct button:hover, .acct-links a:hover, .acct-links button:hover { background: var(--surface-3); text-decoration: none; }
.acct-like b { color: var(--accent); margin-left: 2px; }
.acct-btns { display: flex; gap: 6px; padding: 6px 12px 10px; }
.acct .acct-btns a.n5-btn { display: flex; width: auto; flex: 1; align-items: center; justify-content: center; height: 36px; padding: 0 12px; }
.acct .acct-btns a.n5-btn.outline:hover { background: var(--surface); }
.acct-btns a.n5-btn.dark:hover { background: var(--ink-2); }
.acct-links { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.snap { font-size: 11.5px; color: var(--muted); padding: 8px 12px 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.snap b { color: var(--text-2); font-weight: 600; }
.icon-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; height: 32px; min-width: 32px; padding: 0 8px; cursor: pointer; color: var(--text-2); }
.loadbar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; overflow: hidden; }
.loadbar::after { content: ''; position: absolute; left: -40%; width: 40%; height: 100%; background: var(--accent); animation: lb 1s linear infinite; }
@keyframes lb { to { left: 100%; } }

/* ---------- 레이아웃 ---------- */
#view { max-width: 1200px; margin: 0 auto; padding: 28px 24px; padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
#view.pg-notices { max-width: none; padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; color: var(--text-2); font-size: 14px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: block; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px 12px; }
.panel-h h2 { font-size: 16px; }
.panel-b { padding: 0 20px 18px; }
.panel-b.flush { padding: 0; }
.section-gap { margin-top: 16px; }
.boot { padding: 80px 0; text-align: center; color: var(--muted); }
.empty { padding: 40px 16px; text-align: center; color: var(--text-2); font-size: 14px; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.callout { background: var(--surface-3); border-radius: 10px; padding: 12px 16px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.callout b { color: var(--text); }
.callout.warn { background: var(--warn-soft); color: var(--warn); }
.callout.warn b { color: inherit; }
.callout.bad { background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.callout.bad b { color: inherit; }
.txt-bad { color: var(--hot); }

/* ---------- 버튼·입력 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; font-weight: 600; font-size: 13.5px; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.btn.primary:hover { background: var(--ink-2); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.block { display: flex; width: 100%; height: 46px; font-size: 15px; }
.n5-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent;
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; background: none; color: var(--text);
}
.n5-btn:hover { text-decoration: none; }
.n5-btn.dark { background: var(--ink); color: var(--ink-text); }
.n5-btn.dark:hover { background: var(--ink-2); }
.n5-btn.outline { border-color: var(--border-strong); background: var(--surface); }
.n5-btn.outline:hover { border-color: var(--ink); }
.n5-btn.text { color: var(--text-2); font-weight: 500; padding: 0 8px; }
.n5-btn.lg { height: 40px; padding: 0 16px; font-size: 14px; }
.n5-link { background: none; border: 0; padding: 0; font-size: 13px; color: var(--text-2); cursor: pointer; text-decoration: underline; white-space: nowrap; }
.n5-link.plain { text-decoration: none; }
.n5-link.blue { color: var(--accent); font-weight: 600; text-decoration: none; }
.n5-link:hover { color: var(--text); }
.n5-link.blue:hover { color: var(--accent-2); text-decoration: underline; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; font-weight: 600; }
.linkbtn:hover { text-decoration: underline; }
.input, select.input {
  height: 40px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); padding: 0 12px; width: 100%; min-width: 0; font-size: 14px; outline: 0;
}
select.input { padding-right: 28px; }
textarea.input { height: auto; padding: 8px 12px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn:focus-visible, .n5-btn:focus-visible, .n5-chip:focus-visible, .chip:focus-within, .n5-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.input.sm { height: 32px; padding: 0 8px; font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; }
.row > .input { flex: 1; }
.range2 { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.range2 span { color: var(--muted); font-size: 13px; }
.range2 input.input { text-align: right; }
.range2 + .quick { margin-top: 8px; }
.fbody select.input { max-width: 260px; }
.search-big { position: relative; flex: 1; min-width: 220px; display: block; }
.search-big .input { height: 48px; border: 1.5px solid var(--ink); border-radius: 10px; padding-left: 44px; font-size: 15px; }
.search-big .input:focus { box-shadow: none; border-color: var(--ink); }
.search-big svg { position: absolute; left: 16px; top: 15px; color: var(--text-2); }

/* 칩 (다른 화면의 체크박스 칩) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-size: 13.5px; color: var(--text); user-select: none; white-space: nowrap;
}
a.chip:hover { text-decoration: none; }
.chip input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.chip:hover { border-color: var(--accent); }
.chip.on, .chip:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip .cnt { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:has(input:checked) .cnt { color: var(--accent); }
.chip.dim { opacity: .45; }
.seg { display: inline-flex; max-width: 100%; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg label, .seg a { padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--text); white-space: nowrap; text-decoration: none; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg label:has(input:checked), .seg label.on, .seg a.on { background: var(--ink); color: var(--ink-text); font-weight: 600; }
.toggle { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 13.5px; color: var(--text); }
.toggle input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { height: 30px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; font-size: 12.5px; padding: 0 10px; cursor: pointer; color: var(--text-2); }
.quick button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 조건 패널 (낙찰 시세 · 영업 리드) : 디자인의 '이름 | 내용' 행 ---------- */
.filters { border-color: var(--border-strong); margin-bottom: 16px; }
.filters .fh { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--line); background: var(--panel-foot); border-radius: 12px 12px 0 0; }
.filters .fh b { font-size: 14px; }
.fsec { display: grid; grid-template-columns: 120px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.fsec:last-child { border-bottom: 0; }
.fsec-l { padding: 20px 0 0 20px; font-size: 14px; font-weight: 700; }
.fbody { padding: 12px 16px 12px 0; display: grid; gap: 8px; min-width: 0; }
.fbody .lbl { font-size: 12.5px; color: var(--text-2); font-weight: 600; margin-top: 2px; }
.fbody .input[type="search"] { max-width: 520px; }
.fbody .range2 { max-width: 420px; }
.sgg-box, .sub-box { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; max-height: 240px; overflow: auto; }
.sgg-box .grp, .sub-box .grp { font-size: 13px; font-weight: 700; color: var(--text); margin: 4px 0 6px; }
.sgg-box .chip, .sub-box .chip { height: 30px; font-size: 13px; padding: 0 10px; }
.fsheet-head { display: none; }
.filter-fab { display: none; }
.hide-d { display: none !important; }

/* 툴바·결과 줄 (다른 화면) */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .grow { flex: 1; }
.toolbar .input { height: 36px; }
.count { font-size: 14px; white-space: nowrap; }
.count b { font-size: 18px; }
.resbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.achip { display: inline-flex; align-items: center; gap: 6px; height: 28px; max-width: 240px; padding: 0 8px 0 11px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 500; border: 0; cursor: pointer; white-space: nowrap; }
.achip span:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.achip .x { font-size: 10px; opacity: .8; flex-shrink: 0; }
.achip:hover { background: var(--accent); color: var(--accent-text); }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.preset { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 13px; }
.preset .btn { border: 0; border-radius: 0; }
.preset button { border: 0; background: var(--surface); padding: 0 10px; height: 30px; cursor: pointer; color: var(--muted); border-left: 1px solid var(--border); }
.preset button:hover { background: var(--bad-soft); color: var(--bad); }

/* =================== 입찰공고 목록 (v5) =================== */
.n5-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.n5-tabs { border-bottom: 1px solid var(--border); }
.n5-tabs .n5-in { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; align-items: center; }
.n5-tab { display: flex; align-items: center; gap: 2px; flex-shrink: 0; align-self: stretch; border-bottom: 2px solid transparent; }
.n5-tab.on { border-bottom-color: var(--ink); }
.n5-tab > button { border: 0; background: none; cursor: pointer; padding: 14px 8px 12px 12px; display: flex; gap: 6px; align-items: center; font-size: 14px; white-space: nowrap; color: var(--text-2); font-weight: 500; }
.n5-tab.on > button:first-child { color: var(--text); font-weight: 700; }
.n5-tab .c { font-size: 12px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.n5-tab .del { height: 22px; padding: 0 8px; margin-right: 6px; border-radius: 11px; background: var(--surface-4); color: var(--text-2); font-size: 12px; font-weight: 500; }
.n5-tab .del:hover { background: var(--bad-soft); color: var(--bad); }
.n5-savebtn { border: 0; background: none; padding: 14px 12px 12px; font-size: 13px; white-space: nowrap; cursor: pointer; color: var(--accent); font-weight: 600; flex-shrink: 0; }
.n5-saveform { display: flex; align-items: center; gap: 6px; padding: 8px 4px; flex-shrink: 0; }
.n5-saveform .input { height: 34px; width: 200px; border: 1.5px solid var(--accent); font-size: 14px; }
.n5-top { padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.n5-search { height: 48px; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--ink); border-radius: 10px; padding: 0 16px; background: var(--surface); }
.n5-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 15px; background: transparent; height: 100%; }
.n5-search input::-webkit-search-cancel-button { display: none; }
.n5-search .n5-link { text-decoration: none; color: var(--muted); }

.n5-panel { border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); }
.n5-panel-closed { width: 100%; height: 44px; padding: 0 20px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer; font-size: 14px; background: var(--surface); text-align: left; }
.n5-panel-closed .mu { color: var(--text-2); }
.n5-frow { display: grid; grid-template-columns: 120px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.n5-frow.last { border-bottom: 0; }
.n5-flab { padding: 18px 0 0 20px; display: flex; flex-direction: column; gap: 3px; }
.n5-flab b { font-size: 14px; font-weight: 700; }
.n5-flab span { font-size: 12px; color: var(--muted); cursor: default; }
.n5-fbody { padding: 12px 16px 12px 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; position: relative; }
.n5-grid { display: grid; gap: 6px; }
.n5-grid.g96 { grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); }
.n5-grid.g132 { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); flex: 1; min-width: 0; }
.n5-grid.one { max-height: 36px; overflow: hidden; }
.n5-catrow { display: flex; gap: 8px; align-items: flex-start; }
.n5-more { height: 36px; padding: 0 12px; display: flex; align-items: center; border-radius: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap; flex-shrink: 0; border: 1px solid var(--border); background: var(--surface); }
.n5-more:hover { border-color: var(--ink); }
.n5-chip {
  height: 36px; padding: 0 10px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 6px; border-radius: 8px; font-size: 14px; cursor: pointer;
  white-space: nowrap; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 400; min-width: 0;
}
.n5-chip span:first-child { overflow: hidden; text-overflow: ellipsis; }
.n5-chip .c { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.n5-chip:hover { border-color: var(--accent); }
.n5-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.n5-chip.on .c { color: var(--accent); }
.n5-chip.zero { opacity: .45; }
.n5-chip.sm { height: 32px; padding: 0 12px; justify-content: flex-start; font-size: 13px; }
.n5-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.n5-subbox { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.n5-subbox .hd { font-size: 12px; color: var(--text-2); }
.n5-subbox .grp { display: flex; gap: 10px; align-items: flex-start; }
.n5-subbox .gl { width: 108px; flex-shrink: 0; font-size: 13px; font-weight: 700; padding-top: 7px; }
.n5-subbox .grp > .n5-chips > .mu { font-size: 13px; padding-top: 7px; }
.n5-subbox .n5-link.blue { align-self: flex-start; }
.n5-sels { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.n5-sels .sep { color: var(--faint); font-size: 14px; }
.n5-sel { position: relative; flex: 0 1 210px; min-width: 160px; }
.n5-sel select {
  width: 100%; height: 40px; appearance: none; -webkit-appearance: none; border: 1px solid var(--border); border-radius: 8px; padding: 0 32px 0 12px; font-size: 14px;
  outline: 0; cursor: pointer; background: var(--surface); color: var(--text); text-overflow: ellipsis;
}
.n5-sel.on select { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.n5-sel.dis select { background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
.n5-sel .ar { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 9px; color: var(--muted); pointer-events: none; }
.n5-dates { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.n5-date { height: 40px; min-width: 200px; padding: 0 14px; display: flex; align-items: center; gap: 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; border: 1px solid var(--border-strong); background: var(--surface); }
.n5-date:hover, .n5-date.act { border-color: var(--accent); }
.n5-date .k { font-size: 12px; color: var(--text-2); }
.n5-date .v { font-size: 14px; font-weight: 600; }
.n5-date .v.ph { color: var(--muted); }
.n5-dates > .n5-chip { padding: 0 14px; gap: 8px; }
.vbar { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.n5-ddline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.n5-ddw { position: relative; display: flex; align-items: center; gap: 4px; }
.n5-dd {
  height: 36px; padding: 0 12px 0 14px; display: flex; align-items: center; gap: 8px; border-radius: 8px; font-size: 14px; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.n5-dd:hover, .n5-dd.open { border-color: var(--accent); }
.n5-dd.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.n5-dd .bdg { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-text); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.n5-dd .ar { font-size: 9px; opacity: .6; }
.n5-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 41; width: 360px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-pop); padding: 16px; display: flex; flex-direction: column; gap: 12px; cursor: default;
}
.n5-pop .lb { font-size: 13px; font-weight: 700; color: var(--text-2); }
.n5-pop .hint { font-size: 12px; color: var(--muted); }
.n5-pop .hint.on { color: var(--accent); }
.n5-poprow { display: flex; flex-direction: column; gap: 8px; }
.n5-range { display: flex; align-items: center; gap: 8px; }
.n5-range > span { color: var(--muted); }
.n5-range .u { font-size: 13px; color: var(--text-2); min-width: 28px; }
.n5-num { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 12px; font-size: 14px; text-align: right; outline: 0; background: var(--surface); }
.n5-num:focus { border-color: var(--accent); }
.n5-popfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.n5-popfoot .n5-btn { height: 34px; }
.n5-cal { top: calc(100% - 4px); width: min(660px, calc(100vw - 48px)); padding: 0; gap: 0; overflow: hidden; border-radius: 14px; }
.n5-cal .ch { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.n5-cal .tg { border: 0; padding: 8px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; white-space: nowrap; background: var(--surface); color: var(--text-2); font-weight: 600; }
.n5-cal .tg.on { background: var(--accent-soft); color: var(--accent); }
.n5-cal .nav { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 16px; background: var(--surface); padding: 0; }
.n5-cal .cm { display: flex; gap: 28px; padding: 16px 20px 8px; flex-wrap: wrap; }
.n5-mon { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.n5-mon .mt { font-size: 15px; font-weight: 700; text-align: center; padding-bottom: 6px; }
.n5-mon .wk { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 12px; color: var(--muted); text-align: center; padding-bottom: 4px; }
.n5-mon .wk .sun { color: var(--hot); }
.n5-mon .days { display: grid; grid-template-columns: repeat(7, 1fr); }
.n5-mon .day { height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; background: none; border: 0; padding: 0; }
.n5-mon .day.blank { cursor: default; }
.n5-mon .day .n { width: 32px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-size: 13px; }
.n5-mon .day .dc { font-size: 10px; height: 11px; line-height: 11px; color: var(--muted); }
.n5-mon .day.sun .n { color: var(--hot); }
.n5-mon .day:hover .n { background: var(--surface-3); }
.n5-mon .day.today .n { font-weight: 700; box-shadow: inset 0 0 0 1px var(--border-strong); }
.n5-mon .day.in { background: var(--accent-soft); }
.n5-mon .day.end .n { background: var(--accent); color: var(--accent-text); font-weight: 700; }
.n5-mon .day.end .dc, .n5-mon .day.in .dc { color: var(--accent); }
.n5-cal .n5-popfoot { padding: 12px 16px; }
.n5-check {
  height: 36px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border-radius: 8px; font-size: 14px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600;
}
.n5-check .box { width: 16px; height: 16px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--accent-text); border: 1.5px solid var(--faint); }
.n5-check.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.n5-check.on .box { background: var(--accent); border-color: var(--accent); }
.n5-check .mu { font-size: 12px; font-weight: 500; }
.n5-help { width: 24px; height: 24px; border-radius: 12px; border: 1px solid var(--faint); color: var(--text-2); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; background: var(--surface); padding: 0; }
.n5-help:hover { border-color: var(--ink); color: var(--text); }
.n5-tip { position: absolute; top: calc(100% + 8px); left: 0; z-index: 41; width: 320px; padding: 14px 16px; background: var(--ink); color: var(--ink-text); border-radius: 10px; font-size: 13px; line-height: 1.6; display: flex; flex-direction: column; gap: 6px; }
.n5-tip .mu2 { color: var(--faint); }
.n5-pfoot { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--panel-foot); border-radius: 0 0 12px 12px; }

.n5-bar { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--border); margin-top: 16px; }
.n5-bar > .n5-in { padding-top: 12px; padding-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.n5-barrow { display: flex; align-items: center; gap: 12px; }
.n5-count { font-size: 14px; white-space: nowrap; }
.n5-count b { font-size: 18px; }
.n5-toggles { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; }
.n5-pill { height: 32px; padding: 0 12px; display: flex; align-items: center; gap: 6px; border-radius: 16px; font-size: 13px; white-space: nowrap; cursor: pointer; flex-shrink: 0; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.n5-pill .c { font-size: 12px; opacity: .65; font-variant-numeric: tabular-nums; }
.n5-pill:hover { border-color: var(--ink); }
.n5-pill.on { background: var(--ink); border-color: var(--ink); color: var(--ink-text); font-weight: 600; }
.n5-sort { height: 32px; border: 1px solid var(--border); border-radius: 6px; padding: 0 8px; font-size: 13px; background: var(--surface); flex-shrink: 0; }
.n5-view { display: flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.n5-view button { height: 30px; padding: 0 10px; font-size: 12px; cursor: pointer; white-space: nowrap; background: var(--surface); color: var(--text); border: 0; }
.n5-view button.on { background: var(--ink); color: var(--ink-text); }
.n5-achips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.n5-achips .n5-link { padding: 0 6px; }
.n5-list { padding-bottom: 40px; }

/* 공고 행 */
.n5-rows { display: flex; flex-direction: column; }
.n5-row {
  position: relative; padding: 20px 4px; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-start;
}
.n5-row:hover { background: var(--surface-2); }
.n5-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.n5-row.dim { opacity: .55; }
.n5-due { flex: 0 0 72px; display: flex; flex-direction: column; gap: 3px; padding-top: 2px; height: auto; padding-left: 0; padding-right: 0; border: 0; background: none; cursor: inherit; align-items: flex-start; }
.n5-due .d { font-size: 18px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; color: var(--text); }
.n5-due .d.hot { color: var(--hot); }
.n5-due .d.c { color: var(--muted); }
.n5-due .dt { font-size: 12px; color: var(--muted); white-space: nowrap; }
.n5-main { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.n5-cat { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.n5-cat .p { font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.n5-b { padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; flex-shrink: 0; background: var(--surface-4); color: var(--text-2); line-height: 1.45; display: inline-block; }
.n5-b.ty-n { background: var(--accent-soft); color: var(--accent); }
.n5-b.ty-s { background: var(--surface-4); color: var(--text-2); }
.n5-b.ty-r { background: var(--good-soft); color: var(--good); }
.n5-b.ty-c { background: var(--surface-4); color: var(--muted); }
.n5-b.fail, .n5-b.warn { background: var(--warn-soft); color: var(--warn); }
.n5-b.lowc { background: var(--good-soft); color: var(--good); }
.n5-b.bad { background: var(--bad-soft); color: var(--bad); }
.n5-b.hist { background: var(--accent-soft); color: var(--accent); }
.n5-b.retry { background: var(--violet-soft); color: var(--violet); }
.n5-b.mute { background: var(--surface-4); color: var(--text-2); }
.n5-title { font-size: 17px; line-height: 1.4; letter-spacing: -.015em; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.n5-title.seen { font-weight: 500; color: var(--text-2); }
.n5-sub { font-size: 14px; color: var(--text-2); }
/* 목록 카드 내용 줄: [라벨] 값 │ 값 │ 값 */
.n5-line { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.n5-line .lb { flex: 0 0 30px; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; padding-top: 1px; }
/* 구분선: 각 칸 바로 왼쪽 바깥(-1px)에 그린다 → 줄 맨 앞 칸의 선은 상자 밖이라 잘려 보이지 않음 */
.n5-line .vs { display: flex; flex-wrap: wrap; row-gap: 3px; min-width: 0; overflow: hidden; margin-left: -11px; }
.n5-line .v { white-space: nowrap; position: relative; padding: 0 10px 0 11px; }
.n5-line .v::before { content: ''; position: absolute; left: -1px; top: .3em; bottom: .3em; border-left: 1px solid var(--border-strong); }
.n5-line b { font-weight: 700; color: var(--text); }
.n5-line .mu { color: var(--muted); }
.n5-line .req { color: var(--accent); }
.n5-line .bad { color: var(--hot); }
.n5-est .x { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--text-2); }
.n5-est .x b { color: var(--text); font-weight: 700; }
@media (max-width: 760px) {
  .n5-line { font-size: 13px; }
  .n5-line .v { white-space: normal; }
  .n5-est { flex-basis: 100%; align-items: flex-start; text-align: left; padding-top: 0; }
  .n5-est .x { align-items: flex-start; }
}
.n5-meta { font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.n5-meta span { white-space: nowrap; }
.n5-meta .req { color: var(--text); font-weight: 600; }
.n5-meta .bad { color: var(--hot); font-weight: 600; }
.n5-trk { font-size: 11px; padding: 1px 7px; border-radius: 4px; background: var(--good-soft); color: var(--good) !important; font-weight: 700; }
.score-pill { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 1px 7px; border-radius: 4px; white-space: nowrap; }
.n5-est { flex: 0 0 176px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; padding-top: 22px; }
.n5-est .l { font-size: 12px; color: var(--muted); }
.n5-est .v { font-size: 18px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.n5-est .v.none { font-size: 14px; font-weight: 600; color: var(--muted); }
.n5-est .c { font-size: 12px; white-space: nowrap; color: var(--text-2); }
.n5-est .c.high { color: var(--good); }
.n5-est .c.low { color: var(--hot); }
.star { border: 0; background: transparent; cursor: pointer; line-height: 1; color: var(--faint); padding: 0; }
.star.on { color: var(--accent); }
.n5-star { flex: 0 0 32px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 16px; font-size: 20px; margin-top: 18px; }
.n5-star:hover { background: var(--accent-soft); color: var(--accent); }
.n5-star.sm { margin: 0; width: 26px; height: 26px; font-size: 16px; }
.n5-tblwrap { overflow-x: auto; }
.n5-tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 1120px; }
.n5-tbl th { text-align: left; color: var(--text-2); background: var(--surface-3); padding: 10px 8px; font-weight: 600; white-space: nowrap; }
.n5-tbl th:first-child { padding-left: 12px; width: 40px; }
.n5-tbl th.r, .n5-tbl td.r { text-align: right; }
.n5-tbl td { padding: 11px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.n5-tbl td:first-child { padding-left: 12px; }
.n5-tbl tr.card { cursor: pointer; }
.n5-tbl tr.card:hover td { background: var(--surface-2); }
.n5-tbl tr.dim { opacity: .55; }
.n5-tbl td.t { font-weight: 700; min-width: 220px; }
.n5-tbl td.mu { min-width: 90px; }
.n5-tbl td.t.seen { font-weight: 500; color: var(--text-2); }
.n5-tbl b.hot { color: var(--hot); }
.n5-tbl b.c { color: var(--muted); }
.n5-empty { padding: 64px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.n5-empty .t { font-size: 15px; font-weight: 600; }
.n5-empty .s { font-size: 13px; color: var(--text-2); }
.n5-empty .n5-btn { margin-top: 6px; height: 36px; }
.n5-morebox { display: flex; justify-content: center; padding: 24px 0 8px; }
.n5-morebox .n5-btn { height: 40px; padding: 0 20px; }

/* ---------- 뱃지 (상세·다른 화면) ---------- */
.bd { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; background: var(--surface-4); color: var(--text-2); vertical-align: 1px; }
.bd.new { background: var(--accent-soft); color: var(--accent); }
.bd.rebid { background: var(--good-soft); color: var(--good); }
.bd.emrg, .bd.fpass { background: var(--bad-soft); color: var(--bad); }
.bd.soon, .bd.due { background: var(--warn-soft); color: var(--warn); }
.bd.closed { background: var(--surface-4); color: var(--muted); }
.bd.field { background: var(--teal-soft); color: var(--teal); }
.bd.lowc { background: var(--good-soft); color: var(--good); }
.bd.hist { background: var(--surface-4); color: var(--text-2); }
.bd.retry { background: var(--violet-soft); color: var(--violet); }
.bd.kind { background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); }
.bd.sub { background: transparent; color: var(--muted); padding: 0 2px; }
.bd.pro, .pro-tag { display: inline-flex; align-items: center; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; height: 20px; padding: 0 6px; border-radius: 4px; letter-spacing: .02em; }
.bd.conf-high { background: var(--good-soft); color: var(--good); }
.bd.conf-med { background: var(--surface-4); color: var(--text-2); }
.bd.conf-low { background: var(--bad-soft); color: var(--bad); }
.cat { --h: 210; background: hsl(var(--h) var(--cat-s) var(--cat-l-bg)); color: hsl(var(--h) 60% var(--cat-l-fg)); }
.cat.c0 { --h: 22; } .cat.c1 { --h: 218; } .cat.c2 { --h: 356; } .cat.c3 { --h: 45; } .cat.c4 { --h: 192; } .cat.c5 { --h: 268; }
.cat.c6 { --h: 128; } .cat.c7 { --h: 30; } .cat.c8 { --h: 200; } .cat.c9 { --h: 160; } .cat.c10 { --h: 95; } .cat.c11 { --h: 240; }
.cat.c12 { --h: 330; } .cat.c13 { --h: 175; } .cat.c14 { --h: 300; } .cat.c15 { --h: 210; --cat-s: 8%; }
.dday { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); letter-spacing: -.01em; }
.dday.soon { color: var(--hot); }
.dday.mid { color: var(--text); }
.dday.closed { color: var(--muted); }
.track-pill { font-size: 11px; padding: 2px 7px; border-radius: 4px; background: var(--good-soft); color: var(--good); font-weight: 700; white-space: nowrap; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; color: var(--text); }
.kpi:hover { border-color: var(--ink); text-decoration: none; }
.kpi .k { font-size: 13px; color: var(--text-2); font-weight: 500; }
.kpi .v { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.15; }
.kpi .v small { font-size: 14px; font-weight: 600; margin-left: 2px; }
.kpi .s { font-size: 12px; color: var(--muted); }
.kpi.accent { background: var(--accent-soft); border-color: var(--accent); }
.kpi.accent .v, .kpi.accent .k { color: var(--accent); }
.kpi .v.bad, .kpi .v.hot { color: var(--hot); }
.kpi .v.warn { color: var(--warn); }
.kpi .v.violet { color: var(--violet); }

/* 가로 막대 */
.hbars { display: grid; gap: 7px; }
.hbar { display: grid; grid-template-columns: 104px minmax(0, 1fr) 52px; gap: 12px; align-items: center; font-size: 13px; color: var(--text); }
.hbar.link { cursor: pointer; border-radius: 4px; }
.hbar.link:hover .lab { color: var(--accent); }
.hbar .lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track, .part .track, .score-bar .track, .hbar .fill, .part .fill, .score-bar .fill { display: block; }
.hbar .track { height: 10px; background: var(--track); border-radius: 5px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--bar); border-radius: 5px; min-width: 2px; }
.hbar .fill.hl { background: var(--accent); }
.hbar .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------- 표 ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: 12.5px; color: var(--text-2); font-weight: 600; background: var(--surface-3); white-space: nowrap; border-bottom: 0; }
.tbl th.sortable { cursor: pointer; }
.tbl th.sortable:hover { color: var(--accent); }

.tbl th.num, .tbl td.num { text-align: right; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-2); }
.tbl tr.hl td { background: var(--accent-soft); }
.tbl th, .tbl td { overflow-wrap: normal; }
.tbl td.t { min-width: 200px; overflow-wrap: anywhere; }
.tbl .sub-row td { background: var(--surface-2); }
.panel > .tbl-wrap:first-child .tbl th:first-child, .panel-b.flush .tbl-wrap:first-child .tbl th:first-child { padding-left: 20px; }
.panel-b.flush .tbl td:first-child { padding-left: 20px; }
.pager { display: flex; gap: 4px; justify-content: center; align-items: center; padding: 16px 0 6px; flex-wrap: wrap; }
.pager button { min-width: 34px; height: 34px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; cursor: pointer; font-variant-numeric: tabular-nums; }
.pager button:hover { border-color: var(--ink); }
.pager button.on { background: var(--ink); border-color: var(--ink); color: var(--ink-text); font-weight: 700; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager span { color: var(--muted); padding: 0 4px; }
.score-bar { display: flex; align-items: center; gap: 8px; }
.score-bar .track { width: 64px; height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; }
.score-bar .fill { height: 100%; background: var(--accent); }

/* ---------- 통계 ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.stat .k { font-size: 12.5px; color: var(--text-2); }
.stat .v { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .bar { fill: var(--bar); }
.chart .bar.hl { fill: var(--accent); }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2; }
.chart .dot { fill: var(--ink); }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .lbl-v { fill: var(--text); font-weight: 700; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); align-items: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

/* 예상가 범위 막대 */
.rangebar { position: relative; height: 46px; margin: 10px 4px 4px; }
.rangebar .axis { position: absolute; left: 0; right: 0; top: 16px; height: 8px; background: var(--track); border-radius: 4px; }
.rangebar .iqr { position: absolute; top: 16px; height: 8px; background: var(--accent); border-radius: 4px; }
.rangebar .med { position: absolute; top: 11px; width: 2px; height: 18px; background: var(--ink); transform: translateX(-1px); }
.rangebar .dotc { position: absolute; top: 17px; width: 6px; height: 6px; border-radius: 3px; background: var(--text-2); opacity: .45; transform: translateX(-3px); }
.rangebar .prev { position: absolute; top: 3px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--warn); transform: translateX(-6px); }
.rangebar .tick { position: absolute; top: 32px; font-size: 12px; color: var(--muted); transform: translateX(-50%); white-space: nowrap; }
.est-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.est-head b { color: var(--text); }
.est-head .big { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--text); }

/* ---------- 같은·유사 공사 이력 + 이전 공고 요약 ---------- */
.bd.same { background: var(--accent); color: var(--accent-text); }
.bd.simw { background: var(--surface-4); color: var(--text-2); }
.bd.tier-same { background: var(--accent); color: var(--accent-text); }
.bd.tier-sim { background: var(--surface-4); color: var(--text-2); border: 1px dashed var(--border-strong); }
.bd.scope-part { background: var(--warn-soft); color: var(--warn); }
.bd.scope-full { background: var(--teal-soft); color: var(--teal); }
.bd.ivl { background: var(--violet-soft); color: var(--violet); }
.simsum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; }
.simsum .big-n { font-size: 16px; color: var(--accent); }
.sim-empty { padding: 14px 16px; border-radius: 10px; background: var(--surface-3); font-size: 14px; }
.shist { display: flex; flex-direction: column; margin-top: 12px; }
.sh-item { border-top: 1px solid var(--line-2); padding: 12px 0; min-width: 0; }
.sh-item.same .sh-top .dt { color: var(--accent); }
.sh-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.sh-top .dt { font-variant-numeric: tabular-nums; }
.sh-top .amt { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; margin-left: auto; }
.sh-top .simp { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sh-title { margin: 4px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.live-win { color: var(--text-2); }
.sumcard { margin-top: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); padding: 10px 12px; font-size: 13px; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.sumcard.pending { color: var(--muted); }
.sumcard .sh { display: flex; gap: 8px; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.sumcard .sh .kd { font-weight: 600; background: var(--surface-4); border-radius: 4px; padding: 0 5px; }
.sumcard.k-text .sh .kd { background: var(--good-soft); color: var(--good); }
.sumcard i { font-style: normal; color: var(--muted); font-weight: 600; margin-right: 2px; }
.sumcard .ln { margin: 3px 0; }
.sumcard .ln b { color: var(--text); }
.sumcard ul { margin: 2px 0 0; padding-left: 18px; }
.sumcard li { margin: 1px 0; }
.sumcard .knote { color: var(--text-2); font-weight: 600; }
.qchips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.qchips .q { background: var(--teal-soft); color: var(--teal); border-radius: 4px; padding: 1px 7px; font-size: 11.5px; font-weight: 700; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sumcard .facts { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 4px; }
.sumcard .ex-s { margin-top: 4px; color: var(--muted); font-size: 12px; }
.sumcard .exd { margin-top: 4px; }
.sumcard .exd > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 12px; }
.sumcard .ex { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; margin-top: 4px; max-height: 240px; overflow: auto; line-height: 1.55; }
.sumcard .links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-weight: 600; }
.sumcard.compact { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; padding: 8px 12px; }
.sumcard.compact .sh { margin: 0; }
.sumcard.compact .links { margin: 0 0 0 auto; }
.sumcard.compact .qchips, .sumcard.compact .ex-s { flex-basis: 100%; margin: 0; }
.tbl tr.t-same td { background: var(--accent-soft); }
.tbl tr.t-sim td { background: var(--surface-2); }
.tbl tr.t-same td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.tbl tr.t-sim td:first-child { box-shadow: inset 3px 0 0 var(--border-strong); }
.tbl tr.open td { border-bottom-color: transparent; }
.tbl .sum-row td { padding-top: 0; }
.tbl .sum-row .sumcard { margin-top: 0; background: var(--surface); position: sticky; left: 8px; max-width: min(100%, calc(100vw - 60px)); box-sizing: border-box; }
.tbl td .bd.tier-same, .tbl td .bd.tier-sim, .tbl td .bd.tier-apt { height: 18px; font-size: 11px; margin: 2px 0; }
.bd.tier-apt { background: transparent; color: var(--text-2); border: 1px solid var(--border-strong); }
.show-m { display: none; }
#compTable .ct { margin-top: 3px; color: var(--text-2); line-height: 1.35; font-weight: 400; }
.rangebar .dotc.t1 { background: var(--surface); border: 2px solid var(--accent); opacity: 1; width: 9px; height: 9px; border-radius: 5px; top: 15.5px; transform: translateX(-4.5px); }
.rangebar .dotc.t2 { background: var(--accent); border: 2px solid var(--surface); opacity: 1; width: 11px; height: 11px; border-radius: 6px; top: 14.5px; transform: translateX(-5.5px); box-shadow: 0 0 0 1px var(--accent); }
.legend i.lg-dot { background: var(--text-2); opacity: .45; border-radius: 5px; }
.legend i.lg-dot.t2 { background: var(--accent); opacity: 1; }
.legend i.lg-dot.t1 { background: transparent; border: 2px solid var(--accent); opacity: 1; width: 8px; height: 8px; }
.legend i.lg-tri { width: 0; height: 0; border-radius: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid var(--warn); }
.note.method .mdet { margin-top: 4px; }
.note.method .mdet > summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.note.method .mdet > div { margin-top: 4px; }
details > summary { cursor: pointer; }

/* =================== 상세 모달 (v5) =================== */
.drawer { position: fixed; inset: 0; z-index: 55; }
.drawer .backdrop { position: absolute; inset: 0; background: var(--backdrop); }
.drawer .sheet {
  position: absolute; top: 40px; bottom: 40px; left: 50%; transform: translateX(-50%); width: min(920px, calc(100% - 32px)); background: var(--surface);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: popin .16s ease-out;
}
@keyframes popin { from { opacity: 0; transform: translate(-50%, 8px); } }
.drawer .dh { display: flex; align-items: center; gap: 8px; padding: 18px 32px 6px; padding-top: calc(18px + env(safe-area-inset-top, 0px)); background: var(--surface); }
.drawer .dh .t { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-acts { display: flex; gap: 8px; }
.md-navbtn { height: 28px; padding: 0 10px; display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; cursor: pointer; white-space: nowrap; background: var(--surface); }
.md-navbtn:hover { border-color: var(--ink); }
.md-navbtn:disabled { opacity: .4; cursor: default; }
.dh-back { height: 28px; padding: 0 11px; display: flex; align-items: center; flex: none; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.dh-back:hover { border-color: var(--ink); }
.dh-back[hidden] { display: none; }
.dh-close { height: 28px; padding: 0 12px; display: flex; align-items: center; background: var(--ink); color: var(--ink-text); border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; border: 0; }
.dh-close:hover { background: var(--ink-2); }
.drawer .db { overflow-y: auto; flex: 1; min-height: 0; padding: 0; position: relative; overscroll-behavior: contain; }
.md-head { padding: 10px 32px 18px; display: flex; flex-direction: column; gap: 16px; }
.md-head > .md-title { margin-top: -6px; }
.md-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.md-badges:empty { display: none; }
.md-title { font-size: 24px; font-weight: 700; letter-spacing: -.025em; line-height: 1.35; margin: 0; }
.md-sub { font-size: 14px; color: var(--text-2); margin-top: -10px; }
.md-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.md-acts .btn { height: 40px; }
.md-like { height: 40px; padding: 0 16px; display: flex; align-items: center; gap: 6px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid var(--border-strong); color: var(--text); background: var(--surface); white-space: nowrap; }
.md-like.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.md-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.md-sum .c { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--border); margin-left: -1px; min-width: 0; }
.md-sum .k { font-size: 12px; color: var(--text-2); }
.md-sum .v { font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-sum .v.hot { color: var(--hot); }
.md-sum .v.good { color: var(--good); }
.md-sum .v.mu { color: var(--muted); }
.md-sum .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-block.callout.bad { padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.md-status { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; background: var(--surface-3); border-radius: 10px; }
.md-status .lb { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.md-seg { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.md-seg button { padding: 6px 12px; font-size: 13px; cursor: pointer; white-space: nowrap; background: var(--surface); color: var(--text); border: 0; }
.md-seg button + button { border-left: 1px solid var(--line); }
.md-seg button.on { background: var(--ink); color: var(--ink-text); font-weight: 600; }
.md-memo { flex: 1 1 180px; min-width: 0; height: 32px; border: 1px solid var(--border); border-radius: 6px; padding: 0 10px; font-size: 13px; outline: 0; background: var(--surface); }
.md-memo:focus { border-color: var(--accent); }
.md-tabs { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 32px; display: flex; gap: 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.md-tabs::-webkit-scrollbar { display: none; }
.md-tabs button { padding: 12px 10px 11px; font-size: 13px; white-space: nowrap; cursor: pointer; border: 0; border-bottom: 2px solid transparent; color: var(--text-2); font-weight: 500; background: none; margin-bottom: -1px; }
.md-tabs button.on { border-bottom-color: var(--ink); color: var(--text); font-weight: 700; }
.md-body { padding: 0 32px 64px; }
.md-sec { padding: 28px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 52px; min-width: 0; }
.md-sec:last-child { border-bottom: 0; }
.md-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.md-h h2 { font-size: 17px; font-weight: 700; }
.md-h .n5-link { margin-left: auto; }
.md-score { font-size: 17px; font-weight: 800; color: var(--accent); }
.md-score small { font-size: 12px; color: var(--muted); font-weight: 500; }
.md-rows { display: flex; flex-direction: column; }
.md-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.md-row:first-child { border-top: 0; padding-top: 0; }
.md-row .k { color: var(--text-2); }
.md-row .v { line-height: 1.55; min-width: 0; }
.md-row .v.b { font-weight: 600; }
.md-row .v.hot { color: var(--hot); }
.md-sub2 { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 52px; min-width: 0; }
.md-sub2 + .md-sub2 { margin-top: 12px; }
.md-h3 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.md-h3 .mu { font-weight: 500; font-size: 13px; }
.md-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.est-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.md-body .tbl th:first-child, .md-body .tbl td:first-child { padding-left: 10px; }
.catgroup { border-top: 1px solid var(--line); }
/* 업종 아이콘 (낙찰 이력 · 낙찰 시세) — 회색 타일 + 단색 선 아이콘, 지금 보는 공고의 업종만 파란색 */
.cico { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-4); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cico svg { width: 19px; height: 19px; }
.cico.sm { width: 28px; height: 28px; border-radius: 8px; }
.cico.sm svg { width: 16px; height: 16px; }
.cico.hl { background: var(--accent-soft); color: var(--accent); }
.cmark { display: inline-flex; align-items: center; gap: 10px; }
.cm-t { display: flex; flex-direction: column; line-height: 1.35; }
.cm-t b { font-size: 13px; font-weight: 600; }
.cm-t span { font-size: 12px; color: var(--muted); }
.catgroup > summary { cursor: pointer; padding: 12px 8px 12px 4px; display: flex; gap: 12px; align-items: center; list-style: none; border-radius: 8px; }
.catgroup > summary:hover { background: var(--surface-2); }
.cg-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cg-t b { font-size: 15px; font-weight: 700; }
.cg-s { font-size: 12.5px; color: var(--muted); }
.cg-v { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.catgroup .chev { color: var(--faint); flex-shrink: 0; transition: transform .15s; }
.catgroup[open] > summary .chev { transform: rotate(180deg); }
.catgroup > summary::-webkit-details-marker { display: none; }
#histBox > .panel-b { padding: 0 0 12px; }
.dhero { }
.kv { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 16px; font-size: 14px; margin: 0; }
.kv dt, .kv dd { padding: 10px 0; border-top: 1px solid var(--line-2); }
.kv dt:first-of-type, .kv dt:first-of-type + dd { border-top: 0; padding-top: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; font-weight: 600; min-width: 0; }
.kv2 { grid-template-columns: 104px minmax(0, 1fr) 104px minmax(0, 1fr); }
.src { font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--surface-4); border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.src.est { color: var(--warn); background: var(--warn-soft); }
.yn { font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 4px; }
.yn.y { background: var(--bad-soft); color: var(--bad); }
.yn.n { background: var(--good-soft); color: var(--good); }
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dgrid .full { grid-column: 1 / -1; }
.parts { display: grid; gap: 8px; }
.part { display: grid; grid-template-columns: 110px minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 13px; }
.part .track { height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; }
.part .fill { height: 100%; background: var(--accent); }
.part .pv { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.part .pn { grid-column: 2 / -1; font-size: 12px; color: var(--muted); margin-top: -5px; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.chain .node { border: 1px solid var(--border-strong); border-radius: 6px; padding: 5px 9px; background: var(--surface); }
.chain .node.cur { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.chain .arr { color: var(--muted); }

#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--ink-text); padding: 10px 16px; border-radius: 8px; font-size: 13px; z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-block { padding: 28px; text-align: center; color: var(--muted); }

/* ── 회원 · 관심 공고 ── */
.auth-wrap { display: flex; justify-content: center; padding: 24px 0 40px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .panel-h { padding: 24px 28px 8px; }
.auth-card .panel-h h2 { font-size: 22px; letter-spacing: -.02em; }
.auth-card .panel-b { padding: 8px 28px 24px; }
.auth-card .input { height: 44px; }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fld > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 4px 0 12px; color: var(--text-2); }
.auth-err { color: var(--hot); font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.auth-alt { margin: 16px 0 10px; font-size: 13px; text-align: center; color: var(--text-2); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.tab { padding: 14px 8px 12px 12px; font-size: 14px; color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tab:hover { text-decoration: none; color: var(--text); }
.tab.on { color: var(--text); border-bottom-color: var(--ink); font-weight: 700; }
.tab .n { font-size: 12px; color: var(--muted); margin-left: 2px; font-weight: 500; }
.tbl.likes td { vertical-align: middle; }
.tbl.likes input[data-lmemo] { width: 100%; min-width: 120px; }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .n5-est { flex-basis: 150px; }
}
@media (max-width: 960px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar-in { gap: 16px; }
}
@media (max-width: 760px) {
  .topbar-in { padding: 0 16px; gap: 12px; height: 52px; }
  .brand { font-size: 15px; }
  .nav a { padding: 7px 9px; font-size: 13.5px; }
  .top-right { gap: 10px; }
  .top-alert { display: none; }
  .theme-tg .o { padding: 0 7px; }
  .theme-tg .o b { display: none; }
  .acct-menu { position: fixed; right: 12px; left: 12px; top: 60px; width: auto; }
  #view { padding: 18px 16px; padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  h1 { font-size: 21px; }
  .page-head p { font-size: 13px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 12px 14px; }
  .kpi .v { font-size: 22px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-h { padding: 14px 16px 10px; }
  .panel-b { padding: 0 16px 16px; }
  /* 다른 화면 조건 패널: 아래에서 올라오는 시트 */
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 82vh; overflow: auto; z-index: 60; border-radius: 16px 16px 0 0; margin: 0;
    transform: translateY(105%); transition: transform .22s ease-out; box-shadow: var(--shadow-lg); padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .filters.open { transform: none; }
  .filters .fh { position: sticky; top: 0; z-index: 2; border-radius: 16px 16px 0 0; }
  .sheet-backdrop { position: fixed; inset: 0; background: var(--backdrop); z-index: 55; }
  .filter-fab {
    display: inline-flex; position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    height: 46px; padding: 0 20px; border-radius: 23px; box-shadow: var(--shadow-pop);
  }
  .fsec { grid-template-columns: minmax(0, 1fr); }
  .fsec-l { padding: 14px 16px 0; }
  .fbody { padding: 10px 16px 14px; }
  .kv2 { grid-template-columns: 96px minmax(0, 1fr); }
  .kv { grid-template-columns: 92px minmax(0, 1fr); }
  .dgrid, .md-2col { grid-template-columns: minmax(0, 1fr); }
  .hbar { grid-template-columns: 80px minmax(0, 1fr) 44px; }
  .tbl { font-size: 12.5px; }
  .tbl td.t { min-width: 150px; }
  .tbl th, .tbl td { padding: 8px 8px; }
  .panel-b.flush .tbl td:first-child, .panel-b.flush .tbl-wrap:first-child .tbl th:first-child { padding-left: 14px; }
  .sh-top .amt { margin-left: 0; }
  .hide-m { display: none !important; }
  .show-m { display: block !important; }
  span.show-m { display: inline !important; }
  #compTable th, #compTable td { padding: 6px 5px; }
  #compTable td:nth-child(2) { min-width: 0; word-break: break-all; }
  #compTable td:nth-child(2) .bd { word-break: keep-all; white-space: nowrap; }
  .hide-d { display: inline-flex !important; }
  .search-big { min-width: 100%; }

  /* 입찰공고 목록 */
  .n5-in { padding: 0 16px; }
  .n5-top { padding-top: 14px; }
  .n5-search { height: 46px; padding: 0 14px; }
  .n5-search input { font-size: 14.5px; }
  .n5-frow { grid-template-columns: minmax(0, 1fr); }
  .n5-flab { padding: 14px 16px 0; flex-direction: row; align-items: baseline; gap: 8px; }
  .n5-fbody { padding: 10px 16px 14px; }
  .n5-grid.g96 { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .n5-grid.g132 { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .n5-catrow { flex-direction: column; align-items: stretch; }
  .n5-grid.one { max-height: 120px; }
  .n5-more { align-self: flex-start; }
  .n5-chip { font-size: 13.5px; }
  .n5-subbox .grp { flex-direction: column; gap: 6px; }
  .n5-subbox .gl { width: auto; padding-top: 0; }
  .n5-sels .sep { display: none; }
  .n5-sel { flex: 1 1 100%; min-width: 0; }
  .n5-date { min-width: 0; flex: 1 1 calc(50% - 16px); gap: 8px; padding: 0 12px; }
  .n5-dates > .mu { display: none; }
  .vbar { display: none; }
  .n5-pop, .n5-cal, .n5-tip { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; max-height: 76vh; overflow: auto; z-index: 61; box-shadow: 0 0 0 100vmax var(--backdrop); }
  .n5-cal .cm { padding: 12px; gap: 16px; }
  .n5-pfoot { padding: 10px 16px; }
  .n5-barrow { flex-wrap: wrap; gap: 8px 10px; }
  .n5-count { order: 1; }
  .n5-sort { order: 2; margin-left: auto; }
  .n5-view { order: 3; }
  .n5-toggles { order: 5; flex-basis: 100%; }
  .n5-barrow .n5-btn.text { display: none; }
  .n5-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 32px; gap: 6px 12px; padding: 16px 0; }
  .n5-due { grid-column: 1; grid-row: 1 / span 2; }
  .n5-due .d { font-size: 16px; }
  .n5-main { grid-column: 2; grid-row: 1; }
  .n5-est { grid-column: 2; grid-row: 2; flex-direction: row; align-items: baseline; gap: 8px; padding-top: 0; text-align: left; flex-wrap: wrap; }
  .n5-est .v { font-size: 16px; }
  .n5-star { grid-column: 3; grid-row: 1; margin-top: -4px; }
  .n5-title { font-size: 16px; }
  .n5-sub { font-size: 13px; }
  .n5-meta { font-size: 12.5px; gap: 2px 10px; }

  /* 상세 모달: 전체 화면 */
  .drawer .sheet { top: 0; bottom: 0; left: 0; transform: none; width: 100%; border-radius: 0; animation: none; }
  .drawer .dh { padding: 12px 16px 6px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .md-head { padding: 8px 16px 16px; gap: 14px; }
  .md-title { font-size: 20px; }
  .md-tabs { padding: 0 12px; }
  .md-body { padding: 0 16px 48px; }
  .md-sec { padding: 22px 0; }
  .md-row { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; font-size: 13.5px; }
  .md-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-sum .c { border-top: 1px solid var(--border); margin-top: -1px; padding: 12px 14px; }
  .md-sum .v { font-size: 16px; }
  .md-acts .n5-btn.lg, .md-like { height: 38px; padding: 0 12px; font-size: 13.5px; }
  .auth-card .panel-h { padding: 20px 20px 6px; }
  .auth-card .panel-b { padding: 6px 20px 20px; }
  /* 관심 공고: 휴대폰에서는 표 대신 카드 */
  .tbl.likes thead { display: none; }
  .tbl.likes, .tbl.likes tbody { display: block; width: 100%; }
  .tbl.likes tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .tbl.likes td { display: block; padding: 0; border: 0; }
  .tbl.likes td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .tbl.likes td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
  .tbl.likes td:nth-child(3) { grid-column: 1 / -1; }
  .tbl.likes td:nth-child(6) { grid-column: 1; }
  .tbl.likes td:nth-child(7) { grid-column: 2; align-self: center; }
  .tbl.likes select[data-lst] { width: auto; min-width: 88px; }
  .tbl.likes input[data-lmemo] { min-width: 0; }
}
@media print {
  .topbar, .filters, .filter-fab, .pager, .n5-bar { display: none !important; }
}

/* =================== 서비스판 추가 (aptbid-service) : 요금제 잠금 · 계정 · 결제 · 관리자 =================== */
.lockcard { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 28px 20px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); }
.lockcard .lk-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.lockcard .lk-t { font-size: 15px; font-weight: 700; }
.lockcard .lk-s { font-size: 13px; color: var(--text-2); }
.lockcard .lk-a { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
.pro-lock { color: var(--accent) !important; font-size: 13px !important; font-weight: 700 !important; }
.plan-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 700; background: var(--surface-4); color: var(--text-2); white-space: nowrap; }
a.plan-badge:hover { text-decoration: none; }
.plan-badge.pro, .plan-badge.trial { background: var(--accent-soft); color: var(--accent); }
.plan-badge.basic { background: var(--good-soft); color: var(--good); }
.acct-plan { margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--accent) !important; }
.acct .acct-admin { color: var(--hot); font-weight: 600; }

.auth-sub { margin: 6px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.auth-links { margin: 16px 0 4px; display: flex; gap: 8px; justify-content: center; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.auth-links span { color: var(--faint); }
.agree { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin: 6px 0 12px; display: flex; flex-direction: column; gap: 2px; }
.agree .chk { margin: 4px 0; }
.ad-search > .muted { white-space: nowrap; }
.agree .chk.all { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.result-box { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--surface-3); display: flex; flex-direction: column; gap: 6px; }
.result-box .rb-row { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.empty-box { color: var(--text-2); }
.panel.narrow { max-width: 560px; }
.sub-card { display: flex; flex-direction: column; gap: 6px; }
.sub-card .sc-plan { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.sub-card .sc-row { font-size: 14px; color: var(--text-2); }
.sub-card .sc-act { margin-top: 6px; display: flex; gap: 8px; }
.pay-st { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: var(--surface-4); color: var(--text-2); }
.pay-st.paid { background: var(--good-soft); color: var(--good); }
.pay-st.refunded, .pay-st.failed { background: var(--bad-soft); color: var(--bad); }

.page-head.center { justify-content: center; text-align: center; }
.note.center { text-align: center; }
.pricing-cycle { display: flex; justify-content: center; margin: 0 0 24px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto; }
.plan-card { position: relative; border: 1px solid var(--border); border-radius: 16px; padding: 24px 22px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.plan-card.best { border: 2px solid var(--accent); }
.plan-card.mine { box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-card .pc-tag { position: absolute; top: -11px; left: 20px; background: var(--accent); color: var(--accent-text); font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 11px; }
.plan-card .pc-name { font-size: 18px; font-weight: 800; }
.plan-card .pc-desc { font-size: 13px; color: var(--text-2); }
.plan-card .pc-price { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.plan-card .pc-price small { font-size: 14px; font-weight: 600; color: var(--text-2); margin-left: 2px; }
.plan-card .pc-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.plan-card .pc-feat { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.plan-card .pc-feat li::before { content: "\2713"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.checkout-sum { position: sticky; top: 16px; }
.cs-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.cs-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 15px; }
.cs-total b { font-size: 24px; letter-spacing: -.02em; }
.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pay-m { position: relative; }
.pay-m input { position: absolute; opacity: 0; }
.pay-m span { display: flex; align-items: center; justify-content: center; height: 48px; border: 1px solid var(--border-strong); border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.pay-m input:checked + span { border: 2px solid var(--accent); color: var(--accent); background: var(--accent-soft); }
.legal h3 { font-size: 15px; margin: 18px 0 6px; }
.legal h3:first-child { margin-top: 0; }
.legal p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--text-2); }

/* 관리자 */
.ad-tabs { margin-bottom: 16px; overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; }
.ad-tabs .tab { white-space: nowrap; }
.ad-kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.ad-kpis .kpi .v { font-size: 22px; word-break: break-all; }
.ad-b { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: var(--surface-4); color: var(--text-2); white-space: nowrap; }
.ad-b.ok { background: var(--good-soft); color: var(--good); }
.ad-b.error, .ad-b.api_error, .ad-b.missing_required, .ad-b.refunded, .ad-b.failed { background: var(--bad-soft); color: var(--bad); }
.ad-b.partial, .ad-b.unknown_code, .ad-b.new_field, .ad-b.bad_format, .ad-b.ready { background: var(--warn-soft); color: var(--warn); }
.ad-b.unmatched_apt, .ad-b.running { background: var(--accent-soft); color: var(--accent); }
.ad-tbl td { vertical-align: middle; }
.ad-msg { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.ad-search { display: flex; gap: 8px; align-items: center; max-width: 520px; margin-bottom: 4px; }
.ad-search.inline { margin: 0 0 0 auto; max-width: 320px; }
.ad-filter { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.ad-filter .n5-pill { text-decoration: none; color: var(--text); }
.ad-filter .n5-pill.on { color: var(--ink-text); }
.ad-jobs { display: flex; gap: 8px; flex-wrap: wrap; }
.ad-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.ad-actions .row .input.sm { width: auto; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.cand { display: inline-flex; align-items: center; gap: 4px; margin: 2px 4px 2px 0; padding: 3px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); font-size: 12.5px; cursor: pointer; }
.cand:hover { border-color: var(--accent); color: var(--accent); }
.find-out { margin-top: 4px; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.mail-body { white-space: pre-wrap; font-size: 12px; max-width: 420px; margin: 6px 0 0; }
.pg-admin .pager a { text-decoration: none; }
.ad-bar { display: inline-block; width: 90px; height: 6px; border-radius: 3px; background: var(--surface-4); vertical-align: middle; overflow: hidden; }
.ad-bar i { display: block; height: 100%; background: var(--good); border-radius: 3px; }
.ad-bar.bad i { background: var(--bad); }
.ad-filter select.input.sm { width: auto; min-width: 120px; }
#testOut details, .ad-tbl details { margin-top: 2px; }

@media (max-width: 760px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .checkout-sum { position: static; }
  .ad-search.inline { margin: 6px 0 0; max-width: none; }
  #planBadge { display: none; }
}

/* ───────── 내 입찰 기록 (records.js) ───────── */
.rec-guide ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.rec-filt { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.rec-filt .seg { overflow-x: auto; }
.rec-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.rec-form .wide { grid-column: 1 / -1; }
.rec-form .fld .row { display: flex; gap: 8px; }
.rec-form .fld .row .input { flex: 1; min-width: 0; }
.rec-form .chk { margin-bottom: 10px; }
.rec-tbl .rec-t { font-weight: 600; color: var(--text); max-width: 360px; }
.rec-st { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: var(--surface-4); color: var(--text-2); white-space: nowrap; }
.rec-st.won { background: var(--good-soft); color: var(--good); }
.rec-st.lost { background: var(--bad-soft); color: var(--bad); }
.rec-st.pending { background: var(--warn-soft); color: var(--warn); }
.apt-changes { margin-top: 10px; font-size: 13px; }
.apt-changes li { padding: 3px 0; color: var(--text-2); }
.apt-changes .d { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.co-stat { color: var(--muted); font-size: 12px; }
.bill-terms { font-size: 13px; color: var(--text-2); line-height: 1.7; margin: 10px 0 0; padding-left: 18px; }
@media (max-width: 760px) {
  .rec-form { grid-template-columns: minmax(0, 1fr); }
  .rec-filt { justify-content: flex-start; }
}
.plans.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
@media (max-width: 760px) { .plans.two { grid-template-columns: minmax(0, 1fr); } }
.apt-changes ul { list-style: none; padding: 0; margin: 4px 0 0; }
.rec-filt select.input { width: auto; min-width: 110px; }
#recList .panel-h { flex-wrap: wrap; gap: 10px; }
#recList .panel-h h2 { white-space: nowrap; }
.rec-filt { flex: 1 1 auto; min-width: 0; max-width: 100%; }
.rec-filt .seg { max-width: 100%; }
/* 예상 낙찰가 · 비교 사례 카드 (이 단지 공사 이력과 같은 모양) */
#compList .shist { margin-top: 6px; }
.sh-item.other .sh-top .dt { color: var(--text); }
.sh-apt { margin-top: 2px; color: var(--text-2); }
.sh-apt .aptlink { font-weight: 600; }
.comp-more > summary { cursor: pointer; margin-top: 10px; font-weight: 700; font-size: 13.5px; color: var(--text-2); }
/* 예상 낙찰가 머리 (예상 낙찰가 한 값 → 범위 → 근거) */
.est-sum { display: flex; flex-direction: column; gap: 4px; }
.est-sum .es-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.est-sum .es-lab { font-size: 15px; font-weight: 700; color: var(--text-2); }
.est-sum .es-val { font-size: 32px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.est-sum .es-range { font-size: 15px; color: var(--text-2); }
.est-sum .es-range b { color: var(--accent); font-size: 17px; font-variant-numeric: tabular-nums; }
.est-sum .es-basis { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.rangebar.big { height: 58px; margin-top: 14px; }
.rangebar.big .axis, .rangebar.big .iqr { height: 10px; top: 15px; border-radius: 5px; }
.rangebar.big .med { top: 9px; height: 22px; width: 3px; }
.rangebar .tick.est { top: 34px; font-weight: 800; color: var(--accent); font-size: 12.5px; }
/* 섹션 안 소제목 (예상 낙찰가 제목과 같은 크기) */
.cmp-h { font-size: 17px; font-weight: 700; margin: 26px 0 10px; display: flex; align-items: baseline; gap: 8px; color: var(--text); }
.cmp-h .mu, .comp-more .mu { font-size: 13px; font-weight: 500; color: var(--muted); }
/* 낙찰 내역 카드: 왼쪽 번호·날짜, 오른쪽 공사명·금액·단지·선정 업체·요약 */
.cc { display: grid; grid-template-columns: 124px minmax(0, 1fr); border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.cc + .cc { margin-top: 10px; }
.cc.same { border-left: 4px solid var(--accent); }
.cc.similar { border-left: 4px dashed var(--accent); }
.cc-l { padding: 14px 12px; background: var(--surface-3); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.cc-l .no { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: var(--ink-text); font-size: 12px; font-weight: 800; }
.cc-l .d { font-size: 15.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); margin-top: 4px; }
.cc-l .ago { font-size: 12px; color: var(--muted); }
.cc-l .bd { margin-top: 4px; font-size: 11px; height: auto; padding: 2px 6px; white-space: normal; line-height: 1.35; }
.cc-r { padding: 13px 16px; min-width: 0; }
.cc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; }
.cc-t { font-size: 15px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.cc-amt { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.cc-meta { margin-top: 5px; font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; row-gap: 2px; }
.cc-meta > span + span::before { content: "·"; margin: 0 7px; color: var(--muted); }
.cc-win { margin-top: 4px; font-size: 13px; color: var(--text-2); }
.cc .sumcard { margin-top: 10px; }
.comp-more { margin-top: 12px; }
.comp-more > summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--text); padding: 10px 0; }
.comp-more > .cc:first-of-type { margin-top: 4px; }
/* 해당 사업 평균 낙찰가 표 */
.mkt-tbl td.num b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.mkt-tbl .mk-n { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
  .cc { grid-template-columns: minmax(0, 1fr); }
  .cc-l { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .cc-l .d { margin-top: 0; }
  .cc-l .bd { margin-top: 0; }
  .est-sum .es-val { font-size: 28px; }
}
/* 비교 사례 카드의 이전 공고 요약: 모두 같은 한 줄, 본문은 '원문 내용 보기'(기본 닫힘) */
.sumcard.row1 { padding: 8px 12px; }
.sumcard.row1 .r1 { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; }
.sumcard.row1 .sh { margin: 0; }
.sumcard.row1 .links { margin: 0 0 0 auto; }
.sumcard.row1 .sum-more { margin-top: 4px; }
.sumcard.row1 .sum-more > summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 12.5px; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.sumcard.row1 .sum-more > summary::-webkit-details-marker { display: none; }
.sumcard.row1 .sum-more > summary::before { content: "▸"; transition: transform .15s; display: inline-block; }
.sumcard.row1 .sum-more[open] > summary::before { transform: rotate(90deg); }
.sumcard.row1 .sum-more[open] > summary { margin-bottom: 6px; }
.sumcard.row1 .sum-more .ex { margin-top: 6px; }
.sumcard.row1 { box-sizing: border-box; min-height: 62px; display: flex; flex-direction: column; justify-content: center; }

/* =================== 입찰 신청 · 메모 · 기업 정보 · 마이페이지 (0008) =================== */
/* 공고 머리 배지(재공고 · 유찰 · 긴급 …): 색 상자 대신 글자 + 얇은 세로선 */
.md-badges, .n5-cat { gap: 4px 0; }
.md-badges > *, .n5-cat > .n5-b, .n5-cat > .score-pill, .n5-cat > .n5-trk {
  background: none !important; border: 0 !important; border-radius: 0; padding: 0; height: auto; font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.4;
}
.n5-cat > .n5-b, .n5-cat > .score-pill, .n5-cat > .n5-trk { font-size: 12px; }
.md-badges > * + *::before, .n5-cat > * + *::before {
  content: ""; display: inline-block; width: 1px; height: 11px; background: var(--border-strong); margin: 0 9px; vertical-align: -1px;
}
.md-badges .n5-b.bad, .n5-cat .n5-b.bad, .md-badges .bd.emrg, .md-badges .bd.fpass { color: var(--bad); }
.md-badges .n5-b.fail, .n5-cat .n5-b.fail, .md-badges .n5-b.warn, .md-badges .bd.due, .md-badges .bd.soon { color: var(--warn); }
.md-badges .n5-b.ty-c, .n5-cat .n5-b.ty-c { color: var(--muted); }
.n5-cat > .score-pill { color: var(--accent); }
.n5-cat > .n5-trk { color: var(--good) !important; }
/* 비교 사례 구분: 두 줄 글자 (같은 단지 / 같은 공사) */
.tier2 { display: flex; flex-direction: column; margin-top: 6px; line-height: 1.35; }
.tier2 b { font-size: 12px; font-weight: 500; color: var(--text-2); }
.tier2 b + b { font-size: 12.5px; font-weight: 700; color: var(--text); }
.tier2.same b + b { color: var(--accent); }
.cc-meta > span + span::before { content: "|"; color: var(--faint); }

/* 투찰 금액 + 입찰 신청 완료 */
.bidbox { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bb-in { position: relative; display: inline-flex; align-items: center; }
.bb-in .input { width: 136px; padding-right: 26px; text-align: right; font-variant-numeric: tabular-nums; }
.bb-in i { position: absolute; right: 9px; font-style: normal; font-size: 12px; color: var(--muted); pointer-events: none; }
.bb-done { font-size: 12px; color: var(--good); font-weight: 600; white-space: nowrap; }
.bidbox.need .bb-in .input { border-color: var(--hot); box-shadow: 0 0 0 3px var(--bad-soft); }
.qhelp { position: relative; display: inline-flex; }
.qhelp > summary {
  list-style: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; user-select: none;
}
.qhelp > summary::-webkit-details-marker { display: none; }
.qhelp[open] > summary, .qhelp > summary:hover { border-color: var(--ink); color: var(--text); }
.qpop {
  position: fixed; z-index: 900; width: 290px; max-width: calc(100vw - 24px); padding: 12px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-pop); font-size: 12.5px; line-height: 1.65; color: var(--text-2); white-space: normal; font-weight: 400; text-align: left;
}

/* 확인 팝업 · 메모 팝업 */
.pop-lay { position: fixed; inset: 0; z-index: 1000; background: var(--backdrop); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pop { width: 100%; max-width: 400px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 22px 22px 18px; }
.pop-t { font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.pop-m { margin-top: 8px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.pop-a { margin-top: 20px; display: flex; justify-content: flex-end; gap: 8px; }
.pop.notes { max-width: 560px; max-height: min(680px, calc(100vh - 32px)); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.pop-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.pop-s { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.pop-x { border: 0; background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 2px; white-space: nowrap; }
.pop-x:hover { color: var(--text); }
.nt-new { padding: 14px 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.nt-new textarea.input { width: 100%; height: auto; min-height: 76px; resize: vertical; padding: 10px 12px; line-height: 1.55; font: inherit; font-size: 14px; }
.nt-list { overflow-y: auto; padding: 2px 20px 14px; flex: 1; min-height: 90px; }
.nt-list .empty { padding: 28px 0; }
.nt-item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.nt-item:last-child { border-bottom: 0; }
.nt-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nt-meta .linkbtn { font-size: 12px; color: var(--muted); font-weight: 500; }
.nt-meta .linkbtn:hover { color: var(--bad); }
.nt-body { margin-top: 4px; font-size: 14px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }

/* 공고 상세: 내 입찰 상태 + 투찰 금액 */
.md-status { flex-direction: column; align-items: stretch; gap: 10px; }
.ms-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ms-row .bidbox { flex: 0 1 auto; }

/* 추천 점수: 기업 정보가 없으면 흐리게 덮고 안내 */
.score-lock { position: relative; display: block; color: inherit; border-radius: 10px; overflow: hidden; min-height: 170px; }
.score-lock:hover { text-decoration: none; }
.sl-body { filter: blur(3px); opacity: .4; pointer-events: none; user-select: none; }
.sl-msg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 32px)); display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-pop);
}
.sl-msg b { font-size: 15.5px; color: var(--text); letter-spacing: -.01em; }
.sl-msg span { font-size: 13px; color: var(--text-2); max-width: 440px; line-height: 1.6; }
.score-lock:hover .sl-msg { border-color: var(--ink); }
.sl-msg span b, .sl-msg .go { color: var(--accent); font-weight: 700; }

/* 발주처 성향: 이전 낙찰업체 표 */
.win-list { margin-top: 16px; }
.win-list .md-h3 { margin-bottom: 8px; }
.win-tbl td { vertical-align: middle; }
.wbar { display: inline-block; width: 64px; height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.wbar i { display: block; height: 100%; background: var(--accent); }

/* 내 조건: 기업 정보 */
.co-panel { margin-bottom: 16px; }
.co-st { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.co-st.good { color: var(--good); }
.co-st.warn { color: var(--warn); }
.co-st.bad { color: var(--bad); }
.co-lead { margin: 0 0 4px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; max-width: 780px; }
.co-sec { font-size: 13.5px; font-weight: 700; color: var(--text); margin: 16px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: 16px; }
.co-grid .fld { margin-bottom: 12px; min-width: 0; }
.co-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.co-inline .input { flex: 1 1 140px; min-width: 0; }
.co-file { position: relative; cursor: pointer; }
.co-file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.co-doc { display: flex; flex-direction: column; gap: 8px; }
.co-act { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* 관심 공고 표 */
.like-guide { margin-bottom: 14px; }
.tbl.likes .lst { width: auto; min-width: 84px; font-weight: 600; }
.tbl.likes .bidbox { flex-wrap: nowrap; }
.tbl.likes .bb-in .input { width: 124px; }
.tbl.likes tr.st-투찰 .lst { color: var(--accent); }
.tbl.likes tr.st-낙찰 .lst { color: var(--good); }
.tbl.likes tr.st-탈락 .lst { color: var(--muted); }

/* 입찰 기록: 결과 고르기 */
.rec-sel { width: auto; min-width: 108px; font-weight: 600; }
.rec-sel.won { color: var(--good); }
.rec-sel.lost { color: var(--bad); }
.rec-sel.pending { color: var(--warn); }
.rec-api { margin-top: 4px; color: var(--muted); }

/* 마이페이지: 왼쪽 프로필 카드 + 메뉴, 오른쪽 요약 + 내용 */
.my-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.my-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.my-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 3px; }
.my-av { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--ink-text); display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.my-name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.my-mail { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.my-co { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.my-co .co-st { font-size: 12px; }
.my-plan { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 13px; }
.my-since { margin-top: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.my-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px; display: flex; flex-direction: column; }
.my-nav a { padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.my-nav a:hover { background: var(--surface-3); text-decoration: none; color: var(--text); }
.my-nav a.on { background: var(--surface-3); color: var(--text); font-weight: 700; }
.my-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.my-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.my-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.my-stat:hover { border-color: var(--ink); text-decoration: none; }
.my-stat .k { font-size: 12.5px; color: var(--text-2); }
.my-stat .v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.my-panel .panel-h { padding: 18px 22px 4px; align-items: flex-start; }
.my-panel .panel-b { padding: 14px 22px 20px; }
.my-panel .panel-b.flush { padding: 0; }
.my-panel + .my-panel { margin-top: 16px; }
.my-sub { margin: 4px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.55; }
.my-form { max-width: 440px; }
.my-act { display: flex; gap: 8px; margin-top: 4px; }
@media (max-width: 860px) {
  .my-wrap { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .my-side { position: static; }
  .my-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .my-nav a { white-space: nowrap; padding: 8px 12px; }
  .my-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tbl.likes td:nth-child(5) { grid-column: 1 / -1; }
  .bb-in .input { width: 150px; }
  .co-grid { grid-template-columns: minmax(0, 1fr); }
}
/* 낙찰 시세 > 시세표: 왼쪽(연도별)과 오른쪽(승강기 · 세대수 구간별) 표의 끝을 맞춘다 — 짧은 쪽 표의 행이 늘어난다 */
.mk-grid { align-items: stretch; }
.mk-col { display: flex; flex-direction: column; min-width: 0; }
.mk-lbl { margin-bottom: 6px; line-height: 18px; }
.mk-lbl2 { margin-top: 16px; }
.mk-col > .tbl-wrap { flex: 1 1 auto; display: flex; flex-direction: column; }
.mk-col > .tbl-wrap > .tbl { flex: 1 1 auto; }
.mk-size { table-layout: fixed; }
/* 영업 리드: 경과 · 규모 조건 한 줄 */
.lf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; }
.lf-b .lbl { margin: 0 0 6px; }
.lf-b .quick button { height: 26px; padding: 0 8px; font-size: 12px; }
.lf-foot { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin-top: 10px; }
.lf-foot .toggle { margin: 0; }
.lf-foot .note { margin: 0; }
@media (max-width: 1100px) { .lf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lf-grid { grid-template-columns: minmax(0, 1fr); } }

/* 정렬되는 표 제목: ▲▼ 는 늘 보이고 지금 방향만 파랗게 (영업 리드) */
.tbl th.sortable { user-select: none; }
.tbl th.sortable .th-in { display: inline-flex; align-items: center; gap: 6px; }
.tbl th.sortable .sa { display: inline-flex; flex-direction: column; gap: 2px; flex: none; }
.tbl th.sortable .sa i { display: block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.tbl th.sortable .sa i.up { border-bottom: 5px solid var(--border-strong); }
.tbl th.sortable .sa i.dn { border-top: 5px solid var(--border-strong); }
.tbl th.sortable:hover { color: var(--text); background: var(--surface-4); }
.tbl th.sortable:hover .sa i.up { border-bottom-color: var(--muted); }
.tbl th.sortable:hover .sa i.dn { border-top-color: var(--muted); }
.tbl th.sortable.asc, .tbl th.sortable.desc { color: var(--accent); }
.tbl th.sortable.asc .sa i.up { border-bottom-color: var(--accent); }
.tbl th.sortable.desc .sa i.dn { border-top-color: var(--accent); }
.lsort-now { margin-left: 14px; font-size: 13px; color: var(--text-2); }
.lsort-now .linkbtn { font-size: 13px; margin-left: 4px; }
.count .lsort-now b, .lsort-now b { font-size: 13px; color: var(--text); }
/* 영업 리드 표: 열 폭 고정 (정렬을 바꿔도 칸 크기가 그대로). 휴대폰은 단지 칸도 고정하고 가로로 밀어 본다 */
.lead-tbl { table-layout: fixed; }
.lead-tbl .c-no { width: 56px; }
.lead-tbl .c-score { width: 128px; }
.lead-tbl .c-built { width: 134px; }
.lead-tbl .c-age { width: 72px; }
.lead-tbl .c-last { width: 178px; }
.lead-tbl .c-hh { width: 82px; }
.lead-tbl .c-elev { width: 86px; }
.lead-tbl .c-tel { width: 118px; }
.lead-tbl .c-open { width: 108px; }
.lead-tbl td { overflow: hidden; text-overflow: ellipsis; }
.lead-tbl td:nth-child(2) b { overflow-wrap: anywhere; }
@media (max-width: 760px) { .lead-tbl .c-apt { width: 160px; } }
.lead-tbl th.num .th-in { justify-content: flex-end; }
/* =================== 첫 화면 (서비스 소개, #/home) =================== */
/* 그림 색 (public/js/art.js 의 a-* 클래스) — 라이트 / 다크 */
:root {
  --art-sky: #e8f0fc; --art-sun: #ffe9b3; --art-sun2: #ffd680; --art-cloud: #ffffff;
  --art-f1: #ffffff; --art-f2: #d2dcec; --art-old: #e5e9ef; --art-roof: #b8c6da; --art-win: #bed1ea; --art-win2: #aabcd8; --art-lit: #ffd166; --art-door: #8193b1;
  --art-far: #dde7f5; --art-far2: #d0dcee; --art-farwin: #c6d5ec;
  --art-ground: #dce6f2; --art-ground2: #c7d5e7; --art-tree: #72c197; --art-tree2: #4fa87c; --art-trunk: #9a7a58;
  --art-acc: #2450b8; --art-acc2: #a8bff0; --art-warm: #f39a3a; --art-warm2: #d97b1d; --art-red: #e45a44; --art-good: #1f9d63;
  --art-skin: #f1c19b; --art-shirt: #2450b8; --art-pants: #34435d; --art-hat: #f6b73c; --art-ink2: #4a5872;
  --art-rope: #7b8799; --art-car: #ef6b57; --art-glass: #d3e3f7; --art-tire: #2b3444; --art-steel: #aebccf; --art-plat: #56657f;
  --art-tile: #eef3fb; --art-card: #ffffff; --art-line: #d9e1ec; --art-band: #eaf1fd;
  --art-night: #1b2537; --art-night2: #233047; --art-night3: #2e3c57; --hm-final: #111a29;
}
:root[data-theme="dark"] {
  --art-sky: #172238; --art-sun: #4a4230; --art-sun2: #6b5a33; --art-cloud: #243049;
  --art-f1: #2a3549; --art-f2: #1f2939; --art-old: #333f55; --art-roof: #3a4862; --art-win: #3a5174; --art-win2: #31435f; --art-lit: #f3c450; --art-door: #4d6186;
  --art-far: #1f2a3f; --art-far2: #1b2537; --art-farwin: #28364f;
  --art-ground: #1c2637; --art-ground2: #243148; --art-tree: #3f8f67; --art-tree2: #2f7453; --art-trunk: #6b5540;
  --art-acc: #7ea2ff; --art-acc2: #3c5a9c; --art-warm: #e08a2e; --art-warm2: #bf6d18; --art-red: #d24b37; --art-good: #3fbf83;
  --art-skin: #d8a883; --art-shirt: #5b82e0; --art-pants: #1f2a3b; --art-hat: #e3a632; --art-ink2: #8d9bb3;
  --art-rope: #6d7a8e; --art-car: #d65a47; --art-glass: #50698f; --art-tire: #0e141d; --art-steel: #52627c; --art-plat: #8594ad;
  --art-tile: #1b2433; --art-card: #232d3d; --art-line: #334055; --art-band: #1d2a48;
  --art-night: #141d2c; --art-night2: #1b2536; --art-night3: #243048; --hm-final: #0b111b;
}
.a-sky { fill: var(--art-sky); } .a-sun { fill: var(--art-sun); } .a-sun2 { fill: var(--art-sun2); } .a-cloud { fill: var(--art-cloud); }
.a-f1 { fill: var(--art-f1); } .a-f2 { fill: var(--art-f2); } .a-old { fill: var(--art-old); } .a-roof { fill: var(--art-roof); } .a-win { fill: var(--art-win); } .a-win2 { fill: var(--art-win2); }
.a-lit { fill: var(--art-lit); } .a-door { fill: var(--art-door); } .a-far { fill: var(--art-far); } .a-far2 { fill: var(--art-far2); } .a-farwin { fill: var(--art-farwin); }
.a-ground { fill: var(--art-ground); } .a-ground2 { fill: var(--art-ground2); } .a-tree { fill: var(--art-tree); } .a-tree2 { fill: var(--art-tree2); } .a-trunk { fill: var(--art-trunk); }
.a-acc { fill: var(--art-acc); } .a-acc2 { fill: var(--art-acc2); } .a-warm { fill: var(--art-warm); } .a-warm2 { fill: var(--art-warm2); } .a-red { fill: var(--art-red); } .a-good { fill: var(--art-good); }
.a-skin { fill: var(--art-skin); } .a-shirt { fill: var(--art-shirt); } .a-pants { fill: var(--art-pants); } .a-hat { fill: var(--art-hat); } .a-ink2 { fill: var(--art-ink2); }
.a-car { fill: var(--art-car); } .a-glass { fill: var(--art-glass); } .a-tire { fill: var(--art-tire); } .a-steel { fill: var(--art-steel); } .a-plat { fill: var(--art-plat); } .a-roller { fill: var(--art-warm); }
.a-tile { fill: var(--art-tile); } .a-card { fill: var(--art-card); } .a-line { fill: var(--art-line); } .a-band { fill: var(--art-band); }
.a-night { fill: var(--art-night2); } .a-night2 { fill: var(--art-night3); } .a-night3 { fill: #36476a; }
.a-stroke { stroke: var(--art-line); stroke-width: 1.5; }
.a-rope { stroke: var(--art-rope); stroke-width: 1.4; fill: none; }
.a-rail { stroke: var(--art-plat); stroke-width: 2.5; fill: none; stroke-linejoin: round; }
.a-arm { stroke: var(--art-skin); stroke-width: 5; stroke-linecap: round; fill: none; }
.a-stick { stroke: var(--art-ink2); stroke-width: 2.5; stroke-linecap: round; }
.a-stickw { stroke: var(--art-ink2); stroke-width: 4; stroke-linecap: round; fill: none; }
.a-crane line { stroke: var(--art-warm); stroke-width: 2.2; }
.a-check { stroke: var(--art-good); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.a-checkw { stroke: #fff; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.a-hand { stroke: var(--art-ink2); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.a-gap { stroke: var(--art-ink2); stroke-width: 1.5; }
.a-wave { stroke: var(--art-acc2); stroke-width: 3; fill: none; stroke-linecap: round; }
.a-hose { stroke: var(--art-ink2); stroke-width: 3; fill: none; stroke-linecap: round; }
.a-lane { stroke: var(--art-line); stroke-width: 3; }
.a-spoke { stroke: var(--art-card); stroke-width: 3; }
.a-dash { stroke: var(--art-acc2); stroke-width: 2.5; fill: none; stroke-dasharray: 5 6; stroke-linecap: round; }
.a-ring { fill: none; stroke: var(--art-acc); stroke-width: 4; }
.a-valve { fill: none; stroke: var(--art-warm); stroke-width: 5; }
.a-valvesp { stroke: var(--art-warm); stroke-width: 3.5; stroke-linecap: round; }
.a-txt { fill: var(--text-2); font-size: 13px; font-weight: 600; font-family: var(--font); }
.a-txtb { fill: var(--text); font-size: 13px; font-weight: 800; font-family: var(--font); }
.a-txtw { fill: #fff; font-size: 12px; font-weight: 800; font-family: var(--font); }
.a-txtacc { fill: var(--art-acc); font-size: 13px; font-weight: 800; font-family: var(--font); }
.a-ptxt { fill: #fff; font-size: 20px; font-weight: 900; font-family: var(--font); }

#view.pg-home { max-width: none; padding: 0; }
.hm-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
/* 1. 첫 화면 */
.hm-hero { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); border-bottom: 1px solid var(--border); overflow: hidden; }
.hm-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; padding-top: 64px; padding-bottom: 112px; align-items: center; }
.hm-eye { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 16px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); }
.hm-copy h1 { font-size: 42px; line-height: 1.24; letter-spacing: -.035em; font-weight: 800; margin: 0; color: var(--text); }
.hm-copy h1 em { font-style: normal; color: var(--accent); }
.hm-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hm-points li { position: relative; padding-left: 30px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--text); line-height: 1.4; }
.hm-points li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.hm-points li::after { content: ""; position: absolute; left: 8px; top: 9px; width: 5px; height: 8px; border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.hm-brand { margin: 22px 0 0; font-size: 15px; color: var(--text-2); font-weight: 600; }
.hm-brand b { display: block; margin-top: 2px; font-size: 30px; font-weight: 900; letter-spacing: -.03em; color: var(--text); }
.hm-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hm-cta .n5-btn.lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.hm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--border); }
.hm-stats > div { padding: 0 24px; border-left: 1px solid var(--border); }
.hm-stats > div:first-child { padding-left: 0; border-left: 0; }
.hm-stats dt { font-size: 12.5px; color: var(--muted); }
.hm-stats dd { margin: 4px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.hm-stats dd small { font-size: 12.5px; font-weight: 600; margin-left: 2px; color: var(--text-2); }
.hm-visual { position: relative; }
.hm-art svg { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(36, 80, 184, .35); }
.hm-float { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-pop); }
.hm-soon { right: -28px; bottom: -86px; width: 340px; overflow: hidden; }
.hm-soon-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.hm-soon-h a { font-size: 12.5px; font-weight: 600; }
.hm-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--text); }
.hm-row:last-child { border-bottom: 0; }
.hm-row:hover { background: var(--surface-2); text-decoration: none; }
.hm-row .dday { flex: 0 0 48px; font-weight: 800; font-size: 13px; padding-top: 1px; }
.hm-row-m { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hm-row-c { font-size: 11.5px; font-weight: 700; color: var(--accent); }
.hm-row-m b { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-row-s { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-chip { left: 22px; top: 22px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.hm-chip span { font-size: 11.5px; font-weight: 700; color: var(--good); }
.hm-chip b { font-size: 24px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hm-chip b small { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-left: 3px; }
/* 공통 섹션 */
.hm-sec { padding: 96px 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.hm-sec.alt { background: var(--surface-2); }
.hm-h { max-width: 760px; }
.hm-no { display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 12px; padding: 3px 0; border-bottom: 2px solid var(--accent); }
.hm-h h2 { font-size: 32px; line-height: 1.32; letter-spacing: -.035em; font-weight: 800; margin: 0; }
.hm-h p { margin: 16px 0 0; font-size: 16px; line-height: 1.75; color: var(--text-2); }
.hm-feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.hm-f { padding: 24px 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.hm-f-art svg { width: 60px; height: 60px; display: block; }
.hm-f-t { margin-top: 16px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; display: flex; flex-direction: column; gap: 4px; }
.hm-f-t span { font-size: 12.5px; font-weight: 700; color: var(--accent); letter-spacing: 0; }
.hm-f p { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.hm-sub { display: flex; align-items: baseline; gap: 12px; margin: 64px 0 18px; }
.hm-sub h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.hm-sub .muted { font-size: 13px; }
.hm-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hm-cat { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); color: var(--text); transition: transform .15s, border-color .15s; }
.hm-cat:hover { text-decoration: none; border-color: var(--ink); transform: translateY(-2px); }
.hm-cat-art { background: var(--art-tile); padding: 12px 18px 4px; }
.hm-cat-art svg { display: block; width: 100%; height: auto; max-height: 116px; }
.hm-cat-t { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; font-size: 15px; }
.hm-cat-t span { font-size: 13.5px; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.hm-qwrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 48px; }
.hm-qh { font-size: 14px; font-weight: 800; color: var(--text); padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.hm-q { display: grid; grid-template-columns: 1fr auto 16px; gap: 10px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 14.5px; }
.hm-q:hover { text-decoration: none; background: var(--surface-2); }
.hm-q b { font-variant-numeric: tabular-nums; font-weight: 700; }
.hm-q i { font-style: normal; color: var(--faint); }
.hm-q:hover i { color: var(--accent); }
.hm-more { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; font-size: 15px; color: var(--text-2); font-weight: 600; }
.hm-more .n5-btn.lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.hm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hm-pic { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: 0 24px 48px -32px rgba(20, 27, 38, .35); }
.hm-pic svg { display: block; width: 100%; height: auto; }
.hm-steps { list-style: none; counter-reset: st; margin: 28px 0 0; padding: 0; }
.hm-steps li { counter-increment: st; position: relative; padding: 13px 0 13px 44px; border-top: 1px solid var(--border); font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.hm-steps li:last-child { border-bottom: 1px solid var(--border); }
.hm-steps li::before { content: counter(st); position: absolute; left: 0; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--ink-text); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hm-steps b { display: block; color: var(--text); font-size: 15.5px; }
.hm-tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 28px; }
.hm-tbl th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 6px 0; border-bottom: 2px solid var(--ink); }
.hm-tbl td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.hm-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.hm-tbl td a { font-weight: 700; color: var(--text); }
.hm-tbl td a:hover { color: var(--accent); }
.hm-flow { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr); align-items: stretch; margin-top: 44px; }
.hm-step { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); }
.hm-step:hover { text-decoration: none; border-color: var(--ink); }
.hm-step-art svg { width: 96px; height: 72px; display: block; margin-bottom: 10px; }
.hm-step-no { font-size: 12.5px; font-weight: 800; color: var(--accent); }
.hm-step b { font-size: 18px; letter-spacing: -.02em; }
.hm-step p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-2); flex: 1; }
.hm-step > span { margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.hm-step-arr { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 20px; }
/* 마무리 */
.hm-final { position: relative; overflow: hidden; background: var(--hm-final); color: #fff; padding: 104px 0 190px; }
.hm-sky { position: absolute; left: 0; right: 0; bottom: 0; height: 170px; }
.hm-sky svg { display: block; width: 100%; height: 100%; }
.hm-final-in { position: relative; text-align: center; }
.hm-final-eye { font-size: 13.5px; font-weight: 700; color: #9db8ff; }
.hm-final h2 { margin: 12px 0 0; font-size: 36px; font-weight: 800; letter-spacing: -.035em; line-height: 1.3; color: #fff; }
.hm-final p { margin: 18px auto 0; max-width: 680px; font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, .72); }
.hm-final .hm-cta { justify-content: center; margin-top: 32px; }
.hm-btn-w { background: #fff; color: #141b26; border: 0; }
.hm-btn-w:hover { background: #e9eef6; }
.hm-btn-o { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .38); }
.hm-btn-o:hover { border-color: #fff; }
@media (max-width: 1080px) {
  .hm-hero-in { grid-template-columns: minmax(0, 1fr); gap: 72px; padding-bottom: 120px; }
  .hm-visual { max-width: 640px; }
  .hm-split, .hm-split.rev { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hm-split.rev .hm-pic { order: 2; }
  .hm-feat, .hm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-flow { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hm-step-arr { transform: rotate(90deg); height: 20px; }
}
@media (max-width: 560px) {
  .hm-in { padding: 0 16px; }
  .hm-hero-in { padding-top: 36px; padding-bottom: 32px; gap: 28px; }
  .hm-copy h1 { font-size: 29px; }
  .hm-points li { font-size: 16.5px; }
  .hm-brand b { font-size: 25px; }
  .hm-stats > div { padding: 0 16px; }
  .hm-stats dd { font-size: 22px; }
  .hm-float { position: static; margin-top: 12px; width: auto; }
  .hm-chip { display: none; }
  .hm-art svg { border-radius: 20px; }
  .hm-sec { padding: 56px 0; }
  .hm-h h2 { font-size: 24px; }
  .hm-h p { font-size: 15px; }
  .hm-h p br { display: none; }
  .hm-feat { grid-template-columns: minmax(0, 1fr); }
  .hm-cats { gap: 10px; }
  .hm-cat-t { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 14px; }
  .hm-qwrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hm-pic { padding: 12px; border-radius: 16px; }
  .hm-cta .n5-btn.lg, .hm-more .n5-btn.lg { flex: 1 1 auto; justify-content: center; }
  .hm-final { padding: 64px 0 150px; }
  .hm-final h2 { font-size: 26px; }
  .hm-final p br { display: none; }
}

/* 화면 설명 팝업 (내 조건 · 영업 리드): 위에서 내려온다 */
.ipop-lay { position: fixed; inset: 0; z-index: 950; background: rgba(20, 27, 38, 0); display: flex; justify-content: center; align-items: flex-start; padding: 72px 16px 16px; transition: background .2s; }
.ipop-lay.on { background: rgba(20, 27, 38, .32); }
.ipop { width: 100%; max-width: 520px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(-40px); opacity: 0; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.ipop-lay.on .ipop { transform: none; opacity: 1; }
.ipop-b { padding: 24px 26px 18px; overflow-y: auto; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.ipop-k { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.ipop-b h2 { margin: 6px 0 12px; font-size: 19px; letter-spacing: -.02em; color: var(--text); line-height: 1.4; }
.ipop-b ol { margin: 0; padding: 0; list-style: none; counter-reset: ip; }
.ipop-b li { counter-increment: ip; position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--line); }
.ipop-b li::before { content: counter(ip); position: absolute; left: 2px; top: 9px; font-weight: 800; color: var(--text); }
.ipop-b li b { color: var(--text); margin-right: 6px; }
.ipop-b > p { margin: 12px 0 0; }
.ipop-b h2 + p { margin: 0 0 10px; }
.ipop-f { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.ipop-f button { height: 50px; border: 0; background: var(--surface); font: inherit; font-size: 14px; color: var(--text-2); cursor: pointer; }
.ipop-f button + button { border-left: 1px solid var(--border); color: var(--text); font-weight: 700; }
.ipop-f button:hover { background: var(--surface-3); }

/* =================== 모든 화면 아래쪽: 사업자 정보 · 약관 · 환불 정책 =================== */
.site-foot { background: var(--surface); border-top: 1px solid var(--border); padding: 28px 0 calc(36px + env(safe-area-inset-bottom, 0px)); }
.site-foot:empty { display: none; }
.sf-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sf-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; }
.sf-brand { display: flex; align-items: baseline; gap: 10px; }
.sf-brand b { font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.sf-brand span { font-size: 13px; color: var(--muted); }
.sf-nav { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 13px; }
.sf-nav a { color: var(--text-2); }
.sf-nav a b { color: var(--text); }
.sf-biz { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }

.sf-biz a { font-weight: 600; }
.sf-s { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; color: var(--muted); }
#view.pg-home + .site-foot { border-top: 0; }
@media (max-width: 560px) { .sf-in { padding: 0 16px; } .sf-biz { font-size: 12px; } }

/* 결제 화면: 구독 해지 · 환불 규정 */
.refund-box { margin-top: 16px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.rb-h { padding: 10px 14px; background: var(--surface-3); font-size: 13.5px; font-weight: 800; }
.rb-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.rb-tbl th { width: 96px; text-align: left; vertical-align: top; padding: 9px 14px; color: var(--text); font-weight: 700; border-top: 1px solid var(--line); white-space: nowrap; }
.rb-tbl td { padding: 9px 14px 9px 0; color: var(--text-2); line-height: 1.6; border-top: 1px solid var(--line); }
.rb-more { display: block; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 700; }
@media (max-width: 560px) { .rb-tbl th { display: block; width: auto; padding-bottom: 0; } .rb-tbl td { display: block; padding: 4px 14px 10px; border-top: 0; } }

/* 마이페이지: 해지 · 환불 창, 안내 */
.pop.bill-pop { max-width: 480px; }
.bill-pop .pop-m p { margin: 0 0 10px; }
.pm-q { margin: 14px 0 8px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.pm-rsn { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bill-pop textarea.input { width: 100%; height: auto; min-height: 56px; padding: 8px 10px; font: inherit; font-size: 13.5px; resize: vertical; }
.pm-note { margin: 10px 0 0 !important; font-size: 13px; color: var(--text-2); padding: 10px 12px; background: var(--surface-3); border-radius: 8px; }
.pm-kv { margin: 0 0 6px; }
.pm-amt { font-size: 18px; color: var(--text); }
.bill-pop .chk { margin: 12px 0 0; }
.bill-pop .auth-err { margin: 8px 0 0; }
.bill-steps { list-style: none; margin: 0; padding: 0; counter-reset: bs; }
.bill-steps li { counter-increment: bs; position: relative; padding: 10px 0 10px 32px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.7; color: var(--text-2); }
.bill-steps li:first-child { border-top: 0; padding-top: 0; }
.bill-steps li:first-child::before { top: 0; }
.bill-steps li::before { content: counter(bs); position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-4); color: var(--text); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.bill-steps b:first-child { display: block; color: var(--text); font-size: 14px; }
.sc-act .btn.danger { background: var(--surface); }
.legal ul { margin: 6px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.8; color: var(--text-2); }
.legal ul li + li { margin-top: 2px; }
.ad-site { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; max-width: 860px; }
.ad-site > div { grid-column: 1 / -1; }
@media (max-width: 760px) { .ad-site { grid-template-columns: minmax(0, 1fr); } }

/* ───────── 간편 로그인 (account.js) ─────────
   네이버: 로그인 디자인 가이드 — 초록 #03C75A 바탕 + 흰 N
   Google: 브랜드 가이드 — 라이트 흰 바탕·#747775 테두리·#1F1F1F 글자, 다크 #131314 바탕·#8E918F 테두리·#E3E3E3 글자 + 4색 G */
.sns-btns { display: flex; flex-direction: column; gap: 10px; margin: 2px 0 4px; }
.btn-sns { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 46px; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.btn-sns:hover { text-decoration: none; }
.btn-sns svg { flex: none; }
.btn-sns.naver { background: #03c75a; color: #fff; }
.btn-sns.naver:hover { background: #02b351; color: #fff; }
.btn-sns.naver svg { width: 15px; height: 15px; }
.btn-sns.google { background: #fff; color: #1f1f1f; border: 1px solid #747775; font-weight: 600; }
.btn-sns.google:hover { background: #f6f8fc; color: #1f1f1f; }
.btn-sns.google svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .btn-sns.google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
:root[data-theme="dark"] .btn-sns.google:hover { background: #1f1f20; color: #e3e3e3; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; font-size: 12px; color: var(--muted); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.sns-who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 4px 0 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.sns-who b { font-size: 14px; }
.sns-ic, .lg-ic { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; }
.sns-ic.naver, .lg-ic.naver { background: #03c75a; color: #fff; }
.sns-ic.google, .lg-ic.google { background: #fff; border: 1px solid var(--border); }
.sns-ic.google svg, .lg-ic.google svg { width: 17px; height: 17px; }
.sns-ic svg, .lg-ic svg { width: 13px; height: 13px; }
.sns-p { font-size: 13.5px; line-height: 1.65; color: var(--text-2); margin: 0 0 14px; }
.lg-rows { display: flex; flex-direction: column; max-width: 560px; }
.lg-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.lg-row:first-child { border-top: 0; padding-top: 2px; }
.lg-ic.mail { background: var(--surface-3); color: var(--text-2); font-weight: 700; font-size: 15px; }
.lg-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lg-t b { font-size: 14px; }
.lg-t span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-t span.on { color: #03a94f; font-weight: 600; }
.sns-note { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); text-align: center; }
.sns-note a { color: var(--text-2); text-decoration: underline; }

/* 새 공고 알림 (app.js pollLive) */
.live-pill { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 70; border: 0; border-radius: 999px; padding: 10px 18px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 22px rgba(20, 40, 90, .25); white-space: nowrap; }
.live-pill:hover { background: var(--accent-2); }
.live-pill[hidden] { display: none; }
