:root {
  color-scheme: dark;
  --bg: #050708;
  --surface: #0a0e10;
  --surface-raised: #0d1316;
  --line: #263238;
  --line-strong: #3a4d54;
  --text: #d6e2e5;
  --muted: #74878d;
  --cyan: #55d7e5;
  --green: #67e899;
  --amber: #f0bd62;
  --red: #ff7676;
  --violet: #b99cff;
  --header-height: 46px;
  --toolbar-height: 43px;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.45 var(--mono);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
.button {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #10171a;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  text-decoration: none;
}

button:hover,
.button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  text-decoration: none;
}

button:focus-visible,
.button:focus-visible,
input:focus-visible,
.window-titlebar:focus-visible,
tr[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: .45;
}

input {
  width: 100%;
  min-height: 33px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #06090a;
  padding: 6px 8px;
}

.site-header {
  position: relative;
  z-index: 10000;
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  gap: 17px;
  border-bottom: 1px solid var(--line-strong);
  background: #070a0c;
  padding: 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .03em;
}

.brand:hover {
  color: var(--cyan);
  text-decoration: none;
}

.brand-prompt {
  color: var(--green);
}

.site-nav {
  display: flex;
  gap: 14px;
  font-size: 12px;
  text-transform: uppercase;
}

.header-bankroll {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.header-bankroll label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.header-bankroll input {
  width: 88px;
  min-height: 28px;
  padding: 3px 6px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.header-bankroll button {
  min-height: 28px;
  padding: 3px 7px;
  font-size: 10px;
}

.header-bankroll output {
  max-width: 150px;
  color: var(--muted);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-bankroll output.has-result {
  color: var(--green);
}

.header-bankroll output.has-error {
  color: var(--red);
}

.header-spacer {
  flex: 1;
}

.account-id {
  max-width: 180px;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-form {
  margin: 0;
}

.auth-switch {
  margin-top: 16px;
}

.button-quiet {
  border-color: var(--line);
  background: transparent;
}

.connection-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.connection-state[data-state="online"] {
  color: var(--green);
}

.connection-state[data-state="online"] .status-dot {
  background: var(--green);
}

.connection-state[data-state="stale"],
.connection-state[data-state="offline"] {
  color: var(--red);
}

.connection-state[data-state="stale"] .status-dot,
.connection-state[data-state="offline"] .status-dot {
  background: var(--red);
}

.shell-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 48px;
}

.workspace-page {
  overflow: hidden;
}

.workspace-main {
  display: flex;
  height: calc(100vh - var(--header-height));
  min-height: 620px;
  flex-direction: column;
  overflow: hidden;
}

.workspace-toolbar {
  position: relative;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--toolbar-height);
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 5px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  flex: 0 0 auto;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.toolbar-label,
.toolbar-metric {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}

.workspace-toolbar button {
  min-height: 27px;
  padding: 3px 8px;
  font-size: 11px;
}

.terminal-workspace {
  position: relative;
  height: auto;
  min-height: 575px;
  flex: 1 1 auto;
  overflow: hidden;
  background: var(--bg);
}

.terminal-window {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-top-color: #52717b;
  background: var(--surface);
  box-shadow: 0 10px 25px rgb(0 0 0 / 36%);
}

.terminal-window.is-focused {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgb(85 215 229 / 17%), 0 14px 32px rgb(0 0 0 / 48%);
}

.terminal-window.is-closed {
  display: none;
}

.terminal-window.is-minimized {
  height: 31px !important;
  min-height: 31px;
}

.terminal-window.is-minimized .window-body,
.terminal-window.is-minimized .window-resizer {
  display: none;
}

.terminal-window.is-maximized {
  inset: 6px !important;
  width: auto !important;
  height: auto !important;
  z-index: 8999 !important;
}

.panel-pregame {
  left: .5%;
  top: 1%;
  width: 49%;
  height: 48%;
}

.panel-search {
  left: 50%;
  top: 1%;
  width: 24%;
  height: 48%;
}

.panel-arbs {
  left: .5%;
  top: 50%;
  width: 29.5%;
  height: 49%;
}

.panel-futures {
  left: 74.5%;
  top: 1%;
  width: 25%;
  height: 48%;
}

.panel-chart {
  left: 30.5%;
  top: 50%;
  width: 29.5%;
  height: 49%;
  contain: size layout;
}

.panel-calculator {
  left: 60.5%;
  top: 50%;
  width: 19%;
  height: 49%;
}

.panel-middles {
  left: 80%;
  top: 50%;
  width: 19.5%;
  height: 49%;
}

.main-market-heading select {
  min-width: 0;
  height: 29px;
}

.main-game-summary {
  min-height: 30px;
}

.main-market-card {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: var(--surface);
}

.main-market-card > h3,
.main-market-heading {
  min-height: 35px;
  margin: 0;
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
}

.main-market-card > h3 {
  display: flex;
  align-items: center;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: .08em;
}

.main-market-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.main-market-heading h3 {
  margin: 0;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: .08em;
}

.main-market-heading select {
  max-width: 70%;
}

.main-market-card .table-scroll {
  min-height: 0;
  flex: 1 1 auto;
}

.inspector-main,
.inspector-props {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  background: var(--surface);
}

.inspector-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

.orderbook-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
}

.orderbook-tabs {
  display: inline-flex;
  gap: 4px;
}

.orderbook-tabs button {
  min-height: 25px;
  padding: 3px 13px;
  font-size: 11px;
  letter-spacing: .06em;
}

.orderbook-tabs button[aria-pressed="true"] {
  border-color: var(--cyan);
  background: #102027;
  color: var(--cyan);
}

.orderbook-controls select {
  width: auto;
  min-height: 26px;
  padding: 2px 6px;
  font-size: 11px;
}

.orderbook-controls [data-orderbook-collapse] {
  min-height: 25px;
  margin-left: auto;
  font-size: 10px;
}

.orderbook {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 8px;
  font-variant-numeric: tabular-nums;
  scrollbar-color: var(--line-strong) var(--surface);
  scrollbar-width: thin;
}

/* One market/line per centred ladder group (MONEYLINE, SPREAD 1.5, TOTAL 9.5 …). */
.ob-group {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
}

.ob-group-label {
  padding: 4px 7px;
  border-bottom: 1px solid var(--line);
  background: #0d1519;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

.ob-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ob-side-label {
  padding: 3px 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ob-row {
  display: grid;
  grid-template-columns: 1fr auto auto 24px 24px;
  align-items: center;
  gap: 7px;
  padding: 3px 6px;
  border-left: 2px solid transparent;
  font-size: 11px;
}

.ob-row .ob-middle[aria-pressed="true"] {
  border-color: var(--amber);
  color: var(--amber);
}

.ob-row .ob-odds {
  font-weight: 600;
  text-align: right;
}

/* Reference-only books are muted, never highlighted; only the best EXECUTABLE price is marked, by
   position + a thin accent — not the loud "pick" pane the operator asked to remove. */
.ob-row.is-ref {
  color: var(--muted);
}

.ob-row.is-best {
  border-left-color: var(--cyan);
  background: #0b1519;
}

.ob-row.is-unavailable {
  opacity: .5;
  text-decoration: line-through;
  text-decoration-color: var(--red);
}

.ob-row .ob-graph {
  min-height: 20px;
  padding: 0 6px;
  font-size: 10px;
}

.orderbook-center {
  margin: 5px 0;
  padding: 3px 6px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

/* Divider between multi-way outcome slots (soccer 1X2, etc.) — quieter than the 2-way centre. */
.orderbook-center.ob-divider {
  margin: 3px 0;
  border-top: 1px solid var(--line);
  border-bottom: none;
  color: var(--line-strong);
}

/* New odds-screen MATRIX: rows = bets, columns = books (BET | HOLD | BEST | book…). Wide, so it
   scrolls horizontally with the BET column and the header row frozen (operator). */
.odds-matrix-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-color: var(--line-strong) var(--surface);
  scrollbar-width: thin;
}

.odds-matrix {
  border-collapse: collapse;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.odds-matrix th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #090d0f;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 8px;
  text-align: right;
}

.odds-matrix th:first-child {
  text-align: left;
}

.odds-matrix td {
  padding: 3px 8px;
  text-align: right;
  border-bottom: 1px solid #172126;
}

.odds-matrix .matrix-sticky {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  text-align: left;
}

.odds-matrix th.matrix-sticky {
  z-index: 3;
}

.odds-matrix .matrix-bet {
  font-weight: 600;
  color: var(--text);
}

.odds-matrix .matrix-best {
  color: var(--cyan);
  font-weight: 600;
  cursor: pointer;
}

/* Two stacked holds per market: BETTABLE on the group's top row, reference beneath it. */
.odds-matrix .matrix-hold.is-bet-hold {
  color: var(--green);
  font-weight: 600;
}

.odds-matrix .matrix-cell {
  cursor: pointer;
}

.odds-matrix .matrix-cell.is-ref {
  color: var(--muted);
}

.odds-matrix .matrix-cell:hover {
  background: #102027;
}

.odds-matrix .matrix-cell.is-middle-selected {
  background: #28210f;
  color: var(--amber);
}

/* Kalshi/Polymarket contract-book launcher inside a price cell. */
.odds-matrix .matrix-depth {
  min-height: 15px;
  margin-left: 3px;
  padding: 0 4px;
  border-color: var(--violet);
  color: var(--violet);
  font-size: 9px;
  vertical-align: middle;
}

.odds-matrix .matrix-divider td {
  height: 3px;
  padding: 0;
  border-bottom: 2px solid var(--line-strong);
}

.ob-more {
  padding: 2px 6px;
  font-size: 9px;
}

/* Each prop line shows its best-of-each-side ladder directly (no line-level disclosure to auto-close);
   inside the tree it flows rather than becoming its own scroll region. Lines are clearly separated so
   0.5 vs 1.5 is obvious (operator). */
.prop-line {
  margin: 6px 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface-raised);
}

.prop-line-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 7px;
  border-bottom: 1px solid var(--line);
  background: #0d1519;
}

.prop-line-value {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}

.prop-line-meta {
  font-size: 10px;
}

.prop-orderbook {
  flex: none;
  overflow: visible;
  padding: 0 4px;
}

/* A prop line's book-matrix flows in the tree rather than becoming the panel scroller. */
.odds-matrix-scroll.prop-matrix {
  flex: none;
  overflow-y: hidden;
}

.prop-orderbook .orderbook-center {
  margin: 3px 0;
}

.inspector-main .main-market-card {
  flex: none;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.inspector-main .main-market-card .table-scroll {
  min-height: 0;
  max-height: none;
  flex: none;
  overflow-x: auto;
  overflow-y: visible;
}

.main-market-disclosure > [data-main-market-body] {
  position: static;
  display: block;
}

.main-market-toggle,
.prop-tree-node > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 35px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--cyan);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  list-style: none;
}

.prop-tree-node > summary::-webkit-details-marker {
  display: none;
}

.main-market-toggle::before,
.prop-tree-node > summary::before {
  content: "▸";
  width: 12px;
  color: var(--muted);
}

.main-market-toggle[aria-expanded="true"]::before,
.prop-tree-node[open] > summary::before {
  content: "▾";
  color: var(--cyan);
}

.main-market-toggle {
  width: 100%;
  border: 0;
  border-radius: 0;
  text-align: left;
}

.main-market-disclosure .main-market-heading {
  justify-content: flex-start;
  background: var(--surface);
}

.main-market-disclosure .main-market-heading select {
  width: min(260px, 100%);
  max-width: none;
}

.inspector-props {
  padding: 6px;
}

.prop-tree {
  display: grid;
  gap: 4px;
}

.prop-tree-node {
  border: 1px solid var(--line);
  background: var(--surface);
}

.prop-tree-stat,
.prop-tree-line {
  margin: 4px 6px;
}

.prop-tree-stat > summary {
  color: var(--text);
  background: #0d181d;
}

.prop-tree-line > summary {
  min-height: 29px;
  color: var(--muted);
  background: #091216;
  font-size: 10px;
  letter-spacing: .04em;
}

.prop-line-table {
  min-width: 760px;
}

.window-titlebar {
  display: flex;
  align-items: center;
  flex: 0 0 30px;
  gap: 8px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
  padding-left: 8px;
  cursor: move;
  touch-action: none;
  user-select: none;
}

.window-titlebar h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-code {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
}

.window-readout {
  min-width: 0;
  flex: 1;
  color: var(--muted);
  font-size: 9px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-controls {
  display: flex;
  align-self: stretch;
}

.window-controls button {
  width: 29px;
  min-height: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.window-controls button:last-child:hover {
  background: #552a2a;
  color: #fff;
}

.window-body {
  min-height: 0;
  flex: 1;
  overflow: auto;
  scrollbar-color: var(--line-strong) var(--surface);
  scrollbar-width: thin;
  /* Flex column so a .table-scroll child becomes the bounded scroller and its sticky <th> header
     actually freezes while the bets scroll (operator: freeze panes, especially futures). Without
     this the body itself scrolled and the "sticky" header scrolled away with the table. */
  display: flex;
  flex-direction: column;
}

.window-resizer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 17px;
  min-width: 17px;
  height: 17px;
  min-height: 17px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, transparent 45%, var(--line-strong) 46%, var(--line-strong) 55%, transparent 56%, transparent 68%, var(--line-strong) 69%, var(--line-strong) 77%, transparent 78%);
  cursor: nwse-resize;
  touch-action: none;
}

.panel-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 29px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 4px 8px;
  font-size: 10px;
}

