/* Design tokens. Light is the default (operator preference), palette inspired
   by MatDash; the spec-12 dark ops-room lives under [data-theme="dark"]. */
:root {
  color-scheme: light;
  --bg: #F4F7FB;
  --panel: #FFFFFF;
  --ink: #2A3547;
  --ink-dim: #5A6A85;
  --ok: #0E9F6E;
  --warn: #C97E06;
  --dead: #E5484D;
  --accent: #5D87FF;
  --border: #E5EAEF;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(42, 53, 71, 0.08);
  --hover: rgba(93, 135, 255, 0.06);
  --sidebar-w: 240px;
  /* Chart series colors — validated (dataviz six checks) per surface */
  --chart-1: #5D87FF;
  --chart-2: #0E9F6E;
  --font-display: "Plus Jakarta Sans", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html[data-sidebar="collapsed"] { --sidebar-w: 68px; }

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10141A;
  --panel: #171D26;
  --ink: #E8ECF1;
  --ink-dim: #8B96A5;
  --ok: #3FD68F;
  --warn: #F5B83D;
  --dead: #FF5D5D;
  --accent: #5DA9FF;
  --border: #232B36;
  --shadow: none;
  --hover: rgba(93, 169, 255, 0.06);
  --chart-1: #478CEF;
  --chart-2: #25A96C;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.45;
}

