/* Agent Computers (v8/computer.js). A column beside the page, never over it: v8/sheets.js docks .cmp-sheet and the
   page reflows into what is left (dan's no-cover rule, 2026-11-11). On phones it is a sheet along the bottom. */
.cmp-sheet { position: fixed; top: 0; bottom: 0; right: 0; width: min(620px, 100vw); z-index: 293; background: var(--panel); color: var(--text); border-left: 1px solid var(--border); overflow-y: auto; }
.cmp { display: flex; flex-direction: column; min-height: 100%; }
.cmp-h { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 14px; border-bottom: 1px solid var(--border); background: var(--panel); }
.cmp-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--text); color: var(--panel); flex-shrink: 0; }
.cmp-mark svg { width: 17px; height: 17px; }
.cmp-mark.sm { width: 24px; height: 24px; border-radius: 7px; }
.cmp-mark.sm svg { width: 13px; height: 13px; }
.cmp-mark.on svg { animation: cmpBreathe 2.6s ease-in-out infinite; }
@keyframes cmpBreathe { 50% { transform: scale(.86); opacity: .82; } }
.cmp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cmp-who b { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.cmp-sub { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-rec { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--bad); background: var(--bad-soft); padding: 4px 9px; border-radius: 999px; }
.cmp-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); animation: cmpPulse 1.6s ease-in-out infinite; }
@keyframes cmpPulse { 50% { opacity: .35; } }
.cmp-ib { width: 30px; height: 30px; border-radius: 9px; border: none; background: transparent; color: var(--text2); font-size: 18px; line-height: 1; cursor: pointer; }
.cmp-ib:hover { background: var(--hover); color: var(--text); }
.cmp-body { flex: 1; padding: 12px 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.cmp-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: var(--bg); border: 1px solid var(--border); }
.cmp-tab { flex: 1; height: 30px; border: none; border-radius: 8px; background: transparent; color: var(--text2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cmp-tab.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.cmp-tab small { font-weight: 600; color: var(--text3); }
.cmp-lead { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text2); }
.cmp-err { margin: 0; font-size: 13px; color: var(--bad); background: var(--bad-soft); padding: 8px 10px; border-radius: 10px; }
.cmp-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.cmp-card > b { font-size: 13.5px; font-weight: 650; }
.cmp-fine { margin: 0; font-size: 12px; line-height: 1.45; color: var(--text2); }
.cmp-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.45; color: var(--text); }
.cmp-in { height: 36px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: 13.5px; min-width: 0; flex: none; }
.cmp-type .cmp-in { flex: 1; }
.cmp-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cmp-row { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.cmp-type { display: flex; gap: 6px; margin: 0; }
.cmp-btn { height: 34px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cmp-btn:hover { background: var(--hover); }
.cmp-btn.primary { background: var(--text); color: var(--panel); border-color: var(--text); }
.cmp-btn.primary:hover { opacity: .9; }
.cmp-link { border: none; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.cmp-check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.cmp-check.sm { font-size: 12px; font-weight: 500; color: var(--text2); }
.cmp-live { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.cmp-frame { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg); aspect-ratio: 16 / 10; }
.cmp-frame img { display: block; width: 100%; height: 100%; object-fit: contain; cursor: crosshair; }
.cmp-seen, .cmp-steps, .cmp-audit { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.4; }
.cmp-seen li.bad { color: var(--bad); }
.cmp-seen small, .cmp-audit small { color: var(--text2); }
.cmp-dim { color: var(--text3); list-style: none; margin-left: -20px; }
.cmp-steps li { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px; }
.cmp-steps li:last-child { border-bottom: none; }
.cmp-st { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.cmp-x { border: none; background: none; color: var(--text3); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; }
.cmp-x:hover { color: var(--bad); }
.cmp-risk { align-self: flex-start; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.cmp-r-read { background: var(--bg); color: var(--text2); }
.cmp-r-write { background: var(--accent-soft); color: var(--accent); }
.cmp-r-money { background: var(--bad-soft); color: var(--bad); }
.cmp-rt { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.cmp-rt b { font-size: 13.5px; }
.cmp-pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--text2); }
.cmp-pill.running { background: var(--accent-soft); color: var(--accent); }
.cmp-pill.waiting_allow, .cmp-pill.needs_you { background: var(--warn-soft, var(--accent-soft)); color: var(--warn, var(--accent)); }
.cmp-pill.done { background: var(--good-soft, var(--bg)); color: var(--good, var(--text)); }
.cmp-pill.failed, .cmp-pill.stopped { background: var(--bad-soft); color: var(--bad); }
.cmp-allow { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--bg); font-size: 13px; line-height: 1.45; }
.cmp-allow .cmp-row { grid-column: 1 / -1; }
.cmp-audit { list-style: none; padding: 0; }
.cmp-audit li { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.cmp-when { color: var(--text3); font-variant-numeric: tabular-nums; }
.cmp-top svg { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
@media (max-width: 760px) { .cmp-sheet { top: auto; left: 0; width: auto; max-height: 70dvh; border-left: none; border-top: 1px solid var(--border); border-radius: 18px 18px 0 0; } .cmp-row { justify-content: stretch; } .cmp-row .cmp-btn { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .cmp-mark.on svg, .cmp-rec i { animation: none; } }
/* The welcome agent's small pill would sit on the column's buttons: it steps aside while the computer is open. */
body.cmp-open .gr.gr-min { display: none !important; }
.cmp-repeat { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text2); }
.cmp-repeat select { font: inherit; font-size: 12.5px; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; }
.cmp-warn { color: var(--bad); }
