/* dockets.css — 결재함 (Approval Desk) — 한국식 결재 서류 자급 스타일시트
   Source design: claude.ai/design — 2026-05-05 (purchaseagent/project/styles.css)
   Layout=null 페이지 전용. 사이드바 + 결재 서류 + 도장. */

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --font-serif: "Noto Serif KR", "Source Han Serif KR", "본명조", "Apple SD Gothic Neo", serif;
  --font-sans: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --paper:        #faf7f0;
  --paper-soft:   #f4efe3;
  --paper-edge:   #e8dfc8;
  --ink:          #1a1410;
  --ink-soft:     #4a4339;
  --ink-mute:     #847b6b;
  --ink-faint:    #b5ac99;
  --rule:         #d8cdb0;
  --rule-soft:    #e5dcc6;

  --bg-app:       #ede6d3;
  --bg-sidebar:   #2b2620;
  --bg-sidebar-hover: #3a342c;
  --sb-text:      #e8dec6;
  --sb-text-mute: #a89b7d;
  --sb-rule:      #3f372d;
  --sb-active:    #4a4135;

  --seal-red:     #b8302a;
  --seal-red-soft:#d6403a;
  --seal-blue:    #284878;
  --gold:         #b8923a;

  --tone-positive: #2d6a4f;
  --tone-positive-bg: #e6f0e9;
  --tone-neutral:  #6b6356;
  --tone-neutral-bg:#efe9d9;
  --tone-urgent:   #b06520;
  --tone-urgent-bg:#f5e8d2;
  --tone-negative: #9a2a25;
  --tone-negative-bg:#f5dcd9;

  --tone-routine-bg: #efe9d9;
  --tone-routine-fg: #6b6356;
  --tone-urgent-fg:  #9a5e1e;
  --tone-critical-bg:#f3d4d0;
  --tone-critical-fg:#922822;

  --dept-curator:   #5a4a2a;
  --dept-designer:  #3a5a4f;
  --dept-listing:   #5a3a2a;
  --dept-cs:        #5a2a4a;
  --dept-tax:       #2a3a5a;

  --shadow-doc: 0 1px 0 rgba(0,0,0,0.02), 0 12px 32px -12px rgba(60,40,15,0.18), 0 32px 60px -28px rgba(40,30,10,0.22);
  --radius:     6px;
}

