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
/* HarnessRouter UX/UI revamp — extracted verbatim from the design prototype
(02-产品与设计/assets/HTML原型/2026-07-17-HIG-UIUX-重构沟通示例.html, origin/main 266a599 —
incl. Connect footer + brand logo). Do not hand-edit the extracted block; glue lives after
the marker at the end. */
:root {
--bg: #fafaf9; /* v2 stone (was cool #fbfbfc) */
--surface: #fff;
--surface-subtle: #f5f5f4;
--surface-active: #f7f8fe;
--ink: #1c1917;
--muted: #6b6560;
/* #9696a0 measured about 2.9:1 on white, well under the 4.5:1 that small text needs, so
every label drawn in it failed contrast. Darkened to clear AA on white and on the grey
panels both. */
--faint: #6e6760; /* warm; kept darker than the design's #a8a29e caption so small text stays AA (see note above) */
--line: #e7e5e4;
--line-strong: #d6d3d1;
--accent: #1a5cf5;
--accent-hover: #1447c4;
--accent-soft: #f7f8fe;
--teal: #0f766e;
--green: #15803d;
--green-soft: #eaf5ee;
--amber: #8a6a3c;
--amber-soft: #fdf9f4;
--red: #b4460f; /* the design's failure orange; status set is green/blue/orange */
--red-soft: #fdf9f4;
--header-h: 64px;
--sidebar-w: 224px;
--radius: 10px;
--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
color: var(--ink);
background: var(--bg);
font-family: var(--font);
}
* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid rgba(40, 90, 255, .28); outline-offset: 1px; }
iconify-icon { font-size: 18px; }
.app-header {
position: sticky;
top: 0;
z-index: 30;
height: var(--header-h);
display: grid;
grid-template-columns: var(--sidebar-w) minmax(260px, 420px) minmax(0, 1fr);
align-items: center;
border-bottom: 1px solid var(--line);
background: rgba(255,255,255,.95);
backdrop-filter: blur(16px);
}
.brand {
height: 100%;
display: flex;
align-items: center;
gap: 10px;
padding: 0 20px;
border: 0;
background: transparent;
cursor: pointer;
font-size: 17px;
font-weight: 760;
letter-spacing: -.025em;
}
.brand-full { height: 30px; width: auto; display: block; }
.brand-icon { height: 30px; width: 30px; display: none; }
.global-search { position: relative; margin-left: 24px; }
.global-search > iconify-icon { position: absolute; left: 12px; top: 19px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.global-search input {
width: 100%;
height: 38px;
padding: 0 46px 0 38px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--surface-subtle);
color: var(--ink);
}
.search-key { position: absolute; right: 9px; top: 8px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--faint); background: #fff; font-size: 10px; }
/* Global search results dropdown (workspaces / harnesses / tasks). */
.search-panel {
position: absolute; top: calc(100% + 8px); left: 0; right: 0;
max-height: min(70vh, 470px); overflow-y: auto;
padding: 6px; border: 1px solid var(--line); border-radius: 12px;
background: var(--surface); box-shadow: 0 18px 44px rgba(20,20,40,.16);
z-index: 40;
}
.search-empty { padding: 20px 14px; color: var(--faint); font-size: 13px; text-align: center; }
.search-group + .search-group { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 4px; }
.search-group-label { margin: 0; padding: 8px 10px 5px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.search-item {
width: 100%; display: flex; align-items: center; gap: 10px;
padding: 8px 10px; border: 0; border-radius: 8px; background: transparent;
color: var(--ink); cursor: pointer; text-align: left;
}
.search-item.is-active { background: var(--surface-subtle); }
.search-item > iconify-icon:first-child { flex: none; color: var(--faint); font-size: 17px; }
.search-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.search-item-label { font-size: 13.5px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-label mark { background: var(--accent-soft); color: var(--accent); border-radius: 3px; padding: 0 1px; font-weight: 700; }
.search-item-sub { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-tag { flex: none; font-size: 10.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.search-item-go { flex: none; color: var(--faint); font-size: 14px; }
/* On mobile the search field is squeezed by the header — break the results out to a
readable, viewport-width dropdown instead of inheriting the tiny field width. */
@media (max-width: 760px) {
.search-panel {
position: fixed; left: 8px; right: 8px; top: calc(var(--header-h) + 6px);
max-height: calc(100dvh - var(--header-h) - 16px);
}
}
.header-utils { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 20px; }
.utility-link, .icon-button, .account-button, .balance-button {
height: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
border: 0;
border-radius: 8px;
background: transparent;
color: var(--muted);
cursor: pointer;
text-decoration: none;
font-size: 13px;
}
.utility-link, .balance-button { padding: 0 10px; }
.utility-link:hover, .icon-button:hover, .balance-button:hover { color: var(--ink); background: var(--surface-subtle); }
.balance-button strong { color: var(--ink); font-weight: 650; }
.balance-button.low { color: var(--amber); background: var(--amber-soft); }
.balance-button.low strong { color: var(--amber); }
.icon-button { width: 36px; }
.account-wrap { position: relative; }
.account-button { width: 36px; border-radius: 50%; background: #eeeef2; color: #4c4c56; font-weight: 700; overflow: hidden; padding: 0; }
.account-avatar { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-menu {
position: absolute;
right: 0;
top: 44px;
width: 250px;
padding: 8px;
border: 1px solid var(--line);
border-radius: 11px;
background: #fff;
box-shadow: 0 18px 45px rgba(20,20,30,.13);
}
.account-meta { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); }
.account-meta strong, .account-meta span { display: block; }
.account-meta span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.account-balance { display: flex; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: 12px; }
.account-balance b { color: var(--ink); }
.menu-item {
width: 100%;
min-height: 38px;
display: flex;
align-items: center;
gap: 9px;
margin-top: 3px;
padding: 0 9px;
border: 0;
border-radius: 7px;
background: transparent;
cursor: pointer;
text-align: left;
font-size: 13px;
}
.menu-item:hover { background: var(--surface-subtle); }
.sidebar {
position: fixed;
top: var(--header-h);
bottom: 0;
left: 0;
z-index: 20;
width: var(--sidebar-w);
display: flex;
flex-direction: column;
padding: 12px 12px 22px;
border-right: 1px solid var(--line);
background: #fafafa;
overflow-y: auto;
}
.switcher-wrap { position: relative; }
.workspace-switcher {
width: 100%;
min-height: 40px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 0 11px;
border: 1px solid var(--line-strong);
border-radius: 8px;
background: #fff;
cursor: pointer;
font-size: 13px;
font-weight: 650;
}
.workspace-switcher span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.workspace-switcher .switcher-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-menu {
position: absolute;
z-index: 25;
top: 46px;
left: 0;
width: 100%;
padding: 6px;
border: 1px solid var(--line);
border-radius: 9px;
background: #fff;
box-shadow: 0 16px 36px rgba(20,20,30,.13);
}
.workspace-menu-item {
width: 100%;
min-height: 38px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 0 9px;
border: 0;
border-radius: 7px;
background: transparent;
cursor: pointer;
font-size: 12.5px;
text-align: left;
}
.workspace-menu-item > span { display: inline-flex; align-items: center; gap: 7px; }
.workspace-menu-item iconify-icon { font-size: 16px; }
.workspace-menu-item:hover { background: var(--surface-subtle); }
.workspace-menu-item[aria-current="true"] { color: var(--accent); background: var(--surface-active); font-weight: 650; }
.workspace-menu-separator { height: 1px; margin: 5px 3px; background: var(--line); }
.side-section { margin-top: 18px; }
.side-label { margin: 0 10px 7px; color: var(--faint); font-size: 10px; font-weight: 740; letter-spacing: .1em; text-transform: uppercase; }
.side-nav {
width: 100%;
min-height: 38px;
display: flex;
align-items: center;
gap: 10px;
padding: 0 10px;
border: 0;
border-radius: 7px;
background: transparent;
color: #57534e;
cursor: pointer;
font-size: 13.5px;
text-align: left;
}
.side-nav:hover { color: var(--ink); background: #f1f1f4; }
.side-nav[aria-current="page"] { color: var(--accent); background: var(--surface-active); font-weight: 620; }
.side-nav iconify-icon { color: #777782; }
.side-nav[aria-current="page"] iconify-icon { color: var(--accent); }
.sidebar-foot { position: relative; margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
/* Credits card — the wallet lives in the nav now. Clean white surface consistent with the
workspace switcher (NOT a garish gold panel); a small refined coin chip carries the "money"
cue, the balance leads. Whole card clicks to Billing. */
.credits-card {
display: flex; align-items: center; gap: 10px;
width: 100%; padding: 9px 11px; border-radius: 11px; cursor: pointer; text-align: left;
border: 1px solid var(--line); background: var(--surface);
box-shadow: 0 1px 2px rgba(20,30,60,.04);
transition: box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.credits-card:hover { border-color: #d5dced; background: #fcfdff; box-shadow: 0 3px 10px rgba(40,90,255,.08); }
.credits-card-coin {
flex: none; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
/* tasteful brushed-gold chip, small enough to read as an accent not a toy */
background: linear-gradient(145deg, #fde7a6 0%, #f0c24e 48%, #d9a12a 100%);
box-shadow: inset 0 1px 1.5px rgba(255,255,255,.85), inset 0 -1.5px 2px rgba(150,95,0,.32), 0 1px 1.5px rgba(120,80,0,.2);
}
.credits-card-coin iconify-icon { font-size: 15px; color: #7a5200; }
.credits-card-body { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.credits-card-label { font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.credits-card-value { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.credits-card-go { margin-left: auto; font-size: 15px; color: #b9c1d4; transition: transform .14s ease, color .14s ease; }
.credits-card:hover .credits-card-go { transform: translateX(2px); color: var(--accent); }
.connect-trigger { min-height: 44px; }
.connect-trigger .connect-chevron { margin-left: auto; font-size: 14px; transition: transform .16s ease; }
.connect-trigger[aria-expanded="true"] .connect-chevron { transform: rotate(180deg); }
.connect-menu {
position: absolute;
z-index: 30;
right: 0;
bottom: calc(100% + 8px);
left: 0;
padding: 6px;
border: 1px solid var(--line);
border-radius: 9px;
background: #fff;
box-shadow: 0 16px 36px rgba(20,20,30,.13);
}
.connect-item {
min-height: 44px;
display: flex;
align-items: center;
gap: 9px;
padding: 0 9px;
border-radius: 7px;
color: #57534e;
text-decoration: none;
font-size: 13px;
}
.connect-item:hover { color: var(--ink); background: var(--surface-subtle); }
.connect-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.connect-item iconify-icon { color: #777782; font-size: 16px; }
.connect-item .connect-external { margin-left: auto; color: var(--faint); font-size: 13px; }
main { min-height: calc(100vh - var(--header-h)); margin-left: var(--sidebar-w); }
.view { display: none; }
.view.is-active { display: block; }
.page { max-width: 1320px; margin: 0 auto; padding: 28px 32px 64px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-header h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.035em; }
.page-header p { max-width: 720px; margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.button {
min-height: 38px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
padding: 0 13px;
border: 1px solid var(--line-strong);
border-radius: 8px;
background: #fff;
color: var(--ink);
cursor: pointer;
font-size: 13px;
font-weight: 620;
}
.button:hover { background: var(--surface-subtle); }
.button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-hover); }
.button:disabled { cursor: default; opacity: .45; }
.button:disabled:hover { background: inherit; }
.button.quiet { border-color: transparent; background: transparent; color: var(--accent); }
.button.small { min-height: 32px; padding: 0 10px; font-size: 12px; }
.segmented {
display: inline-flex;
align-items: center;
gap: 2px;
padding: 3px;
border-radius: 9px;
background: #f0f0f3;
}
.segmented button {
min-height: 38px;
padding: 0 12px;
border: 0;
border-radius: 7px;
background: transparent;
color: var(--muted);
cursor: pointer;
font-size: 12px;
font-weight: 620;
white-space: nowrap;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] {
background: #fff;
color: var(--ink);
box-shadow: 0 1px 3px rgba(20,20,30,.12);
}
.segmented.compact button { min-height: 36px; }
.select, .search-input {
height: 38px;
padding: 0 11px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
color: var(--ink);
font-size: 13px;
}
.search-input { width: 280px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.toolbar-group { display: flex; align-items: center; gap: 8px; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 12px 14px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .02em; text-align: left; white-space: nowrap; }
td { padding: 15px 14px; border-top: 1px solid var(--line); color: #4b4b54; vertical-align: middle; }
td strong { color: var(--ink); font-weight: 650; }
.object-row { cursor: pointer; }
.object-row:hover { background: #f7f8fe; }
.object-row:focus-visible { position: relative; outline: 2px solid rgba(40,90,255,.35); outline-offset: -2px; }
.object-row .row-disclosure { width: 42px; color: var(--faint); text-align: right; }
.object-row:hover .row-disclosure { color: var(--accent); }
.object-cell { min-width: 190px; }
.object-title { display: flex; align-items: center; gap: 10px; }
.object-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-subtle); color: #5e5e68; }
.object-copy strong, .object-copy span { display: block; }
.object-copy span { max-width: 350px; margin-top: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.number { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.revenue { color: var(--green); font-weight: 650; }
.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status.healthy { color: var(--green); }
.status.healthy::before { background: #2ebd6b; }
.status.running { color: var(--accent); }
.status.running::before { background: var(--accent); }
.status.neutral { color: var(--muted); }
.status.neutral::before { background: var(--faint); }
.status.warning { color: var(--amber); }
.status.warning::before { background: #f5b82e; }
.status.failed { color: var(--red); }
.status.failed::before { background: #dc4450; }
.row-action { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.row-action:hover { background: var(--surface-subtle); color: var(--ink); }
.notice {
display: flex;
align-items: flex-start;
gap: 11px;
margin-bottom: 22px;
padding: 13px 14px;
border: 1px solid #f0d287;
border-radius: 8px;
background: var(--amber-soft);
color: #6f4a00;
font-size: 13px;
line-height: 1.45;
}
.notice strong { display: block; margin-bottom: 2px; }
.metrics {
display: grid;
/* auto-fit: however many metric cards render, they share the full row — adding or
removing a card never leaves an empty grid hole */
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
margin-bottom: 28px;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
}
.metric { padding: 17px 18px; border-right: 1px solid var(--line); }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric span, .metric small { display: block; color: var(--muted); font-size: 11.5px; }
.metric strong { display: block; margin: 6px 0 5px; font-size: 23px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.dashboard-kpis.kpis-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.kpi-card { position: relative; min-height: 112px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; font: inherit; text-align: left; }
.kpi-card.actionable { cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.kpi-card.actionable:hover { border-color: #cbd8ff; box-shadow: 0 5px 16px rgba(40,90,255,.08); transform: translateY(-1px); }
.kpi-card.primary-tint { background: #f7f8fe; }
.kpi-card.green { background: #eaf5ee; }
.kpi-card.blue { background: #f8fbfd; }
.kpi-card span, .kpi-card small { display: block; color: var(--muted); font-size: 11.5px; }
.kpi-card strong { display: block; margin: 8px 0 6px; font-size: 24px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.kpi-card > iconify-icon { position: absolute; top: 50%; right: 16px; width: 34px; height: 34px; display: grid; place-items: center; transform: translateY(-50%); border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.kpi-card.green > iconify-icon { background: var(--green-soft); color: var(--green); }
.kpi-card.blue > iconify-icon { background: #eaf5fb; color: #207aaa; }
.info-label { display: inline-flex !important; align-items: center; gap: 5px; }
.info-tip {
position: relative;
display: inline-flex !important;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
color: var(--muted);
cursor: help;
vertical-align: middle;
}
.info-tip > iconify-icon { font-size: 14px; }
.info-tip-content {
position: fixed;
z-index: 1000;
top: var(--tip-top, -9999px);
left: var(--tip-left, -9999px);
width: 250px;
max-width: calc(100vw - 24px);
padding: 10px 11px;
border-radius: 8px;
background: #22232a;
box-shadow: 0 8px 24px rgba(20,20,30,.16);
color: #fff !important;
font-size: 10.5px !important;
font-weight: 450;
line-height: 1.45;
opacity: 0;
pointer-events: none;
transform: translateY(3px);
transition: opacity .14s ease, transform .14s ease;
}
.info-tip:hover .info-tip-content,
.info-tip:focus-visible .info-tip-content { opacity: 1; transform: translateY(0); }
.delta-up { color: var(--accent) !important; font-weight: 620; }
.dashboard-main-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(270px,.7fr); gap: 18px; margin-bottom: 18px; }
.dashboard-lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.dashboard-card { min-width: 0; padding: 17px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(20,20,30,.025); }
.dashboard-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.dashboard-card-head h2 { margin: 0; font-size: 15px; letter-spacing: -.015em; }
.dashboard-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 11.5px; }
.chart-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 14px; height: 3px; border-radius: 999px; background: var(--accent); }
.legend-swatch.green { background: var(--green); }
.legend-swatch.teal { background: var(--teal); }
.legend-swatch.bar { width: 10px; height: 7px; border: 1px solid #b8b8c2; border-radius: 2px; background: rgba(123,123,140,.16); }
.chart-wrap { position: relative; height: 244px; }
.attention-card { border: 0; background: #fff7e5; box-shadow: none !important; }
.attention-title { display: flex; align-items: center; gap: 9px; color: #6f4a00; }
.attention-title iconify-icon { font-size: 20px; }
.attention-body { margin-top: 14px; }
.attention-body h3 { margin: 0; font-size: 15px; }
.attention-body p { margin: 7px 0 16px; color: #5e5136; font-size: 12px; line-height: 1.5; }
.attention-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 14px; }
.attention-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(154,101,0,.14); color: #6f6044; font-size: 11.5px; }
.attention-card .button { width: auto; }
.dashboard-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dashboard-table th { padding: 9px 7px; font-size: 10px; }
.dashboard-table td { padding: 12px 7px; }
.dashboard-table th:first-child, .dashboard-table td:first-child { padding-left: 0; }
.dashboard-table th:last-child, .dashboard-table td:last-child { padding-right: 0; }
.dashboard-card-foot { display: flex; justify-content: center; padding-top: 10px; }
.readiness-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.readiness-item { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 11px; align-items: center; min-height: 68px; padding: 13px 16px; }
.readiness-item + .readiness-item { border-left: 1px solid var(--line); }
.readiness-item > iconify-icon { color: var(--muted); font-size: 22px; }
.readiness-item strong, .readiness-item span { display: block; }
.readiness-item strong { font-size: 12.5px; }
.readiness-item span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.analytics-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(260px,.65fr); gap: 18px; margin-bottom: 18px; }
.analytics-side h3 { margin: 0; font-size: 14px; }
.analytics-side > p { margin: 5px 0 16px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.mix-list { display: grid; gap: 14px; }
.mix-row-head { display: flex; justify-content: space-between; gap: 12px; color: #4d4d56; font-size: 11.5px; }
.mix-track { height: 6px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #eeeef2; }
.mix-track span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.mix-track.green span { background: var(--green); }
.mix-track.teal span { background: var(--teal); }
.analytics-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.45; }
.analytics-note iconify-icon { flex: 0 0 auto; color: var(--accent); }
.section { margin-top: 28px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-header h2 { margin: 0; font-size: 16px; letter-spacing: -.015em; }
.section-header span, .section-header a { color: var(--muted); font-size: 12px; }
.section-header a { color: var(--accent); text-decoration: none; }
.tabs { display: flex; gap: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tab { min-height: 42px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 620; }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.detail-header { display: flex; align-items: center; gap: 13px; }
.back-link {
min-height: 32px;
display: inline-flex;
align-items: center;
gap: 6px;
margin: 0 0 13px;
padding: 0;
border: 0;
background: transparent;
color: var(--muted);
cursor: pointer;
font: 620 12px/1 var(--font);
}
.back-link:hover { color: var(--accent); }
.back-link iconify-icon { font-size: 17px; }
.detail-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.detail-title h1 { margin: 0; font-size: 30px; font-weight: 720; line-height: 1.15; letter-spacing: -.035em; }
.detail-title p { margin: 5px 0 0; }
/* Monospace identifier chip with click-to-copy (Harness ID). */
.mono-id { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 8px;
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: 12px;
color: var(--ink); background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 6px;
cursor: pointer; line-height: 1.3; transition: background .12s, border-color .12s, color .12s; }
.mono-id:hover { background: var(--accent-soft); border-color: rgba(40,90,255,.28); color: var(--accent); }
.mono-id:focus-visible { outline: 2px solid rgba(40,90,255,.35); outline-offset: 1px; }
.mono-id.is-empty { color: var(--faint); background: none; border: none; padding: 0; cursor: default; }
.mono-id-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono-id-icon { flex: none; font-size: 13px; opacity: .7; }
.mono-id:hover .mono-id-icon { opacity: 1; }
/* In the inventory table the id cell is width-bounded so long chrn_ ids ellipsize, not wrap. */
.run-layout { display: grid; grid-template-columns: 330px minmax(0,1fr); height: calc(100vh - 204px); min-height: 500px; max-height: 760px; border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.list-scope { display: block; margin-top: 11px; color: var(--muted); font-size: 10.5px; }
.task-mode-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-subtle); }
.task-mode-button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font: 620 11.5px/1 var(--font); }
.task-mode-button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(28,28,35,.1); }
.task-mode-button[data-task-mode="test"][aria-selected="true"] { color: var(--accent); }
.task-mode-context { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 10px; align-items: center; margin-bottom: 12px; padding: 11px 13px; border: 1px solid #dcefe4; border-radius: 8px; background: #eaf5ee; }
.task-mode-context > iconify-icon { color: var(--green); font-size: 19px; }
.task-mode-context strong, .task-mode-context span { display: block; }
.task-mode-context strong { font-size: 11.5px; }
.task-mode-context span { margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.task-mode-context.test { border-color: #cbd8ff; background: #f7f8fe; }
.task-mode-context.test > iconify-icon { color: var(--accent); }
.mode-badge { justify-self: end; padding: 5px 8px; border-radius: 999px; background: #e7f5ec; color: #25633e !important; font-size: 10px !important; font-weight: 680; }
.task-mode-context.test .mode-badge { background: var(--accent-soft); color: var(--accent-hover) !important; }
/* The row's click target, stretched behind its content so the delete button stays on top. */
.run-item-hit { position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; border: 0;
background: transparent; cursor: pointer; }
.session-empty { padding: 24px 16px; color: var(--muted); font-size: 12px; text-align: center; }
.run-row.is-selected td { background: #f7f8fe; }
.run-detail { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.run-detail h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.session-detail-head, .inspector-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.run-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 9px; color: var(--muted); font-size: 11.5px; }
.run-meta .meta-label { color: var(--faint); }
.result-box { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.result-box h3 { margin: 0 0 9px; font-size: 14px; }
.result-box p { color: #41414a; font-size: 13px; line-height: 1.6; }
.file-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 11px; margin-top: 14px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.file-row iconify-icon { color: var(--accent); font-size: 24px; }
.file-row div { min-width: 0; flex: 1; }
.file-row strong, .file-row span { display: block; }
.file-row strong { overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.35; }
.file-row span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.file-row > .toolbar-group { width: 100%; flex: 0 0 100%; justify-content: flex-end; }
.task-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.task-mutation-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.task-detail-shell { padding: 20px 22px 0; }
.task-detail-shell .tabs { margin: 16px 0 0; }
.conversation { display: grid; gap: 18px; padding: 20px 22px 24px; }
#task-conversation.is-active { min-height: 0; display: flex; flex: 1; flex-direction: column; overflow: hidden; }
#task-conversation.is-active > .conversation { min-height: 0; flex: 1; overflow-y: auto; }
#task-trace.is-active { min-height: 0; flex: 1; overflow-y: auto; }
.message { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 11px; align-items: start; }
.message-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-subtle); color: var(--muted); }
.message.agent .message-avatar { background: var(--accent-soft); color: var(--accent); }
.message-avatar iconify-icon { font-size: 16px; }
.message-body { min-width: 0; }
.message-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.message-head strong { font-size: 12.5px; }
.message-head span { color: var(--muted); font-size: 10.5px; }
.message-copy { color: #3f3f48; font-size: 13px; line-height: 1.62; }
.message-copy p { margin: 0; }
.user-prompt { padding: 12px 14px; border-radius: 9px; background: var(--surface-subtle); }
.activity-disclosure { width: 100%; display: flex; align-items: center; gap: 8px; margin: 12px 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #4b4b54; cursor: pointer; text-align: left; font-size: 11.5px; font-weight: 650; }
.activity-disclosure iconify-icon:last-child { margin-left: auto; transition: transform .16s ease; }
.activity-disclosure[aria-expanded="true"] iconify-icon:last-child { transform: rotate(180deg); }
.activity-detail { display: grid; gap: 7px; margin: -4px 0 12px; padding: 11px 12px; border-left: 2px solid #bfd0ff; background: #f7f8fe; color: var(--muted); font-size: 11px; }
.activity-detail span { display: flex; align-items: center; gap: 8px; }
.task-state { display: flex; align-items: center; gap: 7px; margin-top: 13px; padding: 9px 11px; border: 1px solid #dcefe4; border-radius: 8px; background: #eaf5ee; color: #276640; font-size: 11.5px; font-weight: 650; }
.task-feedback { display: flex; gap: 4px; margin-left: 2px; }
.task-feedback .icon-button { width: 34px; height: 34px; }
.composer { margin-top: auto; padding: 12px 22px 20px; border-top: 0; background: #fff; }
.composer-box { padding: 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
.composer textarea { width: 100%; min-height: 54px; padding: 2px 3px 8px; resize: vertical; border: 0; outline: 0; color: var(--ink); font: 13px/1.5 var(--font); }
.composer-actions { display: flex; align-items: center; gap: 8px; }
.composer-actions .select { margin-left: auto; }
.composer-hint { margin-top: 8px; color: var(--muted); font-size: 10.5px; }
.live-observer-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 11px; border-radius: 8px; background: var(--surface-subtle); color: var(--muted); font-size: 11px; }
.live-observer-note iconify-icon { flex: 0 0 auto; color: var(--green); }
.run-inspector { margin-top: 24px; padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.inspector-head h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.inspector-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.run-inspector .tabs { margin-top: 20px; margin-bottom: 18px; }
.run-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.run-summary-stat { padding: 14px 16px; border-right: 1px solid var(--line); }
.run-summary-stat:first-child { padding-left: 0; }
.run-summary-stat:last-child { border-right: 0; }
.run-summary-stat span, .run-summary-stat small { display: block; color: var(--muted); font-size: 11px; }
.run-summary-stat strong { display: block; margin: 5px 0 4px; font-size: 17px; font-variant-numeric: tabular-nums; }
.summary-copy { max-width: 780px; margin-top: 18px; color: #41414a; font-size: 13px; line-height: 1.6; }
.trace-panel { padding: 18px 22px 24px; }
.trace-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.trace-toolbar strong, .trace-toolbar span { display: block; }
.trace-toolbar strong { font-size: 13px; }
.trace-toolbar span { margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.trace-slowest { flex: 0 0 auto; color: var(--amber) !important; font-size: 11px !important; font-weight: 650; }
.trace-overview { position: relative; height: 5px; margin: 16px 4px 20px; border-radius: 999px; background: #e9ebf0; }
.trace-overview span { position: absolute; top: -3px; width: 3px; height: 11px; margin-left: -1px; border-radius: 999px; background: var(--accent); }
.trace-overview span.is-result { background: var(--green); }
.trace-overview span.is-error { background: var(--red); }
.trace-list { position: relative; display: grid; gap: 3px; }
.trace-list::before { position: absolute; top: 16px; bottom: 16px; left: 85px; width: 1px; background: #e3e5ea; content: ""; }
.trace-event { position: relative; display: grid; grid-template-columns: 68px 12px minmax(0,1fr) auto; gap: 11px; align-items: start; padding: 10px 0; }
.trace-time, .trace-duration { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.trace-mark { z-index: 1; width: 9px; height: 9px; margin-top: 3px; border: 2px solid var(--accent); border-radius: 50%; background: #fff; }
.trace-event.is-result .trace-mark { border-color: var(--green); background: var(--green); }
.trace-event.is-error .trace-mark { border-color: var(--red); background: var(--red); }
.trace-copy strong, .trace-copy span { display: block; }
.trace-copy strong { font-size: 12.5px; }
.trace-copy span { margin-top: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.trace-event-head { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.trace-event-head .trace-slow-badge { margin: 0; color: var(--amber); font-size: 10px; font-weight: 680; }
.output-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.55fr); gap: 26px; }
.output-layout h3 { margin: 0 0 8px; font-size: 14px; }
.output-layout p { margin: 0; color: #41414a; font-size: 13px; line-height: 1.6; }
.settings-list { max-width: 820px; border-top: 1px solid var(--line); }
.settings-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.settings-row > iconify-icon { color: var(--muted); font-size: 22px; }
.settings-row strong, .settings-row span { display: block; }
.settings-row span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.billing-page { max-width: 1040px; margin: 0; }
.billing-scope { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; color: var(--muted); font-size: 12px; }
.billing-scope iconify-icon { font-size: 15px; }
.billing-page .settings-list { max-width: 100%; }
.billing-page .settings-row { min-height: 74px; }
.billing-page .settings-row span { max-width: 670px; line-height: 1.45; }
.billing-page .button.small { min-height: 36px; }
.billing-page .section-header { margin-top: 30px; }
.billing-page .section-header > span { white-space: nowrap; }
.billing-plan-line { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 28px 0 22px; }
.billing-plan-line strong, .billing-plan-line span { display: block; }
.billing-plan-line strong { font-size: 14px; }
.billing-plan-line span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.billing-balance-panel { display: grid; grid-template-columns: minmax(220px,1.35fr) repeat(2,minmax(150px,.72fr)) auto; align-items: center; gap: 28px; margin-bottom: 30px; padding: 22px 24px; border-radius: 12px; background: #fafaf9; }
.billing-balance-primary span, .billing-balance-stat span { display: block; color: var(--muted); font-size: 11.5px; }
.billing-balance-primary strong { display: block; margin: 6px 0 4px; font-size: 25px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.billing-balance-primary small, .billing-balance-stat small { color: var(--muted); font-size: 11.5px; }
.billing-balance-stat strong { display: block; margin: 5px 0 3px; font-size: 17px; font-variant-numeric: tabular-nums; }
#view-billing .billing-flat-list { display: grid; gap: 2px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.overview-summary { margin-top: 28px; }
.overview-summary-list .settings-row { min-height: 70px; }
.summary-value { min-width: 160px; text-align: right; }
.summary-value strong { font-size: 13px; }
.summary-value span { white-space: nowrap; }
.settings-form { max-width: 980px; }
.settings-form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.settings-form-head h2 { margin: 0; font-size: 18px; }
.settings-form-head p { margin: 5px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.form-section { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 28px; padding: 22px 0; border-top: 1px solid var(--line); }
.form-section h3 { margin: 0; font-size: 14px; }
.form-section > div:first-child p { margin: 6px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.field-stack { display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 6px; color: #57534e; font-size: 12px; font-weight: 650; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.field input, .field select { min-height: 40px; padding: 0 11px; }
.field textarea { min-height: 112px; padding: 10px 11px; resize: vertical; line-height: 1.5; }
.field input[readonly], .field textarea[readonly] { background: var(--surface-subtle); color: #57534e; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.inline-value { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-subtle); font-size: 12.5px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-subtle); color: #4d4d57; font-size: 11.5px; }
.section-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-actions strong { font-size: 12px; }
.capability-list { display: grid; gap: 8px; }
.capability-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; align-items: center; min-height: 48px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.capability-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-subtle); color: var(--muted); }
.capability-icon img { display: block; width: 16px; height: 16px; }
.capability-icon.is-app { background: none; overflow: hidden; }
.capability-icon.is-app img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.capability-copy strong, .capability-copy span { display: block; }
.capability-copy strong { font-size: 12.5px; }
.capability-copy span { margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.capability-actions { display: flex; align-items: center; gap: 6px; }
.toggle-button { min-width: 78px; min-height: 30px; padding: 0 10px; border: 1px solid #c9ead8; border-radius: 999px; background: var(--green-soft); color: var(--green); cursor: pointer; font-size: 10.5px; font-weight: 700; }
.toggle-button[aria-pressed="false"] { border-color: var(--line); background: var(--surface-subtle); color: var(--muted); }
.two-column-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.header-row { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr) auto; gap: 8px; align-items: end; }
.header-row .field input { min-height: 36px; }
.header-row .icon-button { margin-bottom: 1px; }
.header-row + .header-row { margin-top: 10px; } /* a second mapping or variable stands apart from the first */
.settings-form-footer { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); background: rgba(251,251,252,.94); backdrop-filter: blur(8px); }
.save-state { color: var(--muted); font-size: 11.5px; }
.modal-backdrop {
position: fixed;
inset: 0;
z-index: 80;
display: grid;
place-items: center;
padding: 20px;
background: rgba(20,20,28,.42);
backdrop-filter: blur(3px);
}
.modal {
width: min(100%, 480px);
max-height: calc(100vh - 40px);
overflow-y: auto;
border: 1px solid var(--line);
border-radius: 13px;
background: #fff;
box-shadow: 0 24px 70px rgba(20,20,30,.24);
}
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 22px 0; }
.modal-header h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.modal-header p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.modal-close { flex: 0 0 auto; }
.modal-body { padding: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.copy-state { color: var(--green); font-size: 11.5px; }
.optional-label { color: var(--muted); font-weight: 500; }
.security-note { display: flex; align-items: flex-start; gap: 9px; max-width: 620px; margin: 14px 0 0; color: #6c4a0a; font-size: 11.5px; line-height: 1.5; }
.security-note iconify-icon { flex: 0 0 auto; margin-top: 1px; color: var(--amber); font-size: 16px; }
.mobile-menu { display: none; }
/* HIG refinement: content carries hierarchy; chrome only explains structure. */
.page { max-width: 1240px; padding-top: 36px; }
.page-header { margin-bottom: 30px; }
.page-header h1 { font-size: 30px; font-weight: 720; }
.page-header p { max-width: 650px; margin-top: 7px; font-size: 13.5px; }
.button, .select, .search-input, .global-search input { border-radius: 7px; }
.button { min-height: 40px; }
.button.primary { box-shadow: none; }
th { padding-top: 11px; padding-bottom: 11px; }
td { padding-top: 16px; padding-bottom: 16px; }
.object-row:hover { background: #f5f8ff; }
.metrics { margin-bottom: 34px; }
.metric { padding-top: 19px; padding-bottom: 19px; }
.metric strong { font-size: 25px; }
.notice { border-radius: 8px; }
/* Restore contained dashboard surfaces. The prior flat override left dividers
without visual grouping, which made Overview and Analytics read as wireframes. */
#view-workspace .dashboard-card,
#view-analytics .dashboard-card,
#view-monetization .dashboard-card,
#view-workspace .kpi-card,
#view-analytics .kpi-card,
#view-monetization .kpi-card {
box-shadow: 0 1px 2px rgba(20,20,30,.03), 0 8px 24px rgba(20,20,30,.035);
}
#view-workspace .dashboard-card { border-color: transparent; }
#view-workspace .readiness-strip { display: none; }
#view-harnesses .object-copy span { max-width: 270px; }
#view-harness .settings-form-head { padding-bottom: 8px; }
#view-harness .form-section { grid-template-columns: 210px minmax(0, 720px); gap: 38px; padding: 20px 0; border-top: 0; }
#view-harness .form-section.form-group-break { margin-top: 10px; padding-top: 30px; border-top: 1px solid var(--line); }
#view-harness .inline-value { border: 0; }
#view-harness .capability-list { gap: 0; padding: 0 12px; border-radius: 9px; background: var(--surface-subtle); }
#view-harness .capability-row { padding: 10px 0; border: 0; border-radius: 0; background: transparent; }
#view-harness .capability-row + .capability-row { border-top: 1px solid var(--line); }
#view-quickstart .quickstart-steps,
#view-settings .form-section,
#view-billing .settings-list { border-color: var(--line); }
#view-billing .settings-row { grid-template-columns: 32px minmax(0,1fr) auto; }
/* Intent-led component grammar. Keep boundaries only where they explain
comparison, containment, editing, or live/test isolation. */
#view-dashboard .notice {
border: 0;
background: #fff7e5;
}
#view-dashboard .metrics {
gap: 12px;
border: 0;
}
#view-dashboard .metric {
min-height: 106px;
padding: 17px 18px;
border: 0;
border-radius: 10px;
background: #fff;
box-shadow: 0 1px 2px rgba(20,20,30,.035), 0 7px 22px rgba(20,20,30,.03);
}
#view-dashboard .metric:first-child { padding-left: 18px; }
#view-dashboard .table-wrap,
#view-harnesses .table-wrap { border: 0; }
#view-dashboard thead,
#view-harnesses thead { background: #f5f5f4; }
#view-dashboard th,
#view-harnesses th { border: 0; color: #65656e; }
#view-dashboard td,
#view-harnesses td { border-top: 0; border-bottom: 1px solid var(--line); }
#view-dashboard tbody tr:last-child td,
#view-harnesses tbody tr:last-child td { border-bottom: 0; }
#view-harnesses .toolbar { margin: 8px 0 14px; }
.collection-tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
.filter-chips { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 8px; background: #f0f1f4; }
.filter-chip {
min-height: 32px;
padding: 0 10px;
border: 0;
border-radius: 6px;
background: transparent;
color: var(--muted);
cursor: pointer;
font-size: 12px;
font-weight: 620;
white-space: nowrap;
}
.filter-chip:hover { color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20,20,30,.09); }
/* Cross-page grammar: collection views stay flat, supervision uses contained
metrics, and mutation is isolated in explicit configuration or test modes. */
.collection-view .table-wrap { overflow-x: auto; border: 0; }
.collection-view thead { background: #f5f5f4; }
.collection-view th { border: 0; color: #65656e; }
.collection-view td { border-top: 0; border-bottom: 1px solid var(--line); }
.collection-view tbody tr:last-child td { border-bottom: 0; }
.detail-context { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
#view-quickstart .quickstart-steps { margin-top: 4px; border: 0; }
#view-quickstart .quickstart-step { position: relative; padding: 4px 0 34px; border: 0; }
#view-quickstart .quickstart-step:not(:last-child)::after {
position: absolute;
top: 31px;
bottom: 7px;
left: 12px;
width: 2px;
border-radius: 999px;
background: #e5e9f2;
content: "";
}
#view-quickstart .agent-preview { border: 0; background: #f5f5f4; }
#view-harness .capability-list {
gap: 0;
overflow: hidden;
padding: 0 12px;
border-radius: 10px;
background: #f5f6f8;
}
#view-harness .capability-row {
min-height: 56px;
padding: 9px 0;
border: 0;
border-bottom: 1px solid rgba(111,111,125,.13);
border-radius: 0;
background: transparent;
}
#view-harness .capability-row:last-child { border-bottom: 0; }
#view-harness .capability-icon { background: rgba(255,255,255,.72); }
#view-harness .inline-value { border: 0; background: #f5f5f4; }
#view-analytics .dashboard-card .table-wrap { border: 0; }
#view-analytics .dashboard-card thead { background: #f5f5f4; }
#view-analytics .dashboard-card th { border: 0; }
#view-analytics .dashboard-card td { border-top: 0; border-bottom: 1px solid var(--line); }
#view-analytics .dashboard-card tbody tr:last-child td { border-bottom: 0; }
#view-monetization .dashboard-card .table-wrap { border: 0; }
#view-monetization .dashboard-card thead { background: #f5f5f4; }
#view-monetization .dashboard-card th { border: 0; }
#view-monetization .dashboard-card td { border-top: 0; border-bottom: 1px solid var(--line); }
#view-monetization .dashboard-card tbody tr:last-child td { border-bottom: 0; }
/* Monetization is one Workspace business loop: observe revenue, define what is
sold, verify customer access, and keep the payment connection healthy. */
#view-monetization .page-header { margin-bottom: 20px; }
.monetization-tabs { margin-bottom: 12px; }
.monetization-panel-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 22px;
margin-bottom: 18px;
}
.monetization-panel-head h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.monetization-panel-head p { max-width: 650px; margin: 6px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.monetization-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.monetization-toolbar .toolbar-group { min-width: 0; }
.monetization-table { min-width: 940px; }
.monetization-table .product-copy strong,
.monetization-table .product-copy span { display: block; }
.monetization-table .product-copy span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.entitlement-meter { width: 118px; }
.entitlement-meter span { display: block; margin-bottom: 6px; color: #4d4d56; font-size: 11.5px; white-space: nowrap; }
.entitlement-meter-track { height: 5px; overflow: hidden; border-radius: 999px; background: #eceef3; }
.entitlement-meter-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.connection-summary {
display: grid;
grid-template-columns: repeat(4,minmax(0,1fr));
gap: 0;
margin: 4px 0 28px;
padding: 4px;
border-radius: 10px;
background: #fafaf9;
}
.connection-summary > div { min-height: 92px; padding: 16px; }
.connection-summary span,
.connection-summary small { display: block; color: var(--muted); font-size: 11.5px; }
.connection-summary strong { display: block; margin: 8px 0 5px; font-size: 15px; }
.money-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; padding: 20px 0; }
.money-flow-step strong, .money-flow-step span { display: block; }
.money-flow-step strong { font-size: 13px; }
.money-flow-step span { margin-top: 5px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.money-flow > iconify-icon { color: var(--faint); font-size: 20px; }
.monetization-note { max-width: 920px; margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.monetization-activity { margin-top: 20px; }
.table-subcopy { color: var(--muted); font-size: 10.5px; }
.number.negative { color: var(--danger); }
.payout-guidance { display: flex; align-items: flex-start; gap: 10px; max-width: 920px; margin: 2px 0 14px; padding: 12px 14px; border-radius: 9px; background: #fafaf9; }
.payout-guidance iconify-icon { flex: 0 0 auto; margin-top: 2px; color: var(--accent); font-size: 17px; }
.payout-guidance p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.payout-guidance strong { color: var(--text); }
.product-modal-summary { margin: 2px 0 16px; padding: 12px 13px; border-radius: 8px; background: #fafaf9; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
#monetization-overview.is-active { display: grid; gap: 20px; }
#monetization-overview > .dashboard-card-head,
#monetization-overview > .dashboard-kpis,
#monetization-overview > .dashboard-card { margin: 0; }
.workspace-pulse .dashboard-card-head { margin-bottom: 6px; }
.pulse-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.pulse-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pulse-list > div:nth-child(odd) { padding-right: 24px; }
.pulse-list > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.pulse-list > div:nth-last-child(-n+2) { border-bottom: 0; }
.pulse-list span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.pulse-list span iconify-icon { font-size: 18px; }
.pulse-list strong { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pulse-list strong small { margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 600; }
.harness-runtime { display: grid; gap: 3px; }
.harness-runtime span { color: var(--muted); font-size: 11.5px; }
.detail-metrics {
display: grid;
grid-template-columns: repeat(4,minmax(0,1fr));
margin-bottom: 22px;
gap: 4px;
padding: 4px;
border: 0;
border-radius: 10px;
background: #fafaf9;
}
.detail-metric {
display: grid;
gap: 5px;
min-width: 0;
padding: 15px 16px;
border: 0;
background: transparent;
color: var(--ink);
text-align: left;
font: inherit;
}
button.detail-metric { cursor: pointer; }
button.detail-metric:hover { border-radius: 7px; background: #fff; }
.detail-metric span, .detail-metric small { color: var(--muted); }
.detail-metric span { font-size: 11.5px; font-weight: 600; }
.detail-metric strong { font-size: 24px; line-height: 1.08; font-variant-numeric: tabular-nums; }
.detail-metric small { font-size: 11.5px; }
.harness-activity { padding-top: 2px; }
.harness-activity .dashboard-card-head { margin-bottom: 10px; }
.harness-activity-feed { display: grid; }
#recentHarnessFailures { display: grid; border-top: 1px solid rgba(111,111,125,.13); }
.harness-activity-row {
display: grid;
grid-template-columns: 22px minmax(0,1fr) auto;
gap: 11px;
align-items: start;
width: 100%;
padding: 13px 0;
border: 0;
background: transparent;
color: var(--ink);
font: inherit;
text-align: left;
}
button.harness-activity-row { cursor: pointer; }
button.harness-activity-row:hover { background: rgba(48,95,255,.035); }
button.harness-activity-row:focus-visible { border-radius: 7px; outline: 2px solid var(--accent); outline-offset: 2px; }
.harness-activity-row + .harness-activity-row { border-top: 1px solid rgba(111,111,125,.13); }
.harness-activity-node { width: 20px; height: 20px; display: grid; place-items: center; color: var(--muted); }
.harness-activity-node iconify-icon { font-size: 16px; }
.harness-activity-row.is-failure .harness-activity-node { color: var(--red); }
.harness-activity-copy { min-width: 0; }
.harness-activity-copy strong, .harness-activity-copy small, .harness-activity-copy span { display: block; }
.harness-activity-copy strong { font-size: 13px; }
.harness-activity-copy small { margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.harness-activity-copy span { margin-top: 5px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.simple-list > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.simple-list > div:last-child { border-bottom: 0; }
.simple-list span:first-child { display: grid; gap: 4px; }
.simple-list small { color: var(--muted); }
.definition-list { margin: 0; }
.definition-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.definition-list > div:last-child { border-bottom: 0; }
.definition-list dt { color: var(--muted); }
.definition-list dd { margin: 0; font-weight: 650; text-align: right; }
#view-billing .billing-flat-list .settings-row { padding: 14px 8px; border: 0; border-radius: 8px; }
#view-billing .billing-flat-list .settings-row:hover { background: rgba(48,95,255,.025); }
.harness-sheet { width: min(100%, 720px); max-height: calc(100vh - 24px); }
.harness-sheet .modal-header { padding: 18px 20px 0; }
.harness-sheet .modal-header p { margin-top: 4px; }
.harness-sheet .modal-body { padding: 14px 20px 16px; }
.harness-sheet .field-stack { gap: 13px; }
.harness-sheet .modal-actions { position: sticky; bottom: -16px; margin: 12px -2px 0; padding: 10px 2px 0; background: #fff; }
.soon-label { padding: 3px 6px; border-radius: 5px; background: var(--surface-subtle); font-size: 10px; font-weight: 650; }
@media (max-width: 980px) {
:root { --sidebar-w: 204px; }
.app-header { grid-template-columns: var(--sidebar-w) minmax(200px, 360px) minmax(0,1fr); }
.utility-link { display: none; }
.metrics { grid-template-columns: repeat(2,1fr); }
.metric:nth-child(2) { border-right: 0; }
.metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.run-layout { grid-template-columns: 280px minmax(0,1fr); }
.run-detail { min-width: 0; }
.task-actions { justify-content: flex-start; }
.summary-value { min-width: 0; text-align: left; }
.dashboard-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
.detail-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
#view-dashboard .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.dashboard-main-grid, .analytics-grid { grid-template-columns: 1fr; }
.billing-balance-panel { grid-template-columns: repeat(3,minmax(0,1fr)); }
.billing-balance-panel .button { grid-column: 1 / -1; justify-self: start; }
.connection-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
:root { --sidebar-w: 0px; }
.concept-bar { text-align: center; }
.app-header { grid-template-columns: auto minmax(0,1fr) auto; padding: 0 10px; }
.brand { padding: 0 4px; }
.brand-full { display: none; }
.brand-icon { display: block; }
.global-search { margin-left: 4px; }
.balance-button span { display: none; }
.utility-link, .header-utils .icon-button { display: none; }
.header-utils .mobile-menu { display: inline-flex; }
.sidebar { display: none; top: var(--header-h); width: 250px; box-shadow: 16px 0 35px rgba(20,20,30,.12); }
.sidebar.is-open { display: block; }
main { margin-left: 0; }
.page { padding: 24px 16px 50px; }
.page-header { align-items: stretch; flex-direction: column; }
.settings-form-head { align-items: stretch; flex-direction: column; }
.settings-form-head .header-actions { justify-content: space-between; }
.page-header .button.primary { align-self: flex-start; }
.toolbar { align-items: stretch; flex-direction: column; }
.pulse-list { grid-template-columns: 1fr; }
.pulse-list > div:nth-child(odd), .pulse-list > div:nth-child(even) { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
.pulse-list > div:last-child { border-bottom: 0; }
.toolbar-group { flex-wrap: wrap; }
.search-input { width: 100%; }
.run-layout { grid-template-columns: 1fr; }
.run-layout { height: auto; max-height: none; }
.task-mode-context { grid-template-columns: 24px minmax(0,1fr); }
.mode-badge { grid-column: 2; justify-self: start; }
.run-detail { min-height: 420px; }
.run-summary-grid { grid-template-columns: repeat(2,1fr); }
.run-summary-stat:nth-child(2) { border-right: 0; }
.run-summary-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.output-layout { grid-template-columns: 1fr; }
.form-section { grid-template-columns: 1fr; gap: 14px; }
#view-harness .form-section { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
.two-column-fields { grid-template-columns: 1fr; }
.overview-summary-list .settings-row { grid-template-columns: 32px minmax(0,1fr); }
.overview-summary-list .settings-row > :last-child { grid-column: 2; justify-self: start; }
.billing-page .settings-row { grid-template-columns: 32px minmax(0,1fr); }
.billing-page .settings-row > :last-child { grid-column: 2; justify-self: start; }
.modal-actions { flex-wrap: wrap; }
.modal { max-height: calc(100dvh - 24px); }
.dashboard-lower-grid { grid-template-columns: 1fr; }
.monetization-tabs { gap: 18px; overflow-x: auto; }
.monetization-panel-head, .monetization-toolbar { align-items: stretch; flex-direction: column; }
.monetization-activity .dashboard-card-head { align-items: stretch; flex-direction: column; }
.monetization-activity .segmented { align-self: flex-start; }
.monetization-toolbar .toolbar-group { align-items: stretch; flex-direction: column; }
.monetization-toolbar .search-input, .monetization-toolbar .select { width: 100%; }
.money-flow { grid-template-columns: 1fr; gap: 8px; }
.money-flow > iconify-icon { transform: rotate(90deg); }
.detail-metrics { grid-template-columns: 1fr; }
.readiness-strip { grid-template-columns: 1fr; }
.readiness-item + .readiness-item { border-top: 1px solid var(--line); border-left: 0; }
.collection-tools { width: 100%; align-items: stretch; flex-direction: column; }
.filter-chips { align-self: flex-start; overflow-x: auto; max-width: 100%; }
.collection-tools .search-input, .collection-tools .select { width: 100%; }
.collection-view .table-wrap { max-width: 100%; overflow-x: auto; }
#view-harnesses table { min-width: 0; }
.detail-context { align-items: flex-start; flex-direction: column; }
.detail-header { align-items: flex-start; }
.detail-title { min-width: 0; }
.detail-title h1 { overflow-wrap: anywhere; }
.detail-title p { line-height: 1.45; }
.attention-meta { grid-template-columns: 1fr; gap: 0; }
.attention-card .button { width: 100%; }
#view-workspace .dashboard-table { width: 100%; table-layout: fixed; }
#view-workspace .dashboard-lower-grid > section:first-child .dashboard-table :is(th,td):nth-child(3),
#view-workspace .dashboard-lower-grid > section:first-child .dashboard-table :is(th,td):nth-child(4),
#view-workspace .dashboard-lower-grid > section:first-child .dashboard-table :is(th,td):nth-child(5),
#view-workspace .dashboard-lower-grid > section:nth-child(2) .dashboard-table :is(th,td):nth-child(2),
#view-workspace .dashboard-lower-grid > section:nth-child(2) .dashboard-table :is(th,td):nth-child(4) { display: none; }
#view-workspace .dashboard-table :is(th,td):last-child { width: 42px; }
#view-workspace .dashboard-lower-grid > section:first-child .dashboard-table :is(th,td):nth-child(2) { width: 104px; }
#view-workspace .dashboard-lower-grid > section:nth-child(2) .dashboard-table :is(th,td):nth-child(3) { width: 92px; }
}
@media (max-width: 460px) {
.global-search input { padding-right: 12px; }
.search-key { display: none; }
.page-header h1, .detail-title h1 { font-size: 25px; }
.metrics { grid-template-columns: 1fr 1fr; }
.metric { padding: 14px 10px; }
.metric:first-child { padding-left: 10px; }
.metric strong { font-size: 20px; }
th, td { padding-left: 10px; padding-right: 10px; }
.run-detail { padding: 18px 16px; }
.run-detail { padding: 0; }
.task-detail-shell, .conversation { padding-left: 16px; padding-right: 16px; }
.composer { padding-left: 16px; padding-right: 16px; }
.capability-row { grid-template-columns: 30px minmax(0,1fr); }
.capability-actions { grid-column: 2; justify-content: flex-start; }
.header-row { grid-template-columns: 1fr; }
.session-detail-head, .inspector-head { align-items: stretch; flex-direction: column; }
.run-inspector { padding: 18px 16px; }
.run-inspector .tabs { gap: 18px; overflow-x: auto; }
.trace-toolbar { align-items: flex-start; flex-direction: column; gap: 6px; }
.trace-list::before { left: 67px; }
.trace-event { grid-template-columns: 52px 12px minmax(0,1fr); }
.trace-duration { display: none; }
.dashboard-kpis { grid-template-columns: 1fr; }
.billing-plan-line { align-items: flex-start; flex-direction: column; gap: 12px; }
.billing-balance-panel { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
.billing-balance-panel .button { grid-column: auto; width: 100%; }
.connection-summary { grid-template-columns: 1fr; }
.billing-page .section-header { align-items: flex-start; flex-direction: column; gap: 4px; }
.billing-page .button.small { min-height: 44px; }
.chart-wrap { height: 220px; }
.readiness-item { grid-template-columns: 30px minmax(0,1fr); }
.readiness-item .button, .readiness-item .row-action { grid-column: 2; justify-self: start; }
}
/* ── Revamp glue: existing pages hosted inside the new shell ─────────────────── */
/* main is the ONE scroll container (header banner + sidebar pinned forever; the document never
scrolls — hr.css pins body height, which broke the sticky header past 100vh). Overrides the
extracted prototype's document-scroll assumption. */
main { height: calc(100vh - var(--header-h)); overflow-y: auto; min-height: 0; margin-left: var(--sidebar-w); }
body { overflow: hidden; }
@media (max-width: 760px) { main { margin-left: 0; } }
/* Legacy hr-wrap pages (keys, billing, account, agents) get prototype page gutters. */
main .hr-wrap { max-width: 1320px; margin: 0 auto; padding: 28px 32px 64px; }
/* ── Tasks page (run-layout master-detail per the HIG prototype) ─────────────── */
/* The card height: main scrolls, header (64) + page paddings/page-header ≈ 204px above the card,
same arithmetic as the prototype. Bottom page padding lets short screens scroll to it whole. */
/* Tasks has NO title row (finalized design): full-width page, card fills the viewport. */
.tasks-page { max-width: none; padding: 20px 24px 24px; }
/* Tightened title-to-content rhythm (user: prototype reads tighter than our render). */
.page { padding-top: 24px; }
.page-header { margin-bottom: 18px; }
.page-header p { margin-top: 5px; }
/* Recent-tasks cells: fixed layout + ellipsis with hover hint via title attr. */
.recent-tasks-table { table-layout: fixed; width: 100%; }
.recent-tasks-table .cell-ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-tasks-table .cell-task { width: 38%; }
.recent-tasks-table .cell-harness { width: 26%; }
.recent-tasks-table .cell-nowrap { white-space: nowrap; }
.recent-tasks-table th:nth-child(1) { width: 38%; }
.recent-tasks-table th:nth-child(2) { width: 26%; }
.recent-tasks-table th:nth-child(5), .recent-tasks-table td:last-child { width: 44px; }
/* Conversation fills the detail column below the tabs; its inner panes own the scrolls. */
.run-detail-fill { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.run-detail-fill > .wbx-conv, .run-detail-fill .wbx-conv { height: 100%; }
.run-trace-scroll { flex: 1; min-height: 0; overflow-y: auto; }
/* Row delete affordance: hidden until the row is hovered, like the old recents list. */
.run-item-del { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
width: 22px; height: 22px; flex: 0 0 auto; padding: 0; border: 0; background: transparent;
border-radius: 6px; color: var(--faint); opacity: 0; cursor: pointer; }
/* Narrow screens: list and detail alternate as full-width views (state class from the page). */
@media (max-width: 820px) {
.tasks-page .run-layout { grid-template-columns: 1fr; height: calc(100vh - 120px); min-height: 420px; }
.tasks-page .run-layout:not(.m-detail) .run-detail { display: none; }
.tasks-page .run-layout.m-detail .run-list { display: none; }
.tasks-page .page-header .header-actions { flex-wrap: wrap; }
}
/* Destructive confirm button (revoke/delete modals) — the prototype only styles menu-item
.danger; give the standalone button an equivalent treatment. */
.button.danger { border-color: #f3c6c6; background: #fff5f5; color: #b4232d; }
.button.danger:hover { background: #fdeaea; }
/* Trace tab embeds the ORIGINAL Traces component (no session list — the task list selects). */
.run-trace-embed { flex: 1; min-height: 0; display: flex; overflow: hidden; }
.run-trace-embed > * { flex: 1; min-width: 0; }
.run-trace-embed .session-empty { align-self: center; width: 100%; }
/* Harness settings: sticky action bar pinned to the viewport bottom of the scrolling main. */
.settings-footer-sticky { position: sticky; bottom: 0; z-index: 5; margin-top: 0;
padding: 12px 0; background: var(--bg); border-top: 1px solid var(--line); }
/* SkillEditor create-flow: editable name in the header. */
.skl-title-edit { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.skl-name-input { min-width: 220px; border: 1px solid var(--line); border-radius: 7px;
padding: 5px 9px; font-size: 13px; font-weight: 600; font-family: inherit; }
.run-flt-btn { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center;
border: 1px solid var(--line-strong, #d5d5dc); border-radius: 9px; background: #fff;
color: var(--muted); cursor: pointer; font-size: 17px; }
.run-flt-btn:hover { color: var(--ink); }
.run-flt-btn.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.run-flt-menu { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; min-width: 160px;
padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
box-shadow: 0 14px 32px rgba(20,20,30,.14); }
.run-flt-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
min-height: 34px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent;
color: var(--ink); cursor: pointer; font-size: 13px; text-align: left; }
.run-flt-item:hover { background: #f4f4f7; }
.run-flt-item.on { color: var(--accent); font-weight: 640; }
/* Trace embed: the task name already sits in the detail head — hide the inner duplicate. */
.run-trace-embed .tr-mtitle { display: none; }
.run-trace-embed .tr-mhead { padding-top: 4px; }
/* Harness settings action bar: FIXED to the viewport bottom (not just sticky at content end). */
#view-harness .settings-footer-sticky { position: fixed; left: var(--sidebar-w); right: 0; bottom: 0;
margin: 0; padding: 12px 32px; background: #fff; border-top: 1px solid var(--line); z-index: 20; }
#view-harness .settings-form { padding-bottom: 88px; }
@media (max-width: 760px) { #view-harness .settings-footer-sticky { left: 0; } }
/* Composer + file cards must never overflow a narrow conversation pane (preview split, mobile). */
.wbx-conv, .wbx-conv-main, .wbx-composer, .wbx-composer-row { min-width: 0; }
.wbx-composer-row > * { min-width: 0; }
.wbx-composer-row .wbx-select-wrap { flex: 0 1 auto; min-width: 0; position: relative; }
.wbx-composer-row .wbx-select-wrap .wbx-select { width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wbx-composer-row .uic-send { flex: 0 0 auto; }
/* ── Settings footer: Delete pinned left, actions right; no idle state label ── */
.settings-footer-sticky { display: flex; align-items: center; gap: 10px; }
.settings-footer-spacer { flex: 1; }
/* Disabled buttons keep their face on hover — the prototype's `background: inherit` made a
hovered disabled primary render as an empty pill. Global. */
.button:disabled:hover { background: var(--surface, #fff); }
.button.primary:disabled, .button.primary:disabled:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.danger:disabled:hover { background: #fff5f5; }
/* ── Sidebar rhythm: Dashboard sits higher with clear space before WORKSPACE; the switcher
groups with the nav items below it. ── */
.sidebar .global-nav { margin-top: 8px; margin-bottom: 18px; }
.sidebar .switcher-wrap { margin-bottom: 6px; }
.sidebar .switcher-wrap .side-label { margin-bottom: 6px; }
.sidebar .workspace-nav { margin-top: 0; padding-top: 0; }
/* ── Skeleton loading primitives (ALL loading states render content-shaped shimmer) ── */
@keyframes sk-shimmer { 0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; } }
.sk { display: inline-block; border-radius: 6px;
background: linear-gradient(90deg, #ececf1 0px, #f7f7fa 60px, #ececf1 120px);
background-size: 200px 100%; animation: sk-shimmer 1.3s ease-in-out infinite; }
.sk-tr td { padding: 15px 14px; border-top: 1px solid var(--line); }
.sk-item { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.sk-page-head { margin: 4px 0 24px; }
.sk-blocks { display: grid; gap: 14px; }
.sk-block { display: block; width: 100%; height: 96px; border-radius: 10px; }
.sk-block.tall { height: 260px; }
.sk-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.sk-kpi { display: block; height: 112px; border-radius: 10px; }
/* Composer textarea: no focus ring — the composer card is the affordance. */
.wbx-composer-input:focus, .wbx-composer-input:focus-visible { outline: none !important; box-shadow: none; }
/* Stop replaces Send while a turn runs. */
.wbx-send-stop { display: inline-flex; align-items: center; gap: 6px; }
.wbx-act-ic iconify-icon { font-size: 16px; }
.share-choice-list { display: grid; gap: 8px; }
.share-choice { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px;
border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
.share-choice:hover { background: var(--surface-subtle); }
.share-choice.on { border-color: var(--accent); background: var(--accent-soft); }
.share-choice > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.share-choice strong { font-size: 13.5px; }
.share-choice span span { color: var(--muted); font-size: 12px; }
.share-choice > iconify-icon:last-child { color: var(--accent); }
.share-link-row { display: flex; gap: 8px; margin-top: 14px; }
.share-link-row input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: 8px;
padding: 8px 10px; font: 12.5px/1.4 ui-monospace, monospace; color: var(--ink); background: var(--surface-subtle); }
.share-brand { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; color: var(--muted); font-size: 12.5px; }
.share-conv { display: grid; gap: 18px; }
.share-turn { display: grid; gap: 12px; }
.share-user { display: flex; justify-content: flex-end; }
.share-user-bubble { max-width: 80%; padding: 10px 14px; border-radius: 14px 14px 4px 14px;
background: var(--accent-soft); color: var(--ink); font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; }
.share-asst { font-size: 13.5px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.share-asst pre { overflow-x: auto; padding: 12px; border-radius: 8px; background: #f5f5f4; font-size: 12px; }
.share-asst code { background: #f2f2f5; border-radius: 4px; padding: 1px 4px; font-size: 12px; }
.share-asst pre code { background: transparent; padding: 0; }
.share-page { padding-bottom: 80px; }
/* Share page meta badges — same look as the trace pane's labels (.tr-tag) */
.share-meta { display: flex; align-items: center; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.share-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-2, #3f3f46);
background: var(--surface-2, #f5f5f4); border: 1px solid var(--line, #e4e4e7); padding: 2.5px 9px;
border-radius: 999px; white-space: nowrap; }
.share-tag iconify-icon { color: var(--muted); font-size: 13px; }
/* Send/Stop content centered even when the composer is narrow */
.wbx-send { justify-content: center; }
/* ── GLOBAL dropdown rule: the chevron must NEVER hug the right border (≥30px right pad). ──
The prototype's .select / .field select keep the native browser arrow at the very edge;
replace it with our own chevron at right 12px on every native select in the product.
(.wbx-select already follows this rule with its own positioned chevron.) */
.select, .field select, .modal select {
appearance: none; -webkit-appearance: none;
padding-right: 34px !important;
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 12px center;
background-size: 14px;
}
/* ── Welcome / activate-credits modal — premium first-impression surface ─────────── */
@keyframes welcomeIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes welcomeOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes welcomeShine { 0% { transform: translateX(-120%) rotate(8deg); } 60%,100% { transform: translateX(220%) rotate(8deg); } }
.welcome-overlay {
position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
background: radial-gradient(120% 120% at 50% 0%, rgba(40,90,255,.16), rgba(16,18,26,.55) 60%);
backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
animation: welcomeOverlayIn .18s ease both;
}
.welcome-card {
width: min(100%, 416px); position: relative; overflow: hidden;
border: 1px solid rgba(40,90,255,.14); border-radius: 22px; background: var(--surface);
box-shadow: 0 2px 4px rgba(20,20,30,.04), 0 30px 60px -18px rgba(30,50,120,.34), 0 0 0 6px rgba(40,90,255,.05);
animation: welcomeIn .34s cubic-bezier(.2,.8,.2,1) both;
}
.welcome-hero {
position: relative; overflow: hidden; padding: 30px 28px 20px; text-align: center;
background:
radial-gradient(90% 130% at 50% -30%, rgba(40,90,255,.16), rgba(40,90,255,0) 62%),
linear-gradient(180deg, #f3f6ff 0%, var(--surface) 100%);
border-bottom: 1px solid var(--line);
}
.welcome-badge {
position: relative; width: 64px; height: 64px; margin: 2px auto 16px; display: grid; place-items: center;
border-radius: 19px; overflow: hidden; background: #fff;
border: 1px solid var(--line);
box-shadow: 0 10px 26px -10px rgba(30,50,120,.28), 0 0 0 5px rgba(40,90,255,.07), inset 0 1px 0 rgba(255,255,255,.9);
}
.welcome-badge img { width: 36px; height: 36px; display: block; }
/* ── Wide launch popup: header + two side-by-side cards (sponsor | subscribe) ─────── */
.welcome-wide {
position: relative; width: min(100%, 760px);
border: 1px solid rgba(40,90,255,.14); border-radius: 22px; background: var(--surface);
box-shadow: 0 2px 4px rgba(20,20,30,.04), 0 30px 60px -18px rgba(30,50,120,.34), 0 0 0 6px rgba(40,90,255,.05);
padding: 34px 30px 30px; animation: welcomeIn .34s cubic-bezier(.2,.8,.2,1) both;
}
.welcome-wide-close {
position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; display: grid; place-items: center;
border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
transition: background .12s, color .12s;
}
.welcome-wide-close:hover { background: var(--surface-subtle); color: var(--ink); }
.welcome-wide-close iconify-icon { font-size: 18px; }
.welcome-wide-head { text-align: center; margin-bottom: 22px; }
.welcome-wide-head .welcome-title { font-size: 27px; }
.welcome-wide-head .welcome-sub { max-width: 460px; }
.welcome-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.welcome-col {
display: flex; flex-direction: column; text-align: left;
padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
}
.welcome-col.accent { background: #f4f7ff; border-color: rgba(40,90,255,.18); }
.welcome-col-badge {
width: 44px; height: 44px; margin-bottom: 14px; display: grid; place-items: center;
border-radius: 12px; background: rgba(40,90,255,.1); color: var(--accent); font-size: 22px;
}
.welcome-col-badge.sponsor {
width: auto; height: 44px; padding: 0 14px; justify-self: start; background: #fff; border: 1px solid var(--line);
}
.welcome-col-badge.sponsor img { height: 22px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.welcome-col-title { margin: 0 0 8px; font-size: 17px; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }
.welcome-col-title b { color: var(--accent); }
.welcome-col-sub { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.welcome-col-sub b { color: var(--ink); font-weight: 650; }
.welcome-col-spacer { flex: 1 1 auto; min-height: 16px; }
.welcome-col .welcome-cta { margin-top: 4px; }
@media (max-width: 620px) {
.welcome-cards { grid-template-columns: 1fr; }
.welcome-wide { padding: 30px 20px 24px; }
}
/* ── Apply for welcome credits — the two-question form, in the same popup shell ───── */
.welcome-wide.apply-wide { width: min(100%, 560px); }
.apply-wide .welcome-wide-head { margin-bottom: 20px; }
.apply-form { display: grid; gap: 16px; text-align: left; }
.apply-field { display: grid; gap: 7px; }
.apply-label { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.apply-form .input { width: 100%; }
.apply-textarea { min-height: 96px; resize: vertical; line-height: 1.55; padding-top: 10px; padding-bottom: 10px; }
.apply-error {
display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 10px;
background: var(--red-soft, rgba(220,60,60,.08)); color: var(--red, #b4460f); font-size: 13px;
}
.apply-actions { display: grid; gap: 6px; margin-top: 2px; }
.apply-hint { margin: 0; text-align: center; color: var(--faint); font-size: 12px; }
.apply-done { text-align: center; padding: 12px 4px 4px; }
.apply-done-badge {
width: 58px; height: 58px; margin: 0 auto 16px; display: grid; place-items: center;
border-radius: 17px; color: #fff; font-size: 27px;
background: linear-gradient(140deg, #4c78ff 0%, #1a5cf5 55%, #1b3fd8 100%);
box-shadow: 0 10px 22px -8px rgba(40,90,255,.55), inset 0 1px 0 rgba(255,255,255,.35);
}
.apply-done-cta { max-width: 240px; margin: 22px auto 0; }
/* ── Credit approvals (platform org) ─────────────────────────────────────────────── */
.creq-table { width: 100%; }
.creq-table td { vertical-align: top; }
.creq-org { display: grid; gap: 3px; min-width: 0; }
.creq-org strong { font-size: 13.5px; }
.creq-org span { color: var(--muted); font-size: 12px; word-break: break-word; }
.creq-use { color: var(--ink); font-size: 13px; line-height: 1.5; max-width: 460px; white-space: pre-wrap; }
.creq-when { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.creq-actions { text-align: right; white-space: nowrap; }
.creq-actions .button + .button { margin-left: 8px; }
/* The decider is an email — one unbreakable token, so it must be allowed to wrap or it clips. */
.creq-decided { color: var(--muted); font-size: 12.5px; text-align: right;
white-space: normal; word-break: break-word; }
.creq-status {
display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
font-size: 11.5px; font-weight: 650; white-space: nowrap;
}
.creq-status.pending { background: rgba(40,90,255,.1); color: var(--accent); }
.creq-status.approved { background: var(--green-soft); color: var(--green); }
.creq-status.denied { background: var(--surface-subtle); color: var(--muted); }
.creq-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
@media (max-width: 760px) {
.creq-use { max-width: none; }
.creq-mobile-hide { display: none; }
/* Shed the decision DETAIL, never the decision itself — the status pill in the workspace cell
already says approved/denied, and the actions column has to survive for pending rows. */
.creq-decided { display: none; }
.creq-actions { white-space: normal; }
.creq-actions .button { display: block; width: 100%; }
.creq-actions .button + .button { margin-left: 0; margin-top: 6px; }
}
.welcome-badge::after {
content: ""; position: absolute; top: -30%; left: 0; width: 40%; height: 160%;
background: linear-gradient(90deg, transparent, rgba(40,90,255,.1), transparent);
animation: welcomeShine 3.6s ease-in-out 0.8s infinite;
}
.welcome-eyebrow {
display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 4px 11px;
border-radius: 999px; background: rgba(40,90,255,.1); color: var(--accent);
font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
}
.welcome-eyebrow iconify-icon { font-size: 13px; }
.welcome-title { margin: 0; font-size: 23px; line-height: 1.15; letter-spacing: -.03em; color: var(--ink); font-weight: 700; }
.welcome-title b { color: var(--accent); font-weight: 700; }
.welcome-sub { margin: 9px auto 0; max-width: 300px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.welcome-body { padding: 18px 24px 22px; }
.welcome-benefits { display: grid; gap: 11px; margin: 0 0 20px; }
.welcome-benefit { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: var(--ink); line-height: 1.4; }
.welcome-benefit .wb-ic {
flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; display: grid; place-items: center;
border-radius: 7px; background: var(--green-soft); color: var(--green); font-size: 14px;
}
.welcome-benefit b { font-weight: 650; }
.welcome-benefit span { color: var(--muted); }
.welcome-actions { display: flex; flex-direction: column; gap: 8px; }
.welcome-cta {
width: 100%; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
border: 0; border-radius: 12px; cursor: pointer; font-size: 14.5px; font-weight: 650; color: #fff;
background: linear-gradient(135deg, #3f6bff 0%, #1a5cf5 60%, #1f4ae6 100%);
box-shadow: 0 8px 20px -6px rgba(40,90,255,.55), inset 0 1px 0 rgba(255,255,255,.28);
transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.welcome-cta:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 26px -6px rgba(40,90,255,.62); filter: brightness(1.03); }
.welcome-cta:active:not(:disabled) { transform: translateY(0); }
.welcome-cta:disabled { cursor: default; opacity: .6; }
.welcome-later {
width: 100%; min-height: 38px; border: 0; background: transparent; cursor: pointer;
color: var(--muted); font-size: 13px; font-weight: 500; border-radius: 10px; transition: color .12s, background .12s;
}
.welcome-later:hover:not(:disabled) { color: var(--ink); background: var(--surface-subtle); }
.welcome-trust {
display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px;
color: var(--faint); font-size: 11.5px;
}
.welcome-trust iconify-icon { font-size: 13px; }
/* ── Welcome-credits banner (billing page) — premium activation strip ────────────── */
.welcome-banner {
position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px;
margin-bottom: 18px; padding: 20px 22px; border-radius: 16px;
border: 1px solid rgba(40,90,255,.16);
background:
radial-gradient(120% 200% at 0% 0%, rgba(40,90,255,.09), rgba(40,90,255,0) 42%),
linear-gradient(180deg, #f6f8ff 0%, var(--surface) 70%);
box-shadow: 0 1px 2px rgba(20,20,30,.03), 0 14px 32px -18px rgba(30,50,120,.28);
}
.welcome-banner-badge {
flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; color: #fff;
border-radius: 15px; background: linear-gradient(140deg, #4c78ff 0%, #1a5cf5 55%, #1b3fd8 100%);
box-shadow: 0 8px 18px -6px rgba(40,90,255,.55), inset 0 1px 0 rgba(255,255,255,.35);
}
.welcome-banner-badge iconify-icon { font-size: 25px; }
.welcome-banner-main { flex: 1 1 auto; min-width: 0; }
.welcome-banner-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.welcome-banner-eyebrow {
padding: 3px 9px; border-radius: 999px; background: rgba(40,90,255,.1); color: var(--accent);
font-size: 10.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase;
}
.welcome-banner-title { margin: 0; font-size: 17px; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }
.welcome-banner-title b { color: var(--accent); }
.welcome-banner-sub { margin: 6px 0 0; max-width: 640px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.welcome-banner-sub b { color: var(--ink); font-weight: 600; }
.welcome-banner-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.welcome-chip {
display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 550;
}
.welcome-chip iconify-icon { font-size: 13px; color: var(--accent); }
.welcome-banner-cta {
flex: 0 0 auto; min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px;
border: 0; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 650; color: #fff; white-space: nowrap;
background: linear-gradient(135deg, #3f6bff 0%, #1a5cf5 60%, #1f4ae6 100%);
box-shadow: 0 8px 20px -6px rgba(40,90,255,.5), inset 0 1px 0 rgba(255,255,255,.28);
transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.welcome-banner-cta:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 26px -6px rgba(40,90,255,.6); filter: brightness(1.03); }
.welcome-banner-cta:disabled { cursor: default; opacity: .6; }
@media (max-width: 640px) {
.welcome-banner { flex-direction: column; align-items: flex-start; }
.welcome-banner-cta { width: 100%; justify-content: center; }
}
/* ── Saved payment-method indicator (billing top slot) ──────────────────────────── */
.pay-card-row { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.pay-card {
flex: 0 0 auto; width: 300px; height: 174px; position: relative; padding: 20px;
border-radius: 15px; color: rgba(255,255,255,.92); overflow: hidden;
background: linear-gradient(145deg, #9a9aa3 0%, #7c7c85 40%, #5f5f68 100%);
box-shadow: 0 14px 30px -12px rgba(30,30,40,.5), inset 0 1px 0 rgba(255,255,255,.18);
}
.pay-card::before {
content: ""; position: absolute; inset: 0;
background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.14), transparent 55%);
}
.pay-card-chip {
width: 40px; height: 30px; border-radius: 6px;
background: linear-gradient(135deg, #f4d27a 0%, #d9ad4f 60%, #c79a3c 100%);
box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.pay-card-chip::after {
content: ""; display: block; margin: 9px auto 0; width: 24px; height: 12px; border-radius: 3px;
border: 1px solid rgba(0,0,0,.22);
}
.pay-card-number {
position: absolute; left: 20px; right: 20px; top: 88px;
font-family: "SFMono-Regular", ui-monospace, Menlo, monospace; font-size: 17px; letter-spacing: 2px;
}
.pay-card-foot {
position: absolute; left: 20px; right: 20px; bottom: 18px;
display: flex; align-items: flex-end; justify-content: space-between;
font-family: "SFMono-Regular", ui-monospace, Menlo, monospace; font-size: 14px; letter-spacing: 1px;
}
.pay-card-exp { text-align: right; line-height: 1.3; }
.pay-card-exp em { display: block; font-style: normal; font-size: 8.5px; letter-spacing: .12em;
text-transform: uppercase; opacity: .8; font-family: var(--font); }
.pay-card-meta { flex: 1 1 240px; min-width: 220px; display: flex; align-items: flex-end; }
.pay-card-update:disabled { cursor: default; opacity: .6; }
.harness-runtime-logo { display: flex; align-items: center; gap: 9px; }
/* name on row 1, model on row 2 (the outer flex is logo | text-stack) */
.harness-runtime-logo > div { display: grid; gap: 3px; min-width: 0; }
.harness-runtime-logo strong, .harness-runtime-logo span { display: block; }
/* ── Integrations console (token-provider routing) ─────────────────────────── */
.itg-table { width: 100%; }
.itg-table td { vertical-align: middle; }
.itg-models { color: var(--muted); font-size: 12.5px; }
.itg-row-actions { text-align: right; width: 90px; }
.itg-section-head { margin: 34px 0 12px; }
.itg-section-head h2 { font-size: 18px; margin: 0 0 4px; }
.itg-section-head p { color: var(--muted); font-size: 13px; margin: 0; }
.itg-saved { display: inline-flex; align-items: center; gap: 6px; color: var(--green);
font-size: 13px; font-weight: 600; margin-bottom: 10px; }
/* mapping table: pin the two content columns so header, rows, and the add-row align */
.itg-map-table { table-layout: fixed; }
.itg-map-table th:nth-child(1), .itg-map-table td:nth-child(1) { width: 300px; }
.itg-map-table th:nth-child(2), .itg-map-table td:nth-child(2) { width: 300px; }
.itg-map-table .select { width: 100%; max-width: 260px; }
.itg-addmap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 4px 0; }
.itg-addmap .select { width: 260px; }
.itg-panel { max-width: 560px; }
.itg-provider-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
/* the hosted service as a provider: a card above the grid, then "or bring your own" */
.itg-hosted { display: grid; gap: 4px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 10px;
border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.itg-hosted.on { border-color: var(--accent); background: var(--accent-soft); }
.itg-hosted:disabled { opacity: .55; cursor: default; }
.itg-hosted-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
.itg-hosted-link { font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.itg-hosted-link:hover { text-decoration: underline; }
.itg-hosted-accent { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.itg-hosted-muted { font-size: 12px; color: var(--muted); }
.itg-or { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; color: var(--muted);
font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }
.itg-or::before, .itg-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
/* what is left to spend on the hosted account: an amber pill on its own row under the name */
.itg-balance-row { margin-top: 5px; }
.itg-balance-topup { margin-left: 8px; font-size: 12px; color: var(--brand); text-decoration: none; white-space: nowrap; }
.itg-balance-topup:hover { text-decoration: underline; }
.itg-balance { display: inline-block; padding: 2px 9px; border-radius: 999px;
font-size: 11.5px; font-weight: 600; line-height: 16px; color: #8a5a00;
background: #fff3cf; border: 1px solid rgba(214, 150, 0, .38); white-space: nowrap; }
.itg-balance.out { color: var(--red); background: var(--red-soft); border-color: rgba(180, 70, 15, .28); }
.itg-handoff.ready { color: var(--accent); }
.itg-handoff.failed { color: var(--red); }
/* the hosted steps (sign in, top up, key) in a dialog over the form: a white sheet holding the
hosted page in a frame, a close X in its corner; the poll on the form carries the key */
.itg-frame-backdrop { z-index: 1001; }
.itg-frame { position: relative; width: min(560px, 94vw); background: #fff; border-radius: 18px;
overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.28); }
.itg-frame-view { display: block; width: 100%; height: min(760px, 88vh); border: 0; }
.itg-frame-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: inline-flex;
align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent;
color: var(--muted); font-size: 18px; cursor: pointer; }
.itg-frame-close:hover { background: var(--surface); color: var(--fg); }
/* a custom endpoint's model rows: the model a harness picks, the name the endpoint wants */
.itg-model-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; margin-bottom: 8px; }
.itg-model-row .select, .itg-model-row input { min-width: 0; }
@media (max-width: 480px) { .itg-model-row { grid-template-columns: minmax(0, 1fr) auto; } .itg-model-row input { grid-column: 1 / -1; } }
.itg-provider { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.itg-provider.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.itg-provider:disabled { opacity: .55; cursor: default; }
.itg-sublabel { font-size: 12px; color: var(--muted); }
.itg-modelgrid { display: grid; gap: 8px; }
.itg-modelrow { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1.4fr) auto;
gap: 8px; align-items: center; }
.itg-modelrow input { min-width: 0; }
.itg-arrow { color: var(--faint); }
.button.danger-ghost { color: var(--red); border-color: transparent; background: transparent; }
.button.danger-ghost:hover { background: var(--red-soft); border-color: var(--red-soft); }
@media (max-width: 760px) {
.itg-desktop-col { display: none; }
.itg-modelrow { grid-template-columns: minmax(0,1fr) auto; }
.itg-modelrow .itg-arrow { display: none; }
.itg-addmap .select { width: 100%; }
.itg-map-table th:nth-child(1), .itg-map-table td:nth-child(1),
.itg-map-table th:nth-child(2), .itg-map-table td:nth-child(2) { width: auto; }
.itg-map-table .select { max-width: none; }
}
/* welcome popup — plan picker */
.welcome-plans { display: grid; gap: 8px; margin-bottom: 14px; }
.welcome-plan { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto;
gap: 2px 10px; text-align: left; padding: 11px 14px; border: 1px solid var(--line);
border-radius: 10px; background: var(--surface); cursor: pointer; font-family: inherit; }
.welcome-plan.on { border-color: var(--accent); background: var(--accent-soft); }
/* explicit placement: name + credits stack LEFT, price pinned RIGHT (auto-placement put
the row-spanning price in column 1, right-aligning the text stack) */
.welcome-plan .wp-name { grid-column: 1; grid-row: 1; justify-self: start;
font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.welcome-plan .wp-name em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--accent);
background: #fff; border: 1px solid var(--accent-soft); padding: 1px 7px; border-radius: 999px; }
.welcome-plan .wp-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: end;
font-size: 16px; font-weight: 800; }
.welcome-plan .wp-price small { font-size: 11px; font-weight: 600; color: var(--muted); }
.welcome-plan .wp-credits { grid-column: 1; grid-row: 2; justify-self: start;
font-size: 12px; color: var(--muted); }
/* invite-a-friend popup */
.invite-linkrow { display: flex; gap: 8px; margin-bottom: 14px; }
.invite-linkrow input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line);
border-radius: 9px; background: var(--surface-subtle); color: var(--ink); font-size: 12.5px; }
.invite-copy { flex: 0 0 auto; width: auto !important; padding: 0 16px; }
/* ── First-run onboarding wall ───────────────────────────────────────────────────── */
/* No close affordance anywhere on purpose: the flow is walked, not dismissed. Every ASK
inside it is skippable, which is what keeps "cannot close" from meaning "must pay". */
/* An OPAQUE takeover, not a scrim. The app behind is not dimmed, blurred or half-visible —
it is simply not there. A translucent mask says "a dialog is covering your page"; this step
is the page, and showing a ghost of the dashboard underneath only invites people to try to
click through to it. Solid background, no backdrop-filter, nothing to see past. */
.ob-overlay {
position: fixed; inset: 0; z-index: 300; overflow-y: auto;
display: flex; align-items: center; justify-content: center; padding: 32px 24px;
background: var(--bg);
animation: welcomeOverlayIn .2s ease both;
}
/* The card holds the CONTENT; Back / skip / Next and the progress dots sit on the page beneath
it, so the panel stays a clean rectangle of substance instead of growing a chrome bar. */
.ob-stage { width: min(100%, 720px); margin: auto; }
.ob-card {
display: flex; flex-direction: column; padding: 34px;
border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
box-shadow: 0 1px 2px rgba(20,20,30,.04);
animation: welcomeIn .34s cubic-bezier(.2,.8,.2,1) both;
}
.ob-title { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.03em; font-weight: 700; color: var(--ink); }
.ob-title-ok { display: flex; align-items: center; gap: 10px; }
.ob-title-ok iconify-icon { color: var(--green); font-size: 26px; flex: 0 0 auto; }
.ob-sub { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 560px; }
.ob-values { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 26px; }
.ob-value { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-subtle); }
.ob-value-ic {
width: 36px; height: 36px; margin-bottom: 12px; display: grid; place-items: center;
border-radius: 10px; background: rgba(40,90,255,.1); color: var(--accent); font-size: 19px;
}
.ob-value h3 { margin: 0 0 6px; font-size: 14.5px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.ob-value p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.ob-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 22px 0 7px; }
.ob-label em { font-style: normal; font-weight: 400; color: var(--faint); }
.ob-key-row { display: flex; align-items: stretch; gap: 8px; }
.ob-key {
flex: 1 1 auto; min-width: 0; padding: 12px 14px; border-radius: 10px;
border: 1px solid var(--line); background: var(--surface-subtle); color: var(--ink);
font-family: "SFMono-Regular", ui-monospace, Menlo, monospace; font-size: 13px;
overflow-x: auto; white-space: nowrap; display: flex; align-items: center;
}
.ob-key-wait { color: var(--muted); font-family: var(--font); }
.ob-copy {
flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px;
border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer;
}
.ob-copy:hover { background: var(--surface-subtle); }
.ob-note { margin: 10px 0 0; font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.ob-error {
display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px;
border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 13px;
}
.ob-retry { margin-left: auto; border: 0; background: transparent; color: var(--red);
font-weight: 650; font-size: 13px; cursor: pointer; text-decoration: underline; }
.ob-form { display: grid; gap: 14px; margin-top: 20px; }
.ob-field { display: grid; gap: 6px; }
.ob-field .ob-label { margin: 0; }
.ob-field .input, .ob-field .select { width: 100%; }
.ob-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ob-primary {
width: 100%; min-height: 46px; margin-top: 4px; display: inline-flex; align-items: center;
justify-content: center; gap: 8px; border: 0; border-radius: 12px; cursor: pointer;
font-size: 14.5px; font-weight: 650; color: #fff;
background: linear-gradient(135deg, #3f6bff 0%, #1a5cf5 60%, #1f4ae6 100%);
box-shadow: 0 8px 20px -6px rgba(40,90,255,.55);
}
.ob-primary:disabled { background: var(--surface-subtle); color: var(--faint); box-shadow: none; cursor: default; }
.ob-sources { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 22px; }
.ob-source {
display: flex; align-items: center; gap: 10px; padding: 11px 14px; text-align: left;
border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
color: var(--ink); font-size: 13.5px; font-weight: 500; cursor: pointer;
transition: border-color .12s, background .12s;
}
.ob-source:hover { background: var(--surface-subtle); }
.ob-source.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ob-radio {
flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%;
border: 1.5px solid var(--line-strong, #c9c9d2); background: var(--surface);
}
.ob-source.on .ob-radio { border-color: var(--accent); border-width: 5px; }
.ob-foot {
display: flex; align-items: center; gap: 12px; padding: 18px 4px 0;
}
.ob-foot-left, .ob-foot-right { flex: 1 1 0; display: flex; align-items: center; gap: 16px; }
.ob-foot-right { justify-content: flex-end; }
.ob-dots { display: flex; gap: 6px; justify-content: center; padding-top: 22px; }
.ob-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.ob-dot.done { background: rgba(40,90,255,.4); }
.ob-dot.on { background: var(--accent); width: 20px; border-radius: 4px; }
.ob-back, .ob-skip {
display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent;
color: var(--muted); font-size: 13.5px; font-weight: 500; cursor: pointer; padding: 8px 4px;
white-space: nowrap;
}
.ob-back:hover, .ob-skip:hover { color: var(--ink); }
.ob-next {
min-height: 40px; padding: 0 22px; border: 0; border-radius: 10px; cursor: pointer;
font-size: 14px; font-weight: 650; color: #fff; background: var(--accent);
}
.ob-next:hover:not(:disabled) { background: var(--accent-hover); }
.ob-next:disabled { opacity: .5; cursor: default; }
@media (max-width: 720px) {
/* Edge to edge on a phone: a floating card inside an opaque page wastes the only screen
space there is, and the border adds nothing when nothing shows around it. */
.ob-overlay { padding: 0; align-items: stretch; }
.ob-stage { width: 100%; min-height: 100vh; display: flex; flex-direction: column; padding: 0 16px 20px; }
.ob-card { flex: 1 1 auto; border-radius: 0; border: 0; box-shadow: none;
padding: 26px 4px 20px; background: transparent; }
.ob-title { font-size: 22px; }
.ob-values { grid-template-columns: 1fr; gap: 10px; }
.ob-sources { grid-template-columns: 1fr; }
.ob-row2 { grid-template-columns: 1fr; }
.ob-foot { padding: 14px 16px; border-radius: 0; }
.ob-next { padding: 0 16px; }
.ob-key { font-size: 12px; }
}
/* Onboarding context on the approvals table (staff-only surface). */
.creq-ctx { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.creq-chip {
display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 11.5px;
}
.creq-chip iconify-icon { font-size: 12px; }
.creq-addr { color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 6px; white-space: pre-line; }
.creq-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.creq-srcstat {
display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 10px;
border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; color: var(--muted);
}
.creq-srcstat b { font-size: 14px; color: var(--ink); font-weight: 700; }
/* Workspace + key, sharing the first screen with the pitch. */
.ob-ready { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.ob-ready-title {
display: flex; align-items: center; gap: 9px; margin: 0; font-size: 18px;
font-weight: 700; letter-spacing: -.02em; color: var(--ink);
}
.ob-ready-title iconify-icon { color: var(--green); font-size: 20px; flex: 0 0 auto; }
.ob-ready-sub { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.ob-note-mid { text-align: center; margin-top: 14px; }
/* ── Out of credits ──────────────────────────────────────────────────────────────── */
/* Dismissible, unlike the onboarding wall: someone whose run just stopped may well want to
re-read what their agent did before deciding to spend. */
.oc-card {
position: relative; width: min(100%, 420px); padding: 30px 28px 22px; text-align: center;
border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
box-shadow: 0 24px 60px -20px rgba(30,40,90,.35);
animation: welcomeIn .3s cubic-bezier(.2,.8,.2,1) both;
}
.oc-badge {
width: 54px; height: 54px; margin: 0 auto 16px; display: grid; place-items: center;
border-radius: 16px; background: var(--amber-soft); color: var(--amber); font-size: 26px;
}
.oc-card .welcome-sub { max-width: none; }
.oc-cta { margin-top: 20px; }
/* ── Subscription | Top Up switcher (billing) ────────────────────────────────────── */
/* The two ways to pay used to be stacked sections, so the second only existed if you scrolled
far enough to find it. Side by side, each carrying the one line that tells you which you want. */
.pay-tabs {
display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 16px; max-width: 560px;
}
.pay-tab {
display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left;
padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
color: var(--ink); font-size: 14.5px; font-weight: 650; cursor: pointer;
transition: border-color .12s, background .12s, box-shadow .12s;
}
.pay-tab span { font-size: 12px; font-weight: 400; color: var(--muted); }
.pay-tab:hover { background: var(--surface-subtle); }
.pay-tab.on {
border-color: var(--accent); background: var(--accent-soft); color: var(--accent);
box-shadow: inset 0 0 0 1px var(--accent);
}
/* No opacity fade: at .8 over the tab's tint this sub-label dropped under the 4.5:1 that small
text needs. */
.pay-tab.on span { color: var(--accent); }
@media (max-width: 560px) { .pay-tabs { grid-template-columns: 1fr; max-width: none; } }
/* Subtitle carrying the workspace-ready confirmation on the first onboarding screen. */
.ob-sub-ready { display: flex; align-items: flex-start; gap: 9px; }
.ob-sub-ready iconify-icon { color: var(--green); font-size: 19px; flex: 0 0 auto; margin-top: 1px; }
.ob-sub-ready b { color: var(--ink); font-weight: 650; }
/* The credit-application pill on the last step. A slow sheen sweep + a breathing glow —
attention-getting without literal blinking (and stilled entirely under reduced motion). */
@keyframes ob-badge-sheen { to { background-position: -220% 0; } }
@keyframes ob-badge-glow {
0%, 100% { box-shadow: 0 4px 14px rgba(40, 90, 255, .28); }
50% { box-shadow: 0 4px 24px rgba(40, 90, 255, .55); }
}
/* Embedded card form (provider iframe lives inside .ec-wrap). */
.ec-wrap { display: grid; gap: 16px; }
.ec-loading { padding: 28px 0; text-align: center; color: var(--muted); font-size: 13.5px; }
.ob-linkish {
border: 0; background: transparent; color: var(--muted); font-size: 12.5px;
cursor: pointer; text-decoration: underline; padding: 2px;
}
.ob-linkish:hover { color: var(--ink); }
/* Channel chips double as filters on the onboarding-forms page. */
button.creq-srcstat { cursor: pointer; transition: border-color .12s, background .12s; }
button.creq-srcstat:hover { background: var(--surface-subtle); }
button.creq-srcstat.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
button.creq-srcstat.on b { color: var(--accent); }
/* The sidebar credits card is a BUTTON to Billing, and nothing about a coin and a number said
so. One small line names the destination. */
.credits-card-hint { display: block; margin-top: 2px; font-size: 11px; color: var(--accent); font-weight: 550; }
/* ── Arena columns ─────────────────────────────────────────────────────────────────────────
One comparison column. The page shell (history, hero, chat box, the row's sizing) is in
v2.css; this is only what a column looks like inside. */
.arena-col { display: flex; flex-direction: column; min-width: 0;
border: 1px solid var(--line); border-radius: 11px; background: #fff; overflow: hidden; }
.arena-col-head { flex: 0 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 6px;
padding: 10px 10px 8px; border-bottom: 1px solid var(--line); }
.arena-col-head-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* Second banner row: the conversation's totals as two quiet mono badges. */
.arena-col-totals { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.arena-col-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, ui-monospace, monospace); font-size: 11px; color: var(--v2-sec, #6b6560);
font-variant-numeric: tabular-nums; }
.arena-col-badge iconify-icon { font-size: 12px; color: var(--v2-cap, #a8a29e); }
.arena-col-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 13px; }
.arena-col-title b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The model, in the banner: mono and quiet. It reads; the chat box chip is where it changes. */
.arena-col-modelname { flex: 0 1 auto; min-width: 0; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
font-family: var(--v2-mono, ui-monospace, monospace); font-size: 11.5px; color: var(--muted); }
.arena-col-open { flex: 0 0 auto; display: inline-flex; color: var(--muted); font-size: 15px; }
.arena-col-open:hover { color: var(--accent); }
/* The winner pick: a quiet crown on every column; on the winner it becomes a right-aligned badge
with the word, so the verdict never rides on color alone. */
.arena-col-crown { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; min-height: 24px;
padding: 2px 5px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer;
font-family: inherit; font-size: 15px; line-height: 0; }
.arena-col-crown:hover { color: var(--v2-orange, #b4460f); background: var(--v2-row, #f3f2f0); }
.arena-col-crown.is-winner { padding: 3px 9px 3px 7px; background: #fdf1e3; color: #9a4b0a;
font-size: 12px; font-weight: 600; line-height: 1; }
.arena-col-crown.is-winner iconify-icon { font-size: 15px; }
.arena-col-crown.is-winner:hover { background: #f9e4cc; color: #7a3a06; }
.arena-col-body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 0 10px; }
/* The chat turns are the shared ones; a narrow column just needs tighter gutters, and room
between one exchange and the next so the answers read as separate. */
.arena-col-body .wbx-turn { padding: 0 12px; }
.arena-col-body .wbx-turn + .wbx-turn { margin-top: 18px; }
.arena-col-body .wbx-turn.asst + .wbx-turn.user { margin-top: 24px; }
/* Under an answer: what it took and cost, in the place Tasks keeps its action row. */
.arena-turn-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px;
font-family: var(--v2-mono, ui-monospace, monospace); font-size: 11px; color: var(--v2-cap, #a8a29e); }
.arena-col-body .wbx-bubble-user { max-width: 92%; }
.arena-col-empty { padding: 22px 14px; color: var(--muted); font-size: 12px; text-align: center; }
.arena-col-gone { margin: 8px 12px; padding: 9px 11px; border-radius: 8px;
background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 11.5px; line-height: 1.5; }
.arena-col-preview { min-height: 140px; border-top: 1px solid var(--line); display: flex; }
.arena-col-preview .fp-panel { border-left: 0; }
/* Why an incomplete turn is incomplete: one quiet line under the neutral badge, rendered only
when the record actually knows the cause. The badge above it deliberately no longer names a
cause, because it used to name the wrong one for interrupted turns. */
.wbx-incomplete-why { font-size: 12.5px; color: var(--faint, #6e6760); margin: 4px 0 0 2px; }
/* ── Plugins on the Harness page: one row per installed package, the same row grammar as the
Tools and Skills sections, expandable to what the server derived from it ─────────────── */
.plugin-head{flex-wrap:wrap}
.plugin-row .capability-copy{min-width:0}
.plugin-row .capability-copy strong,.plugin-row .capability-copy span{overflow-wrap:anywhere}
.plugin-row.is-off .capability-copy{opacity:.62}
/* The four actions sit two per row beside the copy so the description keeps its width. The row
follows the width of the list it is in, not the viewport: the settings panel is narrow on a
1024 screen too. Under 680px the actions drop below the copy, two per row; under 340px (a phone) one per row. */
.plugin-list{container-type:inline-size}
.plugin-row .capability-actions{display:grid;grid-template-columns:repeat(2,minmax(104px,max-content));gap:6px 8px;justify-content:end;align-self:start;margin-top:2px}
.plugin-row .capability-actions .button,.plugin-row .capability-actions .toggle-button{width:100%;min-width:0;justify-content:center}
/* a row with one action (a connected plugin's Included switch) keeps it on the right edge, where the
packages' actions end; alone in a two-column grid it sat in the first column (Richard, 2026-09-27) */
.plugin-row .capability-actions>:only-child{grid-column:1/-1;justify-self:end}
@container (max-width:680px){
.plugin-row{grid-template-columns:30px minmax(0,1fr)}
.plugin-row .capability-actions{grid-column:2;justify-content:start;margin-top:8px}
.plugin-details{grid-column:1 / -1}
}
@container (max-width:340px){
.plugin-row .capability-actions{grid-template-columns:1fr;width:100%}
.plugin-group li{grid-template-columns:1fr}
}
.plugin-row .capability-copy .plugin-title{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap} /* outranks the row's block strong, so the gap applies */
.plugin-row .capability-copy .plugin-version{display:inline-flex;align-items:center;width:auto;margin:0;padding:1px 7px;border-radius:999px;
border:1px solid var(--line,#e7e7eb);background:rgba(255,255,255,.72);font:500 10.5px/1.6 var(--mono,ui-monospace,monospace);color:var(--muted,#6f6f78);white-space:nowrap}
.plugin-row .capability-copy .plugin-desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted,#6f6f78);font-size:12px;line-height:1.45}
.plugin-row .capability-copy .plugin-facts{display:block;margin-top:4px;font-size:11.5px;color:var(--faint,#9696a0)}
.plugin-warn{font-style:normal;color:#b45309}
.plugin-details{grid-column:2 / -1;margin:6px 0 2px;padding:10px 12px;display:grid;gap:12px;border-radius:9px;background:rgba(255,255,255,.72);border:1px solid var(--line,#e7e7eb);font-size:12.5px;color:var(--muted,#6f6f78)}
.plugin-group b{display:block;margin-bottom:6px;font-size:10.5px;font-weight:660;letter-spacing:.06em;text-transform:uppercase;color:var(--faint,#9696a0)}
.plugin-group ul{margin:0;padding:0;list-style:none;display:grid;gap:6px}
.plugin-group li{display:grid;grid-template-columns:minmax(120px,max-content) minmax(0,1fr);gap:10px;align-items:baseline}
.plugin-group li code{font:500 12px/1.45 var(--mono,ui-monospace,monospace);color:var(--ink,#111317);word-break:break-all}
.plugin-group li span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.45}
.plugin-group.is-warn code{color:#b45309}
.plugin-note{margin:8px 0 0;padding:9px 12px;border-radius:8px;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.plugin-note.is-info{background:var(--subtle,#f7f7f9);color:var(--muted,#6f6f78)}
.plugin-note.is-error{background:#fef2f2;color:#991b1b}
@media (max-width:480px){
.plugin-head{display:grid;grid-template-columns:1fr;gap:8px}
.plugin-head .button{width:100%;justify-content:center}
}