/* =============================================================================
 * Jade Manager — style.css
 * Google-Cloud-Console / Spanner-console aesthetic.
 * Pure CSS. No web fonts, no CDNs. System font stack only.
 * Design tokens live in :root so the whole console stays on a 4px grid with a
 * consistent Google-blue accent and subtle Material elevation. Class names here
 * mirror exactly the markup emitted by index.html, tree.js, grid.js, query.js.
 * ========================================================================== */

:root {
  /* Palette */
  --blue:        #1a73e8;
  --blue-hover:  #1765cc;
  --blue-50:     #e8f0fe;
  --blue-100:    #d2e3fc;
  --red:         #d93025;
  --red-50:      #fce8e6;
  --green:       #1e8e3e;
  --green-50:    #e6f4ea;
  --amber:       #f29900;
  --amber-50:    #fef7e0;
  --text:        #202124;
  --text-2:      #5f6368;
  --text-3:      #80868b;
  --border:      #dadce0;
  --border-2:    #e8eaed;
  --surface:     #ffffff;
  --surface-2:   #f8f9fa;
  --surface-3:   #f1f3f4;
  --selected:    #e8f0fe;
  --hover:       #f1f3f4;

  /* Typography */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Spacing — 4px grid */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s6: 24px;

  /* Elevation */
  --shadow-1: 0 1px 2px 0 rgba(60,64,67,.30), 0 1px 3px 1px rgba(60,64,67,.15);
  --topbar-h: 48px;
  --rail-w: 300px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; height: 100%;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
@keyframes spin { to { transform: rotate(360deg); } }

/* App shell: top bar over (rail | resizer | main) */
body { display: grid; grid-template-rows: var(--topbar-h) 1fr; }

/* ---- Top app bar --------------------------------------------------------- */
#topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); padding: 0 var(--s4);
  background: var(--surface); border-bottom: 1px solid var(--border);
  z-index: 10;
}
.topbar-left  { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: var(--s3); }
.logo { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.6; }
.product-title { font-size: 18px; font-weight: 500; color: var(--text); white-space: nowrap; }
.product-sub   { font-size: 12px; color: var(--text-3); white-space: nowrap; }

.endpoint {
  font-family: var(--mono); font-size: 12px; color: var(--text-2);
  background: var(--surface-3); padding: var(--s1) var(--s2); border-radius: 4px;
  white-space: nowrap;
}

/* Bearer-token field in the top bar (attached to every /studio/api/* call). */
.auth-token {
  font-family: var(--mono); font-size: 12px; width: 160px;
  padding: var(--s1) var(--s2); border: 1px solid var(--border);
  border-radius: 4px; background: var(--surface); color: var(--text-1);
}
.auth-token:focus { outline: none; border-color: var(--primary, #1a73e8); }

/* Connection status chip */
.chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s1) var(--s3); border-radius: 999px;
  font-size: 12px; font-weight: 500; border: 1px solid var(--border);
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.chip-unknown      { background: var(--surface-3); color: var(--text-2); }
.chip-connecting   { background: var(--amber-50); color: #b06000; border-color: #feefc3; }
.chip-connecting .chip-dot { background: var(--amber); }
.chip-connected    { background: var(--green-50); color: var(--green); border-color: #ceead6; }
.chip-connected .chip-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(30,142,62,.15); }
.chip-disconnected { background: var(--red-50); color: var(--red); border-color: #fad2cf; }
.chip-disconnected .chip-dot { background: var(--red); }

/* Icon / mini buttons */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: none; background: transparent;
  border-radius: 50%; color: var(--text-2); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn:hover { background: var(--hover); }
.icon-btn.spin svg { animation: spin 1s linear infinite; }

.mini-btn {
  appearance: none; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  border-radius: 4px; padding: 3px var(--s2); font-size: 12px; line-height: 1.4;
}
.mini-btn:hover { background: var(--hover); color: var(--text); }
.mini-btn:disabled { opacity: .4; cursor: default; }

/* ---- Body layout --------------------------------------------------------- */
#layout {
  display: grid;
  grid-template-columns: var(--rail-w) 5px 1fr;
  min-height: 0; height: 100%;
}

/* ---- Left rail (resource tree) ------------------------------------------- */
#rail {
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.rail-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--border-2);
}
.rail-title {
  font-size: 11px; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; color: var(--text-3);
}
#tree { flex: 1; overflow: auto; padding: var(--s1) 0; }