[data-theme="dark"] {
  --paper:        #1f1c18;
  --paper-soft:   #2a2620;
  --paper-edge:   #2a2620;
  --ink:          #ece4cf;
  --ink-soft:     #c8bfa8;
  --ink-mute:     #8e8470;
  --ink-faint:    #5a5446;
  --rule:         #3a342c;
  --rule-soft:    #2c2820;
  --bg-app:       #131110;
  --bg-sidebar:   #0e0d0b;
  --bg-sidebar-hover: #1c1a17;
  --sb-rule:      #2c2823;
  --sb-active:    #2a2620;
  --tone-positive-bg: #1f3326;
  --tone-positive: #7ab895;
  --tone-neutral-bg: #2a2620;
  --tone-neutral: #a89e85;
  --tone-urgent-bg: #3a2d18;
  --tone-urgent-fg: #e0a76a;
  --tone-routine-bg: #2a2620;
  --tone-routine-fg: #a89e85;
  --tone-critical-bg: #3a201d;
  --tone-critical-fg: #e08a82;
  --shadow-doc: 0 12px 32px -12px rgba(0,0,0,0.6), 0 32px 60px -28px rgba(0,0,0,0.7);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.dockets-body {
  font-family: var(--font-sans);
  background: var(--bg-app);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
  letter-spacing: -0.005em;
  font-size: 14px;
  line-height: 1.55;
}

#root { width: 100%; }
.app {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
  width: 100%;
}

/* ─── Sidebar ───────────────────────────────────────────── */
.sidebar {
  background: var(--bg-sidebar);
  color: var(--sb-text);
  border-right: 1px solid var(--sb-rule);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--sb-rule);
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--sb-text-mute);
  color: var(--sb-text);
  border-radius: 4px;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 16px; font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sb-text);
}
.brand-sub {
  font-size: 11px;
  color: var(--sb-text-mute);
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.sidebar-meta {
  padding: 14px 20px;
  border-bottom: 1px solid var(--sb-rule);
  display: flex; flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.meta-label {
  color: var(--sb-text-mute);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.meta-value {
  color: var(--sb-text);
  font-family: var(--font-serif);
  font-size: 13px;
  font-feature-settings: "tnum";
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0 80px;
  scrollbar-width: thin;
  scrollbar-color: var(--sb-rule) transparent;
}

.dept-group { margin-bottom: 4px; }
.dept-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 8px;
  position: relative;
}
.dept-head::after {
  content: "";
  position: absolute;
  left: 20px; right: 20px; bottom: 0;
  height: 1px;
  background: var(--sb-rule);
  opacity: 0.6;
}
.dept-seal {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--paper);
  color: var(--seal-red);
  border: 1.5px solid var(--seal-red);
  border-radius: 3px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.dept-info { flex: 1; min-width: 0; }
.dept-name {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--sb-text);
  letter-spacing: 0.02em;
}
.dept-role {
  font-size: 10.5px;
  color: var(--sb-text-mute);
  margin-top: 1px;
  letter-spacing: 0.04em;
}
.dept-count { font-size: 10px; }
.count-pending {
  background: var(--seal-red);
  color: white;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.count-done {
  color: var(--sb-text-mute);
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.docket-list {
  list-style: none;
  margin: 0; padding: 4px 8px 8px;
  display: flex; flex-direction: column;
  gap: 1px;
}
/* Curator Seed Dockets Integration v1 (Spec 2026-05-07 §4.5) — 시드/Pool sub-section 헤더. */
.docket-subhead {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted, #888);
  padding: 8px 8px 4px;
  text-transform: uppercase;
}
.docket-subhead:not(:first-child) { margin-top: 6px; }
.docket-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: background 120ms;
  background: transparent;
  border: 0;
  width: 100%;
  color: inherit;
  text-align: left;
  font-family: inherit;
}
.docket-item:hover { background: var(--bg-sidebar-hover); }
.docket-item.is-active {
  background: var(--sb-active);
  box-shadow: inset 2px 0 0 var(--seal-red);
}
.docket-item.st-approved { opacity: 0.55; }
.docket-item.st-rejected { opacity: 0.55; }
.di-status {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dot { display: inline-block; }
.dot-pending {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--sb-text-mute);
}
.docket-item.is-active .dot-pending {
  background: var(--seal-red);
  border-color: var(--seal-red);
  box-shadow: 0 0 0 3px rgba(184, 48, 42, 0.2);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(184, 48, 42, 0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(184, 48, 42, 0.05); }
}
.dot-approved {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(122, 184, 149, 0.15);
  color: #7ab895;
  font-size: 9px;
  display: grid; place-items: center;
  font-weight: 700;
}
.dot-rejected {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(224, 138, 130, 0.15);
  color: #e08a82;
  font-size: 9px;
  display: grid; place-items: center;
  font-weight: 700;
}
.di-body { flex: 1; min-width: 0; }
.di-no {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--sb-text-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.di-title {
  font-size: 12px;
  color: var(--sb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.di-prio {
  width: 4px; height: 24px;
  border-radius: 2px;
  flex-shrink: 0;
}
.prio-routine  { background: var(--ink-faint); opacity: 0.4; }
.prio-urgent   { background: #e0a76a; }
.prio-critical { background: var(--seal-red); }

/* ─── Main ──────────────────────────────────────────────── */
.main {
  padding: 32px 40px 60px;
  background: var(--bg-app);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
.document-stage {
  max-width: 820px;
  margin: 0 auto;
  animation: stageEnter 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.document-stage.is-hidden { display: none; }
.is-hidden { display: none !important; }
@keyframes stageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Document — 결재 서류 ─────────────────────────────── */
.document {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  padding: 56px 64px 32px;
  position: relative;
  box-shadow: var(--shadow-doc);
  font-family: var(--font-serif);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 24px,
      rgba(180, 160, 110, 0.025) 24px,
      rgba(180, 160, 110, 0.025) 25px
    );
}
[data-density="compact"] .document { padding: 36px 48px 24px; }
.document::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  pointer-events: none;
}

.doc-header {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 2.5px solid var(--ink);
}
.doc-header::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 1px;
  background: var(--ink);
}
.doc-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-family: var(--font-sans);
}
.doc-id {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 11px;
  color: var(--ink-mute);
}
.doc-id-label {
  font-family: var(--font-serif);
  letter-spacing: 0.15em;
  font-size: 10px;
  text-transform: uppercase;
}
.doc-id-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.doc-pagination {
  font-family: var(--font-serif);
  font-size: 12px;
  color: var(--ink-mute);
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-feature-settings: "tnum";
}
.doc-pagination > .doc-pag-current {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.doc-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 0.4em;
  text-align: center;
  margin: 12px 0 18px;
  color: var(--ink);
  text-indent: 0.4em;
}
[data-density="compact"] .doc-title { font-size: 28px; margin: 6px 0 12px; }
.doc-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

/* 결재란 — Korean approval grid (3 cells: 기안·검토·결재) */
.approval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  border: 1.5px solid var(--ink);
  margin: 0 auto 18px;
  max-width: 480px;
  font-family: var(--font-sans);
}
.appr-cell {
  border-right: 1px solid var(--ink);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: var(--paper);
}
.appr-cell:last-child { border-right: 0; }
.appr-label {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  padding: 4px 0;
  border-bottom: 1px solid var(--ink);
  width: 100%;
  background: var(--paper-soft);
  color: var(--ink-soft);
}
.appr-stamp-area {
  height: 56px;
  width: 100%;
  display: grid; place-items: center;
  position: relative;
}
.appr-big .appr-stamp-area { height: 64px; }
.appr-stamp {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--seal-red);
  color: var(--seal-red);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  background: rgba(184, 48, 42, 0.04);
  box-shadow:
    inset 0 0 0 1px rgba(184, 48, 42, 0.2),
    0 0 0 1px rgba(184, 48, 42, 0.1);
  transform: rotate(-6deg);
  letter-spacing: -0.05em;
}
.appr-big .appr-stamp { width: 50px; height: 50px; font-size: 22px; border-width: 2.5px; }
.appr-stamp-x {
  border-color: var(--ink-mute);
  color: var(--ink-mute);
  background: rgba(0,0,0,0.02);
  box-shadow: none;
}
.appr-auto .appr-stamp {
  border-color: var(--seal-blue);
  color: var(--seal-blue);
  background: rgba(40, 72, 120, 0.04);
  box-shadow: inset 0 0 0 1px rgba(40, 72, 120, 0.2);
}
.appr-name {
  font-size: 11.5px;
  color: var(--ink);
  padding: 4px 0 2px;
  border-top: 1px solid var(--rule);
  width: 100%;
  background: var(--paper-soft);
  font-weight: 500;
}
.appr-role {
  font-size: 9.5px;
  color: var(--ink-mute);
  padding-bottom: 5px;
  background: var(--paper-soft);
  width: 100%;
  letter-spacing: 0.05em;
}
.appr-cell:not(.appr-stamped):not(.appr-rejected) .appr-stamp-area::before {
  content: "결재 대기";
  font-family: var(--font-serif);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
}

.doc-meta-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-family: var(--font-sans);
  margin-top: 16px;
  flex-wrap: wrap;
}
.doc-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.dml { color: var(--ink-mute); font-size: 10.5px; letter-spacing: 0.1em; }
.dmv { color: var(--ink-soft); font-feature-settings: "tnum"; }
.emoji { font-size: 13px; }
.prio-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.prio-badge-dot { width: 5px; height: 5px; border-radius: 50%; }
.prio-badge.tone-routine  { background: var(--tone-routine-bg);  color: var(--tone-routine-fg);  }
.prio-badge.tone-routine  .prio-badge-dot { background: var(--tone-routine-fg); }
.prio-badge.tone-urgent   { background: var(--tone-urgent-bg);   color: var(--tone-urgent-fg);   }
.prio-badge.tone-urgent   .prio-badge-dot { background: var(--tone-urgent-fg); }
.prio-badge.tone-critical { background: var(--tone-critical-bg); color: var(--tone-critical-fg); }
.prio-badge.tone-critical .prio-badge-dot { background: var(--tone-critical-fg); }

/* Sections */
.doc-section { margin: 26px 0; font-family: var(--font-sans); }
.doc-section-sm { margin: 18px 0 0; }
[data-density="compact"] .doc-section { margin: 18px 0; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.sec-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.sec-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.sec-rule { flex: 1; height: 1px; background: var(--rule); }
.doc-section-sm .sec-num,
.doc-section-sm .sec-title { font-size: 12px; color: var(--ink-mute); }
.sec-body { padding-left: 4px; }
.doc-summary {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}

/* Recommendation card */
.rec-card {
  background: var(--paper-soft);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--seal-red);
  border-radius: 4px;
  padding: 14px 18px;
}
.rec-row { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.rec-label {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  width: 50px;
  flex-shrink: 0;
}
.rec-value { display: flex; align-items: center; gap: 14px; flex: 1; }
.rec-strong {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--seal-red);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.rec-confidence { font-size: 11px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.conf-bar {
  flex: 1;
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
  max-width: 200px;
}
.conf-fill { height: 100%; background: var(--tone-positive); transition: width 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.conf-mid .conf-fill { background: var(--tone-urgent-fg); }
.conf-low .conf-fill { background: var(--tone-negative); }
.rec-reason {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-left: 60px;
  text-wrap: pretty;
}

/* KPI grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.kpi-grid.kpi-compact { grid-template-columns: repeat(4, 1fr); }
.kpi { background: var(--paper); padding: 14px 16px; }
.kpi-label { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.04em; margin-bottom: 4px; }
.kpi-value {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
}
.kpi.tone-positive .kpi-value { color: var(--tone-positive); }
.kpi.tone-urgent   .kpi-value { color: var(--tone-urgent); }
.kpi.tone-negative .kpi-value { color: var(--tone-negative); }

/* Product card */
.product-card {
  display: flex;
  gap: 18px;
  padding: 16px;
  background: var(--paper-soft);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
}
.product-image {
  width: 84px; height: 84px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 38px;
  overflow: hidden;
}
.product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.product-body { flex: 1; min-width: 0; }
.product-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.product-name-ja { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.product-meta {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-soft);
}
.pml, .ppl {
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-right: 4px;
  text-transform: uppercase;
}
.product-prices {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-feature-settings: "tnum";
}
.pp-cost { color: var(--ink-mute); }
.pp-sell { color: var(--ink); font-weight: 600; }
.pp-jpy  { color: var(--seal-blue); font-weight: 600; }

/* Curator price evidence */
.price-evidence {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-evidence-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.price-evidence-summary > div {
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.62);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pes-label {
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 700;
}
.price-evidence-summary strong {
  font-size: 17px;
  line-height: 1.25;
}
.price-evidence-summary span:not(.pes-label) {
  color: var(--ink-mute);
  font-size: 12px;
}
.price-evidence-note {
  margin: 0;
  border-left: 3px solid var(--ink-soft);
  padding: 8px 12px;
  background: rgba(255,255,255,0.5);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.7;
}
.price-route-note {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
}
.price-route-note div {
  display: flex;
  gap: 10px;
  border: 1px dashed var(--rule);
  padding: 8px 10px;
}
.price-route-note span {
  flex: 0 0 96px;
  color: var(--ink-mute);
  font-weight: 700;
}
.cost-ledger .cost-total td,
.cost-ledger .cost-profit td {
  background: rgba(22, 101, 52, 0.05);
  font-weight: 700;
}
.price-listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.price-listing-grid h4 {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 800;
}

/* Signals table */
.signals { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.signals th {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mute);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1.5px solid var(--ink);
  letter-spacing: 0.06em;
}
.signals td {
  padding: 9px 12px;
  border-bottom: 1px dashed var(--rule);
  color: var(--ink-soft);
  vertical-align: top;
}
.signals tbody tr:last-child td { border-bottom: 0; }
.sig-source { font-weight: 500; color: var(--ink); white-space: nowrap; }
.sig-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* Risks */
.risks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.risk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--paper-soft);
  border: 1px solid var(--rule-soft);
}
.risk-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.risk-low    .risk-tag { background: var(--tone-positive-bg); color: var(--tone-positive); }
.risk-medium .risk-tag { background: var(--tone-urgent-bg); color: var(--tone-urgent-fg); }
.risk-high   .risk-tag { background: var(--tone-negative); color: white; }

/* Related docs */
.related {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 12px;
}
.related a {
  color: var(--seal-blue);
  text-decoration: none;
  border-bottom: 1px dotted var(--seal-blue);
}
.related a:hover { color: var(--seal-red); border-color: var(--seal-red); }

/* Stamp overlay (when approved/rejected) */
.stamp-overlay {
  position: absolute;
  top: 80px;
  right: 70px;
  pointer-events: none;
  z-index: 5;
  animation: stampDown 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes stampDown {
  0%   { transform: scale(1.6) rotate(-2deg); opacity: 0; }
  60%  { transform: scale(0.9) rotate(-15deg); opacity: 1; }
  100% { transform: scale(1) rotate(-12deg); opacity: 1; }
}
.stamp {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 3px solid var(--seal-red);
  color: var(--seal-red);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  text-align: center;
  background: rgba(250, 247, 240, 0.4);
  box-shadow: inset 0 0 0 2px rgba(184, 48, 42, 0.3);
  transform: rotate(-12deg);
  position: relative;
}
.stamp::before {
  content: "";
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle at 30% 30%, transparent 60%, rgba(184, 48, 42, 0.05));
  border-radius: 50%;
  pointer-events: none;
}
.stamp-text { font-size: 32px; letter-spacing: -0.02em; }
.stamp-text-sub {
  font-size: 10px;
  letter-spacing: 0.3em;
  margin-top: 2px;
  border-top: 1px solid var(--seal-red);
  padding-top: 3px;
}
.stamp-rejected .stamp {
  border-color: var(--ink-mute);
  color: var(--ink-mute);
  box-shadow: inset 0 0 0 2px rgba(132, 123, 107, 0.2);
}
.stamp-rejected .stamp-text-sub { border-color: var(--ink-mute); }
.document.is-approved { background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 80%, var(--paper-soft) 100%); }
.document.is-rejected { opacity: 0.85; }

/* Doc actions */
.doc-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1.5px solid var(--ink);
  font-family: var(--font-sans);
}
.actions-left, .actions-right { display: flex; gap: 10px; align-items: center; }
.actions-stamped {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--ink-mute);
}

