/* Terminal panes: the four agent CLIs and a plain shell, in the app's terminal font and colours.
   Lines sit at the bottom like a scrolled terminal; older lines leave through the top. */
.term{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;padding:6px 8px 4px;background:var(--t-background);color:var(--t-text);font:400 var(--a-terminal-size)/1.38 var(--font-term);white-space:pre;transition:background-color var(--story-motion-theme),color var(--story-motion-theme)}
.term-in{display:flex;flex-direction:column}
/* Banners: block art at one cell (0.6em) per column and one line per row, then the title lines. */
.term-banner{display:flex;gap:1.2em;padding-left:.6em}
.term-art{flex:none;width:calc(var(--cols) * .6em);height:calc(var(--rows) * 1.38em)}
.term-banner-text{display:flex;flex-direction:column;min-width:0}
.cc-chevron{display:inline-block;width:.6em;height:.9em;vertical-align:-.08em;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tl{min-height:1.38em;overflow:hidden;text-overflow:clip}
.tl b{font-weight:700}

/* Claude Code */
.term-cc .cc-dim{color:var(--cc-dim)}
.term-cc .cc-text{color:var(--cc-text)}
.term-cc .cc-ok{color:var(--cc-ok)}
.term-cc .cc-err{color:var(--cc-err)}
.term-cc .cc-brand{color:var(--cc-brand)}
.term-cc .cc-mode{color:var(--cc-mode)}
.term-cc .cc-user{background:var(--cc-user-bg);color:var(--cc-text);margin:0 -8px;padding:0 8px}
/* As in Claude Code, a long message wraps inside its block instead of running off the pane. */
.term-cc .cc-user{white-space:pre-wrap;overflow-wrap:anywhere}
.term-cc .cc-diff{color:var(--cc-text);margin:0 -8px;padding:0 8px}
.term-cc .cc-diff.add{background:var(--cc-add-bg)}
.term-cc .cc-diff.del{background:var(--cc-del-bg)}
.term-cc .cc-ln{color:var(--cc-ln)}
.term-cc .cc-diff.add .cc-sign{color:var(--cc-add-sign)}
.term-cc .cc-diff.del .cc-sign{color:var(--cc-del-sign)}
.term-cc .cc-box{border-top:1px solid var(--cc-rule);border-bottom:1px solid var(--cc-rule);margin:0 -8px;padding:0 8px}

/* The mascot's eyes are black cells inside the orange blocks. */

/* Codex */
.term-cx .cx-dim{opacity:.55}
.term-cx .cx-ok{color:var(--cx-ok)}
.term-cx .cx-err{color:var(--cx-err)}
.term-cx .cx-model{color:var(--cx-model)}
.term-cx .cx-path{color:var(--cx-path)}
.term-cx .cx-shimmer{background:linear-gradient(90deg,currentColor 40%,var(--t-bright-white) 50%,currentColor 60%) 0 0/300% 100%;-webkit-background-clip:text;background-clip:text;color:var(--t-text);-webkit-text-fill-color:transparent;animation:cx-shimmer 2s linear infinite}
@keyframes cx-shimmer{from{background-position:100% 0}to{background-position:-100% 0}}

/* OpenCode */
.term-oc{background:var(--oc-bg);color:var(--oc-text);padding-left:0;padding-right:0}
.term-oc .tl{padding:0 8px}
.term-oc .oc-muted{color:var(--oc-muted)}
.term-oc .oc-accent{color:var(--oc-accent)}
.term-oc .oc-high{color:var(--oc-high)}
.term-oc .term-in{flex:1 0 auto}
.term-oc .oc-title{display:flex;justify-content:space-between;padding-right:16px;background:var(--oc-panel);margin-bottom:auto}
.term-oc .oc-user{margin:0 8px;background:var(--oc-sent);box-shadow:inset 2px 0 var(--oc-accent)}
.term-oc .oc-user .tl{padding-left:16px}
.term-oc .oc-think{color:var(--oc-muted)}
.term-oc .oc-gutter{color:var(--oc-gutter)}
.term-oc .oc-sel{color:var(--oc-accent)}
.term-oc .oc-compose{margin:0 8px;background:var(--oc-panel);box-shadow:inset 2px 0 var(--oc-accent)}
.term-oc .oc-compose .tl{padding-left:16px}
.term-oc .oc-edge{margin:0 8px;padding:0;height:.5em;min-height:0;background:var(--oc-panel);box-shadow:inset 2px 0 var(--oc-accent);color:transparent}
.term-oc .oc-foot{display:flex;justify-content:space-between;gap:12px;margin-top:4px}

/* Antigravity CLI */
.term-ag .ag-user{color:var(--ag-user);font-weight:700}
.term-ag .ag-think{color:var(--ag-think)}
.term-ag .ag-ok{color:var(--ag-ok)}
.term-ag .ag-err{color:var(--ag-err)}
.term-ag .ag-run{color:var(--ag-verb)}
.term-ag .ag-verb{color:var(--ag-verb)}
.term-ag .ag-dim{color:var(--ag-dim)}
.term-ag .ag-rule{color:var(--ag-dim)}
.term-ag .ag-prompt{color:var(--ag-prompt)}
.term-ag .ag-auto{color:var(--ag-verb)}
.term-ag .ag-foot{display:flex;justify-content:space-between;gap:12px}

.term-ag .ag-title{color:var(--ag-prompt)}

/* A plain shell */
.term-sh .sh-ok{color:var(--t-green)}
.term-sh .sh-sel{color:var(--t-cyan)}
