/* ToxMind — Prixm AI 디자인 토큰 기반 (GNB 아이콘 레일 · LNB 패널 · 콘텐츠 카드) */
@font-face { font-family: "Pretendard Variable"; font-weight: 45 920; font-style: normal; font-display: swap; src: url("/static/fonts/PretendardVariable.woff2") format("woff2-variations"); }

:root {
  --font-sans: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --color-p-50: #efeffd; --color-p-100: #e4e3fc; --color-p-200: #c9c6f8; --color-p-300: #a9a3f2; --color-p-400: #8a80ec;
  --color-p-500: #6358f0; --color-p-600: #4f46e5; --color-p-700: #4338ca;
  --color-ai-50: #faf5ff; --color-ai-100: #f3f0ff; --color-ai-500: #7c5cbf; --color-ai-600: #6d28d9;
  --color-n-50: #f8fafc; --color-n-100: #f1f5f9; --color-n-200: #e6edf3; --color-n-300: #d7e0e9; --color-n-400: #9fadba;
  --color-n-500: #6b7a89; --color-n-600: #43505d; --color-n-700: #303a45; --color-n-800: #16202b;
  --color-gnb-bg: #f4f6fc; --color-gnb-active: #e8eeff; --color-gnb-stroke: #dee6f1; --color-gnb-panel-bg: #fafafd;
  --px-tint-hover: #f4f4fe; --px-tint-on: #efeffd;
  --ok: #12805c; --ok-soft: #e6f6ef; --warn: #b45309; --warn-soft: #fff4e5; --err: #c53b3b; --err-soft: #fdeeee; --info: #1d4ed8; --info-soft: #e8eeff;
  --radius: 5px; --radius-md: 6px; --radius-lg: 10px; --radius-xl: 14px; --radius-2xl: 15px;
  --shadow-sm: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a; --shadow-md: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
  --gnb-w: 64px; --lnb-w: 246px; --head-h: 52px;
  --sr-50: #f4f7fa; --sr-100: #eaf0f6; --sr-200: #d5e2ee; --sr-300: #b7cbdd; --sr-500: #5e7f9e; --sr-700: #36536e;   /* search marks */
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font-sans); font-size: 14px; line-height: 1.5; color: var(--color-n-800); background: var(--color-gnb-bg); -webkit-font-smoothing: antialiased; }
a { color: var(--color-p-600); text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
#app { height: 100%; display: flex; flex-direction: column; }

/* ---------- header ---------- */
.px-head { height: var(--head-h); display: flex; align-items: center; padding: 0 18px 0 14px; gap: 10px; background: var(--color-gnb-bg); }
.px-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--color-n-800); }
.px-logo .logo-img { height: 23px; width: auto; display: block; }
.px-logo small { font-weight: 500; color: var(--color-n-500); font-size: 12px; margin-left: 2px; }
.px-head .spacer { flex: 1; }
.px-head .status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-n-500); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-n-300); display: inline-block; }
.dot.ok { background: var(--ok); } .dot.err { background: var(--err); } .dot.run { background: var(--color-p-500); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--color-p-100); color: var(--color-p-700); display: grid; place-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }

