:root {
  --bg: #0b1020;
  --panel: #151b30;
  --panel-2: #1c2440;
  --text: #e6e9f2;
  --muted: #8b93ad;
  --border: #283155;
  --live: #2ecc71;
  --offline: #e74c3c;
  --pending: #7f8aa3;
  --error: #f39c12;
  --warning: #f1c40f;
  --completed: #5a6072; /* muted/desaturated gray — finished/archived */
  --accent: #4d8dff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body { display: flex; min-height: 100vh; }
.app-main { flex: 1 1 auto; min-width: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Left nav sidebar */
.sidebar {
  flex: 0 0 auto; width: 220px; align-self: stretch;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--panel); border-right: 1px solid var(--border);
  transition: width 0.15s ease; overflow: hidden;
}
.sidebar.collapsed { width: 60px; }
.sidebar .side-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 12px; border-bottom: 1px solid var(--border); min-height: 61px;
}
.sidebar .side-brand {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  color: var(--text); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.sidebar .side-brand:hover { text-decoration: none; }
.sidebar .side-logo { height: 26px; width: auto; display: block; flex-shrink: 0; }
.sidebar.collapsed .side-title { display: none; }
.sidebar .side-toggle {
  flex-shrink: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer;
}
.sidebar .side-toggle:hover { border-color: var(--accent); }
.sidebar.collapsed .side-head { justify-content: center; padding: 14px 0; }
.sidebar.collapsed .side-brand { display: none; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px;
  border-radius: 8px; color: var(--text); font-size: 14px; white-space: nowrap;
}
.sidebar nav a:hover { background: var(--panel-2); text-decoration: none; }
.sidebar nav a.active { background: var(--accent); color: #fff; }
.sidebar nav a svg { flex-shrink: 0; }
.sidebar.collapsed nav a { justify-content: center; padding: 9px; }
.sidebar.collapsed nav a .label { display: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }

header.topbar {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--panel);
}
.topbar-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar h1 { font-size: 18px; margin: 0; }
.topbar .meta { color: var(--muted); font-size: 13px; }
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px;
}
.breadcrumbs .crumb { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }
.breadcrumbs .sep { color: var(--border); }
.breadcrumbs [aria-current="page"] { color: var(--text); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo { height: 30px; width: auto; display: block; }
/* Contextual cross-page links on the right of the topbar (report ⇄ site ⇄ config). */
.page-links { display: flex; align-items: center; gap: 14px; font-size: 13px; white-space: nowrap; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.filters button {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer;
}
.filters button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters select {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; font-size: 13px;
}

.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.campaign-group { margin-top: 20px; }
.campaign-group:first-of-type { margin-top: 0; }
.campaign-group-head {
  font-size: 15px; font-weight: 600; margin: 0 0 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; gap: 8px;
}
.campaign-group-head .count {
  color: var(--muted); font-size: 12px; font-weight: 500;
}
.tv .campaign-group-head { font-size: 18px; margin: 0 0 10px; padding-bottom: 6px; flex: none; }
.tv .campaign-group-head .count { font-size: 14px; }

.card {
  background: var(--panel); border: 1px solid var(--border); border-left-width: 4px;
  border-radius: 12px; padding: 14px; display: block;
}
.card.live { border-left-color: var(--live); }
.card.offline { border-left-color: var(--offline); }
.card.pending { border-left-color: var(--pending); }
.card.error { border-left-color: var(--error); }
.card.warning { border-left-color: var(--warning); }
.card.completed { border-left-color: var(--completed); opacity: 0.7; filter: grayscale(0.4); }
.card .row { display: flex; justify-content: space-between; align-items: baseline; }
.card .site { font-weight: 600; font-size: 15px; }
.card .campaign { color: var(--muted); font-size: 12px; }
.card .location { color: var(--muted); font-size: 12px; margin-top: 2px; }
.card .metric { font-size: 22px; font-weight: 700; margin-top: 8px; }
.card .metric small { font-size: 12px; color: var(--muted); font-weight: 400; }

/* Headline metric: trailing 6h / 24h windows + all-time total. */
.metric .metric-windows { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.metric .metric-windows .win small { margin-left: 2px; font-size: 11px; color: var(--muted); font-weight: 400; }
.metric .metric-name { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); font-weight: 400; }
.card .reason { font-size: 12px; color: var(--muted); margin-top: 6px; }
.reason-link { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.reason-link:hover { color: var(--text); }

.badge {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px;
}
.badge.live { background: rgba(46,204,113,0.15); color: var(--live); }
.badge.offline { background: rgba(231,76,60,0.15); color: var(--offline); }
.badge.pending { background: rgba(127,138,163,0.15); color: var(--pending); }
.badge.error { background: rgba(243,156,18,0.15); color: var(--error); }
.badge.warning { background: rgba(241,196,15,0.15); color: var(--warning); }
.badge.completed { background: rgba(90,96,114,0.18); color: var(--completed); }

/* Condition glyphs (over-temp, disk, throttle, failed unit, log error). */
.glyphs { display: inline-flex; gap: 4px; vertical-align: middle; }
.glyph { font-size: 13px; line-height: 1; cursor: default; }
.glyphs.tv .glyph { font-size: 20px; }

.summary { display: flex; gap: 16px; color: var(--muted); font-size: 13px; margin: 8px 0 4px; }
.summary b { color: var(--text); }

.conn { font-size: 12px; }
.conn.ok { color: var(--live); }
.conn.off { color: var(--offline); }

.notify {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; cursor: pointer;
}
.notify:hover { border-color: var(--accent); }
.notify:disabled { opacity: 0.6; cursor: default; }
.notify.on { color: var(--live); border-color: var(--live); }
span.notify.denied { color: var(--muted); cursor: default; }

/* Admin config editor */
.admin .editor {
  width: 100%; min-height: 60vh; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px; line-height: 1.5; tab-size: 2;
  background: var(--panel); color: var(--text); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px; resize: vertical; white-space: pre;
}
.admin .editor:focus { outline: none; border-color: var(--accent); }
.admin .editbar { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.admin .editbar button {
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 8px 18px; font-size: 14px; cursor: pointer;
}
.admin .editbar button:disabled { opacity: 0.5; cursor: default; }
.admin .msg { font-size: 13px; }
.admin .msg.ok { color: var(--live); }
.admin .msg.err { color: var(--offline); white-space: pre-wrap; font-family: ui-monospace, monospace; }
.admin .hint { color: var(--muted); font-size: 13px; margin: 6px 0 14px; }

/* Reports: highlight non-zero headline / error / warning cells */
td.val-good { color: var(--live); }
td.val-error { color: var(--offline); }
td.val-warn { color: var(--error); }

/* Ingest hooks: raw vs patched vs suppressed event tags */
.tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  font-size: 11px; vertical-align: 1px; white-space: nowrap;
}
.tag.hook { background: rgba(77,141,255,0.15); color: var(--accent); }
.tag.suppressed { background: rgba(127,138,163,0.18); color: var(--muted); }
tr.suppressed td { opacity: 0.55; }

/* Admin editor tabs + CodeMirror host */
.admin .tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.admin .tabs button {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 14px; font-size: 13px; cursor: pointer;
}
.admin .tabs button.active { border-color: var(--accent); color: var(--accent); }
.admin .cm-host { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.admin .cm-host .cm-editor { background: var(--panel); }

/* Ingest hook editor */
.hookedit h4 { margin: 18px 0 8px; }
.hookedit .hookbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hookedit select, .hookedit input[type="text"], .hookedit .hooksample {
  background: var(--panel); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; font-size: 13px;
}
.hookedit .hooksample {
  width: 100%; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  line-height: 1.5; white-space: pre; resize: vertical;
}
.hookedit .hookwindow { display: flex; gap: 16px; flex-wrap: wrap; }
.hookedit .hookwindow input { width: 300px; }
.hookedit .hookrule { display: flex; gap: 8px; margin-bottom: 8px; }
.hookedit .hookrule input { flex: 1; }
.hookedit button {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 14px; font-size: 13px; cursor: pointer;
}
.hookedit button:hover { border-color: var(--accent); }
.hookedit button.danger:hover { border-color: var(--offline); color: var(--offline); }
.hookedit .editbar button { background: var(--accent); color: #fff; border: 0; }
.hookedit .hookresult .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.hookedit .supp-col { text-decoration: line-through; color: var(--muted); }

/* Admin "New Site" picker */
.newsite { position: relative; }
.newsite-btn {
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 8px 16px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.newsite-btn:disabled { opacity: 0.5; cursor: default; }
.newsite-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  width: min(440px, 90vw); background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; padding: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.newsite-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 10px; font-size: 14px;
}
.newsite-close {
  background: none; border: 0; color: var(--muted); font-size: 20px;
  line-height: 1; cursor: pointer; padding: 0 4px;
}
.newsite-close:hover { color: var(--text); }
.newsite-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.newsite-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
}
.newsite-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.newsite-info .site { font-weight: 600; font-size: 14px; }
.newsite-info .meta { font-size: 12px; }
.newsite-create {
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 6px 12px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.newsite-create:disabled { opacity: 0.5; cursor: default; }
.newsite .msg.err {
  color: var(--offline); font-size: 13px; white-space: pre-wrap;
  font-family: ui-monospace, monospace; margin: 8px 0 0;
}

/* TV view */
.tv {
  padding: 20px 24px; height: 100vh; box-sizing: border-box;
  display: flex; flex-direction: column; overflow: hidden;
}
.tv .tvhead { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; flex: none; }
.tv .tvhead .logo { height: 44px; width: auto; }
.tv h1 { font-size: 28px; margin: 0; }
/* Board of campaign rectangles (columns set inline by TvGrid); each campaign
   spans a cols×rows rectangle, one cell per site, and dense flow back-fills
   gaps so small campaigns share a row. The board fills the rest of the screen
   and rows share its height equally, so everything stays on one screen. */
.tv .board {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: minmax(0, 1fr);
  gap: 16px;
  flex: 1;
  min-height: 0;
}
/* Shown in place of the board when nothing is live (all campaigns concluded). */
.tv .tv-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--muted);
  text-align: center;
}
.tv .campaign-block {
  display: flex; flex-direction: column;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 18px; padding: 12px 14px 14px;
  min-width: 0; min-height: 0;
}
.tv .block-grid {
  display: grid; gap: 12px; flex: 1;
  grid-auto-rows: minmax(0, 1fr);
  min-width: 0; min-height: 0;
}
.tv .tile {
  border-radius: 14px; padding: 12px 16px; border: 2px solid var(--border);
  background: var(--panel); min-height: 0; overflow: hidden;
}
.tv .tile.live { background: rgba(46,204,113,0.10); border-color: var(--live); }
.tv .tile.offline { background: rgba(231,76,60,0.12); border-color: var(--offline); }
.tv .tile.pending { background: rgba(127,138,163,0.08); border-color: var(--pending); }
.tv .tile.error { background: rgba(243,156,18,0.12); border-color: var(--error); }
.tv .tile.warning { background: rgba(241,196,15,0.12); border-color: var(--warning); }
.tv .tile.completed { background: rgba(90,96,114,0.10); border-color: var(--completed); opacity: 0.7; }
.tv .tile .site { font-size: 28px; font-weight: 800; }
.tv .tile .campaign { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv .tile .state { font-size: 19px; font-weight: 700; margin-top: 8px; }
.tv .tile .metric { font-size: 17px; margin-top: 6px; }
/* For a signed-in viewer the logo and tiles are links; keep the board's look. */
.tv .tvhead a { display: inline-flex; }
.tv a.tile { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.tv a.tile:hover { border-color: var(--accent); }

.chart { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.chart-title { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.chart-title .legend { font-size: 11px; font-weight: 400; }
.chart-title .legend span { margin-left: 10px; }
.chart-title .chart-controls { display: flex; align-items: baseline; gap: 12px; }
.chart-reset { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 6px; font-size: 11px; padding: 2px 8px; cursor: pointer; }
.chart-reset:hover { border-color: var(--accent); }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg .grid { stroke: var(--border); stroke-width: 1; }
.chart-svg .axis { fill: var(--muted); font-size: 9px; }
.chart-svg .chart-crosshair { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.chart-svg .chart-sel { fill: rgba(77,141,255,0.18); stroke: var(--accent); stroke-width: 1; }

/* Interactive overlay: the SVG and an HTML layer share this stretchy box. */
.chart-plot { position: relative; margin-top: 8px; cursor: crosshair; touch-action: none; }
.chart-overlay { position: absolute; inset: 0; pointer-events: none; }
.chart-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--panel); transform: translate(-50%, -50%); }
.chart-tip { position: absolute; top: 6px; transform: translateX(8px); background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-size: 11px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
.chart-tip.flip { transform: translateX(calc(-100% - 8px)); }
.chart-tip-t { color: var(--muted); margin-bottom: 4px; }
.chart-tip-row { display: flex; justify-content: space-between; gap: 14px; }
.chart-tip-key { font-weight: 400; }
.chart-tip-val { font-variant-numeric: tabular-nums; font-weight: 600; }

.detail dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; }
.detail dt { color: var(--muted); }
table { border-collapse: collapse; width: 100%; margin-top: 12px; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--border); font-size: 13px; }
th { color: var(--muted); font-weight: 600; }

/* Log review workspace */
.logview { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.logview .logbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.logview .logbar form { display: contents; }
.logview .logbar .spacer { flex: 1; }
.logview .logbar input[type="search"] {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; font-size: 13px; min-width: 240px;
}
.logview .logbar input[type="search"]:focus { outline: none; border-color: var(--accent); }
.logview .logbar button {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.logview .logbar button:hover:not(:disabled) { border-color: var(--accent); }
.logview .logbar button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.logview .logbar button:disabled { opacity: 0.5; cursor: default; }
.logview .pos { color: var(--muted); font-size: 12px; }
.logview .logbar a { font-size: 13px; }
.logerror {
  color: var(--offline); font-size: 13px; font-family: ui-monospace, monospace;
  white-space: pre-wrap;
}
.logbox {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  height: calc(100vh - 290px); min-height: 320px; overflow: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px;
  line-height: 1.45; padding: 8px 0; overscroll-behavior: contain;
}
.logline { padding: 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.logline:hover { background: var(--panel-2); }
.logline.err { color: var(--offline); }
.logline.warn { color: var(--error); }
.logline.hl { background: rgba(77,141,255,0.18); box-shadow: inset 2px 0 0 var(--accent); }
.logline mark { background: rgba(243,156,18,0.4); color: inherit; border-radius: 2px; }
.logmatch { cursor: pointer; }
.logmatch .moff { color: var(--muted); margin-right: 10px; user-select: none; }
.loghint { color: var(--muted); font-size: 12px; padding: 6px 12px; }

.login { min-height: 90vh; display: flex; align-items: center; justify-content: center; }
.login .box { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 36px; text-align: center; }
.login .logo { height: 52px; width: auto; margin-bottom: 16px; }
.login button { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 20px; font-size: 15px; cursor: pointer; }

/* Admin sections (users / TV access / backups) */
.admin .tabs a {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 14px; font-size: 13px; text-decoration: none;
}
.admin .tabs a:hover { border-color: var(--accent); }
.admin .tabs a.active { border-color: var(--accent); color: var(--accent); }
.admin-nav { margin: 4px 0 16px; }

.admin .invite-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 16px; }
.admin .invite-form input, .admin .invite-form select, .admin table select {
  background: var(--panel); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; font-size: 13px;
}
.admin .invite-form input { min-width: 240px; }
.admin .invite-form button[type="submit"] {
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 7px 16px; font-size: 13px; cursor: pointer;
}
.admin .invite-form button[type="submit"]:disabled { opacity: 0.5; cursor: default; }
.admin .invite-form .meta { font-size: 12px; flex-basis: 100%; }

.admin table button, .admin .backup-preview-head button {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 4px 10px; font-size: 12px; cursor: pointer;
}
.admin table button:hover, .admin .backup-preview-head button:hover { border-color: var(--accent); }
.admin table button:disabled { opacity: 0.5; cursor: default; }
.admin table button.danger:hover { border-color: var(--offline); color: var(--offline); }
.admin table button.linkish { background: none; border: 0; color: var(--accent); padding: 0; font-size: 13px; }
.admin table button.linkish:hover { text-decoration: underline; }

.admin tr.revoked td { opacity: 0.55; }
.admin .token-cell code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px;
  word-break: break-all;
}
.admin .token-actions { display: inline-flex; gap: 6px; margin-left: 8px; }

.admin .grants-row td { background: var(--panel); }
.admin .grants-panel { padding: 6px 2px 10px; }
.admin .grants-list { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0; }
.admin .grants-list label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.admin .grants-panel .editbar { margin: 6px 0 0; }

.admin .backup-actions { display: flex; gap: 6px; }
.admin .backup-preview-head { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; }
.admin .backup-preview {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px;
  line-height: 1.5; max-height: 50vh; overflow: auto; white-space: pre;
}
