/* Shared terminal pane: a scroll-sticky log of rows + a "↓ N new" pill. Pages wrap their stream container in `.terminal-wrap` and give the log itself the `.live` class; renderer JS appends `.row` (flat line) or `details.row` (collapsible body) elements. Row-kind classes (`.turn-start`, `.tool-use`, `.thinking`, etc.) carry the per-event colour; pages that don't emit a given kind simply never produce that class — the unused rule sits in the bundle harmlessly. `.terminal-wrap` provides the crust-on-black phosphor chrome that makes the agent page feel like a terminal. Pages can opt in by wrapping a block in this class; or skip it and the rows still render with their class colours, just without the frame. No `.term-input` here — composers are a separate concern (see hive-fr0nt::COMPOSER_CSS / COMPOSER_JS once introduced). */ .terminal-wrap { position: relative; background: rgba(17, 17, 27, 0.78); -webkit-backdrop-filter: blur(8px) saturate(120%); backdrop-filter: blur(8px) saturate(120%); border: 1px solid var(--purple-dim); box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7); border-radius: 4px; font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Source Code Pro", monospace; font-size: 0.92em; color: var(--fg); margin-top: 0.6em; } .live { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--purple-dim); padding: 0.4em 0.6em; overflow-y: auto; max-height: 32em; font-family: inherit; } .live.terminal { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0.8em 1em 0.4em; overflow-y: auto; height: min(72vh, 60em); max-height: none; font-family: inherit; font-size: inherit; color: inherit; } .live .row, .live details.row { animation: row-fade-in 220ms ease-out both; } .live .row.no-anim, .live details.row.no-anim { animation: none; } @keyframes row-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } .live .row { white-space: pre-wrap; word-break: break-word; padding: 0.05em 0; line-height: 1.45; border-left: 2px solid transparent; padding-left: 0.5em; margin: 0.1em 0; } .live .row + .row { border-top: 0; } /* Row-kind colours. Pages register renderers that emit these classes; any class no page emits is just dead CSS, which is fine. */ .live .turn-start { color: var(--amber); font-weight: bold; margin-top: 1em; border-left-color: var(--amber); padding-top: 0.3em; } .live .turn-start:first-child { margin-top: 0; } .live .turn-body { color: var(--fg); font-weight: normal; margin-top: 0.15em; padding-left: 1.2em; opacity: 0.85; } .live .turn-end-ok { color: var(--green); border-left-color: var(--green); margin-bottom: 0.4em; } .live .turn-end-fail { color: var(--red); border-left-color: var(--red); margin-bottom: 0.4em; } .live .text { color: var(--fg); padding-left: 1.2em; } .live .thinking { color: var(--muted); font-style: italic; padding-left: 1.2em; } .live .tool-use { color: var(--cyan); padding-left: 1.2em; } .live .tool-result { color: var(--muted); padding-left: 1.2em; } .live .result { color: var(--green); padding-left: 0.5em; } .live .sys, .live .note { color: var(--muted); } .live .unread-badge { color: var(--amber); font-weight: normal; margin-left: 0.6em; font-size: 0.85em; text-shadow: 0 0 6px rgba(250, 179, 135, 0.55); animation: badge-pulse 1.4s ease-in-out infinite; } @keyframes badge-pulse { 0%, 100% { opacity: 1; text-shadow: 0 0 6px rgba(250, 179, 135, 0.55); } 50% { opacity: 0.7; text-shadow: 0 0 14px rgba(250, 179, 135, 0.95); } } /* "↓ N new" pill: shown when new rows arrive while the operator is scrolled up; click to jump to bottom. Positioned by the wrapper's `position: relative` (terminal-wrap supplies it; pages that skip the wrapper must add their own positioned ancestor). */ .tail-pill { position: absolute; right: 1em; bottom: 4.2em; background: var(--amber); color: #11111b; font-family: inherit; font-size: 0.8em; font-weight: bold; letter-spacing: 0.08em; border: 0; border-radius: 999px; padding: 0.35em 0.9em; cursor: pointer; box-shadow: 0 0 14px -2px rgba(250, 179, 135, 0.85); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 160ms ease, transform 160ms ease; } .tail-pill.visible { opacity: 1; transform: translateY(0); pointer-events: auto; } .tail-pill:hover { filter: brightness(1.1); } details.row { white-space: normal; padding-left: 0.5em; } details.row > summary { cursor: pointer; color: var(--muted); list-style: none; white-space: pre-wrap; word-break: break-word; } details.row > summary::before { content: '▸ '; color: var(--muted); display: inline-block; width: 1em; } details.row[open] > summary::before { content: '▾ '; } details.row.tool-result-block > summary { color: var(--muted); } details.row > pre.diff-body { margin: 0.3em 0 0.4em 1.2em; padding: 0.4em 0.6em; background: rgba(255, 255, 255, 0.02); border-left: 2px solid var(--purple-dim); white-space: pre-wrap; word-break: break-word; max-height: 22em; overflow-y: auto; } details.row > pre.diff-body .diff-add { color: var(--green); } details.row > pre.diff-body .diff-del { color: var(--red); } details.row > pre.diff-body .diff-ctx { color: var(--fg); } details.row > pre.tool-body { margin: 0.3em 0 0.4em 1.2em; padding: 0.4em 0.6em; background: rgba(255, 255, 255, 0.03); border-left: 2px solid var(--purple-dim); color: var(--fg); white-space: pre-wrap; word-break: break-word; max-height: 22em; overflow-y: auto; }