/* ============================================================
   Cluster Power KG — minimal monochrome UI
   Design tokens informed by seca technology reference page.
   No emoji, no icon fonts; visual hierarchy comes from
   typography, dots, borders, letter-spacing.
   ============================================================ */

* { margin:0; padding:0; box-sizing:border-box; }

:root {
  --bg:        #ffffff;
  --surface:   #fafafa;
  --surface-2: #f5f5f5;
  --border:    #e5e5e5;
  --border-2:  #d4d4d4;
  --ink:       #171717;
  --ink-2:     #404040;
  --muted:     #525252;
  --muted-2:   #737373;
  --muted-3:   #a3a3a3;
  --muted-4:   #d4d4d4;
  --accent:    #171717;
  --rad-sm:    3px;
  --rad-md:    6px;
  --rad-lg:    10px;
  --pad:       18px;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#app {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ===== Masthead ===== */
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 60;
}
.mast-left { display: flex; align-items: baseline; gap: 14px; }
.mast-mark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--ink);
}
.mast-sub {
  font-size: 11px; color: var(--muted-2);
  letter-spacing: 0.04em;
}
.mast-right { display: flex; align-items: center; gap: 22px; }
.mast-meta { display: inline-flex; align-items: baseline; gap: 6px; }
.mast-meta .meta-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.16em; font-weight: 600;
  color: var(--muted-3); text-transform: uppercase;
}
.mast-meta .meta-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 700; color: var(--ink);
}
.mast-meta-tail .meta-v { color: var(--muted-2); font-weight: 600; }

/* ===== Tabs ===== */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  background: var(--surface);
  position: sticky; top: 49px; z-index: 50;
}
.tab {
  padding: 14px 18px;
  background: transparent; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted-3);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--muted); }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.tab .tab-num {
  font-size: 9px; font-weight: 700; opacity: 0.5;
  margin-right: 8px;
  font-family: 'JetBrains Mono', monospace;
}

/* ===== Panes ===== */
.pane { display: none; padding: 28px 28px 60px; }
.pane.active { display: block; }
.pane-hdr { margin-bottom: 22px; }
.pane-title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 6px;
}
.pane-sub {
  font-size: 12px; color: var(--muted-2);
  line-height: 1.6; max-width: 720px;
}

/* ===== Panel ===== */
.panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--rad-md);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.panel-wide { width: 100%; }
.pane > .panel + .panel,
.pane > .grid-3 + .panel,
.pane > .grid-12 + .panel,
.pane > .panel + .grid-3,
.pane > .panel + .grid-12 { margin-top: 22px; }
.panel-hdr {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  flex-shrink: 0;
}
.panel-icon {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink); flex-shrink: 0;
}
.panel-title {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-2);
}
.panel-badge {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 600;
  padding: 2px 8px;
  border: 1px solid var(--border);
  color: var(--muted-2);
  border-radius: var(--rad-sm);
  letter-spacing: 0.04em;
}
.panel-body { flex: 1; overflow: auto; }
.panel-body-pad { padding: 16px 18px; }

/* ===== Grids ===== */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.panel-span-5 { grid-column: span 5; min-height: 420px; }
.panel-span-7 { grid-column: span 7; }

/* ===== Tables ===== */
.num-table { width: 100%; border-collapse: collapse; }
.num-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.num-table tr:last-child td { border-bottom: none; }
.num-table td.k { color: var(--muted); }
.num-table td.v { text-align: right; font-weight: 700; color: var(--ink); }
.num-table td.dot-cell {
  width: 14px; padding-right: 0;
}
.num-table td.dot-cell .sub-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; vertical-align: middle;
}

