:root {
  color-scheme: dark;
  --ink: #f4f0e8;
  --muted: #a9a59d;
  --line: #3c403f;
  --panel: #181b1a;
  --panel-soft: #202422;
  --accent: #d7f26a;
  --danger: #ff826d;
}

* { box-sizing: border-box; }
body {
  width: 360px;
  margin: 0;
  color: var(--ink);
  background: #0e1110;
  font: 13px 'Space Grotesk', sans-serif;
}
.shell { padding: 22px; background: radial-gradient(circle at 100% 0, #293128 0, #0e1110 48%); }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: #11150d; background: var(--accent); font: 500 12px Consolas, monospace; border-radius: 8px; }
.eyebrow, .section-label { margin: 0 0 5px; color: var(--accent); font: 500 10px Consolas, monospace; letter-spacing: .08em; }
h1, h2, p { margin: 0; }
h1 { font-size: 18px; letter-spacing: -.03em; }
.status-panel, .conversation-panel { border: 1px solid var(--line); background: rgba(24, 27, 26, .9); border-radius: 10px; }
.status-panel { display: flex; gap: 11px; padding: 13px; align-items: flex-start; }
.status-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(215,242,106,.12); }
.status-dot.busy { background: #f0c75e; box-shadow: 0 0 0 4px rgba(240,199,94,.12); }
.status-dot.stopped, .status-dot.error { background: var(--danger); box-shadow: 0 0 0 4px rgba(255,130,109,.12); }
#status-title { display: block; font-size: 13px; }
#status-detail { margin-top: 3px; color: var(--muted); line-height: 1.35; }
.conversation-panel { position: relative; margin-top: 10px; padding: 13px; }
.conversation-name { max-width: 260px; overflow: hidden; color: var(--ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.text-button { position: absolute; top: 12px; right: 12px; padding: 0; border: 0; color: var(--accent); background: transparent; font: 500 11px Consolas, monospace; cursor: pointer; }
.progress-wrap { height: 3px; margin: 16px 1px 14px; overflow: hidden; background: #2d302e; border-radius: 4px; }
.progress-bar { width: 0; height: 100%; background: var(--accent); transition: width .25s ease; }
.actions { display: grid; grid-template-columns: 1fr 90px; gap: 8px; }
button { min-height: 38px; border: 0; border-radius: 7px; font: 600 12px 'Space Grotesk', sans-serif; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .4; }
.primary-button { color: #11150d; background: var(--accent); }
.secondary-button { color: var(--ink); border: 1px solid var(--line); background: var(--panel-soft); }
.danger-button { color: #220b07; background: var(--danger); }
.privacy-note { margin: 16px 1px 0; color: #817f78; font: 10px Consolas, monospace; line-height: 1.5; }
dialog { width: 316px; padding: 0; color: var(--ink); background: #191c1b; border: 1px solid #555a55; border-radius: 10px; box-shadow: 0 18px 50px #000b; }
dialog::backdrop { background: #0008; }
.dialog-content { padding: 20px; }
.warning-icon { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px; color: #24130d; background: var(--danger); border-radius: 50%; font-weight: 700; }
h2 { margin-bottom: 10px; font-size: 18px; }
dialog p { color: var(--muted); line-height: 1.45; }
.dialog-warning { margin-top: 10px; color: #e7bd70; font-size: 12px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-top: 19px; }