.futures-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.futures-controls button {
  min-height: 23px;
  padding: 2px 7px;
  font-size: 9px;
  white-space: nowrap;
}

[data-futures-refresh-state] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-futures-refresh-state][data-state="ready"] {
  color: var(--green);
}

[data-futures-refresh-state][data-state="failed"] {
  color: var(--red);
}

[data-event-refresh-state][data-state="ready"],
[data-search-refresh-state][data-state="ready"],
[data-pregame-refresh-state][data-state="ready"] {
  color: var(--green);
}

[data-event-refresh-state][data-state="failed"],
[data-search-refresh-state][data-state="failed"],
[data-pregame-refresh-state][data-state="failed"] {
  color: var(--red);
}

.futures-nav {
  display: flex;
  align-items: center;
  min-height: 29px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 3px 8px;
  font-size: 10px;
}

.futures-nav button {
  min-height: 22px;
  padding: 1px 6px;
  font-size: 9px;
}

.search-form {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 8px;
}

.search-form > label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.search-entry {
  display: flex;
  gap: 5px;
}

.search-entry input {
  min-width: 130px;
  flex: 1;
}

.search-entry button {
  flex: 0 0 auto;
}

.table-scroll {
  min-height: 75px;
  flex: 1 1 auto;   /* fill the panel body so the header row can freeze while rows scroll */
  overflow: auto;
  scrollbar-color: var(--line-strong) var(--surface);
  scrollbar-width: thin;
}

