/* Pluto interface.
   One stylesheet, no framework. Dark by default, light available, both driven
   by the same token set so a colour is defined once and nothing drifts. */

:root {
  --bg: #0b0b0f;
  --surface: #121219;
  --surface-2: #181923;
  --surface-3: #1f2029;
  --line: #262734;
  --line-soft: #1e1f29;
  --text: #ecedf2;
  --text-dim: #a0a3b1;
  --text-faint: #6f7382;
  --accent: #a78bfa;
  --accent-strong: #8b6cf0;
  --accent-ink: #140f26;
  --ok: #6ee7a8;
  --warn: #fbbf6b;
  --err: #fb7a7a;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .28);
  --sidebar-w: 268px;
}

:root[data-theme="light"] {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f4f4f8;
  --surface-3: #ebecf2;
  --line: #e2e3ea;
  --line-soft: #eceef3;
  --text: #15161c;
  --text-dim: #5c6070;
  --text-faint: #8b8fa0;
  --accent: #7c5cf0;
  --accent-strong: #6b4bdd;
  --accent-ink: #ffffff;
  --ok: #138f5b;
  --warn: #9a6508;
  --err: #c53434;
  --shadow: 0 1px 2px rgba(16, 18, 32, .06), 0 10px 30px rgba(16, 18, 32, .07);
}

* { box-sizing: border-box; }
/* A class selector beats the user agent's [hidden] rule, and most elements
   here carry one. Restate it once so `hidden` means hidden everywhere. */
[hidden] { display: none !important; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--line); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ── shell ──────────────────────────────────────────────────────────────── */

.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; height: 100dvh; }
.app.collapsed { grid-template-columns: 0 1fr; }
.app.collapsed .sidebar { transform: translateX(-100%); opacity: 0; pointer-events: none; }
.only-collapsed { display: none; }
.app.collapsed .only-collapsed { display: inline-flex; }

/* ── sidebar ────────────────────────────────────────────────────────────── */

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; min-width: 0;
  transition: transform .22s ease, opacity .18s ease;
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 6px 16px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-name { font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }

.orb {
  /* A span is inline by default, so width and height would be ignored
     anywhere it is not already a flex item. */
  display: inline-block;
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #e7dfff, var(--accent-strong) 72%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent), 0 2px 10px color-mix(in srgb, var(--accent) 35%, transparent);
  flex: none;
}
.orb.big {
  display: block; margin: 0 auto;
  width: 46px; height: 46px;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 9%, transparent), 0 10px 40px color-mix(in srgb, var(--accent) 32%, transparent);
}

.icon-btn {
  background: none; border: 0; color: var(--text-faint); cursor: pointer;
  width: 30px; height: 30px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.new-chat {
  margin: 8px 12px 10px; padding: 9px 12px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); font-size: 13.5px; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.new-chat:hover { border-color: var(--accent-strong); background: var(--surface-3); }

.sidebar-scroll { flex: 1; overflow-y: auto; padding: 0 8px 12px; min-height: 0; }
.section { margin-bottom: 14px; }
.section h3 {
  margin: 10px 8px 6px; font-size: 10.5px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint);
}

.chat-list { display: flex; flex-direction: column; gap: 1px; }
.chat-item {
  display: flex; align-items: center; gap: 6px; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 7px 9px; border-radius: var(--r-sm); color: var(--text-dim);
  font-size: 13.5px; transition: background .14s, color .14s;
}
.chat-item:hover { background: var(--surface-2); color: var(--text); }
.chat-item.active { background: var(--surface-3); color: var(--text); }
.chat-item .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item .kill { opacity: 0; color: var(--text-faint); border: 0; background: none; cursor: pointer; padding: 2px 3px; border-radius: 5px; line-height: 0; }
.chat-item:hover .kill { opacity: 1; }
.chat-item .kill:hover { color: var(--err); background: var(--surface); }

