/* 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; } 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; }