#rail-resizer { cursor: col-resize; background: transparent; }
#rail-resizer:hover, #rail-resizer.active { background: var(--blue-100); }

/* Tree nodes */
.tree-loading, .tree-empty, .tree-error {
  padding: var(--s3) var(--s4); font-size: 12px; line-height: 1.5; color: var(--text-2);
}
.tree-error { color: var(--red); }

.tree-row {
  display: flex; align-items: center; gap: var(--s1);
  padding: 3px var(--s2) 3px 0; cursor: pointer; user-select: none;
  white-space: nowrap; color: var(--text); position: relative;
}
.tree-row:hover { background: var(--hover); }
.tree-row.selected { background: var(--selected); }
.tree-row.selected::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--blue);
}
.tri {
  width: 16px; flex: none; text-align: center; font-size: 9px; color: var(--text-3);
}
.tri.spin { display: inline-block; animation: spin .8s linear infinite; }
.node-ic { width: 18px; height: 18px; flex: none; display: inline-flex; align-items: center; }
.node-ic .ic { width: 16px; height: 16px; fill: none; stroke: var(--text-2); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; }
.node-ic .ic-pk { stroke: var(--blue); }
.tree-node[kind="instance"] .ic,
.node-ic .ic[viewBox] { /* keep instance/database glyphs tinted */ }
.tree-node .node-label { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.node-sub { font-size: 11px; color: var(--text-3); margin-left: var(--s2); overflow: hidden;
  text-overflow: ellipsis; max-width: 140px; }
.node-badge {
  margin-left: auto; font-size: 10px; padding: 0 var(--s1); border-radius: 3px;
  color: var(--text-3); background: var(--surface-3); text-transform: lowercase;
}
.badge-ready, .badge-creating { color: var(--green); background: var(--green-50); }
.node-spinner {
  width: 12px; height: 12px; margin-left: auto; border-radius: 50%;
  border: 2px solid var(--border-2); border-top-color: var(--blue);
  animation: spin .8s linear infinite;
}
.tree-children { /* indent handled inline via paddingLeft on each row */ }

/* "＋ Add <Type>" action rows — a muted, dashed-feel affordance that turns
   blue (Cloud-Console "create" accent) on hover. The + glyph is the `add` icon. */
.tree-row.tree-add { color: var(--text-3); }
.tree-row.tree-add .node-label { font-size: 12px; font-style: italic; }
.tree-row.tree-add .node-ic .ic { stroke: var(--text-3); }
.tree-row.tree-add:hover { background: var(--blue-50); color: var(--blue); }
.tree-row.tree-add:hover .node-label { color: var(--blue); }
.tree-row.tree-add:hover .node-ic .ic { stroke: var(--blue); }

/* ---- Main pane ----------------------------------------------------------- */
#main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface-2); }

/* Breadcrumb */
#breadcrumb {
  display: flex; align-items: center; gap: var(--s1); flex-wrap: wrap;
  padding: var(--s2) var(--s4); background: var(--surface);
  border-bottom: 1px solid var(--border-2);
  font-size: 13px; color: var(--text-2); min-height: 36px;
}
#breadcrumb .crumb { color: var(--text-2); }
#breadcrumb .crumb.active { color: var(--text); font-weight: 500; }
#breadcrumb .sep { color: var(--text-3); }
#breadcrumb .crumb-empty { color: var(--text-3); }

/* Tabs */
.tabs {
  display: flex; gap: var(--s2); padding: 0 var(--s4);
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.tab {
  appearance: none; border: none; background: none; cursor: pointer;
  padding: var(--s3) var(--s2); font-size: 13px; font-weight: 500;
  color: var(--text-2); border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* Tab panels fill the rest of the main pane */
.tab-panel { display: none; flex: 1; min-height: 0; flex-direction: column; }
.tab-panel.active { display: flex; }

/* ---- Error banner -------------------------------------------------------- */
.error-banner {
  display: flex; align-items: flex-start; gap: var(--s2);
  margin: var(--s3) var(--s4) 0; padding: var(--s3);
  background: var(--red-50); color: #c5221f; border: 1px solid #fad2cf;
  border-radius: 8px; font-size: 13px; line-height: 1.5;
}
.error-banner[hidden] { display: none; }
.error-banner .err-icon { flex: none; }
.error-banner #error-text { white-space: pre-wrap; font-family: var(--mono); font-size: 12px; }
.error-banner .err-dismiss {
  margin-left: auto; appearance: none; border: none; background: none;
  color: inherit; cursor: pointer; opacity: .7; font-size: 14px;
}
.error-banner .err-dismiss:hover { opacity: 1; }

/* ---- Query toolbar / editor ---------------------------------------------- */
.query-toolbar, .data-toolbar {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s4); background: var(--surface);
  border-bottom: 1px solid var(--border-2); flex: none;
}
.db-select-wrap { display: inline-flex; align-items: center; gap: var(--s2); }
.db-select-label { font-size: 12px; color: var(--text-2); }
.db-select, .page-size {
  font-family: var(--font); font-size: 13px; padding: var(--s1) var(--s2);
  border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text);
}
.db-select { min-width: 240px; }

