/* Theme: cool slate surfaces, indigo accent. Chart series (--s1..--s4) and status colors (--good/--bad/--warn) come
   from the validated data-viz palette; don't re-hue them without re-running the validator. */
:root {
  color-scheme: light;
  --page: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --ink: #0f172a;
  --ink-2: #475569;
  --muted: #64748b;
  --grid: #e3e8f0;
  --axis: #c5cedb;
  --border: rgba(15, 23, 42, 0.09);
  --accent: #4f46e5;
  --accent-ink: #4338ca;
  --accent-soft: #eef0ff;
  --header: rgba(255, 255, 255, 0.86);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --good: #0ca30c; --good-ink: #006300; --bad: #d03b3b; --warn: #fab219;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.05);
  --ring: 0 0 0 3px rgba(79, 70, 229, 0.25);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0b1020; --surface: #141b2b; --surface-2: #1d2639;
    --ink: #e8ecf4; --ink-2: #b4bccb; --muted: #8b95a9;
    --grid: #252f45; --axis: #36425c; --border: rgba(255, 255, 255, 0.08);
    --accent: #5b5ff0; --accent-ink: #a5b4fc; --accent-soft: rgba(99, 102, 241, 0.16);
    --header: rgba(20, 27, 43, 0.86);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --good-ink: #0ca30c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    --ring: 0 0 0 3px rgba(129, 140, 248, 0.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b1020; --surface: #141b2b; --surface-2: #1d2639;
  --ink: #e8ecf4; --ink-2: #b4bccb; --muted: #8b95a9;
  --grid: #252f45; --axis: #36425c; --border: rgba(255, 255, 255, 0.08);
  --accent: #5b5ff0; --accent-ink: #a5b4fc; --accent-soft: rgba(99, 102, 241, 0.16);
  --header: rgba(20, 27, 43, 0.86);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --good-ink: #0ca30c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
  --ring: 0 0 0 3px rgba(129, 140, 248, 0.35);
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h2 { font-size: 1.05rem; margin: 0 0 .6rem; letter-spacing: -.01em; }
h3 { font-size: .95rem; margin: 0 0 .5rem; }
.muted { color: var(--ink-2); }
.small { font-size: .82rem; }
.error { color: var(--bad); min-height: 1.2em; }
a { color: var(--accent-ink); }
code { font-size: .85em; background: var(--surface-2); padding: .05rem .3rem; border-radius: 5px; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 1rem;
  padding: .6rem 1.25rem; background: var(--header); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; display: flex; align-items: center; gap: .55rem; letter-spacing: -.01em; white-space: nowrap; }
.logo {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, #6366f1, #4338ca); box-shadow: 0 2px 6px rgba(79, 70, 229, .35);
}
.tabs {
  display: flex; gap: .2rem; margin-left: 1rem; flex: 0 1 auto; overflow-x: auto;
  background: var(--surface-2); padding: .22rem; border-radius: 11px;
}
.tabs button {
  border: 0; background: none; padding: .4rem .85rem; border-radius: 8px; cursor: pointer; color: var(--ink-2);
  white-space: nowrap; font-weight: 500; transition: background .15s, color .15s;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--accent-ink); font-weight: 650; box-shadow: var(--shadow); }
.icon-btn {
  margin-left: auto; border: 1px solid var(--border); background: var(--surface); border-radius: 9px;
  width: 34px; height: 34px; cursor: pointer; flex: none;
}
.icon-btn:hover { border-color: var(--accent); }

main { max-width: 1200px; margin: 0 auto; padding: 1.5rem 16px 3rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.1rem 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow); min-width: 0;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 + .card, .grid-2 { margin-bottom: 1rem; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } .tabs { margin-left: 0; } }

