/**/

:root {
  --bg: #fafafa;
  --panel: #ffffff;
  --border: #e5e5e5;
  --muted: #6b7280;
  --text: #111827;
  --primary: #111827;
  --success: #059669;
  --error: #dc2626;
  --running: #0891b2;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
header#page-header { display: block; margin: 0; padding: 0; border: none; background: transparent; }
.api-key-input {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
}
.api-key-input input {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 220px;
  font-size: 12px;
  font-family: ui-monospace, monospace;
}
main { max-width: 1100px; margin: 0 auto; padding: 24px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
/**/
.toast {
  position: fixed; top: 88px; left: 50%;
  max-width: min(560px, calc(100vw - 32px));
  background: var(--primary); color: #fff;
  padding: 10px 18px; border-radius: 8px;
  font-size: 13px; line-height: 1.55;
  white-space: normal; word-break: break-word;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: opacity 0.25s, transform 0.25s;
  opacity: 0; transform: translateX(-50%) translateY(-10px);
  pointer-events: none;
  z-index: 1100;
  cursor: default;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.show.error { pointer-events: auto; }
.toast.error { background: var(--error); }
/**/
.toast.error { cursor: pointer; }
body.framed main { padding-right: 56px; }
.meta { font-size: 12px; color: var(--muted); }
.err { color: var(--error); font-size: 12px; font-family: ui-monospace, monospace; }