.tool-group { margin-bottom: 4px; }
.tool-group > .group-label {
  display: flex; align-items: center; gap: 6px; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 6px 9px; border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 500; color: var(--text-dim);
}
.tool-group > .group-label:hover { background: var(--surface-2); color: var(--text); }
.tool-group .chev { transition: transform .18s ease; flex: none; }
.tool-group[open] .chev { transform: rotate(90deg); }
.tool-group .items { padding: 2px 0 4px 8px; margin-left: 9px; border-left: 1px solid var(--line-soft); }
.tool-item {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  cursor: pointer; padding: 6px 9px; border-radius: var(--r-sm);
  color: var(--text-dim); font-size: 13px; line-height: 1.35;
  transition: background .14s, color .14s;
}
.tool-item:hover { background: var(--surface-2); color: var(--text); }
.tool-item.active { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--text); }

.sidebar-foot { padding: 8px 12px 14px; border-top: 1px solid var(--line-soft); }
.status-chip {
  display: flex; align-items: center; gap: 8px; width: 100%; cursor: pointer;
  background: none; border: 0; padding: 6px 8px; border-radius: var(--r-sm);
  color: var(--text-faint); font-size: 11.5px; font-family: var(--mono);
  text-align: left;
}
.status-chip:hover { background: var(--surface-2); color: var(--text-dim); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }
.pulse.warn { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 18%, transparent); }
.pulse.down { background: var(--err); box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 18%, transparent); }

/* ── main ───────────────────────────────────────────────────────────────── */