/* bot picker */
.bot-list { display: grid; gap: .5rem; }
.bot-list .bot {
  display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: start;
  border: 1px solid var(--border); border-radius: 11px; padding: .65rem .75rem; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.bot-list .bot:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.bot-list .bot:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.bot-list .bot input { margin-top: .3rem; accent-color: var(--accent); }
.bot-list .bot .name { font-weight: 600; }
.bot-list .bot .desc { font-size: .82rem; color: var(--ink-2); }
.bot-list .bot .ping {
  font-size: .78rem; border: 1px solid var(--border); background: var(--surface); border-radius: 7px;
  padding: .15rem .55rem; cursor: pointer; color: var(--accent-ink); font-weight: 600;
}
.bot-list .bot .ping:hover { border-color: var(--accent); }
.bot-list .bot .ping-result { grid-column: 2 / 4; font-size: .8rem; }
.bot-list.compact .bot { padding: .4rem .6rem; }
.check { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; margin: .45rem 0; }
.check input { accent-color: var(--accent); margin-top: .3rem; }
select, input[type="text"] {
  width: 100%; padding: .5rem .65rem; border: 1px solid var(--border); border-radius: 9px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
select:focus, input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
button.primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); color: #fff;
  border: 0; border-radius: 9px; padding: .55rem 1.15rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12), 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: filter .15s, transform .05s;
}
button.primary:hover { filter: brightness(1.06); }
button.primary:active { transform: translateY(1px); }
button.primary:disabled { opacity: .5; cursor: default; filter: none; }
button.ghost, a.ghost {
  border: 1px solid var(--border); background: var(--surface); border-radius: 9px; padding: .32rem .75rem;
  cursor: pointer; font-size: .85rem; font-weight: 500; transition: border-color .15s, color .15s;
}
button.ghost:hover, a.ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

.run-list { display: grid; gap: .45rem; }
.run-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; align-items: center; text-align: left;
  border: 1px solid var(--border); background: var(--surface); border-radius: 11px; padding: .6rem .8rem; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.run-row:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.run-row .del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; border-radius: 6px; }
.run-row .del:hover { color: var(--bad); }
.pill {
  font-size: .74rem; font-weight: 600; padding: .12rem .55rem; border-radius: 999px; background: var(--surface-2);
  color: var(--ink-2); white-space: nowrap;
}