.run-btn {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s2);
  padding: 0 var(--s4); height: 32px; border: 1px solid transparent; border-radius: 4px;
  font-size: 13px; font-weight: 500; background: var(--blue); color: #fff;
}
.run-btn svg { width: 16px; height: 16px; fill: currentColor; }
.run-btn:hover { background: var(--blue-hover); box-shadow: var(--shadow-1); }
.run-btn:disabled { background: var(--surface-3); color: var(--text-3); cursor: default; box-shadow: none; }
.query-hint { font-size: 11px; color: var(--text-3); margin-left: auto; }

.editor-wrap {
  display: flex; background: var(--surface); border-bottom: 1px solid var(--border);
  min-height: 110px; height: 30%; max-height: 40%; flex: none;
}
.gutter {
  flex: none; width: 44px; padding: var(--s2) 0; text-align: right; user-select: none;
  font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--text-3);
  background: var(--surface-2); border-right: 1px solid var(--border-2); overflow: hidden;
}
.gutter div { padding-right: var(--s2); }
.sql-editor {
  flex: 1; border: none; outline: none; resize: none;
  padding: var(--s2) var(--s3); font-family: var(--mono); font-size: 13px;
  line-height: 1.5; color: var(--text); tab-size: 2;
}

/* ---- Status bars --------------------------------------------------------- */
.status-bar {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s2) var(--s4); background: var(--surface);
  border-top: 1px solid var(--border-2); font-size: 12px; color: var(--text-2); flex: none;
}
.status-bar .sb-elapsed, .status-bar .sb-rows { font-variant-numeric: tabular-nums; }
.status-bar .sb-spacer { flex: 1; }

.save-state { font-size: 12px; margin-left: auto; }
.save-state[data-state="unsaved"] { color: var(--amber); }
.save-state[data-state="saving"]  { color: var(--amber); }
.save-state[data-state="saved"]   { color: var(--green); }
.save-state[data-state="error"]   { color: var(--red); }

/* ---- Results host + grid ------------------------------------------------- */
.results-host { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.grid-scroll { flex: 1; min-height: 0; overflow: auto; background: var(--surface); }

table.grid { border-collapse: separate; border-spacing: 0; font-size: 13px;
  width: max-content; min-width: 100%; }
table.grid th, table.grid td {
  border-right: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2);
  padding: var(--s1) var(--s3); text-align: left; white-space: nowrap;
  max-width: 480px; overflow: hidden; text-overflow: ellipsis;
}
table.grid thead th {
  position: sticky; top: 0; z-index: 2; background: var(--surface-2);
  font-weight: 500; color: var(--text-2); cursor: pointer; user-select: none;
}
.col-head { white-space: nowrap; }
.col-name { font-weight: 500; }
.col-type { font-weight: 400; color: var(--text-3); font-size: 11px; margin-left: var(--s2); }
.sort-arrow { color: var(--blue); margin-left: var(--s1); font-size: 10px; }
table.grid tbody td { font-family: var(--mono); cursor: copy; }
table.grid tbody tr.even td { background: var(--surface); }
table.grid tbody tr.odd  td { background: #fcfcfd; }
table.grid tbody tr:hover td { background: var(--blue-50); }
table.grid td.null-cell .null-token { color: var(--text-3); font-style: italic; }
.json-token { color: var(--text-2); }
table.grid td.copied { background: var(--blue-100) !important; transition: background .1s; }
table.grid td.editable { cursor: text; }
table.grid td.editing { padding: 0; }
.cell-input {
  width: 100%; border: 2px solid var(--blue); outline: none;
  font-family: var(--mono); font-size: 13px; padding: 2px var(--s2); box-sizing: border-box;
}
table.grid td.cell-saved { box-shadow: inset 0 0 0 2px var(--green); }
table.grid td.cell-error { box-shadow: inset 0 0 0 2px var(--red); }

/* grid pager footer */
.grid-pager {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s4); background: var(--surface);
  border-top: 1px solid var(--border-2); font-size: 12px; color: var(--text-2); flex: none;
}
.pager-info { font-variant-numeric: tabular-nums; }
.pager-page { color: var(--text-3); }

