:root { color-scheme: light dark; /* Base — calm slate, not pure black; lets the line colors carry the page. */ --bg: light-dark(#f6f6f3, #10131a); --surface: light-dark(#ffffff, #161a23); --fg: light-dark(#1a1d24, #e7e9ee); --muted: light-dark(#6b7280, #828b9c); --line: light-dark(#e3e4e0, #242a35); --accent: light-dark(#0b63e5, #7fb0ff); /* Metro lines — the signature. 8 distinguishable branch colors. */ --lane-0: light-dark(#2563eb, #5b9bff); --lane-1: light-dark(#0f9d6b, #2bd49b); --lane-2: light-dark(#d9810a, #f2a93b); --lane-3: light-dark(#d6418a, #ef74b4); --lane-4: light-dark(#7c3aed, #a98bff); --lane-5: light-dark(#0891b2, #34c5e0); --lane-6: light-dark(#dc4338, #f2776c); --lane-7: light-dark(#5f8f1e, #9bc94a); --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace; } * { box-sizing: border-box; } /* The app is a query container so the same UI adapts to the narrow side panel (and any narrow window) without a separate layout. */ .app { container-type: inline-size; } body { margin: 0; font: 13px/1.5 system-ui, sans-serif; background: var(--bg); color: var(--fg); } /* ── Topbar ─────────────────────────────────────────────── */ .topbar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 0.6rem 1.1rem; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); } .brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 650; letter-spacing: 0.01em; } /* The brand mark is a tiny interchange station — the page's motif in miniature. */ .brand-mark { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--lane-0); background: radial-gradient( circle at center, var(--lane-3) 0 2px, transparent 2.5px ); } .controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem; margin-left: auto; min-width: 0; } input, select, button { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 0.32rem 0.5rem; } input.search { width: 15rem; min-width: 0; max-width: 100%; } button { cursor: pointer; } .ghost { background: transparent; border-color: transparent; font-size: 1rem; line-height: 1; } .ghost:hover { border-color: var(--line); } /* Segmented view switcher. */ .seg { display: inline-flex; padding: 2px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; } .seg button { border: none; background: transparent; padding: 0.25rem 0.6rem; border-radius: 6px; color: var(--muted); } .seg button.on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--fg); } .scope-chip { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--accent); font-weight: 550; } .scope-chip .x { opacity: 0.7; } .count { font-family: var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; } .clear { border-color: light-dark(#e7bcbc, #5a2b2b); color: light-dark(#b91c1c, #f4847a); } .clear:hover { background: light-dark(#fdeeee, #271a1a); } /* Recording on/off toggle. Green dot while capturing, amber "paused" state. */ .record-toggle { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; color: light-dark(#15803d, #4ade80); border-color: color-mix(in srgb, currentColor 35%, var(--line)); } .record-toggle.is-paused { color: light-dark(#b45309, #fbbf24); background: color-mix(in srgb, currentColor 12%, transparent); } main { padding: 0.75rem 1.1rem 4rem; } .empty { color: var(--muted); padding: 2rem 0; } /* ── Graph canvas (chronological + tree) ───────────────────── */ .graph { position: relative; } .lanes { position: absolute; inset: 0 auto 0 0; pointer-events: none; /* let edges pass clicks through; stations re-enable */ } .lanes .station { pointer-events: auto; } .station .halo { fill: color-mix(in srgb, var(--accent) 22%, transparent); } .station--head .ring, .station--head circle { filter: drop-shadow( 0 0 3px color-mix(in srgb, var(--accent) 70%, transparent) ); } .rows { position: relative; } .row { position: absolute; left: var(--gutter); right: 0; height: var(--row-h); display: flex; align-items: center; /* Defer off-screen rows; sized so the scrollbar stays put. (Chrome-only.) */ content-visibility: auto; contain-intrinsic-size: auto var(--row-h); } .row--static { position: static; height: 26px; } .node-content { position: relative; display: flex; align-items: center; gap: 0.5rem; width: 100%; padding: 0 0.4rem; border-radius: 6px; } .row:hover .node-content, .list-node:hover > .row > .node-content { background: color-mix(in srgb, var(--fg) 6%, transparent); } .row.is-selected .node-content { background: color-mix(in srgb, var(--accent) 16%, transparent); } .favicon { flex: none; width: 15px; height: 15px; object-fit: contain; } .favicon--blank { border: 1px dashed var(--line); border-radius: 3px; } .label { color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; /* Take all available room and ellipsize instead of pushing siblings. */ flex: 1 1 auto; min-width: 3ch; } .label:hover { text-decoration: underline; } .badge { flex: none; font-family: var(--mono); font-size: 0.74rem; padding: 0.02rem 0.34rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); } /* Hover-revealed controls. Kept inline in the row's flex flow, but collapsed to zero width when hidden (max-width:0 + overflow:hidden) so they reserve no layout space — the label gets the full width. They stay in the DOM and remain focusable, so tabbing into them (:focus-within) still reveals them. Inline rather than absolutely overlaid so they never sit on top of the related-tabs toggle at narrow widths. */ .node-actions { flex: none; display: inline-flex; align-items: center; gap: 0.3rem; max-width: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity 0.1s ease, max-width 0.1s ease; } .row:hover .node-actions, .node-actions:focus-within { max-width: 4rem; opacity: 1; pointer-events: auto; } /* "Open in a fresh tab" escape hatch (full viewer tab only): the row's default click reopens & continues, so this is the disconnected-new-tab alternative. */ .open-fresh { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.3rem; height: 1.3rem; font-size: 0.82rem; line-height: 1; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); text-decoration: none; } .open-fresh:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); } /* Per-node delete (both views). Plain click prunes the stop; ⌥/⇧-click deletes the branch. */ .node-delete { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.3rem; height: 1.3rem; font-size: 0.78rem; line-height: 1; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); } .node-delete:hover { color: light-dark(#b91c1c, #f4847a); border-color: light-dark(#e7bcbc, #5a2b2b); } .meta { margin-left: auto; display: inline-flex; gap: 0.5rem; align-items: baseline; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); white-space: nowrap; } .meta-transition { opacity: 0.8; } /* Related-tabs: a compact icon that opens a popover listing linked tabs. */ .tab-links-toggle { flex: none; display: inline-flex; align-items: center; gap: 0.15rem; padding: 0.04rem 0.32rem; font-size: 0.82rem; line-height: 1.2; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); } .tab-links-count { font-family: var(--mono); font-size: 0.7rem; } .tab-menu[popover] { position: fixed; margin: 0; inset: auto; /* override the UA centering; we position via JS */ min-width: 11rem; max-width: 18rem; padding: 0.25rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 8px 24px rgb(0 0 0 / 0.18); } .tab-menu-item { display: flex; align-items: center; gap: 0.45rem; width: 100%; padding: 0.32rem 0.45rem; border: none; border-radius: 6px; background: none; color: var(--fg); font-size: 0.82rem; text-align: left; } .tab-menu-item:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); } .tab-menu-dir { flex: none; color: var(--accent); } .tab-menu-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* ── List view ─────────────────────────────────────────────── */ .list { list-style: none; margin: 0; padding-left: 1.05rem; } .list:first-child { padding-left: 0; } .list-node { position: relative; } .list-node::before { content: ""; position: absolute; left: -0.55rem; top: 0; bottom: 0; border-left: 1px solid var(--line); } @media (prefers-reduced-motion: reduce) { * { transition: none !important; } } /* Compact layout for the side panel / narrow windows — placed last so these declarations win over the base rules at equal specificity. Hides the chrome that doesn't earn its space and lets the graph breathe. */ @container (max-width: 540px) { .brand-text, .range, .count, .order-toggle, .meta { display: none; } .topbar { gap: 0.4rem; padding: 0.5rem 0.6rem; } main { padding: 0.5rem 0.6rem 3rem; } input.search { min-width: 0; flex: 1 1 5rem; } }