.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 11px;
}
.data-table th {
  text-align: left;
  padding: 9px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr { cursor: pointer; transition: background .12s; }
.data-table tr:hover td { background: var(--surface); }
.data-table tr.sel td { background: #f0f0f0; }
.data-table td.num { text-align: right; font-family: 'JetBrains Mono', monospace; }
.data-table .alias {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; color: var(--ink);
}
.data-table .vendor, .data-table .pkg, .data-table .role {
  font-family: 'JetBrains Mono', monospace; color: var(--muted);
}
.data-table .yn-y { color: var(--ink); font-weight: 600; }
.data-table .yn-n { color: var(--muted-3); }

/* Subsystem dot in tables / lists */
.sub-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 8px; vertical-align: middle;
}

/* ===== Bullets / kbd ===== */
.bullets { list-style: none; }
.bullets li {
  padding: 6px 0 6px 18px;
  position: relative;
  font-size: 12px; color: var(--ink-2); line-height: 1.7;
}
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 4px; height: 4px; background: var(--ink); border-radius: 50%;
}
.kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: var(--surface);
  padding: 1px 6px; border: 1px solid var(--border);
  border-radius: var(--rad-sm); color: var(--ink);
}
.muted { color: var(--muted-3); font-size: 12px; }

/* ===== Component detail panel ===== */
.detail-block { margin-bottom: 18px; }
.detail-block h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 6px;
}
.detail-kv {
  display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px;
  font-size: 11px;
}
.detail-kv .k {
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted-2);
}
.detail-kv .v {
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink);
}
.detail-table {
  width: 100%; border-collapse: collapse;
  font-size: 11px;
}
.detail-table th {
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.12em;
  color: var(--muted-2);
  background: var(--surface);
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
.detail-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
}

/* ===== Block diagram ===== */
.bd-wrap {
  background: var(--bg);
  padding: 26px 22px;
  position: relative;
  min-height: 560px;
}
#bd-svg { width: 100%; height: 540px; }
.bd-node rect {
  fill: var(--bg);
  stroke: var(--ink);
  stroke-width: 1;
  rx: 4; ry: 4;
}
.bd-node text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  fill: var(--ink);
  font-weight: 600;
}
.bd-node .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  fill: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bd-edge {
  stroke: var(--ink); stroke-width: 1; fill: none;
  marker-end: url(#bd-arrow);
}
.bd-edge-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  fill: var(--muted-2);
}

/* ===== Chat ===== */
.chat-panel { min-height: 580px; }
.chat-body { display: flex; flex-direction: column; padding: 0; min-height: 540px; }
.chat-log {
  flex: 1; overflow-y: auto;
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 14px;
  font-size: 13px; line-height: 1.65;
}
.chat-msg { display: flex; gap: 10px; }
.chat-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.16em;
  color: var(--muted-3);
  flex-shrink: 0; width: 64px;
  padding-top: 3px;
}
.chat-msg.user .chat-role { color: var(--ink); }
.chat-msg.assistant .chat-role { color: var(--muted-2); }
.chat-msg.system .chat-role { color: var(--muted-3); }
.chat-text { flex: 1; color: var(--ink); white-space: pre-wrap; }
.chat-msg.system .chat-text { color: var(--muted-2); font-style: italic; }
.chat-form {
  border-top: 1px solid var(--border);
  display: flex; align-items: stretch;
  background: var(--bg);
}
.chat-input {
  flex: 1;
  padding: 14px 18px;
  border: none; outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--ink); background: var(--bg);
}
.chat-input::placeholder { color: var(--muted-3); }
.chat-send {
  padding: 0 22px;
  background: var(--ink); color: var(--bg);
  border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em;
  transition: background .12s;
}
.chat-send:hover { background: var(--ink-2); }
.chat-send:disabled { background: var(--muted-3); cursor: not-allowed; }

/* small helpers */
.row-sat-vio {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted-2);
}
.row-sat-vio .alias { color: var(--ink); }
.row-sat-vio .v-vio { color: var(--muted-2); text-decoration: line-through; }

/* ===== Knowledge graph (D3) ===== */
.panel-span-3 { grid-column: span 3; min-height: 620px; }
.panel-span-9 { grid-column: span 9; min-height: 620px; }

