/* How AgentLab's chat sits in a workspace tab (fills the pane; Pi's look inside, the workspace's outside). Fonts are
   AgentLab's own: monospace conversation (Pi's /export page), system-ui bottom bar; nothing here overrides them. */
.lab-pane { background: #fff; }
/* Pi's /export body font (template.css `body`), applied to the chat root since the page body is the demo's. */
.pi-thread { --fs: 13px; --line-height: calc(var(--fs) * 1.4); flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative;
  font: var(--fs)/var(--line-height) ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace; color: var(--text); background: var(--body-bg); }
/* Only layout differs from AgentLab's page: the conversation is centred in a wide workspace tab. */
.pi-thread .log { padding: 24px max(36px, calc((100% - 860px) / 2)) 64px; }
.pi-thread .bar { padding: 6px max(16px, calc((100% - 880px) / 2)) 12px; }
.pi-thread .opts select { field-sizing: content; }
.pi-empty { position: absolute; inset: 0 0 120px; display: grid; place-content: center; text-align: center; gap: 6px; pointer-events: none;
  font: 14px/1.5 system-ui, sans-serif; color: var(--muted); }
.pi-empty b { font-size: 18px; color: var(--text); }
.pi-run-error { margin: 0 max(16px, calc((100% - 880px) / 2)); padding: 8px 12px; border-radius: 8px; background: var(--toolErrorBg); color: var(--error); font: 13px system-ui, sans-serif; }
.pi-changes { font-size: inherit; color: var(--success); }
/* The workspace's own tab strip uses .tab too; AgentLab's tool label must not inherit it. */
.pi-thread .tool-execution > .tab { min-width: 0; max-width: none; border: 0; }
/* The demo's own classes with the same names as AgentLab's (.status, .chip, .switch, .tab): AgentLab's look wins here. */
.pi-thread .opts .status { background: none; color: var(--muted); padding: 0; border-radius: 0; font-size: inherit; }
.pi-thread .chip { white-space: normal; justify-self: auto; font-size: inherit; border-radius: 12px; font-weight: normal; }
.pi-thread .chip:before { content: none; }
.pi-thread .opts input.switch { flex: none; width: 28px; height: 16px; background: var(--borderMuted); }
.pi-thread .opts input.switch::after { width: 12px; height: 12px; top: 2px; left: 2px; }
.pi-thread .opts input.switch:checked { background: var(--accent); }
.pi-thread .opts input.switch:checked::after { transform: translateX(12px); }
.pi-catalog { padding: 10px 16px; color: var(--muted); font: 13px system-ui, sans-serif; text-align: center; }
.pi-run-notes { margin: 0 max(16px, calc((100% - 880px) / 2)); display: grid; gap: 4px; }
.pi-run-note { padding: 6px 12px; border-radius: 8px; background: var(--toolErrorBg); color: var(--text); font: 13px system-ui, sans-serif; }
.pi-run-prompt { margin-top: 4px; white-space: pre-wrap; color: var(--muted); }
/* The demo styles every button and input (demoUI/style.css: font: inherit, border, radius, padding, colour). AgentLab's
   page leaves exactly those at the browser's own form-control defaults, so revert them here (to the platform's real
   defaults), then restore the values AgentLab's CSS sets on the same controls (agentlab-chat.css), which a revert of
   the same properties also undoes. */
.pi-thread .chip button, .pi-thread .act { font: revert; padding: 0; }
.pi-thread .chip button { font-size: 14px; border-radius: revert; }
.pi-thread .act { font-size: 16px; }
.pi-thread .opts input.switch { font: revert; color: revert; border: revert; padding: 0; }