.btn {
  appearance: none;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 120ms ease;
}
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { font-size: 14px; }
.btn-shortcut {
  font-size: 10px;
  background: rgba(255,255,255,0.2);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
  letter-spacing: 0;
}
.btn-approve {
  background: var(--seal-red);
  color: white;
  border-color: var(--seal-red);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 10px -4px rgba(184, 48, 42, 0.4);
}
.btn-approve:hover {
  background: var(--seal-red-soft);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 16px -4px rgba(184, 48, 42, 0.5);
}
.btn-reject { background: var(--paper); color: var(--ink-soft); border-color: var(--rule); }
.btn-reject:hover { background: var(--tone-negative-bg); color: var(--tone-negative); border-color: var(--tone-negative); }
.btn-ghost { background: transparent; color: var(--ink-mute); border-color: var(--rule); }
.btn-ghost:hover { background: var(--paper-soft); color: var(--ink); border-color: var(--ink-mute); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* Stage footer */
.stage-footer {
  max-width: 820px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
}
.stage-progress { display: flex; gap: 6px; align-items: center; }
.prog-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-faint);
  cursor: pointer;
  transition: all 160ms;
  border: 0;
  padding: 0;
}
.prog-dot.prog-approved { background: var(--tone-positive); }
.prog-dot.prog-rejected { background: var(--ink-mute); }
.prog-dot.is-current { width: 24px; border-radius: 4px; background: var(--seal-red); }