.odds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.odds-table th,
.odds-table td {
  border-bottom: 1px solid #172126;
  padding: 5px 7px;
  text-align: left;
  vertical-align: top;
}

.odds-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #090d0f;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.odds-table tbody tr {
  cursor: pointer;
}

.odds-table tbody tr:hover,
.odds-table tbody tr.is-selected {
  background: #102027;
}

.odds-table tbody tr.is-middle-selected {
  background: #28210f;
  box-shadow: inset 3px 0 0 var(--amber);
}

.odds-table tbody tr.is-unavailable {
  color: var(--muted);
  text-decoration-color: var(--red);
}

/* Collapsed "one bet per market" header row in the line inspector (hold-sorted, click to expand). */
.odds-table tbody tr.inspector-market {
  background: #0b1519;
}

.odds-table tbody tr.inspector-market:hover,
.odds-table tbody tr.inspector-market:focus {
  background: #12242b;
}

.odds-table tbody tr.inspector-market td {
  font-weight: 600;
  border-top: 1px solid #1b2a30;
}

.row-actions {
  display: flex;
  gap: 3px;
}

.row-actions button,
.odds-table td > button {
  min-width: 24px;
  min-height: 22px;
  padding: 1px 5px;
  color: var(--cyan);
  font-size: 9px;
}

