HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.
Python agent-apiagent-frameworkagent-harnessai-agentsai-infrastructurecoding-agentconformance-testingdeepseek-harnessharness-engineeringhermesllmopen-protocolopen-sourceopen-standardpi-coding-agentself-hosteduhpunified-apiunified-harness-protocolunified-interface
/* ── v2 design system (harness_router_v2_design/CLAUDE.md is the source of truth) ──────────────
Loaded LAST from the root layout so its :root remaps win. Two jobs:
1. Retheme the whole app by remapping the token variables every existing surface already
reads (fonts, inks, lines, accent) — un-migrated pages inherit the v2 look without edits.
2. Style the v2 chrome (sidebar shell) and re-skin the shared primitives (menus, modals).
Palette discipline per the spec: four ink steps, three status colors, three radii. Never add
a fifth grey. */
:root {
/* type — Inter for prose/UI, JetBrains Mono for machine values. The old IBM Plex/Grotesk
variables are REMAPPED (not removed) so every existing rule that reads them flips over. */
--v2-sans: var(--font-inter), 'Inter', system-ui, sans-serif;
--v2-mono: var(--font-jbmono), 'JetBrains Mono', ui-monospace, monospace;
--font-ibm-sans: var(--v2-sans);
--font-ibm-mono: var(--v2-mono);
--font-grotesk: var(--v2-sans);
/* ink, four steps only */
--v2-ink: #1c1917;
--v2-body: #57534e;
--v2-sec: #6b6560;
--v2-cap: #a8a29e;
--v2-dis: #c4beba;
/* lines */
--v2-line: #e7e5e4;
--v2-row: #f4f2f0;
--v2-div: #f0eeec;
/* surfaces */
--v2-desk: #eeecea;
--v2-bg: #fafaf9;
--v2-card: #ffffff;
/* accent + status */
--v2-accent: #1a5cf5;
--v2-accent-hover: #1447c4;
--v2-tint: #f7f8fe;
--v2-tint-border: #c9d5f7;
--v2-green: #15803d;
--v2-green-bg: #eaf5ee;
--v2-green-border: #cfe4d6;
--v2-orange: #b4460f;
--v2-warn-bg: #fdf9f4;
--v2-warn-border: #f0e2d4;
--v2-warn-ink: #8a6a3c;
/* remap the legacy token names the existing pages read (studio tokens + revamp) */
/* reifyui components read --uic-*; point them at the v2 palette so Chip/SearchField/
Composer render on-theme without forking the library. */
--uic-brand: var(--v2-accent);
--uic-brand-ink: var(--v2-accent-hover);
--uic-brand-faint: var(--v2-tint);
--uic-ink: var(--v2-ink);
--uic-ink-2: var(--v2-body);
--uic-mute: var(--v2-sec);
--uic-mute-2: var(--v2-cap);
--uic-line: var(--v2-line);
--uic-line-soft: var(--v2-row);
--uic-surface: var(--v2-card);
--brand: var(--v2-accent);
--brand-hover: var(--v2-accent-hover);
--accent: var(--v2-accent);
--ink: var(--v2-ink);
--muted: var(--v2-sec);
--faint: var(--v2-cap);
--line: var(--v2-line);
--paper: var(--v2-bg);
--card: var(--v2-card);
}
body {
background: var(--v2-bg);
color: var(--v2-ink);
font-family: var(--v2-sans);
}
/* ── v2 shell ─────────────────────────────────────────────────────────────────────────────── */
.v2-side {
position: fixed; inset: 0 auto 0 0; width: var(--v2-navw, 268px);
background: #fff; border-right: 1px solid var(--v2-line);
display: flex; flex-direction: column; z-index: 60;
transition: width .12s ease;
}
.v2-side.is-dragging { transition: none; user-select: none; }
/* drag handle: invisible 7px strip on the right edge */
.v2-resize {
position: absolute; top: 0; right: -4px; width: 7px; height: 100%;
cursor: col-resize; z-index: 61;
}
.v2-resize:hover, .v2-side.is-dragging .v2-resize { background: var(--v2-tint-border); opacity: .5; }
.v2-title {
display: flex; align-items: center; gap: 9px;
padding: 18px 16px 14px; flex: none; overflow: hidden;
}
/* The wordmark sits in a clipping box: when the nav is dragged narrower than the mark, the mark
is cropped on its right and the toggle keeps its place inside the nav. */
.v2-title .v2-brand { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.v2-title .v2-brand-full { height: 20px; width: auto; max-width: none; flex: none; } /* the pack's lettering at 20px reads as the 14.5px title; 28px read as 21px (Richard, 2026-09-26) */
.v2-title .v2-brand-icon { width: 22px; height: 22px; display: none; }
.v2-title .v2-searchbtn {
margin-left: auto; border: 0; background: none; color: var(--v2-cap); cursor: pointer;
display: inline-flex; padding: 4px; border-radius: 6px;
}
.v2-title .v2-searchbtn:hover { color: var(--v2-body); background: var(--v2-bg); }
.v2-wscard {
margin: 0 14px 14px; padding: 9px 11px; text-align: left;
border: 1px solid #e0dcd9; border-radius: 8px; background: #fff; cursor: pointer;
display: flex; align-items: center; gap: 10px; width: calc(100% - 28px);
}
.v2-wscard .v2-wschev { margin-left: auto; flex: none; color: var(--v2-cap); font-size: 14px; }
.v2-wscard:hover { border-color: var(--v2-tint-border); }
.v2-wscard .v2-wsavatar {
width: 28px; height: 28px; border-radius: 8px; flex: none;
background: var(--v2-tint); color: var(--v2-accent);
display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.v2-wscard .v2-wsmeta { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.v2-wscard .v2-wskicker {
font-family: var(--v2-mono); font-size: 9.5px; letter-spacing: .14em;
text-transform: uppercase; color: var(--v2-cap);
}
.v2-wscard .v2-wsname {
font-size: 13px; font-weight: 600; color: var(--v2-ink);
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Groups are full-width bands separated by hairlines, and a row's highlight runs edge to edge
with the accent bar on the sidebar's own edge (the design), not an inset pill. */
.v2-nav { flex: 1; overflow-y: auto; padding: 0 0 12px; }
.v2-group { padding: 14px 0 10px; border-top: 1px solid var(--v2-div); }
.v2-group:first-child { padding-top: 0; border-top: 0; }
.v2-group-label {
font-size: 12px; color: var(--v2-cap); margin: 0 18px 7px; font-weight: 500;
}
.v2-item {
display: flex; align-items: center; gap: 11px; width: 100%;
padding: 8px 18px; border-radius: 0; border: 0; background: none; cursor: pointer;
font-size: 13.5px; color: var(--v2-body); text-decoration: none; position: relative;
}
.v2-item:hover { background: var(--v2-bg); color: var(--v2-ink); text-decoration: none; }
.v2-item[aria-current='page'] { background: var(--v2-tint); color: var(--v2-ink); font-weight: 600; }
.v2-item[aria-current='page']::before {
content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
width: 2.5px; border-radius: 0 2px 2px 0; background: var(--v2-accent);
}
.v2-item iconify-icon { font-size: 16px; color: inherit; flex: none; }
.v2-item .v2-item-end {
margin-left: auto; font-family: var(--v2-mono); font-size: 11.5px; color: var(--v2-cap);
}
.v2-item.is-soon { color: var(--v2-dis); cursor: default; }
.v2-item.is-soon:hover { background: none; color: var(--v2-dis); }
.v2-soon-pill {
margin-left: auto; font-family: var(--v2-mono); font-size: 9.5px; letter-spacing: .12em;
color: var(--v2-cap); background: #f5f5f4; border-radius: 999px; padding: 2px 7px;
}
/* The sidebar footer, as the hosted console has it: the repository as a bordered pill with its
live star count, the places we live as a row of marks under it, then the account. */
.v2-foot { display: flex; flex-direction: column; gap: 8px; flex: none; border-top: 1px solid var(--v2-div); padding: 12px 14px 10px; position: relative; }
.v2-starpill { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid var(--v2-line); border-radius: 8px; text-decoration: none; color: var(--v2-ink); font-size: 13px; font-weight: 500; white-space: nowrap; }
.v2-starpill:hover { border-color: #c4beba; color: var(--v2-ink); text-decoration: none; }
.v2-starpill > iconify-icon { font-size: 16px; flex: none; color: inherit; }
.v2-star { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-family: var(--v2-mono); font-size: 11.5px; color: var(--v2-sec); }
.v2-star iconify-icon { font-size: 12px; color: inherit; }
.menu-item-star { display: flex; align-items: center; }
.v2-foot .v2-account { margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--v2-div); border-radius: 0; }
.v2-account {
display: flex; align-items: center; gap: 10px; width: 100%;
padding: 6px 8px; border: 0; background: none; border-radius: 8px; cursor: pointer;
}
.v2-account:hover { background: var(--v2-bg); }
.v2-account .v2-avatar {
width: 26px; height: 26px; border-radius: 999px; flex: none; overflow: hidden;
background: #f5f5f4; color: var(--v2-sec); display: grid; place-items: center;
font-size: 10.5px; font-weight: 700;
}
.v2-account .v2-avatar img { width: 100%; height: 100%; object-fit: cover; }
.v2-account .v2-email {
font-size: 13px; color: var(--v2-body);
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* collapsed rail: icons only */
.v2-side.is-rail .v2-title .v2-brand-full,
.v2-side.is-rail .v2-wscard .v2-wsmeta, .v2-side.is-rail .v2-group-label,
.v2-side.is-rail .v2-item span, .v2-side.is-rail .v2-item .v2-item-end,
.v2-side.is-rail .v2-soon-pill, .v2-side.is-rail .v2-account .v2-email { display: none; }
.v2-side.is-rail .v2-title .v2-brand-icon { display: inline-block; }
.v2-side.is-rail .v2-title { justify-content: center; padding-left: 0; padding-right: 0; }
.v2-side.is-rail .v2-title .v2-brand { flex: none; overflow: visible; }
.v2-side.is-rail .v2-wscard { justify-content: center; padding: 5px; margin: 0 auto 14px; width: auto; border-color: transparent; }
.v2-side.is-rail .v2-wscard .v2-wschev { display: none; }
.v2-side.is-rail .v2-item { justify-content: center; padding: 8px 0; }
.v2-side.is-rail .v2-group-label { display: none; }
/* The workspace menu: a real width in both modes, and in the rail it flies out to the right
instead of squeezing into a 64px column where every name wraps. */
.v2-side .workspace-menu { top: 46px; left: 14px; width: calc(100% - 28px); min-width: 236px; }
.v2-side .workspace-menu-item > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-side.is-rail .workspace-menu { left: calc(100% + 8px); top: 0; width: 236px; }
.v2-side.is-rail .v2-account { justify-content: center; }
/* main content sits right of the sidebar */
.v2-main { margin-left: var(--v2-navw, 268px); min-height: 100vh; transition: margin-left .12s ease; }
/* mobile top bar (≤768): the sidebar becomes an overlay drawer. Its height is one number,
--v2-mobilebar-h, that the shell's main area and every viewport-high page root subtract from the
viewport; a root that guessed the bar's height was 6px short and the page scrolled by the bar. */
:root { --v2-mobilebar-h: 47px; }
.v2-mobilebar { display: none; }
@media (max-width: 768px) {
.v2-mobilebar {
display: flex; align-items: center; gap: 10px; box-sizing: border-box; height: var(--v2-mobilebar-h);
position: sticky; top: 0; z-index: 55;
background: #fff; border-bottom: 1px solid var(--v2-line); padding: 10px 14px;
}
.v2-main { min-height: calc(100vh - var(--v2-mobilebar-h)); }
.v2-mobilebar img { width: 20px; height: 20px; }
.v2-mobilebar strong { font-size: 14px; }
.v2-mobilebar button {
margin-left: auto; border: 0; background: none; font-size: 20px;
color: var(--v2-body); cursor: pointer; display: inline-flex; padding: 4px;
}
.v2-side { transform: translateX(-100%); transition: transform .15s ease; width: 268px !important; }
.v2-side .v2-collapsebtn { display: none; }
.v2-side.is-open { transform: translateX(0); box-shadow: 0 0 0 100vmax rgba(28,25,23,.28); }
.v2-resize { display: none; }
.v2-main { margin-left: 0; }
}
/* tablet (769–1024): keep the sidebar but default narrower via JS-set width */
/* ── re-skin shared primitives the old chrome classes still render ────────────────────────── */
.account-menu, .workspace-menu, .connect-menu, .search-panel {
border: 1px solid var(--v2-line); border-radius: 10px; background: #fff;
box-shadow: 0 8px 28px rgba(28,25,23,.10);
}
.modal { border-radius: 12px; }
.button.primary, .btn-primary { background: var(--v2-accent); border-radius: 8px; }
.button.primary:hover, .btn-primary:hover { background: var(--v2-accent-hover); }
/* v2 search overlay (⌘K) */
.v2-search-overlay {
position: fixed; inset: 0; z-index: 90; background: rgba(28,25,23,.30);
display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh;
}
.v2-search-box {
width: min(640px, calc(100vw - 32px)); background: #fff; border-radius: 12px;
border: 1px solid var(--v2-line); box-shadow: 0 16px 48px rgba(28,25,23,.18); overflow: hidden;
}
.v2-search-box .global-search { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--v2-div); }
.v2-search-box .global-search input { flex: 1; border: 0; outline: none; font-size: 14.5px; font-family: var(--v2-sans); background: none; }
.v2-search-box .global-search iconify-icon { color: var(--v2-cap); font-size: 17px; }
.v2-search-box .search-key { font-family: var(--v2-mono); font-size: 10.5px; color: var(--v2-cap); }
.v2-search-box .search-panel { position: static; border: 0; box-shadow: none; border-radius: 0; max-height: 48vh; overflow-y: auto; }
/* title-row actions: search + the collapse toggle (the design's panel icon). In the rail the
toggle stays visible, stacked under the logo, so expansion never requires finding the 7px
drag edge; search hides (Cmd+K still works). */
.v2-title-actions { margin-left: auto; display: inline-flex; gap: 2px; }
.v2-collapsebtn {
border: 0; background: none; color: var(--v2-cap); cursor: pointer;
display: inline-flex; padding: 4px; border-radius: 6px; font-size: 16px;
}
.v2-collapsebtn:hover { color: var(--v2-body); background: var(--v2-bg); }
.v2-side.is-rail .v2-title { flex-direction: column; gap: 12px; padding-top: 16px; }
.v2-side.is-rail .v2-title-actions { margin-left: 0; }
.v2-side.is-rail .v2-collapsebtn { display: inline-flex; }
/* ── Scrollbars: thin pill thumbs, no painted track, everywhere ─────────────────────────────
Chrome/Safari draw these through the -webkit pseudo-elements; Firefox through the standard
properties. The standard properties are scoped to engines WITHOUT the pseudo-elements on
purpose: Chrome ignores ::-webkit-scrollbar on any element that sets scrollbar-width, so a
bare `scrollbar-width: thin` anywhere would switch that element back to the stock bar. */
@supports not selector(::-webkit-scrollbar) {
* { scrollbar-width: thin; scrollbar-color: rgba(28,25,23,.22) transparent; }
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-thumb { background-color: rgba(28,25,23,.18); border-radius: 999px;
border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: rgba(28,25,23,.34); }
/* ── Usage: where the credits went, by day and by harness ─────────────────────────────────
Header block on white with the period control, four summary numbers, then a scroll body
with the chart card, the by-harness table and the price list (the v2 design's Usage page). */
.us-root { display: flex; flex-direction: column; height: 100vh; min-width: 0; background: var(--v2-bg); }
.us-head { flex: none; padding: 30px 36px 16px; background: #fff; border-bottom: 1px solid var(--v2-line); }
.us-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.us-head h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.us-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.us-seg { display: flex; align-items: center; gap: 2px; padding: 3px; background: #f5f5f4; border-radius: 8px; flex: none; }
.us-seg button { font: inherit; font-size: 12.5px; font-weight: 500; padding: 7px 13px; border: 0; border-radius: 6px;
background: transparent; color: var(--v2-sec); cursor: pointer; }
.us-seg button[aria-pressed="true"] { background: #fff; color: var(--v2-accent); font-weight: 600; box-shadow: 0 1px 2px rgba(28,25,23,.1); }
.us-custom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--v2-sec); }
.us-custom input { font: inherit; font-size: 12.5px; padding: 7px 10px; border: 1px solid #e0dcd9; border-radius: 8px; background: #fff; color: var(--v2-ink); }
.us-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 28px; margin-top: 22px; }
.us-stat-k { font-family: var(--v2-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-cap); }
.us-stat-v { display: flex; align-items: baseline; gap: 8px; margin-top: 5px; min-width: 0; }
.us-stat-v b { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--v2-ink); font-variant-numeric: tabular-nums; }
.us-delta { font-family: var(--v2-mono); font-size: 11.5px; }
.us-delta.up { color: var(--v2-orange); }
.us-delta.down { color: var(--v2-green); }
.us-body { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 36px 34px; display: flex; flex-direction: column; gap: 16px; }
.us-card { border: 1px solid var(--v2-line); border-radius: 10px; background: #fff; }
.us-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding: 18px 22px 14px; }
.us-card-title { font-size: 15px; font-weight: 600; color: var(--v2-ink); display: inline-flex; align-items: center; gap: 12px; }
/* In-card mode chips: mono 10/600 in a track, the design's in-row tab style, never page tabs. */
.us-mode { display: inline-flex; gap: 2px; padding: 2px; background: #f5f5f4; border-radius: 6px; }
.us-mode button { font-family: var(--v2-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
padding: 4px 9px; border: 0; border-radius: 5px; background: transparent; color: var(--v2-sec); cursor: pointer; }
.us-mode button[aria-pressed="true"] { background: #fff; color: var(--v2-ink); box-shadow: 0 1px 2px rgba(28,25,23,.1); }
.us-legend { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.us-legend-i { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--v2-body); }
.us-legend-i i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.us-legend-i b { font-family: var(--v2-mono); font-weight: 400; font-size: 11.5px; color: var(--v2-cap); }
.us-chart { height: 232px; margin: 4px 22px 18px; }
.us-empty { padding: 26px 22px; font-size: 13.5px; color: var(--v2-sec); line-height: 1.5; }
.us-empty a { color: var(--v2-accent); }
.us-skel { margin: 4px 22px 18px; height: 232px; border-radius: 8px; background: linear-gradient(90deg, #f5f5f4, #fafaf9, #f5f5f4); background-size: 200% 100%; animation: us-shimmer 1.2s linear infinite; }
@keyframes us-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .us-skel { animation: none; } }
/* The by-harness table: a grid, so the header and the rows share one set of columns. */
.us-thead, .us-row { display: grid; grid-template-columns: minmax(200px, 1fr) 208px 70px 82px 88px 168px; align-items: center; gap: 14px; padding: 13px 22px; }
.us-thead { padding: 10px 22px; background: var(--v2-bg); border-top: 1px solid var(--v2-line); border-bottom: 1px solid var(--v2-line);
font-family: var(--v2-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-cap); }
.us-row { border-bottom: 1px solid #f4f2f0; }
.us-row:last-child { border-bottom: 0; }
.us-row-name { min-width: 0; }
.us-row-name b { display: block; font-size: 14px; font-weight: 600; color: var(--v2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.us-cfg { font-family: var(--v2-mono); font-size: 11.5px; color: var(--v2-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.us-num { font-family: var(--v2-mono); font-size: 12.5px; color: var(--v2-body); font-variant-numeric: tabular-nums; }
.us-num.ink { color: var(--v2-ink); }
.us-share { display: flex; align-items: center; gap: 9px; min-width: 0; }
.us-bar { flex: 1; height: 5px; border-radius: 3px; background: #f0eeec; overflow: hidden; }
.us-bar i { display: block; height: 100%; background: var(--v2-accent); }
.us-share span { font-family: var(--v2-mono); font-size: 11px; color: var(--v2-cap); width: 34px; text-align: right; flex: none; }
/* Price list: a card that opens. */
.us-prices-btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 22px;
background: transparent; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; border-radius: 10px; }
.us-prices-btn:hover { background: var(--v2-bg); }
.us-prices-t { font-size: 14.5px; font-weight: 600; color: var(--v2-ink); }
.us-prices-k { font-family: var(--v2-mono); font-size: 11px; color: var(--v2-cap); flex: none; }
.us-prices { border-top: 1px solid #f0eeec; }
.us-price-g { padding: 12px 22px 4px; font-family: var(--v2-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-cap); }
.us-price { display: grid; grid-template-columns: 1fr 200px; align-items: center; gap: 16px; padding: 10px 22px; border-bottom: 1px solid #f7f5f4; }
.us-price span:first-child { font-size: 13.5px; color: var(--v2-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-price span:last-child { font-family: var(--v2-mono); font-size: 12.5px; color: var(--v2-body); }
@media (max-width: 1100px) {
.us-thead, .us-row { grid-template-columns: minmax(150px, 1fr) 150px 56px 72px 72px; }
.us-share, .us-thead .us-th-share { display: none; }
}
@media (max-width: 1024px) {
.us-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
.us-root { height: calc(100vh - var(--v2-mobilebar-h)); }
.us-head { padding: 20px 16px 14px; }
.us-body { padding: 16px 16px 24px; }
.us-stat-v b { font-size: 22px; }
}
@media (max-width: 600px) {
.us-thead, .us-row { grid-template-columns: minmax(120px, 1fr) 56px 72px; gap: 10px; padding-left: 16px; padding-right: 16px; }
.us-cfg, .us-thead .us-th-cfg, .us-cpt, .us-thead .us-th-cpt { display: none; }
.us-row-name b { white-space: normal; }
.us-card-head, .us-thead, .us-price, .us-prices-btn, .us-price-g { padding-left: 16px; padding-right: 16px; }
.us-chart { margin: 4px 12px 0; } .us-empty { margin-left: 16px; margin-right: 16px; }
.us-price { grid-template-columns: 1fr auto; }
}
/* ── API keys ───────────────────────────────────────────────────────────────────────────────
Header block (title, primary action, search, the stale note, the shown-once note), then one
card: a grid table whose header and rows share the same columns. A key that was never used
since it was made sits on a warm row with the reason spelled out. */
.ak-root { display: flex; flex-direction: column; height: 100vh; min-width: 0; background: var(--v2-bg); }
.ak-head { flex: none; padding: 30px 36px 18px; background: #fff; border-bottom: 1px solid var(--v2-line); }
.ak-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.ak-head h1 { margin: 0 0 7px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.ak-sub { margin: 0; font-size: 14px; color: var(--v2-sec); }
.ak-primary { flex: none; font: inherit; font-size: 13.5px; font-weight: 600; padding: 11px 18px; border: 0; border-radius: 8px;
background: var(--v2-accent); color: #fff; cursor: pointer; }
.ak-primary:hover { background: var(--v2-accent-hover, #1447c4); }
.ak-primary:disabled { opacity: .5; cursor: default; }
.ak-secondary { font: inherit; font-size: 13px; font-weight: 500; padding: 10px 16px; background: transparent; border: 1px solid #e0dcd9; border-radius: 8px; cursor: pointer; color: var(--v2-body); }
.ak-secondary:hover { border-color: var(--v2-cap); }
.ak-danger { font: inherit; font-size: 13px; font-weight: 600; padding: 10px 18px; background: var(--v2-orange); border: 0; border-radius: 8px; cursor: pointer; color: #fff; }
.ak-tools { display: flex; align-items: center; gap: 12px 16px; margin-top: 20px; flex-wrap: wrap; }
.ak-search { width: 260px; max-width: 100%; font: inherit; font-size: 13.5px; padding: 9px 12px; background: #fff; border: 1px solid #e0dcd9; border-radius: 8px; color: var(--v2-ink); }
.ak-search:focus { outline: none; border-color: var(--v2-accent); }
.ak-once { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--v2-cap); }
.ak-once iconify-icon { font-size: 15px; color: var(--v2-dis, #b8b2ad); }
.ak-body { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 36px 34px; }
.ak-err { margin-bottom: 14px; padding: 12px 14px; border: 1px solid #f0e2d4; border-radius: 8px; background: #fdf9f4; color: #8a6a3c; font-size: 13px; }
.ak-card { border: 1px solid var(--v2-line); border-radius: 10px; background: #fff; overflow: hidden; }
.ak-thead, .ak-row { display: grid; grid-template-columns: minmax(190px, 1fr) 152px 132px 92px 30px; align-items: center; gap: 14px; padding: 13px 20px; }
.ak-thead { padding: 11px 20px; background: var(--v2-bg); border-bottom: 1px solid var(--v2-line);
font-family: var(--v2-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-cap); }
.ak-row { border-bottom: 1px solid #f4f2f0; }
.ak-row:last-child { border-bottom: 0; }
.ak-name { min-width: 0; }
.ak-name b { display: block; font-size: 14px; font-weight: 600; color: var(--v2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-key { font-family: var(--v2-mono); font-size: 12.5px; color: var(--v2-body); white-space: nowrap; }
.ak-last.none { color: var(--v2-cap); }
.ak-last { font-family: var(--v2-mono); font-size: 12px; color: var(--v2-body); white-space: nowrap; }
.ak-created { font-family: var(--v2-mono); font-size: 12px; color: var(--v2-cap); white-space: nowrap; }
.ak-dots { justify-self: end; background: transparent; border: 0; border-radius: 6px; padding: 4px 6px; cursor: pointer; color: var(--v2-cap); font-size: 16px; line-height: 0; }
.ak-dots:hover, .ak-dots[aria-expanded="true"] { background: #f5f5f4; color: var(--v2-ink); }
.ak-menu .uic-pop-item.danger { color: var(--v2-orange); }
.ak-empty { padding: 34px 20px; text-align: center; font-size: 13.5px; color: var(--v2-sec); line-height: 1.6; }
.ak-skel { height: 18px; margin: 15px 20px; border-radius: 6px; background: linear-gradient(90deg, #f5f5f4, #fafaf9, #f5f5f4); background-size: 200% 100%; animation: us-shimmer 1.2s linear infinite; }
@media (prefers-reduced-motion: reduce) { .ak-skel { animation: none; } }
/* Dialogs, the design's 520px sheet: title, body, a footer bar. */
.ak-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(28,25,23,.34); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ak-modal { width: 520px; max-width: 100%; max-height: 100%; overflow: auto; background: #fff; border-radius: 12px; box-shadow: 0 30px 70px -30px rgba(28,25,23,.5); }
.ak-modal-body { padding: 24px 26px 20px; }
.ak-modal h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--v2-ink); }
.ak-modal-sub { font-size: 13px; color: var(--v2-sec); margin-top: 6px; line-height: 1.5; }
.ak-field { margin-top: 20px; }
.ak-field-k { font-family: var(--v2-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-cap); margin-bottom: 7px; }
.ak-field input { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; padding: 11px 13px; background: #fff; border: 1px solid #e0dcd9; border-radius: 8px; color: var(--v2-ink); }
.ak-field input:focus { outline: none; border-color: var(--v2-accent); }
.ak-field select { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; padding: 11px 13px; background: #fff; border: 1px solid #e0dcd9; border-radius: 8px; color: var(--v2-ink); }
.ak-field select:focus { outline: none; border-color: var(--v2-accent); }
.ak-field-help { margin-top: 7px; font-size: 12.5px; line-height: 1.45; color: var(--v2-cap); }
.ak-warn { display: flex; gap: 11px; margin-top: 18px; padding: 13px 15px; border: 1px solid #f0e2d4; border-radius: 8px; background: #fdf9f4; }
.ak-warn i { font-style: normal; color: var(--v2-orange); font-size: 13px; line-height: 1.5; flex: none; font-weight: 700; }
.ak-warn span { font-size: 12.5px; line-height: 1.6; color: #8a6a3c; }
.ak-secret { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--v2-line); border-radius: 8px; background: var(--v2-bg); }
.ak-secret code { flex: 1; min-width: 0; font-family: var(--v2-mono); font-size: 13px; color: var(--v2-ink); word-break: break-all; }
.ak-copy { flex: none; font: inherit; font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 8px; cursor: pointer; border: 1px solid #e0dcd9; background: #fff; color: var(--v2-ink); }
.ak-copy.is-copied { border-color: var(--v2-green-border); background: var(--v2-green-bg); color: var(--v2-green); }
.ak-modal-note { font-size: 12.5px; color: var(--v2-cap); margin-top: 12px; }
.ak-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 14px 26px; border-top: 1px solid #f0eeec; background: var(--v2-bg); }
@media (max-width: 820px) {
.ak-thead, .ak-row { grid-template-columns: minmax(140px, 1fr) 130px 110px 30px; gap: 12px; }
.ak-created, .ak-th-created { display: none; }
}
@media (max-width: 768px) {
.ak-root { height: calc(100vh - var(--v2-mobilebar-h)); }
.ak-head { padding: 20px 16px 14px; }
.ak-body { padding: 16px 16px 24px; }
.ak-search { width: 100%; }
.ak-once { margin-left: 0; }
}
@media (max-width: 480px) {
.ak-thead, .ak-row { grid-template-columns: minmax(100px, 1fr) 118px 30px; gap: 10px; padding-left: 14px; padding-right: 14px; }
.ak-last, .ak-th-last { display: none; }
.ak-name b { white-space: normal; }
}
/* ── Agent harnesses (终版): panel of harnesses with their tasks, plus one main area ────────
Full-bleed like Arena: the page owns everything right of the nav. The panel is 288px on
white; the main area is a white header block over a scrolling body. */
.hx-root { display: flex; height: 100vh; min-width: 0; background: var(--v2-bg); }
.hx-side { width: 288px; flex: none; background: #fff; border-right: 1px solid var(--v2-line); display: flex; flex-direction: column; min-height: 0; }
.hx-side-head { flex: none; padding: 18px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.hx-side-title { font-size: 14.5px; font-weight: 600; color: var(--v2-ink); padding: 0 4px; }
.hx-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid #e0dcd9; border-radius: 8px; background: #fff; color: var(--v2-cap); }
.hx-search:focus-within { border-color: var(--v2-accent); }
.hx-search iconify-icon { font-size: 15px; flex: none; }
.hx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 13px; color: var(--v2-ink); }
.hx-side-fixed { flex: none; padding-top: 4px; }
.hx-side-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 0 14px; }
.hx-index { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 18px; border: 0; background: none; cursor: pointer;
font: inherit; font-size: 13.5px; font-weight: 500; color: var(--v2-body); text-align: left; }
.hx-index iconify-icon { font-size: 16px; color: var(--v2-cap); }
.hx-index b { margin-left: auto; font-family: var(--v2-mono); font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 999px; background: #f5f5f4; color: var(--v2-cap); }
.hx-index.is-on { background: var(--v2-tint); color: var(--v2-ink); font-weight: 600; }
.hx-index.is-on::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2.5px; border-radius: 0 2px 2px 0; background: var(--v2-accent); }
.hx-div { height: 1px; margin: 8px 0 6px; background: var(--v2-div); }
/* the tree's two groups: yours first, the system's below; a quiet header with a count */
.hx-group { padding: 4px 0 2px; }
.hx-group + .hx-group { margin-top: 6px; border-top: 1px solid var(--v2-line); padding-top: 8px; }
.hx-group-btn { display: flex; align-items: center; gap: 7px; width: 100%; padding: 6px 12px 6px 14px; border: 0; background: none; cursor: pointer; color: var(--v2-sec); font: inherit; text-align: left; }
.hx-group-btn:hover { color: var(--v2-ink); }
.hx-group-row { display: flex; align-items: center; padding-right: 8px; }
.hx-group-row .hx-group-btn { flex: 1; min-width: 0; }
.hx-group-row .hx-group-add { opacity: 0; }
.hx-group-row:hover .hx-group-add, .hx-group-add:focus-visible { opacity: 1; }
.hx-group-btn .hx-caret { font-size: 14px; color: var(--v2-cap); flex: none; }
.hx-group-label { font-size: 13px; font-weight: 500; }
.hx-group-count { font-family: var(--v2-mono); font-size: 10.5px; color: var(--v2-cap); }
.hx-group-empty { padding: 2px 18px 8px 34px; font-size: 12px; color: var(--v2-cap); line-height: 1.5; }
.hx-proj-row { display: flex; align-items: center; gap: 2px; padding: 2px 8px 2px 10px; }
.hx-proj-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 6px 4px; border: 0; background: none; cursor: pointer;
font: inherit; text-align: left; color: var(--v2-ink); }
.hx-caret { font-size: 14px; color: var(--v2-cap); flex: none; }
.hx-proj-name { font-size: 13px; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-proj-badge { flex: none; font-family: var(--v2-mono); font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 999px; background: var(--v2-tint); color: var(--v2-accent); }
.hx-ic { display: grid; place-items: center; width: 24px; height: 24px; flex: none; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--v2-cap); cursor: pointer; font-size: 14px; opacity: 0; }
.hx-proj-row:hover .hx-ic, .hx-ic:focus-visible, .hx-proj.is-current .hx-ic { opacity: 1; }
.hx-ic:hover { background: #f5f5f4; color: var(--v2-ink); }
.hx-tasks { position: relative; padding: 0 0 4px; }
/* The tree guide: a hairline under the caret, so the tasks read as the harness's children. */
.hx-tasks::before { content: ''; position: absolute; left: 21px; top: 0; bottom: 6px; width: 1px; background: var(--v2-line); }
.hx-tasks-empty { padding: 5px 14px 6px 34px; font-size: 12px; color: var(--v2-cap); }
.hx-tasks-skel .hx-task-row { gap: 9px; padding: 8px 14px 8px 34px; }
.hx-skel-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.hx-skel-bar { height: 11px; border-radius: 5px; }
.hx-task { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 14px 6px 32px; border: 0; background: none; cursor: pointer;
font: inherit; text-align: left; }
.hx-task span { font-size: 13px; color: var(--v2-body); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-task.is-on { background: var(--v2-tint); }
.hx-task.is-on span { color: var(--v2-ink); font-weight: 600; }
.hx-task.is-on::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2.5px; border-radius: 0 2px 2px 0; background: var(--v2-accent); }
.hx-dot { width: 5px; height: 5px; border-radius: 50%; flex: none; background: var(--v2-cap); }
.hx-dot.is-done { background: var(--v2-green); } .hx-dot.is-running { background: var(--v2-accent); } .hx-dot.is-failed { background: var(--v2-orange); }
.hx-empty { padding: 18px 16px; font-size: 13px; color: var(--v2-cap); }
.hx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.hx-head { flex: none; padding: 16px 28px 0; background: #fff; border-bottom: 1px solid var(--v2-line); }
/* With tabs, the header's bottom line is the tabs' baseline: the tabs row (rendered by the
conversation below) carries the one line, so the header itself draws none. */
.hx-head.has-tabs { border-bottom: 0; }
.hx-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 14px; }
.hx-head.has-tabs .hx-head-row { padding-bottom: 0; }
.hx-head-lead { min-width: 0; }
.hx-back { display: none; }
.hx-crumb { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--v2-cap); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-crumb-cfg { font-family: var(--v2-mono); font-size: 11px; }
.hx-crumb-sep { color: #d6d3d1; }
.hx-title-row { display: flex; align-items: center; gap: 10px; margin-top: 5px; min-width: 0; }
.hx-title { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--v2-ink); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-pill { flex: none; font-family: var(--v2-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #f5f5f4; color: var(--v2-sec); }
.hx-pill.is-done { background: rgba(21, 128, 61, .08); color: #15803d; }
.hx-pill.is-running { background: rgba(26, 92, 245, .08); color: #1a5cf5; }
.hx-pill.is-failed { background: rgba(180, 70, 15, .08); color: #b4460f; }
.hx-more { display: block; margin: 2px 0 4px 26px; padding: 4px 8px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 12px; color: var(--v2-accent); cursor: pointer; }
.hx-more:hover { background: var(--v2-row, #f3f2f0); }
.hx-more:disabled { color: var(--v2-cap); cursor: default; }
/* ── the conversation, per the design: captions above turns, a tinted user bubble, the agent's
reply as plain text (no card), file cards with an extension badge and a plain Preview link ── */
.run-layout.is-embedded .wbx-conv-main { background: var(--v2-bg); }
.run-layout.is-embedded .wbx-browser-pane { background: var(--v2-bg); } /* the browser card's column: no seam beside the conversation */
.run-layout.is-embedded .wbx-conv-msgs { --uic-cap: var(--v2-cap); --uic-mono: var(--v2-mono); --uic-bubble-max-w: 640px; gap: 20px; }
.run-layout.is-embedded .wbx-turn.user .wbx-bubble-user { background: #f0f3fe; color: var(--v2-ink); border-radius: 12px; padding: 13px 17px; font-size: 15px; line-height: 1.65; text-wrap: pretty; }
.run-layout.is-embedded .wbx-turn.asst > * { max-width: 640px; }
.run-layout.is-embedded .wbx-turn.asst .wbx-md { font-size: 15px; line-height: 1.65; color: var(--v2-ink); text-wrap: pretty; }
.run-layout.is-embedded .wbx-files { max-width: 640px; margin-top: 10px; gap: 10px; }
.run-layout.is-embedded .wbx-filecard { gap: 12px; padding: 11px 13px; border: 1px solid var(--v2-line); border-radius: 10px; background: #fff; transition: border-color 110ms, background 110ms; }
.run-layout.is-embedded .wbx-filecard:hover { border-color: #c9d5f7; background: var(--v2-tint); }
.run-layout.is-embedded .wbx-filecard-ic { width: 30px; flex: none; }
.run-layout.is-embedded .wbx-filecard-name { font-size: 13.5px; font-weight: 600; color: var(--v2-ink); }
.run-layout.is-embedded .wbx-filecard-sub { font-family: var(--v2-mono); font-size: 11px; color: var(--v2-cap); margin-top: 2px; }
.run-layout.is-embedded .wbx-filecard-dl { color: var(--v2-cap); }
.run-layout.is-embedded .wbx-filecard-open { border: 0; padding: 0; font-size: 12.5px; font-weight: 500; color: var(--v2-accent); }
/* the tabs, per the design, with the Trace count: the row sits in the white header band and its
one line is the header's bottom line */
.run-layout.is-embedded .task-detail-shell { background: #fff; padding: 0 28px; border-bottom: 1px solid var(--v2-line); }
.run-layout.is-embedded .tabs { display: flex; gap: 24px; margin: 14px 0 0; border-bottom: 0; }
.run-layout.is-embedded .tabs .tab { display: flex; align-items: center; gap: 8px; min-height: 0; padding: 10px 2px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; color: #8a827c; }
.run-layout.is-embedded .tabs .tab[aria-selected="true"] { color: var(--v2-ink); border-color: var(--v2-accent); }
.hx-badges { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.hx-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: var(--v2-row, #f3f2f0);
font-family: var(--v2-mono); font-size: 11px; color: var(--v2-sec); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hx-badge iconify-icon { font-size: 12px; color: var(--v2-cap); }
.hx-head-actions { flex: none; display: flex; gap: 8px; }
.hx-primary { font: inherit; font-size: 13.5px; font-weight: 600; padding: 10px 16px; border: 0; border-radius: 8px; background: var(--v2-accent); color: #fff; cursor: pointer; }
.hx-primary:hover { background: var(--v2-accent-hover, #1447c4); }
.hx-head-actions .hx-secondary, .hx-secondary { font: inherit; font-size: 13px; font-weight: 500; line-height: normal; padding: 8px 14px; border: 1px solid #e0dcd9; border-radius: 8px; background: #fff; color: var(--v2-body); cursor: pointer; }
.hx-secondary:hover { border-color: var(--v2-cap); }
.hx-secondary { font: inherit; font-size: 13px; font-weight: 500; padding: 9px 14px; border: 1px solid #e0dcd9; border-radius: 8px; background: #fff; color: var(--v2-body); cursor: pointer; }
.hx-secondary:hover { border-color: var(--v2-cap); }
.hx-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 28px 30px; }
.hx-body.is-chat { padding: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--v2-bg); }
.hx-empty-main { padding: 34px 20px; text-align: center; font-size: 13.5px; color: var(--v2-sec); line-height: 1.6; }
/* The embedded task conversation fills the body; the Tasks page card chrome is gone. */
.hx-body.is-chat .run-layout.is-embedded { height: 100%; max-height: none; min-height: 0; border: 0; border-radius: 0; grid-template-columns: minmax(0, 1fr); }
.hx-body.is-chat .run-layout.is-embedded .task-detail-shell { padding: 0 28px; }
.hx-body.is-chat .run-layout.is-embedded .task-detail-shell .tabs { margin: 14px 0 0; }
/* Embedded in the unified page, the settings action bar belongs to the settings pane: white,
pinned to the pane's bottom edge from first paint, spanning it edge to edge — never fixed
across the viewport (the old standalone rule overlaid the task panel and clipped Delete under
the nav). Three parts make that true: the pane's padding moves onto .page so the bar can
escape it with matching negative margins; .page stops being an overflow context so the sticky
scrollport is .hx-body, the thing that actually scrolls; and the bar itself sits OUTSIDE the
980px form in the markup, so its box is the pane, not the form. */
#view-harnesses .hx-body:has(#view-harness) { padding: 0; }
#view-harnesses #view-harness .page { overflow: visible; padding: 22px 28px 0; max-width: none; }
#view-harnesses #view-harness .settings-form { padding-bottom: 0; }
#view-harnesses #view-harness .settings-footer-sticky { position: sticky; left: auto; right: auto;
bottom: 0; margin: 18px -28px 0; padding: 12px 28px; background: #fff;
border-top: 1px solid var(--v2-line); z-index: 5; }
@media (max-width: 1024px) {
#view-harnesses #view-harness .page { padding: 14px 16px 0; }
#view-harnesses #view-harness .settings-footer-sticky { margin: 14px -16px 0; padding: 12px 16px; }
}
/* The embedded settings drop the page frame: no back link, no detail header, the host has both. */
#view-harness.is-embedded .page { padding: 0; max-width: none; }
/* The index table. */
.hx-index-note { font-family: var(--v2-mono); font-size: 11px; color: var(--v2-cap); margin: 0 0 12px 2px; }
.hx-card { border: 1px solid var(--v2-line); border-radius: 10px; background: #fff; overflow: hidden; }
.hx-thead, .hx-row { display: grid; grid-template-columns: minmax(200px, 1.6fr) 168px 92px 150px 56px 68px 62px 70px 84px 14px; align-items: center; gap: 14px; padding: 12px 20px; }
.hx-thead { padding: 11px 20px; background: var(--v2-bg); border-bottom: 1px solid var(--v2-line); font-family: var(--v2-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-cap); }
.hx-row { width: 100%; border: 0; border-bottom: 1px solid #f4f2f0; background: #fff; cursor: pointer; font: inherit; text-align: left; color: inherit; }
.hx-row:last-child { border-bottom: 0; }
.hx-row:hover { background: var(--v2-bg); }
.hx-row-name { min-width: 0; }
.hx-row-name b { display: block; font-size: 13.5px; font-weight: 600; color: var(--v2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-row-name small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--v2-cap); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-row-id { min-width: 0; display: flex; font-family: var(--v2-mono); font-size: 11.5px; color: var(--v2-sec); }
.hx-row-id .mono-id { max-width: 100%; min-width: 0; } /* the chip shrinks to its column and truncates; never past it */
.hx-health { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--v2-green); }
.hx-health i { width: 6px; height: 6px; border-radius: 50%; background: var(--v2-green); flex: none; }
.hx-health.is-idle { color: var(--v2-cap); } .hx-health.is-idle i { background: #c4beba; }
.hx-health.is-degraded { color: var(--v2-orange); } .hx-health.is-degraded i { background: var(--v2-orange); }
.hx-row-rt { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hx-row-rt > span { min-width: 0; display: flex; flex-direction: column; }
.hx-row-rt b { font-size: 12.5px; font-weight: 600; color: var(--v2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-row-rt small { font-family: var(--v2-mono); font-size: 10.5px; color: var(--v2-cap); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-num { font-family: var(--v2-mono); font-size: 12.5px; color: var(--v2-body); font-variant-numeric: tabular-nums; }
.hx-num.is-bad { color: var(--v2-orange); }
.hx-row-chev { color: var(--v2-cap); }
/* Add harness sheet extras (on the keys page's sheet). */
.hx-add { width: 560px; }
.hx-add-help { font-size: 12px; color: var(--v2-cap); margin-top: 7px; line-height: 1.5; }
.hx-bases { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.hx-base { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid #eceae9; border-radius: 8px; background: #fff;
cursor: pointer; font: inherit; text-align: left; color: var(--v2-ink); }
.hx-base.is-on { background: var(--v2-tint); border-color: var(--v2-tint-border); }
.hx-base-copy { min-width: 0; display: flex; flex-direction: column; }
.hx-base-copy b { font-size: 13.5px; font-weight: 600; } .hx-base.is-on .hx-base-copy b { color: var(--v2-accent); }
.hx-base-copy small { font-size: 11.5px; line-height: 1.45; color: var(--v2-cap); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-base-def { font-family: var(--v2-mono); font-size: 11px; color: var(--v2-cap); flex: none; }
.hx-add-select { width: 100%; font: inherit; font-size: 14px; padding: 10px 38px 10px 12px; border: 1px solid #e0dcd9; border-radius: 8px; color: var(--v2-ink); appearance: none; -webkit-appearance: none;
background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 12px center; }
.hx-add-next { flex: 1; font-size: 12px; color: var(--v2-cap); }
/* The nav's image icon sits like an iconify glyph. */
.v2-item .v2-item-img { width: 16px; height: 16px; flex: none; object-fit: contain; opacity: .9; }
.v2-item[aria-current='page'] .v2-item-img { opacity: 1; }
/* The table sheds columns by the width it actually has (the main area, which depends on the nav
and the panel), never by the viewport: container queries on the index wrap. */
.hx-index-wrap { container-type: inline-size; }
@container (max-width: 1140px) { /* the full grid needs 1130px; shed the id column before it can overflow */
.hx-thead, .hx-row { grid-template-columns: minmax(170px, 1.6fr) 92px 130px 56px 68px 62px 70px 78px 14px; gap: 12px; }
.hx-th-id { display: none; }
}
@container (max-width: 900px) {
.hx-thead, .hx-row { grid-template-columns: minmax(170px, 1.6fr) 92px 130px 56px 68px 62px 70px 14px; }
.hx-th-last { display: none; }
}
@container (max-width: 780px) {
.hx-thead, .hx-row { grid-template-columns: minmax(160px, 1.6fr) 92px 56px 68px 62px 70px 14px; }
.hx-th-rt { display: none; }
}
@container (max-width: 620px) {
.hx-thead, .hx-row { grid-template-columns: minmax(140px, 1.6fr) 92px 56px 68px 14px; gap: 10px; }
.hx-th-p95, .hx-th-cpt { display: none; }
}
@container (max-width: 440px) {
.hx-thead, .hx-row { grid-template-columns: minmax(120px, 1fr) 84px 44px 14px; padding-left: 14px; padding-right: 14px; }
.hx-th-success { display: none; }
}
.hx-icbtn { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #e0dcd9; border-radius: 8px; background: #fff; color: var(--v2-body); cursor: pointer; font-size: 15px; }
.hx-icbtn:hover { border-color: var(--v2-cap); color: var(--v2-ink); }
@media (max-width: 1024px) {
.hx-side { width: 250px; }
}
@media (max-width: 820px) {
.hx-root { height: calc(100vh - var(--v2-mobilebar-h)); }
.hx-root:not(.m-detail) .hx-main { display: none; }
.hx-root.m-detail .hx-side { display: none; }
.hx-side { width: 100%; border-right: 0; }
.hx-back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 8px -6px; border: 0; background: none; color: var(--v2-sec); font: inherit; font-size: 13px; cursor: pointer; }
.hx-head { padding: 14px 16px 0; }
.hx-body { padding: 14px 16px 24px; }
.hx-ic { opacity: 1; }
.hx-add { width: 100%; }
}
/* A fresh task draft: the harness, named under its base's mark, above a centered composer. */
.wbx-conv-main.is-hero { display: flex; flex-direction: column; justify-content: center; }
.wbx-conv-main.is-hero .wbx-conv-msgs { flex: 0 0 auto; padding: 0 0 6px; overflow: visible; align-items: center; }
.wbx-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
.wbx-hero h1 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--v2-ink); min-width: 0; }
.wbx-hero h1 span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wbx-conv-main.is-hero .wbx-composer { margin: 0 auto; }
/* One measure for the whole conversation: the message rows and the composer share a 760px
column, centered, whether the thread is a fresh draft or long. The scroll container itself
stays full width so the scrollbar sits at the pane edge; each row centers inside it. Rows
inset their text 16px so it lines up with the text inside the composer's frame. */
.wbx-conv-main .wbx-composer { width: min(780px, calc(100% - 56px)); margin: 10px auto 20px; }
.wbx-conv-msgs { --uic-turn-pad-x: 0px; padding: 24px 0 12px; gap: 20px; }
.wbx-conv-msgs > * { box-sizing: border-box; width: min(780px, calc(100% - 56px)); margin-left: auto; margin-right: auto; }
@media (max-width: 768px) {
.wbx-hero h1 { font-size: 22px; }
.wbx-conv-main .wbx-composer, .wbx-conv-msgs > * { width: calc(100% - 24px); }
}
/* ── Arena v2: hero-to-run layout, full-bleed ─────────────────────────────────────────────────
First principles on sizing: the page owns the full space right of the nav (no .page gutters,
no max-height card) — .v2-main supplies the left margin that tracks the rail, and this root
fills the rest, so collapsing the sidebar simply gives the columns more room. */
.ar2-root { display: flex; height: 100vh; min-width: 0; background: var(--v2-bg); }
.ar2-side { width: 250px; flex: none; background: #fff; border-right: 1px solid var(--v2-line);
display: flex; flex-direction: column; min-height: 0; }
.ar2-side-head { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--v2-div); }
/* SearchField (reifyui) sized to fill the header row */
.ar2-search { flex: 1; min-width: 0; height: 32px; }
.ar2-search input { width: 100%; font-size: 13px; }
.ar2-new { flex: none; width: 32px; border: 1px solid #e0dcd9; border-radius: 8px; background: #fff;
color: var(--v2-body); cursor: pointer; display: grid; place-items: center; font-size: 15px; }
.ar2-new:hover { border-color: var(--v2-tint-border); color: var(--v2-accent); }
.ar2-side-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.ar2-foreign { margin: 10px 10px 4px; padding: 9px 11px; border: 1px solid #f0e2d4; border-radius: 8px; background: #fdf9f4;
color: #8a6a3c; font-size: 12px; line-height: 1.5; }
.ar2-foreign b { font-weight: 600; }
.ar2-foreign button { display: block; margin-top: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 12px;
color: var(--v2-accent); cursor: pointer; }
.ar2-foreign button:hover { text-decoration: underline; }
/* Flat rows, no card margins: the list IS the panel. */
.ar2-row { position: relative; display: flex; flex-direction: column; gap: 2px;
padding: 10px 12px; border-bottom: 1px solid var(--v2-row); }
.ar2-row.active { background: var(--v2-tint); box-shadow: inset 2.5px 0 0 var(--v2-accent); }
.ar2-row-hit { position: absolute; inset: 0; border: 0; background: none; cursor: pointer; }
.ar2-row-name { font-size: 13.5px; font-weight: 600; color: var(--v2-ink);
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 22px; pointer-events: none; }
.ar2-row-meta { font-family: var(--v2-mono); font-size: 11px; color: var(--v2-cap); pointer-events: none; }
.ar2-row-del { position: absolute; right: 6px; top: 8px; display: none; border: 0; background: none;
color: var(--v2-cap); cursor: pointer; padding: 4px; border-radius: 6px; }
.ar2-row:hover .ar2-row-del, .ar2-row-del:focus-visible { display: inline-flex; }
.ar2-row-del:hover { color: var(--v2-orange); background: #fff; }
.ar2-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; position: relative; }
.ar2-back { display: none; }
/* HERO: dead-center composer with the route list under it. */
.ar2-hero { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column;
align-items: center; justify-content: center; padding: 32px 24px; }
.ar2-hero h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 22px; text-align: center; }
/* THE chat box — one card for both states (task on top, tray below, per the design). */
/* One width in both states: a reading-width box, centered, so a long route list wraps inside it
instead of stretching the box across a wide screen. */
.ar2-box { width: min(760px, 100%); margin: 0 auto; background: #fff; border: 1px solid var(--v2-line);
border-radius: 20px; box-shadow: 0 10px 34px rgba(28,25,23,.07); overflow: hidden; }
/* One inset for everything in the box: the + button, the text, and the route chips under them
all start on the same left edge, 10px in. The tray gets its own breathing room above. */
.ar2-box .wbx-composer, .ar2-box .uic-composer { border: 0; box-shadow: none; border-radius: 0; margin: 0; max-width: none;
padding: 8px 10px 10px; }
.ar2-box .uic-composer-line { padding: 0; }
.ar2-box .uic-composer-tray { margin-top: 8px; padding: 0; }
/* A route chip: harness, then its model in mono, then a chevron that says "this opens". The whole
chip is the press target for the model menu; the ✕ stays its own control. */
.ar2-route-model { font-family: var(--v2-mono); font-size: 11.5px; color: var(--v2-sec);
min-width: 0; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar2-route-chev { font-size: 13px; color: var(--v2-cap); align-self: center; line-height: 0; }
.ar2-chip.is-menu-open { border-color: var(--v2-accent); }
.ar2-chip:disabled { opacity: .5; cursor: default; }
.ar2-chip:disabled:hover { border-color: var(--v2-line); color: var(--v2-sec); }
.ar2-chip .uic-chip-press:hover .ar2-route-model, .ar2-chip .uic-chip-press:hover .ar2-route-chev { color: inherit; }
/* RUN: columns fill everything above the bottom composer.
Sizing is one rule, not a media matrix: every column is `flex: 1 1 0` with a minimum width.
While N × min + gaps fits the row, flex shares the width evenly (one column takes it all);
past that, min-width stops the shrink and the row scrolls sideways at exactly min each.
The gutters are margins on the first and last column rather than padding on the scroller,
because a scroller's end padding is not part of its scrollable overflow in every engine. */
.ar2-cols { flex: 1; min-height: 0; display: flex; gap: 10px; padding: 12px 0 8px;
overflow-x: auto; overflow-y: hidden; }
.ar2-cols[hidden] { display: none; }
.ar2-cols .arena-col { flex: 1 1 0; min-width: 400px; height: 100%;
margin: 0; display: flex; flex-direction: column; min-height: 0; }
.ar2-cols .arena-col:first-child { margin-left: 12px; }
.ar2-cols .arena-col:last-child { margin-right: 12px; }
.ar2-bottom { flex: none; padding: 6px 12px 12px; background: var(--v2-bg); }
.ar2-bottom .ar2-box { box-shadow: 0 4px 18px rgba(28,25,23,.06); }
/* Tablet: narrower history. */
@media (max-width: 1024px) {
.ar2-side { width: 220px; }
.ar2-cols .arena-col { min-width: 340px; }
}
/* Phone: list and detail alternate, same as Tasks; the root sits under the mobile top bar. */
@media (max-width: 768px) {
.ar2-root { height: calc(100vh - var(--v2-mobilebar-h)); }
.ar2-root:not(.m-detail) .ar2-main { display: none; }
.ar2-root.m-detail .ar2-side { display: none; }
.ar2-side { width: 100%; border-right: 0; }
.ar2-back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
margin: 8px 12px 0; border: 0; background: none; color: var(--v2-sec); font-size: 13px; cursor: pointer; }
.ar2-cols { padding: 8px 0 6px; gap: 8px; }
.ar2-cols .arena-col { min-width: 86vw; }
.ar2-cols .arena-col:first-child { margin-left: 8px; }
.ar2-cols .arena-col:last-child { margin-right: 8px; }
.ar2-bottom { padding: 6px 8px 10px; }
.ar2-hero h1 { font-size: 22px; }
}
/* ── the task composer: the Arena box and layout (attach square left, Send pill right, the route
chip in the tray) so the two chat surfaces are one thing ── */
.run-layout.is-embedded .wbx-composer { padding: 14px 16px; background: #fff; border: 1px solid var(--v2-line); border-radius: 20px; box-shadow: 0 10px 34px rgba(28,25,23,.07); overflow: hidden; }
.run-layout.is-embedded .uic-composer-line { padding: 0; }
.run-layout.is-embedded .uic-composer-tray { margin-top: 8px; padding: 0; }
.run-layout.is-embedded .wbx-attach-row.in-composer { margin: 0 0 10px; }
.wbx-model-pop { background: #fff; border: 1px solid var(--v2-line); border-radius: 10px; padding: 6px; box-shadow: 0 -14px 36px -16px rgba(28, 25, 23, .3); }
.wbx-model-head { font-family: var(--v2-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-cap); padding: 6px 10px 5px; }
.wbx-model-opt { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 8px 10px; background: transparent; border: 0; border-radius: 6px; cursor: pointer; text-align: left; font: inherit; font-size: 13.5px; color: var(--v2-ink); }
.wbx-model-opt:hover { background: #f5f5f4; }
.wbx-model-opt.is-on { color: var(--v2-accent); font-weight: 600; }
.wbx-model-opt:disabled { color: var(--v2-cap); cursor: default; }
.wbx-model-meta { font-family: var(--v2-mono); font-size: 10.5px; color: var(--v2-cap); }
/* the community marks above the account row (expanded sidebar only) */
.v2-socials { display: flex; align-items: center; gap: 2px; padding: 0 8px 4px; }
.v2-social { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: var(--v2-cap); font-size: 16px; text-decoration: none; }
.v2-social:hover { background: var(--v2-row); color: var(--v2-ink); }
button.v2-social { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
button.v2-social:hover { background: var(--v2-row); }
/* Book a call: the homepage's dialog (harnessrouter.ai globals.css, .book-demo-*), the Calendly page in a
frame with our mark until it is running. */
.book-demo-dialog { margin: auto; width: min(720px, calc(100vw - 32px)); height: min(780px, calc(100dvh - 48px));
padding: 0; border: none; border-radius: 16px; overflow: hidden; background: #fff; position: relative; }
.book-demo-dialog::backdrop { background: rgba(12, 14, 20, 0.55); }
.book-demo-close { position: absolute; top: 10px; right: 10px; z-index: 3; display: inline-flex; align-items: center;
justify-content: center; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(12, 14, 20, 0.06);
color: var(--v2-ink); font-size: 18px; cursor: pointer; }
.book-demo-close:hover { background: rgba(12, 14, 20, 0.12); }
.book-demo-frame { width: 100%; height: 100%; border: none; display: block; }
.book-demo-loading { z-index: 2; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
justify-content: center; gap: 6px; background: #fff; text-align: center; padding: 24px; opacity: 1; transition: opacity 320ms ease-out; }
.book-demo-loading-done { opacity: 0; pointer-events: none; }
.book-demo-loading-mark { margin-bottom: 16px; animation: book-demo-pulse 1.6s ease-in-out infinite; }
.book-demo-loading-title { max-width: 360px; margin: 0; font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em;
color: var(--v2-ink); text-wrap: balance; }
.book-demo-loading-title em { color: var(--v2-accent); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; }
.book-demo-loading-subtitle { margin: 10px 0 0; font-size: 13px; color: var(--v2-cap); }
@keyframes book-demo-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.92); } }
@media (prefers-reduced-motion: reduce) { .book-demo-loading-mark { animation: none; } }
/* ── Quickstart, per the design: four steps on a rail ── */
.qs { display: flex; flex-direction: column; min-height: 100%; }
.qs-head { padding: 30px 36px 18px; background: #fff; border-bottom: 1px solid var(--v2-line); }
.qs-head h1 { margin: 0 0 8px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--v2-ink); }
.qs-head p { margin: 0; font-size: 14px; color: var(--v2-sec); max-width: 640px; }
.qs-progress { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.qs-progress-label { font-family: var(--v2-mono); font-size: 11.5px; color: var(--v2-sec); }
.qs-bar { flex: 1; height: 4px; border-radius: 2px; background: #f0eeec; overflow: hidden; max-width: 260px; }
.qs-bar-fill { display: block; height: 100%; background: var(--v2-accent); transition: width 160ms; }
.qs-bar-fill.is-done { background: #15803d; }
.qs-reset { background: transparent; border: 0; padding: 0; cursor: pointer; font-family: var(--v2-mono); font-size: 11px; color: var(--v2-cap); }
.qs-reset:hover { color: var(--v2-ink); }
.qs-body { flex: 1; min-height: 0; padding: 24px 36px 34px; }
.qs-grid { display: grid; grid-template-columns: 44px 1fr; column-gap: 0; }
.qs-railcell { position: relative; }
.qs-rail { position: absolute; left: 12.5px; top: 22px; bottom: -14px; width: 1.5px; background: #f0eeec; }
.qs-marker { position: absolute; left: 0; top: 22px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--v2-mono); font-size: 11px; font-weight: 600; background: var(--v2-accent); color: #fff; }
.qs-marker.is-done { background: #15803d; }
.qs-card { padding: 22px 24px 24px; margin-bottom: 14px; border: 1px solid var(--v2-line); border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(28, 25, 23, .05); min-width: 0; }
.qs-card.is-done { border-color: #dfe6dd; box-shadow: none; }
.qs-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.qs-title { font-size: 16px; font-weight: 600; color: var(--v2-ink); }
.qs-sub { font-size: 13.5px; color: var(--v2-sec); margin-top: 5px; max-width: 560px; }
.qs-link { font-size: 12.5px; flex: none; color: var(--v2-accent); }
.qs-doc { margin-top: 16px; border: 1px solid var(--v2-line); border-radius: 8px; background: var(--v2-bg); overflow: hidden; }
.qs-doc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #f0eeec; }
.qs-doc-name { font-family: var(--v2-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--v2-cap); }
.qs-doc-meta { font-family: var(--v2-mono); font-size: 10.5px; color: #c4beba; }
.qs-doc-body { margin: 0; padding: 14px 16px; font-family: var(--v2-mono); font-size: 12px; line-height: 1.7; color: var(--v2-body); white-space: pre-wrap; overflow-wrap: anywhere; }
.qs-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.qs-copy { font: inherit; font-size: 13.5px; font-weight: 600; padding: 11px 18px; border: 0; border-radius: 8px; cursor: pointer; background: var(--v2-accent); color: #fff; }
.qs-copy:hover { background: var(--v2-accent-hover, #1447c4); }
.qs-copy.is-done { background: #eaf5ee; color: #15803d; }
/* Copying the guide is the one thing this page is asking for, so the button pulses until it has
been done and then stops — the same beat and shape as the Copy AGENTS.md button on the docs
site (agentCopyPulse there), in the console's own accent. */
.qs-copy:not(.is-done) { animation: qsCopyPulse 1150ms ease-in-out infinite; }
@keyframes qsCopyPulse {
0%, 100% { box-shadow: 0 8px 20px rgba(26, 92, 245, .16); transform: translateY(0); }
35% { box-shadow: 0 0 0 8px rgba(26, 92, 245, .12), 0 14px 30px rgba(26, 92, 245, .24); transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) { .qs-copy:not(.is-done) { animation: none; } }
/* The agent picker sits in step 02, above the mock it changes, so it needs its own top margin
rather than the gap it used to get from .qs-actions. */
.qs-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.qs-chip { display: flex; align-items: center; gap: 7px; font: inherit; font-size: 12.5px; font-weight: 500; padding: 6px 12px 6px 7px; border-radius: 999px; cursor: pointer; border: 1px solid var(--v2-line); background: #fff; color: var(--v2-sec); }
.qs-chip.is-on { font-weight: 600; border-color: #c9d5f7; background: var(--v2-tint); color: var(--v2-ink); }
.qs-chip-mark { width: 17px; height: 17px; border-radius: 5px; flex: none; object-fit: contain; }
.qs-confirm { font: inherit; font-size: 13px; font-weight: 500; padding: 10px 16px; border-radius: 8px; cursor: pointer; border: 1px solid #e0dcd9; background: transparent; color: var(--v2-body); }
.qs-confirm:disabled { cursor: not-allowed; border-color: #f0eeec; color: var(--v2-cap); }
.qs-confirm.is-done { border-color: #cfe4d6; background: #eaf5ee; color: #15803d; }
.qs-kicker { font-family: var(--v2-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-cap); margin: 16px 0 9px; }
.qs-mock { border: 1px solid #e0dcd9; border-radius: 10px; background: #fff; padding: 14px; }
.qs-mock-file { display: inline-flex; align-items: center; gap: 11px; padding: 9px 12px; border: 1px solid #f0eeec; border-radius: 8px; max-width: 100%; }
.qs-mock-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; flex: none; background: var(--v2-tint); }
.qs-mock-mark img { width: 18px; height: 18px; object-fit: contain; }
.qs-mock-file-name { font-size: 13px; font-weight: 600; color: var(--v2-ink); }
.qs-mock-file-meta { font-size: 11.5px; color: var(--v2-cap); margin-top: 2px; }
.qs-mock-x { color: #c4beba; font-size: 13px; margin-left: 6px; }
.qs-mock-prompt { font-size: 15px; line-height: 1.5; margin-top: 14px; color: var(--v2-ink); }
.qs-mock-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.qs-mock-plus { color: #c4beba; font-size: 15px; }
.qs-mock-badge { margin-left: auto; font-family: var(--v2-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #f5f5f4; color: var(--v2-sec); }
.qs-mock-send { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--v2-ink); color: #fff; font-size: 14px; }
.qs-keyrow { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.qs-keybtn { font: inherit; font-size: 13.5px; font-weight: 600; padding: 11px 18px; border-radius: 8px; cursor: pointer; border: 1px solid #e0dcd9; background: #fff; color: var(--v2-ink); }
.qs-keybtn:hover { border-color: var(--v2-cap); }
.qs-keybtn.is-done { border-color: #cfe4d6; background: #eaf5ee; color: #15803d; }
.qs-keybtn:disabled { cursor: default; color: var(--v2-cap); }
.qs-keynote { font-family: var(--v2-mono); font-size: 11.5px; color: var(--v2-cap); }
.qs-err { margin: 10px 0 0; font-size: 12.5px; color: #b4460f; }
.qs-reveal { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid #e0dcd9; border-radius: 8px; background: var(--v2-bg); }
.qs-reveal code { flex: 1; min-width: 0; font-family: var(--v2-mono); font-size: 13px; color: var(--v2-ink); overflow-wrap: anywhere; }
.qs-reveal .qs-confirm { flex: none; }
.qs-warn { display: flex; gap: 11px; margin-top: 14px; padding: 13px 15px; border: 1px solid #f0e2d4; border-radius: 8px; background: #fdf9f4; }
.qs-warn > span:first-child { color: #b4460f; font-size: 13px; line-height: 1.5; flex: none; }
.qs-warn > span:last-child { font-size: 12.5px; line-height: 1.6; color: #8a6a3c; }
.qs-flow { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 18px 20px; border: 1px solid #c9d5f7; border-radius: 10px; background: var(--v2-tint); }
.qs-flow-box { flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid var(--v2-line); border-radius: 8px; background: #fff; font-size: 13.5px; font-weight: 500; text-align: center; color: var(--v2-ink); }
.qs-flow-box.is-cloud { border-color: #c9d5f7; font-weight: 600; color: var(--v2-accent); }
.qs-flow-arrow { color: var(--v2-accent); font-size: 15px; flex: none; }
.qs-flow-note { font-size: 12.5px; color: var(--v2-cap); margin-top: 9px; }
.qs-actions-last { gap: 14px; margin-top: 18px; }
.qs-open { font-size: 13.5px; font-weight: 600; padding: 12px 20px; border-radius: 8px; background: var(--v2-accent); color: #fff; text-decoration: none; }
.qs-open:hover { background: var(--v2-accent-hover, #1447c4); }
.qs-ce { font-size: 12.5px; color: var(--v2-cap); }
.qs-done { margin-top: 26px; padding: 22px 24px; border: 1px solid #cfe4d6; border-radius: 10px; background: #fbfdfb; }
.qs-done-kicker { font-family: var(--v2-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--v2-cap); margin-bottom: 8px; }
.qs-done-title { font-size: 17px; font-weight: 600; color: var(--v2-ink); }
.qs-next { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.qs-next-card { display: flex; flex-direction: column; gap: 4px; min-width: 220px; padding: 14px 16px; text-align: left; background: #fff; border: 1px solid var(--v2-line); border-radius: 8px; text-decoration: none; color: inherit; }
.qs-next-card:hover { border-color: var(--v2-accent); }
.qs-next-title { font-size: 14px; font-weight: 600; color: var(--v2-ink); }
.qs-next-body { font-size: 12.5px; color: var(--v2-sec); }
.v2-item-badge { margin-left: auto; font-family: var(--v2-mono); font-size: 9.5px; font-weight: 600; min-width: 18px; text-align: center; padding: 2px 6px; border-radius: 999px; background: var(--v2-ink); color: #fff; }
.v2-side.is-rail .v2-item-badge { display: none; }
@media (max-width: 768px) {
.qs-head { padding: 20px 16px 14px; }
.qs-head h1 { font-size: 22px; }
.qs-body { padding: 16px 12px 24px; }
.qs-grid { grid-template-columns: 34px 1fr; }
.qs-marker { width: 22px; height: 22px; font-size: 10px; top: 20px; }
.qs-rail { left: 10.5px; }
.qs-card { padding: 16px 16px 18px; }
.qs-card-head { flex-direction: column; gap: 6px; }
.qs-confirm { width: 100%; }
.qs-flow { flex-direction: column; }
.qs-flow-box { width: 100%; box-sizing: border-box; }
.qs-flow-arrow { transform: rotate(90deg); }
.qs-next-card { min-width: 0; flex: 1 1 100%; }
}
/* ── active-work billing (v2) preview on Billing, staging only ── */
.b2 { margin: 18px 0 22px; padding: 20px 22px 8px; border: 1px solid #c9d5f7; border-radius: 12px; background: #fff; }
.b2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.b2-kicker { font-family: var(--v2-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-cap); }
.b2-title { margin: 4px 0 0; font-size: 17px; font-weight: 600; color: var(--v2-ink); }
.b2-pill { font-family: var(--v2-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.b2-pill.is-bad { background: rgba(180, 70, 15, .08); color: #b4460f; }
.b2-wallets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.b2-wallet { padding: 14px 16px; border: 1px solid var(--v2-line); border-radius: 10px; background: var(--v2-bg); min-width: 0; }
.b2-wallet-k { font-size: 12.5px; color: var(--v2-sec); }
.b2-wallet-v { margin-top: 4px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--v2-ink); font-variant-numeric: tabular-nums; }
.b2-wallet-s { margin-top: 3px; font-size: 12px; color: var(--v2-cap); }
.b2-rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--v2-sec); }
.b2-rate b { color: var(--v2-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.b2-rate span { font-family: var(--v2-mono); font-size: 10.5px; color: var(--v2-cap); }
.b2-receipts { margin-top: 18px; overflow-x: auto; }
.b2-th, .b2-tr { display: grid; grid-template-columns: minmax(180px, 1.6fr) repeat(5, minmax(88px, 1fr)); gap: 12px; align-items: center; padding: 9px 4px; min-width: 640px; }
.b2-th { font-family: var(--v2-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-cap); border-bottom: 1px solid var(--v2-line); }
.b2-tr { border-bottom: 1px solid #f4f2f0; }
.b2-tr:last-child { border-bottom: 0; }
.b2-task b { display: block; font-family: var(--v2-mono); font-size: 12px; font-weight: 600; color: var(--v2-ink); }
.b2-task small { display: block; font-size: 11.5px; color: var(--v2-cap); margin-top: 2px; }
.b2-n { font-family: var(--v2-mono); font-size: 12px; color: var(--v2-body); font-variant-numeric: tabular-nums; }
.b2-n small { display: block; font-size: 10.5px; color: var(--v2-cap); }
.b2-n.is-total { font-weight: 600; color: var(--v2-ink); }
.b2-empty { padding: 14px 4px; font-size: 13px; color: var(--v2-cap); }
@media (max-width: 768px) { .b2-wallets { grid-template-columns: 1fr; } .b2 { padding: 16px 14px 6px; } }
.b2-notice { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #eaf5ee; color: #15803d; font-size: 13px; }
.b2-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.b2-plans, .b2-prepaid, .b2-tracing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.b2-btn { font: inherit; font-size: 13px; font-weight: 600; padding: 9px 14px; border: 0; border-radius: 8px; background: var(--v2-accent); color: #fff; cursor: pointer; }
.b2-btn:disabled { cursor: default; opacity: .55; }
.b2-btn.is-current { background: #eaf5ee; color: #15803d; opacity: 1; }
.b2-btn.is-secondary { background: #fff; color: var(--v2-body); border: 1px solid #e0dcd9; font-weight: 500; }
.b2-btn.is-secondary:hover:not(:disabled) { border-color: var(--v2-cap); }
.b2-link { font: inherit; font-size: 12.5px; background: none; border: 0; color: var(--v2-cap); cursor: pointer; text-decoration: underline; }
.b2-amt { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; border: 1px solid #e0dcd9; border-radius: 8px; background: #fff; font-size: 13px; color: var(--v2-cap); }
.b2-amt input { width: 72px; border: 0; outline: 0; font: inherit; font-size: 13.5px; padding: 9px 0; color: var(--v2-ink); background: transparent; }
.b2-fee { font-family: var(--v2-mono); font-size: 11px; color: var(--v2-cap); }
.tc-gate { position: relative; min-height: 320px; overflow: hidden; }
.tc-gate-blur { filter: blur(6px); pointer-events: none; user-select: none; opacity: .8; }
.tc-gate-card { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); width: min(420px, calc(100% - 32px)); padding: 22px 24px; background: #fff; border: 1px solid var(--v2-line); border-radius: 12px; box-shadow: 0 10px 34px rgba(28, 25, 23, .1); text-align: center; }
.tc-gate-kicker { font-family: var(--v2-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-cap); }
.tc-gate-title { margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--v2-ink); }
.tc-gate-body { margin: 8px 0 14px; font-size: 13px; line-height: 1.55; color: var(--v2-sec); }
.b2-notice.is-error { background: #fdf3ec; color: #b4460f; }
/* ── cloud upload (self-hosted only): the publish dialog and the uploaded chip. These classes
are this distribution's own; the hosted tree has no such surface, which is why they live
here and not in the shared revamp.css. ── */
.cloud-includes { margin-top: -2px; }
.cloud-keyrow { display: flex; gap: 8px; }
.cloud-keyrow input { flex: 1; min-width: 0; }
.cloud-rows { max-height: 44vh; overflow-y: auto; }
.cloud-rows td { padding: 10px 12px; }
.cloud-note { color: var(--v2-body, #57534e); font-size: 12px; }
.cloud-remove { text-align: right; }
#cloudTo { width: 100%; }
.cloud-chip { display: inline-flex; align-items: center; gap: 5px; color: var(--v2-body, #57534e); font-size: 12px; white-space: nowrap; }
.cloud-chip iconify-icon { flex: 0 0 auto; font-size: 14px; }
.cloud-chip.changed { color: var(--v2-ink, #1c1917); }
.cloud-select-hint { margin: 10px 2px 0; }
/* a task row in the tree: the task, and a delete that appears on hover or focus */
.hx-task-row { position: relative; display: flex; align-items: center; }
.hx-task-row .hx-task { flex: 1; min-width: 0; }
.hx-task-x { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--v2-cap); cursor: pointer; opacity: 0; transition: opacity 110ms; }
.hx-task-row:hover .hx-task-x, .hx-task-x:focus-visible, .hx-task-row.is-on .hx-task-x { opacity: 1; }
.hx-task-x:hover { background: var(--v2-row, #f3f2f0); color: var(--v2-orange, #b4460f); }
.hx-task-x iconify-icon { font-size: 14px; }
/* ── Plugins, per the console design: header with tabs, the Installed table, the Browse catalog by
category, the detail sheet. Sizes and colours are the design's. ───────────────────────────── */
.pl { display: flex; flex-direction: column; height: 100vh; min-width: 0; overflow: hidden; }
.pl-head { padding: 30px 36px 0; background: var(--v2-bg, #fff); border-bottom: 1px solid var(--v2-line, #e7e5e4); flex: none; }
.pl-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.pl-head h1 { margin: 0 0 7px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.pl-head p { margin: 0; font-size: 14px; color: var(--v2-muted, #6b6560); max-width: 660px; }
.pl-tabs { display: flex; gap: 22px; margin-top: 22px; }
.pl-tab { display: flex; align-items: center; gap: 7px; padding: 0 0 13px; background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--v2-muted, #6b6560); cursor: pointer; }
.pl-tab.is-on { color: var(--v2-ink, #1c1917); border-bottom-color: var(--v2-accent, #1a5cf5); }
.pl-count { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: #c4beba; }
.pl-tab.is-on .pl-count { color: var(--v2-accent, #1a5cf5); }
.pl-body { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 36px 32px; }
.pl-table { border: 1px solid var(--v2-line, #e7e5e4); border-radius: 10px; background: var(--v2-bg, #fff); overflow: hidden; }
.pl-table-head, .pl-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 92px 140px; gap: 14px; align-items: center; }
.pl-table-head { padding: 10px 20px; background: #fafaf9; border-bottom: 1px solid var(--v2-line, #e7e5e4); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #a8a29e; }
.pl-row { padding: 12px 20px; border-bottom: 1px solid #f4f2f0; }
.pl-row:last-child { border-bottom: none; }
.pl-right { text-align: right; }
.pl-cell-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-tile { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: #f5f5f4; color: var(--v2-muted, #6b6560); font-size: 12.5px; font-weight: 700; }
.pl-copy { min-width: 0; display: block; }
.pl-name { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-blurb { display: block; font-size: 12.5px; color: var(--v2-muted, #6b6560); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-meta { display: block; font-size: 11.5px; color: #a8a29e; margin-top: 4px; }
.pl-source { font-size: 13px; color: var(--v2-muted, #6b6560); }
.pl-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; color: var(--v2-muted, #6b6560); }
.pl-cell-status { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pl-pill { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 9px; border: none; border-radius: 999px; white-space: nowrap; cursor: pointer; }
.pl-pill.is-connected { color: #15803d; background: #eaf5ee; }
.pl-pill.is-needs_auth { color: #b4460f; background: #fdf9f4; }
.pl-pill.is-disabled { color: #a8a29e; background: #f5f5f4; }
.pl-x { display: grid; place-items: center; width: 22px; height: 22px; flex: none; padding: 0; background: transparent; border: none; border-radius: 6px; cursor: pointer; color: #a8a29e; font-size: 14px; }
.pl-x:hover { background: #f5f5f4; color: var(--v2-ink, #1c1917); }
.pl-x-lg { width: 28px; height: 28px; border-radius: 8px; font-size: 16px; }
.pl-empty { padding: 26px 20px; font-size: 13.5px; color: var(--v2-muted, #6b6560); }
.pl-foot { font-size: 12.5px; color: #a8a29e; margin-top: 16px; }
.pl-link { background: none; border: none; padding: 0; font: inherit; color: var(--v2-accent, #1a5cf5); cursor: pointer; }
.pl-search { display: flex; align-items: center; gap: 9px; padding: 9px 12px; background: var(--v2-bg, #fff); border: 1px solid #e0dcd9; border-radius: 8px; color: #a8a29e; }
.pl-search input { flex: 1; min-width: 0; padding: 0; font: inherit; font-size: 13.5px; background: transparent; border: none; outline: none; color: var(--v2-ink, #1c1917); }
.pl-section { margin-top: 30px; }
.pl-section:first-of-type { margin-top: 22px; }
.pl-section-title { font-size: 18px; font-weight: 700; }
.pl-hr { height: 1px; background: var(--v2-line, #e7e5e4); margin: 12px 0 6px; }
.pl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }
.pl-card { display: flex; align-items: center; gap: 13px; padding: 11px 12px; margin: 0 -12px; border-radius: 10px; cursor: pointer; transition: background 110ms; min-width: 0; }
.pl-card:hover { background: #fafaf9; }
.pl-card .pl-tile { width: 34px; height: 34px; font-size: 13px; }
.pl-tile img { display: block; width: 16px; height: 16px; }
.pl-card .pl-tile img { width: 18px; height: 18px; }
.pl-tile-lg img { width: 22px; height: 22px; }
.pl-tile.is-app { background: none; overflow: hidden; }
.pl-tile.is-app img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.pl-card .pl-copy { flex: 1; }
.pl-plus { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; font-size: 16px; font-weight: 500; color: #57534e; }
.pl-card.has .pl-plus { color: #15803d; }
.pl-sheet { width: 560px; max-width: 100%; padding: 0; }
.pl-sheet-head { display: flex; align-items: center; gap: 14px; padding: 24px 26px 20px; border-bottom: 1px solid var(--v2-line, #e7e5e4); }
.pl-tile-lg { width: 42px; height: 42px; border-radius: 10px; color: #57534e; font-size: 16px; }
.pl-sheet-name { display: block; font-size: 18px; font-weight: 700; }
.pl-sheet-meta { display: block; font-size: 13px; color: var(--v2-muted, #6b6560); margin-top: 3px; }
.pl-sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 26px 26px; }
.pl-about { font-size: 13.5px; line-height: 1.65; color: #57534e; }
.pl-label { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #a8a29e; margin: 24px 0 10px; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chip { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; color: #57534e; padding: 4px 9px; border-radius: 999px; background: #f5f5f4; }
.pl-note { border: 1px solid #f0e2d4; border-radius: 10px; background: #fdf9f4; padding: 13px 15px; margin-top: 20px; font-size: 12.5px; line-height: 1.6; color: #6b5a48; }
.pl-btn { flex: none; font: inherit; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; background: var(--v2-accent, #1a5cf5); color: #fff; }
.pl-btn.is-installed { cursor: default; border-color: #cfe4d6; background: #eaf5ee; color: #15803d; }
.pl-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.pl-actions-split { justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
/* the connect form: the plugin's own fields, from the server (a credential, the names beside it) */
.pl-form { display: flex; flex-direction: column; gap: 14px; }
.pl-field { display: flex; flex-direction: column; gap: 5px; }
.pl-field label { font-size: 13px; font-weight: 600; color: #1c1917; }
.pl-field input { width: 100%; box-sizing: border-box; padding: 9px 12px; font: inherit; font-size: 13.5px; color: #1c1917; background: #fff; border: 1px solid #e0dcd9; border-radius: 8px; outline: none; transition: border-color .12s, box-shadow .12s; }
.pl-field input::placeholder { color: #b8b2ad; }
.pl-field input:focus { border-color: var(--v2-accent, #1a5cf5); box-shadow: 0 0 0 3px rgba(26, 92, 245, .12); }
.pl-hint { display: block; font-size: 12.5px; line-height: 1.5; color: #6b6560; }
.pl-hint-form { margin-top: 14px; }
.pl-form-err { margin-top: 14px; border: 1px solid #f0e2d4; border-radius: 10px; background: #fdf9f4; padding: 11px 13px; font-size: 12.5px; line-height: 1.55; color: #b4460f; }
.pl-alt { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pl-btn-quiet { background: #fff; color: #1c1917; border-color: #e0dcd9; }
.pl-btn-quiet:hover { background: #f4f2f0; }
.pl-btn.is-attention { border-color: #f0e2d4; background: #fdf9f4; color: #b4460f; }
.pl-signin { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid #e7e5e4; border-radius: 10px; background: #fafaf9; }
.pl-signin-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 13.5px; line-height: 1.5; color: #57534e; }
.pl-signin-row strong { color: #1c1917; }
@media (max-width: 720px) { .pl-signin-row { flex-direction: column; align-items: flex-start; } }
.pl-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 16px; }
.pl-facts div { display: contents; }
.pl-facts dt { font-size: 12.5px; color: #6b6560; }
.pl-facts dd { margin: 0; font-size: 13.5px; color: #1c1917; overflow-wrap: anywhere; }
@media (max-width: 720px) { .pl-facts { grid-template-columns: 1fr; gap: 4px; } .pl-alt { flex-direction: column; align-items: flex-start; } .pl-actions-split { flex-wrap: wrap; } }
.pl-consent { width: 480px; max-width: 100%; padding: 0; }
.pl .field { margin-top: 10px; }
@media (max-width: 1024px) {
.pl-head { padding: 24px 24px 0; }
.pl-body { padding: 20px 24px 28px; }
.pl-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
.pl { height: calc(100vh - var(--v2-mobilebar-h)); }
.pl-head { padding: 20px 16px 0; }
.pl-body { padding: 16px 16px 24px; }
.pl-head h1 { font-size: 24px; }
.pl-table-head, .pl-row { grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; }
.pl-table-head span:nth-child(2), .pl-table-head span:nth-child(3), .pl-row > .pl-source, .pl-row > .pl-mono { display: none; }
.pl-row { padding: 12px 14px; }
.pl-card { margin: 0; padding: 11px 6px; }
}