/* ─── Synth Max Admin · styles ──────────────────────────
 * Reuses the Bone tokens from the chat prototype.
 * Geist / Geist Mono · monochrome · no colour accents except warn (flag).
 */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@400;500&display=swap");

:root[data-theme="bone"] {
  --bg:        #FBFAF7;
  --bg-2:      #F4F2EC;
  --bg-3:      #ECEAE3;
  --panel:     #FBFAF7;

  --ink:       #0F0E0C;
  --ink-soft:  rgba(15, 14, 12, 0.76);
  --ink-mute:  rgba(15, 14, 12, 0.50);
  --ink-faint: rgba(15, 14, 12, 0.24);

  --rule:      rgba(15, 14, 12, 0.08);
  --rule-2:    rgba(15, 14, 12, 0.16);
  --rule-3:    rgba(15, 14, 12, 0.28);

  --accent:        #0F0E0C;
  --accent-soft:   rgba(15, 14, 12, 0.06);

  --warn:      #8B6914;
  --warn-soft: rgba(139, 105, 20, 0.10);

  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  --dur:  140ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
input  { font: inherit; color: inherit; }
code   { font-family: var(--font-mono); font-size: 0.92em; font-feature-settings: "tnum" 1; }
::selection { background: var(--ink); color: var(--bg); }

/* ── App shell ──────────────────────────────────────── */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ── Top bar ───────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  height: 52px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
  background: var(--bg);
}
.tb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.tb-sigil {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}
.tb-brand-name { color: var(--ink); }
.tb-brand-sep  { color: var(--ink-faint); margin: 0 2px; }
.tb-brand-section {
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10.5px;
}

.tb-search {
  flex: 1;
  max-width: 360px;
  margin-left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 11px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  transition: border-color var(--dur) var(--ease);
}
.tb-search:focus-within { border-color: var(--rule-3); }
.tb-search svg { width: 13px; height: 13px; color: var(--ink-mute); flex-shrink: 0; }
.tb-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 12.5px;
  color: var(--ink);
}
.tb-search input::placeholder { color: var(--ink-mute); }
.tb-search-kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
  padding: 1px 5px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.tb-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tb-link {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  font-size: 11.5px;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule-2);
  background: var(--bg-2);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.tb-link:hover {
  border-color: var(--rule-3);
  background: var(--bg-3);
}
.tb-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  font-size: 11.5px;
  color: var(--ink-mute);
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.tb-toggle:hover { color: var(--ink); }
.tb-toggle.on {
  color: var(--ink);
  background: var(--bg-3);
}
.tb-toggle svg { width: 13px; height: 13px; }
.tb-toggle-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: background var(--dur) var(--ease);
}
.tb-toggle.on .tb-toggle-dot { background: var(--ink); }