.row-number {
  color: var(--muted);
}

.positive {
  color: var(--green);
}

.reference {
  color: var(--amber);
}

.negative,
.error-text {
  color: var(--red);
}

.middle-cost {
  color: var(--amber);
  font-weight: 700;
}

.muted,
.sub {
  color: var(--muted);
}

.empty-state,
.capability-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  padding: 12px;
}

.capability-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--amber);
  font-weight: 600;
}

.middle-feed:empty {
  display: none;
}

.terminal-form {
  padding: 8px;
}

.terminal-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 7px 10px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  padding: 8px;
}

.terminal-form legend {
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: .06em;
  padding: 0 5px;
}

.terminal-form label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.terminal-form input,
.terminal-form select {
  width: 100%;
  min-height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #06090a;
  padding: 4px 6px;
  font-size: 11px;
}

.terminal-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: none;
}

.terminal-form .checkbox-label input {
  width: auto;
  min-height: 0;
}

.terminal-form button {
  align-self: end;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.calculator-grid .terminal-form fieldset {
  grid-template-columns: 1fr 1fr;
}

.calculator-output {
  display: block;
  min-height: 35px;
  margin-top: 7px;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 10px;
  white-space: pre-wrap;
}

.calculator-output.has-result {
  border-left-color: var(--green);
  color: var(--text);
}

.calculator-output.has-error {
  border-left-color: var(--red);
  color: var(--red);
}

.parlay-calculator {
  grid-column: 1 / -1;
}

.parlay-leg-list,
.calculator-help {
  grid-column: 1 / -1;
}

.parlay-leg-list {
  display: grid;
  gap: 3px;
  min-height: 31px;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 5px;
  font-size: 9px;
}

.parlay-leg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.parlay-leg span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parlay-leg button {
  min-width: 22px;
  min-height: 22px;
  flex: 0 0 auto;
  padding: 0;
}

.parlay-selection-error,
.parlay-leg-list[data-state="failed"] {
  color: var(--red);
}

.calculator-help {
  margin: 0;
  color: var(--amber);
  font-size: 9px;
}

.chart-selection {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding: 9px;
  font-size: 10px;
}

/* Operator: make the market/bet title pronounced — it leads the inspector. */
.chart-selection strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--cyan);
}