/* ─── Completion ────────────────────────────────────────── */
.completion {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 80px);
  padding: 40px 20px;
}
.completion.is-hidden { display: none; }
.completion-card {
  max-width: 480px;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  padding: 56px 48px 40px;
  box-shadow: var(--shadow-doc);
  text-align: center;
  font-family: var(--font-serif);
  position: relative;
}
.completion-card::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  pointer-events: none;
}
.completion-seal {
  width: 96px; height: 96px;
  margin: 0 auto 20px;
  border: 3px solid var(--seal-red);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--seal-red);
  background: rgba(184, 48, 42, 0.04);
  box-shadow: inset 0 0 0 2px rgba(184, 48, 42, 0.2);
  transform: rotate(-6deg);
  animation: stampDown 480ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.completion-seal-inner {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
}
.completion-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink);
  margin: 12px 0 6px;
}
.completion-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 28px;
}
.completion-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-bottom: 28px;
}
.cstat { background: var(--paper-soft); padding: 14px 8px; }
.cstat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--seal-red);
  line-height: 1;
  font-feature-settings: "tnum";
}
.cstat:nth-child(2) .cstat-num { color: var(--ink-mute); }
.cstat:nth-child(3) .cstat-num { color: var(--ink); }
.cstat-label { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.2em; margin-top: 6px; }
.completion-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.completion-foot {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  border-top: 1px dashed var(--rule);
  padding-top: 14px;
}