.main { display: flex; flex-direction: column; min-width: 0; position: relative; }
.topbar {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px;
  border-bottom: 1px solid var(--line-soft); background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 5;
}
.topbar-title { flex: 1; font-size: 13.5px; font-weight: 500; color: var(--text-dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.view[hidden] { display: none; }
.scroll { flex: 1; overflow-y: auto; scroll-behavior: smooth; }

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
  max-width: 740px; margin: 0 auto; padding: 11vh 24px 40px;
  text-align: center; animation: rise .5s cubic-bezier(.2, .7, .3, 1);
}
.hero h1 { font-size: 30px; font-weight: 600; letter-spacing: -.025em; margin: 20px 0 8px; }
.hero p { color: var(--text-dim); margin: 0 auto 30px; max-width: 54ch; font-size: 14.5px; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.suggestion {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--r); padding: 13px 15px; cursor: pointer;
  font-size: 13.5px; line-height: 1.45; transition: border-color .16s, transform .16s, background .16s;
}
.suggestion:hover { border-color: var(--accent-strong); transform: translateY(-1px); background: var(--surface-2); }
.suggestion b { display: block; font-weight: 550; margin-bottom: 3px; font-size: 13px; }
.suggestion span { color: var(--text-dim); }

/* ── messages ───────────────────────────────────────────────────────────── */

.thread { max-width: 768px; margin: 0 auto; padding: 26px 24px 20px; }
.turn { margin-bottom: 26px; animation: rise .35s cubic-bezier(.2, .7, .3, 1); }
.turn.user { display: flex; justify-content: flex-end; }
.turn.user .body {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 4px var(--r-lg);
  padding: 11px 15px; max-width: 86%; white-space: pre-wrap; font-size: 14.5px;
}
.turn.assistant { display: grid; grid-template-columns: 26px 1fr; gap: 13px; }
.turn.assistant .avatar { margin-top: 3px; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 30%, #e7dfff, var(--accent-strong) 72%);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent);
}
.turn.assistant .body { min-width: 0; }

/* rendered markdown */
.md > *:first-child { margin-top: 0; }
.md > *:last-child { margin-bottom: 0; }
.md p { margin: 0 0 12px; }
.md h1, .md h2, .md h3, .md h4 { margin: 22px 0 9px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.md h1 { font-size: 20px; } .md h2 { font-size: 17.5px; } .md h3 { font-size: 15.5px; } .md h4 { font-size: 14.5px; color: var(--text-dim); }
.md ul, .md ol { margin: 0 0 12px; padding-left: 22px; }
.md li { margin: 4px 0; }
.md li > ul, .md li > ol { margin: 4px 0; }
.md a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.md a:hover { border-bottom-color: var(--accent); }
.md strong { font-weight: 600; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.md blockquote { margin: 0 0 12px; padding: 2px 0 2px 14px; border-left: 2px solid var(--line); color: var(--text-dim); }
.md code {
  font-family: var(--mono); font-size: 12.5px; background: var(--surface-2);
  border: 1px solid var(--line-soft); padding: 1px 5px; border-radius: 5px;
}
.md pre {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; overflow-x: auto; margin: 0 0 14px; position: relative;
}
.md pre code { background: none; border: 0; padding: 0; font-size: 12.5px; line-height: 1.6; word-break: break-all; white-space: pre-wrap; }
.md table { border-collapse: collapse; width: 100%; margin: 0 0 14px; font-size: 13px; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 7px 11px; text-align: left; vertical-align: top; }
.md th { background: var(--surface-2); font-weight: 600; font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }

.caret {
  display: inline-block; width: 7px; height: 15px; margin-left: 2px;
  background: var(--accent); border-radius: 1px; vertical-align: text-bottom;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── tool calls in the thread ───────────────────────────────────────────── */

.toolcall {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r); margin: 0 0 12px; overflow: hidden;
}
.toolcall > summary {
  cursor: pointer; list-style: none; padding: 9px 13px;
  display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-dim);
}
.toolcall > summary::-webkit-details-marker { display: none; }
.toolcall .tname { font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 500; }
.toolcall .targs { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolcall .tmark { margin-left: auto; flex: none; color: var(--ok); font-size: 12px; }
.toolcall[data-ok="false"] .tname { color: var(--err); }
.toolcall[data-ok="false"] .tmark { color: var(--err); }
.toolcall .inner { border-top: 1px solid var(--line); padding: 12px 13px; max-height: 420px; overflow: auto; }

.spinner {
  width: 12px; height: 12px; border: 2px solid var(--line);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .7s linear infinite; display: inline-block; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.thinking { display: flex; gap: 10px; align-items: center; color: var(--text-faint); font-size: 13.5px; }
.dots span { animation: bob 1.3s infinite; display: inline-block; }
.dots span:nth-child(2) { animation-delay: .18s; }
.dots span:nth-child(3) { animation-delay: .36s; }
@keyframes bob { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* ── composer ───────────────────────────────────────────────────────────── */

.composer-wrap {
  padding: 10px 24px 14px;
  background: linear-gradient(to top, var(--bg) 62%, transparent);
}
.composer {
  max-width: 768px; margin: 0 auto; display: flex; align-items: flex-end; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: 7px 7px 7px 18px; box-shadow: var(--shadow);
  transition: border-color .16s, box-shadow .16s;
}
.composer:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.composer textarea {
  flex: 1; resize: none; background: none; border: 0; outline: none;
  padding: 9px 0; max-height: 44vh; min-height: 24px; line-height: 1.55; font-size: 15px;
}
.composer textarea::placeholder { color: var(--text-faint); }
.send {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: var(--accent); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity .15s, transform .15s, background .15s;
}
.send:hover { background: var(--accent-strong); }
.send:disabled { opacity: .35; cursor: default; background: var(--surface-3); color: var(--text-faint); }
.send.stop { background: var(--surface-3); color: var(--text); }
.disclaimer { max-width: 768px; margin: 8px auto 0; text-align: center; font-size: 11.5px; color: var(--text-faint); }

/* ── tool pane ──────────────────────────────────────────────────────────── */

.tool-pane { max-width: 920px; margin: 0 auto; padding: 28px 24px 56px; }
.tool-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 22px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.tool-head h2 { margin: 5px 0 7px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.muted { color: var(--text-dim); margin: 0; font-size: 14px; max-width: 68ch; }

.primary-btn {
  background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer;
  padding: 9px 20px; border-radius: 999px; font-weight: 550; font-size: 14px; flex: none;
  transition: background .15s, transform .15s;
}
.primary-btn:hover { background: var(--accent-strong); }
.primary-btn:active { transform: scale(.98); }

.tool-form { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); margin-bottom: 26px; }
.field label { display: block; font-size: 12.5px; font-weight: 550; margin-bottom: 3px; }
.field .req { color: var(--accent); }
.field .hint { color: var(--text-faint); font-size: 11.5px; margin: 0 0 6px; line-height: 1.45; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 9px 11px; font-size: 13.5px; outline: none;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-strong); }
.field textarea { font-family: var(--mono); font-size: 12.5px; min-height: 92px; resize: vertical; }
.field.check { display: flex; align-items: center; gap: 9px; padding-top: 18px; }
.field.check input { width: auto; }
.field.check label { margin: 0; }

/* ── rendered results ───────────────────────────────────────────────────── */

.result { font-size: 14px; }
.meta-line { color: var(--text-faint); font-size: 12px; font-family: var(--mono); margin: 0 0 14px; }

.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.card > h4 {
  margin: 0; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-dim); font-weight: 600;
}
.card > .card-body { padding: 13px 14px; }

.kv { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 7px 18px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

table.grid { border-collapse: collapse; width: 100%; font-size: 12.5px; }
table.grid th, table.grid td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.grid th { color: var(--text-faint); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
table.grid tbody tr:hover { background: var(--surface-2); }
table.grid tr:last-child td { border-bottom: 0; }
table.grid td.num { font-family: var(--mono); }

.seq {
  font-family: var(--mono); font-size: 12px; line-height: 1.75; word-break: break-all;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 13px; position: relative;
}
.seq .copy {
  position: absolute; top: 7px; right: 7px; font-size: 10.5px; padding: 3px 9px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-faint);
  border-radius: 999px; cursor: pointer; font-family: var(--sans);
}
.seq .copy:hover { color: var(--text); border-color: var(--accent-strong); }
.seqlen { color: var(--text-faint); font-size: 11px; display: block; margin-bottom: 7px; font-family: var(--sans); }

.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; }

.alert { border-left: 3px solid var(--warn); padding: 8px 12px; margin-bottom: 7px; background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 13px; }
.alert.error { border-color: var(--err); }
.alert.ok { border-color: var(--ok); }
.alert.info { border-color: var(--accent-strong); }

.bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12.5px; }
.bar .label { width: 150px; color: var(--text-dim); flex: none; }
.bar .track { flex: 1; height: 6px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.bar .fill { height: 100%; background: linear-gradient(90deg, var(--accent-strong), var(--accent)); border-radius: 4px; }
.bar .val { width: 46px; text-align: right; font-family: var(--mono); font-size: 12px; }

.sub { margin: 11px 0 0; padding-left: 12px; border-left: 2px solid var(--line-soft); }
.sub > h5 { margin: 0 0 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); font-weight: 600; }

details.raw { margin-top: 12px; }
details.raw summary { cursor: pointer; color: var(--text-faint); font-size: 12px; }
details.raw pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; overflow-x: auto; font-size: 11.5px; font-family: var(--mono); }

.err-box { border: 1px solid color-mix(in srgb, var(--err) 45%, var(--line)); background: color-mix(in srgb, var(--err) 7%, transparent); border-radius: var(--r-sm); padding: 12px 14px; color: var(--err); font-size: 13.5px; }

/* ── environment sheet ──────────────────────────────────────────────────── */

.sheet { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); display: grid; place-items: center; z-index: 50; padding: 20px; }
.sheet[hidden] { display: none; }
.sheet-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; max-width: 520px; width: 100%; box-shadow: var(--shadow); }
.sheet-card h4 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.sheet-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 18px; font-size: 13px; }
.sheet-card dt { color: var(--text-dim); }
.sheet-card dd { margin: 0; overflow-wrap: anywhere; }

/* ── responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .app { grid-template-columns: 0 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40; box-shadow: var(--shadow); transform: translateX(-100%); opacity: 0; pointer-events: none; }
  .app.open .sidebar { transform: none; opacity: 1; pointer-events: auto; }
  .only-collapsed { display: inline-flex; }
  .suggestions { grid-template-columns: 1fr; }
  .hero { padding-top: 7vh; }
  .thread, .composer-wrap, .tool-pane { padding-left: 16px; padding-right: 16px; }
}

/* The chat row's open button fills the row; the delete button sits beside it. */
.chat-item .label {
  flex: 1; min-width: 0; background: none; border: 0; cursor: pointer;
  text-align: left; color: inherit; font: inherit; padding: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero .alert { text-align: left; margin-bottom: 18px; }
.md > .toolcall { margin-top: 12px; }