/* results */
.run-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.run-head h2 { font-size: 1.35rem; margin: 0; letter-spacing: -.02em; }
.run-head p { margin: .25rem 0 0; }
.progress-wrap { min-width: 220px; }
.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: linear-gradient(90deg, #6366f1, var(--accent)); transition: width .3s; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; min-width: 0;
  box-shadow: var(--shadow);
}
.tile .label { font-size: .76rem; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tile .value { font-size: 1.9rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.tile .sub { font-size: .82rem; color: var(--ink-2); }
.tile.hero {
  grid-column: span 2; border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%);
}
.tile.hero .value { font-size: 1.5rem; }
@media (max-width: 600px) { .tile.hero { grid-column: auto; } }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; vertical-align: baseline; }

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { padding: .5rem .6rem; border-bottom: 1px solid var(--grid); text-align: left; vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: .74rem; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
thead th { background: var(--surface-2); border-bottom: 0; }
thead th:first-child { border-radius: 8px 0 0 8px; }
thead th:last-child { border-radius: 0 8px 8px 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.best td { font-weight: 600; }
.rank { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); font-size: .78rem; font-weight: 700; }
tr.best .rank { background: var(--accent); color: #fff; }

.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .82rem; color: var(--ink-2); margin-bottom: .25rem; }
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .val { fill: var(--ink-2); font-size: 10.5px; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar, .chart .bar:hover { filter: brightness(1.12); }
.tooltip {
  position: fixed; z-index: 20; pointer-events: none; background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: 8px; padding: .4rem .6rem; font-size: .82rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12); max-width: 260px;
}

.cases-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.filters { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.filters select { width: auto; }
.filters .check { margin: 0; }
table.cases tr.case-row { cursor: pointer; }
table.cases tr.case-row:hover td { background: var(--surface-2); }
.status { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; white-space: nowrap; }
.status .dot { width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 700; }
.status.pass .dot { background: var(--good); }
.status.fail .dot { background: var(--bad); }
.status.na .dot { background: var(--axis); color: var(--ink-2); }
.status.pending .dot { background: var(--surface-2); color: var(--muted); }
.status .ms { color: var(--muted); }
tr.detail td { background: var(--surface-2); padding: .8rem; }
.side { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.side > div { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .7rem; min-width: 0; }
.side h4 { margin: 0 0 .4rem; font-size: .88rem; }
.rubric { margin: 0 0 .7rem; font-size: .85rem; }
.msg { margin: .35rem 0; font-size: .85rem; overflow-wrap: anywhere; }
.msg.user { color: var(--ink-2); }
.msg.user::before { content: "Customer: "; font-weight: 600; }
.msg.bot { white-space: pre-wrap; }
.session { margin: .7rem 0 .2rem; padding-top: .4rem; border-top: 1px dashed var(--border); font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.verdict { margin-top: .6rem; padding-top: .5rem; border-top: 1px solid var(--grid); font-size: .82rem; color: var(--ink-2); }
.verdict b { color: var(--ink); }

/* arena */
.arena { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .arena { grid-template-columns: 1fr; } }
.arena-col { margin-bottom: 1rem; }
.log { min-height: 180px; max-height: 480px; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; }
.bubble { padding: .5rem .7rem; border-radius: 10px; font-size: .88rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.user { align-self: flex-end; background: var(--accent); color: #fff; max-width: 85%; border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--surface-2); max-width: 95%; border-bottom-left-radius: 4px; }
.bubble .ms { display: block; font-size: .72rem; color: var(--muted); margin-top: .2rem; }
.bubble.err { color: var(--bad); }
.arena-form { display: flex; gap: .5rem; }
.vote { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .8rem; }
.vote button { border: 1px solid var(--border); background: var(--surface); border-radius: 9px; padding: .4rem .85rem; cursor: pointer; font-weight: 500; }
.vote button:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.pool summary { cursor: pointer; color: var(--ink-2); font-size: .88rem; }
.pool .bot-list { margin-top: .5rem; }

/* Gray-box / white-box trace under a reply */
.side code { font-size: .78rem; background: var(--surface-2); padding: 0 .25rem; border-radius: 4px; word-break: break-all; }
.side details { margin: .2rem 0 .4rem; }
.side details summary { cursor: pointer; }
.side details pre {
  max-height: 14rem; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: .3rem 0 0;
  padding: .5rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
}

/* presets, run options, head-to-head */
.presets { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.preset { border: 1px solid var(--border); background: none; border-radius: 999px; padding: .25rem .75rem; font-size: .82rem; cursor: pointer; }
.preset { background: var(--surface); transition: border-color .15s; }
.preset:hover { border-color: var(--accent); }
.preset[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.preset:disabled { opacity: .45; cursor: not-allowed; }
.run-type { margin: .5rem 0 0; }
.check.indent { margin-left: 1.5rem; font-size: .9rem; }
.check:has(input:disabled) { color: var(--muted); }
label.inline { display: flex; align-items: center; gap: .5rem; margin: .5rem 0 .2rem; }
label.inline select { width: auto; }
table.pairs td.ahead { color: var(--good-ink); font-weight: 600; }
table.pairs td.behind { color: var(--bad); }

/* phone width: let the tab strip and run rows shrink instead of widening the page */
.tabs { min-width: 0; }
.run-row { grid-template-columns: minmax(0, 1fr) auto auto; overflow-wrap: anywhere; }
.run-row .pill { white-space: normal; max-width: 40vw; }
table.score td:nth-child(2) { min-width: 11rem; }

/* regression check */
.banner { margin: .2rem 0 .6rem; padding: .55rem .8rem; border-radius: 10px; font-weight: 600; background: var(--surface-2); border-left: 4px solid var(--axis); }
.banner.crit { border-left-color: var(--bad); }
.banner.warn { border-left-color: var(--warn); }
.banner.ok { border-left-color: var(--good); }
.banner.crit { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.banner.warn { background: color-mix(in srgb, var(--warn) 22%, transparent); }
.banner.ok { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good-ink); }
.regress-list { margin: 0 0 .5rem; padding-left: 1.1rem; display: grid; gap: .45rem; font-size: .9rem; }
.regress-list ul { margin: .2rem 0; padding-left: 1.1rem; }
.regress-list li.crit { color: var(--bad); }
.regress-list .up { color: var(--good-ink); }
.regress-list .down { color: var(--bad); }
.pill.base { background: var(--accent-soft); color: var(--accent-ink); }
.pill.crit { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.pill.warn { background: color-mix(in srgb, var(--warn) 25%, transparent); color: var(--ink); }
.pill.ok { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good-ink); }

/* ---------- Judge review ---------- */
.review-progress { margin: .4rem 0 .8rem; max-width: 520px; }
.review-progress .progress { margin-bottom: .3rem; }
.review-item h3 { margin: 0; font-size: 1rem; }
.review-item details pre { white-space: pre-wrap; max-height: 220px; overflow-y: auto; }
.review-item .convo { margin-top: .5rem; }
.review-item .verdict { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.label-form { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--grid); }
.label-form .note { flex: 1 1 200px; width: auto; }
.inline-check { display: inline-flex; margin: 0; align-items: center; }
.filters { min-width: 0; max-width: 100%; }
#reviewRun { width: 22rem; max-width: 100%; }

/* ---------- Governance ---------- */
.pill.info { background: var(--surface-2); color: var(--ink-2); }
.gate-bots { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: .5rem; }
.gate-bot { border: 1px solid var(--border); border-radius: 10px; padding: .7rem .8rem; min-width: 0; }
.gate-bot h3 { margin: 0; }
.gate-rules { list-style: none; margin: .3rem 0; padding: 0; display: grid; gap: .25rem; font-size: .85rem; }
.gate-rules li { display: flex; gap: .4rem; align-items: baseline; overflow-wrap: anywhere; }
.gate-rules .mark { flex: none; width: 1rem; text-align: center; font-weight: 700; }
.gate-rules li.crit { color: var(--bad); }
.gate-rules li.ok .mark { color: var(--good-ink); }
.gate-rules li.na { color: var(--muted); }
.signoff { margin-top: .5rem; }
.signoff .reviewer { flex: 1 1 140px; width: auto; }
a.btn-link { color: inherit; text-decoration: none; }
table.risks td { min-width: 6rem; }
table.risks td:nth-child(2) { min-width: 16rem; }
.model-card { border: 1px solid var(--border); border-radius: 10px; padding: .55rem .75rem; margin-bottom: .5rem; }
.model-card summary { cursor: pointer; }
.card-table { margin-top: .5rem; }
.card-table th { width: 9rem; white-space: normal; }
.card-table td { overflow-wrap: anywhere; }
.audit-list { display: grid; gap: .2rem; max-height: 320px; overflow-y: auto; margin-bottom: .5rem; }
/* a surface hairline between adjacent bars, so touching bars stay separable */
.chart .bar { stroke: var(--surface); stroke-width: 1.5px; paint-order: stroke; }
.exports { display: flex; gap: .4rem; margin-top: .5rem; flex-wrap: wrap; }
.exports a { text-decoration: none; color: var(--ink); }
.outcomes { display: grid; gap: .35rem; margin: .7rem 0 .3rem; font-size: .88rem; }
.outcomes > div { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.outcomes b { margin-right: .3rem; }
.cost-table td:first-child { white-space: nowrap; }
#costCard h3 { margin-top: 1rem; }

/* start screen: simple by default, everything else under Advanced */
.start h1 { font-size: 1.6rem; margin: .1rem 0 .3rem; letter-spacing: -.02em; line-height: 1.25; }
.start > .muted { margin: 0 0 1.2rem; }
.start h2 { margin-top: .4rem; }
.eyebrow { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.start .bot-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.suite-pick { display: grid; gap: .3rem; max-width: 520px; margin: 1rem 0; font-weight: 600; font-size: .9rem; }
.suite-pick select { font-weight: 400; }
.start-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.start-row .primary { font-size: 1rem; padding: .65rem 1.4rem; }
.advanced { border: 1px solid var(--border); border-radius: 11px; padding: .7rem .9rem; margin-top: .4rem; }
.advanced > summary { cursor: pointer; font-weight: 600; }
.advanced[open] > summary { margin-bottom: .6rem; }
.advanced h2 { margin-top: .8rem; }

/* a bot scored on too few of its cases: no overall score, greyed so it can't read as a winner */
tr.incomplete td { color: var(--muted); }
tr.incomplete .swatch, .legend .faded .swatch { opacity: .4; }
.legend .faded { color: var(--muted); }
.chart .bar.faded { opacity: .3; }
.run-actions { display: flex; gap: .5rem; margin-top: .5rem; justify-content: flex-end; }
.run-actions [hidden] { display: none; }

.consent { border: 1px solid var(--border); border-radius: 11px; padding: .4rem .8rem; margin: .6rem 0; background: var(--accent-soft); }
.consent p { margin: .3rem 0; }
label.field { display: block; margin: .5rem 0; font-size: .9rem; }
label.field input { margin-top: .25rem; }
.grid-2.tight { gap: .8rem; }
input[type="number"] { width: 8rem; padding: .4rem .55rem; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: inherit; }
.bot-list .bot .remove { font-size: .75rem; border: none; background: none; color: var(--muted); cursor: pointer; padding: 0; text-decoration: underline; }