/* ---- Schema tab ---------------------------------------------------------- */
.schema-host { flex: 1; overflow: auto; padding: var(--s4); }
.schema-section { margin-bottom: var(--s6); }
.schema-section h3 {
  font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 var(--s2);
}
.schema-kv { display: grid; grid-template-columns: 180px 1fr; gap: var(--s1) var(--s4);
  font-size: 13px; margin: 0; }
.schema-kv dt { color: var(--text-2); }
.schema-kv dd { margin: 0; color: var(--text); }
.schema-kv dd code { font-family: var(--mono); }

table.meta { border-collapse: collapse; width: 100%; font-size: 13px; background: var(--surface); }
table.meta th, table.meta td {
  border: 1px solid var(--border-2); padding: var(--s2) var(--s3); text-align: left;
}
table.meta th { background: var(--surface-2); font-weight: 500; color: var(--text-2); }
table.meta td.mono { font-family: var(--mono); }
.pill { display: inline-block; padding: 1px var(--s2); border-radius: 4px;
  font-size: 11px; background: var(--surface-3); color: var(--text-2); font-family: var(--mono); }
.pill.pk  { background: var(--blue-50); color: var(--blue); }
.pill.yes { background: var(--green-50); color: var(--green); }
.pill.no  { background: var(--surface-3); color: var(--text-3); }

pre.ddl {
  margin: 0; padding: var(--s4); background: var(--surface-3);
  border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--mono); font-size: 12px; line-height: 1.55;
  overflow: auto; white-space: pre; color: var(--text);
}

/* ---- Empty / placeholder states ------------------------------------------ */
.empty-state, .results-host .empty-state {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: var(--text-3); text-align: center; padding: var(--s6); font-size: 13px; line-height: 1.5;
}
.data-title { font-weight: 500; color: var(--text); }
.data-pager { display: inline-flex; align-items: center; gap: var(--s2); }
.page-label { color: var(--text-2); font-variant-numeric: tabular-nums; }
.page-size-wrap { font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: var(--s1); }

/* ===========================================================================
   Workflows tab — the human<->Claude ping-pong board.
   Owner colors: human = blue, claude = teal/green. Two columns with a center
   handoff divider; the step holding the ball is highlighted.
   =========================================================================== */
:root {
  --wf-human:    var(--blue);
  --wf-human-50: var(--blue-50);
  --wf-claude:    #12897e;
  --wf-claude-50: #e0f3f1;
}

.wf-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s4);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* ---- left side: templates + active runs ---- */
.wf-side {
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  padding: var(--s3); overflow: auto; display: flex; flex-direction: column; gap: var(--s2);
}
.wf-side-head {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
  color: var(--text-3); margin-top: var(--s2);
}
.wf-template-list, .wf-run-list { display: flex; flex-direction: column; gap: var(--s1); }

.wf-template, .wf-run {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  text-align: left; width: 100%;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 6px; padding: var(--s2) var(--s3); cursor: pointer;
  font-family: var(--font); color: var(--text);
}
.wf-template:hover, .wf-run:hover { background: var(--hover); }
.wf-template.active, .wf-run.active { background: var(--selected); border-color: var(--blue-100); }
.wf-template-title, .wf-run-title { font-size: 13px; font-weight: 500; }
.wf-template-count { font-size: 11px; color: var(--text-3); }
.wf-run-meta { font-size: 11px; color: var(--text-2); display: inline-flex; align-items: center; gap: var(--s1); }

/* ---- right side: start control + board ---- */
.wf-main { overflow: auto; min-width: 0; display: flex; flex-direction: column; gap: var(--s3); }

.wf-start {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: var(--s3);
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  padding: var(--s3);
}
.wf-start-title { font-weight: 500; align-self: center; }
.wf-field { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--text-2); }