/* Numbers are the interface: every metric is mono with tabular figures */
.num, td.num, .stat-value, .sparkline-label {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* App shell: fixed sidebar + main column (MatDash layout) */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  padding: 16px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.18s ease-out;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  padding: 4px 10px 16px;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); font-size: 20px; }
.brand-logo { border-radius: 50%; flex-shrink: 0; }
.login-logo { display: block; margin: 0 auto 10px; border-radius: 50%; }
.nav-section {
  display: block;
  color: var(--ink-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 10px 6px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  padding: 9px 10px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 2px;
}
.sidebar nav a svg { width: 18px; height: 18px; color: var(--ink-dim); }
.sidebar nav a:hover { background: var(--hover); text-decoration: none; }
.sidebar nav a.active { background: var(--accent); color: #fff; }
.sidebar nav a.active svg { color: #fff; }
.sidebar-foot { margin-top: auto; padding: 10px; font-size: 11.5px; }

/* Collapsed sidebar: icon rail */
html[data-sidebar="collapsed"] .sidebar { padding: 16px 8px; }
html[data-sidebar="collapsed"] .brand { justify-content: center; padding-left: 0; padding-right: 0; }
html[data-sidebar="collapsed"] .brand-text,
html[data-sidebar="collapsed"] .nav-label,
html[data-sidebar="collapsed"] .nav-section,
html[data-sidebar="collapsed"] .sidebar-foot { display: none; }
html[data-sidebar="collapsed"] .sidebar nav a { justify-content: center; padding: 11px 0; }

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left: var(--sidebar-w);
  transition: margin-left 0.18s ease-out;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.topbar-title { font-weight: 600; font-size: 15px; }
.topbar-spacer { flex: 1; }
.icon-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  min-width: 38px;
  min-height: 38px;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle { flex-shrink: 0; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 6px 3px 3px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}
.user-name { font-size: 13.5px; font-weight: 600; }
.logout-form { margin: 0; display: inline-flex; }
.logout-form .icon-btn { border: none; min-width: 32px; min-height: 32px; color: var(--ink-dim); }
.logout-form .icon-btn:hover { color: var(--dead); }

.anon { min-height: 100vh; display: flex; flex-direction: column; }

@media (max-width: 900px) {
  /* Off-canvas drawer on small screens; collapse state doesn't apply */
  html[data-sidebar="collapsed"] { --sidebar-w: 240px; }
  html[data-sidebar="collapsed"] .brand-text,
  html[data-sidebar="collapsed"] .nav-label,
  html[data-sidebar="collapsed"] .nav-section,
  html[data-sidebar="collapsed"] .sidebar-foot { display: revert; }
  html[data-sidebar="collapsed"] .sidebar nav a { justify-content: flex-start; padding: 9px 10px; }
  .sidebar {
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.2s ease-out;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
  }
  .app.nav-open .sidebar { transform: none; }
  .main { margin-left: 0; }
  .user-name { display: none; }
}

.pulse-bar {
  height: 2px;
  background: var(--accent);
  opacity: 0.7;
  transform-origin: left;
}
.pulse-bar[data-health="Degraded"] { background: var(--warn); }
.pulse-bar[data-health="Stalled"] { background: var(--dead); }

@media (prefers-reduced-motion: no-preference) {
  .pulse-bar[data-health="Healthy"] { animation: breathe 2.4s ease-in-out infinite; }
  .pulse-bar[data-health="Degraded"] { animation: flick 1s steps(2) infinite; }
  .pulse-bar[data-health="Stalled"] { animation: flick 0.5s steps(2) infinite; }
}
@keyframes breathe { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes flick { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* Layout: 12-col fluid filling the main column, density over whitespace */
.content {
  width: 100%;
  padding: 16px 20px 48px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  align-content: start;
}

/* The anonymous (login) shell keeps a centered column */
.anon .content { max-width: 1280px; margin: 0 auto; }
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
@media (max-width: 900px) {
  .span-8, .span-6, .span-4 { grid-column: span 12; }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.panel h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  color: var(--ink-dim);
  font-weight: 400;
  font-size: 12px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr.rowlink { cursor: pointer; }
tr.rowlink:hover td { background: var(--hover); }
td.num { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.badge-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.badge-dead { color: var(--dead); border-color: color-mix(in srgb, var(--dead) 40%, transparent); }
.badge-dim { color: var(--ink-dim); }

tr.dead td { color: var(--ink-dim); }
tr.dead .badge { opacity: 0.7; }

/* Stat strip */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.stat {
  flex: 1 1 120px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow);
}
.stat { display: flex; align-items: center; gap: 12px; }
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.stat-icon.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.stat-icon.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.stat-icon.dead { background: color-mix(in srgb, var(--dead) 14%, transparent); color: var(--dead); }
.stat-icon svg { width: 20px; height: 20px; }
.stat-label { color: var(--ink-dim); font-size: 12px; }
.stat-value { font-size: 22px; margin-top: 2px; font-weight: 600; }

/* Forms */
label { color: var(--ink-dim); font-size: 13px; }
input[type="text"], input[type="password"], input[type="number"], select {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  min-height: 40px;
  max-width: 100%;
}
button {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  min-height: 40px;
  font-family: var(--font-display);
  font-size: 14px;
  cursor: pointer;
}
button:hover { border-color: var(--accent); }
button.primary { border-color: var(--accent); color: var(--accent); }

.field-error { color: var(--dead); font-size: 13px; margin-top: 4px; }
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 16px;
  z-index: 10;
}

/* Controls page rows */
.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.control-row:last-child { border-bottom: none; }
.control-row .name { min-width: 130px; }
.control-row form { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.control-row input[type="number"], .control-row input[type="text"] { width: 130px; }

/* Login */
.login-wrap {
  grid-column: span 12;
  max-width: 360px;
  margin: 10vh auto 0;
  width: 100%;
}
.login-wrap form { display: flex; flex-direction: column; gap: 10px; }

/* Sparkline (line + soft area fill + hover readout) */
.spark-wrap { position: relative; }
.sparkline { width: 100%; height: 72px; display: block; }
.sparkline path.line { fill: none; stroke: var(--chart-1); stroke-width: 1.5; }
.sparkline path.area { fill: color-mix(in srgb, var(--chart-1) 14%, transparent); stroke: none; }
.sparkline.liq path.line { stroke: var(--chart-2); }
.sparkline.liq path.area { fill: color-mix(in srgb, var(--chart-2) 14%, transparent); }
.sparkline line.cursor { stroke: var(--ink-dim); stroke-width: 0.4; }
.sparkline circle.dot { fill: var(--panel); stroke: var(--chart-1); stroke-width: 1.5; }
.sparkline.liq circle.dot { stroke: var(--chart-2); }
.chart-tip {
  position: absolute;
  pointer-events: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: nowrap;
  transform: translate(-50%, -110%);
  z-index: 5;
}
.chart-tip .tip-label { color: var(--ink-dim); margin-right: 6px; }

/* Tab panels host their own 12-col grid (they live inside one .content cell) */
.content-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.detail-head h2 { text-transform: none; letter-spacing: 0; font-size: 18px; color: var(--ink); }
.mint-line { font-size: 12px; overflow-wrap: anywhere; }
.detail-badges { display: inline-flex; gap: 6px; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 12px; flex-wrap: wrap; }
.tabs [role="tab"] {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--ink-dim);
  padding: 9px 14px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .tab-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  margin-left: 5px;
}
[role="tabpanel"][hidden] { display: none; }

/* DexScreener embed */
.embed-wrap { position: relative; width: 100%; padding-bottom: 72%; }
.embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}
@media (min-width: 1400px) { .embed-wrap { padding-bottom: 58%; } }

/* Token detail: live price hero + history grid */
.price-hero { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-hero .big {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  font-weight: 600;
}
.price-hero .delta { font-family: var(--font-mono); font-size: 13px; }
.price-hero .delta.up { color: var(--ok); }
.price-hero .delta.down { color: var(--dead); }
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: breathe 2.4s ease-in-out infinite; }
}
.grid-pager { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.grid-pager button[disabled] { opacity: 0.4; cursor: default; }

/* Settings */
.settings-form { display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.settings-form label { display: flex; flex-direction: column; gap: 4px; }

/* Strategy lab */
.param-grid { display: flex; flex-direction: column; gap: 8px; }
.param-grid label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.param-grid label.check-row { flex-direction: row; align-items: center; gap: 8px; min-height: 32px; }
.param-grid textarea {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.num.pos, .stat-value.pos { color: var(--ok); }
.num.neg, .stat-value.neg { color: var(--dead); }
.check-line { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13.5px; }

/* Bar chart (server-rendered SVG) */
.barchart { width: 100%; height: auto; max-width: 780px; }
.barchart .axis { stroke: var(--border); stroke-width: 1; }
.barchart .bar.pos { fill: var(--chart-1); }
.barchart .bar.neg { fill: var(--dead); opacity: 0.85; }
.barchart .bar-label { fill: var(--ink); font-size: 12.5px; font-family: var(--font-display); }
.barchart .bar-value { fill: var(--ink-dim); font-size: 11.5px; font-family: var(--font-mono); }

/* Insights */
.sub-h {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 14px 0 6px;
}
.suggest-list { list-style: none; margin: 0; padding: 0; }
.suggest-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.suggest-list li:last-child { border-bottom: none; }
a.badge:hover { text-decoration: none; border-color: var(--accent); }

/* Login */
.demo-hint {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--ink-dim);
  font-family: var(--font-mono);
}

/* Error feed */
.error-feed { font-family: var(--font-mono); font-size: 12.5px; }
.error-feed .ts { color: var(--ink-dim); margin-right: 8px; white-space: nowrap; }
.error-feed .loop { color: var(--warn); margin-right: 8px; }
.error-feed li { padding: 4px 0; border-bottom: 1px solid var(--border); list-style: none; overflow-wrap: anywhere; }
.error-feed ul { margin: 0; padding: 0; }
.muted { color: var(--ink-dim); }

/* Detail page facts */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 14px; }
.facts dt { color: var(--ink-dim); }
.facts dd { margin: 0; font-family: var(--font-mono); overflow-wrap: anywhere; }

.pager { display: flex; gap: 8px; align-items: center; margin-top: 10px; }

/* Filter bar + bulk actions */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-bottom: 10px;
}
.filter-bar .check { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.filter-actions { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
.bulk-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 0 10px;
  flex-wrap: wrap;
}
.bulk-bar[hidden] { display: none; }
th.sel, td.sel { width: 28px; }
th.fav, td.fav { width: 34px; }
th a { color: var(--ink-dim); }
th a:hover { color: var(--ink); text-decoration: none; }

button.danger { border-color: color-mix(in srgb, var(--dead) 50%, transparent); color: var(--dead); }
.btn-link {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

/* Favourite star */
.star {
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 16px;
  min-height: 32px;
  min-width: 32px;
  padding: 0;
  cursor: pointer;
}
.star.on { color: var(--warn); }
.star.big { font-size: 22px; min-height: 40px; min-width: 40px; }

/* Token icons */
.symcell { white-space: nowrap; }
.token-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  flex: none;
}
.token-icon.fallback {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-dim);
}
.token-icon.broken { visibility: hidden; }
.token-icon.lg { width: 40px; height: 40px; }
.token-icon.lg.fallback { font-size: 18px; }

/* Tag chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  margin: 1px 2px;
  white-space: nowrap;
}
.chip-x {
  background: none;
  border: none;
  color: var(--ink-dim);
  min-height: auto;
  padding: 0 2px;
  font-size: 13px;
  cursor: pointer;
}
.chip-x:hover { color: var(--dead); }

/* Modals (native dialog) */
.modal {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  max-width: 440px;
  width: calc(100vw - 40px);
}
.modal::backdrop { background: rgba(8, 10, 14, 0.7); }
.modal h2 { margin: 0 0 8px; font-size: 15px; }
.modal textarea { width: 100%; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* Toasts */
.toasts {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}
.toasts .toast { position: static; }
.toast.warn { border-color: var(--warn); }
.toast.error { border-color: var(--dead); }

/* Breadcrumbs */
.breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--ink-dim);
}
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }

/* Manage panel */
.manage label { display: flex; flex-direction: column; gap: 4px; }
.manage textarea {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.manage .actions { gap: 8px; }

/* API docs */
.api-docs .endpoint {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.api-docs .method {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin-right: 8px;
}
.api-docs .method.get { color: var(--ok); }
.api-docs .method.post { color: var(--accent); }
.api-docs .method.put { color: var(--warn); }
.api-docs .method.delete { color: var(--dead); }
.api-docs .path { font-family: var(--font-mono); font-size: 13px; }
.api-docs .desc { color: var(--ink-dim); font-size: 13px; margin: 4px 0 0 0; }

@media (max-width: 400px) {
  .content { padding: 12px 10px 40px; }
  .masthead-inner { padding: 10px 12px; gap: 10px; }
}