.filter-group { margin-bottom: 18px; }
.filter-group h4 {
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 10px;
}
.toggle-list {
  display: flex; flex-direction: column; gap: 4px;
}
.toggle-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 6px;
  font-size: 11px;
  cursor: pointer;
  border-radius: var(--rad-sm);
  transition: background .12s;
  user-select: none;
}
.toggle-row:hover { background: var(--surface); }
.toggle-row .tg-dot {
  width: 9px; height: 9px; border-radius: 50%;
  flex-shrink: 0; border: 1px solid var(--c, var(--ink));
}
.toggle-row.off .tg-dot { background: var(--bg); }
.toggle-row.on  .tg-dot { background: var(--c, var(--ink)); }
.toggle-row .tg-name {
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-2); flex: 1;
}
.toggle-row .tg-count {
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted-3); font-size: 10px;
}
.toggle-row.off .tg-name { color: var(--muted-3); }

.link-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  padding: 2px 0; text-decoration: underline;
}
.link-btn:hover { color: var(--ink); }

.kg-selbar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px;
  position: relative;
}
.kg-selbar.hidden { display: none; }
.kg-selbar .sel-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.kg-selbar .sel-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 3px 8px;
  background: var(--ink); color: var(--bg);
  border-radius: var(--rad-sm);
}
.kg-selbar .sel-tag.t-edge { background: var(--bg); color: var(--ink); border: 1px solid var(--ink); }
.kg-selbar .sel-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 700; color: var(--ink);
}
.kg-selbar .sel-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted-2);
}
.kg-selbar .sel-arrow {
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted-3); padding: 0 2px;
}
.kg-selbar .sel-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted-2);
  padding: 2px 6px;
  border-radius: var(--rad-sm);
}
.kg-selbar .sel-close:hover { background: var(--bg); color: var(--ink); }
.kg-selbar .sel-detail {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 4px 14px;
  font-size: 11px;
  margin-top: 4px;
}
.kg-selbar .sel-detail .k {
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted-2);
}
.kg-selbar .sel-detail .v {
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink);
}

.kg-canvas-wrap {
  background: var(--bg);
  position: relative;
  height: 620px;
}
#kg-svg { width: 100%; height: 100%; cursor: grab; }
#kg-svg:active { cursor: grabbing; }
.kg-link-hit {
  stroke: transparent;
  stroke-width: 14;       /* 보이지 않는 클릭 영역 */
  fill: none;
  pointer-events: stroke;
  cursor: pointer;
}
.kg-link { stroke: var(--ink); stroke-opacity: 0.30; stroke-width: 1; fill: none;
           pointer-events: none; }