/* ─── Modal ─────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
  animation: fadeIn 160ms ease;
}
.modal-backdrop.is-hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--paper);
  border-radius: var(--radius);
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  border: 1px solid var(--paper-edge);
  overflow: hidden;
  font-family: var(--font-sans);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
}
.modal-emp { display: flex; align-items: center; gap: 10px; }
.modal-emp-avatar {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--paper-soft);
  border-radius: 50%;
  font-size: 18px;
  border: 1px solid var(--rule);
}
.modal-emp-name { font-weight: 600; font-size: 13px; color: var(--ink); }
.modal-emp-role {
  font-size: 11px;
  color: var(--tone-positive);
  display: flex;
  align-items: center;
  gap: 5px;
}
.modal-emp-role::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--tone-positive);
  border-radius: 50%;
}
.modal-x {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  font-size: 16px;
  cursor: pointer;
  width: 28px; height: 28px;
  border-radius: 4px;
}
.modal-x:hover { background: var(--paper-soft); color: var(--ink); }
.modal-context {
  padding: 9px 18px;
  background: var(--paper-soft);
  font-size: 11.5px;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  gap: 8px;
}
.mc-label { color: var(--ink-mute); letter-spacing: 0.06em; }
.mc-value {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-body {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 100px;
}
.chat-msg {
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13px;
  max-width: 80%;
  line-height: 1.5;
}
.chat-mine {
  background: var(--seal-red);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-emp {
  background: var(--paper-soft);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--rule-soft);
}
.chat-typing {
  display: inline-block;
  margin-left: 4px;
  color: var(--ink-mute);
  animation: typing 1.2s ease-in-out infinite;
}
@keyframes typing { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.modal-foot { padding: 12px; border-top: 1px solid var(--rule); display: flex; gap: 8px; }
.modal-input {
  flex: 1;
  appearance: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}
.modal-input:focus { border-color: var(--seal-red); }

/* Back-to-home */
.back-to-home {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  box-shadow: 0 2px 6px -2px rgba(0,0,0,0.1);
  transition: all 160ms ease;
}
.back-to-home:hover { border-color: var(--ink-soft); color: var(--ink); }

