/* Throwaway spike styling. Dark-first, echoing the Android client's theme. */ :root { color-scheme: dark; --bg: #0e1513; --surface: #171f1d; --surface-2: #1f2a27; --border: #2c3a36; --text: #e2e8e6; --muted: #9db0ab; --accent: #7fd1bb; --ok: #6bd39a; --warn: #e6c268; --bad: #ef8a8a; } * { box-sizing: border-box; } body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; } .topbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 2; flex-wrap: wrap; } .brand { display: flex; gap: 8px; align-items: baseline; } .brand strong { font-size: 16px; } .connbar { display: flex; gap: 8px; align-items: center; flex: 1 1 420px; justify-content: flex-end; } input[type="text"] { flex: 1 1 260px; min-width: 200px; padding: 7px 10px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font: inherit; } button { font: inherit; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; } button:hover { border-color: var(--accent); } button.ghost { background: transparent; } .tabs { display: flex; gap: 4px; align-items: center; padding: 10px 16px 0; } .tabs .spacer { flex: 1; } .tab { border-color: transparent; background: transparent; } .tab.active { background: var(--surface-2); border-color: var(--border); color: var(--accent); } .split { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 16px; padding: 16px; align-items: start; } @media (max-width: 760px) { .split { grid-template-columns: 1fr; } .artifact-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); } } .list, .detail { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; } .row { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; padding: 10px 12px; } .row:last-child { border-bottom: 0; } .row:hover { background: var(--surface-2); } .row.selected { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); } .row-head { display: flex; gap: 8px; justify-content: space-between; align-items: center; } .row-title { font-weight: 600; } .row-meta { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; } .detail { padding: 16px; } .detail h2 { margin: 0 0 12px; display: flex; gap: 10px; align-items: center; } .detail h3 { margin: 18px 0 8px; font-size: 14px; color: var(--muted); text-transform: none; } .kv { display: grid; gap: 4px; } .kv.tight { margin-top: 6px; } .kv-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; } .kv-key { color: var(--muted); } .kv-val { word-break: break-word; } .stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .stages li { display: flex; gap: 8px; align-items: center; } .steps { display: grid; gap: 8px; } .step { border: 1px solid var(--border); border-radius: 10px; padding: 10px; } .step-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .artifacts { margin-top: 8px; font-size: 12px; } .artifacts a { color: var(--accent); margin-right: 10px; } .artifacts-summary { color: var(--accent); } .artifacts-note { margin-top: 2px; } .artifact-hint { margin: 4px 0; } /* Run-level artifacts gallery: group headers + a fitting tile grid. */ .artifacts-header { margin-top: 18px; } .artifact-gallery { display: grid; gap: 12px; } .artifact-group-head { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 4px; } .artifact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; } .artifact-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; padding: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; text-align: center; } .artifact-tile.clickable { cursor: pointer; } .artifact-tile.clickable:hover { border-color: var(--accent); } .artifact-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .artifact-poster { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); } .artifact-play { font-size: 18px; color: var(--text); } .artifact-kind { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; } .artifact-name { font-size: 12px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .artifact-size { color: var(--muted); font-size: 11px; } .artifact-actions { position: absolute; top: 8px; right: 6px; display: flex; gap: 4px; } .artifact-action { padding: 2px 6px; font-size: 10px; border-radius: 6px; background: rgba(14, 21, 19, 0.72); } .artifact-action:disabled { opacity: 0.4; cursor: not-allowed; } /* The per-visit session export link / notice (parity R9). */ .session-export { margin-top: 6px; font-size: 12px; } .session-link { color: var(--accent); } /* Full-screen artifact viewer overlay. */ .artifact-viewer { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: rgba(0, 0, 0, 0.86); } .viewer-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .viewer-title { font-size: 15px; font-weight: 600; } .viewer-position { font-size: 12px; } .viewer-board { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; } .viewer-image { max-width: 100%; max-height: 100%; object-fit: contain; } .viewer-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px; color: var(--muted); } .viewer-placeholder .artifact-play { font-size: 40px; } .viewer-nav { display: flex; gap: 8px; justify-content: center; } .viewer-page:disabled { opacity: 0.4; cursor: not-allowed; } .viewer-actions { display: flex; gap: 8px; justify-content: flex-end; } .chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; border: 1px solid var(--border); color: var(--muted); } /* The app-owned status hues (RunStatusPalette): status is never colour-only, every chip still carries its own label. */ .chip-running, .chip-active { color: #7fb2f0; border-color: #7fb2f0; } .chip-waiting { color: #8edff5; border-color: #8edff5; } .chip-succeeded { color: var(--ok); border-color: var(--ok); } .chip-failed { color: var(--bad); border-color: var(--bad); } .chip-canceled { color: #889391; border-color: #889391; } .chip-interrupted { color: var(--warn); border-color: var(--warn); } .chip-queued { color: #9aa6a2; border-color: #9aa6a2; } .chip-blocked { color: #f0a35e; border-color: #f0a35e; } .chip-skipped { color: #a8b8c8; border-color: #a8b8c8; } .dot::before { content: "●"; margin-right: 6px; } .dot.ok::before { color: var(--ok); } .dot.warn::before { color: var(--warn); } .dot.bad::before { color: var(--bad); } .dot.idle::before { color: var(--muted); } .state { color: var(--muted); white-space: nowrap; } .muted { color: var(--muted); } .ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); } .pad { padding: 12px; } .banner { padding: 8px 16px; } .banner.warn { background: #2a2410; color: var(--warn); } .banner.error { background: #2c1616; color: var(--bad); } code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 12px; } /* --------------------------------------------------------------------------- Runs history: toolbar, filter/sort menus, usage roll-up, sticky day headers and the run rows. Hand-written, dark palette, no framework. --------------------------------------------------------------------------- */ .list.runs { display: flex; flex-direction: column; /* The filter/sort menus hang below the toolbar; keep them unclipped so their bounded, scrollable box can be reached over the rows beneath. */ overflow: visible; } .run-toolbar { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border); } .run-toolbar .spacer { flex: 1; } .run-toolbar button.ghost { padding: 4px 10px; font-size: 12px; } .filter-btn.active { border-color: var(--accent); color: var(--accent); } .menu-anchor { position: relative; } .menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 6; min-width: 210px; /* The filter menu lists every pipeline, so with a busy history it is taller than the viewport. Bound it to the viewport and scroll it in place: every section (Status, Pipeline, Time range) and the Clear filters/Done actions stay reachable instead of being clipped off-screen. */ max-height: min(70vh, 600px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); display: grid; gap: 2px; } .menu-section { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 6px 8px 2px; } .menu-divider { height: 1px; background: var(--border); margin: 6px 0; } .menu-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; } .menu-actions button { padding: 4px 8px; font-size: 12px; } .menu-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 6px 8px; border-radius: 6px; font-size: 13px; } .menu-item:hover { background: var(--surface); } .menu-item.selected { color: var(--accent); } .filter-check { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; } /* Pipeline names can be long; keep each option on one line inside the bounded menu width rather than wrapping to two or three lines. */ .filter-check span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .filter-check:hover { background: var(--surface); } .filter-check input { accent-color: var(--accent); } .filter-menu { min-width: 240px; max-width: 340px; grid-template-columns: minmax(0, 1fr); } /* The list body is the scroll container so the day headers can stick to its top without depending on the (wrapping) top bar's height. */ .run-scroll { max-height: calc(100vh - 210px); overflow-y: auto; } .metrics { display: flex; flex-wrap: wrap; gap: 20px; padding: 12px 16px; border-bottom: 1px solid var(--border); } .metric { display: flex; flex-direction: column; min-width: 56px; } .metric-value { font-size: 18px; font-weight: 600; line-height: 1.2; } .metric-label { font-size: 11px; color: var(--muted); } .metric-succeeded .metric-value { color: var(--ok); } .metric-failed .metric-value { color: var(--bad); } .metric-canceled .metric-value { color: #889391; } .metric-interrupted .metric-value { color: var(--warn); } .metric-active .metric-value { color: #7fb2f0; } .day-header { position: sticky; top: 0; z-index: 1; padding: 7px 16px; background: var(--surface); border-bottom: 1px solid var(--border); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); } .run-row { display: block; padding: 10px 14px; } .run-row-head { display: flex; align-items: center; gap: 8px; } .run-row-title { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .run-row-pipeline { display: flex; align-items: center; gap: 8px; margin-top: 2px; color: var(--muted); font-size: 12px; } .run-row-pipeline-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .run-row-progress, .run-row-meta, .run-row-diag { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .run-row-diag.error { color: var(--bad); } .version-chip { flex: none; padding: 0 7px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: 11px; } .spinner { flex: none; width: 12px; height: 12px; border: 2px solid var(--border); border-top-color: #7fb2f0; border-radius: 50%; display: inline-block; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; color: var(--muted); } .run-list-error { padding: 12px 16px; color: var(--bad); } /* --- Templates gallery + detail ------------------------------------------ */ .pane-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 12px 0; } .pane-head h2 { margin: 0; font-size: 16px; } .gallery { padding-bottom: 8px; } .cards { display: grid; gap: 8px; padding: 10px 12px; } .card { display: block; width: 100%; text-align: left; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); padding: 10px 12px; } .card:hover { border-color: var(--accent); } .card.selected { box-shadow: inset 3px 0 0 var(--accent); border-color: var(--accent); } .card-name { display: block; font-weight: 600; } .card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 12px; margin-top: 2px; } .card-desc:empty { display: none; } .card-meta { display: block; color: var(--accent); font-size: 12px; margin-top: 4px; } .tabstrip { display: flex; gap: 4px; margin: -4px 0 12px; } .minitab { border-color: transparent; background: transparent; padding: 5px 10px; } .minitab.active { background: var(--surface-2); border-color: var(--border); color: var(--accent); } .tabbody h2 { margin-top: 0; } .tabbody .body { margin: 0 0 12px; } .meta-line { color: var(--muted); font-size: 12px; margin-top: 4px; } .codeblock { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 12px; } .codeblock-label { padding: 6px 10px; background: var(--surface-2); border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; } .codeblock-body { margin: 0; padding: 10px; max-height: 420px; overflow: auto; background: transparent; color: var(--text); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; } /* Pipeline list: filter + sort controls. */ .list-controls { border-bottom: 1px solid var(--border); } .list-toolbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 12px; } .control { font-size: 12px; padding: 4px 10px; } .control.active { border-color: var(--accent); color: var(--accent); } .control .count { color: var(--accent); } .clear { font-size: 12px; padding: 4px 10px; } .menu-panel { border-top: 1px solid var(--border); padding: 8px 12px 12px; background: var(--surface); } .filter-section { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; margin: 10px 0 4px; } .filter-field { display: block; } .filter-field-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; } .filter-field input[type="text"] { flex: none; width: 100%; min-width: 0; } .filter-item { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-size: 13px; cursor: pointer; } .filter-item input { accent-color: var(--accent); } .filter-actions { margin-top: 10px; display: flex; gap: 8px; } .sort-option { display: block; width: 100%; text-align: left; border: 1px solid transparent; background: transparent; padding: 5px 8px; border-radius: 6px; font-size: 13px; } .sort-option:hover { background: var(--surface-2); } .sort-option.active { border-color: var(--accent); color: var(--accent); } .row-run { display: flex; gap: 8px; align-items: center; margin-top: 3px; } .row-run .row-meta { margin-top: 0; } .empty { display: grid; gap: 10px; justify-items: start; } /* Pipeline detail: tab strip, collapsible sections, source block. */ .detail-tabs { display: flex; gap: 4px; margin: 10px 0 12px; border-bottom: 1px solid var(--border); } .detail-tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); padding: 6px 10px; } .detail-tab:hover { border-color: transparent; color: var(--text); } .detail-tab.active { color: var(--accent); border-bottom-color: var(--accent); } .detail-subtitle { font-size: 12px; margin-bottom: 10px; } .monospace { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; } .section-toggle { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; margin-top: 16px; border: 0; border-radius: 8px; background: var(--surface-2); padding: 8px 10px; font-weight: 600; } .section-toggle .chevron { color: var(--muted); } .section-body { padding: 8px 4px 0; display: grid; gap: 6px; } .version-row { display: flex; gap: 12px; align-items: baseline; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; } .version-title { font-weight: 600; } .source-code { margin: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; overflow: auto; max-height: 60vh; } .source-code code { background: transparent; padding: 0; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; white-space: pre-wrap; word-break: break-word; } .graph-note { margin: 0; max-width: 60ch; } /* The workflow graph (P6): a mounted, pannable/zoomable canvas of stage nodes, labelled outcome edges and the success/failure terminals, plus the definition pane opened from a node. Hand-written, dark-first, no runtime dependency. */ .graph-host { margin-top: 12px; } .graph-panel { display: grid; gap: 12px; } .graph-panel.expanded .graph-viewport { height: 78vh; } .graph-viewport { position: relative; height: 440px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: grab; /* A drag pans the graph instead of scrolling the page or selecting text. */ touch-action: none; user-select: none; } .graph-viewport:active { cursor: grabbing; } /* One transformed layer: pan/zoom only rewrite this element's transform. */ .graph-content { position: absolute; top: 0; left: 0; will-change: transform; } .graph-edges { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; } .graph-edge-path { stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; } .graph-edge-path.not-executed { stroke-width: 2.5; stroke-dasharray: 14 10; } .graph-arrowhead path { fill: var(--text); fill: context-stroke; } .graph-node-layer, .graph-label-layer { position: absolute; top: 0; left: 0; } .graph-label-layer { pointer-events: none; } .graph-node { position: absolute; display: flex; align-items: center; justify-content: center; padding: 6px 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; text-align: center; overflow-wrap: anywhere; cursor: pointer; } .graph-node:hover { border-color: var(--accent); } .graph-node.selected { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); } /* Node fills convey type: model neutral, ntfy amber, other/custom green. */ .graph-node-ntfy { background: color-mix(in srgb, var(--warn) 22%, var(--surface-2)); border-color: color-mix(in srgb, var(--warn) 42%, var(--border)); } .graph-node-custom { background: color-mix(in srgb, var(--ok) 18%, var(--surface-2)); border-color: color-mix(in srgb, var(--ok) 38%, var(--border)); } /* Terminals are pills tinted by outcome, so they read as endpoints, not stages. */ .graph-node-terminal-success, .graph-node-terminal-failure { border-radius: 999px; } .graph-node-terminal-success { background: color-mix(in srgb, var(--ok) 30%, var(--surface-2)); border-color: var(--ok); color: var(--ok); } .graph-node-terminal-failure { background: color-mix(in srgb, var(--bad) 30%, var(--surface-2)); border-color: var(--bad); color: var(--bad); } /* Not executed (R5 only): hollow, dashed and muted, never a faded fill. */ .graph-node.not-executed { background: transparent; border-style: dashed; color: var(--muted); } .graph-edge-label { position: absolute; transform: translate(-50%, -100%); padding: 1px 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; white-space: nowrap; } .graph-controls { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; gap: 6px; } .graph-control { padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 12px; } .graph-control:hover { border-color: var(--accent); color: var(--accent); } /* The run-mode legend (R5), pinned top-start opposite the Fit/expand controls. A solid, arrowed swatch means "executed"; a dashed, arrowless one "not executed". Never shown for the definition-only view. */ .graph-legend { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; gap: 12px; align-items: center; padding: 4px 8px; border: 1px solid var(--border); border-radius: 8px; background: color-mix(in srgb, var(--surface) 85%, transparent); font-size: 12px; color: var(--muted); } .graph-legend-entry { display: inline-flex; gap: 6px; align-items: center; } .graph-legend-swatch { position: relative; width: 26px; border-top: 3px solid var(--muted); } .graph-legend-swatch.executed { border-top-color: var(--text); } /* A small filled arrowhead on the executed swatch, matching the drawn head. */ .graph-legend-swatch.executed::after { content: ""; position: absolute; top: -6px; right: -1px; border-left: 7px solid var(--text); border-top: 4px solid transparent; border-bottom: 4px solid transparent; } .graph-legend-swatch.not-executed { border-top-style: dashed; } /* The live active stage (R5): a ring around the node plus a soft glow, pulsing while the run executes and static when the user prefers reduced motion. */ .graph-node.active { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); } .graph-node.active.pulsing { animation: graph-halo-pulse 1.6s ease-in-out infinite; } @keyframes graph-halo-pulse { 0%, 100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 20%, transparent); } } @media (prefers-reduced-motion: reduce) { .graph-node.active.pulsing { animation: none; } } /* The live elapsed-time badge on the active node. */ .graph-elapsed { position: absolute; bottom: -9px; right: 6px; padding: 0 5px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: 999px; background: var(--surface); color: var(--accent); font-size: 10px; font-weight: 600; line-height: 16px; } /* The definition pane opened from a node click. */ .graph-pane { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); } .graph-pane[hidden] { display: none; } .graph-pane-head { display: flex; align-items: center; gap: 8px; } .graph-pane-title { margin: 0; font-size: 15px; } .graph-type-chip { padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--accent); font-size: 11px; } .graph-pane-close { margin-left: auto; padding: 3px 10px; font-size: 12px; } .graph-pane-empty { margin: 0; } .graph-section-toggle { display: flex; gap: 8px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--text); font-weight: 600; text-align: left; } .graph-section-body { display: grid; gap: 6px; padding: 8px 2px 0; } .graph-field { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 10px; align-items: baseline; } .graph-field-label { color: var(--muted); font-size: 12px; } .graph-field-value { font-size: 13px; overflow-wrap: anywhere; } .graph-field-block { grid-template-columns: 1fr; } .graph-block { margin: 4px 0 0; padding: 8px 10px; max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; } /* The waiting / canceled / interrupted hues are set once above, next to the other status chips, so RunStatusPalette stays the single source of truth for every status word. */ .chip-unknown { color: #bec9c5; border-color: #bec9c5; } /* --------------------------------------------------------------------------- Run detail: tabbed Summary / Input / Output / Timeline plus the per-visit stage pane. Hand-written, dark palette, no framework. --------------------------------------------------------------------------- */ .run-tab-body { display: grid; gap: 10px; } .run-detail-title { margin: 0; font-size: 18px; } .run-chip-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .run-identity { font-size: 12px; } .run-wait { color: var(--warn); font-size: 12px; } .run-empty { padding: 14px 4px; } .collapsible .section-title { flex: 1; } .collapsible > .section-body { padding: 8px 4px 4px; } .field-block { margin: 0; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); overflow: auto; max-height: 360px; } .field-block code { background: transparent; padding: 0; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; white-space: pre-wrap; word-break: break-word; } /* Timeline rows: one compact line per visit. */ .timeline { display: grid; } .timeline-row { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 10px 4px; border-bottom: 1px solid var(--border); cursor: pointer; } .timeline-row:last-child { border-bottom: 0; } .timeline-row:hover, .timeline-row:focus-visible { background: var(--surface-2); outline: none; } .timeline-glyph { flex: none; width: 18px; text-align: center; font-size: 14px; line-height: 1.4; } .timeline-main { flex: 1; min-width: 0; display: grid; gap: 2px; } .timeline-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .timeline-title { font-weight: 600; } .timeline-duration { font-size: 12px; } .timeline-desc { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .timeline-paperclip { font-size: 12px; } /* The one stage-outcome colour vocabulary: a run-state word takes the shared status palette, any other flow outcome its curated palette slot (mirrors GraphPalette). Set on the class, so a chip's border follows its text. */ .outcome-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; font-size: 11px; } .outcome-state-running, .outcome-state-active { color: #7fb2f0; } .outcome-state-waiting { color: #8edff5; } .outcome-state-succeeded { color: var(--ok); } .outcome-state-failed { color: var(--bad); } .outcome-state-canceled { color: #889391; } .outcome-state-interrupted { color: var(--warn); } .outcome-state-queued { color: #9aa6a2; } .outcome-state-blocked { color: #f0a35e; } .outcome-state-skipped { color: #a8b8c8; } .outcome-state-unknown { color: #bec9c5; } .outcome-flow-0 { color: #f5a3a3; } .outcome-flow-1 { color: #f5b37a; } .outcome-flow-2 { color: #7fd4e8; } .outcome-flow-3 { color: #c0a3f5; } .outcome-flow-4 { color: #f0e07a; } .outcome-flow-5 { color: #f5a3d0; } .outcome-flow-6 { color: #d8c98a; } .outcome-flow-7 { color: #9fd8c0; } .outcome-flow-8 { color: #d8a8c0; } /* The per-visit stage pane: a right-hand sheet with a modal backdrop. */ .stage-pane { position: fixed; inset: 0; z-index: 25; display: flex; justify-content: flex-end; background: rgba(0, 0, 0, 0.55); } .stage-pane-bar { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface); } .stage-pane-titles { display: grid; min-width: 0; } .stage-pane-title { font-weight: 600; } .stage-pane-run { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .stage-pane-sheet { display: flex; flex-direction: column; width: min(560px, 100%); height: 100%; min-width: 0; background: var(--surface); border-left: 1px solid var(--border); box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45); } .stage-pane-body { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; } .stage-section > .section-body { padding-top: 6px; } /* The verdict block leads the pane. */ .verdict { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); } .verdict-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .verdict-title { font-weight: 600; } .verdict-reason { margin: 0; line-height: 1.5; } .verdict-link { color: var(--accent); text-decoration: underline; } .verdict-link.disabled { color: var(--muted); text-decoration: none; } .verdict-refs { display: flex; flex-wrap: wrap; gap: 6px; } .verdict-ref { padding: 2px 8px; font-size: 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); } /* --------------------------------------------------------------------------- Transport: the persistent connection banner (T5) and the live badge. The banner is in normal flow directly under the header, so it can never cover the content; its container colours follow ConnectionBanner.kt's Material roles (surfaceVariant idle/connecting, errorContainer disconnected, primary connected). Hand-written, on the app's dark palette. --------------------------------------------------------------------------- */ .conn-banner { display: flex; gap: 10px; align-items: center; padding: 8px 16px; font-size: 13px; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--text); } .conn-banner[hidden] { display: none; } .conn-banner-dot::before { content: "\25cf"; } .conn-banner-text { font-weight: 500; } .conn-build { margin-left: auto; color: var(--muted); font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; } .conn-warning { color: var(--warn); font-weight: 600; } /* Idle: surfaceVariant (never an error colour — nothing is wrong yet). */ .conn-idle { background: var(--surface-2); color: var(--muted); } .conn-idle .conn-banner-dot::before { color: var(--muted); } /* Connecting: surfaceVariant with a warm dot, matching the state badge. */ .conn-connecting { background: var(--surface-2); color: var(--muted); } .conn-connecting .conn-banner-dot::before { color: var(--warn); } /* Disconnected: errorContainer. */ .conn-error { background: #2c1616; color: var(--bad); } .conn-error .conn-banner-dot::before { color: var(--bad); } .conn-error .conn-build { color: var(--muted); } /* Connected: an explicit green (primary) state, the page's one visible difference from ConnectionBanner.kt, which renders nothing once connected. */ .conn-ok { background: #12251b; color: var(--ok); } .conn-ok .conn-banner-dot::before { color: var(--ok); } /* Live-stream badge (LiveBadge.kt): a dot plus the honest word, so colour is never the only signal. */ .live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; } .live-badge .live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; } .live-live { color: var(--ok); } .live-reconnecting { color: var(--warn); } .live-reconnecting .live-dot { opacity: 0.4; } .live-not-live { color: var(--muted); } .live-not-live .live-dot { opacity: 0.4; } /* --------------------------------------------------------------------------- Run summary Changes (parity R4): the observed-file list and the full-screen rendered/raw diff viewer. Hand-written, the app's dark palette. --------------------------------------------------------------------------- */ .changes { display: grid; gap: 8px; } .changes-summary { color: var(--accent); font-weight: 600; font-size: 13px; } .changes-note { font-size: 12px; } .changes-empty { font-size: 13px; } .changes-list { display: grid; gap: 4px; } .change-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; cursor: pointer; } .change-row:hover { background: var(--surface-2); } .change-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } .change-kind { font-weight: 600; font-size: 12px; min-width: 62px; } .change-main { flex: 1; min-width: 0; display: grid; gap: 2px; } .change-path { overflow-wrap: anywhere; } .change-meta { font-size: 12px; } .change-stat { display: flex; gap: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; } .stat-add { color: var(--ok); } .stat-del { color: var(--bad); } /* Full-screen diff viewer overlay (the artifact-viewer idiom). */ .change-viewer { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: rgba(0, 0, 0, 0.86); } .change-viewer-head { display: flex; gap: 12px; align-items: flex-start; } .change-viewer-titles { flex: 1; min-width: 0; display: grid; gap: 2px; } .change-viewer-title-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .change-viewer-stat { font-size: 13px; } .change-viewer-path { overflow-wrap: anywhere; } .change-viewer-position { font-size: 12px; } .change-viewer-controls { display: flex; gap: 8px; align-items: center; } .change-viewer-spacer { flex: 1; } .change-form { font-size: 12px; } .change-form.active { border-color: var(--accent); color: var(--accent); } .change-form:disabled { opacity: 0.45; } .change-page:disabled { opacity: 0.4; cursor: not-allowed; } .change-viewer-body { flex: 1; min-height: 0; overflow: auto; display: grid; gap: 16px; align-content: start; } .change-honest { display: flex; align-items: center; justify-content: center; height: 100%; padding: 32px; text-align: center; } .change-raw { margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-size: 12px; white-space: pre; overflow: auto; } .change-diff { display: grid; gap: 12px; align-content: start; } .change-diff-stat { display: flex; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; } .change-diff-note { font-size: 12px; } .change-hunk { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; } .change-hunk-head { padding: 4px 8px; background: var(--surface-2); color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; } .change-hunk-lines { overflow-x: auto; background: var(--surface); padding: 6px 0; } .change-line { display: flex; gap: 10px; padding: 0 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; white-space: pre; } .change-gutter { color: var(--muted); user-select: none; } .diff-add { color: var(--ok); } .diff-remove { color: var(--bad); } .diff-context { color: var(--muted); } /* --------------------------------------------------------------------------- Attention / "Needs you" surface (R15): the header bell with its conditional badge, and the bottom sheet of everybody a run needs. Hand-written, dark palette; the sheet is responsive and echoes the app's ModalBottomSheet. --------------------------------------------------------------------------- */ .attention-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 5px 9px; margin-left: 6px; background: transparent; border-color: transparent; line-height: 1; } .attention-bell-glyph { font-size: 15px; } .attention-badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--bad); color: #1b0b0b; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; } .attention-sheet { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.55); } .attention-sheet-panel { display: flex; flex-direction: column; width: min(560px, 100%); max-height: 80vh; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45); outline: none; } .attention-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 8px; border-bottom: 1px solid var(--border); } .attention-sheet-title { margin: 0; font-size: 16px; } .attention-sheet-close { background: transparent; } .attention-sheet-body { flex: 1; overflow-y: auto; padding: 10px 14px 16px; display: grid; gap: 8px; align-content: start; } .attention-empty { margin: 4px 0; color: var(--muted); } .attention-clear { justify-self: start; background: transparent; color: var(--accent); border-color: transparent; padding: 4px 0; } .attention-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); padding: 4px 4px 4px 0; } .attention-row-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; background: transparent; border: 0; border-radius: 10px; padding: 8px 6px 8px 12px; } .attention-icon { font-size: 15px; flex: 0 0 auto; } .attention-text { display: grid; gap: 2px; min-width: 0; } .attention-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .attention-desc { color: var(--muted); font-size: 12px; } .attention-dismiss { flex: 0 0 auto; background: transparent; border-color: transparent; color: var(--muted); padding: 6px 10px; } .attention-dismiss:hover { color: var(--text); border-color: var(--border); } @media (max-width: 760px) { .attention-sheet-panel { width: 100%; max-height: 88vh; } } /* --- Omni-search (S1/S2) ------------------------------------------------- */ /* The panel sits in normal flow under the top bar; the wrapper disappears entirely while the search is closed. */ .search-host { background: var(--surface); border-bottom: 1px solid var(--border); } .search-host:empty { display: none; } .search-panel { padding: 10px 16px 12px; display: grid; gap: 8px; } .search-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .search-field { display: flex; gap: 6px; align-items: center; } .search-field-label { color: var(--muted); font-size: 12px; } .search-select { padding: 5px 8px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font: inherit; } /* --------------------------------------------------------------------------- Run-level operator actions (parity R11–R14): the waiting-for-decision card and sheet, the shared cancel/retry/restart confirm dialogs, the one Action-failed dialog and the inline rename control. Hand-written, the app's dark palette; every string is set with textContent. --------------------------------------------------------------------------- */ .run-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 4px; } .run-action { padding: 4px 12px; font-size: 12px; } .run-action.cancel-run { border-color: var(--warn); color: var(--warn); } .run-action.retry-run { border-color: var(--accent); color: var(--accent); } /* The decision card: a prominent banner above the tabs. */ .decision-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 12px; border: 1px solid #8edff5; border-radius: 10px; background: #102329; } .decision-card-icon { font-size: 18px; line-height: 1; } .decision-card-text { flex: 1; min-width: 0; display: grid; gap: 2px; } .decision-card-title { font-weight: 600; } .decision-card-meta { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .decision-open { border-color: #8edff5; color: #8edff5; font-weight: 600; } /* The decision sheet: a centred modal panel over a dim backdrop. */ .decision-sheet { position: fixed; inset: 0; z-index: 35; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, 0.55); } .decision-sheet-panel { display: grid; gap: 10px; width: min(520px, 100%); max-height: 100%; overflow-y: auto; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); } .decision-sheet-title { margin: 0; font-size: 16px; } .decision-sheet-meta { font-size: 12px; } .decision-instructions { margin: 0; line-height: 1.5; } .decision-options { display: grid; gap: 6px; } .decision-option { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; } .decision-option:hover { border-color: var(--accent); } .decision-option.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } .decision-radio { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); flex: none; } .decision-option.selected .decision-radio { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface-2), inset 0 0 0 8px var(--accent); } .decision-option-body { display: grid; gap: 2px; min-width: 0; } .decision-option-key { font-weight: 600; } .decision-option-target { font-size: 12px; } .decision-field { display: grid; gap: 4px; } .decision-field-label { font-size: 12px; color: var(--muted); } .decision-feedback { width: 100%; padding: 6px 8px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font: inherit; } .search-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } .search-summary { flex: 1 1 160px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .search-clear { padding: 5px 10px; font-size: 12px; } .search-input { flex: 1 1 260px; } .search-close { white-space: nowrap; } /* A bounded, self-scrolling result surface: the panel never pushes the page body around however many hits come back. */ .search-results { max-height: min(50vh, 420px); overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); } /* The refresh indicator: shown above retained results rather than replacing them, so a re-query never blanks the list. */ .search-progress { height: 3px; background: var(--accent); border-radius: 2px; transform-origin: left; animation: search-progress 1.1s ease-in-out infinite; } @keyframes search-progress { 0% { opacity: 0.3; transform: scaleX(0.2); } 50% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0.3; transform: scaleX(0.2); } } @media (prefers-reduced-motion: reduce) { .search-progress { animation: none; } } /* A flat list of rows, with no grouping headers, matching the app. */ .search-row { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border-bottom: 1px solid var(--border); } .search-row:last-child { border-bottom: 0; } .search-row.clickable { cursor: pointer; } .search-row.clickable:hover { background: var(--surface); } .search-row.clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; } .search-row.readonly { opacity: 0.85; } .search-kind { flex: 0 0 auto; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; } .search-row-main { flex: 1 1 auto; min-width: 0; } .search-row-title { font-weight: 600; } .search-row-secondary, .search-row-snippet { font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .search-match { color: var(--accent); } .search-searching { display: flex; gap: 8px; align-items: center; padding: 12px; } .search-error { padding: 12px; color: var(--bad); } .search-empty { padding: 12px; } @media (max-width: 760px) { .search-input { flex-basis: 100%; } .search-summary { flex-basis: 100%; } } .decision-feedback:focus { outline: none; border-color: var(--accent); } .decision-error { font-size: 13px; } .decision-sheet-actions { display: flex; gap: 8px; justify-content: flex-end; } .decision-confirm { border-color: var(--accent); color: var(--accent); font-weight: 600; } .decision-confirm:disabled, .decision-cancel:disabled { opacity: 0.5; } /* Shared confirm dialog (cancel / retry / restart) and the Action-failed one. */ .confirm-dialog, .action-failed { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, 0.55); } .confirm-panel, .action-failed-panel { display: grid; gap: 12px; width: min(420px, 100%); padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); } .confirm-title, .action-failed-title { margin: 0; font-size: 16px; } .confirm-message, .action-failed-message { margin: 0; line-height: 1.5; } .action-failed-message { color: var(--bad); } .confirm-actions { display: flex; gap: 8px; align-items: center; } .confirm-secondary { margin-right: auto; font-size: 12px; } .confirm-accept { border-color: var(--accent); color: var(--accent); font-weight: 600; } .action-failed-ok { justify-self: end; } /* Create a pipeline from a template (P5): the detail action and its dialog. */ .detail-actions { display: flex; gap: 8px; align-items: center; padding: 8px 12px 0; } .template-create-open { border-color: var(--accent); color: var(--accent); font-weight: 600; } .template-create-dialog { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, 0.55); } .template-create-panel { display: grid; gap: 12px; width: min(460px, 100%); padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); } .template-create-title { margin: 0; font-size: 16px; } .template-create-field { display: grid; gap: 4px; } .template-create-label { font-size: 12px; color: var(--muted); } .template-create-name { width: 100%; padding: 6px 8px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font: inherit; } .template-create-name:focus { outline: none; border-color: var(--accent); } .template-create-note { margin: 0; line-height: 1.5; font-size: 13px; } .template-create-error { font-size: 13px; } .template-create-success { font-size: 13px; color: var(--ok); } .template-create-actions { display: flex; gap: 8px; justify-content: flex-end; } .template-create-confirm { border-color: var(--accent); color: var(--accent); font-weight: 600; } .template-create-confirm:disabled, .template-create-cancel:disabled { opacity: 0.5; } /* The inline rename control on the Summary title row. */ .run-title-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .run-title-row .run-detail-title { margin: 0; } .rename-field { display: flex; gap: 6px; align-items: center; flex: 1; min-width: 0; } .rename-input { flex: 1; min-width: 0; padding: 6px 8px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font: inherit; } .rename-input:focus { outline: none; border-color: var(--accent); } .rename-save { border-color: var(--accent); color: var(--accent); font-weight: 600; } /* --------------------------------------------------------------------------- Chat (C1/C3/C4/C7/C14): the session list, the conversation and its rendered markdown transcript. Hand-written, on the app's dark palette; the transcript is untrusted model output, so every node is built with textContent. --------------------------------------------------------------------------- */ .chat-list { display: flex; flex-direction: column; } .chat-search { flex: 1 1 auto; min-width: 0; } .chat-group-header { padding: 8px 12px 4px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); } .chat-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: start; cursor: pointer; } .chat-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; } .chat-row .row-head { grid-column: 1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .chat-row .row-title { min-width: 0; } .chat-row .row-meta { grid-column: 1; } .chat-row-actions { grid-column: 2; grid-row: 1 / span 2; align-self: center; } .chat-row-actions button { padding: 3px 10px; font-size: 12px; } .chat-close { border-color: var(--warn); color: var(--warn); } .chat-reopen { border-color: var(--accent); color: var(--accent); } .chat-closed-chip { opacity: 0.8; } .chat-activity { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); } .chat-activity-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; } .chat-activity-streaming { color: var(--accent); } .chat-activity-new { color: #7fb2f0; } .chat-detail { display: flex; flex-direction: column; gap: 10px; } .chat-bar { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; } .chat-bar-titles { display: grid; gap: 2px; min-width: 0; } .chat-bar-title { margin: 0; font-size: 16px; } .chat-bar-meta { font-size: 12px; } .chat-context { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); } .chat-load-older { white-space: nowrap; font-size: 12px; } .chat-transcript-empty { padding: 24px 12px; } .chat-transcript-wrap { position: relative; flex: 1 1 auto; min-height: 320px; } .chat-transcript { position: relative; display: flex; flex-direction: column; gap: 10px; max-height: min(62vh, 660px); overflow-y: auto; padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; } .chat-turn { display: flex; } .chat-turn-user { justify-content: flex-end; } .chat-turn-agent { justify-content: flex-start; } .chat-bubble { max-width: min(560px, 100%); padding: 10px 12px; border-radius: 10px; } .user-bubble { background: var(--surface-2); border: 1px solid var(--border); } .agent-bubble { background: var(--surface); border: 1px solid var(--border); } .chat-client { font-size: 11px; color: var(--muted); margin-bottom: 4px; } .chat-user-text { white-space: pre-wrap; overflow-wrap: anywhere; } .chat-tools { margin: 4px 0 8px; } .chat-reasoning { margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px dashed var(--border); } .chat-reasoning-toggle { display: flex; gap: 6px; align-items: center; padding: 2px 0; background: transparent; border: 0; color: var(--muted); font-size: 12px; } .chat-reasoning-toggle:hover { color: var(--text); } .chat-reasoning-body { margin: 6px 0 2px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; } .chat-jump { position: absolute; right: 14px; bottom: 14px; border-color: var(--accent); color: var(--accent); } /* The tool-call chip and its panel (C6). The panel is a fixed overlay, so it never joins the transcript's flow and opening it cannot re-flow or scroll it. */ .chat-tool-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; background: var(--surface-2); font-size: 12px; cursor: pointer; } .chat-tool-chip-failed { border-color: var(--bad); color: var(--bad); } .chat-tool-icon { font-size: 12px; line-height: 1; } .chat-tool-icon-failed { color: var(--bad); } .chat-tool-long { color: var(--bad); } .chat-tool-chevron { color: var(--muted); } .chat-tool-spinner { width: 11px; height: 11px; border-width: 2px; } /* C5: the in-flight turn's indicator, under the transcript after the last agent turn — a spinner, the phase headline, the turn's elapsed and one line per running tool. A call over the long threshold is tinted and marked `.chat-tool-long`. */ .chat-running { display: flex; flex-direction: column; gap: 4px; padding: 6px 2px 2px; color: var(--muted); font-size: 12px; } .chat-running-head { display: flex; align-items: center; gap: 8px; } .chat-running-spinner { width: 12px; height: 12px; border-width: 2px; } .chat-running-label { color: var(--text); } .chat-running-elapsed { color: var(--muted); } .chat-running-tool { display: flex; align-items: center; gap: 8px; padding-left: 20px; min-width: 0; } .chat-running-tool-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; } .chat-running-tool-elapsed { font-size: 11px; } .chat-running-tool-long { color: var(--bad); } .chat-tool-panel { position: fixed; z-index: 40; display: flex; flex-direction: column; width: min(420px, calc(100vw - 16px)); max-height: 440px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); overflow: hidden; } .chat-tool-panel[hidden] { display: none; } .chat-tool-panel-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-bottom: 1px solid var(--border); } .chat-tool-panel-count { flex: 1 1 auto; font-size: 13px; font-weight: 600; } .chat-tool-close { padding: 2px 8px; font-size: 14px; line-height: 1; } .chat-tool-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; } .chat-tool-row { border-bottom: 1px solid var(--border); } .chat-tool-row:last-child { border-bottom: 0; } .chat-tool-row-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 12px; background: transparent; border: 0; border-radius: 0; text-align: left; cursor: pointer; } .chat-tool-row-head:hover { background: var(--surface); } .chat-tool-row-titles { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; gap: 1px; } .chat-tool-name { font-size: 12px; } .chat-tool-detail { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .chat-tool-stat { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; } .chat-tool-duration { font-size: 11px; color: var(--muted); } .chat-tool-row-chevron { color: var(--muted); font-size: 11px; } .chat-tool-body { display: grid; gap: 8px; padding: 0 12px 10px 32px; } .chat-tool-section { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; } .chat-tool-section-label { padding: 3px 10px; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--border); } .chat-tool-section-body { margin: 0; padding: 8px 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; } .chat-tool-diff { padding: 6px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; max-height: 220px; overflow: auto; } .chat-tool-diff-note { font-size: 11px; color: var(--muted); margin-bottom: 4px; } .chat-tool-diff-line { white-space: pre-wrap; overflow-wrap: anywhere; } /* A clearly-labelled overlay for the UI smoke's page-rendered tool-row samples (a failed row and an edit diff the live history does not carry). */ .chat-tool-sample { position: fixed; top: 70px; left: 24px; right: 24px; z-index: 60; max-height: calc(100vh - 140px); overflow: auto; padding: 10px 12px; background: var(--surface); border: 1px solid var(--accent); border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); } .chat-tool-sample-note { margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px dashed var(--border); font-size: 11px; color: var(--accent); } /* The composer at the foot of a conversation (C8/C9). The field grows 1–6 rows; the primary control turns from Send to Stop while a turn is in flight. */ .chat-composer { display: grid; gap: 8px; padding-top: 6px; border-top: 1px solid var(--border); } .chat-queued { font-size: 12px; color: var(--muted); } .chat-attachment-strip { display: flex; flex-wrap: wrap; gap: 8px; } .chat-attachment-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); } .chat-attachment-chip-failed { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 18%, var(--surface-2)); } .chat-attachment-thumb { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; } .chat-attachment-glyph { width: 28px; text-align: center; font-size: 18px; line-height: 1; } .chat-attachment-body { display: grid; gap: 1px; min-width: 0; max-width: 220px; } .chat-attachment-name { font-size: 12px; } .chat-attachment-meta { font-size: 11px; color: var(--muted); } .chat-attachment-error { color: var(--bad); } .chat-attachment-remove { padding: 1px 6px; font-size: 12px; line-height: 1; } .chat-command-palette { max-height: 176px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); } .chat-command-palette[hidden] { display: none; } .chat-command-row { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; cursor: pointer; } .chat-command-row.selected { background: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); } .chat-command-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; } .chat-command-summary { flex: 1 1 auto; font-size: 12px; color: var(--muted); } .chat-command-notice { display: grid; gap: 4px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); } .chat-command-notice-failed { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 16%, var(--surface-2)); } .chat-command-notice-head { display: flex; gap: 6px; align-items: center; } .chat-command-notice-glyph { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1; color: var(--muted); } .chat-command-notice-failed .chat-command-notice-glyph { color: var(--bad); } .chat-command-notice-label { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); } .chat-command-notice-failed .chat-command-notice-label { color: var(--bad); } .chat-command-notice-text { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; } .chat-command-notice-actions { display: flex; gap: 8px; } .chat-command-notice-actions button { padding: 3px 10px; font-size: 12px; } .chat-composer-row { display: flex; gap: 8px; align-items: flex-end; } .chat-file-input { display: none; } .chat-attach { padding: 6px 10px; font-size: 16px; line-height: 1; } .chat-composer-input { flex: 1 1 auto; min-width: 0; resize: none; padding: 8px 10px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; font: inherit; line-height: 20px; max-height: 132px; overflow-y: hidden; } .chat-composer-input:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; } .chat-composer-primary { display: inline-flex; align-items: flex-end; } .chat-send, .chat-stop { padding: 8px 12px; font-size: 16px; line-height: 1; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); cursor: pointer; } .chat-send:not(:disabled) { border-color: var(--accent); color: var(--accent); } .chat-send:disabled { opacity: 0.5; cursor: not-allowed; } .chat-stop { border-color: var(--bad); color: var(--bad); } /* The rendered markdown subset. Every node is created, never parsed from HTML. */ .markdown { display: grid; gap: 8px; min-width: 0; } .markdown > * { margin: 0; } .md-heading { font-size: 15px; } .md-paragraph { line-height: 1.55; overflow-wrap: anywhere; } .md-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--surface-2); padding: 1px 4px; border-radius: 4px; } .md-code-block { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg); } .md-code-label { padding: 4px 10px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); } .md-pre { margin: 0; padding: 10px; overflow-x: auto; } .md-pre code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; } .md-quote { display: grid; gap: 6px; padding-left: 10px; border-left: 3px solid var(--border); color: var(--muted); } .md-list { display: grid; gap: 4px; margin: 0; padding-left: 20px; } .md-table { border-collapse: collapse; width: 100%; font-size: 13px; } .md-table th, .md-table td { border: 1px solid var(--border); padding: 4px 8px; text-align: left; } .md-table th { background: var(--surface-2); } .md-rule { border: 0; border-top: 1px solid var(--border); } .md-link { color: var(--accent); } .md-link-plain { color: var(--muted); } /* --------------------------------------------------------------------------- Settings (L1): the app's one-column settings page — Connection, Workspace and Templates sections on the dark palette, with a status card and the trusted-network warning tinted for the error colour. --------------------------------------------------------------------------- */ .settings { display: grid; gap: 22px; max-width: 720px; margin: 0 auto; padding: 18px 16px 48px; } .settings-section { display: grid; gap: 10px; } .settings-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); } .settings-field { display: grid; gap: 6px; } .settings-field-label { font-size: 12px; color: var(--muted); } .settings-field input[type="text"] { flex: none; width: 100%; min-width: 0; } .settings-helper { margin: 0; font-size: 12px; color: var(--muted); } .settings-helper-error { color: var(--bad); } .settings-field input[aria-invalid="true"], .settings-field input[aria-invalid="true"]:focus { border-color: var(--bad); } .settings-field input[aria-invalid="true"]:focus-visible { outline-color: var(--bad); } .settings-actions { display: flex; gap: 8px; } .settings button.primary { background: var(--accent); border-color: var(--accent); color: #06231c; font-weight: 600; } .settings button.primary:hover { border-color: var(--accent); filter: brightness(1.06); } .settings button.primary:disabled { background: var(--surface-2); border-color: var(--border); color: var(--muted); opacity: 0.6; cursor: not-allowed; filter: none; } .settings-status { display: grid; gap: 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); padding: 14px 16px; } .settings-status-line { margin: 0; font-size: 13px; } .settings-status-head { display: flex; align-items: center; gap: 12px; } .settings-status-spinner { width: 14px; height: 14px; border-width: 2px; } .settings-status-line:first-child { font-weight: 600; font-size: 14px; } .settings-status-head .settings-status-line { font-weight: 600; font-size: 14px; } .settings-status.status-ok .settings-status-line:first-child, .settings-status.status-ok .settings-status-head .settings-status-line { color: var(--ok); } .settings-status.status-error .settings-status-line:first-child { color: var(--bad); } .settings-status.status-connecting .settings-status-line:first-child, .settings-status.status-connecting .settings-status-head .settings-status-line { color: var(--warn); } .settings-warning { display: grid; gap: 6px; border: 1px solid var(--border); border-radius: 10px; background: color-mix(in srgb, var(--bad) 12%, var(--surface-2)); padding: 14px 16px; } .settings-warning-title { margin: 0; font-weight: 600; color: var(--bad); } .settings-warning-body { margin: 0; font-size: 12.5px; color: var(--muted); } .settings-saved { margin: 0; font-size: 12px; color: var(--muted); } .settings-save { justify-self: start; } .settings-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; } .settings-card-glyph { color: var(--muted); font-size: 18px; line-height: 1; } .settings-card-text { display: block; flex: 1; min-width: 0; } .settings-card-chevron { color: var(--muted); font-size: 20px; line-height: 1; } .settings-card .card-desc { display: block; -webkit-line-clamp: unset; }