.inspector-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 5px 8px;
}

.inspector-toolbar button {
  min-height: 25px;
  font-size: 10px;
}

.inspector-toolbar button[aria-pressed="true"] {
  border-color: var(--cyan);
  background: #102027;
  color: var(--cyan);
}

.inspector-scope {
  display: inline-flex;
  gap: 5px;
  padding-left: 6px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
}

.inspector-scope[hidden] {
  display: none;
}

[data-middle-selection-state] {
  min-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-middle-selection-state][data-state="ready"] {
  color: var(--green);
}

[data-middle-selection-state][data-state="running"] {
  color: var(--amber);
}

[data-middle-selection-state][data-state="failed"] {
  color: var(--red);
}

.inspector-source-status {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 5px 8px;
  font-size: 9px;
}

[data-inspector-source-rows] {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.source-receipt {
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 2px 5px;
}

.source-complete {
  border-color: color-mix(in srgb, var(--green) 55%, var(--line));
  color: var(--green);
}

.source-returned_unverified,
.source-partial,
.source-cooldown,
.source-cached_only {
  border-color: color-mix(in srgb, var(--amber) 55%, var(--line));
  color: var(--amber);
}

.source-failed,
.source-not_attached {
  border-color: color-mix(in srgb, var(--red) 55%, var(--line));
  color: var(--red);
}

.arb-age-warning {
  color: var(--amber);
  font-weight: 700;
}

.chart-area {
  min-height: 220px;
  padding: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, #0a2730) 0%, var(--surface) 100%);
}

.chart-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border-bottom: 1px solid var(--line);
  padding: 5px 8px;
}

.chart-range {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.chart-range button,
.chart-popout {
  min-height: 23px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 3px 8px;
  font-size: 9px;
  letter-spacing: .08em;
}

.chart-range button:last-child {
  border-right: 0;
}

.chart-range button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--cyan) 16%, var(--surface));
  color: var(--cyan);
  box-shadow: inset 0 -1px 0 var(--cyan);
}

.chart-status {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-popout {
  border: 1px solid var(--line);
  color: var(--text);
}

.financial-chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, 24%);
  min-height: 235px;
}

.financial-chart[hidden] {
  display: none;
}

.financial-chart__plot {
  position: relative;
  min-width: 0;
  min-height: 220px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.financial-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  overflow: hidden;
}