/* Tweaks (bottom-right) */
.gz-tweaks {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 30;
  font-family: var(--font-sans);
  font-size: 12px;
  display: flex;
  gap: 6px;
}
.gz-tweak-btn {
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px -2px rgba(0,0,0,0.1);
  transition: all 160ms ease;
}
.gz-tweak-btn:hover { border-color: var(--ink-soft); color: var(--ink); }
.gz-tweak-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 20px; }
  .document { padding: 32px 24px 24px; }
  [data-density="compact"] .document { padding: 24px 18px; }
  .doc-title { font-size: 24px; }
  .approval-grid { max-width: 100%; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid.kpi-compact { grid-template-columns: repeat(2, 1fr); }
  .price-evidence-summary,
  .price-listing-grid { grid-template-columns: 1fr; }
  .price-route-note div { flex-direction: column; gap: 3px; }
  .price-route-note span { flex-basis: auto; }
}

/* ─── Curator→Designer Handoff v1 (Spec 2026-05-12 §7.1) — 디자이너 drawer 4-section preview ───── */
.designer-draft-panel {
  display: grid;
  gap: 18px;
}
.designer-section {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 14px 16px;
  background: var(--paper-soft);
}
.designer-section[data-section] { transition: background 200ms ease; }
.designer-section-just-updated { background: #fff7d6; }
.designer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.designer-section-label {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.designer-section .content {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  word-break: break-word;
}
.designer-section .content.rendered-html p { margin: 0 0 6px; }
.designer-section .meta {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 6px;
}
.designer-section .placeholder { color: var(--ink-faint); font-style: italic; }
.regen-btn {
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
}
.regen-btn:hover:not(:disabled) { border-color: var(--ink-soft); color: var(--ink); }
.regen-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.regen-btn-image { position: absolute; right: 6px; bottom: 6px; }
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.image-tile {
  position: relative;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--paper);
}
.image-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seo-list { margin: 0; }
.seo-list dt {
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 8px;
}
.seo-list dt:first-child { margin-top: 0; }
.seo-list dd { margin: 2px 0 0; font-size: 13px; color: var(--ink); }
.seo-keyword {
  display: inline-block;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1px 6px;
  margin: 2px 4px 2px 0;
  font-size: 11px;
  color: var(--ink-soft);
}
.designer-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
}
.designer-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
}
.designer-badge-progress { background: #fff0c6; border-color: #e4ce85; color: #6e5414; }
.designer-badge-revising { background: #cbe5f8; border-color: #88b9d8; color: #1d4d6e; }
.designer-badge-approved { background: #d1ebd0; border-color: #82b67f; color: #1f5021; }

/* ─── Department Handoff Pattern Rollout (Spec 2026-05-13 §7.1 + §7.2) ─────────
   ListingOrder + CS drawer 4-section preview. designer-draft-panel grid 재사용,
   부서별 헤더 색상 변형은 dept-seal 토큰 활용. */
.listing-order-draft-panel,
.cs-draft-panel {
  /* designer-draft-panel grid layout 재사용 */
}
.listing-order-draft-panel .designer-section-label { color: var(--dept-listing, var(--ink-soft)); }
.cs-draft-panel .designer-section-label { color: var(--dept-cs, var(--ink-soft)); }

/* §3 CS Suggested actions — bulleted list (designer image-grid 위치 점유) */
.cs-suggested-actions {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
}
.cs-suggested-actions li { margin: 2px 0; }

/* ─── Curator → Designer Handoff Flow Integration (Spec 2026-05-16 §4.3 / T7) ─
   bulk 디자인 시작 직후 body 상단 toast — 한지 톤, 3s auto-dismiss. */
.dockets-toast {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--paper, #f7f2e7);
    border: 1px solid var(--seal-red, #b22222);
    border-left-width: 4px;
    border-radius: 2px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    font-size: 14px;
    color: var(--ink, #1a1a1a);
    font-family: 'Noto Serif KR', serif;
    animation: dockets-toast-in 220ms ease-out 1;
}
.dockets-toast.toast-dismissed {
    animation: dockets-toast-out 380ms ease-in 1 forwards;
}
.dockets-toast .toast-mark {
    color: var(--seal-red, #b22222);
    font-weight: 700;
    font-size: 16px;
}
.dockets-toast .toast-text { letter-spacing: 0.02em; }
@keyframes dockets-toast-in {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes dockets-toast-out {
    from { opacity: 1; transform: translate(-50%, 0); }
    to   { opacity: 0; transform: translate(-50%, -8px); }
}

/* ─── Spec 2026-05-16 §6.2 / T8 — Reject 2-step <dialog> modal ─────────────────
   한지 톤 + 인주색 헤더 + textarea min 5자 검증 disabled 시각 + 비가역 경고. */
dialog[data-reject-modal] {
    border: 1px solid var(--rule, #d8cdb5);
    border-top: 4px solid var(--seal-red, #b22222);
    border-radius: 2px;
    background: var(--paper, #faf6ec);
    color: var(--ink, #1a1a1a);
    font-family: 'Noto Serif KR', serif;
    padding: 0;
    width: min(480px, 92vw);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
dialog[data-reject-modal]::backdrop {
    background: rgba(20, 16, 8, 0.42);
}
dialog[data-reject-modal] .reject-modal-head {
    padding: 16px 20px 8px;
    border-bottom: 1px dashed var(--rule, #d8cdb5);
}
dialog[data-reject-modal] .reject-modal-head h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--seal-red, #b22222);
    letter-spacing: 0.02em;
}
dialog[data-reject-modal] .reject-modal-head p {
    margin: 0;
    font-size: 12.5px;
    color: var(--ink-soft, #5a5247);
    line-height: 1.6;
}
dialog[data-reject-modal] [data-reject-reason] {
    display: block;
    width: calc(100% - 40px);
    margin: 14px 20px;
    padding: 8px 10px;
    border: 1px solid var(--rule, #d8cdb5);
    border-radius: 2px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    color: var(--ink, #1a1a1a);
    background: var(--paper-deep, #f3ecd9);
    resize: vertical;
    min-height: 80px;
}
dialog[data-reject-modal] [data-reject-reason]:focus {
    outline: 2px solid var(--seal-red, #b22222);
    outline-offset: -2px;
}
dialog[data-reject-modal] .reject-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 20px 16px;
}
dialog[data-reject-modal] .reject-modal-foot button {
    padding: 7px 14px;
    border-radius: 2px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    cursor: pointer;
}
dialog[data-reject-modal] [data-reject-cancel] {
    background: transparent;
    border: 1px solid var(--rule, #d8cdb5);
    color: var(--ink-soft, #5a5247);
}
dialog[data-reject-modal] [data-reject-cancel]:hover {
    color: var(--ink, #1a1a1a);
    border-color: var(--ink-soft, #5a5247);
}
dialog[data-reject-modal] [data-reject-confirm] {
    background: var(--seal-red, #b22222);
    border: 1px solid var(--seal-red, #b22222);
    color: #fff;
    font-weight: 600;
}
dialog[data-reject-modal] [data-reject-confirm]:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}
dialog[data-reject-modal] [data-reject-confirm]:not(:disabled):hover {
    background: #8a1a1a;
    border-color: #8a1a1a;
}

/* ─── Spec 2026-05-16 §4.2 / T9 — sidebar "ROI 검토 대기" link ────────────────
   meta-row-roi 는 기존 meta-row 와 시각 일치하되 link 표시 + hover. */
.sidebar-meta .meta-row-roi { padding: 0; }
.sidebar-meta .meta-roi-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color 150ms ease-out, color 150ms ease-out;
}
.sidebar-meta .meta-roi-link:hover {
    color: var(--seal-red, #b22222);
    border-color: var(--seal-red, #b22222);
}
.sidebar-meta .meta-roi-link .meta-value b {
    color: var(--seal-red, #b22222);
    font-weight: 700;
    margin-right: 2px;
}