/* ---- the board ---- */
.wf-board { display: flex; flex-direction: column; gap: var(--s2); }
.wf-board-head, .wf-row {
  display: grid; grid-template-columns: 1fr 56px 1fr; gap: var(--s2); align-items: stretch;
}
.wf-col-head {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
  padding: var(--s1) var(--s2); border-radius: 6px; text-align: center;
}
.wf-col-head.human  { color: var(--wf-human);  background: var(--wf-human-50); }
.wf-col-head.claude { color: var(--wf-claude); background: var(--wf-claude-50); }
.wf-col-head.mid    { color: var(--text-3); background: var(--surface-3); }

.wf-cell { display: flex; }
.wf-cell.mid { align-items: center; justify-content: center; }
.wf-cell.left  { justify-content: flex-end; }
.wf-cell.right { justify-content: flex-start; }

.wf-arrow { color: var(--border); font-size: 18px; line-height: 1; }
.wf-arrow.active { color: var(--amber); text-shadow: 0 0 6px rgba(242,153,0,.4); }

/* ---- step cards ---- */
.wf-card {
  width: 100%; max-width: 460px;
  border: 1px solid var(--border); border-left-width: 4px; border-radius: 8px;
  background: var(--surface); padding: var(--s3); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--s2);
}
.wf-card.human  { border-left-color: var(--wf-human); }
.wf-card.claude { border-left-color: var(--wf-claude); }
.wf-card.has-ball { box-shadow: 0 0 0 2px var(--amber), var(--shadow-1); }
.wf-card.status-done, .wf-card.status-skipped { opacity: .6; }

.wf-card-top { display: flex; align-items: center; gap: var(--s2); }
.wf-seq { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.wf-kind {
  font-size: 11px; color: var(--text-2); background: var(--surface-3);
  padding: 1px var(--s2); border-radius: 4px;
}
.wf-risk { margin-left: auto; font-size: 11px; padding: 1px var(--s2); border-radius: 999px; font-weight: 500; }
.wf-risk.risk-none        { color: var(--text-2); background: var(--surface-3); }
.wf-risk.risk-additive    { color: var(--green); background: var(--green-50); }
.wf-risk.risk-destructive { color: var(--red);   background: var(--red-50); }

.wf-card-title { font-size: 14px; font-weight: 500; color: var(--text); }
.wf-card-meta { display: flex; align-items: center; gap: var(--s2); }
.wf-card-desc { font-size: 12px; color: var(--text-2); line-height: 1.4; }
.wf-card-cmd {
  font-family: var(--mono); font-size: 12px; color: var(--text);
  background: var(--surface-3); border-radius: 6px; padding: var(--s2);
  white-space: pre-wrap; word-break: break-word; margin: 0;
}

.wf-owner-pill {
  font-size: 11px; font-weight: 500; padding: 1px var(--s2); border-radius: 999px;
}
.wf-owner-pill.human  { color: var(--wf-human);  background: var(--wf-human-50); }
.wf-owner-pill.claude { color: var(--wf-claude); background: var(--wf-claude-50); }
.wf-status-pill { font-size: 11px; color: var(--text-2); background: var(--surface-3); padding: 1px var(--s2); border-radius: 4px; }

/* ---- action buttons ---- */
.wf-actions { display: flex; gap: var(--s1); flex-wrap: wrap; }
.wf-act {
  font-family: var(--font); font-size: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  border-radius: 4px; padding: 3px var(--s2);
}
.wf-act:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.wf-act.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.wf-act.primary:hover:not(:disabled) { background: var(--blue-hover); }
.wf-act.muted { color: var(--text-3); }
.wf-act:disabled { opacity: .45; cursor: not-allowed; }

/* ---- path-to-clear + handoff log ---- */
.wf-section-head {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
  color: var(--text-3); margin: var(--s2) 0 var(--s1);
}
.wf-path, .wf-log { border-top: 1px solid var(--border-2); padding-top: var(--s2); }
.wf-path-list, .wf-log-list { display: flex; flex-direction: column; gap: var(--s1); }
.wf-path-item, .wf-log-item {
  display: flex; align-items: center; gap: var(--s2); font-size: 12px; color: var(--text-2);
}
.wf-path-key { font-family: var(--mono); color: var(--text); }
.wf-path-what { color: var(--text-2); }
.wf-log-arrow { color: var(--text-3); }
.wf-log-step { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.wf-log-note { color: var(--text-2); font-style: italic; }
