/* 인재풀DB 화면 프로토타입 — HR Platform 공통 디자인 체계 + 모듈 강조색 #167D70 */
:root {
  --bg: #f4f7fc; --sf: #fff; --sf2: #f7f9fc; --bd: #e3e8f0; --bd2: #cdd6e3;
  --ink: #1b2a4a; --ink2: #5b6472; --ink3: #8a93a2;
  --brand: #1f6fe5; --brand-h: #1a5fd0; --brand-soft: #eaf1fd;
  --acc: #167d70; --acc-h: #11695e; --acc-soft: #e5f3f1; --acc-soft2: #f1f8f7;
  --danger: #c8382e; --danger-soft: #fdecea; --warn: #b7791f; --warn-soft: #fdf3e2; --ok: #1f9d6a; --ok-soft: #e3f5ed;
  --violet: #6d55c7; --violet-soft: #f1edfb;
  --th: #eef2f8; --row: #e8edf4;
  --r-sm: 6px; --r: 8px; --r-lg: 12px;
  --shadow: 0 1px 2px rgba(27,42,74,.05), 0 6px 18px -14px rgba(22,125,112,.25);
  --pop: 0 20px 44px -18px rgba(15,23,42,.38);
  --font: "Noto Sans KR", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 13.5px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 레이아웃 ---------- */
.app { display: flex; min-height: 100vh; }
.sb { width: 240px; flex: none; background: var(--sf); border-right: 1px solid var(--bd); display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; }
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; border-bottom: 1px solid var(--bd); margin-bottom: 12px; }
.logo { font-weight: 800; font-size: 18px; letter-spacing: .02em; color: #24408e; }
.logo i { font-style: normal; color: #8fb0e6; }
.mod { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--acc-soft); color: var(--acc); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 2px 0; border-radius: 8px; color: var(--ink2); font-weight: 500; position: relative; }
.nav a:hover { background: var(--acc-soft2); color: var(--ink); }
.nav a.on { background: var(--acc-soft); color: var(--acc); font-weight: 700; }
.nav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acc); }
.nav .cnt { margin-left: auto; font-size: 11px; background: var(--th); color: var(--ink2); border-radius: 999px; padding: 1px 7px; }
.nav .cnt.alert { background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.nav-sec { font-size: 11px; color: var(--ink3); font-weight: 700; padding: 12px 12px 4px; letter-spacing: .04em; }
.sb-foot { margin-top: auto; border-top: 1px solid var(--bd); padding-top: 10px; }
.sb-foot a.home { background: var(--brand); color: #fff; justify-content: center; font-weight: 600; }
.sb-foot a.home:hover { background: var(--brand-h); color: #fff; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { height: 64px; flex: none; background: var(--sf); border-bottom: 1px solid var(--bd); display: flex; align-items: center; gap: 12px; padding: 0 28px; position: sticky; top: 0; z-index: 20; }
.top h1 { font-size: 18px; margin: 0; }
.top .sub { color: var(--ink3); font-size: 12.5px; }
.top .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ham { display: none; width: 36px; height: 36px; border: 1px solid var(--bd2); border-radius: 8px; background: #fff; align-items: center; justify-content: center; }
.content { padding: 22px 28px 60px; display: flex; flex-direction: column; gap: 16px; }
.demo-banner { background: #fffbea; border: 1px solid #f1dfa1; color: #7a5b0c; border-radius: var(--r); padding: 8px 12px; font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
.screen { display: none; flex-direction: column; gap: 16px; }
.screen.on { display: flex; }

/* ---------- 공통 요소 ---------- */
.card { background: var(--sf); border: 1px solid var(--bd); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.pad { padding: 16px 18px; }
.h2 { font-size: 15px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.h2 .aside { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--ink3); }
.muted { color: var(--ink3); }
.btn { height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--bd2); background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn:hover { background: var(--sf2); border-color: #b4c0d3; }
.btn.p { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn.p:hover { background: var(--brand-h); }
.btn.acc { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 600; }
.btn.acc:hover { background: var(--acc-h); }
.btn.dg { color: var(--danger); border-color: #f2b8b2; }
.btn.dg:hover { background: var(--danger-soft); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn.ghost { border-color: transparent; background: none; color: var(--ink2); }
.btn.on { background: var(--acc-soft); border-color: #a9d4cd; color: var(--acc); font-weight: 600; }
.demo { font-size: 10.5px; font-weight: 700; color: #8a6d12; background: #fff4cc; border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: 1px; }
select, input[type=text], input[type=search], textarea { font: inherit; font-size: 13px; color: var(--ink); background: #fff; border: 1px solid var(--bd2); border-radius: var(--r); min-height: 36px; padding: 6px 10px; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(22,125,112,.16); }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink2); font-weight: 500; }
.tag-st { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.st-now { background: var(--ok-soft); color: var(--ok); }
.st-talk { background: var(--brand-soft); color: var(--brand); }
.st-busy { background: #eef1f6; color: var(--ink2); }
.st-wait { background: var(--warn-soft); color: var(--warn); }
.st-rej { background: var(--danger-soft); color: var(--danger); }

/* 키워드(AI 추출) vs 태그(HR 부여) — 모양으로 구분 */
.kw { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid #c9d3e2; background: #fff; color: var(--ink); white-space: nowrap; }
.kw::before { content: "✦"; font-size: 9px; color: var(--violet); }
.kw.ex { border-color: #f2b8b2; color: var(--danger); text-decoration: line-through; }
.kw.ex::before { content: "−"; color: var(--danger); text-decoration: none; font-weight: 700; }
.tg { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tg::before { content: "#"; opacity: .6; }
.tg.eval { background: #e5f3f1; color: #11695e; }
.tg.mgmt { background: #eaf1fd; color: #1a5fd0; }
.tg.dep { background: #e3f5ed; color: #167a52; }
.tg.pref { background: #f3eefb; color: #5a43b0; }
.tg.dom { background: #fdf3e2; color: #9a6413; }
.tg.etc { background: #eef1f6; color: #4a5568; }
.tg.ai { background: #fff; color: var(--violet); border: 1px dashed #b9abe8; }
.tg.ai::before { content: "AI 제안 #"; opacity: .8; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink2); align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, #5b8fd6, #2a4a9a); position: relative; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.avatar small { position: absolute; bottom: -2px; right: -2px; font-size: 8px; background: #fff; color: var(--ink3); border: 1px solid var(--bd); border-radius: 4px; padding: 0 2px; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 14px 16px; }
.kpi .l { font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 28px; font-weight: 700; line-height: 1.1; margin-top: 6px; }
.kpi .v small { font-size: 13px; color: var(--ink2); font-weight: 500; margin-left: 2px; }
.kpi .d { font-size: 11.5px; color: var(--ink3); margin-top: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.bar { display: grid; grid-template-columns: 86px 1fr 34px; gap: 8px; align-items: center; margin: 7px 0; font-size: 12px; }
.bar .t { height: 9px; background: var(--th); border-radius: 6px; overflow: hidden; }
.bar .t b { display: block; height: 100%; background: var(--acc); border-radius: 6px; }
.bar .n { text-align: right; font-weight: 700; }
.mini-list .row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--row); font-size: 12.5px; }
.mini-list .row:first-child { border-top: none; }

/* ---------- 검색 ---------- */
.omni { display: flex; gap: 8px; align-items: center; }
.omni .box { flex: 1; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--acc); border-radius: 10px; background: #fff; padding: 0 12px; height: 44px; }
.omni .box input { border: none; flex: 1; min-height: 0; padding: 0; font-size: 14px; }
.omni .box input:focus { box-shadow: none; }
.search-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 12px; }
.sg-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sg-h .badge { width: 22px; height: 22px; border-radius: 6px; background: var(--acc); color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.sg-h b { font-size: 14px; }
.sg-h span { font-size: 11.5px; color: var(--ink3); margin-left: auto; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kwgroups { display: flex; flex-direction: column; gap: 8px; }
.kwgroup { border: 1px solid var(--bd); border-radius: 10px; padding: 8px; background: var(--sf2); }
.kwgroup .gh { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink2); margin-bottom: 6px; }
.kwgroup .gh .op { font-weight: 700; color: var(--acc); background: var(--acc-soft); border-radius: 4px; padding: 0 6px; }
.kwgroup.exg { border-color: #f6cdc8; background: #fff8f7; }
.kwgroup.exg .gh .op { color: var(--danger); background: var(--danger-soft); }
.chipbox { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 34px; background: #fff; border: 1px solid var(--bd2); border-radius: 8px; padding: 4px 6px; }
.chipbox input { border: none; min-height: 0; padding: 2px 4px; flex: 1; min-width: 90px; font-size: 12.5px; }
.chipbox input:focus { box-shadow: none; }
.chipbox .kw .x, .applied .x { cursor: pointer; color: var(--ink3); margin-left: 2px; text-decoration: none; }
.andsep { text-align: center; font-size: 11px; font-weight: 800; color: var(--acc); letter-spacing: .1em; }
.expr { font-family: Consolas, "D2Coding", monospace; font-size: 12px; background: #0f2a40; color: #cfe8e4; border-radius: 8px; padding: 8px 10px; overflow-x: auto; white-space: nowrap; }
.expr .op { color: #7fd4c6; font-weight: 700; }
.expr .no { color: #ffb4ab; font-weight: 700; }
.taggroups { display: flex; flex-direction: column; gap: 8px; }
.taggroups .tgrp { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.taggroups .tgrp .gl { width: 64px; font-size: 11.5px; color: var(--ink2); flex: none; }
.tg.sel { outline: 2px solid currentColor; outline-offset: 1px; }
.tg.pick { cursor: pointer; opacity: .55; }
.tg.pick.sel { opacity: 1; }
.applied-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 14px; }
.applied-bar .lbl { font-size: 12px; font-weight: 700; color: var(--ink2); margin-right: 4px; }
.applied { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: var(--sf2); border: 1px solid var(--bd); border-radius: 999px; padding: 2px 10px; }
.applied em { font-style: normal; color: var(--ink3); font-size: 11px; }
.saved { display: flex; flex-wrap: wrap; gap: 6px; }
.saved .sv { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #a9d4cd; background: var(--acc-soft2); color: var(--acc); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.saved .sv small { color: var(--ink3); font-weight: 500; }

/* ---------- 결과 ---------- */
.res-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.res-head .cnt { font-size: 14px; font-weight: 700; }
.res-head .cnt b { color: var(--acc); font-size: 18px; }
.seg { display: inline-flex; border: 1px solid var(--bd2); border-radius: 8px; overflow: hidden; }
.seg button { border: none; background: #fff; height: 34px; padding: 0 12px; font-size: 12.5px; color: var(--ink2); display: inline-flex; gap: 6px; align-items: center; }
.seg button.on { background: var(--acc-soft); color: var(--acc); font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 14px; }
.tcard { display: flex; flex-direction: column; }
.tc-top { display: flex; gap: 12px; padding: 14px 16px 10px; }
.tc-id { flex: 1; min-width: 0; }
.tc-name { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tc-role { font-size: 12.5px; color: var(--ink2); margin-top: 1px; }
.dup { font-size: 10.5px; font-weight: 700; color: var(--warn); background: var(--warn-soft); border-radius: 4px; padding: 1px 6px; }
.tc-exp { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.pill { font-size: 11.5px; background: var(--th); color: var(--ink); border-radius: 6px; padding: 2px 8px; }
.pill b { color: var(--acc); }
.tc-fav { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--bd); background: #fff; color: var(--ink3); display: flex; align-items: center; justify-content: center; }
.tc-fav.on { color: #e0a100; border-color: #f2dc93; background: #fffaea; }
.tc-body { padding: 0 16px 12px; display: grid; grid-template-columns: 76px 1fr; gap: 6px 10px; font-size: 12.5px; }
.tc-body dt { color: var(--ink3); font-size: 11.5px; padding-top: 2px; }
.tc-body dd { margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.proj { margin: 0; padding: 0; list-style: none; }
.proj li { position: relative; padding-left: 10px; margin: 1px 0; }
.proj li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--acc); }
.proj li span { color: var(--ink3); font-size: 11.5px; }
.tc-meta { display: flex; gap: 10px; align-items: center; padding: 8px 16px; border-top: 1px dashed var(--bd); font-size: 11.5px; color: var(--ink3); flex-wrap: wrap; }
.src { display: inline-flex; align-items: center; gap: 4px; background: var(--sf2); border: 1px solid var(--bd); border-radius: 4px; padding: 0 6px; color: var(--ink2); }
.tc-act { display: flex; gap: 6px; padding: 10px 16px 14px; }
.tc-act .btn { flex: 1; }
.cmp-check { display: inline-flex; align-items: center; gap: 6px; }
.cmp-check.on { background: var(--acc-soft); border-color: #a9d4cd; color: var(--acc); font-weight: 700; }
.pager { display: flex; gap: 4px; justify-content: center; align-items: center; }
.pager button { min-width: 34px; height: 34px; border: 1px solid var(--bd2); background: #fff; border-radius: 8px; font-size: 12.5px; }
.pager button.on { background: var(--acc); color: #fff; border-color: var(--acc); font-weight: 700; }
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 1100px; }
table.t th { background: var(--th); color: var(--ink); font-weight: 700; text-align: left; padding: 10px 10px; white-space: nowrap; font-size: 12px; }
table.t td { padding: 10px 10px; border-bottom: 1px solid var(--row); vertical-align: top; }
table.t tbody tr:hover { background: #f6fbfa; }
table.t .nm { font-weight: 700; display: flex; gap: 8px; align-items: center; }
table.t .nm .avatar { width: 28px; height: 28px; font-size: 11px; }

/* 비교 막대(하단 고정) */
.cmpbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 40; background: #0f2a40; color: #fff; border-radius: 12px; padding: 10px 12px 10px 16px; display: none; align-items: center; gap: 12px; box-shadow: var(--pop); }
.cmpbar.on { display: flex; }
.cmpbar .who { display: flex; gap: 6px; }
.cmpbar .who span { background: rgba(255,255,255,.12); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.cmpbar b { color: #7fd4c6; }

/* ---------- 상세 ---------- */
.detail { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.toc { position: sticky; top: 84px; padding: 10px; }
.toc a { display: block; padding: 7px 10px; border-radius: 6px; font-size: 12.5px; color: var(--ink2); }
.toc a:hover { background: var(--acc-soft2); color: var(--acc); }
.toc a b { color: var(--acc); margin-right: 4px; }
.sec { padding: 16px 18px; scroll-margin-top: 84px; }
.sec h3 { margin: 0 0 12px; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.sec h3 .n { width: 22px; height: 22px; border-radius: 6px; background: var(--acc-soft); color: var(--acc); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.sec h3 .aside { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--ink3); }
.prof { display: flex; gap: 16px; align-items: flex-start; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 16px; flex: 1; font-size: 13px; }
.kv div > span:first-child { display: block; font-size: 11.5px; color: var(--ink3); }
.timeline { border-left: 2px solid var(--bd); margin-left: 6px; padding-left: 16px; }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item::before { content: ""; position: absolute; left: -22px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--acc); }
.tl-item .when { font-size: 11.5px; color: var(--ink3); }
.tl-item .what { font-weight: 700; }
.tl-item .desc { font-size: 12.5px; color: var(--ink2); }
.kwtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.kwtable th { text-align: left; background: var(--th); padding: 8px; font-size: 12px; }
.kwtable td { padding: 8px; border-bottom: 1px solid var(--row); vertical-align: top; }
.ok-mark { color: var(--ok); font-weight: 700; font-size: 11.5px; }
.ai-mark { color: var(--violet); font-weight: 700; font-size: 11.5px; }
.file { display: flex; align-items: center; gap: 10px; border: 1px solid var(--bd); border-radius: 10px; padding: 10px 12px; }
.file .ic { width: 34px; height: 40px; border-radius: 5px; background: var(--danger-soft); color: var(--danger); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.file .ic.d { background: var(--brand-soft); color: var(--brand); }
.memo { border: 1px solid var(--bd); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; }
.memo .who { font-size: 11.5px; color: var(--ink3); margin-bottom: 4px; }

/* ---------- 비교 ---------- */
.cmp-wrap { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 980px; font-size: 12.5px; }
table.cmp th, table.cmp td { padding: 12px 14px; border-bottom: 1px solid var(--row); vertical-align: top; }
table.cmp thead th { background: #fff; position: sticky; top: 0; border-bottom: 2px solid var(--acc); text-align: left; }
table.cmp tbody th { width: 140px; text-align: left; color: var(--ink2); font-size: 12px; background: var(--sf2); font-weight: 700; }
table.cmp .hl { background: #f4fbfa; }
.cmp-head { display: flex; gap: 10px; align-items: center; }
.cmp-head .rm { margin-left: auto; color: var(--ink3); cursor: pointer; }
.win { color: var(--acc); font-weight: 700; }

/* ---------- 승인 ---------- */
.flow { display: flex; gap: 0; align-items: stretch; }
.flow .stp { flex: 1; text-align: center; padding: 12px 6px; position: relative; font-size: 12.5px; color: var(--ink2); }
.flow .stp b { display: block; font-size: 13.5px; color: var(--ink); }
.flow .stp .c { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; background: var(--th); font-weight: 800; color: var(--ink2); }
.flow .stp.cur .c { background: var(--acc); color: #fff; box-shadow: 0 0 0 4px var(--acc-soft); }
.flow .stp.done .c { background: var(--ok-soft); color: var(--ok); }
.flow .stp:not(:last-child)::after { content: ""; position: absolute; top: 27px; right: -10%; width: 20%; height: 2px; background: var(--bd2); }
.review { display: grid; grid-template-columns: 1.05fr 1fr; gap: 14px; align-items: start; }
.qlist .q { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--row); cursor: pointer; align-items: center; }
.qlist .q:first-of-type { border-top: none; }
.qlist .q.on { background: var(--acc-soft2); box-shadow: inset 3px 0 0 var(--acc); }
.qlist .q .info { flex: 1; min-width: 0; }
.qlist .q .info b { font-size: 13.5px; }
.qlist .q .info div { font-size: 11.5px; color: var(--ink3); }
.preview { height: 220px; border: 1px solid var(--bd); border-radius: 10px; background: repeating-linear-gradient(0deg, #fff 0 18px, #f3f5f9 18px 19px); display: flex; align-items: center; justify-content: center; color: var(--ink3); font-size: 12px; }
.decision { display: flex; gap: 8px; }
.decision .btn { flex: 1; height: 40px; }
.reason { display: none; }
.reason.on { display: block; }

/* ---------- 오버레이(모바일 메뉴) ---------- */
.scrim { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 50; }

/* ---------- 반응형 ---------- */
@media (max-width: 1180px) {
  .search-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .review { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sb { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 8px 0 24px -12px rgba(0,0,0,.4); }
  body.menu-open .sb { transform: none; }
  body.menu-open .scrim { display: block; }
  .ham { display: inline-flex; }
  .top { padding: 0 14px; height: 56px; }
  .top .sub, .top .hide-m { display: none; }
  .top h1 { font-size: 16px; }
  .content { padding: 14px 12px 90px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi .v { font-size: 22px; }
  .dash-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .toc { display: none; }
  .kv { grid-template-columns: 1fr 1fr; }
  .prof { flex-direction: column; }
  .omni { flex-wrap: wrap; }
  .omni .box { flex-basis: 100%; }
  .flow .stp { font-size: 11px; padding: 8px 2px; }
  .flow .stp b { font-size: 12px; }
  .cmpbar { left: 12px; right: 12px; transform: none; bottom: 12px; flex-wrap: wrap; }
  .tc-body { grid-template-columns: 68px 1fr; }
}

/* 검색 C 영역: 분류 이름을 위에, 태그를 아래 줄에 */
.search-grid { grid-template-columns: 1fr 1.25fr 1.05fr; }
.sg-h { flex-wrap: wrap; row-gap: 2px; }
.sg-h b { white-space: nowrap; }
.taggroups .tgrp .gl { width: 100%; font-weight: 700; margin-top: 2px; }

.dupwarn { display: block; background: var(--warn-soft); border: 1px solid #f1d29a; color: #7a4f0c; border-radius: var(--r); padding: 8px 12px; font-size: 12.5px; margin-bottom: 10px; }

/* ---- 인재 검색: 검색 방식 선택(A·B·C 항상 보임, 선택한 방식은 강조색·테두리) ---- */
.mode-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mode-card { display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 14px 16px; border: 1.5px solid var(--bd); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); box-shadow: 0 1px 2px rgba(27,42,74,.05); transition: border-color .12s, background .12s; }
.mode-card:hover { border-color: #a9d4cd; }
.mode-card .badge { width: 26px; height: 26px; flex: none; border-radius: 7px; background: var(--bd); color: var(--ink2); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.mode-card .mc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mode-card .mc-t b { font-size: 14.5px; }
.mode-card .mc-t span { font-size: 11.5px; color: var(--ink3); }
.mode-card .mc-n { font-size: 11px; color: var(--ink3); white-space: nowrap; align-self: center; }
.mode-card.on { border: 2px solid var(--acc); background: var(--acc-soft2); box-shadow: 0 0 0 3px rgba(22,125,112,.12); }
.mode-card.on .badge { background: var(--acc); color: #fff; }
.mode-card.on .mc-t b, .mode-card.on .mc-n { color: var(--acc); font-weight: 700; }
.mode-panel[hidden] { display: none; }
.filters.filters-a { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.applied-chips { display: contents; }
.applied.mode-ap { background: var(--acc-soft); border-color: #a9d4cd; color: var(--acc); font-weight: 700; }
.applied.ex-ap { color: var(--danger); }
.kw.sugg { cursor: pointer; }
.kw.sugg:hover { border-color: var(--acc); }
.kw small, .tg small { font-size: 10px; opacity: .7; font-weight: 500; }
.kwgroup .gh .lnk { margin-left: auto; border: none; background: none; color: var(--ink3); font-size: 11px; cursor: pointer; }
.kwgroup .gh .lnk:hover { color: var(--danger); }
.empty-res { text-align: center; padding: 30px 16px; }
@media (max-width: 1180px) { .filters.filters-a { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .mode-pick { gap: 8px; }
  .mode-card { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
  .mode-card .mc-t b { font-size: 12.5px; }
  .mode-card .mc-t span { display: none; }
  .mode-card .mc-n { align-self: flex-start; white-space: normal; }
  .filters.filters-a { grid-template-columns: 1fr 1fr; }
}
.filters.filters-a > label { min-width: 0; }
.filters.filters-a select { width: 100%; min-width: 0; }
@media (max-width: 400px) { .filters.filters-a { grid-template-columns: 1fr; } }
#applied > span:last-child, #res-applied > span:last-child { flex-wrap: wrap; justify-content: flex-end; }
.mode-panel .sg-h .badge { margin-left: 0; }

/* ---- 검색 패널 좌우 2단: 왼쪽 안내(50%) · 오른쪽 조건 입력(50%) ---- */
.mode-panel { padding: 0; overflow: hidden; }
.mp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mp-info { background: var(--acc-soft2); border-right: 1px solid var(--bd); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.mp-title { display: flex; align-items: center; gap: 10px; }
.mp-title .badge { width: 28px; height: 28px; flex: none; border-radius: 7px; background: var(--acc); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.mp-title b { font-size: 16px; color: var(--ink); }
.mp-info > p { margin: 0; font-size: 13.5px; color: var(--ink2); font-weight: 600; line-height: 1.55; }
.mp-rules { margin: 0; padding: 12px 14px; list-style: none; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--bd); border-radius: 10px; font-size: 12.5px; color: var(--ink2); line-height: 1.55; }
.mp-rules b { display: inline-block; min-width: 64px; color: var(--ink); font-weight: 700; margin-right: 4px; }
.mp-rules em { font-style: normal; color: var(--acc); font-weight: 600; }
.mp-rules .op { font-size: 11px; font-weight: 800; color: var(--acc); background: var(--acc-soft); border-radius: 4px; padding: 0 6px; }
.mp-rules .op.no { color: var(--danger); background: var(--danger-soft); }
.mp-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mp-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--bd); }
.mp-actions .btn { min-width: 84px; justify-content: center; }
.filters.filters-a { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mp-body .taggroups { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 1180px) { .filters.filters-a { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .mp-grid { grid-template-columns: 1fr; }
  .mp-info { border-right: none; border-bottom: 1px solid var(--bd); padding: 14px; }
  .mp-body { padding: 14px; }
  .mp-rules b { display: block; margin-bottom: 1px; }
  .filters.filters-a { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) { .filters.filters-a { grid-template-columns: 1fr; } }

/* ---- 검색 패널 왼쪽 안내 글자 크기: 큰 제목 2배(16→32px), 설명 문장 1.5배 · 안내 상자(검색 대상·적용 방식 등)는 원래 크기 ---- */
.mp-info { gap: 14px; padding: 24px 26px; }
.mp-title { gap: 14px; }
.mp-title .badge { width: 44px; height: 44px; border-radius: 10px; font-size: 22px; }
.mp-title b { font-size: 32px; line-height: 1.3; }
.mp-info > p { font-size: 20.25px; }
@media (max-width: 860px) {
  .mp-info { padding: 16px; }
  .mp-title b { font-size: 26px; }
  .mp-title .badge { width: 38px; height: 38px; font-size: 19px; }
}
@media (max-width: 400px) {
  .mp-title b { font-size: 22px; }
  .mp-info > p { font-size: 17px; }
}
/* 왼쪽 안내: 큰 제목·설명 두 줄은 가운데 정렬 */
.mp-title { justify-content: center; text-align: center; }
.mp-info > p { text-align: center; }
/* 왼쪽 안내 내용 전체를 패널 높이 안에서 위아래 가운데로(안내 상자 글은 왼쪽 정렬 유지) */
.mp-info { justify-content: center; }
.mp-rules { text-align: left; }