.chart-plot-bg {
  fill: color-mix(in srgb, var(--surface-strong) 86%, #071317);
}

.chart-grid-line {
  stroke: color-mix(in srgb, var(--line) 70%, transparent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  shape-rendering: crispEdges;
}

.chart-axis-label,
.chart-axis-title {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.chart-axis-title {
  font-size: 9px;
  letter-spacing: .08em;
}

.chart-line {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linecap: square;
  stroke-linejoin: miter;
  filter: drop-shadow(0 0 2px color-mix(in srgb, currentColor 38%, transparent));
}

.chart-hold {
  fill: none;
  stroke-width: 1.25;
  stroke-dasharray: 4 4;
  opacity: .62;
  vector-effect: non-scaling-stroke;
}

.chart-point {
  stroke: var(--surface-strong);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.chart-crosshair {
  stroke: color-mix(in srgb, var(--text) 70%, transparent);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.chart-hit-area {
  fill: transparent;
  cursor: crosshair;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  width: max-content;
  max-width: min(230px, 72%);
  border: 1px solid color-mix(in srgb, var(--cyan) 45%, var(--line));
  background: color-mix(in srgb, var(--surface-strong) 95%, transparent);
  color: var(--text);
  padding: 6px 8px;
  box-shadow: 0 8px 24px #0009;
  font: 9px/1.5 var(--mono);
  pointer-events: none;
  white-space: nowrap;
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-weight: 500;
}

.chart-tooltip-row {
  display: grid;
  grid-template-columns: 8px minmax(30px, 1fr) auto auto;
  gap: 5px;
  align-items: center;
}

.chart-swatch {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--series-color, var(--cyan));
  box-shadow: 0 0 5px color-mix(in srgb, var(--series-color, var(--cyan)) 60%, transparent);
}

.chart-legend {
  min-width: 0;
  max-height: 330px;
  overflow: auto;
  background: color-mix(in srgb, var(--surface-strong) 92%, #071317);
  padding: 7px;
}

.chart-legend-row {
  display: grid;
  grid-template-columns: 7px minmax(32px, 1fr) auto;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  padding: 5px 2px;
  font-size: 9px;
}

.chart-legend-row:last-child {
  border-bottom: 0;
}

.chart-legend-book {
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
}

.chart-legend-price {
  color: var(--text);
  text-align: right;
}

.chart-legend-meta {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 8px;
  text-align: right;
}

.chart-legend-row.is-stale {
  opacity: .58;
}

@media (max-width: 720px) {
  .financial-chart {
    grid-template-columns: 1fr;
  }

  .financial-chart__plot {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .chart-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 120px;
    gap: 0 8px;
  }
}

/* A futures book column shows that book's own hold across the field above its name. */
.future-book-hold {
  display: block;
  color: var(--amber);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0;
}

.future-book-hold.is-partial {
  color: var(--muted);
}

.future-book-name {
  display: block;
}

/* Generic pop-out window (Kalshi/Polymarket contract book) — same visual language as the chart
   pop-out so every new window reads as part of the site, with the content in a bordered box. */
.popout-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -30%, #12313a 0, transparent 48%),
    var(--bg);
}

.popout-page {
  width: 100%;
  min-height: 100vh;
  padding: 14px;
}

.popout-header {
  border: 1px solid var(--line);
  border-bottom: 0;
  background: color-mix(in srgb, var(--surface-raised) 94%, #0c2830);
  padding: 12px 14px 10px;
}

.popout-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: .14em;
}

.popout-header h1 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.popout-header p {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popout-summary {
  border: 1px solid var(--line);
  border-bottom: 0;
}

/* The box-view: the table sits inside the same bordered surface the workspace panels use. */
.popout-box {
  border: 1px solid var(--line);
  background: var(--surface);
}

.popout-box .odds-matrix {
  width: 100%;
}

.popout-box .odds-matrix-scroll {
  max-height: calc(100vh - 190px);
}

.chart-popout-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -30%, #12313a 0, transparent 48%),
    var(--bg);
}

.chart-popout-page {
  width: 100%;
  min-height: 100vh;
  padding: 14px;
}

.chart-popout-header {
  border: 1px solid var(--line);
  border-bottom: 0;
  background: color-mix(in srgb, var(--surface-raised) 94%, #0c2830);
  padding: 12px 14px 10px;
}

.chart-popout-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: .14em;
}

.chart-popout-header h1 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.chart-popout-header p {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-popout-page > .chart-toolbar {
  border: 1px solid var(--line);
  background: var(--surface);
}

.chart-popout-chart {
  min-height: 430px;
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: 0 18px 48px #0007;
}

.chart-popout-chart .financial-chart__plot,
.chart-popout-chart svg {
  min-height: 430px;
}

.chart-popout-footer {
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--surface);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 9px;
}

.middle-selection-summary {
  border-bottom: 1px solid var(--line);
  color: var(--amber);
  padding: 6px 8px;
  font-size: 9px;
}

.source-warning-banner {
  position: relative;
  z-index: 10500;
  width: 100%;
  border-top: 1px solid #ff4f5e;
  border-bottom: 1px solid #ff4f5e;
  background: #491116;
  color: #ffe4e6;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.snapshot-warning {
  position: fixed;
  z-index: 11000;
  right: 12px;
  bottom: 12px;
  max-width: 440px;
  border: 1px solid var(--red);
  background: #1d1012;
  color: #ffb3b3;
  padding: 8px 11px;
  font-size: 11px;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 12px;
}

.page-heading h1 {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 600;
}

.eyebrow {
  color: var(--green);
  font-size: 10px;
  letter-spacing: .12em;
}

.settings-card,
.card {
  margin: 0 0 18px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 16px;
}

.card {
  width: min(430px, calc(100% - 24px));
  margin: 48px auto;
}

.card h1,
.card h2 {
  margin-top: 0;
}

.card label,
.password-form label,
.risk-fields > label {
  display: block;
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 11px;
}

.card button {
  margin-top: 13px;
}

.settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -16px -16px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
  padding: 9px 12px;
}

.settings-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.settings-heading h2 {
  margin: 0;
  font-size: 13px;
}

.settings-form {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(460px, 1.3fr);
  gap: 22px;
}

.risk-fields {
  min-width: 0;
}

.field-help {
  color: var(--muted);
  font-size: 10px;
}

.book-policy {
  border: 1px solid var(--line);
}

.book-policy-header,
.book-policy-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 72px 105px;
  align-items: center;
}

.book-policy-header {
  min-height: 32px;
  background: #080c0e;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .06em;
  text-align: center;
}

.book-policy-header h3 {
  margin: 0;
  padding-left: 10px;
  color: var(--text);
  font-size: 10px;
  text-align: left;
}

.book-policy-row {
  min-height: 45px;
  border-top: 1px solid var(--line);
}

.book-policy-row.is-disabled {
  opacity: .48;
}

.book-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  padding: 5px 9px;
}

.book-identity > span:last-child {
  display: grid;
  min-width: 0;
}

.book-identity small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-code {
  width: 37px;
  flex: 0 0 37px;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  padding: 3px;
  font-size: 9px;
  text-align: center;
}

.policy-check {
  display: grid;
  align-self: stretch;
  place-items: center;
  border-left: 1px solid var(--line);
}

.policy-check input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--green);
}