.kg-link.k-SATISFIES   { stroke-opacity: 0.55; }
.kg-link.k-VIOLATES    { stroke-dasharray: 3 3; stroke-opacity: 0.65; }
.kg-link.k-CONNECTS_TO { stroke-opacity: 0.75; stroke-width: 1.4; }
.kg-link.k-BELONGS_TO  { stroke-opacity: 0.40; }
.kg-link.k-HAS_PROPERTY,
.kg-link.k-HAS_ABS_MAX,
.kg-link.k-HAS_PACKAGE,
.kg-link.k-SOURCED_FROM { stroke-opacity: 0.20; }
.link-grp:hover .kg-link        { stroke-opacity: 0.95; stroke-width: 1.8; }
.link-grp:hover .kg-link-label  { opacity: 1; fill: var(--ink); }
.link-grp.sel .kg-link          { stroke-opacity: 1; stroke-width: 2.2; stroke: #000; }
.link-grp.sel .kg-link-label    { opacity: 1; fill: #000; font-weight: 700; }
.kg-link-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  fill: var(--muted-2);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  text-anchor: middle;
}
.kg-node .kg-hit  { fill: transparent; stroke: none; cursor: pointer; }
.kg-node .kg-vis  { stroke: var(--ink); stroke-width: 1; fill: var(--bg); pointer-events: none; }
.kg-node.t-Component          .kg-vis { fill: #1F2937; stroke: #111827; }
.kg-node.t-Subsystem          .kg-vis { fill: #DBEAFE; stroke: #1E3A8A; stroke-width: 1.5; }
.kg-node.t-Requirement        .kg-vis { fill: #D1FAE5; stroke: #065F46; }
.kg-node.t-Vendor             .kg-vis { fill: #EDE9FE; stroke: #5B21B6; }
.kg-node.t-Document           .kg-vis { fill: #FEF3C7; stroke: #92400E; }
.kg-node.t-Package            .kg-vis { fill: #F3F4F6; stroke: #374151; }
.kg-node.t-ElectricalProperty .kg-vis { fill: #CFFAFE; stroke: #155E75; }
.kg-node.t-AbsMaxRating       .kg-vis { fill: #FCE7F3; stroke: #9D174D; }
.kg-node text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  fill: var(--ink);
  pointer-events: none;
  user-select: none;
}
.kg-node.sel .kg-vis { stroke-width: 2.5; stroke: #000; }
.kg-node.sel text    { font-weight: 700; }

/* ===== Sub-tabs (Recommend / Analysis) ===== */
.subtabs {
  display: flex; gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.subtab {
  padding: 8px 14px;
  background: transparent; border: none; cursor: pointer;
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-3);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.subtab:hover { color: var(--muted); }
.subtab.active { color: var(--ink); border-bottom-color: var(--ink); }
.subpane { display: none; }
.subpane.active { display: block; }
.compliance-bar {
  display: inline-block; vertical-align: middle;
  width: 80px; height: 5px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
  margin-right: 6px;
}
.compliance-bar > span {
  display: block; height: 100%;
  background: var(--ink);
}

/* ===== Raw data sample grid (Overview) ===== */
.muted-paragraph {
  font-size: 12px; color: var(--muted-2);
  line-height: 1.7; margin-bottom: 18px;
  max-width: 820px;
}
.raw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.raw-card {
  border: 1px solid var(--border);
  border-radius: var(--rad-md);
  padding: 14px;
  background: var(--bg);
  display: flex; flex-direction: column;
}
.raw-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 3px 8px;
  color: var(--bg); background: var(--ink);
  border-radius: var(--rad-sm);
  align-self: flex-start;
  margin-bottom: 12px;
}
.raw-name {
  font-size: 12px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.raw-meta {
  font-size: 11px; color: var(--muted-2);
  line-height: 1.6;
}
.raw-meta .kbd { font-size: 10px; }

/* ===== Chat — suggestions / answer / path / evidence ===== */
.chat-suggestions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 12px 22px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.suggest-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-3);
  margin-right: 6px;
}
.chat-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  font-size: 11px; color: var(--ink-2);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.chat-chip:hover {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.chat-answer { color: var(--ink); }

.chat-path {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad-sm);
}
.chat-path h5,
.chat-evidence h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 10px;
}
.path-flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
}
.path-node {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  border-radius: var(--rad-sm);
  background: var(--bg);
  color: var(--ink);
}
.path-edge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--muted-2);
}
.path-edge::before, .path-edge::after {
  content: ""; display: inline-block;
  width: 12px; height: 1px; background: var(--ink);
}
.path-edge::after { width: 14px; }
.path-edge .path-edge-lab {
  padding: 2px 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.chat-evidence {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--rad-sm);
}
.chat-evidence ul { list-style: none; }
.ev-item {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 4px 14px;
  font-size: 11px;
}
.ev-item:last-child { border-bottom: none; padding-bottom: 0; }
.ev-kind {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 2px;
}
.ev-body { color: var(--ink-2); }
.ev-claim { color: var(--ink); margin-bottom: 4px; }
.ev-ref {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted);
  margin-right: 6px;
}
.ev-prov {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted-2);
  display: block; margin-top: 4px;
}
.ev-prov .ev-doc { color: var(--ink-2); }
.ev-prov .ev-page { color: var(--muted); }

/* responsive */
@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: 1fr; }
  .raw-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-span-5, .panel-span-7,
  .panel-span-3, .panel-span-9 { grid-column: span 12; }
  .mast-right { display: none; }
}
@media (max-width: 720px) {
  .raw-grid { grid-template-columns: 1fr; }
}