/* ── KPI strip ─────────────────────────────────────── */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.kpi {
  padding: 22px 28px 24px;
  border-right: 1px solid var(--rule);
  background: var(--bg);
  position: relative;
  cursor: grab;
  transition: background var(--dur) var(--ease);
}
.kpi:last-child { border-right: none; }
.kpi:hover { background: var(--bg-2); }
.kpi.dragging { opacity: 0.4; }
.kpi.drag-over::before {
  content: "";
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 2px;
  background: var(--ink);
}
.kpi-label {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kpi-grip {
  width: 10px; height: 10px;
  color: var(--ink-faint);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.kpi:hover .kpi-grip { opacity: 1; }
.kpi-value {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi-sub {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: -0.005em;
}
.kpi-sub strong { color: var(--ink-soft); font-weight: 500; }

/* ── Table area ────────────────────────────────────── */
.body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px 12px;
  flex-shrink: 0;
}
.section-title {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-count {
  font-size: 11px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.section-spacer { flex: 1; }
.section-meta {
  font-size: 10.5px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ── Users table ───────────────────────────────────── */
.tbl-wrap {
  flex: 1;
  overflow: auto;
  padding: 0 18px 24px;
}
.tbl-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.tbl-wrap::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 4px; }
.tbl-wrap::-webkit-scrollbar-track { background: transparent; }

.tbl {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.tbl thead th {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
  padding: 10px 10px;
  border-bottom: 1px solid var(--rule-2);
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  user-select: none;
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.tbl thead th:hover { color: var(--ink-soft); }
.tbl thead th.sort-active { color: var(--ink); }
.tbl thead th .th-arrow {
  display: inline-block;
  width: 8px;
  margin-left: 4px;
  opacity: 0;
  font-family: var(--font-mono);
  font-size: 9px;
}
.tbl thead th.sort-active .th-arrow { opacity: 1; }

.tbl thead th:first-child { padding-left: 18px; }
.tbl thead th:last-child  { padding-right: 18px; }

.tbl tbody tr {
  cursor: pointer;
  transition: background var(--dur) var(--ease);
  border-bottom: 1px solid var(--rule);
}
.tbl tbody tr:hover { background: var(--bg-2); }
.tbl tbody tr.selected { background: var(--bg-3); }
.tbl tbody tr.selected td { color: var(--ink); }

.tbl td {
  padding: 14px 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  vertical-align: middle;
  letter-spacing: -0.005em;
}
.tbl td:first-child { padding-left: 18px; }
.tbl td:last-child  { padding-right: 18px; }

/* Density variants */
.app[data-density="compact"] .tbl td { padding: 8px 10px; font-size: 12px; }
.app[data-density="compact"] .tbl tbody .u-name { font-size: 12.5px; }
.app[data-density="compact"] .u-avatar { width: 24px; height: 24px; font-size: 9.5px; }

/* User cell */
.u-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.u-avatar {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}
tr.selected .u-avatar,
tr:hover    .u-avatar {
  background: var(--ink);
  color: var(--bg);
}
.u-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.u-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.008em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.u-email {
  font-size: 11px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.u-role-chip {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  background: transparent;
  white-space: nowrap;
}
.u-role-chip.ext {
  color: var(--warn);
  border-color: var(--warn-soft);
  background: var(--warn-soft);
}

.t-num {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
}
.t-relative { color: var(--ink); font-weight: 500; }
.t-relative.muted { color: var(--ink-mute); font-weight: 400; }
.t-absolute { color: var(--ink-mute); }


.empty-state {
  padding: 60px 28px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 13px;
}

/* ── Transcript side panel ─────────────────────────── */
.panel {
  flex-shrink: 0;
  background: var(--bg);
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: width var(--dur) var(--ease);
}
.panel.resizing { transition: none; user-select: none; }

/* Drag handle on the left edge */
.panel-resize {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 8px;
  margin-left: -4px;
  cursor: col-resize;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background var(--dur) var(--ease);
}
.panel-resize:hover,
.panel.resizing .panel-resize {
  background: linear-gradient(90deg, transparent 0%, var(--rule-2) 45%, var(--rule-2) 55%, transparent 100%);
}
.panel-resize-grip {
  width: 2px;
  height: 40px;
  border-radius: 1px;
  background: var(--rule-2);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}
.panel-resize:hover .panel-resize-grip,
.panel.resizing .panel-resize-grip {
  opacity: 1;
  background: var(--ink-mute);
}
.panel-empty {
  width: 0;
  border-left: none;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.panel-head .u-avatar { width: 36px; height: 36px; font-size: 12px; }
.panel-head-text { flex: 1; min-width: 0; }
.panel-head-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.012em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-head-email {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-head-meta {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.panel-head-meta span strong {
  color: var(--ink-soft);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.panel-close {
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  flex-shrink: 0;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.panel-close:hover { color: var(--ink); background: var(--bg-3); }
.panel-close svg { width: 14px; height: 14px; }

/* Panel body: rail + transcript */
.panel-body {
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 0;
  overflow: hidden;
}

/* Left rail — mirrors user-facing RECENTS list */
.panel-rail {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--rule);
  background: var(--bg);
  min-height: 0;
  overflow: hidden;
}
.rail-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 12px 8px;
  padding: 0 9px;
  height: 28px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  transition: border-color var(--dur) var(--ease);
  flex-shrink: 0;
}
.rail-search:focus-within { border-color: var(--rule-3); }
.rail-search svg { width: 11px; height: 11px; color: var(--ink-mute); flex-shrink: 0; }
.rail-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 11.5px;
  color: var(--ink);
  min-width: 0;
}
.rail-search input::placeholder { color: var(--ink-mute); }

.rail-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 6px;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.rail-section-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.rail-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.rail-list::-webkit-scrollbar { width: 6px; }
.rail-list::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 3px; }
.rail-list::-webkit-scrollbar-track { background: transparent; }

.rail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  width: 100%;
  text-align: left;
  font-size: 12px;
  color: var(--ink-mute);
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  letter-spacing: -0.005em;
}
.rail-row:hover { color: var(--ink-soft); }
.rail-row.active { color: var(--ink); background: var(--bg-3); }
.rail-row-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rail-row-time {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.rail-row.active .rail-row-time { color: var(--ink-mute); }

.rail-empty {
  padding: 20px 12px;
  font-size: 11.5px;
  color: var(--ink-faint);
  text-align: center;
  letter-spacing: -0.005em;
}

/* Transcript right column */
.panel-transcript-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.transcript-head {
  padding: 14px 22px 12px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.transcript-head-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transcript-head-meta {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

.panel-empty-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 28px;
  text-align: center;
  color: var(--ink-mute);
}
.panel-empty-thread svg { width: 22px; height: 22px; color: var(--ink-faint); }
.panel-empty-thread-title { font-size: 13px; color: var(--ink-soft); }
.panel-empty-thread-sub  { font-size: 12px; }

/* Transcript body */
.transcript {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.transcript::-webkit-scrollbar { width: 6px; }
.transcript::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 3px; }
.transcript::-webkit-scrollbar-track { background: transparent; }

/* User message */
.msg-user {
  align-self: flex-end;
  max-width: 86%;
  background: var(--bg-3);
  color: var(--ink);
  padding: 11px 14px;
  border-radius: var(--r-md);
  border-bottom-right-radius: 3px;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.msg-user-attachments {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-soft);
  background: var(--bg);
}
.attach-chip svg { width: 10px; height: 10px; color: var(--ink-mute); }

/* Synth message */
.msg-synth {
  display: flex;
  gap: 12px;
  position: relative;
}
.msg-synth-sigil {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 5px;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  margin-top: 1px;
}
.msg-synth-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.msg-synth-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1px;
}
.msg-synth-autonomy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.msg-synth-autonomy-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-soft);
}
.msg-synth-autonomy.review .msg-synth-autonomy-dot { background: var(--ink-faint); }
.msg-synth-time { color: var(--ink-mute); letter-spacing: 0.04em; text-transform: none; font-variant-numeric: tabular-nums; }

.msg-synth p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.msg-synth p strong { font-weight: 500; }
.msg-synth p code  {
  background: var(--bg-3);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11.5px;
}
.msg-synth ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid var(--rule-2);
  padding-left: 14px;
}
.msg-synth li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.msg-synth li strong {
  color: var(--ink);
  font-weight: 500;
  margin-right: 6px;
}

.transcript-empty {
  text-align: center;
  color: var(--ink-mute);
  padding: 40px 0;
  font-size: 12.5px;
}

/* ── Top-bar link ──────────────────────────────────── */
.tb-link {
  font-size: 12px;
  color: var(--ink-mute);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--r-sm);
}
.tb-link:hover {
  color: var(--ink);
  background: var(--bg-3);
}

/* ── Org Memory panel ──────────────────────────────── */
.org-memory-panel {
  padding: 28px;
  max-width: 960px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--ink);
}
.om-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.om-back {
  font-size: 12px;
  color: var(--ink-mute);
  text-decoration: none;
}
.om-back:hover { color: var(--ink); }
.om-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.om-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}
.om-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-mute);
  font: inherit;
  padding: 8px 14px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.om-tabs button:hover { color: var(--ink); }
.om-tabs button.active {
  font-weight: 600;
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.om-loading,
.om-empty,
.om-error {
  padding: 32px 0;
  text-align: center;
  color: var(--ink-mute);
  font-size: 12.5px;
}
.om-error { color: var(--warn); }
.om-retry,
.om-card-head .om-action {
  margin-left: 8px;
}
.om-retry {
  appearance: none;
  border: 1px solid var(--rule-2);
  background: var(--bg-2);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
}
.om-proposals {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.om-card {
  border: 1px solid var(--rule);
  background: var(--bg);
  padding: 16px;
  border-radius: var(--r-lg);
}
.om-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
}
.om-badge {
  background: var(--bg-3);
  color: var(--ink-soft);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.om-action {
  font-size: 11px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}
.om-sources {
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.om-body {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 400px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  margin: 0;
}
.om-edit {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-mono);
  font-size: 11.5px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  padding: 12px;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
}
.om-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.om-actions button {
  appearance: none;
  border: 1px solid var(--rule-2);
  background: var(--bg-2);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
}
.om-actions button:hover { background: var(--bg-3); }
.om-actions .primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.om-actions .primary:hover { opacity: 0.88; }
.om-actions .danger { color: var(--warn); }
.om-browse {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.om-filter {
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--rule-2);
  background: var(--bg-2);
  border-radius: var(--r-md);
  font: inherit;
  font-size: 12.5px;
  padding: 8px 10px;
  color: var(--ink);
}
.om-filter:focus { border-color: var(--rule-3); outline: none; }
.om-entries {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.om-entries li {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  border-bottom: 1px solid var(--rule);
}
.om-entries li:last-child { border-bottom: 0; }
.om-audit {
  padding: 24px 0;
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.6;
}
.om-audit code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--bg-2);
  padding: 1px 5px;
  border-radius: var(--r-sm);
}