.settings-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-actions .field-help {
  margin: 0;
}

.settings-card-compact {
  max-width: 620px;
}

.password-form {
  display: grid;
  grid-template-columns: 140px minmax(180px, 1fr);
  align-items: center;
  gap: 8px 12px;
}

.password-form label {
  margin: 0;
}

.password-form button {
  grid-column: 2;
  justify-self: start;
}

.notice {
  margin-bottom: 14px;
  border-left: 3px solid var(--line-strong);
  background: var(--surface);
  padding: 9px 11px;
}

.notice-error,
.err {
  border-color: var(--red);
  color: var(--red);
}

.notice-success {
  border-color: var(--green);
  color: var(--green);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

[hidden] {
  display: none !important;
}

.admin-shell {
  width: min(1680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.admin-metrics {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.admin-metrics strong {
  color: var(--cyan);
  font-size: 18px;
}

.admin-boundary {
  border-color: var(--amber);
  color: var(--amber);
}

.admin-mint-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1.5fr) minmax(110px, .6fr) minmax(155px, .8fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
}

.admin-mint-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.activation-code {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  border: 1px solid var(--green);
  background: #07150d;
  color: var(--green);
  padding: 8px 10px;
  overflow-wrap: anywhere;
  user-select: all;
}

.admin-license-list {
  margin-top: 16px;
}

.admin-license-table {
  min-width: 1500px;
  table-layout: fixed;
}

.admin-license-table th,
.admin-license-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-license-table th:nth-child(1) { width: 110px; }
.admin-license-table th:nth-child(2) { width: 75px; }
.admin-license-table th:nth-child(3) { width: 180px; }
.admin-license-table th:nth-child(4) { width: 100px; }
.admin-license-table th:nth-child(5) { width: 160px; }
.admin-license-table th:nth-child(6) { width: 160px; }
.admin-license-table th:nth-child(7) { width: 100px; }
.admin-license-table th:nth-child(8) { width: 330px; }
.admin-license-table th:nth-child(9) { width: 205px; }
.admin-license-table th:nth-child(10) { width: 80px; }

.admin-license-table td:nth-child(1),
.admin-license-table td:nth-child(2),
.admin-license-table td:nth-child(10) {
  white-space: nowrap;
}

.admin-license-table td {
  vertical-align: top;
}

.admin-license-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.admin-revoke {
  border-color: color-mix(in srgb, var(--red) 55%, var(--line));
  color: var(--red);
}

@media (max-width: 980px) {
  .admin-mint-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .settings-form {
    grid-template-columns: 1fr;
  }

  .settings-actions {
    grid-column: auto;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .workspace-page {
    overflow: auto;
  }

  .workspace-main {
    height: auto;
    min-height: calc(100vh - var(--header-height));
    overflow: visible;
  }

  .workspace-toolbar {
    position: sticky;
    top: 0;
    flex-wrap: nowrap;
  }

  .toolbar-label,
  .refresh-controls .toolbar-metric {
    display: none;
  }

  .terminal-workspace {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
    gap: 9px;
    overflow: visible;
    padding: 9px;
  }

  .terminal-window,
  .terminal-window.is-maximized,
  .terminal-window.is-minimized {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: min(430px, 62vh) !important;
    min-width: 0;
  }

  .terminal-window.is-minimized {
    height: 31px !important;
  }

  .window-titlebar {
    cursor: default;
  }

  .window-resizer {
    display: none;
  }

  .site-header {
    gap: 10px;
  }

  .site-nav,
  .account-id,
  .connection-state {
    display: none;
  }

  .brand {
    font-size: 12px;
  }

  .header-bankroll {
    margin-left: auto;
  }

  .header-bankroll label,
  .header-bankroll output {
    display: none;
  }

  .header-bankroll input {
    width: 76px;
  }

  .search-entry {
    flex-wrap: wrap;
  }

  .search-entry input {
    flex-basis: 100%;
  }

  .shell-main {
    width: min(100% - 20px, 720px);
    padding-top: 15px;
  }

  .book-policy-header,
  .book-policy-row {
    grid-template-columns: minmax(150px, 1fr) 55px 78px;
  }

  .book-code {
    display: none;
  }

  .password-form {
    display: block;
  }

  .password-form label {
    margin: 10px 0 4px;
  }

  .terminal-form fieldset,
  .calculator-grid .terminal-form fieldset {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------- operations page (ISSUE-255)
   Admin-key-only page: health, app.db backups, emergency halt. Styling stays inside this
   stylesheet because the site CSP is style-src 'self' with no unsafe-inline — an inline <style>
   or style="" attribute here would be silently dropped. */
.header-link {
  color: var(--cyan);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.header-link:hover { text-decoration: underline; }

.ops-section {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.ops-section h2 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 10px;
}
.ops-section .muted { color: var(--muted); font-size: 12px; line-height: 1.5; }
.ops-danger { border-color: var(--red); }
.ops-danger h2 { color: var(--red); }

.ops-status[data-status="ok"] strong { color: var(--green); }
.ops-status[data-status="degraded"] strong { color: var(--amber); }
.ops-status[data-status="halted"] strong { color: var(--red); }

.ops-problems { margin: 8px 0 0; padding-left: 18px; color: var(--amber); font-size: 12px; }
.ops-problems li { margin-bottom: 3px; }

.ops-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin: 12px 0;
}
.ops-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ops-form input {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 3px;
  min-width: 200px;
}
.ops-form button {
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 3px;
  cursor: pointer;
}
.ops-form button:hover { border-color: var(--cyan); color: var(--cyan); }
.ops-form button.danger { border-color: var(--red); color: var(--red); }
.ops-form button.danger:hover { background: var(--red); color: var(--bg); }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 10px;
}
.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
}
.admin-table th { color: var(--muted); font-weight: 500; white-space: nowrap; }
.admin-table code { color: var(--text); }
.bad { color: var(--red); }