/* ---------- shell (design 3-1): one left card (GNB rail + LNB) | the main card, 8px apart ---------- */
.px-shell { flex: 1; display: flex; min-height: 0; padding: 0 12px; gap: 8px; }
.px-side { position: relative; isolation: isolate; flex: none; display: flex; min-height: 0; background: #fff; border: 1px solid var(--color-gnb-stroke); border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 6px 20px rgba(22, 32, 43, .05); }
.px-side::before { content: ""; position: absolute; z-index: 0; left: 0; top: 0; bottom: 0; width: var(--gnb-w); background: #f9fafd; pointer-events: none; }   /* under the glass rail */
/* GNB: glass rail (translucent white and a blur over #f9fafd), a narrow shadow on its right only while the LNB is open */
.px-gnb { position: relative; z-index: 2; width: var(--gnb-w); flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0 10px; background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .42)); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .9), inset -1px 0 0 rgba(255, 255, 255, .55); transition: box-shadow .24s ease; }
.px-shell:not(.lnb-collapsed):not(.no-lnb) .px-gnb { box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .9), inset -1px 0 0 rgba(255, 255, 255, .55), 3px 0 6px -3px rgba(22, 32, 43, .16); }
/* menu: two-tone glyph tiles, grey by default and purple→blue on the selected one (the gi-* gradients sit in the rail) */
.px-gnb .g { --gi-a: url(#gi-a-n); --gi-b: url(#gi-b-n); --gi-k: var(--color-n-600); width: 56px; padding: 2px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--color-n-500); font-size: 10.5px; font-weight: 500; }
.px-gnb .g.on { --gi-a: url(#gi-a); --gi-b: url(#gi-b); --gi-k: #3346c9; color: var(--color-n-800); font-weight: 600; }
.px-gnb .g .gi { width: 49px; height: 45px; border-radius: 10px; display: grid; place-items: center; transition: background .16s ease, box-shadow .16s ease; }
.px-gnb .g svg { width: 28px; height: 28px; }
.px-gnb .g .a { fill: var(--gi-a); }
.px-gnb .g .b { fill: var(--gi-b); }
.px-gnb .g .t { fill: none; stroke: var(--gi-a); }
.px-gnb .g .w { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.px-gnb .g .k { fill: none; stroke: var(--gi-k); stroke-width: 2.2; stroke-linecap: round; }
.px-gnb .g:hover { color: var(--color-n-700); }
.px-gnb .g:hover .gi { background: rgba(22, 32, 43, .045); }
.px-gnb .g.on .gi { background: #fff; box-shadow: inset 0 0 0 1px rgba(22, 32, 43, .14), 0 2px 8px rgba(22, 32, 43, .12); }
.px-gnb .grow { flex: 1; }
/* LNB (the 조사 menu only): white, a faint rule on its left */
.px-lnb { position: relative; z-index: 1; width: var(--lnb-w); display: flex; flex-direction: column; min-height: 0; background: #fff; border-left: 1px solid var(--color-n-100); }
.px-lnb h3 { margin: 0; padding: 16px 10px 10px 16px; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.px-lnb h3 .spacer { flex: 1; }   /* the fold button sits at the right end */
.px-lnb .new { margin: 0 10px 8px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-lg); font-weight: 600; color: var(--color-n-800); }
.px-lnb .new:hover { background: var(--px-tint-hover); }
.px-lnb .new .ic { width: 24px; height: 24px; border-radius: 7px; background: var(--color-p-500); color: #fff; display: grid; place-items: center; font-size: 14px; }
.px-lnb .sec { display: flex; align-items: baseline; gap: 6px; padding: 10px 16px 4px; font-size: 12px; color: var(--color-n-500); }
.px-lnb .sec .n { font-size: 11px; color: var(--color-n-400); font-variant-numeric: tabular-nums; }
.px-lnb .list { overflow: auto; flex: 1; padding: 0 8px 8px; scrollbar-width: thin; scrollbar-color: var(--color-n-200) transparent; }
/* recent investigations (12): name · time / CAS · status, faint rules between them (hidden next to the hovered or open one) */
.lnb-it { position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto; column-gap: 8px; row-gap: 0; padding: 7px 8px; border-radius: 8px; text-align: left; }
.lnb-it + .lnb-it { margin-top: 1px; }
.lnb-it + .lnb-it::before { content: ""; position: absolute; left: 8px; right: 8px; top: -1px; height: 1px; background: var(--color-n-200); }
.lnb-it:hover::before, .lnb-it:hover + .lnb-it::before, .lnb-it.on::before, .lnb-it.on + .lnb-it::before { opacity: 0; }
.lnb-it:hover { background: var(--color-n-50); }
.lnb-it.on { background: var(--px-tint-on); }
.lnb-it .nm { font-size: 13px; font-weight: 500; color: var(--color-n-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnb-it .tm { font-size: 11px; color: var(--color-n-400); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lnb-it .cas { font-size: 11.5px; color: var(--color-n-500); font-variant-numeric: tabular-nums; }
.lnb-it .st { justify-self: end; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: #1f7a52; white-space: nowrap; }
.lnb-it .st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
/* the design shows 완료 only: running purple (pulsing), failed red, the rest grey */
.lnb-it .st.running { color: var(--color-p-600); } .lnb-it .st.running::before { animation: pulse 1.2s infinite; }
.lnb-it .st.failed { color: var(--err); } .lnb-it .st.queued, .lnb-it .st.cancelling, .lnb-it .st.cancelled { color: var(--color-n-500); }
.px-lnb .empty { padding: 8px; font-size: 12px; color: var(--color-n-500); }
.px-lnb .foot { margin: 8px 10px 10px; padding: 6px 12px; border-radius: var(--radius-lg); background: var(--color-p-50); font-size: 12px; color: var(--color-p-700); display: flex; align-items: center; gap: 8px; }
.px-main { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--color-gnb-stroke); border-radius: var(--radius-xl); overflow: auto; }
.px-page { padding: 26px 32px 40px; max-width: 1240px; }
.px-page.wide { max-width: none; }
.px-page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.px-page-head h1 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.px-page-head .sub { color: var(--color-n-500); font-size: 13px; }
.px-page-head .spacer { flex: 1; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; border: 1px solid var(--color-n-300); background: #fff; color: var(--color-n-800); white-space: nowrap; }
.btn:hover { background: var(--color-n-50); }
.btn.primary { background: var(--color-p-500); border-color: var(--color-p-500); color: #fff; }
.btn.primary:hover { background: var(--color-p-600); }
.btn.lg { height: 42px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 6px; }
.btn.ghost { border-color: transparent; }
.btn.danger { color: var(--err); border-color: #f3c3c3; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--color-n-600); }
.field .hint { font-size: 12px; color: var(--color-n-500); }
.input, textarea.input { width: 100%; border: 1px solid var(--color-n-300); border-radius: 7px; padding: 9px 12px; background: #fff; outline: none; }
.input:focus { border-color: var(--color-p-400); box-shadow: 0 0 0 3px var(--color-p-100); }
.input.lg { font-size: 17px; padding: 12px 14px; border-radius: 10px; }
textarea.input { min-height: 72px; resize: vertical; font-family: var(--font-mono); font-size: 12.5px; }
.chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--color-n-300); font-size: 12px; color: var(--color-n-600); background: #fff; }
.chip.on { background: var(--color-p-50); border-color: var(--color-p-300); color: var(--color-p-700); }
.chip.off { text-decoration: line-through; opacity: .55; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--color-n-100); color: var(--color-n-600); white-space: nowrap; }
.tag.live { background: var(--ok-soft); color: var(--ok); } .tag.document { background: var(--info-soft); color: var(--info); }
.tag.literature { background: #e0f2fe; color: #0369a1; } .tag.web { background: var(--color-ai-100); color: var(--color-ai-600); }
.tag.recall { background: var(--warn-soft); color: var(--warn); } .tag.high { background: var(--ok-soft); color: var(--ok); }
.tag.dataset { background: var(--color-p-50); color: var(--color-p-700); }
.tag.medium { background: var(--info-soft); color: var(--info); } .tag.low { background: var(--warn-soft); color: var(--warn); }
.tag.approved { background: var(--ok-soft); color: var(--ok); } .tag.rejected { background: var(--err-soft); color: var(--err); } .tag.edited { background: var(--color-ai-100); color: var(--color-ai-600); }
.tag.done { background: var(--ok-soft); color: var(--ok); } .tag.running { background: var(--color-p-50); color: var(--color-p-700); } .tag.failed { background: var(--err-soft); color: var(--err); }
.tag.cancelled, .tag.skipped { background: var(--color-n-100); color: var(--color-n-500); } .tag.queued, .tag.pending { background: var(--color-n-100); color: var(--color-n-500); }

/* ---------- cards / grids ---------- */
.card { border: 1px solid var(--color-n-200); border-radius: var(--radius-lg); background: #fff; padding: 16px 18px; }
.card h4, .src-group > h4 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--color-n-600); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid2 > *, .grid3 > * { min-width: 0; }
.card .tbl-inline { overflow: auto; max-width: 100%; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.stat .l { font-size: 12px; color: var(--color-n-500); }
.muted { color: var(--color-n-500); }
.small { font-size: 12px; }
.mono { font-family: var(--font-mono); font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }
hr.sep { border: 0; border-top: 1px solid var(--color-n-200); margin: 18px 0; }

/* ---------- new investigation: report upload (admin) ---------- */
.drop { display: block; border: 1.5px dashed var(--color-n-300); border-radius: 12px; padding: 14px; text-align: center; color: var(--color-n-500); font-size: 13px; cursor: pointer; }
.drop:hover { border-color: var(--color-p-300); color: var(--color-p-700); }
.drop input { display: none; }
.filelist { list-style: none; padding: 0; margin: 8px 0 0; font-size: 12.5px; }

/* ---------- progress tab (design/ToxMind_화면기획_개발전달 · 상세화면.html 5-2) ---------- */
/* banner while the job is not done — a done job has the chip, tab count and side cards instead */
.pg-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 12px 16px; border: 1px solid #e3e6fb; border-radius: var(--radius-xl); background: linear-gradient(135deg, #f4f3ff 0%, #eef4ff 100%); }
.pg-hero.failed { border-color: #f3c3c3; background: var(--err-soft); }
.pg-hero.cancelled { border-color: var(--color-n-200); background: var(--color-n-50); }
.pg-ring { position: relative; width: 46px; height: 46px; flex: none; }
.pg-ring svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.pg-ring circle { fill: none; stroke-width: 6; }
.pg-ring .bg { stroke: #fff; }
.pg-ring .fg { stroke: var(--color-p-500); stroke-linecap: round; transition: stroke-dashoffset .4s ease; }
.pg-hero.failed .fg { stroke: var(--err); } .pg-hero.cancelled .fg { stroke: var(--color-n-400); }
.pg-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; }
.pg-hero-txt { flex: 1; min-width: 0; }
.pg-hero-txt h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
.pg-hero-txt em { font-style: normal; color: var(--color-p-600); }
.pg-hero-txt p { margin: 2px 0 0; font-size: 12.5px; color: var(--color-n-600); word-break: break-word; }
.pg-hero.failed p { color: var(--err); }
/* sections on a rail: one soft block per section (no rules), the running one tinted, finished ones fold */
.pg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; background: linear-gradient(var(--color-n-200), var(--color-n-200)) right 299px top / 1px 100% no-repeat; }   /* the rule left of the side column, all the way down */
/* progress · summary · coverage · logs: header and tabs stay put — the page is the card's height (as the data tab's tab-dt) and what is under the tabs
   scrolls as one, with a bare thumb for a scrollbar (on progress the sections and the side column together) */
.px-main.tab-fix { display: flex; flex-direction: column; }
.px-main.tab-fix > .px-page { flex: 1; min-height: 640px; display: flex; flex-direction: column; padding-bottom: 20px; }
.pg-tab, .sm-tab, .cv-tab, .lg-tab { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 0 4px; margin: 0 -12px 0 -4px; }   /* the thumb sits in the page padding, focus rings stay inside */
.pg-tab { padding-top: 4px; margin-top: -4px; container-type: size; }   /* room for the running ring of the first section; 100cqh = its visible height */
.pg-tab, .sm-tab, .cv-tab, .lg-tab, .au-tbl thead, .au-tbl tbody, .au-tbl tfoot, .au-log { scrollbar-width: thin; scrollbar-color: var(--color-n-300) transparent; }
.pg-tab::-webkit-scrollbar, .sm-tab::-webkit-scrollbar, .cv-tab::-webkit-scrollbar, .lg-tab::-webkit-scrollbar, .au-tbl thead::-webkit-scrollbar, .au-tbl tbody::-webkit-scrollbar, .au-tbl tfoot::-webkit-scrollbar, .au-log::-webkit-scrollbar { width: 6px; height: 6px; }
.pg-tab::-webkit-scrollbar-thumb, .sm-tab::-webkit-scrollbar-thumb, .cv-tab::-webkit-scrollbar-thumb, .lg-tab::-webkit-scrollbar-thumb, .au-tbl tbody::-webkit-scrollbar-thumb, .au-log::-webkit-scrollbar-thumb { background: var(--color-n-300); border-radius: 3px; }
.pg-phase { position: relative; padding: 0 0 28px 30px; }
.pg-phase:last-child { padding-bottom: 0; }
.pg-phase::before { content: ""; position: absolute; left: 8.5px; top: 20px; bottom: -2px; width: 1px; background: var(--color-n-200); }
.pg-phase:last-child::before { display: none; }
.pg-phase.done::before { background: #cde9db; }
.pg-phase.folded { padding-bottom: 16px; }
.pg-phase-hd { position: relative; display: flex; align-items: center; gap: 8px; min-height: 22px; margin-bottom: 10px; }   /* a long (EN) note wraps inside the row */
.pg-phase-hd .num { position: absolute; left: -30px; top: 2px; display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid var(--color-n-300); border-radius: 50%; background: #fff; color: var(--color-n-400); }
.pg-phase-hd .num svg { width: 11px; height: 11px; }
.pg-phase.done .num { border-color: var(--ok); background: var(--ok); color: #fff; }
.pg-phase.running .num { border-color: var(--color-p-500); box-shadow: 0 0 0 3px var(--color-p-100); }
.pg-phase.running .num::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-p-500); }
.pg-phase.skipped .num { border-style: dashed; }
.pg-phase.failed .num { border-color: var(--err); color: var(--err); }
.pg-phase-hd h3 { margin: 0; font-size: 15px; font-weight: 700; white-space: nowrap; }
.pg-phase-hd .note { font-size: 12px; color: var(--color-n-500); }
.pg-phase-hd .core { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--color-p-50); font-size: 11px; font-weight: 700; color: var(--color-p-700); }
.pg-phase-hd .sum { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--color-n-500); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-phase-hd .sum b { font-weight: 700; color: var(--ok); }
.pg-phase.running .sum { color: var(--color-p-600); }
.pg-phase-hd.can-fold { cursor: pointer; border-radius: 6px; }
.pg-phase-hd .fold { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-right: -4px; border-radius: 6px; color: var(--color-n-400); }
.pg-phase-hd .fold svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.pg-phase-hd.can-fold:hover .fold { background: var(--color-n-100); color: var(--color-n-700); }
.pg-phase.folded .fold svg { transform: rotate(-90deg); }
.pg-phase.folded .pg-steps { display: none; }
.pg-steps { display: flex; flex-direction: column; padding: 2px 12px; border-radius: 12px; background: var(--color-n-50); }
.pg-phase.running .pg-steps { background: #f4f4fe; }
.pg-step { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 5px; align-items: center; padding: 12px 4px; }
.pg-step + .pg-step { border-top: 1px solid rgba(22, 32, 43, .06); }
.pg-step.skipped { opacity: .7; } .pg-step.pending { opacity: .55; }
.pg-st { align-self: start; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 2px; color: var(--color-n-300); }
.pg-st svg { width: 14px; height: 14px; }
.pg-step.done .pg-st { color: var(--ok); } .pg-step.stopped .pg-st { color: var(--color-n-400); }
.pg-step.failed .pg-st, .pg-step.failed .dt { color: var(--err); }
.pg-step.running .pg-st::after { content: ""; width: 12px; height: 12px; border: 2px solid var(--color-p-200); border-top-color: var(--color-p-500); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pg-step .tt { display: block; font-size: 13.5px; line-height: 20px; font-weight: 600; }
.pg-step .ds { display: block; margin-top: 2px; font-size: 12px; line-height: 18px; color: var(--color-n-500); }
.pg-step .dt { display: block; margin-top: 2px; font-size: 12px; line-height: 18px; color: var(--color-p-600); word-break: break-word; }   /* result · live progress · skip reason · error */
.pg-step.skipped .dt { color: var(--color-p-400); }
.pg-bar { display: block; height: 4px; margin-top: 8px; border-radius: 99px; background: var(--color-p-50); overflow: hidden; }
.pg-bar i { display: block; height: 100%; border-radius: inherit; background: var(--color-p-500); transition: width .3s; }
.pg-res { font-size: 12.5px; font-weight: 700; color: var(--color-n-700); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-res.ok { color: var(--ok); } .pg-res.live { color: var(--color-p-600); } .pg-res.err { color: var(--err); }
.pg-res.muted { font-weight: 600; color: var(--color-n-400); }
/* decision (P5): soft amber block, no border */
.pg-decision { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fffbeb; font-size: 13px; color: #6b4e09; }
.pg-decision svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: #b7791f; }
.pg-decision b { color: #4a3606; }
.pg-decision .go { color: var(--color-p-700); }
.pg-decision.wait { background: var(--color-n-50); color: var(--color-n-500); }
.pg-decision.wait svg, .pg-decision.wait b { color: var(--color-n-500); }
/* side column: no card, a 1px rule on the left (.pg-grid); at least the visible height of the tab (under the banner while it shows), the live log
   taking what the collected rows leave — 400px at least; neither scrolls */
.pg-side { display: flex; flex-direction: column; min-height: calc(100cqh - var(--pg-hero, 0px)); padding-left: 20px; }
.pg-tab:has(> .pg-hero) { --pg-hero: 88px; }   /* the banner: ring 46 + padding 24 + border 2 + margin 16 */
.pg-card { padding: 4px 0 20px; }
.pg-card + .pg-card { padding-top: 18px; border-top: 1px solid var(--color-n-200); }
.pg-card h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.pg-card h4 small { font-size: 12px; font-weight: 500; color: var(--color-n-500); }
.pg-card h4 .spacer { flex: 1; }
.pg-total { margin-bottom: 12px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pg-total small { margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--color-n-500); }
.pg-bars { display: flex; flex-direction: column; gap: 7px; }
.pg-bars .r { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 2px 8px; align-items: center; font-size: 12px; line-height: 15px; }   /* the name on its own line (long English ones were cut off), bar and count under it */
.pg-bars .r span:first-child { grid-column: 1 / -1; color: var(--color-n-600); }
.pg-bars .track { height: 6px; border-radius: 99px; background: var(--color-n-200); overflow: hidden; }
.pg-bars .track i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: var(--color-p-400); }
.pg-bars .r.core .track i { background: var(--color-p-600); }
.pg-bars .r.zero { opacity: .5; }
.pg-bars .v { line-height: 12px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pg-feed { flex: 1; display: flex; flex-direction: column; padding-bottom: 0; }
/* live log: a fixed box of the latest lines, newest first in the DOM and stacked from the bottom, so older ones are cut off at the top without a scrollbar
   (전체 로그 보기 has them all); the margin keeps a short log at the top */
.pg-log { flex: 1 1 0; min-height: 400px; display: flex; flex-direction: column-reverse; gap: 3px; overflow: hidden; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--color-n-600); }
.pg-log > :first-child { margin-bottom: auto; }
.pg-link { align-self: flex-start; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--color-p-600); }
.pg-link:hover { text-decoration: underline; }
.pg-log .l { display: grid; grid-template-columns: 52px 28px minmax(0, 1fr); gap: 6px; }
.pg-log .ts { color: var(--color-n-400); }
.pg-log .st { color: var(--color-p-500); }
.pg-log .m { word-break: break-word; }
.pg-log .step .m { color: var(--info); } .pg-log .rows .m { color: var(--ok); } .pg-log .warn .m { color: var(--warn); } .pg-log .error .m { color: var(--err); }
@container main (max-width: 1000px) {
  .pg-grid { grid-template-columns: 1fr; background: none; }
  .pg-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; column-gap: 20px; min-height: 0; padding: 18px 0 0; border-top: 1px solid var(--color-n-200); }
  .pg-card + .pg-card { padding: 4px 0 0 20px; border-top: 0; border-left: 1px solid var(--color-n-200); }
}
@container main (max-width: 640px) {
  .pg-hero { flex-wrap: wrap; }
  .pg-side { grid-template-columns: 1fr; }
  .pg-card + .pg-card { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--color-n-200); }
  .pg-step { grid-template-columns: 16px minmax(0, 1fr); }
  .pg-step .pg-res { grid-column: 2; }   /* the result goes under the text */
}

/* ---------- results ---------- */
.tbl-wrap { overflow: auto; border: 1px solid var(--color-n-200); border-radius: 10px; max-height: 620px; }
table.tbl { border-collapse: separate; border-spacing: 0; font-size: 12.3px; min-width: 100%; }
table.tbl th { position: sticky; top: 0; background: #f4f6fc; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--color-n-200); font-weight: 600; color: var(--color-n-600); white-space: nowrap; z-index: 1; }
table.tbl td { padding: 7px 10px; border-bottom: 1px solid var(--color-n-100); vertical-align: top; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.tbl td.wide { max-width: 520px; }
table.tbl tr:hover td { background: var(--px-tint-hover); cursor: pointer; }
table.tbl tr.recall td { background: #fffaf2; }
table.tbl tr.rejected td { opacity: .45; text-decoration: line-through; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--color-n-800); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-md); z-index: 200; }
.empty { padding: 48px; text-align: center; color: var(--color-n-500); }
.prompt-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
.prompt-list button { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 7px; font-size: 13px; }
.prompt-list button.on { background: var(--px-tint-on); color: var(--color-p-700); font-weight: 600; }
textarea.prompt { width: 100%; min-height: 560px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; border: 1px solid var(--color-n-300); border-radius: 8px; padding: 12px; }
.src-table td, .src-table th { padding: 6px 8px; font-size: 12.5px; }
.demo-tbl td:nth-child(2), .demo-tbl td:nth-child(4) { white-space: normal; }   /* demo accounts: the dates wrap before Extend · Delete leave the card */
@media (max-width: 1100px) { .px-lnb { display: none; } .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .px-page { padding: 16px; } .grid2, .grid3 { grid-template-columns: 1fr; } .px-side { display: none; } }

.src-group { margin-bottom: 22px; }   /* sources page: stage title above its table, as on the history / substances pages */
.src-group .tbl-wrap { max-height: none; }   /* a stage holds a few sources — no scroll box inside the page */

/* source cells */
table.tbl td.fcell { text-align: center; padding: 4px 6px; cursor: default; }

/* ---------- header (design 3-1, demo state): days left as clock + text · a light language menu · account on one line, text logout ---------- */
.tag.demo-tag { display: inline-flex; align-items: center; gap: 2px; padding: 0; border-radius: 0; background: none; color: #c2410c; font-size: 12px; letter-spacing: -0.3px; }
.tag.demo-tag svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.user-chip { position: relative; display: flex; align-items: center; gap: 8px; padding-left: 12px; margin-left: 2px; }
.user-chip::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 16px; margin-top: -8px; background: var(--color-gnb-stroke); }
.user-chip .who { display: flex; flex-direction: column; line-height: 1.2; }
.user-chip .who b { font-size: 12.5px; font-weight: 500; color: var(--color-n-800); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .logout { display: inline-flex; align-items: center; height: 28px; margin-left: 4px; padding: 0 8px; border-radius: 7px; color: var(--color-n-500); font-size: 12px; font-weight: 500; }
.user-chip .logout:hover { color: var(--color-n-800); background: rgba(22, 32, 43, .05); }
.btn.ghost.danger { color: var(--err); }

/* ---------- auth (login / registration) — Prixm AI login layout ---------- */
.auth { min-height: 100%; display: flex; align-items: center; justify-content: center; background: #fff url("/static/login-bg.png") center / cover no-repeat; position: relative; padding: 32px; }
.auth-lang { position: absolute; top: 14px; right: 22px; }
.auth-wrap { display: grid; grid-template-columns: 596px 440px; gap: 100px; align-items: center; }
.auth-art { height: 656px; border-radius: 24px; display: grid; place-items: center; box-shadow: var(--shadow-md); overflow: hidden; position: relative;
  background: radial-gradient(60% 55% at 18% 22%, #a9a3f2 0%, rgba(169,163,242,0) 70%), radial-gradient(55% 60% at 78% 30%, #f0c7f3 0%, rgba(240,199,243,0) 70%),
              radial-gradient(70% 60% at 35% 85%, #c7b9fb 0%, rgba(199,185,251,0) 70%), radial-gradient(45% 45% at 85% 85%, #efe1ff 0%, rgba(239,225,255,0) 70%), linear-gradient(160deg, #c3c0fa 0%, #ead9fb 55%, #f6ecfd 100%); }
.auth-art::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(40% 35% at 55% 50%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 70%); filter: blur(10px); }
.auth-art img { position: relative; }
.auth-art img { width: 260px; filter: drop-shadow(0 4px 14px rgba(60,40,140,.25)); }
.auth-panel { display: flex; flex-direction: column; }
.auth-logo { height: 44px; width: auto; align-self: flex-start; }
.auth-tag { margin: 18px 0 0; color: var(--color-n-600); font-size: 16px; }
.auth-note { margin: 10px 0 0; font-size: 13px; color: var(--color-p-700); background: var(--color-p-50); border: 1px solid var(--color-p-100); padding: 8px 12px; border-radius: 8px; }
.auth-form { margin-top: 44px; display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--color-n-600); }
.auth-form .input { height: 48px; border-radius: 10px; font-size: 15px; }
.auth-err { color: var(--err); font-size: 13px; background: var(--err-soft); padding: 8px 12px; border-radius: 8px; }
.auth-btn { height: 56px; border-radius: 999px; font-size: 17px; margin-top: 8px; width: 100%; justify-content: center; }
@media (max-width: 1180px) { .auth-wrap { grid-template-columns: 1fr; gap: 28px; max-width: 440px; } .auth-art { height: 220px; } .auth-art img { width: 180px; } }

/* ---------- demo player ---------- */
/* header: "사용방법 재생하기" — white pill with a rainbow rim that keeps orbiting (demo accounts) */
.px-head { position: relative; }
.guide-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); isolation: isolate; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 18px 0 7px; border: 0; border-radius: 999px; background: #fff; color: var(--color-n-800); font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; cursor: pointer; box-shadow: 0 4px 16px rgba(99, 88, 240, .18); transition: transform .18s ease, box-shadow .18s ease; }
.guide-btn .guide-rim { position: absolute; inset: 0; padding: 2px; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: -1; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; }
.guide-btn .guide-rim::before { content: ""; position: absolute; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; background: conic-gradient(#ff5f6d, #ffb347, #ffe66d, #5ee7a0, #4fc3f7, #7b6cf6, #e26cf6, #ff5f6d); transform: translate(-50%, -50%) rotate(0deg); animation: guide-orbit 3s linear infinite; }
@keyframes guide-orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
.guide-btn .guide-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--color-p-500); color: #fff; flex: none; }
.guide-btn .guide-ic svg { width: 13px; height: 13px; margin-left: 1px; }
.guide-btn:hover { transform: translate(-50%, -50%) scale(1.04); box-shadow: 0 6px 22px rgba(99, 88, 240, .3); }
.guide-btn:active { transform: translate(-50%, -50%) scale(.98); }
.guide-btn:focus-visible { outline: 2px solid var(--color-p-500); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .guide-btn .guide-rim::before { animation: none; } }
/* off-centre it must stay positioned, or the rainbow rim (inset: 0) wraps the whole header */
@media (max-width: 1100px) { .guide-btn { position: relative; left: auto; top: auto; transform: none; } .guide-btn:hover, .guide-btn:active { transform: none; } }
@media (max-width: 760px) { .guide-btn { width: 36px; padding: 0; justify-content: center; } .guide-btn .guide-label, .user-chip .who { display: none; } }   /* icon only · avatar only */
/* footer */
.px-shell { padding-bottom: 0; }
.px-foot { flex: none; height: 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 20px; font-size: 12px; color: var(--color-n-500); }
.px-foot .copy { grid-column: 2; }
.px-foot .brand { grid-column: 3; justify-self: end; display: inline-flex; opacity: .85; transition: opacity .15s; }
.px-foot .brand:hover { opacity: 1; }
.px-foot .brand img { height: 16px; width: auto; display: block; }
/* demo intro dialog */
.intro-veil { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(18, 20, 34, .62); backdrop-filter: blur(4px); animation: introFade .25s ease; }
.intro-card { width: min(460px, 100%); background: #fff; border-radius: 20px; padding: 32px 32px 24px; box-shadow: 0 24px 70px rgba(10, 12, 30, .35); text-align: center; animation: introPop .32s cubic-bezier(.2, .9, .3, 1.2); }
.intro-logo { height: 26px; width: auto; margin-bottom: 18px; }
.intro-card h2 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.02em; color: var(--color-n-900, #111); }
.intro-card p { margin: 0 0 16px; color: var(--color-n-600); font-size: 14px; line-height: 1.65; }
.intro-card ul { list-style: none; margin: 0 0 22px; padding: 14px 16px; background: var(--color-p-50); border-radius: 12px; text-align: left; display: grid; gap: 7px; }
.intro-card li { font-size: 13.5px; color: var(--color-n-700); padding-left: 22px; position: relative; }
.intro-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--color-p-500); font-weight: 800; }
.intro-go { width: 100%; justify-content: center; border-radius: 999px; height: 48px; }
.intro-note { margin-top: 10px; font-size: 12px; color: var(--color-n-500); }
@keyframes introFade { from { opacity: 0; } }
@keyframes introPop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.player-bar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 170; display: flex; align-items: center; gap: 2px; height: 40px; padding: 0 5px 0 13px; max-width: calc(100vw - 32px); background: rgba(24, 27, 42, .92); color: #fff; border-radius: 999px; box-shadow: 0 8px 26px rgba(20,24,40,.28); overflow: hidden; opacity: .55; transition: opacity .2s ease; backdrop-filter: blur(6px); }
.player-bar:hover, .player-bar:focus-within { opacity: 1; }
.player-bar.low { top: auto; bottom: 12px; }   /* row / document panel open: their headers sit under the top edge */
.player-bar .pb-live { width: 7px; height: 7px; border-radius: 50%; background: #ff5a5f; flex: none; margin-right: 7px; animation: pbLive 1.4s ease-in-out infinite; }
.player-bar .pb-live.off { background: rgba(255,255,255,.35); animation: none; }
@keyframes pbLive { 50% { opacity: .3; } }
.player-bar .pb-title { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.player-bar .pb-count { font-size: 11.5px; color: rgba(255,255,255,.6); margin-left: 7px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player-bar .pb-count.err { color: #ff8a8d; } .player-bar .pb-count.ok { color: #7ee2a8; }
.player-bar .pb-div { width: 1px; height: 18px; background: rgba(255,255,255,.16); margin: 0 6px; flex: none; }
.player-bar .pb-btn { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.88); background: transparent; border: 0; cursor: pointer; flex: none; padding: 0; }
.player-bar .pb-btn svg { width: 18px; height: 18px; }
.player-bar .pb-btn:hover:not(:disabled) { background: rgba(255,255,255,.12); color: #fff; }
.player-bar .pb-btn:disabled { opacity: .35; cursor: default; }
.player-bar .pb-btn.main { background: var(--color-p-500); color: #fff; }
.player-bar .pb-btn.main:hover:not(:disabled) { background: var(--color-p-600); }
.player-bar .pb-btn.speed { width: auto; min-width: 30px; padding: 0 6px; border-radius: 15px; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.player-bar .pb-track { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--color-p-300, #a49cf7); transition: width .3s; }
/* demo player overlay */
.player-shield { position: fixed; inset: 0; z-index: 150; background: transparent; cursor: default; }
.player-spot { position: fixed; z-index: 155; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(20, 24, 40, .45); pointer-events: none; transition: left .25s, top .25s, width .25s, height .25s; }
.player-pointer { position: fixed; z-index: 162; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: rgba(99, 88, 240, .35); border: 2px solid var(--color-p-500); pointer-events: none; transition: left .35s cubic-bezier(.2,.8,.2,1), top .35s cubic-bezier(.2,.8,.2,1), transform .12s; }
.player-pointer.press { transform: scale(.6); background: var(--color-p-500); }
.player-bubble { position: fixed; z-index: 161; background: var(--color-n-800); color: #fff; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; box-shadow: 0 10px 30px rgba(20,24,40,.3); pointer-events: none; transition: left .25s, top .25s; }
.player-bubble::before { content: ""; position: absolute; width: 12px; height: 12px; background: var(--color-n-800); transform: rotate(45deg); }
.player-bubble.bottom::before { top: -6px; left: 22px; }
.player-bubble.top::before { bottom: -6px; left: 22px; }
.player-bubble.left::before { right: -6px; top: 18px; }
.player-bubble.right::before { left: -6px; top: 18px; }


/* ---------- language switcher (crissit.com style: globe · code · chevron → KR / EN dropdown) ---------- */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 6px; border-radius: 8px; color: var(--color-n-700); font-size: 14px; font-weight: 500; }
.lang-btn:hover, .lang.open .lang-btn { color: var(--color-n-800); background: rgba(22,32,43,.05); }
.lang-btn .code { min-width: 20px; text-align: left; letter-spacing: .02em; }
.lang .ic { display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.lang .ic-earth { width: 20px; height: 20px; --m: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2M9.926 15.94a14.2 14.2 0 0 0 2.031 4.242h.087a14.2 14.2 0 0 0 2.031-4.242zm-5.099 0a8.2 8.2 0 0 0 4.758 3.88 16 16 0 0 1-1.542-3.88zm11.131 0a16 16 0 0 1-1.542 3.88 8.2 8.2 0 0 0 4.757-3.88zM4.096 9.879A8.2 8.2 0 0 0 3.818 12c0 .733.097 1.445.278 2.121h3.598a16.2 16.2 0 0 1 0-4.242zm5.435 0a14.4 14.4 0 0 0 0 4.242h4.939a14.4 14.4 0 0 0 0-4.242zm6.775 0a16.2 16.2 0 0 1 0 4.242h3.598a8.2 8.2 0 0 0 0-4.242zM9.585 4.18a8.2 8.2 0 0 0-4.758 3.88h3.216a16 16 0 0 1 1.542-3.88m2.372-.363A14.2 14.2 0 0 0 9.926 8.06h4.15a14.2 14.2 0 0 0-2.032-4.243zm2.459.363a16 16 0 0 1 1.542 3.88h3.215a8.2 8.2 0 0 0-4.757-3.88'/%3E%3C/svg%3E"); }
.lang .ic-chevron { width: 16px; height: 16px; transition: transform .16s ease; --m: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.47 7.25 12 13.8l6.53-6.55L20 8.72l-8 8.03-8-8.03z'/%3E%3C/svg%3E"); }
.lang.open .ic-chevron { transform: rotate(180deg); }
.dd-lang { position: absolute; top: calc(100% + 8px); right: -10px; z-index: 210; min-width: 82px; padding: 10px 20px; border-radius: 4px; background: #000; display: flex; flex-direction: column;
  box-shadow: 0 0 4px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.08), 0 6px 12px rgba(0,0,0,.12); }
.dd-lang button { height: 48px; color: rgba(250,250,250,.55); font-size: 16px; font-weight: 500; text-align: center; border-radius: 4px; }
.dd-lang button:hover, .dd-lang button[aria-selected="true"] { color: #fafafa; }
@media (prefers-reduced-motion: reduce) { .lang .ic-chevron { transition: none; } }
/* the header's language switch is the design's small text button with a white card menu; the login screen keeps the look above */
.px-head .lang-btn { gap: 4px; height: 30px; padding: 0 8px; color: var(--color-n-600); font-size: 12.5px; }
.px-head .lang-btn .code { min-width: 0; }
.px-head .lang .ic-earth { width: 15px; height: 15px; opacity: .85; }
.px-head .lang .ic-chevron { width: 12px; height: 12px; opacity: .6; }
.px-head .dd-lang { top: calc(100% + 6px); right: 0; min-width: 140px; padding: 4px; gap: 1px; border-radius: 10px; background: #fff; border: 1px solid var(--color-gnb-stroke); box-shadow: 0 8px 24px rgba(22, 32, 43, .08), 0 1px 2px rgba(22, 32, 43, .04); animation: dd-in .14s ease; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-3px); } }
.px-head .dd-lang button { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 6px; color: var(--color-n-700); font-size: 13px; font-weight: 400; text-align: left; }
.px-head .dd-lang button small { margin-left: auto; font-size: 11px; color: var(--color-n-400); letter-spacing: .02em; }
.px-head .dd-lang button:hover { background: var(--color-n-50); color: var(--color-n-800); }
.px-head .dd-lang button[aria-selected="true"] { color: var(--color-p-700); font-weight: 600; }
.px-head .dd-lang button[aria-selected="true"] small { color: var(--color-p-500); }

/* ---------- AI star (start buttons · AI summary) ---------- */
.ico { display: contents; }   /* v-html wrapper for ICONS.* */
.ai-spark { width: 16px; height: 16px; flex: none; overflow: visible; fill: currentColor; }
.ai-spark .s1 { transform-origin: 12px 9px; animation: ai-spark-main 2.8s ease-in-out infinite; }
.ai-spark .s2 { opacity: .7; transform-origin: 19px 17.6px; animation: ai-spark-twinkle 2.8s ease-in-out infinite; }
@keyframes ai-spark-main { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.82) rotate(45deg); } }
@keyframes ai-spark-twinkle { 0%, 100% { opacity: .35; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .ai-spark .s1, .ai-spark .s2 { animation: none; } }

/* ---------- new investigation (design/ToxMind_화면기획_개발전달 · 새조사.html) ---------- */
.nw-page { container-type: inline-size; }
.nw-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; }
.nw-title h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.nw-title span { font-size: 13px; color: var(--color-n-500); }
/* search area: faint glass — two blurred colour blooms under a translucent white pane */
.nw-hero { position: relative; isolation: isolate; overflow: hidden; padding: 28px 28px 22px; border-radius: 20px; background: #f6f6fd; }
.nw-hero::before, .nw-hero::after { content: ""; position: absolute; z-index: -2; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.nw-hero::before { width: 460px; height: 300px; left: -80px; top: -120px; background: rgba(124, 116, 240, .2); }
.nw-hero::after { width: 420px; height: 280px; right: -60px; bottom: -150px; background: rgba(110, 196, 240, .32); }
.nw-hero .glass { position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .45); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .6); }
.nw-hero h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.3px; }
.nw-hero-h { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.nw-demo { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 11.5px; color: var(--color-n-400); }
.nw-demo svg { width: 13px; height: 13px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.nw-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--color-n-600); }
.nw-flow li { display: inline-flex; align-items: center; gap: 6px; }
.nw-flow li + li::before { content: "→"; color: var(--color-n-400); }
.nw-flow b { font-weight: 600; color: var(--color-n-800); }
.nw-mode { display: inline-flex; gap: 2px; margin-top: 16px; padding: 3px; border-radius: 12px; background: rgba(99, 88, 240, .09); }
.nw-mode button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 13px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--color-n-600); transition: background .15s, color .15s, box-shadow .15s; }
.nw-mode button svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.nw-mode button:hover { color: var(--color-p-700); }
.nw-mode button.on { background: #fff; color: var(--color-p-700); font-weight: 700; box-shadow: 0 2px 6px -1px rgba(79, 70, 229, .22); }
/* input: big rounded field with the start button inside */
.nw-form { margin-top: 10px; }
.nw-input { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 7px 0 20px; border-radius: 20px; background: rgba(255, 255, 255, .85); box-shadow: 0 1px 2px rgba(22, 32, 43, .04), 0 8px 24px -12px rgba(79, 70, 229, .25), inset 0 0 0 1px rgba(255, 255, 255, .9); transition: box-shadow .15s, background .15s; }
.nw-input:focus-within { background: #fff; box-shadow: 0 0 0 4px rgba(99, 88, 240, .14), 0 8px 24px -12px rgba(79, 70, 229, .35), inset 0 0 0 1px var(--color-p-300); }
.nw-input > svg { width: 18px; height: 18px; flex: none; stroke: var(--color-n-400); fill: none; stroke-width: 2; stroke-linecap: round; }
.nw-input input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 16px; color: var(--color-n-800); background: none; }
.nw-input input::placeholder, .nw-many textarea::placeholder { color: var(--color-n-400); }
.nw-input kbd { font-family: inherit; font-size: 11px; color: var(--color-n-400); background: rgba(255, 255, 255, .7); border-radius: 6px; padding: 2px 7px; box-shadow: inset 0 0 0 1px var(--color-n-200); }
.nw-go { height: 46px; padding: 0 20px; border-radius: 14px; font-size: 14.5px; gap: 7px; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .55); }
.nw-go .ai-spark { width: 22px; height: 22px; }
.nw-many { height: auto; flex-direction: column; align-items: stretch; gap: 6px; padding: 14px 7px 7px 20px; }
.nw-many textarea { width: 100%; min-height: 104px; max-height: 260px; resize: none; border: 0; outline: none; background: none; font-size: 15px; line-height: 1.7; color: var(--color-n-800); padding: 0 12px 0 0; }
.nw-many-ft { display: flex; align-items: center; gap: 10px; }
.nw-count { flex: none; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--color-n-100); color: var(--color-n-600); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.nw-count.has { background: var(--color-p-50); color: var(--color-p-700); }
.nw-many-ft .hint { font-size: 12px; color: var(--color-n-400); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-many-ft .spacer, .nw-sub .spacer { flex: 1; }
.nw-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nw-sub .lab { font-size: 12.5px; color: var(--color-n-500); margin-right: 2px; }
.nw-chip { height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); font-size: 12.5px; font-weight: 600; color: var(--color-n-700); }
.nw-chip:hover { border-color: var(--color-p-300); color: var(--color-p-700); }
.nw-chip.on { background: var(--color-p-50); border-color: var(--color-p-300); color: var(--color-p-700); }
/* advanced settings */
.nw-adv-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--color-n-600); transition: background .15s, color .15s; }
.nw-adv-btn:hover, .nw-adv-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .75); color: var(--color-p-700); }
.nw-adv-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nw-adv-btn .chev { width: 14px; height: 14px; transition: transform .15s; }
.nw-adv-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nw-adv-btn .sum { font-weight: 500; color: var(--color-n-400); }
.nw-adv { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px 32px; margin-top: 14px; padding: 18px 20px 14px; border-radius: 16px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 8px 24px -16px rgba(79, 70, 229, .3); }
.nw-field-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.nw-field-h b { font-size: 13px; font-weight: 700; }
.nw-field-h small { font-size: 12px; color: var(--color-n-400); }
.nw-depth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nw-depth button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--color-n-50); text-align: left; transition: background .15s, box-shadow .15s; }
.nw-depth button:hover { background: #fff; }
.nw-depth button.on { background: #fff; box-shadow: inset 0 0 0 1.5px var(--color-p-400), 0 4px 12px -6px rgba(79, 70, 229, .35); }
.nw-depth b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--color-n-800); }
.nw-depth button.on b { color: var(--color-p-700); }
.nw-depth b em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 5px; background: var(--color-p-50); color: var(--color-p-600); }
.nw-depth span { font-size: 12px; line-height: 1.55; color: var(--color-n-600); }
.nw-depth i { margin-top: auto; padding-top: 4px; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--color-n-400); }
.nw-step-in { display: inline-flex; align-items: center; height: 44px; padding: 0 4px; border-radius: 12px; background: var(--color-n-50); }
.nw-step-in button { width: 34px; height: 34px; border-radius: 9px; font-size: 18px; color: var(--color-n-600); }
.nw-step-in button:hover { background: #fff; color: var(--color-p-700); }
.nw-step-in input { width: 40px; border: 0; outline: none; background: none; text-align: right; font-size: 18px; font-weight: 700; color: var(--color-n-800); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.nw-step-in input::-webkit-inner-spin-button, .nw-step-in input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.nw-step-in .u { margin: 0 6px 0 3px; font-size: 13px; color: var(--color-n-500); }
.nw-help { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--color-n-500); }
.nw-adv-ft { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-top: 10px; border-top: 1px solid rgba(22, 32, 43, .06); }
.nw-reset { font-size: 12px; font-weight: 600; color: var(--color-n-500); padding: 4px 8px; border-radius: 6px; }
.nw-reset:hover { color: var(--color-p-700); background: rgba(255, 255, 255, .8); }
/* body: procedure timeline | sources (the right column is as tall as the body) */
.nw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; margin-top: 28px; align-items: stretch; }
.nw-sec-h { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; }
.nw-sec-h h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }
.nw-sec-h small { font-size: 12.5px; color: var(--color-n-500); }
.nw-sec-h .spacer { flex: 1; }
.nw-legend { display: flex; gap: 12px; font-size: 12px; color: var(--color-n-500); }
.nw-legend span { display: inline-flex; align-items: center; gap: 5px; }
.nw-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.nw-legend .soon::before { background: none; border: 1.5px dashed var(--color-n-400); width: 6px; height: 6px; }
.nw-phase { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; padding-bottom: 22px; }
.nw-phase::after { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: var(--color-n-200); }
.nw-phase:last-child { padding-bottom: 0; }
.nw-phase:last-child::after { display: none; }
.nw-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--color-n-600); background: var(--color-n-100); }
.nw-phase.core .nw-num { background: var(--color-p-500); color: #fff; }
.nw-phase.dec .nw-num { background: #fdf0c4; color: #a16207; font-size: 14px; }
.nw-ph-h { display: flex; align-items: baseline; gap: 8px; min-height: 28px; padding-top: 3px; margin-bottom: 10px; }
.nw-ph-h h4 { margin: 0; font-size: 14px; font-weight: 700; }
.nw-phase.core .nw-ph-h h4 { color: var(--color-p-700); }
.nw-ph-h small { font-size: 12px; color: var(--color-n-500); }
.nw-ph-h .core-tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 5px; background: var(--color-p-50); color: var(--color-p-700); }
.nw-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.nw-step { padding: 14px 16px; border-radius: 12px; background: var(--color-n-50); min-width: 0; }
.nw-phase.core .nw-step { background: #f4f4fe; }
.nw-phase.dec .nw-step { background: #fffaeb; }
.nw-step h5 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.nw-step .id { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--color-n-500); background: #fff; border-radius: 5px; padding: 0 5px; }
.nw-step p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--color-n-600); }
.nw-srcs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.nw-src { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 22px; padding: 2px 8px; border-radius: 6px; background: #fff; font-size: 11.5px; line-height: 1.4; color: var(--color-n-700); }
.nw-src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; }
.nw-src.soon { background: none; color: var(--color-n-400); box-shadow: inset 0 0 0 1px var(--color-n-200); }
.nw-src.soon::before { background: none; border: 1px dashed var(--color-n-400); width: 5px; height: 5px; }
.nw-src.off { background: none; color: var(--color-n-400); text-decoration: line-through; box-shadow: inset 0 0 0 1px var(--color-n-200); }
.nw-src.off::before { background: var(--color-n-300); }
/* sources: no card, a 1px rule on the left · the list is never scrolled */
.nw-side { padding: 2px 0 0 20px; border-left: 1px solid var(--color-n-200); }
.nw-side .nw-sec-h { margin-bottom: 8px; }
.nw-side .cnt { font-size: 12.5px; color: var(--color-n-500); }
.nw-side .cnt b { color: var(--color-p-700); }
.nw-side .nw-legend { padding: 0 0 10px; }
.nw-groups { margin: 0 -8px; }
.nw-grp + .nw-grp { margin-top: 2px; }
.nw-grp-h { display: flex; align-items: center; gap: 8px; padding-right: 8px; border-radius: 8px; }
.nw-grp-h:hover { background: var(--color-n-50); }
.nw-grp-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 0 7px 8px; font-size: 13px; font-weight: 700; text-align: left; }
.nw-grp-t .car { width: 14px; font-size: 10px; color: var(--color-n-400); transition: transform .15s; }
.nw-grp-t small { font-size: 11.5px; font-weight: 500; color: var(--color-n-400); }
.nw-grp.closed .car { transform: rotate(-90deg); }
.nw-grp-h .n { font-size: 11.5px; font-weight: 600; color: var(--color-n-500); font-variant-numeric: tabular-nums; }
.nw-grp.closed .nw-items { display: none; }
.nw-items { list-style: none; margin: 0 0 4px; padding: 0; }
.nw-items li label { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 30px; border-radius: 8px; font-size: 13px; color: var(--color-n-700); cursor: pointer; }
.nw-items li label:hover { background: var(--color-n-50); }
.nw-items .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-items .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.nw-items .soon-h button { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 2px 26px; padding: 3px 6px; border-radius: 6px; font-size: 11.5px; color: var(--color-n-400); }
.nw-items .soon-h button:hover { background: var(--color-n-50); color: var(--color-n-600); }
.nw-items .soon-h svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.nw-grp.show-soon .soon-h svg { transform: rotate(180deg); }
.nw-grp:not(.show-soon) li.soon { display: none; }
.nw-items li.soon label { cursor: default; color: var(--color-n-400); }
.nw-items li.soon label:hover { background: none; }
.nw-items .badge { font-size: 10.5px; font-weight: 600; color: var(--color-n-500); background: var(--color-n-100); border-radius: 5px; padding: 1px 6px; flex: none; }
.nw-items input, .nw-grp-h input { width: 15px; height: 15px; margin: 0; accent-color: var(--color-p-500); flex: none; cursor: pointer; }
.nw-items li.soon input { cursor: default; }
.nw-side .note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--color-n-500); }
@container (max-width: 980px) {
  .nw-grid, .nw-adv { grid-template-columns: 1fr; }
  .nw-side { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--color-n-200); }
}
@container (max-width: 600px) {
  .nw-hero { padding: 20px 16px; }
  .nw-input { padding-left: 14px; gap: 8px; }
  .nw-go { width: 46px; padding: 0; justify-content: center; }
  .nw-go .lbl, .nw-input kbd, .nw-many-ft .hint { display: none; }
  .nw-steps, .nw-depth { grid-template-columns: 1fr; }
  .nw-sec-h { flex-wrap: wrap; }
  .nw-many { padding-left: 14px; }
}

/* ---------- job detail header (design/ToxMind_화면기획_개발전달 · 상세화면.html) ---------- */
.px-main { container: main / inline-size; }   /* the detail screen reflows on the card width, as in the design (named: the progress tab is a container too) */
.jh-top { position: relative; z-index: 5; margin: -26px -32px 0; padding: 26px 32px 20px; box-shadow: 0 12px 16px -16px rgba(22, 32, 43, .19); }   /* full card width, soft shadow above the tabs; z-index above the sticky table headers (1) so its menus and tips stay on top */
/* progress · summary · coverage · logs scrolled down (.mini): the identity strip folds up under the title row — the 0fr row animates the height;
   the strip clips only while folded or folding (its tips hang below it) and leaves the tab order when folded */
.jh-top { display: grid; grid-template-rows: auto 1fr; transition: grid-template-rows .25s ease; }
.jh-top.mini { grid-template-rows: auto 0fr; }
.jh-top.mini .jh-strip { margin-top: 0; opacity: 0; visibility: hidden; overflow: hidden; transition: margin-top .25s ease, opacity .15s ease, visibility .25s, overflow 0s; }
@media (prefers-reduced-motion: reduce) { .jh-top, .jh-strip, .jh-top.mini .jh-strip { transition: none; } }
.jh { display: flex; align-items: center; gap: 24px; }
.jh-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; min-width: 0; }
.jh-title h1 { margin: 0 8px 0 0; font-size: 22px; line-height: 30px; font-weight: 800; letter-spacing: -0.3px; }
.jh-title .ko { margin-right: 12px; font-size: 16px; font-weight: 500; color: var(--color-n-500); }
.jh-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--color-n-100); color: var(--color-n-600); }
.jh-chip svg { width: 14px; height: 14px; }
.jh-chip.done { background: var(--ok-soft); color: var(--ok); }
.jh-chip.running { background: var(--color-p-50); color: var(--color-p-700); }
.jh-chip.running::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-p-500); animation: pulse 1.2s infinite; }
.jh-chip.failed { background: var(--err-soft); color: var(--err); }
.jh-chip.demo { background: none; padding: 0; margin-left: 10px; color: #c2410c; }
.jh-meta { display: inline-flex; align-items: center; height: 16px; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--color-n-200); font-size: 13px; color: var(--color-n-500); white-space: nowrap; }
.jh-help { position: relative; display: inline-flex; align-items: center; }
.jh-tip { display: none; position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: 280px; padding: 10px 12px; border-radius: 8px; background: var(--color-n-800); color: #fff; font-size: 12px; font-weight: 400; line-height: 1.55; white-space: normal; box-shadow: var(--shadow-md); }
.jh-help:hover .jh-tip, .jh-help:focus .jh-tip { display: block; }
.jh-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.jh-actions .btn { height: 36px; padding: 0 12px; border-radius: var(--radius-lg); font-size: 13px; }
.jh-actions .btn svg { width: 16px; height: 16px; flex: none; }
/* "다시 조사" is a secondary action: underlined text, not a button */
.jh-relink { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 6px; margin-right: 4px; font-size: 13px; font-weight: 600; color: var(--color-n-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--color-n-300); white-space: nowrap; }
.jh-relink:hover { color: var(--color-p-700); text-decoration-color: currentColor; }
.jh-relink svg { width: 14px; height: 14px; flex: none; }
.jh-dd { position: relative; }
.jh-dd-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: max-content; min-width: 100%; padding: 6px; border: 1px solid var(--color-n-200); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); }
.jh-dd.open .jh-dd-menu { display: block; }
.jh-dd-row { display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 10px; }   /* export scope · its rows · a button per format */
.jh-dd-row > span { flex: 1; margin-right: 14px; font-size: 13px; font-weight: 600; color: var(--color-n-800); white-space: nowrap; }
.jh-dd-row em { margin-left: 6px; font-style: normal; font-size: 12px; font-weight: 500; color: var(--color-n-500); font-variant-numeric: tabular-nums; }
.jh-dd-row.off > span, .jh-dd-row.off em { color: var(--color-n-400); }
.jh-dd-row button { min-width: 36px; height: 20px; padding: 0 4px; border-radius: 4px; font-size: 9px; font-weight: 800; color: #fff; }   /* the format badge, its colour inline */
.jh-dd-row button:hover:not(:disabled) { filter: brightness(.88); }
.jh-dd-row button:disabled { opacity: .35; cursor: default; }
.jh-dd-menu p { margin: 2px 0 0; padding: 8px 10px 4px; border-top: 1px solid var(--color-n-100); font-size: 11.5px; line-height: 1.5; color: var(--color-n-500); }
/* identity: "label value" pairs from the left — line 1 identifiers, line 2 external DBs */
.jh-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 24px; margin-top: 12px; min-height: 0; transition: margin-top .25s ease, opacity .2s ease, visibility .25s, overflow 0s .25s allow-discrete; }
.jh-strip .jh-div { flex-basis: 100%; height: 0; }
.jh-f { position: relative; display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.jh-f .k { font-size: 12px; line-height: 20px; color: var(--color-n-500); white-space: nowrap; }
.jh-f .v { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--color-n-800); white-space: nowrap; font-variant-numeric: tabular-nums; }
.jh-f a { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--color-p-600); }
.jh-f a:hover { text-decoration: underline; }
.jh-f .ext-ic { width: 12px; height: 12px; opacity: .5; flex: none; }
.jh-f a:hover .ext-ic { opacity: 1; }
.jh-copy { opacity: 0; position: absolute; right: -20px; top: 2px; display: inline-grid; padding: 2px; border-radius: 4px; background: #fff; color: var(--color-n-400); }
.jh-f:hover .jh-copy, .jh-copy:focus { opacity: 1; }
.jh-copy:hover { color: var(--color-p-600); background: var(--color-p-50); }
.jh-copy svg { width: 14px; height: 14px; }
/* result tabs */
.tabs { display: flex; gap: 4px; margin: 8px 0 16px; border-bottom: 1px solid var(--color-n-200); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 9px 12px 8px; margin-bottom: -1px; border-bottom: 3px solid transparent; font-size: 13px; color: var(--color-n-600); white-space: nowrap; }
.tabs button:hover { color: var(--color-n-800); }
.tabs button.on { color: var(--color-p-700); border-bottom-color: var(--color-p-700); font-weight: 700; }
.tabs button .n { padding: 0 5px; border-radius: 6px; background: var(--color-n-100); color: var(--color-n-500); font-size: 10.5px; font-weight: 600; }
.tabs button.on .n { background: var(--color-p-100); color: var(--color-p-700); }
@container (max-width: 860px) {
  .jh { flex-direction: column; align-items: flex-start; gap: 16px; }
  .jh-actions { margin-left: 0; flex-wrap: wrap; }
}
@container (max-width: 700px) { .jh-title h1 { font-size: 20px; } }
@media (max-width: 720px) { .jh-top { margin: -16px -16px 0; padding: 16px 16px 14px; } }   /* follows .px-page padding */

/* ---------- summary tab ---------- */
.sm-empty { padding: 72px 16px; text-align: center; font-size: 13px; color: var(--color-n-500); }
.sm-empty-ic { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 10px; }
.sm-empty-ic .ai-spark { width: 26px; height: 26px; }
.sm-empty b { display: block; margin-bottom: 4px; font-size: 15px; color: var(--color-n-800); }
.sm-empty .ai-spark, .rp-head .ai-spark { fill: var(--color-p-500); }
.sm-empty .ai-spark .s2, .rp-head .ai-spark .s2 { fill: var(--color-p-300); }
.sm-card { min-width: 0; padding: 14px 16px; border: 1px solid var(--color-n-200); border-radius: var(--radius-lg); background: #fff; }
.sm-card > h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.sm-card > h4 small { font-size: 12px; font-weight: 500; color: var(--color-n-500); }
.sm-card > h4 .spacer { flex: 1; }
.sm-link { font-size: 12px; font-weight: 600; color: var(--color-p-600); white-space: nowrap; }
.sm-link:hover { text-decoration: underline; }
/* top band: POD across the full width, then collected data | POD candidates */
.sm-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0; row-gap: 20px; align-items: stretch; padding: 4px 0 22px; border-bottom: 1px solid var(--color-n-200); }
.sm-top > .sm-card { padding: 0 28px; border: 0; border-radius: 0; background: none; }
.sm-top > .sm-card:first-child { padding-left: 0; }
.sm-top > .sm-card:last-child { padding-right: 0; }
.sm-top > .sm-card + .sm-card { border-left: 1px solid var(--color-n-200); }
.sm-top > .sm-pod + .sm-card { padding-left: 0; border-left: 0; }
.sm-top .sm-card > h4 { height: 20px; font-size: 12.5px; font-weight: 600; color: var(--color-n-500); }
.sm-top .sm-kpi > h4 { display: flex; align-items: center; gap: 4px; }
.sm-top .sm-kpi > h4 svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--color-n-500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* POD: the most important value — soft amber area, no border, no side bar */
.sm-top > .sm-card.sm-pod { grid-column: 1 / -1; display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 28px; padding: 20px 24px 18px; border-radius: 12px; background: #fff8e1; }
.sm-pod .pod-l { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-right: 28px; border-right: 1px solid #efd48c; }
.sm-pod .eyebrow { display: flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #fde68a; color: #78350f; font-size: 12px; font-weight: 700; }
.sm-pod .val { display: grid; row-gap: 2px; margin-top: 6px; }
.sm-pod .val .ep { font-size: 15px; font-weight: 800; letter-spacing: .04em; color: #92400e; }
.sm-pod .val b { font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: #111; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sm-pod .val b.long { font-size: 32px; }
.sm-pod .val .u { font-size: 15px; font-weight: 700; color: #78350f; }
.pod-kv { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px 16px; align-content: start; margin: 0; font-size: 13px; line-height: 1.6; }
.pod-kv dt { color: #8a6a2a; }
.pod-kv dd { margin: 0; color: var(--color-n-800); }
.pod-kv dd:first-of-type { font-weight: 600; }
/* POD selection rules: a line of rule names under the POD, unfolding to the six rules and the marking note */
.sm-top > .sm-card.sm-pod .pm { grid-column: 1 / -1; margin-top: 14px; padding-top: 12px; border-top: 1px solid #efd48c; }
.pm-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--color-n-500); }
.pm-toggle { display: inline-flex; align-items: center; gap: 4px; margin-left: -6px; padding: 3px 9px 3px 4px; border-radius: 6px; font-size: 13px; font-weight: 700; color: #92400e; }
.pm-toggle:hover { background: #fff3c4; }
.pm-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.pm-toggle.open svg { transform: rotate(90deg); }
.pm-chain { display: inline-flex; flex-wrap: wrap; gap: 2px 6px; color: #8a6a2a; }
.pm-chain span + span::before { content: "›"; margin-right: 6px; color: #d9b864; }
.pm-src { color: #8a6a2a; }
.pm-sel { margin-left: auto; }
.pm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.pm-steps li { min-width: 0; padding: 12px 14px 13px; border-radius: 10px; background: rgba(255, 255, 255, .64); }
.pm-steps b { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--color-n-800); }
.pm-steps .no { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px; background: #fde68a; color: #78350f; font-size: 11.5px; font-weight: 800; }
.pm-steps p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--color-n-600); }
.pm-mark { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--color-n-600); }
.pm-mark b { margin-right: 8px; color: #92400e; }
.sm-kpi .big { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sm-kpi .big small { margin-left: 3px; font-size: 12.5px; font-weight: 500; color: var(--color-n-500); }
.sm-kpi .sub { margin-top: 1px; font-size: 12px; color: var(--color-n-500); }
.sm-stack { display: flex; height: 6px; margin: 14px 0 10px; border-radius: 99px; overflow: hidden; background: var(--color-n-100); }
.sm-stack i { display: block; height: 100%; }
.sm-stack i + i { margin-left: 2px; }
.sm-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; font-size: 12px; color: var(--color-n-600); }
.sm-legend span { display: flex; align-items: center; gap: 6px; }
.sm-legend span::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.sm-legend b { margin-left: auto; font-weight: 600; color: var(--color-n-800); font-variant-numeric: tabular-nums; }
.sm-note { margin-top: 8px; font-size: 11.5px; color: var(--color-n-500); }
.sm-note.warn { color: var(--warn); }
.sm-split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; }
.sm-split div + div { padding-left: 16px; border-left: 1px solid var(--color-n-200); }
.sm-split span { display: block; font-size: 11.5px; color: var(--color-n-500); }
.sm-split b { font-size: 18px; font-variant-numeric: tabular-nums; }
/* AI summary: full-width report */
.sm-report { margin-top: 24px; border: 1px solid var(--color-n-200); border-radius: 14px; overflow: hidden; background: #fff; }
.rp-head { padding: 9px 28px; border-bottom: 1px solid var(--color-n-200); background: var(--color-n-50); color: var(--color-n-800); }
.rp-head h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.01em; line-height: 1.4; }
.rp-body { padding: 26px 28px 4px; }
.rp-lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; padding-bottom: 26px; border-bottom: 1px solid var(--color-n-200); }
.rp-quote { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.6; letter-spacing: -.01em; color: var(--color-n-800); }
.rp-quote em { display: block; margin-bottom: 6px; font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--color-p-700); }
.rp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; align-content: start; }
.rp-stat { min-width: 0; padding-top: 10px; border-top: 2px solid var(--color-p-600); }
.rp-stat b { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--color-p-700); font-variant-numeric: tabular-nums; }
.rp-stat b small { font-size: 11.5px; font-weight: 600; letter-spacing: 0; color: var(--color-n-500); }
.rp-stat span { display: block; margin-top: 3px; font-size: 12px; color: var(--color-n-500); }
.rp-sec { min-width: 0; padding: 24px 0; border-bottom: 1px solid var(--color-n-100); }
.rp-sec h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 6px 12px 6px 6px; border-radius: 6px; background: var(--color-n-50); font-size: 14px; font-weight: 700; color: var(--color-n-800); }
.rp-sec h4 .no { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--color-p-600); color: #fff; font-size: 12px; font-weight: 800; }
.sm-p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--color-n-700); }
.rp-sec .sm-p { font-size: 13.5px; line-height: 1.75; }
.sm-find { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-n-100); }
.sm-find li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--color-n-100); font-size: 13.5px; line-height: 1.65; }
.sm-find .ep { font-size: 12.5px; font-weight: 700; color: var(--color-n-700); }
/* 3 · 4 stack on the left, rows per sheet on the right — more sheets only make the column longer */
.rp-pair { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.rp-pair .rp-sec { border-bottom: 0; }
.rp-col .rp-sec + .rp-sec { border-top: 1px solid var(--color-n-100); }
.sm-review { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sm-review li { display: flex; align-items: flex-start; gap: 8px; padding: 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--color-n-700); }
.sm-review li::before { content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--warn); color: #fff; font-size: 11px; font-weight: 800; }
.rp-sheets h4 small { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--color-n-500); }
.sm-sheets { display: flex; flex-direction: column; max-height: 440px; margin: 0 -6px 0 0; padding: 0 6px 0 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--color-n-300) transparent; }
.sm-sheets li { display: grid; grid-template-columns: 18px minmax(0, 1fr) 56px 36px; gap: 8px; align-items: center; padding: 4px 0; font-size: 12.5px; }
.sm-sheets .no { text-align: right; font-size: 11px; color: var(--color-n-400); font-variant-numeric: tabular-nums; }
.sm-sheets .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-n-700); }
.sm-sheets .rc { margin-left: 4px; font-style: normal; font-size: 10.5px; color: var(--warn); }
.sm-sheets .tr { height: 6px; border-radius: 99px; background: var(--color-n-100); overflow: hidden; }
.sm-sheets .tr i { display: block; height: 100%; border-radius: inherit; background: var(--color-p-300); }
.sm-sheets .pod .tr i { background: var(--color-p-600); }
.sm-sheets .n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.sm-sheets .zero .nm { color: var(--err); }
.sm-sheets .zero .n { font-size: 11.5px; font-weight: 600; color: var(--err); }
.rp-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 28px; border-top: 1px solid var(--color-n-200); background: var(--color-n-50); font-size: 11.5px; color: var(--color-n-500); }
/* POD candidates: log-scale strip, filters, sortable table, pages of 15 */
.sm-pods { margin-top: 24px; }
.sm-dist-legend { display: flex; gap: 12px; font-size: 11.5px; font-weight: 400; color: var(--color-n-500); }
.sm-dist-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sm-dist-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.sm-dist { position: relative; height: 54px; margin: 2px 4px 14px; }
.sm-dist .axis { position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--color-n-200); }
.sm-dist .tick { position: absolute; top: 34px; transform: translateX(-50%); font-size: 10.5px; color: var(--color-n-400); }
.sm-dist .tick::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1px; height: 4px; background: var(--color-n-300); }
.sm-dist .dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; transform: translate(-50%, -50%); opacity: .55; }
.sm-dist .dot.rep { top: 22px; background: var(--color-p-500); }
.sm-dist .dot.dart { top: 14px; background: #0e9f6e; }
.sm-dist .dot.loael { opacity: .25; }
.sm-dist .star { position: absolute; top: 18px; transform: translate(-50%, -50%); font-size: 16px; color: #d97706; text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.sm-dist .lab { position: absolute; top: -4px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: #a16207; white-space: nowrap; }
.sm-dist .cap { position: absolute; right: 0; top: -4px; font-size: 11px; color: var(--color-n-400); }
.sm-dist .cap.left { right: auto; left: 0; }   /* opposite half from the selected value's label */
.sm-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sm-tools .spacer { flex: 1; }
.sm-tools .cnt { font-size: 12px; color: var(--color-n-500); }
.sm-seg { display: inline-flex; border: 1px solid var(--color-n-300); border-radius: 8px; overflow: hidden; }
.sm-seg button { padding: 5px 11px; border-right: 1px solid var(--color-n-300); font-size: 12.5px; color: var(--color-n-600); }
.sm-seg button:last-child { border-right: 0; }
.sm-seg button.on { background: var(--color-p-100); color: var(--color-p-700); font-weight: 600; }
.sm-search { width: 200px; height: 30px; padding: 0 10px; border: 1px solid var(--color-n-300); border-radius: 8px; outline: none; font-size: 12.5px; }
.sm-search:focus { border-color: var(--color-p-400); box-shadow: 0 0 0 3px var(--color-p-100); }
.sm-tbl-wrap { border: 1px solid var(--color-n-200); border-radius: 8px; overflow-x: auto; }
.sm-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sm-tbl th { position: sticky; top: 0; z-index: 1; padding: 8px 10px; border-bottom: 1px solid var(--color-n-200); background: var(--color-n-50); text-align: left; font-size: 12px; font-weight: 600; color: var(--color-n-600); white-space: nowrap; }
.sm-tbl th.sort { cursor: pointer; user-select: none; }
.sm-tbl th.sort:hover { color: var(--color-p-700); }
.sm-tbl td { padding: 7px 10px; border-bottom: 1px solid var(--color-n-100); white-space: nowrap; }
.sm-tbl tbody tr:hover td { background: var(--px-tint-hover); }
.sm-tbl tr.sel td, .sm-tbl tbody tr.sel:hover td { background: #fffbeb; }
.sm-tbl .star { color: #d97706; }
.sm-tbl .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.sm-tbl .val.nv { font-weight: 400; color: var(--color-n-500); }
.sm-tbl .ep-l { color: var(--color-n-500); }
.sm-tbl .ref { max-width: 340px; overflow: hidden; text-overflow: ellipsis; color: var(--color-n-600); }
.sm-tbl td.none { padding: 24px; text-align: center; color: var(--color-n-500); }
.sm-tag { display: inline-block; padding: 0 7px; border-radius: 5px; background: var(--color-n-100); color: var(--color-n-600); font-size: 11px; font-weight: 600; }
.sm-tag.rep { background: var(--color-p-50); color: var(--color-p-700); }
.sm-tag.dart { background: #e6f6ef; color: #0e7a55; }
.sm-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--color-n-500); }
.sm-pager .pg-btns { display: flex; align-items: center; gap: 4px; }
.sm-pager button { min-width: 28px; height: 28px; padding: 0 8px; border: 1px solid var(--color-n-200); border-radius: 6px; font-size: 12px; color: var(--color-n-600); }
.sm-pager button.on { background: var(--color-p-500); border-color: var(--color-p-500); color: #fff; font-weight: 600; }
.sm-pager button:disabled { opacity: .4; cursor: default; }
.sm-pager .gap { padding: 0 4px; }
@container (max-width: 1000px) {
  .sm-top > .sm-card.sm-pod { grid-template-columns: 1fr; row-gap: 16px; margin-bottom: 18px; }
  .sm-pod .pod-l { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid #efd48c; }
  .rp-pair { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
  .rp-lead { grid-template-columns: 1fr; gap: 24px; }
  .pm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 640px) {
  .sm-top { grid-template-columns: 1fr; }
  .sm-top > .sm-card.sm-pod { row-gap: 14px; padding: 16px; }
  .pod-kv { grid-template-columns: 80px minmax(0, 1fr); }
  .sm-top > .sm-card:not(.sm-pod) { padding: 0 0 18px; }
  .sm-top > .sm-card + .sm-card:not(.sm-pod + .sm-card) { padding-top: 18px; border-left: 0; border-top: 1px solid var(--color-n-200); }
  .sm-top > .sm-card:last-child { padding-bottom: 0; }
  .pm-steps { grid-template-columns: 1fr; }
  .pm-chain { display: none; }
  .rp-head { padding: 9px 16px; }
  .rp-body { padding: 20px 16px 0; }
  .rp-foot { padding: 12px 16px; }
  .rp-pair { grid-template-columns: 1fr; gap: 0; }
  .rp-sheets { border-top: 1px solid var(--color-n-100); }
  .sm-find li { grid-template-columns: 1fr; gap: 2px; }
  .rp-quote { font-size: 16px; }
  .sm-pod .val b { font-size: 40px; }
}

/* ---------- LNB fold (design 개발전달_데이터탭): width animation · when folded, an unfold button tops the GNB rail ---------- */
.px-lnb { flex: none; overflow: hidden; transition: width .24s cubic-bezier(.2, .8, .2, 1), margin .24s cubic-bezier(.2, .8, .2, 1), opacity .18s ease, border-color .24s ease, visibility 0s; }
.px-lnb > * { min-width: calc(var(--lnb-w) - 1px); }   /* the content keeps its width while the panel narrows */
.px-lnb > .new, .px-lnb > .foot { min-width: calc(var(--lnb-w) - 21px); }   /* less their side margins */
.px-shell.lnb-collapsed .px-lnb { width: 0; opacity: 0; border-left-color: transparent; visibility: hidden; transition: width .24s cubic-bezier(.2, .8, .2, 1), margin .24s cubic-bezier(.2, .8, .2, 1), opacity .14s ease, border-color .24s ease, visibility 0s .24s; }
.lnb-fold { width: 26px; height: 26px; border-radius: 7px; color: var(--color-n-500); display: grid; place-items: center; }
.lnb-fold:hover { background: var(--px-tint-hover); color: var(--color-p-700); }
.lnb-fold svg, .px-gnb .gnb-lnb svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lnb-fold svg { width: 18px; height: 18px; }
.px-gnb .gnb-lnb { display: none; width: 40px; height: 32px; margin-bottom: 8px; border-radius: 8px; place-items: center; color: var(--color-n-500); position: relative; }
.px-gnb .gnb-lnb::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: -5px; height: 1px; background: var(--color-gnb-stroke); }
.px-gnb .gnb-lnb:hover { background: var(--px-tint-hover); color: var(--color-p-700); }
.px-gnb .gnb-lnb svg { width: 20px; height: 20px; }
.px-shell.lnb-collapsed .gnb-lnb { display: grid; animation: gnb-lnb-in .22s ease; }
@keyframes gnb-lnb-in { from { opacity: 0; transform: translateX(-4px); } }
@media (max-width: 1100px) { .px-shell.lnb-collapsed .gnb-lnb { display: none; } }   /* the LNB is hidden there anyway */
/* the LNB belongs to the 조사 menu: elsewhere it and its unfold button go, and the page takes the width */
.px-shell.no-lnb .px-lnb { width: 0; opacity: 0; border-left-color: transparent; visibility: hidden; transition: width .24s cubic-bezier(.2, .8, .2, 1), opacity .14s ease, border-color .24s ease, visibility 0s .24s; }
.px-shell.no-lnb .gnb-lnb { display: none !important; }
@media (prefers-reduced-motion: reduce) { .px-lnb, .px-shell.lnb-collapsed .px-lnb { transition: none; } .px-shell.lnb-collapsed .gnb-lnb { animation: none; } }

/* ---------- source coverage tab (design 5-5): intro · source cards like the progress steps · the documents table like the data tab's ---------- */
.cv-intro { margin: 0; font-size: 13px; line-height: 1.7; color: var(--color-n-600); }
.cv-intro code { font: inherit; font-size: 12px; padding: 1px 6px; border-radius: 5px; background: var(--color-n-100); color: var(--color-n-800); }
.cv-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cv-card { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 8px; align-items: start; padding: 12px 16px 12px 12px; border-radius: 10px; background: var(--color-n-50); }
/* the run's twelve statuses in the design's four colours: live · found (document, located, web) · manual (and recall) · the rest grey */
.cv-card.ok { --c: var(--ok); } .cv-card.found { --c: var(--info); } .cv-card.warn { --c: var(--warn); } .cv-card.none { --c: var(--color-n-500); }
.cv-card .ic { margin-top: 2px; width: 16px; height: 16px; display: grid; place-items: center; color: var(--c); }
.cv-card .ic svg { width: 14px; height: 14px; display: block; }
.cv-card .ic.warn { width: 14px; height: 14px; margin: 3px 1px 0; border-radius: 50%; background: var(--c); color: #fff; font-size: 10px; font-weight: 800; line-height: 1; }
.cv-card .bd { min-width: 0; }
.cv-card .tt { display: block; font-size: 13.5px; line-height: 20px; font-weight: 600; color: var(--color-n-800); }
.cv-card .ds { display: block; margin-top: 2px; font-size: 12px; line-height: 18px; color: var(--color-n-500); overflow-wrap: anywhere; }
.cv-card .ds .tg { color: var(--color-n-600); }
.cv-card .rt { display: inline-flex; align-items: center; gap: 10px; height: 20px; }
.cv-card .rows { font-size: 12px; color: var(--color-n-500); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv-card .rows b { font-weight: 600; color: var(--color-n-800); }
.cv-card .rows.z b { color: var(--color-n-400); font-weight: 500; }
.cv-st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--c); }
.cv-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cv-docs { margin-top: 24px; }
.cv-docs h3 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--color-n-800); }
.cv-docs h3 small { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--color-n-500); }
.cv-wrap { margin-top: 10px; overflow: auto; border: 1px solid var(--color-n-200); border-radius: 12px; background: #fff; scrollbar-width: thin; }
.cv-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.cv-tbl th, .cv-tbl td { height: 38px; padding: 0 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid rgba(22, 32, 43, .06); background: #fff; vertical-align: middle; color: var(--color-n-700); }
.cv-tbl th { height: 36px; background: var(--color-n-50); font-size: 12px; font-weight: 600; color: var(--color-n-600); border-bottom: 1px solid var(--color-n-200); }
.cv-tbl tbody tr:last-child td { border-bottom: 0; }
.cv-tbl tbody tr:hover td { background: #fafaff; }
.cv-tbl tbody tr.on td { background: #f6f6fe; }   /* the document open in the panel */
.cv-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.cv-tbl .doc { white-space: normal; min-width: 240px; }
.cv-tbl .doc button { text-align: left; color: var(--color-p-600); font-weight: 500; }
.cv-tbl .doc button:hover { text-decoration: underline; }
.cv-tbl .code { color: var(--color-n-600); }
.cv-tbl .code span { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }   /* a long report code (CIR · ECHA dossier titles) ends in an ellipsis, whole on hover */
.cv-tbl .lk { color: var(--color-p-600); font-weight: 600; }
.cv-tbl .lk:hover { text-decoration: underline; }
.cv-tbl .act { text-align: right; }
.cv-btn { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 7px; border-radius: 6px; font-size: 12px; color: var(--color-n-600); }
.cv-btn:hover { background: var(--color-n-100); color: var(--color-n-800); }
.cv-btn .ico { display: inline-grid; }
.cv-btn svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1100px) { .cv-grid { grid-template-columns: 1fr; } }

/* ---------- logs · audit tab (design 5-6): figures band as on the summary tab · two tables without sideways scroll · the log with 조사 삭제 ---------- */
.au-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px 0 22px; border-bottom: 1px solid var(--color-n-200); }
.au-stat { padding: 0 28px; min-width: 0; }
.au-stat:first-child { padding-left: 0; }
.au-stat:last-child { padding-right: 0; }
.au-stat + .au-stat { border-left: 1px solid var(--color-n-200); }
.au-stat h4 { margin: 0 0 10px; height: 20px; display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--color-n-700); }
.au-stat h4 svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--color-n-500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.au-stat b { display: block; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--color-n-800); font-variant-numeric: tabular-nums; }
.au-stat b small { margin-left: 3px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--color-n-500); }
.au-stat span { display: block; margin-top: 4px; font-size: 12px; color: var(--color-n-600); font-variant-numeric: tabular-nums; }
.au-pair { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.au-sec h3 { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; color: var(--color-n-800); display: flex; align-items: baseline; gap: 6px; }
.au-sec h3 small { font-size: 12px; font-weight: 400; color: var(--color-n-500); }
.au-sec h3 .au-del { margin-left: auto; }
.au-tw { height: 452px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--color-n-200); border-radius: 12px; background: #fff; }
/* a fixed box, the same for both: the header at its top, the totals at its bottom and only the rows between them scroll (the thumb too) —
   one table whose rows are grids on its --cols, with the scrollbar gutter kept in all three parts so the columns line up.
   No sideways scroll: set column widths, a long URL ends in an ellipsis (the whole one on hover) */
.au-tbl { flex: 1; min-height: 0; display: flex; flex-direction: column; font-size: 12.5px; }
.au-tbl thead, .au-tbl tfoot { flex: none; overflow: hidden; scrollbar-gutter: stable; background: var(--color-n-50); }
.au-tbl thead { border-bottom: 1px solid var(--color-n-200); }
.au-tbl tfoot { border-top: 1px solid var(--color-n-200); }
.au-tbl tbody { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
.au-tbl tr { display: grid; grid-template-columns: var(--cols); }
.au-tbl th, .au-tbl td { height: 38px; padding: 0 10px; line-height: 37px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid rgba(22, 32, 43, .06); background: #fff; color: var(--color-n-700); }
.au-tbl th { height: 36px; line-height: 36px; border-bottom: 0; background: var(--color-n-50); font-size: 12px; font-weight: 600; color: var(--color-n-600); }
.au-tbl tbody tr:last-child td { border-bottom: 0; }
.au-tbl tbody tr:hover td { background: #fafaff; }
.au-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.au-tbl .stg, .au-tbl .tm { font-variant-numeric: tabular-nums; color: var(--color-n-500); }
.au-tbl .pr { font-family: var(--font-mono); font-size: 11.5px; color: var(--color-n-800); }
.au-tbl tfoot td { height: 36px; line-height: 36px; border-bottom: 0; background: var(--color-n-50); font-size: 12px; color: var(--color-n-600); }
.au-tbl tfoot td:first-child { grid-column: span 2; }   /* 합계 n건 (colspan does not reach a grid) */
.au-tbl .kept { margin-left: 6px; font-size: 11px; }   /* the stored response (provenance), not in the design */
.au-ok { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ok); }
.au-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.au-ok.bad { color: var(--err); }
.au-url a { color: var(--color-p-600); }
.au-url a:hover { text-decoration: underline; }
.au-url .h { color: var(--color-n-800); }
.au-log-w { margin-top: 20px; }
.au-log { max-height: 420px; overflow: auto; padding: 12px 14px; border: 1px solid var(--color-n-200); border-radius: 12px; background: #fff; display: flex; flex-direction: column; gap: 2px; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--color-n-700); }
.au-log .l { display: grid; grid-template-columns: 64px 34px minmax(0, 1fr); gap: 8px; }
.au-log .ts { color: var(--color-n-400); font-variant-numeric: tabular-nums; }
.au-log .st { color: var(--color-p-600); }
.au-log .m { overflow-wrap: anywhere; }
.au-log .step .m { color: var(--info); } .au-log .rows .m { color: var(--ok); } .au-log .warn .m { color: var(--warn); } .au-log .error .m { color: var(--err); }
.au-del { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid #f3c4c4; color: var(--err); font-size: 12.5px; font-weight: 500; background: #fff; }
.au-del svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.au-del:hover { background: var(--err-soft); }
@media (max-width: 1100px) { .au-pair { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .au-stats { grid-template-columns: 1fr; } .au-stat { padding: 14px 0 0; } .au-stat + .au-stat { border-left: 0; } }

/* ---------- data tab (design 5-4): the card is filled and only the table scrolls, so its horizontal bar stays in view ---------- */
.px-main.tab-dt { display: flex; flex-direction: column; }
.px-main.tab-dt > .px-page { flex: 1; display: flex; flex-direction: column; min-height: 640px; padding-bottom: 20px; }
.dt { flex: 1; min-height: 0; display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 20px; }
.nv { color: var(--color-n-400); }
/* sheet list — scrolls inside its block when there are many sheets */
.dt-nav { display: flex; flex-direction: column; min-height: 0; background: var(--color-n-50); border-radius: 12px; padding: 14px 8px 8px; }
.dt-nav-h { display: flex; align-items: baseline; gap: 6px; padding: 0 8px 10px; font-size: 11px; color: var(--color-n-500); }
.dt-nav-h b { font-size: 12px; color: var(--color-n-800); font-weight: 700; }
.dt-nav-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 2px; margin-right: -4px; scrollbar-width: thin; scrollbar-gutter: stable; scrollbar-color: var(--color-n-300) transparent; }
.dt-nav-list::-webkit-scrollbar { width: 6px; }
.dt-nav-list::-webkit-scrollbar-thumb { background: var(--color-n-300); border-radius: 3px; }
.dt-sh { flex: none; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 3px; min-height: 34px; padding: 4px 10px 4px 6px; border-radius: 8px; text-align: left; font-size: 12px; color: var(--color-n-700); }
.dt-sh:hover { background: rgba(22, 32, 43, .04); }
.dt-sh .no { justify-self: center; width: 16px; height: 16px; border-radius: 4px; background: var(--color-n-200); display: grid; place-items: center; font-size: 9.5px; font-weight: 600; line-height: 1; color: var(--color-n-600); text-align: center; font-variant-numeric: tabular-nums; }
.dt-sh .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-sh .ct { font-size: 10.5px; font-weight: 500; color: var(--color-n-500); font-variant-numeric: tabular-nums; }
.dt-sh.on { background: #fff; color: var(--color-n-800); font-weight: 700; box-shadow: 0 1px 3px rgba(22, 32, 43, .12); }
.dt-sh.on .no { background: var(--color-n-800); color: #fff; }
.dt-sh.on .ct { color: var(--color-n-800); font-weight: 600; }
.dt-sh.zero { opacity: .45; }
.dt-nav-sel { display: none; }
/* above the table: title + find · filters · the document being viewed */
.dt-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dt-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.dt-bar h2 { flex: 1; min-width: 0; margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.dt-bar h2 small { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; font-weight: 500; color: var(--color-n-500); }
.dt-search { position: relative; }
.dt-search svg { position: absolute; left: 10px; top: 9px; width: 14px; height: 14px; color: var(--color-n-400); }
.dt-search input { width: 220px; height: 32px; padding: 0 10px 0 30px; border: 1px solid var(--color-n-200); border-radius: 8px; font-size: 13px; outline: none; }
.dt-search input:focus { border-color: var(--color-p-300); box-shadow: 0 0 0 3px var(--color-p-50); }
.dt-filt { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12.5px; }
.dt-filt .lab { color: var(--color-n-500); }
.dt-filt .clear { color: var(--color-p-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dt-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--color-n-100); }
.dt-seg button { height: 26px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; color: var(--color-n-600); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.dt-seg button b { font-weight: 600; font-size: 11.5px; color: var(--color-n-400); font-variant-numeric: tabular-nums; }
.dt-seg button.on { background: #fff; color: var(--color-n-800); font-weight: 700; box-shadow: 0 1px 3px rgba(22, 32, 43, .14); }
.dt-seg button.on b { color: var(--color-p-700); }
.dt-seg button:disabled { opacity: .4; cursor: default; }
.dt-docf span { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.dt-vwbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 6px 10px; border-radius: 8px; background: #f6f6fe; font-size: 12.5px; color: var(--color-n-700); }
.dt-vwbar b { color: var(--color-p-700); }
.dt-vwbar .dt-vwdoc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-vwbar .dt-vwn { color: var(--color-n-500); white-space: nowrap; }
.dt-vwbar .sp { flex: 1; }
.dt-vwbar button { font-weight: 600; color: var(--color-p-600); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.dt-vwbar .x { text-decoration: none; color: var(--color-n-500); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.dt-vwbar .x:hover { background: var(--color-p-50); color: var(--color-n-800); }
.dt-note { margin-bottom: 10px; padding: 8px 12px; border-radius: 8px; background: #f4f4fe; color: var(--color-p-700); font-size: 12.5px; }
/* table — sticky header and the first four columns (#, 검토, 근거, 원문); one line per cell */
.dt-wrap { position: relative; flex: 1; min-height: 240px; overflow: auto; border: 1px solid var(--color-n-200); border-radius: 12px; background: #fff; scrollbar-width: thin; }
.dt-tbl { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.dt-tbl th, .dt-tbl td { height: 38px; padding: 0 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid rgba(22, 32, 43, .06); background: #fff; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.dt-tbl th { position: sticky; top: 0; z-index: 2; height: 36px; background: var(--color-n-50); font-size: 12px; font-weight: 600; color: var(--color-n-600); border-bottom: 1px solid var(--color-n-200); }
.dt-tbl td.long { max-width: 420px; }
.dt-tbl .stk { position: sticky; z-index: 1; }
.dt-tbl th.stk { z-index: 3; }
.dt-tbl .c-no { left: 0; width: 52px; min-width: 52px; color: var(--color-n-400); font-variant-numeric: tabular-nums; }
.dt-tbl .c-rv { left: 52px; width: 78px; min-width: 78px; }
.dt-tbl .c-kd { left: 130px; width: 84px; min-width: 84px; }
.dt-tbl .c-sr { left: 214px; width: 96px; min-width: 96px; border-right: 1px solid var(--color-n-200); cursor: default; }   /* "PDF p.14" */
.dt-wrap.sx .dt-tbl .c-sr { box-shadow: 8px 0 10px -8px rgba(22, 32, 43, .18); }
.dt-tbl tbody tr { cursor: pointer; }
.dt-tbl tbody tr:hover td { background: #fafaff; }
.dt-tbl tbody tr.sel td { background: #e9e8fc; }
.dt-tbl tbody tr.view td { background: #f6f6fe; }
.dt-tbl tbody tr.pod td { background: #fffbeb; }
.dt-tbl tbody tr.pod.sel td { background: #fdf1c7; }
.dt-tbl tbody tr.rej td:not(.stk) { color: var(--color-n-400); text-decoration: line-through; text-decoration-color: rgba(22, 32, 43, .25); }
.dt-tbl td.ed { background-image: radial-gradient(circle at calc(100% - 5px) 5px, var(--color-p-500) 2.5px, transparent 3px); }   /* changed by a reviewer */
.dt-tbl mark { background: #fde68a; color: inherit; border-radius: 2px; }
.dt-star { color: #d97706; margin-left: 4px; }
.dt-empty { padding: 56px 16px; text-align: center; color: var(--color-n-500); }
.dt-url { color: var(--color-p-600); font-size: 12px; font-weight: 600; }
/* review state (coloured text in the table, a chip in the row panel) · evidence dot in the summary bar colours */
.dt-rv { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--color-n-100); color: var(--color-n-500); white-space: nowrap; }
.dt-rv.approved { background: var(--ok-soft); color: var(--ok); }
.dt-rv.rejected { background: var(--err-soft); color: var(--err); }
.dt-rv.edited { background: var(--color-p-50); color: var(--color-p-700); }
.dt-tbl .dt-rv { height: auto; padding: 0; border-radius: 0; background: none; font-size: 12.5px; font-weight: 600; }
.dt-tbl .dt-rv.auto { color: var(--color-n-400); font-weight: 500; }
.dt-kd { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--color-n-700); white-space: nowrap; }
.dt-kd::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--color-n-400)); flex: none; }
.dt-tbl .dt-kd { font-size: 11.5px; color: var(--color-n-600); gap: 5px; }
.dt-tbl .dt-kd::before { width: 6px; height: 6px; }
/* 원문: PDF / HTML / TXT opens the document panel · only the row being viewed is filled, other rows of that document are tinted */
.dt-src { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px; border: 1px solid var(--color-n-200); border-radius: 6px; font-size: 11.5px; font-weight: 700; color: var(--color-p-600); background: #fff; letter-spacing: .02em; }
.dt-src:hover { border-color: var(--color-p-300); background: var(--color-p-50); }
.dt-src svg { width: 11px; height: 11px; }
.dt-src.lk { font-weight: 600; color: var(--color-n-600); letter-spacing: 0; }
.dt-src.now { background: var(--color-p-500); border-color: var(--color-p-500); color: #fff; letter-spacing: 0; font-weight: 600; gap: 4px; }
.dt-src.now:hover { background: var(--color-p-600); border-color: var(--color-p-600); }
.dt-src.same { background: #f6f6fe; border-color: var(--color-p-100); }
.dt-src .pp { font-weight: 500; font-size: 10.5px; color: var(--color-n-500); letter-spacing: 0; margin-left: 3px; }
.dt-src.same .pp { color: var(--color-p-400); }
.dt-foot { display: flex; align-items: center; gap: 12px; padding-top: 8px; font-size: 12px; color: var(--color-n-500); flex-wrap: wrap; }
.dt-foot .sp { flex: 1; }
.dt-foot kbd { font: inherit; font-size: 11px; padding: 0 5px; border: 1px solid var(--color-n-300); border-bottom-width: 2px; border-radius: 4px; background: #fff; color: var(--color-n-600); }
@container (max-width: 1180px) { .dt-foot .keys { display: none; } }
@container (max-width: 900px) {
  .dt { grid-template-columns: 1fr; gap: 12px; }
  .dt-nav { display: none; }
  .dt-nav-sel { display: block; height: 36px; padding: 0 10px; border: 1px solid var(--color-n-200); border-radius: 8px; font-size: 13.5px; font-weight: 600; background: #fff; margin-bottom: 10px; }
  .dt-search input { width: 160px; }
}

/* ---------- right panels: row detail · document (no dimming; the document sits left of the row panel when both are open) ---------- */
.dt-pnl { position: fixed; top: 0; bottom: 0; right: 0; background: #fff; display: flex; flex-direction: column; box-shadow: -16px 0 40px -12px rgba(22, 32, 43, .22); transition: transform .3s cubic-bezier(.2, .8, .2, 1), right .3s cubic-bezier(.2, .8, .2, 1), width .3s cubic-bezier(.2, .8, .2, 1); }
.dtslide-enter-active, .dtslide-leave-active { will-change: transform; }
.dtslide-enter-from, .dtslide-leave-to { transform: translateX(105%); }
.dt-vw.split.dtslide-enter-from, .dt-vw.split.dtslide-leave-to { transform: translateX(100%); }   /* beside the row panel: out from under its left edge, and back */
body.dt-drag .dt-pnl { transition: none; }
.vw-body > .vpage, .vw-body > iframe, .vw-body > .vtext-wrap { animation: vw-fade .2s ease; }   /* content fades in where it lands */
@keyframes vw-fade { from { opacity: 0; } }
/* the bar above the table opens and closes with the panel instead of pushing the table at once */
.vwbar-enter-active, .vwbar-leave-active { overflow: hidden; transition: max-height .3s cubic-bezier(.2, .8, .2, 1), margin .3s cubic-bezier(.2, .8, .2, 1), padding .3s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.vwbar-enter-from, .vwbar-leave-to { max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.vwbar-enter-to, .vwbar-leave-from { max-height: 48px; }
@media (prefers-reduced-motion: reduce) { .dt-pnl, .vwbar-enter-active, .vwbar-leave-active { transition: none; } .vw-body > * { animation: none; } }
.dt-x { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--color-n-500); flex: none; }
.dt-x:hover { background: var(--color-n-100); color: var(--color-n-800); }
.dt-x svg { width: 16px; height: 16px; }
/* row panel */
.dt-dw { z-index: 140; width: var(--dw-w, 540px); max-width: 100vw; }
.dt-grip { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 2; }
.dt-grip:hover, .dt-grip.drag { background: linear-gradient(90deg, transparent 3px, var(--color-p-300) 3px, var(--color-p-300) 5px, transparent 5px); }
.dw-head { padding: 16px 16px 12px 22px; border-bottom: 1px solid var(--color-n-200); }
.dw-r1 { display: flex; align-items: center; gap: 8px; }
.dw-r1 h3 { margin: 0; font-size: 15px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-r1 h3 small { font-size: 12.5px; color: var(--color-n-500); font-weight: 500; margin-left: 6px; }
.dw-pair { flex: none; min-width: 112px; justify-content: center; display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--color-n-600); white-space: nowrap; }
.dw-pair:hover { background: var(--color-n-100); color: var(--color-n-800); }
.dw-pair svg { width: 13px; height: 13px; flex: none; }
.dw-pair.on { color: var(--color-p-600); background: var(--color-p-50); }
.dw-pair:disabled { opacity: .45; cursor: default; background: none; }
.dw-sep { flex: none; width: 1px; height: 14px; background: var(--color-n-200); margin: 0 4px; }
.dw-nav { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--color-n-500); font-variant-numeric: tabular-nums; }
.dw-nav .pos { min-width: 64px; text-align: center; }
.dw-nav button { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--color-n-600); }
.dw-nav button:hover:not(:disabled) { background: var(--color-n-100); }
.dw-nav button:disabled { opacity: .35; cursor: default; }
.dw-nav svg { width: 14px; height: 14px; }
.dw-r2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--color-n-600); }
.dw-r2 .sepdot { color: var(--color-n-300); }
.dw-where { display: inline-flex; gap: 4px; min-width: 0; white-space: nowrap; }
.dw-doc { font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-conf { font-weight: 600; color: var(--ok); }
.dw-conf.medium { color: var(--warn); }
.dw-conf.low { color: var(--err); }
.dw-pod { color: #b45309; font-weight: 700; }
.dw-warn { margin-top: 10px; padding: 7px 10px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; line-height: 1.5; }
.dw-warn::before { content: "⚠ "; }
/* body rhythm: sections 20 + 20 px with a rule, title → first field 8 px, fields 10 px apart */
.dw-body { flex: 1; min-height: 0; overflow: auto; padding: 18px 22px 28px; }
.dw-sec + .dw-sec { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--color-n-100); }
.dw-sec h4 { margin: 0 0 8px; font-size: 12px; line-height: 18px; font-weight: 700; color: var(--color-n-500); display: flex; gap: 6px; align-items: center; }
.dw-sec h4 small { font-weight: 500; color: var(--color-n-400); }
.dw-memo .flags { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.dw-memo .flag { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: var(--warn-soft); color: var(--warn); }
.dw-memo .flag.pod { font-family: var(--font-sans); background: #fde68a; color: #92400e; }
.dw-f { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; }
.dw-f + .dw-f { margin-top: 10px; }
.dw-f .k { padding-top: 7px; min-width: 0; }
.dw-f .k b { display: block; font-size: 13px; font-weight: 500; color: var(--color-n-700); line-height: 1.35; }
.dw-f .k code { display: block; font-family: var(--font-mono); font-size: 11px; line-height: 14px; color: var(--color-n-400); margin-top: 1px; }
.dw-f textarea { display: block; width: 100%; min-height: 34px; padding: 6px 10px; border: 1px solid var(--color-n-200); border-radius: 8px; font-size: 13.5px; line-height: 1.5; color: var(--color-n-800); resize: none; overflow: hidden; outline: none; background: #fff; }
.dw-f textarea:hover { border-color: var(--color-n-300); }
.dw-f textarea:focus { border-color: var(--color-p-400); box-shadow: 0 0 0 3px var(--color-p-50); }
.dw-f textarea::placeholder { color: var(--color-n-300); }
.dw-f textarea.nv { color: var(--color-n-400); }
.dw-f textarea[readonly] { background: var(--color-n-50); cursor: default; }
.dw-f.ed textarea { background: #f7f7ff; border-color: var(--color-p-200); }
.dw-was { display: flex; gap: 8px; align-items: baseline; margin-top: 4px; font-size: 11.5px; color: var(--color-n-500); }
.dw-was s { color: var(--color-n-400); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dw-was button { color: var(--color-p-600); font-weight: 600; white-space: nowrap; }
.dw-was button:hover { text-decoration: underline; }
.dw-f.long { grid-template-columns: 1fr; gap: 6px; }
.dw-f.long .k { padding-top: 0; display: flex; align-items: baseline; gap: 8px; }
.dw-f.long .k code { margin: 0; }
/* collection · source · change history */
.dw-kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; font-size: 13px; color: var(--color-n-800); align-items: baseline; }
.dw-kv + .dw-kv { margin-top: 8px; }
.dw-kv .k { color: var(--color-n-700); }
.dw-links { display: flex; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
.dw-lk { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--color-n-100); font-size: 12px; font-weight: 600; color: var(--color-n-700); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-lk:hover { background: var(--color-p-50); color: var(--color-p-700); }
.dw-lk small { font-weight: 500; color: var(--color-n-500); margin-left: 2px; }
.dw-lk svg { width: 11px; height: 11px; flex: none; }
.dw-hl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.dw-hl li { display: grid; grid-template-columns: 132px 64px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.dw-hl .t { color: var(--color-n-400); font-variant-numeric: tabular-nums; font-size: 12px; }
.dw-hl .a { font-weight: 600; color: var(--color-n-600); }
.dw-hl .a.me { color: var(--color-p-700); }
.dw-hl .d { display: flex; flex-direction: column; gap: 2px; color: var(--color-n-600); min-width: 0; }
.dw-hl .d span { overflow-wrap: anywhere; }
.dw-hl .d b { font-weight: 600; color: var(--color-n-700); margin-right: 6px; }
.dw-more { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--color-p-600); }
.dw-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.dw-hist p { margin: 0; font-size: 12.5px; }
.dw-foot { display: flex; align-items: center; gap: 8px; padding: 12px 22px; border-top: 1px solid var(--color-n-200); background: #fff; }
.dw-foot .btn { height: 36px; }
.dw-foot .btn svg { width: 14px; height: 14px; }
.dw-foot .btn:disabled { opacity: .45; cursor: default; }
.dw-foot .sp { flex: 1; }
.dw-foot .st { font-size: 12px; color: var(--color-n-500); }
.dw-del { font-size: 12.5px; font-weight: 600; color: var(--err); padding: 6px 8px; border-radius: 6px; }
.dw-del:hover:not(:disabled) { background: var(--err-soft); }
.dw-del:disabled { opacity: .45; cursor: default; }
/* document panel — wide: up to the GNB (or the row panel) */
.dt-vw { z-index: 130; width: min(980px, 62vw); }
.dt-vw.wide { width: calc(100vw - var(--gnb-w) - 24px); }
.dt-vw.split { right: var(--dw-w, 540px); width: min(900px, calc(100vw - var(--dw-w, 540px) - 64px)); border-right: 1px solid var(--color-n-200); }
.dt-vw.split.wide { width: calc(100vw - var(--dw-w, 540px) - var(--gnb-w) - 24px); }
.vw-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px 8px 22px; }
.vw-head .tt { flex: 1; min-width: 0; }
.vw-head h3 { margin: 0; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-docsel { position: relative; display: inline-flex; align-items: center; height: 32px; border-radius: 8px; color: var(--color-n-700); }
.vw-docsel:hover { background: var(--color-n-100); }
.vw-docsel select { appearance: none; -webkit-appearance: none; height: 32px; max-width: 190px; padding: 0 26px 0 10px; border: 0; background: transparent; font-size: 12.5px; font-weight: 600; color: inherit; cursor: pointer; outline: none; text-overflow: ellipsis; }
.vw-docsel select:focus-visible { box-shadow: 0 0 0 2px var(--color-p-200); border-radius: 8px; }
.vw-docsel svg { position: absolute; right: 8px; width: 13px; height: 13px; pointer-events: none; color: var(--color-n-500); }
.vw-acts { display: inline-flex; align-items: center; }
.vw-act { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--color-n-600); white-space: nowrap; }
.vw-act:hover { background: var(--color-n-100); color: var(--color-n-800); }
.vw-act svg { width: 13px; height: 13px; flex: none; }
.vw-acts .vw-act + .vw-act { margin-left: 9px; position: relative; }
.vw-acts .vw-act + .vw-act::before { content: ""; position: absolute; left: -5px; top: 50%; width: 1px; height: 12px; margin-top: -6px; background: var(--color-n-200); }
.vw-sep { width: 1px; height: 14px; background: var(--color-n-200); margin: 0 6px; }
.vw-tools { display: flex; align-items: center; gap: 12px; padding: 0 16px 6px 22px; flex-wrap: wrap; }
.vw-modes .evm.on { color: #92400e; }
.vw-pg { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--color-n-500); font-variant-numeric: tabular-nums; }
.vw-pg button { width: 26px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--color-n-600); }
.vw-pg button:hover { background: var(--color-n-100); }
.vw-pg button svg { width: 13px; height: 13px; }
.vw-pg input { width: 44px; height: 28px; text-align: center; border: 0; border-radius: 7px; background: var(--color-n-100); font-size: 12.5px; color: var(--color-n-800); outline: none; }
.vw-pg input:focus { box-shadow: 0 0 0 2px var(--color-p-200); background: #fff; }
.vw-pg span { margin: 0 4px 0 2px; }
.vw-q { flex: 1; min-width: 200px; position: relative; display: flex; align-items: center; height: 32px; border-radius: 8px; background: var(--color-n-100); }
.vw-q:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--sr-200); }
.vw-q.on { background: var(--sr-100); }
.vw-q > .ico > svg, .vw-q > svg { flex: none; width: 14px; height: 14px; margin: 0 6px 0 10px; color: var(--color-n-400); }
.vw-q input { flex: 1; min-width: 0; height: 32px; padding: 0; border: 0; background: transparent; font-size: 12.5px; outline: none; }
.vw-q .go { flex: none; height: 26px; margin-right: 3px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--color-n-600); }
.vw-q .go:hover:not(:disabled) { background: #fff; color: var(--color-p-700); }
.vw-q .clr { flex: none; width: 22px; height: 22px; margin-right: 5px; border-radius: 50%; display: grid; place-items: center; color: var(--color-n-500); }
.vw-q .clr:hover { background: rgba(22, 32, 43, .08); color: var(--color-n-800); }
.vw-q .clr svg { width: 11px; height: 11px; }
.vw-hitnav { flex: none; display: inline-flex; align-items: center; margin-right: 2px; }
.vw-hitnav button { min-width: 24px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: var(--color-n-600); }
.vw-hitnav button:hover:not(:disabled) { background: var(--sr-200); }
.vw-hitnav button:disabled { opacity: .35; cursor: default; }
.vw-hitnav button svg { width: 12px; height: 12px; }
.vw-hitnav .cnt { padding: 0 4px; font-size: 12px; font-weight: 600; color: var(--sr-700); font-variant-numeric: tabular-nums; }
/* the row's values: ✓ / ? against the evidence page (hover shows where) · click searches the value */
.vw-sug { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 0 16px 8px 22px; font-size: 12px; }
.vw-sug .lab { color: var(--color-n-500); margin-right: 6px; }
.vw-kw { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 5px; background: var(--color-n-100); font-family: var(--font-mono); font-size: 11.5px; color: var(--color-n-700); }
.vw-kw:hover { background: var(--sr-100); color: var(--sr-700); }
.vw-kw.on { background: var(--sr-200); color: var(--sr-700); }
.vw-kw i { font-style: normal; margin-left: 5px; font-family: var(--font-sans); font-weight: 700; }
.vw-kw.ok i { color: var(--ok); }
.vw-kw.no { background: var(--warn-soft); color: #92400e; }
.vw-kw.no i { color: var(--warn); }
.vw-res { background: #fff; border-top: 1px solid var(--color-n-200); padding: 0 8px 0 10px; }
.vw-res .rh { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; font-size: 12px; color: var(--color-n-600); }
.vw-res .rh b { color: var(--sr-700); }
.vw-res .sp { flex: 1; }
.vw-res .rx { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--color-n-600); }
.vw-res .rx:hover { background: var(--sr-100); color: var(--sr-700); }
.vw-res .rx svg { width: 12px; height: 12px; }
.vw-res ol { list-style: none; margin: 0; padding: 0 4px 6px; max-height: 156px; overflow: auto; scrollbar-width: thin; }
.vw-res li button { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; width: 100%; padding: 5px 8px; border-radius: 6px; text-align: left; font-size: 12.5px; line-height: 1.45; }
.vw-res li button:hover { background: var(--sr-100); }
.vw-res li button.on { background: var(--sr-200); }
.vw-res .p { font-weight: 700; color: var(--sr-500); font-variant-numeric: tabular-nums; }
.vw-res .s { color: var(--color-n-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-res mark { background: var(--sr-300); color: inherit; border-radius: 2px; }
/* 근거 위치: confirmed (문장 일치) or estimated (추정) — a thin yellow band, the current page filled */
.vw-ev { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; padding: 3px 16px 3px 22px; background: #fffaeb; border-top: 1px solid #f6e7b8; font-size: 11.5px; }
.vw-ev .eh { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; cursor: help; }
.vw-ev .eh b { color: #92400e; font-weight: 700; }
.vw-ev .eh span { color: #b08433; font-size: 10.5px; font-weight: 500; }
.vw-ev .eh span.ok { color: var(--ok); font-weight: 600; }
.vw-ev .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.vw-ev .chips .vw-chip + .vw-chip { margin-left: 1px; }
.vw-ev .chips .vw-chip + .vw-chip::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 1px; background: #ecd9a0; }
.vw-ev .none { color: var(--color-n-500); }
.vw-chip { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 600; color: #78350f; }
.vw-chip small { font-weight: 500; color: #a16207; font-size: 10.5px; }
.vw-chip:hover { background: rgba(253, 230, 138, .45); }
.vw-chip.on { background: #fde68a; }
.vw-chip.on small { color: #92400e; }
.vw-chip em { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; background: #d97706; border-radius: 3px; padding: 0 4px; line-height: 15px; }
/* body: evidence page (image + highlight + value boxes) · browser PDF viewer · extracted text */
.vw-body { flex: 1; min-height: 0; position: relative; background: #e9edf2; }
.vw-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.vpage { position: absolute; inset: 0; overflow: auto; padding: 24px; }
.vpage .pgw { position: relative; max-width: 760px; margin: 0 auto; background: #fff; box-shadow: 0 1px 3px rgba(22, 32, 43, .16); }
.vpage .pgw img { display: block; width: 100%; }
.vpage .pgw.ph { aspect-ratio: 3 / 4; }   /* a blank page where the evidence page image lands */
.vpage .hl { position: absolute; background: rgba(250, 204, 21, .42); mix-blend-mode: multiply; border-radius: 2px; }
.vpage .vb { position: absolute; outline: 2px solid #7c5cbf; outline-offset: 1px; border-radius: 2px; background: rgba(124, 92, 191, .14); }
.vtext-wrap { position: absolute; inset: 0; overflow: auto; padding: 24px; }
.vtext { max-width: 760px; margin: 0 auto; padding: 20px 24px; border-radius: 10px; background: #fff; white-space: pre-wrap; word-break: break-word; font: 12.5px/1.75 var(--font-mono); color: var(--color-n-800); }
.vtext .pg { display: block; margin: 14px 0 6px; font-family: var(--font-sans); font-size: 11.5px; font-weight: 700; color: var(--color-n-400); }
.vtext mark { padding: 0 1px; border-radius: 2px; color: inherit; }
.vtext mark.ev { background: #fde68a; }
.vtext mark.q { background: var(--sr-200); box-shadow: 0 0 0 1px var(--sr-300) inset; }
.vtext mark.q.cur { background: var(--sr-500); color: #fff; box-shadow: none; }
.vw-foot { padding: 8px 22px; font-size: 11.5px; color: var(--color-n-500); border-top: 1px solid var(--color-n-200); }
@media (max-width: 1100px) {
  .dt-vw, .dt-vw.wide, .dt-vw.split, .dt-vw.split.wide { width: 100vw; right: 0; }
  .vw-head .vw-wide { display: none; }
  .vw-docsel select { max-width: 130px; }
}
@media (max-width: 720px) {
  .dt-dw { width: 100vw; }
  .dw-f, .dw-kv { grid-template-columns: 1fr; gap: 4px; }
  .dw-f .k { padding-top: 0; display: flex; gap: 8px; align-items: baseline; }
  .dw-f .k code { margin: 0; }
  .dw-hl li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- credits (pay-per-use) · manager console — credits.js ---------- */
.credit-chip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px 0 8px; border-radius: 999px; background: #fff; border: 1px solid var(--color-gnb-stroke); font-size: 12px; color: var(--color-n-600); }
.credit-chip .ico svg { width: 18px; height: 18px; display: block; }
.credit-chip .ico .a { fill: var(--color-p-500); } .credit-chip .ico .b { fill: var(--color-p-200); } .credit-chip .ico .w { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.credit-chip b { font-size: 13.5px; color: var(--color-n-800); font-variant-numeric: tabular-nums; }
.credit-chip:hover { border-color: var(--color-p-300); }
.credit-chip.low { background: var(--warn-soft); border-color: #f5d3a6; } .credit-chip.low b { color: var(--warn); }
.tag.mgr-tag { background: var(--color-p-50); color: var(--color-p-700); }
.px-gnb .gnb-sep { width: 32px; height: 1px; margin: 4px 0; background: var(--color-gnb-stroke); flex: none; }
.lnk { color: var(--color-p-600); font-size: 12.5px; font-weight: 600; padding: 0 2px; }
.lnk:hover { text-decoration: underline; }
.r { text-align: right; }
.pos { color: var(--ok); font-variant-numeric: tabular-nums; } .neg { color: var(--err); font-variant-numeric: tabular-nums; }
.lowc { color: var(--warn); font-weight: 700; }
.tag.k-initial { background: var(--color-p-50); color: var(--color-p-700); } .tag.k-topup { background: var(--ok-soft); color: var(--ok); }
.tag.k-adjust { background: var(--warn-soft); color: var(--warn); } .tag.k-charge { background: var(--color-n-100); color: var(--color-n-600); } .tag.k-refund { background: var(--info-soft); color: var(--info); }
.tag.blocked, .jh-chip.blocked { background: var(--warn-soft); color: var(--warn); }

/* the new-investigation hint under the search box */
.cr-note { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px; padding: 9px 14px; border-radius: 10px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95); font-size: 12.5px; color: var(--color-n-600); }
.cr-note .ico svg { width: 18px; height: 18px; display: block; } .cr-note .ico .a { fill: var(--color-p-500); } .cr-note .ico .b { fill: var(--color-p-200); } .cr-note .ico .w { fill: none; stroke: #fff; stroke-width: 1.6; }
.cr-note > span:nth-child(2) { flex: 1; min-width: 220px; }
.cr-note b { color: var(--color-n-800); font-variant-numeric: tabular-nums; }
.cr-note.warn { background: #fffaf0; border-color: #f5e0bd; color: #8a5a12; }
.cr-warn.soft { background: #fffaf0; color: #8a5a12; font-weight: 500; }
.jh-dd-menu .cr-dl { margin: 6px 0 0; font-size: 11.5px; color: var(--color-p-700); }
.jh-dd-menu .cr-dl.free { color: var(--ok); }
.cr-poledit { margin-bottom: 18px; } .cr-poledit h4 .muted { font-weight: 500; color: var(--color-n-400); }
.cr-polgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin: 10px 0 14px; }
.cr-polgrid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--color-n-600); }
.cr-polgrid .row { display: flex; align-items: center; gap: 6px; } .cr-polgrid .input { height: 34px; max-width: 140px; } .cr-polgrid small { color: var(--color-n-500); font-weight: 400; }
.cr-poledit > .row { display: flex; gap: 8px; }
@media (max-width: 900px) { .cr-polgrid { grid-template-columns: 1fr 1fr; } }
.cr-note.bad { background: var(--warn-soft); border-color: #f5d3a6; color: var(--warn); }

/* job header: the credits chip and its breakdown */
.jh-chip.credit { margin-left: 8px; background: var(--color-p-50); color: var(--color-p-700); cursor: help; font-variant-numeric: tabular-nums; }
.jh-chip.credit.open { background: var(--warn-soft); color: var(--warn); }
.cr-tip { width: 340px; }
.cr-tip .cr-line { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.cr-tip .cr-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cr-tip .cr-line.sum { margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .2); font-weight: 700; }

/* 「내 크레딧」 · 「요금 안내」 */
.cr-page { max-width: 1040px; }
.cr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.cr-stat { padding: 14px 16px; border: 1px solid var(--color-n-200); border-radius: var(--radius-lg); background: #fff; display: flex; flex-direction: column; gap: 2px; }
.cr-stat span { font-size: 12.5px; color: var(--color-n-500); font-weight: 600; }
.cr-stat b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cr-stat small { font-size: 12px; color: var(--color-n-500); }
.cr-stat.main { background: linear-gradient(135deg, #f1efff, #eaf0ff); border-color: var(--color-p-200); } .cr-stat.main b { color: var(--color-p-700); }
.cr-stats.sm { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .cr-stats.sm .cr-stat { padding: 9px 11px; } .cr-stats.sm b { font-size: 18px; }
.cr-warn { margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 600; }
.cr-policy { margin: 22px 0 8px; padding: 22px 24px; border: 1px solid var(--color-n-200); border-radius: var(--radius-xl); background: #fff; }
.cr-policy h2 { margin: 2px 0 14px; font-size: 18px; } .cr-policy h3 { margin: 22px 0 8px; font-size: 14.5px; }
.cr-unit { float: right; display: flex; flex-direction: column; align-items: flex-end; padding: 6px 12px; border-radius: 10px; background: var(--color-p-50); }
.cr-unit b { color: var(--color-p-700); font-size: 15px; } .cr-unit span { font-size: 11.5px; color: var(--color-n-500); }
.cr-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; clear: both; }
.cr-steps li { position: relative; padding: 14px 16px 12px 50px; border-radius: 12px; background: var(--color-n-50); border: 1px solid var(--color-n-200); }
.cr-steps .n { position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--color-p-500); color: #fff; font-weight: 700; font-size: 13px; }
.cr-steps b { font-size: 14px; } .cr-steps p { margin: 4px 0 0; font-size: 12.5px; color: var(--color-n-600); line-height: 1.6; }
.cr-formula { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: var(--color-n-800); color: #e6edf3; font-size: 13px; }
.cr-formula b { color: #fff; } .cr-formula small { color: #9fadba; font-size: 11px; margin-right: 4px; } .cr-formula em { font-style: normal; color: #c9c6f8; margin-left: 6px; }
.cr-ex { max-height: none; } .cr-ex td small, .mg-tbl td small, .tbl.mini td small, .cr-tbl td small { display: block; color: var(--color-n-500); font-size: 11.5px; font-weight: 400; }
.cr-rules { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; font-size: 13px; color: var(--color-n-600); }
.cr-rules li { padding: 7px 0; border-bottom: 1px dashed var(--color-n-200); } .cr-rules b { display: inline-block; min-width: 92px; color: var(--color-n-800); }
.cr-h2 { margin: 26px 0 10px; font-size: 16px; }
.cr-tbl tr.link { cursor: pointer; }
.cr-pw { margin-top: 18px; } .cr-pw .row { display: flex; gap: 8px; } .cr-pw .input { max-width: 260px; }

/* dialogs */
.cr-veil { position: fixed; inset: 0; z-index: 90; background: rgba(22, 32, 43, .38); display: grid; place-items: center; padding: 16px; }
.cr-dlg { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 16px; padding: 22px 24px 18px; box-shadow: 0 24px 60px rgba(22, 32, 43, .28); }
.cr-dlg.wide { width: min(620px, 100%); }
.cr-dlg h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.45; }
.cr-agreed { margin: 0 0 14px; color: var(--color-p-700); font-weight: 600; font-size: 13.5px; }
.cr-dlg-box { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; font-size: 12.5px; color: var(--color-n-600); }
.cr-dlg-box b { font-size: 14px; } .cr-dlg-box.ok { background: var(--ok-soft); } .cr-dlg-box.ok b { color: var(--ok); } .cr-dlg-box.no { background: var(--color-n-100); }
.cr-dlg-note { margin: 10px 0 0; font-size: 12.5px; color: var(--color-n-500); }
.cr-dlg-hold { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--color-n-200); font-size: 12.5px; color: var(--color-n-600); }
.cr-dlg-act { display: flex; align-items: center; gap: 8px; margin-top: 18px; } .cr-dlg-act .spacer { flex: 1; }
.cr-dlg .seg { margin: 6px 0 2px; }

/* manager console */
.mg-page .px-page-head .btn { height: 34px; }
.mg-issue { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: var(--err-soft); color: var(--err); font-size: 13px; }
.mg-issue .spacer { flex: 1; }
.mg-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.mg-kpi { padding: 14px 16px; border: 1px solid var(--color-n-200); border-radius: var(--radius-lg); background: #fff; display: flex; flex-direction: column; gap: 1px; }
.mg-kpi span { font-size: 12.5px; font-weight: 600; color: var(--color-n-500); }
.mg-kpi b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mg-kpi small { font-size: 12px; color: var(--color-n-500); }
.mg-kpi.hi { background: linear-gradient(135deg, #f1efff, #eaf0ff); border-color: var(--color-p-200); } .mg-kpi.hi b { color: var(--color-p-700); }
.mg-kpi.warn { background: var(--warn-soft); border-color: #f5d3a6; } .mg-kpi.warn b { color: var(--warn); }
.mg-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.mg-grid .card h4 { display: flex; align-items: center; gap: 4px; } .mg-grid .card h4 .spacer { flex: 1; } .mg-grid .muted { font-weight: 500; color: var(--color-n-400); }
.mg-chart svg { width: 100%; height: 190px; display: block; }
.mg-chart .bar { fill: var(--color-p-400); } .mg-chart .bar:hover { fill: var(--color-p-600); }
.mg-chart .ax { stroke: var(--color-n-200); } .mg-chart text { font-size: 10px; fill: var(--color-n-500); }
.tbl.mini { width: 100%; } .tbl.mini td { padding: 7px 6px; border-bottom: 1px solid var(--color-n-100); vertical-align: top; font-size: 12.5px; }
.tbl.mini td.rank { width: 22px; color: var(--color-n-400); font-weight: 700; } .tbl.mini tr.link { cursor: pointer; } .tbl.mini tr.link:hover td { background: var(--px-tint-hover); }
.tbl.mini td.empty { padding: 22px; }
.mg-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.mg-filters .input { width: auto; height: 34px; padding: 0 10px; } .mg-filters input.input:not(.date) { min-width: 260px; } .mg-filters .date { width: 150px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--color-n-100); }
.seg button { height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--color-n-500); white-space: nowrap; }
.seg button.on { background: #fff; color: var(--color-n-800); box-shadow: 0 1px 3px rgba(22, 32, 43, .14); }
.mg-tbl td { vertical-align: top; } .mg-tbl tr.link { cursor: pointer; } .mg-tbl tr.on td { background: var(--px-tint-on); }
.mg-tbl td.calc { font-size: 12px; color: var(--color-n-600); max-width: 360px; }
.mg-totals { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.mg-totals > div { padding: 9px 14px; border: 1px solid var(--color-n-200); border-radius: 10px; display: flex; flex-direction: column; min-width: 120px; }
.mg-totals span { font-size: 12px; color: var(--color-n-500); font-weight: 600; } .mg-totals b { font-size: 18px; font-variant-numeric: tabular-nums; } .mg-totals small { font-size: 11.5px; color: var(--color-n-500); }
.mg-totals .sum { background: var(--color-p-50); border-color: var(--color-p-200); } .mg-totals .sum b { color: var(--color-p-700); }
.mg-pnl { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(560px, 100vw); background: #fff; display: flex; flex-direction: column; box-shadow: -16px 0 40px -12px rgba(22, 32, 43, .22); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.mg-pnl header { position: relative; padding: 18px 48px 12px 20px; border-bottom: 1px solid var(--color-n-200); }
.mg-pnl header > div { display: flex; align-items: center; gap: 8px; font-size: 15.5px; } .mg-pnl header small { color: var(--color-n-500); font-size: 12px; }
.mg-pnl header .x { position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; border-radius: 8px; font-size: 20px; color: var(--color-n-500); } .mg-pnl header .x:hover { background: var(--color-n-100); }
.mg-pnl-body { flex: 1; overflow: auto; padding: 14px 20px 24px; }
.mg-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.mg-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; align-items: end; margin-bottom: 16px; padding: 12px; border-radius: 10px; background: var(--color-n-50); }
.mg-info label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: var(--color-n-500); } .mg-info .w { grid-column: 1 / -1; }
.mg-info .input { height: 32px; padding: 0 10px; } .mg-info .btn { justify-self: start; }
.mg-dtab { margin-bottom: 8px; }
.mg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 14px; }
.mg-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--color-n-600); } .mg-form .w { grid-column: 1 / -1; }
.mg-form small { font-weight: 400; color: var(--color-n-500); font-size: 11.5px; }
.mg-form .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .mg-form .row .input { flex: 1; min-width: 140px; } .mg-form .input.num { max-width: 140px; }
.mg-form .chips { display: inline-flex; gap: 6px; } .mg-form .nw-chip { border-color: var(--color-n-200); background: #fff; }
@media (max-width: 1100px) { .mg-kpis, .cr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mg-grid, .cr-steps, .cr-rules { grid-template-columns: 1fr; } }
.tbl th.r { text-align: right; }


/* external datasets (settings card + sources page) */
.ds-card h4 small { margin-left: 8px; font-weight: 400; color: var(--color-n-500); }
.ds-ctl { align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.ds-ctl .field { margin-bottom: 8px; } .ds-ctl .field:first-child { width: 150px; }
.ds-wrap { max-height: none; }
.ds-tbl td { vertical-align: top; } .ds-tbl tr.open td { background: var(--color-p-50); }
.ds-tbl .err, .ds-line .err { color: var(--err); } .ds-tbl .small { margin-top: 2px; }
.ds-tbl tr.ds-runs td { background: var(--color-n-50); padding: 10px 12px; }
.ds-look { gap: 8px; margin-bottom: 8px; } .ds-look .input { max-width: 320px; }
.ds-pre { margin: 0 0 10px; max-height: 220px; overflow: auto; font-size: 11.5px; line-height: 1.4; background: #fff; border: 1px solid var(--color-n-200); border-radius: 8px; padding: 8px 10px; white-space: pre-wrap; }
.ds-line { margin-top: 6px; font-size: 12px; color: var(--color-n-500); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Deterministic predictions have their own evidence colour and persistent disclosure. */
.tt-selection {padding:12px;font-size:13px}.tt-selection fieldset{border:0;padding:0}.tt-selection label{display:block;margin:8px 0}.tt-selection input[type=number]{max-width:140px}.tt-results{padding:20px}.tt-disclaimer{padding:16px;background:#fff4e5;color:#854d0e;border-left:3px solid #d97706;border-radius:6px}.tt-structure{margin:16px 0;overflow-wrap:anywhere}.tt-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;margin-top:16px}.tt-card{border:1px solid #c7d2fe;border-radius:12px;padding:20px;overflow-wrap:anywhere}.tt-card header{display:flex;align-items:center;justify-content:space-between;gap:12px}.tt-card h3{font-size:16px}.tt-badge,.tt-alerts span{background:#eef2ff;color:#4338ca;border-radius:5px;padding:4px 8px;font-size:12px}.tt-alerts{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.tt-card details{margin:14px 0}.tt-card code{white-space:pre-wrap;overflow-wrap:anywhere}.tt-conclusion{display:block;margin:12px 0;padding:10px;border-radius:6px;background:#f1f5f9;color:#475569}.tt-conclusion.alert{background:#fef2f2;color:#b91c1c}.tt-conclusion.moderate{background:#fffbeb;color:#92400e}.tt-conclusion.low{background:#f0fdf4;color:#166534}.tt-settings{margin-bottom:20px}.tt-settings .tt-selection{columns:2}

.nw-grp.closed .tt-selection{display:none}

/* Phase 2: use the service's existing dialog and semantic colour tokens. */
.tt-modal {background:var(--color-n-50);color:var(--color-n-800);overflow-x:hidden;overflow-wrap:anywhere}
.tt-tree-modal {width:min(820px,100%)}
.tt-modal-header {display:flex;justify-content:space-between;align-items:start;gap:16px}
.tt-modal code {white-space:pre-wrap;overflow-wrap:anywhere}
.tt-tree {list-style:none;padding:0 0 0 20px;margin:24px 0}
.tt-tree>li {position:relative;border-inline-start:2px solid var(--color-n-300);padding:0 0 24px 22px}
.tt-tree>li::before {content:'';position:absolute;inset-inline-start:-6px;top:6px;width:10px;height:10px;border-radius:50%;background:var(--color-n-400)}
.tt-tree>li.tt-tree-end {border-color:transparent}.tt-tree>li.tt-tree-end::before {background:var(--color-p-500)}
.tt-answer {float:inline-end;background:var(--color-n-100);padding:2px 8px;border-radius:var(--radius)}
.tt-stub {display:block;color:var(--color-n-500);border-inline-start:1px dashed var(--color-n-300);padding-inline-start:16px;margin-inline-start:20px}
.tt-tree .tt-positive {color:var(--warn)}.tt-tree .tt-positive::before {background:var(--warn)}
.tt-scan-node {margin:12px 0;padding:12px;background:var(--color-n-100)}
.tt-intake {border:1px solid var(--color-n-300);padding:16px;margin:16px 0;border-radius:var(--radius-lg)}
.tt-intake.missing,.tt-intake-missing {background:var(--warn-soft);color:var(--warn)}
.tt-intake-missing {display:inline-block;padding:2px 8px;margin:4px;border-radius:var(--radius)}
.tt-calculator {margin:12px 0}.tt-calculator label {display:inline-flex;flex-direction:column;margin:8px;max-width:160px}
.tt-pending {opacity:.5}.tt-updated {box-shadow:0 0 0 2px var(--color-p-500)}
.tt-path-button {display:block;margin:14px 0}
.tt-modal .tt-conclusion {background:var(--color-n-100);color:var(--color-n-600)}
.tt-modal .tt-conclusion.alert {background:var(--err-soft);color:var(--err)}
.tt-modal .tt-conclusion.moderate {background:var(--warn-soft);color:var(--warn)}
.tt-modal .tt-conclusion.low {background:var(--ok-soft);color:var(--ok)}
.tt-modal .tt-disclaimer {background:var(--warn-soft);color:var(--warn);border-color:var(--warn)}
@media(max-width:640px){.tt-veil{padding:0}.tt-modal{width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:20px}.tt-modal .cr-dlg-act{flex-wrap:wrap}.tt-tree{padding-inline-start:8px}}
