





@layer legacy, components;



@layer legacy {

:root {
--header-h: 66px;
--drawer-w: 320px;
--rail-w: 22rem;
--rail-strip: 4.5rem;


--inline-sign: 1;
}
[dir="rtl"] { --inline-sign: -1; }




:root:lang(ar) * { letter-spacing: 0 !important; }







:where([dir="rtl"] [data-i18n-ltr]) { text-align: end; }
:root:lang(ar) {
--font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Geeza Pro", "Segoe UI",
"Noto Sans Arabic", monospace;
}

* { box-sizing: border-box; }

html, body {
margin: 0;
min-height: 100%;
height: 100%;
background: var(--wash);
color: var(--ink);



overflow-x: hidden;
}


body { font: var(--type-read)/var(--leading) var(--font-ui); }
@supports (overflow: clip) {
html, body { overflow-x: clip; }
}





button, input, select, textarea, optgroup { font: inherit; }

.sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
}

.app {
display: flex;
flex-direction: column;
min-height: 100%;
height: 100dvh;
background: var(--wash);
}

.app[data-lang="zh"] {
font-family: var(--font-ui);
}

.product-header {
position: relative;
z-index: 30;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;


min-height: 66px;
padding: 0 24px;
background: color-mix(in srgb, var(--surface-2) 97%, transparent);
border-bottom: 1px solid var(--line);
box-shadow: 0 1px 0 rgba(20, 45, 50, 0.02);
backdrop-filter: blur(18px);
}

.product-brand {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}

.evo-logo {
width: 38px;
height: 38px;
flex: none;
}

.suite-name {
color: var(--ink);

font: 720 var(--type-heading)/1.05 var(--font-display);
letter-spacing: -0.02em;
}

.suite-sub {
margin-top: 3px;
color: var(--muted);
font-size: var(--type-meta);
letter-spacing: 0.45px;
}

.top-nav > a.is-arriving { animation: tab-arrive 0.7s ease-out; }
@keyframes tab-arrive {
0% { opacity: 0; transform: translateY(-4px) scale(0.96); box-shadow: 0 0 0 0 rgba(42, 130, 107, 0); }
60% { opacity: 1; transform: none; box-shadow: 0 0 0 4px rgba(42, 130, 107, 0.18); }
100% { box-shadow: 0 0 0 0 rgba(42, 130, 107, 0); }
}




.tab-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
margin-inline-start: -2px;
padding: 0 5px;
border-radius: 999px;
background: var(--teal-wash);
color: var(--teal-ink);
font-size: var(--type-meta);
font-weight: 700;
font-variant-numeric: tabular-nums;
line-height: 1;
}
.tab-count[hidden] { display: none; }
.top-nav > a:not(.active) .tab-count { background: var(--line-soft); color: var(--muted); }
.top-nav > a:not(.active):hover .tab-count { color: var(--ink-2); }
.tab-count.is-new { animation: tab-count-new 600ms var(--ease-out) 1; }
@keyframes tab-count-new {
0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(42, 130, 107, 0.35); }
40% { transform: scale(1.18); box-shadow: 0 0 0 4px rgba(42, 130, 107, 0.16); }
100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(42, 130, 107, 0); }
}

.header-actions {
display: flex;
align-items: center;
gap: 8px;
}

.language-switch {
display: flex;
padding: 3px;
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--wash);
}

.language-switch button {
min-width: 38px;
padding: 5px 8px;
border: 0;
border-radius: var(--r-xs);
background: transparent;
color: var(--subtle);
font: 650 var(--type-control)/1.2 var(--font-ui);
cursor: pointer;
}

.language-switch button.active {
color: var(--teal-deep);
background: var(--surface);
box-shadow: 0 1px 3px rgba(27, 68, 68, 0.08);
}

.header-meta {
display: flex;
align-items: center;
gap: 8px;
padding: 7px 10px;
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface);
}

.header-meta small {
display: block;
color: var(--subtle);
font-size: var(--type-meta);
letter-spacing: 1.4px;
}

.header-meta b {
color: var(--ink-2);
font-size: var(--type-control);
font-weight: 650;
}


.slot-meter {
padding: 2px 7px;
border: 1px solid var(--line-soft);
border-radius: var(--r-pill);
background: var(--wash);
color: var(--muted);
font-size: var(--type-meta);
font-weight: 650;
letter-spacing: 0.2px;
white-space: nowrap;
}

.slot-meter[hidden] { display: none; }


button.slot-meter {
font-family: inherit;
cursor: pointer;
}
button.slot-meter:hover, button.slot-meter:focus-visible {
border-color: var(--line);
color: var(--ink-2);
outline: none;
}



.slot-panel {
position: fixed;
z-index: 80;
display: flex;
flex-direction: column;
gap: 4px;
width: min(22rem, calc(100vw - 16px));
max-height: min(24rem, 60vh);
overflow-y: auto;
padding: 8px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: 0 12px 32px rgba(23, 39, 48, 0.16);
}
.slot-panel[hidden] { display: none; }
.slot-panel-heading {
margin: 2px 4px 4px;
color: var(--subtle);
font-size: var(--type-meta);
letter-spacing: 1.4px;
}
.slot-panel-row {
display: flex;
flex-direction: column;
gap: 3px;
padding: 7px 9px;
border: 0;
border-radius: var(--r-s);
background: none;
color: var(--ink-2);
font: 600 var(--type-control)/1.25 var(--font-ui);
text-align: start;
cursor: pointer;
}
.slot-panel-row:hover, .slot-panel-row:focus-visible { background: var(--teal-wash); color: var(--teal-ink); outline: none; }
.slot-panel-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-panel-stage { display: flex; align-items: baseline; color: var(--muted); font-size: var(--type-meta); font-weight: 500; }
.slot-panel-pct { margin-inline-start: auto; padding-inline-start: 10px; font-variant-numeric: tabular-nums; }
.slot-panel-row.is-queued .slot-panel-bar i { background: var(--amber); }
.slot-panel-bar {
height: 4px;
overflow: hidden;
border-radius: var(--r-pill);
background: var(--line-soft);
}
.slot-panel-bar i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.slot-panel-others { margin: 4px; color: var(--muted); font-size: var(--type-meta); }


.run-switch {
display: flex;
align-items: center;
gap: 6px;
padding: 0;
border: 0;
background: transparent;
color: inherit;
font: inherit;
text-align: start;
cursor: pointer;
}

.run-switch:hover b,
.run-switch[aria-expanded="true"] b { color: var(--teal); }

.run-switch-caret {
color: var(--faint);
font-size: var(--type-meta);
}



.run-version {
padding: 1px 6px;
border-radius: var(--r-pill);
background: var(--wash);
color: var(--teal-ink);
font: 650 var(--type-meta)/1.4 var(--font-ui);
white-space: nowrap;
}

.run-list-backdrop {
position: fixed;
inset: var(--header-h) 0 0 0;
z-index: 25;
}

.run-list-backdrop[hidden] { display: none; }

.run-list {
position: fixed;
top: calc(var(--header-h) + 6px);
inset-inline-end: 24px;
z-index: 40;
display: flex;
flex-direction: column;
gap: 6px;
width: min(26rem, calc(100vw - 32px));
max-height: min(30rem, 70vh);
padding: 10px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: 0 12px 32px rgba(23, 39, 48, 0.16);
}

.run-list[hidden] { display: none; }

.run-list-head {
padding: 2px 4px 6px;
color: var(--subtle);
font: 700 var(--type-meta)/1 var(--font-ui);
letter-spacing: 0.14em;
}

.run-list ul {
margin: 0;
padding: 0;
overflow: auto;
list-style: none;
}


.run-list-foot {
display: flex;
flex-wrap: wrap;
gap: 2px 4px;
margin-top: 2px;
padding-top: 6px;
border-top: 1px solid var(--line-soft);
}
.run-list-action {
padding: 6px 8px;
border: 0;
border-radius: var(--r-s);
background: none;
color: var(--teal);
font: 650 var(--type-meta)/1.2 var(--font-ui);
cursor: pointer;
}
.run-list-action:hover { background: var(--teal-wash); }
.run-list-action:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.run-list-action[hidden],
.run-list-phone { display: none; }
@media (max-width: 640px) {
.run-list-phone:not([hidden]) { display: inline-block; }
}

.run-row-wrap {
display: flex;
align-items: stretch;
gap: 6px;
}

.run-row-wrap + .run-row-wrap { margin-top: 4px; }




.run-row {
flex: 1;
min-width: 0;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 2px 8px;
padding: 8px 10px;
border: 1px solid transparent;
border-radius: var(--r-s);
background: var(--surface-2);
color: var(--ink);
font: inherit;
text-align: start;
cursor: pointer;
}

.run-row:hover { border-color: var(--teal); }


.run-row.is-current {
background: var(--wash);
cursor: default;
}

.run-row-id {
min-width: 0;
color: var(--ink);
font: 650 var(--type-note)/1.35 var(--font-ui);
overflow-wrap: anywhere;
}

.run-row-label {
min-width: 0;
overflow: hidden;
color: var(--muted);
font-size: var(--type-meta);
white-space: nowrap;
text-overflow: ellipsis;
}

.run-row-badges {
grid-column: 1 / -1;
display: flex;
flex-wrap: wrap;
gap: 4px;
}

.run-badge {
padding: 2px 6px;
border-radius: var(--r-pill);
background: var(--surface-3);
color: var(--subtle);
font: 650 var(--type-meta)/1.4 var(--font-ui);
}

.run-badge.is-board { background: var(--teal); color: var(--surface); }
.run-badge.is-current { background: var(--line-soft); color: var(--teal-ink); }
.run-badge.is-queued { background: var(--amber-wash); color: var(--amber-ink); }
.run-badge.is-gate { background: var(--red-wash); color: var(--red); }
.run-badge.is-unreadable { background: var(--surface-3); color: var(--subtle); }
.run-badge.is-archived { background: var(--surface-3); color: var(--muted); }
.run-badge.is-version { background: var(--wash); color: var(--teal-ink); }



.run-group {
display: flex;
flex-direction: column;
gap: 4px;
}
.run-group + .run-row-wrap,
.run-row-wrap + .run-group,
.run-group + .run-group { margin-top: 4px; }

.run-group-head {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
border: 1px solid transparent;
border-radius: var(--r-s);
background: var(--surface-2);
color: var(--ink);
font: inherit;
text-align: start;
cursor: pointer;
}
.run-group-head:hover { border-color: var(--teal); }
.run-group.has-current > .run-group-head { background: var(--wash); border-color: var(--teal); }
.run-group-head .run-row-id { flex: 1; }

.run-group-caret { color: var(--muted); }
.run-group.is-open > .run-group-head .run-group-caret { transform: rotate(90deg); }



.run-group-versions {
display: none;
flex-direction: column;
gap: 4px;
margin: 0;
padding: 0;
padding-inline-start: 14px;
border-inline-start: 2px solid var(--line-soft);
list-style: none;
}
.run-group.is-open > .run-group-versions { display: flex; }

.run-row-release {
align-self: center;
padding: 7px 9px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
color: var(--amber-ink);
font: 650 var(--type-meta)/1 var(--font-ui);
cursor: pointer;
}

.run-row-release:hover {
border-color: var(--amber);
color: var(--amber-ink);
}

.run-list-empty {
padding: 8px 6px;
color: var(--subtle);
font-size: var(--type-meta);
}






.content {
flex: 1;
min-height: 0;
display: grid;
grid-template-columns: minmax(0, 1fr) var(--rail-w);
grid-template-rows: minmax(0, 1fr);
}
.content > .page {
grid-column: 1;
grid-row: 1;
}



body[data-rail="collapsed"] .content {
grid-template-columns: minmax(0, 1fr);
}
body[data-rail="collapsed"]:not([data-rail-peek="open"]) .assistant-rail {
display: none;
}

body[data-page="chat"] .content {
grid-template-columns: minmax(0, 1fr);
}

body[data-page="chat"] .assistant-rail {
display: none;
}




.assistant-rail {
grid-column: 2;
grid-row: 1 / -1;
display: flex;
flex-direction: column;
min-height: 0;
margin-block: 16px;
margin-inline: 0 18px;
border: 1px solid var(--line);
border-radius: var(--r-l);
background: var(--surface);
box-shadow: 0 10px 30px rgba(23, 39, 48, 0.07);
overflow: hidden;
animation: rail-in 180ms ease-out both;

position: relative;
z-index: 7;
}




body[data-page="chat"][data-rail-peek="open"] .assistant-rail {
display: flex;
position: fixed;
top: var(--header-h);
inset-inline-end: 0;
bottom: 0;
inset-inline-start: auto;
z-index: 50;
width: min(26rem, 92vw);
margin: 0;
border-radius: 0;
border-start-start-radius: 18px;
border-end-start-radius: 18px;
box-shadow: -18px 0 44px rgba(23, 39, 48, 0.16);
transform: none;
animation: none;
}

@keyframes rail-in {
from { opacity: 0; transform: translateY(10px) scale(0.99); }
to { opacity: 1; transform: none; }
}




body[data-rail="expanded"] {
--page-gutter: var(--space-6);
}



.rail-head {
display: flex;
flex: 0 0 auto;
align-items: center;
gap: 8px;
padding-block: 10px;
padding-inline: 14px 12px;
border-bottom: 1px solid var(--line-soft);
background: var(--surface);
}

.rail-status {
position: relative;
display: grid;
flex: 1 1 auto;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
column-gap: 8px;
min-width: 0;
margin: -4px -6px;
padding: 5px 6px 9px;
border: 0;
border-radius: var(--r-s);
background: transparent;
color: var(--ink);
text-align: start;
cursor: pointer;
}
.rail-status:hover { background: var(--wash); }
.rail-status:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.rail-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.rail-status:is([data-tone="busy"], [data-tone="done"]) .rail-status-dot { background: var(--teal); }
.rail-status[data-tone="busy"] .rail-status-dot { position: relative; animation: rail-pulse 1.6s ease-in-out infinite; }

.rail-status[data-tone="busy"] .rail-status-dot::after {
content: "";
position: absolute;
inset: 0;
border-radius: 50%;
border: 2px solid var(--teal);
animation: rail-ring 1.6s ease-out infinite;
}
@keyframes rail-ring { from { opacity: 0.7; scale: 1; } to { opacity: 0; scale: 2.6; } }
.rail-status[data-tone="attention"] .rail-status-dot { background: var(--amber); }
.rail-status[data-tone="error"] .rail-status-dot { background: var(--red); }
@keyframes rail-pulse { 50% { opacity: 0.3; } }
.rail-status-words {
display: flex;
align-items: baseline;
gap: 6px;
min-width: 0;
overflow: hidden;
white-space: nowrap;
}
.rail-status-words b { flex: 0 0 auto; font: 650 var(--type-control)/1.3 var(--font-ui); }
.rail-status[data-tone="attention"] .rail-status-words b { color: var(--amber-ink); }
.rail-status[data-tone="error"] .rail-status-words b { color: var(--red); }
.rail-status-detail {
min-width: 0;
overflow: hidden;
color: var(--muted);
font-size: var(--type-meta);
text-overflow: ellipsis;
}
.rail-status-words .rail-status-clock { flex: 0 0 auto; color: var(--teal); font: 650 var(--type-meta)/1.3 var(--font-ui); }
.rail-status-clock[hidden] { display: none; }
.rail-status-caret { display: inline-grid; color: var(--faint); transition: rotate var(--t-pop) var(--spring); }
.rail-status-caret svg { width: 12px; height: 12px; }
.rail-status[aria-expanded="true"] .rail-status-caret { rotate: 180deg; }
.rail-status-bar {
position: absolute;
inset-inline: 6px;
bottom: 2px;
height: 3px;
overflow: hidden;
border-radius: 2px;
background: var(--line-soft);
}
.rail-status-bar[hidden] { display: none; }
.rail-status-fill { display: block; width: 0; height: 100%; background: var(--teal); transition: width var(--t-base) var(--ease-out); }
.rail-status[data-tone="attention"] .rail-status-fill { background: var(--amber); }
.rail-status[data-tone="error"] .rail-status-fill { background: var(--red); }

.rail-status-body {
flex: 0 0 auto;
padding: 10px 14px;
border-bottom: 1px solid var(--line-soft);
background: var(--surface-2);
}
.rail-status-body[hidden] { display: none; }

.rail-collapse {
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink-2);
font: 650 var(--type-meta)/1 var(--font-ui);
cursor: pointer;
}


.rail-collapse { flex: 0 0 auto; display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; }
.rail-collapse svg { width: 14px; height: 14px; }
[dir="rtl"] .rail-collapse svg { scale: -1 1; }

.rail-collapse:hover { border-color: var(--teal); color: var(--teal); }

.rail-collapse:focus-visible {
outline: 2px solid var(--teal);
outline-offset: 2px;
}

.rail-body {
display: flex;
flex: 1;
min-height: 0;
flex-direction: column;
gap: 10px;
padding: 12px;
}


.rail-assistant {
display: flex;
flex: 1;
min-height: 0;
flex-direction: column;
gap: 10px;
}

.rail-assistant[hidden] { display: none; }


.rail-inbox {
display: flex;
flex: 0 1 auto;
max-height: 50%;
min-height: 0;
flex-direction: column;
}

.rail-inbox[hidden] { display: none; }

.rail-inbox-list {
display: flex;
flex: 1;
min-height: 0;
flex-direction: column;
gap: 8px;
overflow: auto;
}

.rail-transcript {
display: flex;
flex: 1;
min-height: 0;
flex-direction: column;
--talk-gap: 8px;
gap: var(--talk-gap);
overflow: auto;
}

.rail-intro {
margin: 0;
color: var(--muted);
font-size: var(--type-note);
line-height: 1.6;
}

.rail-fact {
display: flex;
gap: 8px;
margin: 0 0 4px;
font-size: var(--type-meta);
line-height: 1.45;
}

.rail-fact-label {
flex: 0 0 38%;
color: var(--subtle);
}

.rail-fact-value {
flex: 1;
min-width: 0;
color: var(--ink);
overflow-wrap: anywhere;
}

.rail-panel-empty {
margin: 0;
color: var(--muted);
font-size: var(--type-meta);
line-height: 1.5;
}

.rail-bubble {
max-width: 92%;
padding: 8px 10px;
border-radius: var(--r-m);
font-size: var(--type-read);
line-height: 1.55;
overflow-wrap: anywhere;
}

.rail-bubble.user {
align-self: flex-end;
border-radius: 14px 14px 4px 14px;
background: var(--teal-wash);
color: var(--teal-ink);
}


.rail-bubble.assistant {
max-width: 100%;
padding: 2px 0;
background: transparent;
color: var(--ink);
white-space: pre-wrap;
}


.rail-steps { display: grid; gap: 2px; }
.rail-steps-toggle {
justify-self: start;
padding: 0;
border: 0;
background: transparent;
color: var(--muted);
font: 600 var(--type-meta)/1.5 var(--font-ui);
cursor: pointer;
}
.rail-steps-toggle::after { content: " ▸"; color: var(--faint); }
.rail-steps.is-open .rail-steps-toggle::after { content: " ▾"; }
.rail-steps-toggle:hover { color: var(--teal); }
.rail-steps-toggle[hidden] { display: none; }
.rail-steps:not(.is-open) .rail-step:not(:last-child) { display: none; }
.rail-step {
display: flex;
gap: 6px;
margin: 0;
color: var(--muted);
font-size: var(--type-meta);
line-height: 1.5;
overflow-wrap: anywhere;
}
.rail-step-mark { flex: 0 0 auto; color: var(--teal); }
.rail-step.is-alert { color: var(--amber-ink); }
.rail-step.is-alert .rail-step-mark { font-weight: 700; }

.rail-bubble.error {
background: var(--red-wash);
color: var(--red);
}

.rail-bubble.marker {
align-self: center;
background: transparent;
color: var(--muted);
font-size: var(--type-meta);
text-align: center;
}






.rail-transcript .deliberation,
.rail-transcript .plan-card,
.rail-inbox .decision-card,
.rail-transcript .upload-card {
max-width: 100%;
padding: 10px 11px 8px;


overflow-wrap: anywhere;
}

.rail-transcript .plan-card h2,
.rail-inbox .decision-card h2,
.rail-transcript .upload-card h2 {
margin: 0 0 6px;
font-size: var(--type-title);
}

.rail-transcript .delib-explain,
.rail-transcript .delib-root { margin-bottom: 6px; }

.rail-transcript .delib-branch {
gap: 6px;
margin-bottom: 6px;
padding: 7px 8px;
}

.rail-transcript .decision-choices,
.rail-inbox .decision-choices {
gap: 6px;
}

.rail-inbox .figure-gallery img {
max-width: 100%;
}

.rail-choices {
display: flex;
flex: 0 0 auto;
flex-wrap: wrap;
gap: 6px;
}

.rail-choices[hidden] { display: none; }


.rail-starters {
display: flex;
flex: 0 0 auto;
flex-direction: column;
align-items: flex-start;
gap: 6px;
margin-bottom: 8px;
}
.rail-starters[hidden] { display: none; }
.rail-starter {
max-width: 100%;
padding: 7px 12px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
color: var(--ink-2);
font: 600 var(--type-control)/1.35 var(--font-ui);
text-align: start;
cursor: pointer;
transition: border-color var(--t-quick) var(--ease-out), color var(--t-quick) var(--ease-out);
}
.rail-starter:hover { border-color: var(--teal); color: var(--teal); }
.rail-starter:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.rail-choice-chip {
padding: 6px 10px;
border: 1px solid var(--teal);
border-radius: var(--r-pill);
background: var(--wash);
color: var(--teal);
font: 650 var(--type-control)/1.3 var(--font-ui);
cursor: pointer;
}

.rail-choice-chip:hover { background: var(--teal-wash); }

.rail-composer { flex: 0 0 auto; }


.rail-action {
display: grid;
flex: 0 0 auto;
gap: 8px;
}
.rail-action[hidden],
.rail-action [hidden] { display: none; }
.rail-action[data-asking="1"] {
padding: 12px;
border: 1px solid var(--amber-line);
border-top: 3px solid var(--amber);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: 0 8px 22px -14px rgb(0 0 0 / 0.28);
}
.rail-action-head {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
gap: 4px 8px;
}
.rail-action-kicker { color: var(--amber-ink); font: 700 var(--type-meta)/1.3 var(--font-ui); }
.rail-action:not([data-asking="1"]) .rail-action-kicker { display: none; }
.rail-action-more { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: var(--type-meta); }
.rail-action-runs,
.rail-action-explain {
padding: 0;
border: 0;
background: transparent;
color: var(--teal);
font: 600 var(--type-meta)/1.4 var(--font-ui);
cursor: pointer;
}
.rail-action-runs:hover,
.rail-action-explain:hover { text-decoration: underline; }
.rail-action-title {
display: block;
padding: 0;
border: 0;
background: transparent;
color: var(--ink);
font: 650 var(--type-title)/1.4 var(--font-ui);
text-align: start;
}
.rail-action-title:not(:disabled) { cursor: pointer; }
.rail-action-title:not(:disabled):hover { color: var(--teal); }
.rail-action-why { margin: 0; color: var(--muted); font-size: var(--type-note); line-height: 1.55; }
.rail-action-foot {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
margin: 0;
color: var(--muted);
font-size: var(--type-meta);
}



.rail-action[data-asking="1"] .rail-choices { flex-direction: column; flex-wrap: nowrap; }
:is(.rail-action[data-asking="1"] .rail-choice-chip, .stage-action-option) > :not(.rail-option-key, .rail-option-tag) { grid-column: 2; }
:is(.rail-action[data-asking="1"] .rail-choice-chip, .stage-action-option) :is(.choice-chip-note, .choice-chip-answers, .choice-chip-column, .choice-chip-reason) {
color: var(--muted);
font-size: var(--type-meta);
font-weight: 400;
}
.rail-option-key {
display: inline-grid;
grid-row: 1;
grid-column: 1;
place-items: center;
width: 20px;
height: 20px;
border: 1px solid var(--line);
border-radius: 5px;
color: var(--muted);
font: 650 var(--type-meta)/1 "SFMono-Regular", Menlo, monospace;
}
.is-suggested > .rail-option-key { border-color: var(--teal); background: var(--teal); color: var(--surface); }
.rail-option-tag {
grid-row: 1;
grid-column: 3;
padding: 1px 7px;
border-radius: var(--r-pill);
background: var(--teal);
color: var(--surface);
font: 650 var(--type-meta)/1.5 var(--font-ui);
white-space: nowrap;
}


.page-sources {
margin: 28px var(--page-gutter, 24px) 32px;
padding-top: 10px;
border-top: 1px solid var(--line-soft);
color: var(--muted);
font-size: var(--type-meta);
}
.page-sources[hidden] { display: none; }


[data-sources-foot] > .page-sources { order: 9; margin-inline: 0; }
.page-sources summary {
display: inline-flex;
gap: 8px;
color: var(--ink-2);
font-weight: 650;
list-style: none;
cursor: pointer;
}
.page-sources summary::-webkit-details-marker { display: none; }
.page-sources summary::after { content: "▾"; color: var(--faint); transition: rotate var(--t-pop) var(--spring); }
.page-sources[open] summary::after { rotate: 180deg; }
.page-sources summary:hover { color: var(--teal); }
.page-sources-gist { color: var(--muted); font-weight: 400; }
.page-sources-body { max-width: 40rem; margin-top: 8px; }



.rail-drawer {
position: relative;
display: inline-flex;
align-items: center;
min-height: 34px;
padding: 0 12px;
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink-2);
font: 650 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}

.rail-drawer[aria-expanded="true"] {
border-color: var(--teal);
color: var(--teal);
}

body[data-page="chat"] .rail-drawer { display: none; }



.rail-drawer-count {
position: absolute;
top: -6px;
inset-inline-end: -6px;
min-width: 18px;
padding: 1px 5px;
border: 2px solid var(--wash);
border-radius: 999px;
background: var(--amber);
color: var(--surface);
font: 700 var(--type-meta)/1.2 var(--font-ui);
text-align: center;
}
.rail-drawer-count[hidden] { display: none; }

.rail-backdrop {
position: fixed;
inset: var(--header-h) 0 0 0;
z-index: 20;
background: rgba(23, 39, 48, 0.26);
}

.rail-backdrop[hidden] { display: none; }

.page {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
padding: var(--page-top) var(--page-gutter) 28px;
}



.chat-page {
align-items: center;
padding: 20px max(0px, calc(var(--page-gutter) - 20px)) 24px;
}

.chat-stage {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
width: 100%;
max-width: 42rem;
flex: 1;
min-height: 0;
}






.chat-page:not([data-mode="welcome"]) .chat-stage {
grid-template-columns: minmax(0, calc(var(--chat-col) + 40px)) clamp(20rem, 26vw, 30rem);
justify-content: space-between;
}


@media (min-width: 1101px) {
.chat-page:not([data-mode="welcome"]) .inspector { margin-inline-end: 20px; }
}

.chat-column {
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}

.inspector {
display: none;
min-width: 0;
min-height: 0;
flex-direction: column;
gap: 12px;
}

.chat-page:not([data-mode="welcome"]) .inspector {
display: flex;
}


.inspector-close { flex: none; align-self: flex-end; }


.inspector-toggle {
display: none;
align-items: center;
min-height: 34px;
padding: 0 12px;
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink-2);
font: 650 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}

.inspector-toggle[aria-expanded="true"] {
border-color: var(--teal);
color: var(--teal);
}

.inspector-backdrop {
position: fixed;
inset: var(--header-h) 0 0 0;
z-index: 20;
background: rgba(23, 39, 48, 0.26);
}

.inspector-backdrop[hidden] { display: none; }


.sw-newer {
position: fixed;
inset-inline: 0;
inset-block-end: var(--space-4);
margin-inline: auto;
width: max-content;
max-width: calc(100% - 2 * var(--space-4));
z-index: 1000;
display: flex;
align-items: center;
gap: var(--space-1);
padding-block: var(--space-1);
padding-inline: var(--space-3) var(--space-1);
background: var(--surface);
color: var(--ink);
border: 1px solid var(--teal-line);
border-radius: 999px;
box-shadow: var(--shadow-3);
font-size: var(--type-note);
}
.sw-newer button {
border: 0;
background: none;
color: inherit;
font: inherit;
cursor: pointer;
padding: var(--space-1) var(--space-2);
border-radius: 999px;
}
.sw-newer-reload { color: var(--teal); font-weight: 600; }
.sw-newer button:hover { background: var(--surface-3); }




.tree-back-bar { padding-block-start: var(--space-3); padding-inline: var(--page-gutter); }
.tree-back-bar[hidden] { display: none; }
.tree-back-short { display: none; }



.tree-beside-edge {
position: fixed;
inset-block-start: calc(var(--header-h) + 30vh);
inset-inline-end: 0;
z-index: 45;
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding-block: 12px;
padding-inline: 7px;
border: 1px solid var(--line);
border-inline-end: none;
border-start-start-radius: var(--r-m);
border-end-start-radius: var(--r-m);
background: var(--surface);
color: var(--ink-2);
box-shadow: -8px 0 22px rgba(23, 39, 48, 0.12);
font: 650 var(--type-meta)/1.2 var(--font-ui);
writing-mode: vertical-rl;
cursor: pointer;
}
.tree-beside-edge svg { width: 14px; height: 14px; }
[dir="rtl"] .tree-beside-edge svg { scale: -1 1; }
.tree-beside-edge:hover { border-color: var(--teal); color: var(--teal); }
.tree-beside-edge:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.tree-beside-edge[hidden] { display: none; }
body:not([data-page="trees"]) .tree-beside-edge { display: none; }



@media (min-width: 1101px) and (max-width: 1199px) {
body[data-page="trees"][data-tree-beside="on"] .content { grid-template-columns: minmax(0, 1fr); }
body[data-page="trees"][data-tree-beside="on"] .assistant-rail {
position: fixed;
inset-block: var(--header-h) 0;
inset-inline: auto 0;
z-index: 50;
width: min(24rem, 92vw);
margin: 0;
border-radius: 0;
border-start-start-radius: 18px;
border-end-start-radius: 18px;
box-shadow: -18px 0 44px rgba(23, 39, 48, 0.16);
}
}

@media (min-width: 1200px), (max-width: 599px) {
.tree-beside-edge { display: none; }
}



@media (min-width: 1101px) and (max-width: 1699px) {
body[data-rail-over-tree="on"] .content { grid-template-columns: minmax(0, 1fr); }
body[data-rail-over-tree="on"] .assistant-rail {
position: fixed;
inset-block: var(--header-h) 0;
inset-inline: auto 0;
z-index: 57;
width: min(26rem, 92vw);
margin: 0;
border-radius: 0;
border-start-start-radius: 18px;
border-end-start-radius: 18px;
box-shadow: -18px 0 44px rgba(23, 39, 48, 0.16);
animation: rail-over 180ms ease-out both;
}
body[data-rail-over-tree="on"] { --page-gutter: var(--space-6); }
}

@keyframes rail-over {
from { opacity: 0; transform: translateX(24px); }
to { opacity: 1; transform: none; }
}

@media (max-width: 599px) {


body[data-page="trees"] .tree-back-bar:not([hidden]) {
position: sticky;
inset-block-end: 0;

z-index: 62;
order: 99;
display: flex;
justify-content: center;
margin: 0;
padding-block: var(--space-2);
padding-inline: var(--space-3);
border-block-start: 1px solid var(--line);
background: var(--surface);
}
body[data-page="trees"] .tree-back-bar .tree-back { width: 100%; }
.tree-back-long { display: none; }
.tree-back-short { display: inline; }
}

}



@layer legacy {





.files-open {
align-items: center;
gap: 6px;
min-height: 34px;
padding: 0 12px;
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink-2);
font: 650 var(--type-meta)/1 var(--font-ui);
cursor: pointer;
}

.files-open:not([hidden]) { display: inline-flex; }

.files-open[hidden] { display: none; }

.files-open:hover,
.files-open[aria-expanded="true"] {
border-color: var(--teal);
color: var(--teal);
}







body:not(.is-expert) [data-depth="expert"]:not(.is-peeked) { display: none !important; }
body.is-expert [data-depth="simple"] { display: none !important; }
body.is-expert .depth-peek { display: none !important; }
.depth-peek.concl-card {
border-style: dashed;
background: transparent;
box-shadow: none;
}
.depth-peek-row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px 8px;
color: var(--muted);
font: 600 var(--type-meta)/1.3 var(--font-ui);
}
.depth-peek[hidden] { display: none !important; }
.depth-peek-label { margin-inline-end: 2px; }
.depth-peek-chip {
min-height: 28px;
padding: 0 10px;
border: 1px solid var(--line-soft);
border-radius: 999px;
background: var(--surface);
color: var(--ink-2);
font: inherit;
cursor: pointer;
}
.depth-peek-chip.is-subset { border-color: var(--teal-soft); color: var(--teal); }
.depth-peek-chip[hidden] { display: none; }
.depth-peek-chip:hover { border-color: var(--teal); color: var(--teal); }

body:not(.is-expert) .key-params { display: none !important; }

.key-params {
box-sizing: border-box;
display: grid;
gap: var(--space-2);
width: 100%;
max-width: calc(var(--page-measure) + 2 * var(--page-gutter));
margin: 0 auto var(--space-3);
padding-inline: var(--page-gutter);
}
.key-params-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--space-2); margin: 0; font-size: var(--type-note); color: var(--muted); }
.key-params-head { color: var(--ink); font-weight: 650; }
.key-param { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border: 1px solid var(--line-soft); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); }
.key-param > b { color: var(--ink); font-variant-numeric: tabular-nums; }
.key-param-near { color: var(--subtle); font-size: var(--type-meta); }
.key-param-near.is-near { color: var(--amber-ink); font-weight: 600; }
.key-params-change { min-height: 28px; }
.key-params-all { color: var(--teal-ink); text-decoration: none; }
.key-params-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.key-params-form { padding: var(--space-3) var(--space-4); border: 1px solid var(--line-soft); border-radius: var(--r-m); background: var(--surface); }
.key-params-form[hidden] { display: none; }






body:not(.is-expert) :is(#run-count, #run-pulse, #run-review, #run-board-toggle, #run-phasebar, #run-details) { display: none !important; }

body:not(.is-expert) .run-board.is-asked-open #run-details { display: grid !important; }
body:not(.is-expert) .run-board.is-asked-open #run-board-toggle { display: inline-flex !important; }
body:not(.is-expert) #transcript.has-steps-fold:not(.is-steps-open) > .bubble.finding.is-step-done { display: none; }
body.is-expert .simple-fold { display: none !important; }
body:not(.is-expert) .inspector-log:not(.is-ledger-open) > #ledger-list { display: none; }
body:not(.is-expert) #quadrant-monitor .monitor-defaults { display: none; }
body:not(.is-expert) .slot-meter { display: none !important; }




body:not(.is-expert) #quadrant-monitor[data-status="done"]:not(:has(> .monitor-todo:not([hidden]), > .monitor-risks:not([hidden]))) { display: none !important; }
body:not(.is-expert) .product-header #files-open,
body:not(.is-expert) .product-header #record-open:not(.has-observation) { display: none !important; }
body:not(.is-expert) .run-list-phone:not([hidden]) { display: inline-block; }
body:not(.is-expert) .demo-long { display: none !important; }
body:not(.is-expert) .demo-short { display: inline !important; }
.simple-fold {
display: flex;
align-items: baseline;
gap: 8px;
width: min(100%, var(--chat-col, 52rem));
margin: 4px auto;
padding: 8px 12px;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface);
color: var(--ink);
font: 600 var(--type-control)/1.4 var(--font-ui);
text-align: start;
cursor: pointer;
}
.simple-fold::before { content: "✓"; color: var(--teal); }
.simple-fold[aria-expanded="true"]::before { content: "▾"; color: var(--muted); }
.simple-fold small { color: var(--muted); font-weight: 400; font-size: var(--type-note); }
.simple-fold:hover { border-color: var(--teal-line); background: var(--teal-wash); }
.simple-fold:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.simple-ledger { width: 100%; margin: 4px 0; }




body:not(.is-expert) .report-doc-body > [data-depth="expert"] { order: 3; }
body:not(.is-expert) .report-doc-body > .rd-more { order: 2; }
.rd-brief.concl-card {
display: grid;
grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
align-items: center;
gap: var(--space-4) var(--space-6);
padding: var(--space-5) var(--space-6);
}


.rd-brief.concl-card:has(.rd-brief-stats > :nth-child(4)) { grid-template-columns: minmax(0, 1fr); }
.rd-brief.concl-card:has(.rd-brief-stats > :nth-child(4)) .rd-brief-stats { border-inline-start: 0; border-top: 1px solid var(--line-soft); padding-top: var(--space-3); }
.rd-brief.concl-card:has(.rd-brief-stats > :nth-child(4)) .rd-brief-stat:first-child { padding-inline-start: 0; }
.rd-brief.concl-card:has(.rd-brief-stats > :nth-child(4)) .rd-brief-answer { max-width: var(--read-measure); }
.rd-brief-lead { display: grid; gap: var(--space-2); min-width: 0; }
.rd-brief-answer { margin: 0; color: var(--ink); font: 650 var(--type-heading)/1.45 var(--font-ui); text-wrap: pretty; }
.rd-brief-note { margin: 0; color: var(--muted); font-size: var(--type-note); line-height: var(--leading); text-wrap: pretty; }
.rd-brief-note.is-warning { color: var(--amber-ink); }
.rd-brief-note.is-warning::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; border-radius: 50%; background: var(--amber); vertical-align: 1px; }
.rd-brief-stats {
container-type: inline-size;
display: grid;
grid-template-columns: repeat(var(--stats, 3), minmax(0, 1fr));
margin: 0;
border-inline-start: 1px solid var(--line-soft);
}
.rd-brief-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 2px var(--space-4); }
.rd-brief-stat + .rd-brief-stat { border-inline-start: 1px solid var(--line-soft); }
.rd-brief-value {
margin: 0;
color: var(--ink);
font: var(--weight-strong) var(--type-headline)/1.05 var(--font-ui);


font-size: min(var(--type-headline), calc((100cqi / var(--per-row, var(--stats, 3)) - 2 * var(--space-4)) / 4.5));
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.rd-brief-stat[data-tone="teal"] .rd-brief-value { color: var(--teal-deep); }
.rd-brief-stat[data-tone="amber"] .rd-brief-value { color: var(--amber-ink); }
.rd-brief-label { color: var(--muted); font: var(--weight-medium) var(--type-meta)/1.35 var(--font-ui); }
.rd-points {
display: grid;
grid-template-columns: repeat(min(var(--points, 3), 4), minmax(0, 1fr));
gap: var(--space-4);
}
.rd-point {
display: flex;
flex-direction: column;
gap: var(--space-2);
min-width: 0;
padding: var(--space-4);
border: 1px solid var(--line-soft);
border-top: 3px solid var(--blue-line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-card);
}
.rd-point[data-tone="good"] { border-top-color: var(--teal); }
.rd-point[data-tone="watch"] { border-top-color: var(--amber); }
.rd-point-title { margin: 0; color: var(--ink); font: 650 var(--type-title)/1.4 var(--font-ui); text-wrap: pretty; }
.rd-point-text { margin: 0; color: var(--ink-2); font-size: var(--type-note); line-height: var(--leading); text-wrap: pretty; }
.rd-point-go {
align-self: flex-start;
margin-top: auto;
min-height: 28px;
padding: 2px 0 0;
border: 0;
background: none;
color: var(--teal);
font: 600 var(--type-note)/1.3 var(--font-ui);
cursor: pointer;
}
.rd-point-go::after { content: " →"; }
.rd-point-go:hover { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.rd-point-go:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
.rd-points-rest {
display: grid;
gap: 2px;
margin: 0;
padding: var(--space-2) var(--space-4);
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface);
list-style: none;
}
.rd-points-rest-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-3); padding: 4px 0; }
.rd-points-rest-item + .rd-points-rest-item { border-top: 1px solid var(--line-soft); }
.rd-points-rest-item::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-line); transform: translateY(-1px); }
.rd-points-rest-item[data-tone="good"]::before { background: var(--teal); }
.rd-points-rest-item[data-tone="watch"]::before { background: var(--amber); }
.rd-points-rest-title { flex: 1 1 16rem; min-width: 0; color: var(--ink); font: 600 var(--type-note)/1.45 var(--font-ui); }
.rd-points-rest .rd-point-go { margin-top: 0; padding-top: 0; }
.rd-more-expert { margin-inline-start: auto; min-height: 28px; }
.rd-section.has-put-back { position: relative; }
.rd-put-back { position: absolute; top: var(--space-3); inset-inline-end: var(--space-4); min-height: 28px; }
.rd-section.has-put-back > .rd-section-title,
.rd-section.has-put-back > .rd-fold-head { padding-inline-end: 72px; }
.rd-more.concl-card { display: grid; gap: var(--space-3); }
.rd-more[hidden] { display: none !important; }
.rd-more-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--space-3); padding-bottom: var(--space-2); border-bottom: 1px solid var(--line-soft); }
.rd-more-title { margin: 0; font: 650 var(--type-title)/1.3 var(--font-ui); color: var(--ink); }
.rd-more-sub { color: var(--subtle); font-size: var(--type-meta); }
.rd-more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--space-2); }
.rd-more-item {
display: flex;
align-items: center;
gap: var(--space-3);
min-width: 0;
padding: var(--space-3) var(--space-4);
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface-2);
color: inherit;
font: inherit;
text-align: start;
cursor: pointer;
}
.rd-more-item[hidden] { display: none; }
.rd-more-item::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); }
.rd-more-item:hover { border-color: var(--teal-line); background: var(--teal-wash); }
.rd-more-item:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.rd-more-text { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.rd-more-name { color: var(--ink); font: 600 var(--type-note)/1.35 var(--font-ui); }
.rd-more-about { color: var(--muted); font-size: var(--type-meta); line-height: 1.45; }
.rd-more-count { flex: none; color: var(--subtle); font: 600 var(--type-meta)/1 var(--font-ui); font-variant-numeric: tabular-nums; }
@media (max-width: 1120px) {
.rd-brief.concl-card { grid-template-columns: minmax(0, 1fr); padding: var(--space-4) var(--space-5); }
.rd-brief-stats { border-inline-start: 0; border-top: 1px solid var(--line-soft); padding-top: var(--space-3); }
.rd-brief-stat:first-child { padding-inline-start: 0; }
.rd-points { grid-template-columns: repeat(min(var(--points, 2), 2), minmax(0, 1fr)); }
}
@media (max-width: 640px) {
.rd-brief-answer { font-size: var(--type-heading); }
.rd-brief-stats { --per-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-3); }
.rd-brief-stat:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }

.rd-brief-stats:has(> :nth-child(3):last-child) { --per-row: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rd-brief-stats:has(> :nth-child(3):last-child) > .rd-brief-stat { padding-inline: var(--space-2); border-inline-start: 1px solid var(--line-soft); }
.rd-brief-stats:has(> :nth-child(3):last-child) > .rd-brief-stat:first-child { padding-inline-start: 0; border-inline-start: 0; }
.rd-points { grid-template-columns: minmax(0, 1fr); }
}



body:not(.is-expert) [data-page-panel] .sel-controls > :is(.sel-controls-label, .sel-thr-ctl, .sel-fdr-toggle, .sel-find, .sel-copy:not(.sel-on-tree)) {
display: none !important;
}





body:not(.is-expert) .page-sources,
body:not(.is-expert) [data-page-panel] .sel-views > :not(:first-child):not(.sel-docked-note),
body:not(.is-expert) [data-page-panel] .sel-hint,
body:not(.is-expert) [data-page-panel] .sel-legend > li:has(> i.fdr),
body:not(.is-expert) [data-page-panel] svg :is(.sel-fdr-label, .sel-thr-label, .sel-fdr, .sel-thr) { display: none !important; }

.files-backdrop {
position: fixed;
inset: var(--header-h) 0 0 0;
z-index: 35;
background: rgba(23, 39, 48, 0.26);
}

.files-backdrop[hidden] { display: none; }

.files-drawer {
position: fixed;
top: var(--header-h);
inset-inline-end: 0;
bottom: 0;
z-index: 45;
display: flex;
flex-direction: column;
width: min(100vw, max(420px, 40vw));
border-inline-start: 1px solid var(--line);
background: var(--surface);
box-shadow: -18px 0 44px rgba(23, 39, 48, 0.14);
transform: translateX(calc((100% + 72px) * var(--inline-sign)));
transition: transform 0.26s ease;
}

body[data-files="open"] .files-drawer { transform: none; }

.files-head {
display: flex;
flex: 0 0 auto;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 12px 14px;
border-bottom: 1px solid var(--line);
background: var(--surface-2);
}

.files-tabs {
display: flex;
gap: 4px;
}

.files-tab {
padding: 5px 10px;
border: 1px solid transparent;
border-radius: var(--r-s);
background: transparent;
color: var(--ink-2);
font: 650 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}

.files-tab:hover { color: var(--teal); }

.files-tab.is-active {
border-color: var(--teal-line);
background: var(--surface-3);
color: var(--teal);
}

.files-close {
padding: 4px 9px;
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink-2);
font: 650 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}

.files-close:hover {
border-color: var(--teal);
color: var(--teal);
}

.files-body {
display: flex;
flex: 1;
min-height: 0;
}

.files-list-pane {
display: flex;
flex: 1;
min-width: 0;
min-height: 0;
flex-direction: column;
overflow: auto;
padding: 12px 14px;


container: files / inline-size;
}

.files-groups {
display: flex;
flex-direction: column;
gap: 8px;
}

.files-group {
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface-2);
overflow: hidden;
}

.files-group > summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 8px 10px;
color: var(--ink-2);
font: 650 var(--type-control)/1.3 var(--font-ui);
cursor: pointer;
list-style: none;
}

.files-group > summary::-webkit-details-marker { display: none; }

.files-group > summary:hover { color: var(--teal); }

.files-group-count {
color: var(--subtle);
font-weight: 400;
}

.files-group-rows {
display: flex;
flex-direction: column;
gap: 2px;
padding: 0 6px 6px;
background: var(--surface);
}

.files-empty {
margin: 0;
color: var(--muted);
font-size: var(--type-note);
line-height: 1.6;
}

.file-row {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 6px;
border-radius: var(--r-s);
font-size: var(--type-read);
}

.file-row:hover { background: var(--wash); }

.file-name {
flex: 1;
min-width: 0;
overflow: hidden;
color: var(--ink);
text-overflow: ellipsis;
white-space: nowrap;
}

.file-row.is-dir .file-name { font-weight: 650; }

.file-stage {
flex: 0 0 auto;
padding: 1px 6px;
border-radius: var(--r-pill);
background: var(--surface-3);
color: var(--teal);
font: 650 var(--type-meta)/1.5 var(--font-ui);
}

.file-meta {
flex: 0 0 auto;
color: var(--subtle);
font-size: var(--type-meta);
white-space: nowrap;
}

.file-actions {
display: flex;
flex: 0 0 auto;
gap: 4px;
}

.file-action {
padding: 3px 8px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--ink-2);
font: 650 var(--type-control)/1.3 var(--font-ui);
text-decoration: none;
cursor: pointer;
}

.file-action:hover {
border-color: var(--teal);
color: var(--teal);
}






@media (max-width: 520px) {
.file-row { flex-wrap: wrap; row-gap: 4px; padding-block: 8px; }
.file-name { flex: 1 0 100%; white-space: normal; overflow-wrap: anywhere; }
.file-actions { margin-inline-start: auto; gap: 8px; }
.file-action { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 12px; }
}

@container files (max-width: 340px) {
.file-row { flex-wrap: wrap; row-gap: 4px; padding-block: 8px; }
.file-name { flex: 1 0 100%; white-space: normal; overflow-wrap: anywhere; }
.file-actions { margin-inline-start: auto; gap: 8px; }
.file-action { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 12px; }
}

.files-tree {
display: flex;
flex: 1;
min-height: 0;
flex-direction: column;
gap: 8px;
}

.files-tree[hidden] { display: none; }

.files-crumb {
display: flex;
flex: 0 0 auto;
flex-wrap: wrap;
align-items: center;
gap: 2px;
font-size: var(--type-meta);
}

.files-crumb button {
padding: 2px 6px;
border: 0;
border-radius: var(--r-xs);
background: transparent;
color: var(--teal);
font: 650 var(--type-control)/1.4 var(--font-ui);
cursor: pointer;
}

.files-crumb button:hover { background: var(--surface-3); }

.files-crumb-sep { color: var(--faint); }

.files-dir-list {
display: flex;
flex: 1;
min-height: 0;
flex-direction: column;
gap: 2px;
overflow: auto;
}

.files-preview {
display: flex;
flex: 0 0 46%;
min-width: 0;
min-height: 0;
flex-direction: column;
border-inline-start: 1px solid var(--line);
background: var(--surface-2);
}

.files-preview[hidden] { display: none; }

.files-preview-head {
display: flex;
flex: 0 0 auto;
align-items: center;
gap: 8px;
padding: 8px 10px;
border-bottom: 1px solid var(--line);
}

.files-preview-name {
flex: 1;
min-width: 0;
overflow: hidden;
font-size: var(--type-note);
text-overflow: ellipsis;
white-space: nowrap;
}

.files-preview-size {
flex: 0 0 auto;
color: var(--subtle);
font-size: var(--type-meta);
}

.files-preview-download {
flex: 0 0 auto;
color: var(--teal);
font: 650 var(--type-meta)/1.4 var(--font-ui);
}

.files-preview-close {
flex: 0 0 auto;
padding: 2px 7px;
border: 0;
background: transparent;
color: var(--ink-2);
cursor: pointer;
}

.files-preview-body {
flex: 1;
min-height: 0;
margin: 0;
padding: 10px 12px;
overflow: auto;
color: var(--ink);
font: var(--type-meta)/1.55 var(--font-mono);
white-space: pre-wrap;
word-break: break-all;
}
.files-preview-body.is-table { padding: 0; white-space: normal; word-break: normal; }
.files-table {
border-collapse: separate;
border-spacing: 0;
font: var(--type-meta)/1.45 var(--font-ui);
font-variant-numeric: tabular-nums;
}
.files-table th,
.files-table td {
padding: 6px 10px;
border-bottom: 1px solid var(--line-soft);
text-align: start;
white-space: nowrap;
}
.files-table th {
position: sticky;
top: 0;
background: var(--surface-2);
color: var(--ink-2);
font-weight: var(--weight-medium);
}
.files-table tbody tr:hover { background: var(--teal-wash); }
.files-table-more { margin: 0; padding: 10px 12px; color: var(--muted); font: var(--type-control)/1.5 var(--font-ui); }



.chat-page[data-mode="running"] #use-example {
display: none;
}

.chat-page[data-mode="running"] .run-board {
display: flex;
flex: 0 0 auto;
max-height: 46vh;
overflow-y: auto;
}

.chat-page[data-mode="running"] .transcript,
.chat-page[data-mode="running"] .composer-dock {
display: flex;
}

.run-board {
display: none;
flex: 1;
min-height: 0;
flex-direction: column;
padding: 22px 28px 20px;
overflow: hidden;
}

.run-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
}

.run-kicker {
margin: 0 0 8px;
color: var(--teal);
font: 700 var(--type-meta)/1 var(--font-ui);
letter-spacing: 0.16em;
text-transform: uppercase;
}

#run-headline {
margin: 0 0 6px;
font: 600 var(--type-figure)/1.2 var(--font-ui);
}

.run-count {
margin: 0;
color: var(--muted);
}


.run-eta {
margin: 4px 0 0;
color: var(--blue);
font: 650 var(--type-meta)/1.4 "SFMono-Regular", Menlo, monospace;
font-variant-numeric: tabular-nums;
}

.run-eta[hidden] { display: none; }


.live-clock { font-weight: inherit; font-variant-numeric: tabular-nums; }



.run-pulse {
display: flex;
align-items: center;
gap: 7px;
min-width: 0;
margin: 4px 0 0;
color: var(--muted);
font: 500 var(--type-meta)/1.4 var(--font-mono);
}
.run-pulse[hidden] { display: none; }
.run-pulse-said { min-width: 0; overflow: hidden; color: var(--ink-2); white-space: nowrap; text-overflow: ellipsis; }
.run-pulse-dot {
flex: none;
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--teal);
animation: task-breathe 1.6s ease-in-out infinite;
}
:is(.run-pulse, .run-eta, .stage-live).is-stalled { opacity: 0.55; }
.run-pulse.is-stalled .run-pulse-dot { animation: none; background: var(--amber-ink); }


.stage-live {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 0 4px;
align-self: flex-start;
max-width: 100%;
margin: 2px 0;
padding: 6px 10px;
border-inline-start: 3px solid var(--teal);
border-radius: var(--r-s);
background: var(--wash);
color: var(--muted);
font-size: var(--type-note);
}
.stage-live-dot {
align-self: center;
width: 7px;
height: 7px;
margin-inline-end: 4px;
border-radius: 50%;
background: var(--teal);
animation: task-breathe 1.6s ease-in-out infinite;
}
.stage-live-name { color: var(--ink); font-weight: 650; }
.stage-live .live-clock { color: var(--teal-ink, var(--teal)); font-weight: 650; }
.stage-live .stage-live-pulse { min-width: 0; color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.stage-live.is-stalled .stage-live-dot { animation: none; background: var(--amber-ink); }


.chat-page[data-mode="running"] .run-progress-fill,
.rail-status[data-tone="busy"] .rail-status-fill {
background: linear-gradient(90deg, var(--teal) 0%, color-mix(in srgb, var(--teal) 45%, var(--surface)) 50%, var(--teal) 100%) 0 0 / 200% 100%;
animation: task-sweep 2.4s linear infinite;
}
.run-board.is-reconnecting .run-progress-fill { animation: none; }



.run-notify {
margin: 6px 0 0;
color: var(--muted);
font-size: var(--type-meta);
line-height: 1.5;
}

.run-notify[hidden] { display: none; }

.run-notify-arrow { margin-inline-start: 4px; }

.run-notify-address { color: var(--ink); overflow-wrap: anywhere; }



.review-badge {
display: inline-block;
margin: 6px 0 0;
padding: 3px 10px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--muted);
font: 700 var(--type-meta)/1.6 var(--font-ui);
cursor: default;
}
.review-badge[hidden] { display: none; }
.review-badge.is-running { color: var(--blue-ink); border-color: var(--blue-line); background: var(--blue-wash); }

.review-badge.is-running::before {
content: "";
display: inline-block;
width: 6px;
height: 6px;
margin-inline-end: 6px;
border-radius: 50%;
background: var(--blue);
vertical-align: 1px;
animation: evt-review-pulse 1.6s ease-in-out infinite;
}
.review-badge.is-consistent { color: var(--teal-deep); border-color: var(--teal-line); background: var(--teal-wash); }
.review-badge.is-partial { color: var(--amber-ink); border-color: var(--amber-line); background: var(--amber-wash); }
.review-badge.is-inconsistent,
.review-badge.is-failed { color: var(--red-ink); border-color: var(--red-line); background: var(--red-wash); }
@keyframes evt-review-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.suite-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }


.decision-card .rule-source {
margin-top: 10px;
border-top: 1px dashed var(--line);
padding-top: 6px;
font-size: var(--type-meta);
color: var(--muted);
}
.decision-card .rule-source summary {
font-weight: 650;
}
.decision-card .rule-source-body p { margin: 6px 0 4px; }
.decision-card .rule-source-body a { color: var(--teal); word-break: break-all; }
.decision-card .principle-block { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.decision-card .principle-head { font-weight: 600; color: var(--ink); }
.decision-card .principle-coverage, .decision-card .principle-provenance { color: var(--muted); font-size: var(--type-note); }

.concl-fold > summary::after {
content: "";
flex: none;
width: 6px;
height: 6px;
border-right: 1.5px solid var(--muted);
border-bottom: 1.5px solid var(--muted);
transform: translateY(-2px) rotate(-45deg);
transition: transform 0.15s ease;
}
.concl-fold[open] > summary::after { transform: translateY(-3px) rotate(45deg); }

[dir="rtl"] .concl-fold > summary::after { scale: -1 1; }

.bubble-link {
color: var(--teal);
font-weight: 650;
}





.reply-thought,
.reply-parts {
align-self: flex-start;
width: min(680px, 100%);
animation: arrive var(--t-pop) var(--spring) backwards;
animation-delay: 120ms;
}
.reply-thought { margin-bottom: -6px; color: var(--muted); font-size: var(--type-note); }

:is(.reply-thought, .reply-file-peek, .reply-computed, .reply-artifact-how, .reply-review) > summary {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 28px;
color: var(--muted);
cursor: pointer;
list-style: none;
font-size: var(--type-control);
}
:is(.reply-thought, .reply-file-peek, .reply-computed, .reply-artifact-how, .reply-review) > summary::-webkit-details-marker { display: none; }
:is(.reply-thought, .reply-file-peek, .reply-computed, .reply-artifact-how, .reply-review) > summary::before { content: "›"; display: inline-block; transition: transform var(--t-quick) var(--ease-out); }
:is(.reply-thought, .reply-file-peek, .reply-computed, .reply-artifact-how, .reply-review)[open] > summary::before { transform: rotate(90deg); }
[dir="rtl"] :is(.reply-thought, .reply-file-peek, .reply-computed, .reply-artifact-how, .reply-review) > summary::before { direction: ltr; scale: -1 1; }
:is(.reply-thought, .reply-file-peek, .reply-computed, .reply-artifact-how, .reply-review) > summary:hover { color: var(--teal-ink); }
.reply-thought > p {
margin: 4px 0 0;
padding: 8px 12px;
border-inline-start: 2px solid var(--line);
line-height: 1.6;
white-space: pre-wrap;
}
.reply-parts { display: grid; gap: var(--space-2); }


.reply-artifact {
display: grid;
gap: 6px;
padding: var(--space-2) var(--space-3);
border: 1px solid var(--line);
border-inline-start: 3px solid var(--teal);
border-radius: var(--r-s);
background: var(--surface);
min-width: 0;
}
.reply-artifact-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.reply-artifact-id { color: var(--teal-ink); font-size: var(--type-note); font-variant-numeric: tabular-nums; }
.reply-artifact-title { font-weight: 600; }
.reply-artifact-purpose, .reply-artifact-env, .reply-artifact-label { margin: 0; color: var(--muted); font-size: var(--type-note); }
.reply-artifact-files, .reply-artifact-inputs, .reply-artifact-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; min-width: 0; }
.reply-artifact-files li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.reply-artifact-size, .reply-artifact-inputs li { color: var(--muted); font-size: var(--type-note); overflow-wrap: anywhere; }
.reply-artifact-steps pre { margin: 2px 0 0; padding: 6px 8px; overflow-x: auto; white-space: pre-wrap; font-size: 0.86em;
background: var(--surface-2, var(--surface)); border-radius: var(--r-s); }
.reply-artifact-steps p { margin: 0; }
.reply-artifact-steps .is-failed pre { border-inline-start: 2px solid var(--red-line); }
.reply-artifact-how { display: grid; gap: 6px; }


.reply-artifact-figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; min-width: 0; }
.reply-artifact-thumb {
display: grid;
gap: 4px;
margin: 0;
padding: 4px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface-2, var(--surface));
color: var(--ink-2);
font: inherit;
text-align: start;
cursor: zoom-in;
transition: border-color var(--t-quick) var(--ease-out), box-shadow var(--t-quick) var(--ease-out);
}
.reply-artifact-thumb:is(:hover, :focus-visible) { border-color: var(--teal); box-shadow: 0 2px 10px rgba(23, 39, 48, 0.12); }
.reply-artifact-thumb img { display: block; width: 100%; height: 140px; object-fit: contain; background: var(--surface); border-radius: var(--r-s); }
.reply-artifact-thumb-name { font-size: var(--type-note); overflow-wrap: anywhere; }
.confirm-dialog.reply-figure-dialog { width: min(94vw, 72rem); }
.reply-figure-large { display: block; width: 100%; max-height: 76vh; object-fit: contain; background: var(--surface-2, var(--surface)); border-radius: var(--r-s); }
.reply-figure-dialog .dialog-actions { align-items: center; }

.reply-atom { display: grid; gap: 2px; padding: 6px 8px; border-radius: var(--r-s); background: var(--surface-2, var(--surface)); }
.reply-atom p { margin: 0; }
.reply-atom-head { font-weight: 600; }
.reply-atom-limits, .reply-atom-note { color: var(--muted); font-size: var(--type-note); }
.reply-atom-chain { font-size: var(--type-note); }
.reply-atom-chain.is-unvalidated, .reply-atom-chain.is-capped { color: var(--amber-ink, var(--red-ink)); }
.reply-atom.is-failed-validation { border-inline-start: 3px solid var(--amber-line, var(--red-line)); }

.reply-searches { display: grid; gap: 6px; font-size: var(--type-note); color: var(--muted); }
.reply-searches > summary { cursor: pointer; }
.reply-search { display: grid; gap: 2px; }
.reply-search-query { margin: 0; color: var(--ink-2); }
.reply-search-sources { margin: 0; padding-inline-start: 1.4em; }
.reply-search-sources a { color: var(--teal-ink, var(--teal)); overflow-wrap: anywhere; }

.reply-review { display: grid; gap: 6px; font-size: var(--type-note); }
.reply-review.has-issues > summary { color: var(--amber-ink, var(--red-ink)); }
.reply-review.has-issues > summary::after {
content: "!";
display: inline-grid;
place-items: center;
width: 1.3em;
height: 1.3em;
margin-inline-start: 6px;
border-radius: 50%;
background: var(--amber-wash, var(--wash));
font-weight: 700;
line-height: 1;
}
.reply-review-unsure { color: var(--muted); }
.reply-review-unsure > summary { cursor: pointer; }
.reply-review-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.reply-review-list li { display: grid; gap: 2px; padding-inline-start: 8px; border-inline-start: 2px solid var(--amber-line, var(--line-strong)); }
.reply-review-kind { color: var(--muted); }
.reply-review-claim { font-style: normal; }
.reply-review-note { margin: 0; color: var(--muted); }




.task-card {
display: grid;
gap: 6px;
padding: var(--space-2) var(--space-3);
border: 1px solid var(--line);
border-inline-start: 3px solid var(--line-strong);
border-radius: var(--r-s);
background: var(--surface);
transition: box-shadow var(--t-quick) var(--ease-out);
}
.task-card.is-running { border-inline-start-color: var(--teal); }
.task-card.is-failed,
.task-card.is-interrupted { border-inline-start-color: var(--red-line); }

.task-card.is-sought { box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 35%, transparent); }
.task-card [hidden] { display: none; }
.task-card-head {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 2px var(--space-2);
min-width: 0;
}
.task-card-name { color: var(--ink); font: 600 var(--type-read)/1.4 var(--font-ui); }
.task-card-status { color: var(--muted); font-size: var(--type-note); font-variant-numeric: tabular-nums; }
.task-card.is-running .task-card-name::before,
.work-tray.is-running .work-tray-dot {
content: "";
display: inline-block;
width: 7px;
height: 7px;
margin-inline-end: 6px;
border-radius: 50%;
background: var(--teal);
vertical-align: middle;
animation: task-breathe 1.6s ease-in-out infinite;
}
@keyframes task-breathe { 50% { opacity: 0.35; } }

.task-card-stages {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin: 0;
padding: 0;
list-style: none;
font-size: var(--type-note);
}
.task-card-stages li {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 1px 8px;
border: 1px solid var(--line-soft);
border-radius: 999px;
color: var(--muted);
}
.task-card-stages li + li::before { content: "›"; margin-inline: -8px 4px; color: var(--line-strong); }
.task-card-stages li.is-done { color: var(--ink-2); }
.task-card-stages li.is-done::after { content: "✓"; color: var(--teal); font-weight: 700; }
.task-card-stages li.is-now { border-color: var(--teal); color: var(--teal); font-weight: 650; }
.task-card-stages li.is-stopped { border-color: var(--red-line); color: var(--red-ink); }
.task-card-stages li.is-ahead,
.task-card-stages li.is-skipped { opacity: 0.6; }


.task-card-meter { display: flex; gap: 3px; height: 4px; }
.task-card-meter span {
flex: 1;
border-radius: 2px;
background: var(--line-soft);
}
.task-card-meter span.is-done { background: var(--teal); }
.task-card-meter span.is-now {
background: linear-gradient(90deg, var(--line-soft) 0%, var(--teal) 50%, var(--line-soft) 100%) 0 0 / 200% 100%;
animation: task-sweep 1.8s linear infinite;
}
@keyframes task-sweep { to { background-position: -200% 0; } }
.task-card-limit,
.task-card-why { margin: 0; color: var(--muted); font-size: var(--type-note); }
.task-card-why { color: var(--ink-2); }
.task-card-request {
margin: 0;
overflow: hidden;
color: var(--ink-2);
font-size: var(--type-note);
white-space: nowrap;
text-overflow: ellipsis;
}
.task-card-log { font-size: var(--type-note); color: var(--ink-2); }
.task-card-log summary { width: fit-content; color: var(--muted); cursor: pointer; }
.task-card-log ol { display: grid; gap: 2px; margin: 4px 0 0; padding: 0; list-style: none; }
.task-card-log li { display: flex; gap: var(--space-2); min-width: 0; }
.task-card-log time { flex: none; min-width: 3.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.task-card-log span { overflow-wrap: anywhere; }
.task-card-keys { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.task-card-keys:empty { display: none; }
.task-card-key {
min-height: 28px;
padding-inline: var(--space-3);
border: 1px solid var(--line);
border-radius: 999px;
background: transparent;
color: var(--ink-2);
font: 600 var(--type-note)/1 var(--font-ui);
cursor: pointer;
}
.task-card-key.is-again { border-color: var(--teal); color: var(--teal); }
.task-card-key:hover,
.task-card-key:focus-visible { border-color: var(--teal); color: var(--teal); }
.task-card-key.is-cancel:hover,
.task-card-key.is-cancel:focus-visible { border-color: var(--red-line); color: var(--red-ink); }
.task-card-key:disabled { opacity: 0.5; cursor: default; }

.work-tray-wrap { position: relative; }
.work-tray-wrap:not(:has(> .work-tray:not([hidden]))) { display: none; }
.work-tray-count { font-variant-numeric: tabular-nums; }


@media (max-width: 640px) {
.work-tray-panel {
position: fixed;
top: calc(var(--header-h, 56px) + 6px);
inset-inline: 8px;
width: auto;
}
}
.work-tray-dot { display: none; }
.work-tray.is-running .work-tray-dot { display: inline-block; margin-inline-end: 0; }
.work-tray-panel {
position: absolute;
top: calc(100% + 8px);
inset-inline-end: 0;
z-index: 45;
width: min(340px, calc(100vw - 16px));
max-height: calc(100dvh - var(--header-h, 56px) - 16px);
overflow-y: auto;
overscroll-behavior: contain;
padding: var(--space-2);
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface);
}
.work-tray-panel[hidden] { display: none; }
.work-tray-title { margin: 4px 8px 8px; color: var(--muted); font-size: var(--type-note); }
.work-tray-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.work-tray-row {
display: flex;
align-items: flex-start;
gap: var(--space-2);
padding: 8px;
border-radius: var(--r-s);
border-inline-start: 3px solid var(--line-strong);
background: var(--wash);
}
.work-tray-row.is-running { border-inline-start-color: var(--teal); }
.work-tray-row.is-failed,
.work-tray-row.is-interrupted { border-inline-start-color: var(--red-line); }
.work-tray-text { display: grid; gap: 2px; flex: 1; min-width: 0; font-size: var(--type-note); }
.work-tray-text b { color: var(--ink); font-weight: 650; }
.work-tray-status { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.work-tray-request,
.work-tray-run { overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }

.work-tray-run {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-clamp: 2;
white-space: normal;
overflow-wrap: anywhere;
}
.work-tray-keys { display: flex; flex-direction: column; gap: 4px; }
.work-tray-keys button,
.work-tray-notify,
.work-toast button {
min-height: 28px;
padding-inline: 10px;
border: 1px solid var(--line);
border-radius: 999px;
background: var(--surface);
color: var(--ink-2);
font: 600 var(--type-note)/1 var(--font-ui);
cursor: pointer;
}
.work-tray-keys button:hover,
.work-tray-keys button:focus-visible,
.work-tray-notify:hover:not(:disabled),
.work-toast button:hover,
.work-toast button:focus-visible { border-color: var(--teal); color: var(--teal); }
.work-tray-keys button.is-cancel:hover,
.work-tray-keys button.is-cancel:focus-visible { border-color: var(--red-line); color: var(--red-ink); }
.work-tray-notify { width: 100%; margin-top: var(--space-2); border-style: dashed; }
.work-tray-notify:disabled { cursor: default; opacity: 0.7; }
.work-tray-notify[hidden] { display: none; }

.work-toasts {
position: fixed;
inset-block-end: var(--space-4);
inset-inline-end: var(--space-4);
z-index: 60;
display: grid;
gap: var(--space-2);
width: min(360px, calc(100vw - 32px));
}
.work-toast {
display: flex;
align-items: center;
gap: var(--space-2);
padding: 10px 12px;
border: 1px solid color-mix(in srgb, var(--teal) 45%, var(--line-strong));
border-inline-start: 3px solid var(--teal);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-3);
animation: work-toast-in var(--t-pop) var(--spring);
}
.work-toast.is-failed,
.work-toast.is-interrupted { border-inline-start-color: var(--red-line); }
@keyframes work-toast-in { from { opacity: 0; translate: 0 8px; } }
.work-toast-words { display: grid; gap: 2px; flex: 1; min-width: 0; margin: 0; font-size: var(--type-note); }
.work-toast-words b { color: var(--ink); font-weight: 650; }
.work-toast-request { overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.work-toast .work-toast-close { min-width: 28px; padding: 0; border-color: transparent; font-size: var(--type-title); }

.reply-to {

flex: none;
align-self: flex-start;
max-width: min(680px, 100%);
margin: 0 0 -6px;
overflow: hidden;
color: var(--muted);
font-size: var(--type-note);
white-space: nowrap;
text-overflow: ellipsis;
}
.reply-to-label { margin-inline-end: 6px; color: var(--teal); font-weight: 600; }
.reply-to-text { color: var(--ink-2); }


.command-card {
display: grid;
gap: var(--space-3);
padding: var(--space-3) var(--space-4);
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface-2);
}
.command-row { display: grid; gap: var(--space-1); justify-items: start; }
.command-what { margin: 0; color: var(--ink); font-weight: 600; }
.command-about { margin: 0; color: var(--ink-2); font-size: var(--type-note); }
.command-creates { margin: 0; color: var(--muted); font-size: var(--type-note); }
.command-said { margin: 0; color: var(--muted); font-size: var(--type-note); }
.command-said:empty { display: none; }
.reply-undo { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.reply-undo-btn { color: var(--muted); font-size: var(--type-note); }

.cmdk {
position: fixed;
z-index: 60;
inset-block-start: 14vh;
inset-inline-start: 50%;
translate: -50% 0;
width: min(36rem, calc(100% - 32px));
max-height: 70vh;
display: grid;
grid-template-rows: auto minmax(0, 1fr) auto;
gap: var(--space-2);
padding: var(--space-3);
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-3);
}
.cmdk[hidden] { display: none; }
[dir="rtl"] .cmdk { translate: 50% 0; }
.cmdk-input {
width: 100%;
padding: var(--space-2) var(--space-3);
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface-2);
color: var(--ink);
font: inherit;
}
.cmdk-list { margin: 0; padding: 0; list-style: none; overflow: auto; }
.cmdk-row {
display: grid;
gap: 2px;
padding: var(--space-2) var(--space-3);
border-radius: var(--r-s);
cursor: pointer;
}
.cmdk-row.is-active, .cmdk-row:hover { background: var(--surface-3); }
.cmdk-label { color: var(--ink); }
.cmdk-about { color: var(--muted); font-size: var(--type-note); }
.cmdk-row:has(.cmdk-key) { grid-template-columns: 1fr auto; column-gap: var(--space-3); }
.cmdk-key {
grid-column: 2;
grid-row: 1 / span 2;
align-self: center;
padding: 1px 6px;
border: 1px solid var(--line-soft);
border-radius: 4px;
color: var(--ink-3);
font: 600 var(--type-meta)/1.4 var(--font-mono, ui-monospace, monospace);
}
.cmdk-said { margin: 0; color: var(--ink-2); font-size: var(--type-note); }
.cmdk-said:empty { display: none; }
.reply-computed { color: var(--muted); font-size: var(--type-note); }
.reply-computed-step { margin: 6px 0 0; padding: 6px 12px; border-inline-start: 2px solid var(--line); display: grid; gap: 4px; }
.reply-computed-step > p { margin: 0; color: var(--ink-2); }
.reply-computed-step > pre {
margin: 0;
padding: 6px 8px;
max-height: 220px;
overflow: auto;
border-radius: 6px;
background: var(--surface-3);
color: var(--ink-2);
font: var(--type-meta)/1.5 var(--font-mono, monospace);
white-space: pre;
}

.reply-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.reply-file {
display: grid;
gap: 4px;
min-width: 0;
padding: var(--space-3);
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface);
}
.reply-file-head { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.reply-file-kind {
flex: none;
padding: 1px 6px;
border-radius: var(--r-xs);
background: var(--teal-wash);
color: var(--teal-ink);
font: var(--weight-medium) var(--type-meta)/1.5 var(--font-ui);
}
.reply-file-name { min-width: 0; overflow: hidden; color: var(--ink); font-weight: var(--weight-medium); text-overflow: ellipsis; white-space: nowrap; }
.reply-file-facts { margin: 0; color: var(--muted); font-size: var(--type-note); font-variant-numeric: tabular-nums; }
.reply-file-actions { display: flex; flex-wrap: wrap; gap: 2px var(--space-3); }
.reply-file-actions > * { display: inline-flex; align-items: center; min-height: 28px; }
.reply-file-peek > pre {
max-height: 9.5em;
margin: 6px 0 0;
padding: 8px 10px;
overflow: auto;
border: 1px solid var(--line-soft);
border-radius: var(--r-xs);
background: var(--surface-2);
color: var(--ink-2);
font: var(--type-note)/1.45 var(--font-mono);
white-space: pre;
}

.reply-status {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--space-2) var(--space-3);
padding: var(--space-2) var(--space-3);
border: 1px solid var(--teal-line);
border-inline-start: 3px solid var(--teal);
border-radius: var(--r-s);
background: var(--teal-wash);
color: var(--teal-ink);
font-size: var(--type-note);
}
.reply-status.is-info { border-color: var(--line-soft); border-inline-start-color: var(--ink-2); background: var(--surface-2); color: var(--ink-2); }
.reply-status.is-amber { border-color: var(--amber-line); border-inline-start-color: var(--amber); background: var(--amber-wash); color: var(--amber-ink); }
.reply-status-words { display: grid; gap: 2px; min-width: 0; }
.reply-status-words > b { color: var(--ink); font-weight: var(--weight-medium); }
.reply-proposal { align-items: flex-start; }
.reply-proposal-facts {
display: grid;
grid-template-columns: max-content minmax(0, 1fr);
gap: 2px var(--space-3);
flex: 1 1 100%;
margin: 0;
color: var(--ink-2);
}
.reply-proposal-facts dt { color: var(--muted); }
.reply-proposal-facts dd { margin: 0; overflow-wrap: anywhere; }

.reply-view { display: grid; gap: var(--space-2); }
.reply-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.reply-steps > li {
display: inline-flex;
align-items: center;
gap: 5px;
min-height: 24px;
padding: 0 var(--space-2);
border: 1px solid var(--line-soft);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--ink-2);
font-size: var(--type-meta);
}
.reply-steps > li:not(.is-count)::before { content: "✓"; color: var(--teal); font-weight: var(--weight-strong); }
.reply-steps > li.is-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.reply-view-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.reply-view-actions > button { min-height: 32px; }


.reply-parts.is-compact { width: 100%; font-size: var(--type-meta); }
.reply-parts.is-compact .reply-files { grid-template-columns: minmax(0, 1fr); }
.reply-parts.is-compact .reply-file { padding: var(--space-2); }

.run-progress {
display: flex;
align-items: center;
gap: 12px;
margin: 16px 0 14px;
}

.run-progress-track {
flex: 1;
height: 8px;
overflow: hidden;
border-radius: var(--r-pill);
background: var(--line-soft);
}

.run-progress-fill {
width: 0;
height: 100%;
border-radius: inherit;
background: linear-gradient(90deg, var(--teal), var(--teal));
transition: width 0.4s ease;
}

.run-progress-label {
min-width: 3.2em;
color: var(--teal);
font: 700 var(--type-note)/1 var(--font-ui);
text-align: end;
}

.run-split {
display: grid;
grid-template-columns: minmax(240px, 0.95fr) minmax(280px, 1.15fr);



grid-auto-rows: minmax(120px, auto);
gap: 18px;
min-height: 0;
flex: 1;
}

@media (max-width: 860px) {
.run-split {
grid-template-columns: 1fr;
}
}

.run-error {
margin: 0 0 14px;
padding: 10px 12px;
border-radius: var(--r-s);
background: var(--red-wash);
color: var(--red);
font-size: var(--type-note);
white-space: pre-wrap;
}

.run-steps {
margin: 0;
padding: 0;
overflow: auto;
list-style: none;
}
.run-steps li { list-style: none; }

.run-detail {
display: flex;
min-height: 0;
flex-direction: column;
padding: 14px 16px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--wash);


overflow: hidden;
}

.run-detail-kicker {
margin: 0 0 4px;
color: var(--teal);
font: 700 var(--type-meta)/1 var(--font-ui);
letter-spacing: 0.14em;
text-transform: uppercase;
}

#run-detail-title {
margin: 0 0 10px;
font: 600 var(--type-heading)/1.3 var(--font-ui);
}

.run-log {
flex: 1;

min-height: 0;
margin: 0;
overflow: auto;
color: var(--ink-2);
font: var(--type-note)/1.5 var(--font-mono);
white-space: pre-wrap;
word-break: break-word;
}





.run-chains-strip {
flex: none;
margin: 0 0 8px;
padding: 6px 10px 8px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
font-size: var(--type-meta);
}
.run-chains-strip[hidden] { display: none; }
.run-chains-strip .run-chains-head { flex-wrap: nowrap; align-items: center; }
.run-chains-strip .run-chains-title { flex: none; white-space: nowrap; }
.run-chains-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; }
.run-chains-row .run-chains-chips { flex: none; margin: 0; }
.run-chains-spark { flex: 1 1 0; min-width: 60px; }
.run-chains-spark .run-chains-svg { height: 22px; border-bottom: 0; }
.run-chains-strip .run-chains-phase { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-chains-open {
flex: none;
margin-inline-start: auto;
padding: 1px 8px;
border: 1px solid var(--line);
border-radius: 999px;
background: transparent;
color: var(--teal-ink);
font: 600 var(--type-meta)/1.5 var(--font-ui);
cursor: pointer;
}
.run-chains-open:hover { border-color: var(--teal-line); background: var(--teal-wash); }
.run-chains-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.run-chains-chip { padding: 0 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.run-chains-chip.is-ok { background: var(--teal-wash); color: var(--teal-ink); }
.run-chains-chip.is-short { background: var(--amber-wash); color: var(--amber-ink); }
.run-chains-strip .run-chains-note { margin-top: 4px; padding: 2px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.confirm-dialog.chains-dialog { width: min(94vw, 54rem); }
.run-chains {
display: grid;
grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.3fr);
gap: 4px 22px;
margin: 0 0 12px;
font-size: var(--type-note);
}
.run-chains .run-chains-head { grid-column: 1 / -1; }
@media (max-width: 760px) {
.run-chains { grid-template-columns: 1fr; }
}

.run-chains-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.run-chains-title { font: 650 var(--type-note)/1.3 var(--font-ui); color: var(--ink); }
.run-chains-phase { color: var(--teal-ink); font-size: var(--type-meta); }
.run-chains-phase.is-ok { color: var(--teal-ink); font-weight: 600; }
.run-chains-phase.is-warn { color: var(--amber-ink); font-weight: 600; }
.run-chains-progress { height: 4px; margin: 8px 0 4px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.run-chains-progress-fill { height: 100%; background: var(--teal); }
.run-chains-meta { color: var(--muted); font-size: var(--type-meta); font-variant-numeric: tabular-nums; }
.run-chains-gauges { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; align-items: center; margin: 10px 0 0; }
.run-chains-gauges dt { color: var(--muted); font-size: var(--type-meta); }
.run-chains-gauges dd { display: flex; align-items: center; gap: 8px; margin: 0; font-variant-numeric: tabular-nums; }
.run-chains-gauges dd span { color: var(--muted); font-size: var(--type-meta); white-space: nowrap; }
.run-chains-meter { flex: 0 0 72px; height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.run-chains-meter-fill { height: 100%; background: var(--amber); }
.run-chains-gauges dd.is-ok .run-chains-meter-fill { background: var(--teal); }
.run-chains-traces { margin: 8px 0 0; min-width: 0; }
.run-chains-trace + .run-chains-trace { margin-top: 6px; }
.run-chains-trace-head { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-2); font-size: var(--type-meta); }
.run-chains-trace-ess { color: var(--muted); font-variant-numeric: tabular-nums; }
.run-chains-svg { display: block; height: auto; border-bottom: 1px solid var(--line-soft); }
.run-chains-line { fill: none; stroke-width: 1.1; stroke-linejoin: round; opacity: 0.85; vector-effect: non-scaling-stroke; }
.run-chains-settled { vector-effect: non-scaling-stroke; }
.run-chains-burnin { fill: var(--line-soft); }
.run-chains-settled { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 2; }
.run-chains-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; color: var(--muted); font-size: var(--type-meta); }
.run-chains-key::before { content: ""; display: inline-block; width: 12px; height: 2px; margin-inline-end: 5px; vertical-align: middle; background: var(--chain); }
.run-chains-key.is-burnin::before { height: 8px; background: var(--line-soft); }
.run-chains-key.is-settled::before { height: 0; border-top: 1px dashed var(--ink-2); background: none; }
.run-chains-note { margin: 8px 0 0; color: var(--ink-2); font-size: var(--type-meta); line-height: 1.45; }
.run-chains-note.is-later, .run-chains-note.is-unsettled { padding: 6px 8px; border-radius: 4px; background: var(--amber-wash); color: var(--amber-ink); }
.run-chains-note.is-failing { color: var(--muted); }

.run-steps .run-step {
display: grid;
grid-template-columns: 10px minmax(0, 1fr) auto;
gap: 10px;
align-items: center;
padding: 6px 8px;
border-radius: var(--r-s);
color: var(--subtle);
cursor: pointer;
}

.run-steps li.active-log {
background: var(--wash);
border-radius: var(--r-s);
}

.run-steps li .dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--line);
}

.run-steps li.complete { color: var(--ink); }
.run-steps li.complete .dot { background: var(--teal); }
.run-steps li.running { color: var(--teal); font-weight: 700; }
.run-steps li.running .dot {
background: var(--teal);
animation: pulse 1s ease-in-out infinite;
}
.run-steps li.failed { color: var(--red); }
.run-steps li.failed .dot { background: var(--red); }

.run-steps li small { font-size: var(--type-meta); }

.run-steps li .node-badge {
font-size: var(--type-meta);
line-height: 1.6;
padding: 0 7px;
border-radius: var(--r-s);
background: var(--blue-wash);
color: var(--teal);
border: 1px solid var(--line);
white-space: nowrap;
}













.page[hidden] { content-visibility: hidden; z-index: -1; opacity: 0; }


.page-title {
margin: 0 0 12px;
color: var(--ink);
font: var(--weight-strong) var(--type-headline)/var(--leading-tight) var(--font-ui);
letter-spacing: -0.01em;
}

.placeholder {
margin: 0;
padding: 16px 18px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
color: var(--muted);
font: var(--type-read)/1.55 var(--font-ui);
}







.stage-next[hidden] {
display: none;
}

.stage-next {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
padding: 28px 24px;
text-align: center;
}

.stage-next > * {
max-width: 40rem;
}

.quick-tree-badge {
margin: 0;
padding: 2px 10px;
border: 1px solid var(--line);
border-radius: 999px;
background: var(--surface-2, var(--wash));
color: var(--muted);
font: 650 var(--type-meta)/1.7 var(--font-ui);
letter-spacing: 0.02em;
}

.stage-next .quick-tree-sketch {
align-self: stretch;
max-width: min(52rem, 100%);
text-align: start;
margin: 0 0 8px;
}

.stage-next-kicker {
margin: 0;
color: var(--teal);
font: 650 var(--type-meta)/1.4 "SFMono-Regular", Menlo, monospace;
letter-spacing: 0.04em;
}

.stage-next-line {
margin: 0;
color: var(--ink);
font: 700 var(--type-headline)/1.35 var(--font-ui);
}

.stage-next-why {
margin: 0;
color: var(--muted);
font-size: var(--type-read);
line-height: 1.6;
}

.stage-next-actions {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
margin-top: 8px;
}

.stage-next-go {
padding: 9px 18px;
border: 1px solid var(--teal);
border-radius: var(--r-pill);
background: var(--teal);
color: var(--surface);
font: 650 var(--type-control)/1.2 var(--font-ui);
cursor: pointer;
}

.stage-next-go:hover {
background: var(--teal-deep);
}

.stage-next-here {
margin: 0;
color: var(--muted);
font-size: var(--type-note);
}


.stage-action {
display: grid;
gap: 10px;
width: min(32rem, 100%);
text-align: start;
}
.stage-action-question { margin: 0; color: var(--ink); font: 650 var(--type-title)/1.4 var(--font-ui); }
.stage-action-why { margin: 0; color: var(--muted); font-size: var(--type-note); line-height: 1.6; }
.stage-action-options { display: grid; gap: 6px; }

.stage-page,
.preview-page {
padding: 0;
}



.stage-page.is-flowing { overflow-y: auto; }
.stage-page.is-flowing .stage-split { flex: none; }
.stage-head.is-sticky {
position: sticky;
top: var(--head-stick, 0px);
z-index: 6;
background: var(--wash);
}






.stage-head {
flex: none;
container-type: inline-size;
display: grid;
grid-template-columns: auto minmax(16rem, 1fr) minmax(0, max-content);
align-items: baseline;
gap: var(--space-2) var(--space-4);
padding: var(--page-top) var(--page-gutter) var(--space-3);
}





.stage-page:has(.report-doc-body) > .stage-head,
.conclusion-page > .stage-head,
.dashboard-page > .stage-head {
box-sizing: border-box;
width: 100%;
max-width: calc(var(--page-measure) + 2 * var(--page-gutter));
margin-inline: auto;
}
.stage-head > * { min-width: 0; }
.stage-head .page-title { grid-column: 1; margin: 0; white-space: nowrap; }
.stage-sub {
margin: 0;
max-width: var(--read-measure);
color: var(--muted);
font-size: var(--type-read);
line-height: var(--leading);
}
.stage-head > .stage-sub { grid-column: 2; }




.stage-head > .stage-tabs { grid-column: 3; grid-row: 1; align-self: start; justify-self: end; margin: 0; }



.stage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.stage-actions:not(:has(> :not([hidden]))) { display: none; }
.stage-head:has(> .stage-actions > :not([hidden])) { grid-template-columns: auto minmax(16rem, 1fr) minmax(0, max-content) auto; }
.stage-head > .stage-actions { grid-column: 4; grid-row: 1; align-self: start; }




@container (max-width: 1000px) {
.stage-head > .stage-sub { grid-column: 2 / -1; }
.stage-head > .stage-tabs { grid-column: 1 / 3; grid-row: 2; align-self: center; justify-self: start; max-width: 100%; }
.stage-head > .stage-actions { grid-column: 3 / -1; grid-row: 2; align-self: center; justify-self: end; }
.stage-head:where(:not(:has(> .stage-actions > :not([hidden])))) > .stage-tabs { grid-column: 1 / -1; }
.stage-head:where(:not(:has(> .stage-tabs:not([hidden])))) > .stage-actions { grid-column: 1 / -1; justify-self: start; }

body:not(.is-expert) .stage-head:has(> .stage-tabs[data-depth="expert"]) > .stage-actions { grid-column: 1 / -1; justify-self: start; }
}


.stage-head.is-stacked > .stage-sub { grid-column: 2 / -1; }
.stage-head.is-stacked > .stage-tabs { grid-column: 1 / 3; grid-row: 2; align-self: center; justify-self: start; max-width: 100%; }
.stage-head.is-stacked > .stage-actions { grid-column: 3 / -1; grid-row: 2; align-self: center; justify-self: end; }
.stage-head.is-stacked:where(:not(:has(> .stage-actions > :not([hidden])))) > .stage-tabs { grid-column: 1 / -1; }
.stage-head.is-stacked:where(:not(:has(> .stage-tabs:not([hidden])))) > .stage-actions { grid-column: 1 / -1; justify-self: start; }
body:not(.is-expert) .stage-head.is-stacked:has(> .stage-tabs[data-depth="expert"]:not(.is-peeked)) > .stage-actions { grid-column: 1 / -1; justify-self: start; }
@container (max-width: 640px) {
.stage-head > .stage-sub { grid-column: 1 / -1; }
.stage-head > .stage-tabs { grid-row: 3; }
.stage-head > .stage-actions { grid-row: 3; }
}




@media (max-width: 640px) {
.stage-head, .stage-head:has(> .stage-actions > :not([hidden])) { grid-template-columns: minmax(0, 1fr); }
.stage-head .page-title { white-space: normal; overflow-wrap: anywhere; }
}




@media (max-width: 640px) {
.page:not([data-page-panel="trees"]) > .stage-head:not(:has(> .stage-head-row)) {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2) var(--space-3);
}
.page:not([data-page-panel="trees"]) > .stage-head:not(:has(> .stage-head-row)) > .page-title { flex: 1 1 auto; order: 0; overflow-wrap: normal; }
.page:not([data-page-panel="trees"]) > .stage-head:not(:has(> .stage-head-row)) > .stage-actions { flex: 0 1 auto; order: 1; }
.page:not([data-page-panel="trees"]) > .stage-head:not(:has(> .stage-head-row)) > .stage-sub { flex: 1 1 100%; order: 2; }
.page:not([data-page-panel="trees"]) > .stage-head:not(:has(> .stage-head-row)) > .stage-tabs { flex: 0 1 auto; order: 3; max-width: 100%; }
}



.stage-head-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-3) var(--space-6);
flex-wrap: wrap;
width: 100%;
}


.stage-head-text {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: var(--space-1) var(--space-4);
min-width: 0;
}
.stage-head:has(> .stage-head-row) { display: block; }

.preview-back { display: flex; align-items: center; width: fit-content; min-height: 28px; margin: 0 0 var(--space-1); padding: 0; border: 0; background: none; color: var(--muted); font-size: var(--type-note); }
.preview-back:hover { color: var(--teal-ink); background: none; }

.preview-toolbar {
display: flex;
align-items: center;
gap: var(--space-3);
}

.preview-toolbar a {
color: var(--teal-deep);
font-size: var(--type-note);
font-weight: var(--weight-medium);
}






.transcript {
flex: 1;
min-height: 0;
overflow: auto;
display: flex;
flex-direction: column;
padding: 0 20px 12px;
padding-inline: max(20px, calc((100% - var(--chat-col)) / 2));
}


:is(.transcript, .rail-transcript)::after {
content: "";
flex: none;
block-size: var(--turn-room, 0px);
margin-block-start: calc(-1 * var(--talk-gap, 0px));
}








.jump-latest {
position: relative;
z-index: 2;
align-self: center;
flex: none;
min-height: 36px;
margin-top: -48px;
margin-bottom: 12px;
padding: 0 14px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface);
box-shadow: var(--shadow-2);
color: var(--ink);
font: 600 var(--type-note)/1 var(--font-ui);
cursor: pointer;
}
.jump-latest::before { content: "↓ "; color: var(--teal); }
.jump-latest[hidden] { display: none; }
.jump-latest:hover { background: var(--wash); }


.empty-state {
margin: auto;
padding: 12px 8px 24px;
}




.empty-state h1 {
font-family: var(--font-ui);
font-weight: var(--weight-strong);
letter-spacing: -0.01em;
}

.empty-state p {
margin: 0 0 16px;
color: var(--muted);
font-size: var(--type-read);
}

.choice-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

.choice-chip,
.monitor-chip {
padding: 8px 14px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--ink);
font: 650 var(--type-control)/1.2 var(--font-ui);
cursor: pointer;
}

.choice-chip:hover,
.monitor-chip:hover {
border-color: var(--teal);
color: var(--teal);
background: var(--teal-wash);
}


.choice-chip:disabled,
.rail-choice-chip:disabled { opacity: 0.55; cursor: progress; }

.composer-dock {
padding: 0 20px 14px;
}

.choice-row {
justify-content: flex-start;
padding: 0 4px 10px;
}




.composer,
.rail-composer {
display: flex;
align-items: flex-end;
gap: 8px;
padding-block: 6px;
padding-inline: 16px 6px;
border: 1px solid var(--line);
border-radius: 23px;
background: var(--wash);
}

.composer {
width: min(100%, var(--chat-col, 52rem));
margin: 0 auto;
}

.composer textarea,
.rail-composer textarea {
box-sizing: border-box;
flex: 1;
min-width: 0;
height: 34px;
min-height: 34px;
max-height: 120px;
padding: 7px 0;
overflow-y: hidden;
border: 0;
background: transparent;
color: var(--ink);
font: inherit;
font-size: var(--type-control);
line-height: 20px;
resize: none;
outline: none;
}

.composer button,
.rail-composer button {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
justify-content: center;
height: 34px;
padding: 0 16px;
border: 0;
border-radius: var(--r-l);
background: var(--teal);
color: var(--surface);
font: 650 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}


.composer .composer-attach {
width: 34px;
padding: 0;
border-radius: 50%;
background: transparent;
color: var(--ink-2);
}
.composer .composer-attach:hover { background: var(--wash); color: var(--teal); }

.welcome-say .composer-attach { display: none; }



button[type="submit"].is-stop::before {
content: "■";
margin-inline-end: 6px;
font-size: 0.8em;
}



button[type="submit"].is-queue {
background: var(--teal-wash);
color: var(--teal);
box-shadow: inset 0 0 0 1px var(--teal);
}
button[type="submit"].is-queue::before {
content: "+";
margin-inline-end: 4px;
font-weight: 700;
}



.upload-progress {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(7rem, 32%);
align-items: center;
gap: 10px;
box-sizing: border-box;
width: min(100%, var(--chat-col, 52rem));
margin: 0 auto 6px;
padding: 7px 10px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--wash);
color: var(--ink-2);
font-size: var(--type-note);
}
.upload-progress[hidden],
.upload-progress progress[hidden] { display: none; }
.upload-progress[data-phase="ready"] { color: var(--teal); }
.upload-progress[data-phase="error"] { color: var(--red-ink); }
.upload-progress progress {
width: 100%;
height: 8px;
accent-color: var(--teal);
}
#replace-upload-status { margin-bottom: 10px; }
@media (max-width: 520px) {
.upload-progress { grid-template-columns: 1fr; gap: 5px; }
}



.typed-queue {
margin: 0 0 6px;
padding-block: 6px;
padding-inline: 10px 8px;
border: 1px dashed color-mix(in srgb, var(--teal) 55%, var(--line));
border-radius: var(--r-m);
background: var(--teal-wash);
}
.typed-queue[hidden] { display: none; }

.composer-dock .typed-queue {
box-sizing: border-box;
width: min(100%, var(--chat-col, 52rem));
margin-inline: auto;
}
.typed-queue-head {
margin: 0 0 4px;
color: var(--teal);
font: 600 var(--type-note)/1.4 var(--font-ui);
}
.typed-queue-list {
display: grid;
gap: 2px;
margin: 0;
padding: 0;
list-style: none;
}
.typed-queue-list li {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
}
.typed-queue-text {
flex: 1;
min-width: 0;
overflow: hidden;
color: var(--ink);
font-size: var(--type-read);
white-space: nowrap;
text-overflow: ellipsis;
}
.typed-queue-drop {
flex: none;
width: 22px;
height: 22px;
padding: 0;
border: 0;
border-radius: 50%;
background: transparent;
color: var(--ink-2);
font-size: var(--type-title);
line-height: 1;
cursor: pointer;
}
.typed-queue-drop:hover,
.typed-queue-drop:focus-visible { background: var(--surface); color: var(--red-ink); }

.bubble {
max-width: min(680px, 92%);
padding: 10px 14px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
white-space: pre-wrap;
word-break: break-word;
}

.bubble.user {
align-self: flex-end;
background: var(--teal-wash);
border-color: var(--teal-line);
}

.bubble.assistant { align-self: flex-start; }




.bubble > .reply-actions { display: flex; margin-block-start: 2px; margin-inline-start: -6px; }
.reply-copy {
display: inline-grid;
place-items: center;
inline-size: 28px;
block-size: 28px;
padding: 0;
border: 0;
border-radius: var(--r-xs);
background: transparent;
color: var(--muted);
cursor: pointer;
opacity: 0;
transition: opacity 120ms ease-out, background-color 120ms ease-out, color 120ms ease-out;
}
.bubble:hover .reply-copy, .reply-copy:focus-visible, .reply-copy.is-done { opacity: 1; }
.reply-copy:hover, .reply-copy:focus-visible { background: var(--surface-3); color: var(--ink); }
.reply-copy.is-done { color: var(--teal); }
.reply-copy svg {
inline-size: 16px;
block-size: 16px;
fill: none;
stroke: currentColor;
stroke-width: 1.6;
stroke-linecap: round;
stroke-linejoin: round;
}
@media (hover: none) { .reply-copy { opacity: 0.7; } }




.rich, .bubble.rich, .rail-bubble.assistant.rich { white-space: normal; }
.rich > :where(p, ul, ol, blockquote, pre, hr, .rich-table) { margin: 0; }
.rich > * + * { margin-block-start: 0.7em; }
.rich :where(ul, ol) { padding-inline-start: 1.4em; }
.rich li > :where(p, ul, ol) { margin-block: 0; }
.rich li + li, .rich li > * + * { margin-block-start: 0.3em; }
.rich li::marker { color: var(--muted); }
.rich strong, .rich .rich-head { font-weight: 650; color: var(--ink); }
.rich .rich-head + * { margin-block-start: 0.35em; }
.rich a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; }
.rich code {
padding: 0.05em 0.35em;
border-radius: var(--r-2xs);
background: var(--surface-3);
font-family: var(--font-mono);
font-size: inherit;
}
.rich pre {
padding: 8px 12px;
overflow-x: auto;
border-radius: var(--r-xs);
background: var(--surface-3);
font-size: 0.9em;
line-height: 1.55;
white-space: pre;
}
.rich pre code { padding: 0; background: none; }


.rich-code { overflow: hidden; border-radius: var(--r-xs); background: var(--surface-3); }
.rich .rich-code pre { margin: 0; border-radius: 0; background: none; padding-block-start: 2px; }
.rich-code-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding-block: 4px 0;
padding-inline: 12px 6px;
}
.rich-code-lang { color: var(--muted); font-family: var(--font-mono); font-size: var(--type-meta); }
.rich-code-copy {
padding: 2px 8px;
border: 0;
border-radius: var(--r-2xs);
background: transparent;
color: var(--muted);
font: inherit;
font-size: var(--type-meta);
cursor: pointer;
}
.rich-code-copy:hover, .rich-code-copy:focus-visible { background: var(--surface); color: var(--ink); }
.rich-code .tok-k { color: var(--blue-ink); font-weight: 600; }
.rich-code .tok-s { color: var(--teal-deep); }
.rich-code .tok-n { color: var(--amber-ink); }
.rich-code .tok-c { color: var(--muted); font-style: italic; }

.rich-math { white-space: nowrap; font-variant-numeric: lining-nums; }
.rich-math.is-block { overflow-x: auto; text-align: center; white-space: normal; }
.rich :where(sup, sub) { font-size: 0.75em; line-height: 0; }
.rich li.rich-task { list-style: none; }
.rich li.rich-task > input {
margin-block: 0;
margin-inline: -1.3em 0.4em;
vertical-align: -0.1em;
accent-color: var(--teal);
}
.rich blockquote {
padding-inline-start: 12px;
border-inline-start: 3px solid var(--line);
color: var(--ink-2);
}
.rich hr { border: 0; border-block-start: 1px solid var(--line-soft); }
.rich-table { max-width: 100%; overflow-x: auto; }
.rich-table-csv {
display: block;
margin-block-start: 4px;
padding: 2px 8px;
margin-inline-start: -8px;
border: 0;
border-radius: var(--r-2xs);
background: transparent;
color: var(--muted);
font: inherit;
font-size: var(--type-meta);
cursor: pointer;
}
.rich-table-csv:hover, .rich-table-csv:focus-visible { background: var(--surface); color: var(--ink); }
.rich table { border-collapse: collapse; line-height: 1.45; font-variant-numeric: tabular-nums; }
.rich :where(th, td) {
padding-block: 4px;
padding-inline: 0 12px;
border-block-end: 1px solid var(--line-soft);
text-align: start;
vertical-align: top;
}
.rich th { color: var(--ink-2); font-weight: 600; border-block-end-color: var(--line); }

.bubble.question {
align-self: flex-start;
border-inline-start: 3px solid var(--teal);
}

.bubble.error {
align-self: stretch;
background: var(--amber-wash);
border-color: var(--amber);
}

.bubble-retry { margin-inline-start: 8px; }

.bubble-install { display: flex; margin-block-start: 8px; }


@media (prefers-reduced-motion: no-preference) {
.bubble.error.is-repeated,
.rail-bubble.error.is-repeated { animation: note-again 700ms ease-out; }
}

@keyframes note-again {
0% { box-shadow: 0 0 0 0 var(--amber); }
100% { box-shadow: 0 0 0 6px transparent; }
}

.bubble.marker {
align-self: center;
max-width: 100%;
padding: 5px 12px;
border-style: dashed;
border-radius: var(--r-pill);
background: transparent;
color: var(--muted);
font-size: var(--type-meta);
text-align: center;
}

@keyframes marker-flash {
0%, 55% { background: var(--amber-wash); border-color: var(--amber); }
100% { background: transparent; }
}


.decision-context {
margin: 0 0 8px;
border-radius: var(--r-pill);
font: 650 var(--type-meta)/1.4 var(--font-ui);
}

.decision-context:hover {
border-color: var(--teal);
color: var(--teal);
}

.decision-card.is-done .decision-context { display: none; }

.run-actions {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
padding: 8px 0 0;
}

.run-actions button {
border: 1px solid var(--line);
background: var(--surface);
cursor: pointer;
}

.run-actions button:hover {
border-color: var(--teal);
color: var(--teal);
}



.turn-trace {
display: flex;
flex-direction: column;
align-self: flex-start;
gap: 2px;
max-width: min(680px, 92%);
color: var(--muted);
}
.trace-head {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 1.6em;
padding: 0;
border: 0;
background: none;
color: inherit;
font: inherit;
text-align: start;
}
.trace-head:not(:disabled) { cursor: pointer; }
.trace-head:not(:disabled)::after { content: "▸"; color: var(--muted); }
.turn-trace.is-open .trace-head::after { content: "▾"; }
.trace-spin {
width: 10px;
height: 10px;
border-radius: 50%;
border: 2px solid var(--teal-line, var(--line));
border-top-color: var(--teal);
animation: trace-turn 0.9s linear infinite;
}
.turn-trace:is([data-state="done"], [data-state="error"], [data-state="stopped"], [data-state="stopped-applied"]) .trace-spin { display: none; }
.trace-clock { font-variant-numeric: tabular-nums; }
.trace-clock:not(:empty)::before { content: "· "; }
.trace-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.trace-steps li { color: var(--muted); }

.turn-trace:not([data-state="working"]):not(.is-open) .trace-steps { display: none; }
.turn-trace:not([data-state="working"]) .trace-steps { order: 1; }
.turn-trace[data-state="error"] .trace-text { color: var(--red-ink); }

.trace-live {
display: grid;
gap: 2px;
margin-inline-start: 18px;
padding-inline-start: 8px;
border-inline-start: 2px solid var(--teal-line, var(--line));
font-size: 0.86em;
min-width: 0;
}
.trace-live[hidden] { display: none; }
.trace-command, .trace-output {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-variant-numeric: tabular-nums;
}
.trace-command { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); color: var(--ink-2, var(--muted)); }
.trace-output:empty { display: none; }
@keyframes trace-turn { to { rotate: 1turn; } }

@keyframes pulse {
0%, 100% { opacity: 0.25; transform: scale(0.8); }
50% { opacity: 1; transform: scale(1); }
}

.step-progress {
align-self: stretch;
padding: 0 4px;
color: var(--teal);
font: 700 var(--type-meta)/1.4 var(--font-ui);
}

.deliberation {
align-self: stretch;
padding: 12px 14px 10px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
}

.step-card.is-done {
opacity: 0.72;
}

.step-card.is-done .delib-branch {
cursor: default;
}


.delib-branch.is-chosen,
.step-card.is-done .delib-branch.is-chosen {
border-color: var(--teal);
background: var(--teal-wash);
box-shadow: 0 0 0 1px var(--teal);
}
.step-card.is-done .delib-branch:hover:not(.is-chosen) { border-color: var(--line); background: var(--surface-2); }



.answer-wait {
margin: 2px 2px 4px;
color: var(--teal);

font: 600 var(--type-read)/1.4 var(--font-ui);
}
.answer-wait.is-failed { color: var(--red-ink); }
.choice-row .answer-wait,
.rail-choices .answer-wait { align-self: center; margin: 0 4px; }
.choice-chip.is-queued,
.rail-choice-chip.is-queued {
border-color: var(--teal);
background: var(--teal-wash);
color: var(--teal);
}

.delib-explain {
margin: 0 0 10px;
color: var(--muted);
font-size: var(--type-read);
}

.delib-root {
font-size: var(--type-read);
color: var(--muted);
margin-bottom: 8px;
}

.delib-branch {
display: grid;
grid-template-columns: 14px 1fr auto;
gap: 8px;
align-items: center;
width: 100%;
margin: 0 0 8px;
padding: 8px 10px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface-2);
text-align: start;
color: inherit;
font: inherit;
cursor: pointer;
opacity: 0;
transform: translateY(6px);
animation: branch-in 0.35s ease forwards;
}

.delib-branch:hover {
border-color: var(--teal);
background: var(--teal-wash);
}

.delib-twig {
width: 10px;
height: 10px;
border-radius: 50%;
border: 2px solid var(--line);
}



.delib-branch.is-chosen .delib-twig {
background: var(--teal);
border-color: var(--teal);
}

@keyframes branch-in {
to { opacity: 1; transform: none; }
}

.plan-card {
align-self: stretch;
max-width: min(720px, 100%);
padding: 14px 16px;
border: 1px solid var(--teal);
border-radius: var(--r-m);
background: var(--teal-wash);
}

.plan-card h2 {
font: 700 var(--type-heading)/1.2 var(--font-ui);
margin: 0 0 8px;
}

.plan-card ol {
margin: 8px 0;
padding-inline-start: 18px;
}

.plan-actions {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
margin: 12px 0 0;
}

.plan-confirm {
padding: 9px 16px;
border: 1px solid var(--teal);
border-radius: var(--r-l);
background: var(--teal);
color: var(--surface);
font: 650 var(--type-note)/1 var(--font-ui);
cursor: pointer;
}

.plan-confirm[hidden] { display: none; }

.plan-confirm:disabled {
opacity: 0.45;
cursor: default;
}

.plan-superseded {
margin: 8px 0 0;
color: var(--muted);
font-size: var(--type-note);
}

.login-card button {
padding: 8px 14px;
border: 0;
border-radius: var(--r-l);
background: var(--teal);
color: var(--surface);
font: 650 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}



.inspector-log {
flex: 0 1 auto;
min-height: 0;
overflow: auto;
padding: 14px 14px 16px;
border: 1px solid var(--line);
border-radius: var(--r-l);
background: var(--surface);
}

.ledger-kicker {
margin-bottom: 10px;
color: var(--teal);
font: 700 var(--type-meta)/1 var(--font-ui);
letter-spacing: 0.14em;
text-transform: uppercase;
}

#ledger-list {
margin: 0;
padding: 0;
list-style: none;
}

#ledger-list li {
position: relative;
padding-block: 8px;
padding-inline: 16px 0;
border-inline-start: 2px solid var(--line);
color: var(--ink-2);
font-size: var(--type-read);
}

#ledger-list li::before {
content: "";
position: absolute;
inset-inline-start: -5px;
top: 14px;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--teal);
}

#ledger-list .ledger-q {
display: block;
color: var(--muted);
font-size: var(--type-meta);
}

@media (max-width: 860px) {
.chat-page { padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); }
.composer { width: 100%; }
}

.composer button:disabled { opacity: 0.55; cursor: default; }



#quadrant-monitor {
display: flex;
flex-direction: column;
gap: 10px;
padding: 14px 14px 16px;
border: 1px solid var(--line);
border-radius: var(--r-l);
background: var(--surface);
}

#quadrant-monitor.amber {
border-color: var(--amber);
background: var(--amber-wash);
}

#quadrant-monitor .monitor-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}

.monitor-kicker {
color: var(--teal);
font: 700 var(--type-meta)/1 var(--font-ui);
letter-spacing: 0.14em;
text-transform: uppercase;
}


#quadrant-monitor section[hidden],
#quadrant-monitor details[hidden] { display: none; }

#quadrant-monitor h3 {
margin: 0 0 4px;
color: var(--ink-2);
font: 650 var(--type-read)/1.35 var(--font-ui);
}

#quadrant-monitor ol,
#quadrant-monitor ul {
margin: 0;
padding: 0;
list-style: none;
color: var(--muted);
font: var(--type-read)/1.5 var(--font-ui);
}

#quadrant-monitor ol[hidden] { display: none; }

.monitor-todo li {
position: relative;
padding-inline-start: 14px;
color: var(--ink);
}

.monitor-todo li::before {
content: "";
position: absolute;
inset-inline-start: 2px;
top: 0.55em;
width: 6px;
height: 6px;
border: 1.5px solid var(--amber);
border-radius: 50%;
}

#quadrant-monitor[data-status="ready"] .monitor-todo h3 { color: var(--teal); }

.monitor-defaults li {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 2px 0;
}


.monitor-edit { flex: none; }
.monitor-defaults b { color: var(--ink-2); font-weight: 600; }

.monitor-risks summary {
color: var(--muted);
font: 600 var(--type-control)/1.5 var(--font-ui);
cursor: pointer;
}

.monitor-risks summary:hover { color: var(--ink-2); }
.monitor-risks ul { margin-top: 4px; }
.monitor-risks li + li { margin-top: 2px; }

.monitor-risks .monitor-risks-checks { margin-top: 8px; list-style: none; color: var(--muted); font-weight: 600; }
.monitor-risks .monitor-check-row { color: var(--muted); }

.delib-branch div {
min-width: 0;
overflow: hidden;
}

.delib-note { display: block; margin-top: 2px; color: var(--muted); font-size: var(--type-note); line-height: 1.45; }
.delib-note.is-caution { color: var(--amber-ink); }
.delib-branch.is-ruled-out { cursor: not-allowed; opacity: 0.62; }
.delib-branch.is-ruled-out:hover { border-color: var(--line); background: var(--surface-2); }




.choice-row[hidden] { display: none; }
.choice-row { width: min(100%, 52rem); margin: 0 auto; box-sizing: border-box; }
.choice-row .choice-chip.is-suggested { border-color: var(--teal); color: var(--teal-deep); background: var(--teal-wash); }
.choice-row .choice-chip { max-width: 100%; white-space: normal; text-align: start; line-height: 1.4; }
.choice-row .choice-chip.is-quiet { border-color: transparent; background: none; color: var(--muted); }

.monitor-status {
font: 650 var(--type-meta)/1.3 var(--font-ui);
color: var(--ink);
}

#quadrant-monitor[data-status="ready"] .monitor-status { color: var(--teal); }
#quadrant-monitor[data-status="running"] .monitor-status { color: var(--blue); }
#quadrant-monitor[data-status="stopped"] .monitor-status { color: var(--muted); }
#quadrant-monitor[data-status="done"] .monitor-status { color: var(--teal); }





.preview-page:not([data-edition="full"]) [data-edition-only="full"],
.preview-page[data-edition="full"] [data-edition-only="concise"] { display: none !important; }
.preview-editions { margin: 0; }
.concise-report {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
gap: var(--space-4);
align-items: start;
padding: 0 var(--page-gutter) var(--space-6);
}
.concise-paper {
position: relative;
min-width: 0;
border: 1px solid var(--line);
border-radius: var(--radius, 8px);
background: var(--surface);
overflow: hidden;
}

.preview-edition-about { margin: 0; padding: var(--space-2) var(--space-3); border-block-end: 1px solid var(--line-soft); color: var(--ink-2); font: 600 var(--type-meta)/1.45 var(--font-ui); }
.preview-edition-about:empty { display: none; }
.concise-pages { display: grid; gap: var(--space-3); align-content: start; height: min(calc(100vh - 11rem), 150vw); min-height: 32rem; overflow: auto; padding: var(--space-3); background: var(--wash); scroll-behavior: auto; }
.concise-pages:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.concise-pages img { display: block; width: 100%; height: auto; aspect-ratio: 210 / 297; background: var(--surface); box-shadow: var(--shadow-2); scroll-margin-top: var(--space-3); }

.preview-paper-state { display: grid; justify-items: start; gap: var(--space-3); align-self: start; padding: var(--space-4); border-radius: 6px; background: var(--surface); }
.preview-paper-state p { margin: 0; color: var(--ink-2); font-size: var(--type-read); line-height: 1.5; }
.preview-paper-state.is-busy p::before { content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-inline-end: 8px; vertical-align: -0.1em; border: 2px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: preview-spin 0.9s linear infinite; }
@keyframes preview-spin { to { transform: rotate(360deg); } }

.preview-contents { align-content: start; }
.preview-contents .concise-label { margin: 0; }
.preview-contents-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; max-height: min(calc(100vh - 22rem), 30rem); overflow-y: auto; }
.preview-contents-list button {
display: flex; align-items: baseline; gap: var(--space-2); width: 100%; min-height: 32px;
padding: 5px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink);
font: inherit; font-size: var(--type-control); line-height: 1.4; text-align: start; cursor: pointer;
}
.preview-contents-list .is-sub button { padding-inline-start: 22px; color: var(--ink-2); font-size: var(--type-note); }
.preview-contents-list button:hover { background: var(--surface-2); }
.preview-contents-list button[aria-current] { background: var(--teal-wash); color: var(--teal-ink); }
.preview-contents-list button:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.preview-contents-title { flex: 1 1 auto; min-width: 0; }
.preview-contents-page { flex: none; color: var(--muted); font-size: var(--type-meta); font-variant-numeric: tabular-nums; }
.preview-explore { justify-self: start; min-height: 32px; padding: 0; color: var(--teal-deep); font-size: var(--type-control); font-weight: var(--weight-medium); }
.preview-explore:hover { color: var(--teal-ink); background: none; text-decoration: underline; }
.concise-side {
position: sticky;
top: var(--space-3);
display: grid;
gap: var(--space-3);
padding: var(--space-4);
border: 1px solid var(--line);
border-radius: var(--radius, 8px);
background: var(--surface);
}
.concise-status { margin: 0; padding: 6px 10px; border-radius: 6px; background: var(--amber-wash); color: var(--amber-ink); font-size: var(--type-read); }
.concise-status.is-signed { background: var(--teal-wash); color: var(--teal-ink); }
.concise-field { display: grid; gap: 4px; }
.concise-label { color: var(--ink-2); font-size: var(--type-control); font-weight: var(--weight-medium); }
.concise-field :is(textarea, input) {
width: 100%;
box-sizing: border-box;
padding: 8px 10px;
border: 1px solid var(--line);
border-radius: 6px;
background: var(--surface);
color: var(--ink);
font: inherit;
font-size: var(--type-control);
line-height: 1.55;
}
.concise-field textarea { resize: vertical; min-height: 9rem; }
.concise-field :is(textarea, input):disabled { background: var(--wash); color: var(--muted); }
.concise-hint { color: var(--muted); font-size: var(--type-note); line-height: 1.5; }

p.concise-hint { margin: 0; }
.concise-names { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.concise-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.concise-note { margin: 0; min-height: 1.2em; color: var(--muted); font-size: var(--type-meta); }

.concise-check { display: grid; gap: 6px; padding: 8px 10px; border-radius: 6px; background: var(--surface-2); }

.concise-check[hidden] { display: none; }
.concise-check.has-flags { background: var(--amber-wash); }
.concise-check .concise-label { margin: 0; }
.concise-gate { display: grid; gap: 8px; padding: 8px 10px; border-radius: 6px; background: var(--amber-wash); }
.concise-gate[hidden], .concise-gate-override[hidden] { display: none; }
.concise-gate .concise-label { margin: 0; }
.concise-gate-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: var(--type-control); color: var(--ink); }
.concise-gate-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.concise-gate-override { display: grid; gap: 6px; font-size: var(--type-control); color: var(--ink-2); }
.concise-gate-override textarea { width: 100%; box-sizing: border-box; font: inherit; }
.concise-check-summary { margin: 0; font-size: var(--type-control); color: var(--ink-2); }
.concise-check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: var(--type-note); }
.concise-check-list b { display: block; color: var(--amber-ink); font-weight: 650; }
.concise-check-list q { display: block; color: var(--ink); quotes: "“" "”"; }
.concise-check-list span { display: block; color: var(--ink-2); }

@media (max-width: 860px) {
.concise-report { grid-template-columns: 1fr; }
.concise-side { position: static; }
.concise-side[data-edition-only="full"] { order: -1; }
.concise-pages { height: 70vh; min-height: 24rem; }
.preview-contents-list { max-height: 12rem; }
}
@media (max-width: 560px) {
.concise-pages { height: 60vh; padding: var(--space-2); }
.concise-names { grid-template-columns: 1fr; }
.preview-toolbar { flex-wrap: wrap; }
}




.replay-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.replay-chip {
padding: 6px 12px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface-2);
color: var(--muted);
font: 650 var(--type-control)/1.2 var(--font-ui);
}
.replay-chip.is-taken { border-color: var(--teal); color: var(--teal-deep); background: var(--teal-wash); }
.replay-chip.is-taken::before { content: "✓ "; }


.busy-note { margin: 6px 0 0; color: var(--muted); font-size: var(--type-note); font-variant-numeric: tabular-nums; }
.busy-note.is-failed { color: var(--red-ink); }
.busy-retry { margin-inline-start: 6px; }



.choice-chip-note,
.choice-chip-column { margin-inline-start: var(--space-1); color: var(--muted); font-weight: 500; }
.choice-chip-reason { display: block; margin-top: var(--space-1); color: var(--muted); font-weight: 500; font-size: var(--type-note); }


.choice-chip-answers { display: block; margin-top: 2px; color: var(--ink-2); font-weight: 400; font-size: var(--type-note); }
.choice-chip-tag { display: inline-block; margin-inline-start: var(--space-1); padding: 0 6px; border-radius: 999px;
border: 1px solid var(--teal); background: var(--teal-wash); color: var(--teal-deep); font-size: var(--type-meta); font-weight: 600; line-height: 18px; vertical-align: 2px; }
.choice-chip[data-unavailable="1"]:disabled,
.rail-choice-chip[data-unavailable="1"]:disabled { cursor: not-allowed; }












.stage-head-row > .stage-head-text { flex: 1 1 22rem; }
.stage-head-row > .preview-toolbar { flex: none; }
.stage-head-row > .conclusion-actions { flex: 0 1 auto; flex-wrap: wrap; }
.stage-head-row > .conclusion-actions button { min-height: 36px; padding: 6px 14px; white-space: nowrap; }
.stage-head-text > .page-title { white-space: nowrap; }

.preview-page > .stage-head {
display: grid;
grid-template-columns: auto auto minmax(0, 1fr) auto;
align-items: center;
gap: var(--space-2) var(--space-3);
}
.preview-page > .stage-head > .stage-head-row,
.preview-page > .stage-head .stage-head-text { display: contents; }
.preview-page > .stage-head > .preview-back {
grid-column: 1;
grid-row: 1;
display: inline-flex;
align-items: center;
margin: 0;
min-height: 32px;
padding-block: 0;
padding-inline-end: var(--space-3);
border-inline-end: 1px solid var(--line);
white-space: nowrap;
}
.preview-page > .stage-head .page-title { grid-column: 2; grid-row: 1; }
.preview-page > .stage-head .stage-sub { grid-column: 3; grid-row: 1; }
.preview-page > .stage-head .preview-toolbar { grid-column: 4; grid-row: 1; justify-self: end; }
@container (max-width: 900px) {
.preview-page > .stage-head .stage-sub { grid-column: 1 / -1; grid-row: 2; }
}

.nodes-page .nodes-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-2) var(--space-4); }
.nodes-page .nodes-head > .nodes-title-block { display: contents; }
.nodes-page .nodes-head > #nodes-new { grid-column: 2; grid-row: 1; }
.nodes-page .nodes-head .nodes-title-block > :not(.page-title) { grid-column: 1 / -1; margin: 0; }
.nodes-page .nodes-head .nodes-summary:empty { display: none; }



@container (min-width: 780px) {
[data-page-panel="trees"] > .stage-head > .stage-sub { grid-column: 2; }
}




@media (max-width: 640px) {
.page-title { font-size: var(--type-headline); }
.stage-head { row-gap: var(--space-2); padding-top: var(--space-3); }
.stage-sub:has(> .page-guide-line) { display: flex; align-items: center; gap: var(--space-2); }
.stage-sub:has(> .page-guide-line) > span:first-child {
flex: 1 1 0;
min-width: 0;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.stage-sub > .page-guide-line { flex: none; }
.stage-sub > .page-guide-line .page-guide-hint { display: none; }


.stage-sub > .page-guide-line .explainer-help { justify-content: center; min-width: 36px; min-height: 36px; padding: 0; }
.stage-sub > .page-guide-line .explainer-help > span:last-child {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
clip-path: inset(50%);
white-space: nowrap;
}

.preview-page > .stage-head { grid-template-columns: auto minmax(0, 1fr); }
.preview-page > .stage-head .preview-toolbar { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
.preview-toolbar > * { flex: none; }
.stage-head > .stage-actions,
.preview-toolbar {
flex-wrap: nowrap;
overflow-x: auto;
scrollbar-width: none;
max-width: 100%;
}
.stage-head > .stage-actions::-webkit-scrollbar { display: none; }
.stage-head > .stage-actions > * { flex: none; }



.stage-head-row > .conclusion-actions { flex-wrap: wrap; width: 100%; }
.stage-head-row > .conclusion-actions > button { flex: 1 1 auto; min-width: 0; padding-inline: 10px; white-space: normal; }
.stage-head-row > .conclusion-actions > :is(#conclusion-concise, #conclusion-full) { flex: 1 1 calc(50% - var(--space-2)); }
.stage-head-text { row-gap: var(--space-1); }
.stage-head-text > .stage-sub { flex-basis: 100%; }
}







.question-panel { width: min(100%, var(--chat-col, 52rem)); margin: 0 auto; box-sizing: border-box; }

.goal-line {
display: flex;
align-items: center;
gap: 8px;
width: min(100%, var(--chat-col, 52rem));
box-sizing: border-box;
margin: 0 auto 8px;
padding-block: 6px;
padding-inline: 12px 8px;
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--wash);
color: var(--ink);
font-size: var(--type-meta);
}
.goal-line[hidden] { display: none; }
.goal-line-words { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.goal-line-stop {
flex: 0 0 auto;
padding: 2px 10px;
border: 1px solid var(--line-soft);
border-radius: var(--r-xs);
background: var(--surface);
color: var(--ink);
font: 650 var(--type-meta)/1.3 var(--font-ui);
cursor: pointer;
}
.goal-line-stop:hover { background: var(--wash); }
.goal-line-stop:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.question-panel[hidden] { display: none; }
.question-panel[data-asking="1"] {
margin-bottom: 10px;
padding: 12px 12px 10px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: 0 6px 22px rgba(23, 39, 48, 0.08);
}
.question-panel-title {
display: block;
width: 100%;
margin: 0 0 10px;
padding: 0 4px;
border: 0;
background: none;
color: var(--ink);
font: 700 var(--type-heading)/1.4 var(--font-ui);
text-align: start;
cursor: pointer;
overflow-wrap: anywhere;
}
.question-panel-title[hidden] { display: none; }


.question-panel[data-echo="1"] .question-panel-title {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.question-panel-title:disabled { cursor: default; }
.question-panel-title:not(:disabled):hover { color: var(--teal-deep); }


.question-panel[data-asking="1"] .choice-row {
flex-direction: column;
flex-wrap: nowrap;
gap: 6px;
max-height: min(34vh, 30rem);

padding: 3px;
margin: -3px;
overflow-y: auto;
overscroll-behavior: contain;
}


.choice-chip.is-suggested .choice-chip-key { border-color: var(--teal); color: var(--teal-deep); }
.question-panel-hint { margin: 8px 4px 0; color: var(--muted); font-size: var(--type-note); }
.question-panel-hint[hidden] { display: none; }


.question-panel-more { display: block; margin: 6px 4px 0; color: var(--muted); font-size: var(--type-note); }


@media (max-height: 760px) {
.question-panel[data-asking="1"] { padding: 8px 10px 14px; }
.question-panel-title { margin-bottom: 6px; font-size: var(--type-read); }
.question-panel-hint { display: none; }
.question-panel[data-asking="1"] .choice-row { flex-direction: row; flex-wrap: wrap; }
}
@media (max-height: 760px) and (max-width: 640px) {
.question-panel[data-asking="1"] .choice-row { flex-direction: column; flex-wrap: nowrap; }
}

.bubble.is-recalled { outline: 2px solid var(--teal); outline-offset: 3px; transition: outline-color 0.6s; }



.next-step-skip { display: none; }
.composer-dock[data-asking="1"] .next-step[data-kind="answer"] .next-step-text { display: none; }
.composer-dock[data-asking="1"] .next-step[data-kind="answer"] {
margin-top: -18px;
padding: 14px 12px 8px;
border-width: 0 1px 1px;
border-inline-start-width: 1px;
border-radius: 0 0 var(--r-m) var(--r-m);
background: var(--wash);
}
.composer-dock[data-asking="1"] .next-step[data-kind="answer"] .run-actions { align-items: center; justify-content: flex-start; width: 100%; }
.composer-dock[data-asking="1"] .next-step[data-kind="answer"]:has(#next-dispatch:not([hidden])) .next-step-skip { display: inline; color: var(--muted); font-size: var(--type-note); }
.composer-dock[data-asking="1"] .next-step[data-kind="answer"]:not(:has(.run-actions > button:not([hidden]))) { display: none; }
@media (max-width: 640px) {
.question-panel[data-asking="1"] { margin-bottom: 8px; padding: 8px 8px 8px; }
.question-panel[data-asking="1"] .choice-row { gap: 4px; max-height: 36vh; }
.composer-dock[data-asking="1"] .next-step[data-kind="answer"] { margin-top: -16px; padding: 12px 10px 6px; }
.composer-dock[data-asking="1"] .next-step[data-kind="answer"] .run-actions button { min-height: 34px; }

.question-panel-title { margin-bottom: 8px; font-size: var(--type-read); }
.question-panel-hint { display: none; }
}


.stage-live #run-stop {
align-self: center;
min-height: 26px;
margin-inline-start: 8px;
padding: 2px 10px;
font-size: var(--type-note);
}


.stage-live { position: relative; }
.stage-live-menu { align-self: center; margin-inline-start: 4px; }
.stage-live-menu > summary {
display: inline-grid; place-items: center; inline-size: 26px; block-size: 26px; border-radius: 999px;
list-style: none; cursor: pointer; color: var(--muted); font-weight: 700; line-height: 1;
}
.stage-live-menu > summary::-webkit-details-marker { display: none; }
.stage-live-menu > summary:hover, .stage-live-menu[open] > summary { background: var(--line); color: var(--ink); }
.stage-live-menu > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.stage-live-menu-body {


position: absolute; z-index: 5; inset-inline-start: 0; inset-block-start: calc(100% + 4px);
inline-size: min(300px, calc(100vw - 32px)); padding: 10px 12px; border: 1px solid var(--line);
border-radius: var(--r-s); background: var(--surface); box-shadow: var(--shadow-2);
color: var(--ink); font-size: var(--type-note);
}
.stage-live-menu-said { margin: 0 0 8px; }
.stage-live-menu-change { min-height: 30px; }


[data-while-card].is-past { opacity: 0.55; }
[data-while-card] .past-note { color: var(--muted); font-size: var(--type-note); }
}



@layer legacy {









.login-gate {
position: fixed;
inset: 0;
z-index: 80;
display: flex;
overflow-y: auto;
background: var(--wash);
background:
radial-gradient(900px 620px at 8% 92%, rgba(42, 130, 107, 0.07), transparent 70%),
radial-gradient(760px 540px at 94% 6%, rgba(82, 127, 152, 0.07), transparent 70%),
radial-gradient(110% 80% at 50% 36%, var(--surface) 0%, var(--wash) 62%);
}

.login-gate[hidden] { display: none; }


.login-gate.is-leaving { opacity: 0; pointer-events: none; transition: opacity 320ms ease; }



.login-motif {
position: fixed;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none;
-webkit-mask: radial-gradient(ellipse 38% 55% at 50% 47%, transparent 45%, #000 100%);
mask: radial-gradient(ellipse 38% 55% at 50% 47%, transparent 45%, #000 100%);
}

.login-motif-branches path { fill: none; stroke: var(--cover); stroke-linecap: round; }
.login-motif-trace { fill: none; stroke: var(--teal); stroke-opacity: 0.6; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; }
.login-motif-tip { fill: var(--teal); }
.login-motif-halo { fill: none; stroke: var(--teal); stroke-opacity: 0.22; }
.login-motif-dots circle { fill-opacity: 0.4; }

.login-lang {
position: fixed;
top: max(16px, env(safe-area-inset-top));
inset-inline-end: max(16px, env(safe-area-inset-right));
z-index: 1;
background: color-mix(in srgb, var(--surface) 85%, transparent);
}

.login-lang button { min-width: 48px; min-height: 34px; padding: 6px 12px; font-size: var(--type-control); }


.login-main {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
width: min(432px, 100%);
margin: auto;
padding: 72px 16px max(48px, env(safe-area-inset-bottom));
}

.login-brand { display: flex; align-items: center; gap: 12px; }

.login-mark {
width: 38px;
height: 38px;
fill: none;
stroke: var(--teal);
stroke-width: 2.4;
stroke-linecap: round;
}

.login-brand h1 {
margin: 0;
color: var(--ink);
font: 500 var(--type-figure)/1 var(--font-display);
letter-spacing: -0.01em;
}

.login-tagline {
margin: 14px 0 12px;
color: var(--muted);
font-size: var(--type-title);
line-height: 1.5;
text-align: center;
}
.login-evidence {
margin: 0 auto 30px;
max-width: 30rem;
color: var(--muted);
font-size: var(--type-read);
line-height: 1.6;
text-align: center;
opacity: 0.82;
text-wrap: balance;
}

.login-evidence small { display: block; margin-top: 4px; font-size: var(--type-note); opacity: 0.8; }

.login-card {
width: 100%;
padding: 32px 32px 26px;
border: 1px solid var(--line-soft);
border-radius: var(--r-l);
background: var(--surface);
box-shadow: 0 1px 2px rgba(23, 39, 48, 0.04), 0 8px 24px rgba(23, 39, 48, 0.05), 0 24px 56px rgba(23, 39, 48, 0.06);
}

#login-prompt {
margin: 0 0 22px;
color: var(--ink);
font-size: var(--type-heading);
font-weight: 600;
line-height: 1.4;
}

.login-card label {
display: block;
margin: 0 0 8px;
color: var(--ink);
font-size: var(--type-control);
font-weight: 600;
}

.login-card input {
width: 100%;
height: 48px;
margin: 0 0 18px;
padding: 0 14px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
color: var(--ink);
font: inherit;
font-size: var(--type-heading);
transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.login-card input:hover { border-color: var(--line-strong); }

.login-card input:focus {
outline: none;
border-color: var(--teal);
box-shadow: var(--focus-ring);
}

.login-card input[aria-invalid="true"] { border-color: var(--red-line); background: var(--surface); }
.login-card input[aria-invalid="true"]:focus { border-color: var(--red); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--red); }


.login-input { position: relative; margin: 0 0 18px; }
.login-input input { margin: 0; padding-inline-start: 44px; }
.login-input.has-reveal input { padding-inline-end: 52px; }

.login-input-icon {
position: absolute;
top: 50%;
inset-inline-start: 15px;
width: 18px;
height: 18px;
fill: none;
stroke: var(--subtle);
stroke-width: 1.6;
stroke-linecap: round;
stroke-linejoin: round;
transform: translateY(-50%);
pointer-events: none;
transition: stroke 120ms ease;
}

.login-input:focus-within .login-input-icon { stroke: var(--teal); }
.login-input:has(input[aria-invalid="true"]) .login-input-icon { stroke: var(--red); }

.login-card .login-reveal {
position: absolute;
top: 2px;
inset-inline-end: 2px;
bottom: 2px;
display: grid;
place-items: center;
width: 44px;
padding: 0;
border: 0;
border-radius: var(--r-s);
background: transparent;
color: var(--subtle);
cursor: pointer;
transition: color 120ms ease, background-color 120ms ease;
}

.login-card .login-reveal:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.login-card .login-reveal:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; }
.login-reveal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login-reveal .login-eye-off,
.login-reveal[aria-pressed="true"] .login-eye { display: none; }
.login-reveal[aria-pressed="true"] .login-eye-off { display: block; }

.login-caps {
display: flex;
align-items: center;
gap: 6px;
margin: -10px 0 16px;
color: var(--amber-ink);
font-size: var(--type-read);
}

.login-caps svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

.login-hint { display: block; margin: -10px 0 16px; color: var(--muted); font-size: var(--type-note); line-height: 1.45; }
.login-field { display: block; }
.login-hint[hidden], .login-field[hidden], .login-error[hidden], .login-caps[hidden],
.login-closed[hidden], .login-card .login-toggle[hidden] { display: none; }

.login-error {
display: flex;
gap: 8px;
align-items: flex-start;
margin: 0 0 16px;
padding: 10px 12px;
border: 1px solid var(--red-line);
border-radius: var(--r-m);
background: var(--red-wash);
color: var(--red-ink);
font-size: var(--type-read);
line-height: 1.45;
}

.login-error::before {
content: "";
flex: none;
width: 16px;
height: 16px;
margin-top: 1px;
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A95D52' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.2'/%3E%3Cpath d='M8 4.8v3.6M8 11.1v.1'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.login-card #login-submit {
position: relative;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
height: 48px;
margin: 4px 0 0;
border-radius: var(--r-m);
font-size: var(--type-heading);
font-weight: 600;
letter-spacing: 0.01em;
box-shadow: 0 1px 2px rgba(23, 39, 48, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14);
transition: background-color 140ms ease, box-shadow 140ms ease, transform 90ms ease;
}

.login-card #login-submit::after {
content: "";
flex: none;
width: 16px;
height: 16px;
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / 16px no-repeat;
transition: transform 160ms ease;
}

.login-card #login-submit:hover { background: var(--teal); box-shadow: 0 6px 16px rgba(42, 130, 107, 0.24); }
.login-card #login-submit:hover::after { transform: translateX(calc(3px * var(--inline-sign))); }

[dir="rtl"] .login-card #login-submit::after { scale: -1 1; }
.login-card #login-submit:active { transform: scale(0.985); }
.login-card #login-submit:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.login-card #login-submit:disabled { cursor: progress; }
.login-card #login-submit.is-busy::after {
background: none;
border: 2px solid color-mix(in srgb, var(--surface) 35%, transparent);
border-top-color: var(--surface);
border-radius: 50%;
animation: login-spin 700ms linear infinite;
}
.login-card #login-submit.is-done::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 16px no-repeat; transform: none; }



.login-otp {
letter-spacing: 0.42em;
font-size: var(--type-headline);
font-variant-numeric: tabular-nums;
text-align: center;
}
.login-pending {
margin: 0 0 16px;
color: var(--ink);
font-size: var(--type-title);
line-height: 1.55;
}
.login-pending[hidden] { display: none; }
.login-turnstile { margin: 0 0 14px; min-height: 0; }
.login-turnstile[hidden] { display: none; }
.login-turnstile-trouble { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--ink); font-size: var(--type-read); line-height: 1.55; }
.login-turnstile-trouble p { margin: 0; }
#login-resend { margin: -4px 0 12px; text-align: start; }
#login-resend:disabled { color: var(--muted); cursor: default; text-decoration: none; }

.login-closed,
.login-card .login-toggle {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 48px;
margin: 22px 0 0;
padding: 14px 0 0;
border: 0;
border-top: 1px solid var(--surface-3);
border-radius: 0;
background: none;
color: var(--muted);
font: inherit;
font-size: var(--type-read);
line-height: 1.5;
text-align: center;
}

.login-card .login-toggle { color: var(--teal); font-weight: 600; cursor: pointer; }
.login-card .login-toggle:hover { color: var(--cover); text-decoration: underline; text-underline-offset: 3px; }
.login-card .login-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: var(--r-s); }


.login-points {
display: grid;
justify-content: center;
gap: 9px;
margin: 26px 0 0;
padding: 0;
color: var(--muted);
font-size: var(--type-read);
list-style: none;
}

.login-points li { display: flex; align-items: center; gap: 8px; }
.login-points svg { width: 16px; height: 16px; fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }






@media (pointer: coarse) {
.login-card input { font-size: max(16px, var(--type-control)); }
.login-lang button { min-height: 40px; min-width: 52px; }
}

@media (max-width: 480px) {
.login-main { padding-top: 80px; }
.login-card { padding: 26px 20px 20px; border-radius: var(--r-l); }
.login-brand h1 { font-size: var(--type-figure); }

.login-motif {
opacity: 0.7;
-webkit-mask: radial-gradient(ellipse 80% 62% at 50% 52%, transparent 60%, #000 100%);
mask: radial-gradient(ellipse 80% 62% at 50% 52%, transparent 60%, #000 100%);
}
}

@media (prefers-reduced-motion: no-preference) {
.login-gate:not([hidden]) .login-motif-branches { animation: login-fade 900ms ease-out both; }
.login-gate:not([hidden]) .login-motif-trace { animation: login-draw 1700ms 250ms cubic-bezier(0.45, 0, 0.2, 1) both; }
.login-gate:not([hidden]) .login-motif-tip,
.login-gate:not([hidden]) .login-motif-halo { animation: login-fade 500ms 1850ms ease-out both; }
.login-gate:not([hidden]) .login-motif-dots { animation: login-fade 900ms 1100ms ease-out both; }
.login-gate:not([hidden]) .login-brand { animation: login-rise 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.login-gate:not([hidden]) .login-tagline { animation: login-rise 520ms 50ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.login-gate:not([hidden]) .login-card { animation: login-rise 520ms 100ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.login-gate:not([hidden]) .login-points { animation: login-rise 520ms 180ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}

@keyframes login-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes login-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes login-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes login-spin { to { transform: rotate(360deg); } }

.account[hidden] { display: none; }


.account {
position: relative;
display: flex;
align-items: center;
font-size: var(--type-note);
}

.account-button {
position: relative;
display: inline-flex;
align-items: center;
gap: 7px;
min-height: 38px;
padding-block: 3px;
padding-inline: 3px 9px;
border: 1px solid var(--line-soft);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--ink-2);
font: 650 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}
.account-badge {
position: absolute;
top: -2px;
inset-inline-start: 18px;
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: 99px;
background: var(--red-ink);
color: var(--surface);
font-size: var(--type-meta);
line-height: 16px;
text-align: center;
}
.account-badge[hidden] { display: none; }
.account-signups {
border-bottom: 1px solid var(--surface-3);
padding: 4px 8px 8px;
}
.account-signups[hidden] { display: none; }
.signup-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 6px 0;
}
.signup-who { min-width: 0; }
.signup-who b, .signup-who small { display: block; }
.signup-who b { font-size: var(--type-read); }
.signup-who small {
color: var(--muted);
font-size: var(--type-meta);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 150px;
}
.signup-row button {
min-height: 28px;
margin-inline-start: 4px;
padding: 0 8px;
border: 1px solid var(--line-soft);
border-radius: var(--r-xs);
background: var(--surface);
color: var(--ink);
font-size: var(--type-control);
cursor: pointer;
}
.signup-approve { border-color: var(--teal); color: var(--teal); }
.signup-refuse { color: var(--red-ink); }
.account-button:hover,
.account-button[aria-expanded="true"] { border-color: var(--teal); color: var(--ink); }

.account-avatar {
display: inline-grid;
place-items: center;
width: 30px;
height: 30px;
border-radius: 50%;
background: var(--line-soft);
color: var(--teal-ink);
font: 700 var(--type-read)/1 var(--font-ui);
}

.account-button b {
max-width: 12ch;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 650;
}

.account-caret { color: var(--faint); }

.account-menu {
position: absolute;
top: calc(100% + 8px);
inset-inline-end: 0;
z-index: 45;
width: min(280px, calc(100vw - 16px));

max-height: calc(100dvh - var(--header-h, 56px) - 16px);
overflow-y: auto;
overscroll-behavior: contain;
padding: 8px;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: 0 18px 40px -12px rgba(23, 39, 48, 0.28), 0 2px 6px rgba(23, 39, 48, 0.06);
}
.account-menu[hidden] { display: none; }

.account-menu-who {
margin: 4px 8px 8px;
color: var(--muted);
font-size: var(--type-note);
}
.account-menu-who b { color: var(--ink); font-weight: 650; }

.account-menu-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
min-height: 48px;
padding: 4px 8px;
border-top: 1px solid var(--surface-3);
color: var(--ink);
font-size: var(--type-control);
}
.account-menu .language-switch button { min-width: 52px; min-height: 36px; font-size: var(--type-control); }

.account-menu .expert-toggle {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
width: 100%;
min-height: 56px;
padding: 8px;
border: 0;
border-top: 1px solid var(--surface-3);
border-radius: 0;
background: transparent;
color: var(--ink);
text-align: start;
cursor: pointer;
}
.account-menu .expert-toggle[hidden] { display: none; }
.account-menu .expert-toggle:hover { background: var(--wash); }
.expert-toggle-text { display: flex; flex-direction: column; gap: 2px; }
.expert-toggle-text b { font-size: var(--type-control); font-weight: 650; }
.expert-toggle-text small { color: var(--muted); font-size: var(--type-note); line-height: 1.4; }
.expert-switch {
position: relative;
flex: none;
width: 36px;
height: 22px;
border-radius: var(--r-pill);
background: var(--line);
transition: background 0.18s ease;
}
.expert-switch::after {
content: "";
position: absolute;
top: 3px;
inset-inline-start: 3px;
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--surface);
box-shadow: 0 1px 2px rgba(23, 39, 48, 0.2);
transition: transform 0.18s ease;
}
.expert-toggle[aria-pressed="true"] .expert-switch { background: var(--teal); }
.expert-toggle[aria-pressed="true"] .expert-switch::after { transform: translateX(calc(14px * var(--inline-sign))); }

.account-mail {
border-top: 1px solid var(--surface-3);
padding: 8px 8px 2px;
}
.account-mail-label {
display: block;
margin: 0 0 6px;
color: var(--muted);
font-size: var(--type-control);
}
.account-email {
display: block;
box-sizing: border-box;
width: 100%;
min-height: 36px;
margin: 0;
padding: 0 10px;
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--wash);
color: var(--ink);
font: var(--type-read)/1.4 var(--font-ui);
}
.account-email:focus {
outline: 2px solid var(--teal);
outline-offset: 1px;
background: var(--surface);
}
.account-menu .account-mail .expert-toggle {
border-top: 0;
min-height: 48px;
padding: 8px 0 6px;
}
.account-mail-status {
margin: 0 0 6px;
color: var(--red-ink);
font-size: var(--type-note);
line-height: 1.45;
}
.account-mail-status[hidden] { display: none; }
.account-mail-status.is-saved { color: var(--teal-deep); }

.account-logout {
display: block;
width: 100%;
min-height: 44px;
padding: 0 8px;
border: 0;
border-top: 1px solid var(--surface-3);
background: transparent;
color: var(--red-ink);
font: 650 var(--type-read)/1 var(--font-ui);
text-align: start;
cursor: pointer;
}
.account-logout:hover { background: var(--red-wash); }


.rail-drawer svg, .inspector-toggle svg, .files-open svg { flex: none; }
.rail-drawer, .inspector-toggle { gap: 6px; }
.new-analysis { display: inline-flex; align-items: center; gap: 5px; }

.new-analysis-plus { flex: none; }
.demo-short { display: none; }

@media (max-width: 1100px) {
.run-list { inset-inline-end: 12px; }


.inspector-toggle { display: inline-flex; }



body:not([data-page="chat"]) .inspector-toggle,
body:has(.chat-page[data-mode="welcome"]) .inspector-toggle { display: none; }

.chat-page:not([data-mode="welcome"]) .chat-stage {
grid-template-columns: minmax(0, 1fr);
}


.chat-page:not([data-mode="welcome"]) { --chat-col: 100%; }

.chat-page .inspector {
position: fixed;
top: var(--header-h);
inset-inline-end: 0;
bottom: 0;
z-index: 50;
display: flex;
width: min(26rem, 88vw);
max-height: none;
padding: 12px;
border-inline-start: 1px solid var(--line);
background: var(--wash);
box-shadow: -18px 0 44px rgba(23, 39, 48, 0.16);
transform: translateX(calc((100% + 72px) * var(--inline-sign)));
transition: transform 0.26s ease;
overflow: auto;
}

.chat-page[data-drawer="open"] .inspector { transform: none; }



.content { grid-template-columns: minmax(0, 1fr); }

.assistant-rail {
position: fixed;
top: var(--header-h);
inset-inline-end: 0;
bottom: 0;
z-index: 50;
width: min(24rem, 92vw);
margin: 0;
border-inline-end: none;
border-radius: 0;
border-start-start-radius: 18px;
border-end-start-radius: 18px;
box-shadow: -18px 0 44px rgba(23, 39, 48, 0.16);
transform: translateX(calc((100% + 72px) * var(--inline-sign)));
transition: transform 0.26s ease;
animation: none;
}

body[data-rail-drawer="open"] .assistant-rail { transform: none; }



.stage-next-here { display: none; }
}

@media (prefers-reduced-motion: reduce) {
.concl-hero-canvas.is-loading { animation: none; }
.login-gate.is-leaving { transition: none; }
.login-card #login-submit.is-busy::after { animation-duration: 2.4s; }
.top-nav > a.is-arriving { animation: none; }
.tab-count.is-new { animation: none; }
.trace-spin, .delib-branch { animation: none; opacity: 1; transform: none; }
.chat-page .inspector { transition: none; }
.assistant-rail { animation: none; transition: none; }
.rail-status-dot, .rail-status-dot::after { animation: none; }
.rail-status-dot::after { display: none; }
.run-pulse-dot, .stage-live-dot,
.chat-page[data-mode="running"] .run-progress-fill,
.rail-status[data-tone="busy"] .rail-status-fill { animation: none; }
.files-drawer { transition: none; }
.decision-card.is-flash { transition: none; }
.review-badge.is-running { animation: none; }
.task-card.is-running .task-card-name::before,
.work-tray.is-running .work-tray-dot,
.task-card-meter span.is-now,
.work-toast { animation: none; }
.task-card-meter span.is-now { background: var(--teal); opacity: 0.55; }
}




.chat-page[data-mode="gate"] .run-board {
display: flex;
flex: 0 0 auto;
overflow-y: auto;
}

@media (max-width: 860px) {
.chat-page[data-mode="gate"] .run-board { max-height: 36vh; }
}
.chat-page[data-mode="gate"] .transcript,
.chat-page[data-mode="gate"] .composer-dock {
display: flex;
}

.chat-page[data-mode="gate"] .composer-dock {
flex-wrap: wrap;
}
.decision-card {
align-self: stretch;
}



.decision-card.is-done .decision-choices button { cursor: default; }



.upload-card {
align-self: stretch;
}
.upload-card p { margin: 0 0 8px; }

.upload-field {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
margin: 0 0 8px;
font-size: var(--type-control);
}

.upload-field span { font-weight: 650; }

.upload-status {
margin: 8px 0 0;
color: var(--muted);
font-size: var(--type-note);
}

.upload-card.is-done {
opacity: 0.62;
border-color: var(--line);
background: var(--surface);
}


.preview-toast {
position: fixed;
inset-inline-end: max(18px, env(safe-area-inset-right));
bottom: max(18px, env(safe-area-inset-bottom));
z-index: 70;
max-width: min(360px, 86vw);
padding: 10px 14px;
border: 1px solid var(--amber);
border-radius: var(--r-m);
background: var(--amber-wash);
color: var(--ink);
font-size: var(--type-read);
}

.preview-toast[hidden] { display: none; }


.figure-gallery { margin: 4px 0 12px; }

.figure-kicker {
margin: 0 0 8px;
color: var(--muted);
font: 650 var(--type-meta)/1.4 "SFMono-Regular", Menlo, monospace;
}

.figure-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 10px;
}

.figure-item {
margin: 0;
border: 1px solid var(--line);
border-radius: var(--r-s);
overflow: hidden;
background: var(--surface);
}



.figure-item img {
display: block;
width: 100%;
height: 260px;
object-fit: contain;
background: var(--surface-2);
border-bottom: 1px solid var(--line);
}

.figure-item figcaption {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 8px;
padding: 6px 8px;
font-size: var(--type-meta);
}

.figure-name { color: var(--ink); font-weight: 650; }

.figure-item figcaption a {
color: var(--teal);
font-weight: 650;
text-transform: uppercase;
text-decoration: none;
}

.figure-item figcaption .figure-tune {
margin-inline-start: auto;
padding: 3px 10px;
border: 1px solid var(--teal-line);
border-radius: var(--r-pill);
background: var(--teal-wash);
color: var(--teal-ink);
font: 650 var(--type-note)/1.4 var(--font-ui);
cursor: pointer;
}
.figure-item figcaption .figure-tune:hover { border-color: var(--teal-soft); background: var(--surface); }


.tuner-dialog {
width: min(96vw, 1180px);
height: min(92vh, 920px);
padding: 0;
border: 1px solid var(--line);
border-radius: var(--r-l);
background: var(--surface);
color: var(--ink);
box-shadow: var(--shadow-3);
overflow: hidden;
}
.tuner-dialog[open] { display: flex; flex-direction: column; }
.tuner-dialog::backdrop { background: rgba(23, 39, 48, 0.42); }
.tuner-head {
display: flex;
align-items: flex-start;
gap: var(--space-4);
padding: var(--space-4) var(--space-5) var(--space-3);
border-bottom: 1px solid var(--line-soft);
}
.tuner-titles { flex: 1; min-width: 0; }
.tuner-head h2 { margin: 0 0 4px; font: 700 var(--type-heading)/1.3 var(--font-ui); }
.tuner-help { margin: 0; color: var(--muted); font-size: var(--type-note); line-height: var(--leading); }
.tuner-close {
border: 0;
background: none;
color: var(--subtle);
font-size: var(--type-headline);
line-height: 1;
cursor: pointer;
}
.tuner-body {
flex: 1;
min-height: 0;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}
.tuner-stage {
min-height: 0;
overflow: auto;
padding: var(--space-4);
background: var(--wash);
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.tuner-frame { position: relative; align-self: center; width: 100%; max-width: 760px; }
.tuner-image {
display: block;
width: 100%;
height: auto;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--r-xs);
box-shadow: var(--shadow-1);
}
.tuner-busy {
position: absolute;
inset: 0;
display: flex;
align-items: flex-start;
justify-content: center;
padding-top: 18%;
background: color-mix(in srgb, var(--wash) 62%, transparent);
color: var(--ink-2);
font: 650 var(--type-title)/1.5 var(--font-ui);
text-align: center;
}
.tuner-busy[hidden] { display: none; }
.tuner-meta {
display: flex;
flex-wrap: wrap;
gap: var(--space-2) var(--space-4);
align-self: center;
width: 100%;
max-width: 760px;
font-size: var(--type-note);
color: var(--muted);
}
.tuner-check.is-good { color: var(--teal-ink); }
.tuner-check.is-bad { color: var(--red-ink); font-weight: 650; }
.tuner-fix {
align-self: center;
padding: 6px 12px;
border: 1px solid var(--amber-line);
border-radius: var(--r-s);
background: var(--amber-wash);
color: var(--amber-ink);
font: 650 var(--type-note)/1.3 var(--font-ui);
cursor: pointer;
}
.tuner-fix[hidden] { display: none; }
.tuner-error {
align-self: center;
max-width: 760px;
margin: 0;
padding: 8px 10px;
border-radius: var(--r-s);
background: var(--red-wash);
color: var(--red-ink);
font-size: var(--type-note);
white-space: pre-wrap;
}
.tuner-error[hidden] { display: none; }
.tuner-panel {
min-height: 0;
overflow-y: auto;
padding: var(--space-3) var(--space-4) var(--space-4);
border-inline-start: 1px solid var(--line-soft);
}
.tuner-group {
margin: 0 0 var(--space-3);
padding: var(--space-2) var(--space-3) var(--space-1);
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
}
.tuner-group legend {
padding: 0 4px;
color: var(--ink-2);
font: 700 var(--type-note)/1.4 var(--font-ui);
}
.tuner-row {
padding-block: 6px 8px;
padding-inline: 8px 0;
border-inline-start: 2px solid transparent;
}
.tuner-row + .tuner-row { border-top: 1px solid var(--line-soft); }
.tuner-row.is-pinned { border-inline-start-color: var(--teal); }
.tuner-row.is-absent { opacity: 0.55; }
.tuner-row-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: 4px; }
.tuner-label { flex: 1; min-width: 0; font-size: var(--type-control); color: var(--ink); }
.tuner-value { font: 600 var(--type-note)/1 var(--font-mono); color: var(--ink-2); white-space: nowrap; }
.tuner-pin {
padding: 2px 8px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface-2);
color: var(--subtle);
font: 600 var(--type-meta)/1.5 var(--font-ui);
white-space: nowrap;
}
.tuner-pin.is-pinned {
border-color: var(--teal-line);
background: var(--teal-wash);
color: var(--teal-ink);
cursor: pointer;
}
.tuner-pin:disabled { cursor: default; }
.tuner-range { width: 100%; accent-color: var(--teal); }
.tuner-choices { display: flex; flex-wrap: wrap; gap: 4px; }
.tuner-choice {
padding: 4px 10px;
border: 1px solid var(--line-strong);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink-2);
font: 600 var(--type-note)/1.3 var(--font-ui);
cursor: pointer;
}
.tuner-choice.is-on { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-ink); }
.tuner-toggle { accent-color: var(--teal); }
.tuner-note { margin: 0; color: var(--subtle); font-size: var(--type-meta); }
.tuner-foot {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-end;
gap: var(--space-2);
padding: var(--space-3) var(--space-5);
border-top: 1px solid var(--line-soft);
}
.tuner-dirty { margin-inline-end: auto; color: var(--amber-ink); font-size: var(--type-note); }
.tuner-foot button {
min-height: 36px;
padding: 8px 16px;
border: 1px solid var(--line-strong);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: 650 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}
.tuner-foot button.is-primary { border-color: var(--teal); background: var(--teal); color: var(--surface); }
.tuner-foot button:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 760px) {


.tuner-dialog { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }

.tuner-head { padding-top: max(var(--space-4), env(safe-area-inset-top)); }
.tuner-foot { padding-bottom: max(var(--space-3), env(safe-area-inset-bottom)); }
.tuner-body { grid-template-columns: 1fr; grid-auto-rows: max-content; overflow-y: auto; }
.tuner-stage, .tuner-panel { min-height: auto; overflow: visible; }
.tuner-panel { border-inline-start: 0; border-top: 1px solid var(--line-soft); }
}


.run-blocked {
margin: 0 0 14px;
padding: 10px 12px;
border-radius: var(--r-s);
background: var(--amber-wash);
color: var(--amber-ink);
font-size: var(--type-note);
}
.run-blocked[hidden] { display: none; }

.run-steps li.gate {
cursor: default;
border-bottom-color: transparent;
}
.run-steps li.gate .dot {
border: 1.5px solid var(--teal);
border-radius: var(--r-2xs);
background: transparent;
}
.run-steps li.gate.complete .dot { background: var(--teal); }
.run-steps li.waiting {
color: var(--teal);
font-weight: 650;
background: var(--teal-wash);
}
.run-steps li.waiting .dot {
background: var(--teal);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent);
}
.run-steps li.skipped { opacity: 0.55; }
.run-steps li.skipped .dot { background: transparent; border: 1px dashed var(--line); }

.run-steps li.review, .run-steps li.held { color: var(--amber-ink); }
.run-steps li.review { cursor: pointer; }
.run-steps li.review .dot, .run-steps li.held .dot { background: transparent; border: 1.5px dashed var(--amber); }
.run-steps li.gate.review small { color: var(--amber-ink); }
.run-steps li.current { border-inline-start: 3px solid var(--teal); padding-inline-start: 6px; }
.run-steps li.gate small { color: var(--teal); }


.plan-card .plan-steps { margin: 10px 0; }
.plan-card .plan-steps summary {
cursor: pointer;
color: var(--teal);
font: 650 var(--type-control)/1 var(--font-ui);
}
.plan-card .plan-steps ol {
margin: 8px 0 0;
padding-inline-start: 18px;
max-height: 220px;
overflow: auto;
}
.plan-card .plan-steps li { margin-bottom: 3px; font-size: var(--type-read); }
.plan-card .plan-steps li small { margin-inline-start: 6px; color: var(--muted); font-size: var(--type-meta); }
.plan-card .plan-steps li.plan-step-gate { color: var(--teal); }
.plan-wont { margin: 8px 0 0; color: var(--muted); font-size: var(--type-read); }

.plan-card .plan-ask { margin: 6px 0 0; color: var(--muted); }
.plan-card .plan-more { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--teal) 30%, transparent); }
.plan-card .plan-more > summary {
cursor: pointer;
color: var(--teal);
font: 650 var(--type-control)/1.3 var(--font-ui);
}
.plan-card .plan-more[open] > summary { margin-bottom: 8px; }

.account-usage {
border-top: 1px solid var(--surface-3);
padding: 8px 8px 2px;
}
.account-usage-list {
margin: 0;
padding: 0;
list-style: none;
display: grid;
gap: 4px;
font-size: var(--type-note);
color: var(--ink-2);
}
.account-usage-list li { display: flex; justify-content: space-between; gap: 12px; }
.account-usage-list b { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.account-usage-list li.is-full b { color: var(--red-ink); }

.account-memory-list li { align-items: flex-start; }
.account-memory-list li span { overflow-wrap: anywhere; }
.account-memory-list li.is-habit { color: var(--muted); }
.account-memory-forget,
.account-memory-clear {
border: 0;
background: none;
color: var(--muted);
font: inherit;
font-size: var(--type-note);
cursor: pointer;
padding: 0 2px;
flex: none;
}
.account-memory-forget:hover,
.account-memory-clear:hover { color: var(--red-ink); }
.account-memory-clear { margin: 4px 0 0; }

.account-action {
display: block;
width: 100%;
min-height: 34px;
padding: 0 10px;
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: 650 var(--type-read)/1 var(--font-ui);
text-align: start;
cursor: pointer;
}


.account-action[hidden] { display: none; }
.account-action:hover { background: var(--surface-2); }
a.account-action { display: flex; align-items: center; text-decoration: none; }
.account-action + .account-action { margin-top: 6px; }
.account-action.is-danger { color: var(--red-ink); border-color: var(--red-line); }


.admin-limits { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--surface-3); }
.admin-limits h3 { margin: 0 0 8px; font-size: var(--type-title); }
.admin-limit-usage { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 4px; font-size: var(--type-note); }
.admin-limit-usage li { display: flex; justify-content: space-between; gap: 12px; max-width: 420px; }
.admin-limit-usage b { font-variant-numeric: tabular-nums; }
.admin-limit-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 6px; }
.admin-limit-fields label { display: grid; gap: 4px; font-size: var(--type-control); color: var(--ink-2); }
.admin-limit-fields input {
min-width: 0;
min-height: 32px;
padding: 0 10px;
border: 1px solid var(--line);
border-radius: var(--r-s);
font: var(--type-control)/1 var(--font-ui);
}
.admin-limits small { display: block; margin-bottom: 8px; color: var(--muted); font-size: var(--type-note); }

.admin-limits-dialog .admin-limit-fields { margin: 12px 0 6px; }
.admin-limits-dialog small { display: block; color: var(--muted); font-size: var(--type-note); }

.password-dialog .upload-field { align-items: stretch; }
.password-dialog .upload-field input { width: 100%; min-height: 36px; box-sizing: border-box; }





.feedback-dialog {
width: min(92vw, 34rem);
max-height: calc(100dvh - 32px);
overflow-y: auto;
overscroll-behavior: contain;
}
.feedback-dialog form[hidden], .feedback-done[hidden] { display: none; }
.feedback-dialog .upload-field { align-items: stretch; }
.feedback-kinds {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 0 0 12px;
padding: 0;
border: 0;
}
.feedback-kind {
position: relative;
display: inline-flex;
align-items: center;
min-height: 34px;
padding: 0 14px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--ink-2);
font: 650 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}


.feedback-kind input {
position: absolute;
inset: 0;
margin: 0;
opacity: 0;
cursor: pointer;
}
.feedback-kind:has(input:checked) { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-ink); }
.feedback-kind:has(input:focus-visible),
.feedback-file:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.feedback-dialog textarea {
width: 100%;
min-height: 6.5em;
box-sizing: border-box;
padding: 8px 10px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: var(--type-control)/1.5 var(--font-ui);
resize: vertical;
}
.feedback-shot {
margin: 0 0 10px;
padding: 10px 12px;
border: 1px dashed var(--line);
border-radius: var(--r-m);
}
.feedback-dialog .feedback-shot-note { margin: 0 0 8px; font-size: var(--type-read); line-height: 1.5; }
.feedback-shot-note b { display: block; color: var(--ink); }
.feedback-shot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback-file { position: relative; cursor: pointer; }
.feedback-shot-preview { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; }
.feedback-shot-preview[hidden] { display: none; }
.feedback-shot-preview img {
max-width: 160px;
max-height: 110px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--wash);
object-fit: contain;
}
.feedback-check {
display: flex;
align-items: center;
gap: 8px;
margin: 0 0 10px;
color: var(--ink-2);
font-size: var(--type-control);
cursor: pointer;
}
.feedback-auto { margin: 0 0 10px; color: var(--ink-2); font-size: var(--type-note); line-height: 1.5; }
.feedback-auto summary { cursor: pointer; font-size: var(--type-control); }
.feedback-auto-list {
display: grid;
grid-template-columns: max-content minmax(0, 1fr);
gap: 4px 12px;
margin: 8px 0 0;
}
.feedback-auto-list dt { color: var(--subtle); }
.feedback-auto-list dd { margin: 0; overflow-wrap: anywhere; }
.feedback-errors { margin: 2px 0 0; padding-inline-start: 1.1em; }
.feedback-done p { color: var(--ink); }
.feedback-id { font-family: var(--font-mono); }
@media (max-width: 480px) {
.feedback-auto-list { grid-template-columns: minmax(0, 1fr); }
.feedback-auto-list dd { margin-bottom: 4px; }
}
}



@layer legacy {



.nodes-page {
padding: 0;
}

.nodes-page [hidden] {
display: none !important;
}

.nodes-scroll {
flex: 1;
min-height: 0;
overflow: auto;
padding: var(--page-top) var(--page-gutter) var(--space-8);
}

.nodes-head {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 16px;
margin-bottom: 16px;
}

.nodes-head .page-title { margin: 0; }

.nodes-summary {
margin: 6px 0 0;
color: var(--muted);
font-size: var(--type-read);
}

#nodes-new, #admin-new { flex: 0 0 auto; }

.admin-page { padding: 0; }
.admin-page [hidden] { display: none !important; }
.admin-scroll {
flex: 1;
min-height: 0;
overflow: auto;
padding: var(--page-top) var(--page-gutter) var(--space-10);
}

.admin-scroll > * { max-width: 960px; }
.admin-block { margin-top: var(--space-8); }
.admin-node b { display: block; }

.admin-node-group { grid-template-columns: 1fr auto; }
.admin-node-why { margin: 6px 0 0; color: var(--ink-2); font-size: var(--type-read); line-height: var(--leading); }
.admin-node-error {
display: inline-block;
margin-top: 6px;
padding: 2px 6px;
border-radius: var(--r-xs);
background: var(--red-wash);
color: var(--red-ink);
font: var(--type-meta)/1.5 var(--font-mono);
overflow-wrap: anywhere;
}
.admin-node-names { margin: 8px 0 0; color: var(--muted); font-size: var(--type-note); line-height: var(--leading); }
.admin-stats {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
margin-top: 4px;
}
.admin-stat {
padding: 12px 12px 10px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
}
.admin-stat b { display: block; font-size: var(--type-title); }
.admin-stat small { display: block; margin-top: 4px; color: var(--muted); font-size: var(--type-meta); line-height: 1.35; }
.admin-stat.is-off b { color: var(--red-ink); }
.admin-stat.is-on b { color: var(--teal); }
.admin-switch {
display: flex;
gap: 10px;
align-items: flex-start;
padding: 12px 14px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
}
.admin-switch b { display: block; font-size: var(--type-control); }
.admin-switch small { display: block; margin-top: 3px; color: var(--muted); font-size: var(--type-note); line-height: 1.45; }
.admin-node {
display: grid;
grid-template-columns: 1fr auto;
gap: 4px 12px;
margin: 0 0 8px;
padding: 12px 14px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
}
.admin-node.is-bad { border-color: var(--red-line); }
.admin-node.is-hot { border-color: var(--amber-line); }
.admin-node b { font-size: var(--type-title); }
.admin-node small { color: var(--muted); font-size: var(--type-note); }
.admin-work-row {
display: flex;
justify-content: space-between;
gap: 12px;
padding: 8px 0;
border-bottom: 1px solid var(--surface-3);
font-size: var(--type-read);
}
.admin-work-row small { color: var(--muted); }
@media (max-width: 720px) {
.admin-stats { grid-template-columns: 1fr 1fr; }
}
.admin-block-title {
margin: 0 0 var(--space-3);
color: var(--ink);
font: var(--weight-strong) var(--type-heading)/1.3 var(--font-ui);
}
.admin-empty { margin: 0; color: var(--muted); font-size: var(--type-read); }
#admin-nodes-summary:not(:empty) { margin-bottom: var(--space-3); }
.admin-create {
display: flex;
flex-direction: column;
gap: 10px;
margin: 0 0 8px;
padding: 16px 18px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
}
.admin-create input, .admin-create select {
width: 100%;
padding: 8px 10px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: var(--type-control)/1.4 var(--font-ui);
}
.admin-invite {
display: flex;
align-items: center;
gap: 8px;
color: var(--muted);
font-size: var(--type-read);
}

.admin-create .admin-invite input { flex: none; width: auto; margin: 0; padding: 0; }
.admin-invite[hidden], .admin-invite-off[hidden], .admin-create-cap[hidden], .admin-accounts-status[hidden] { display: none; }
.admin-invite-off { color: var(--muted); font-size: var(--type-note); }
.admin-create-cap { margin: 0; color: var(--muted); font-size: var(--type-read); }
.admin-create-cap.is-full { color: var(--red-ink); }
.admin-accounts-status { margin: 0; color: var(--teal); font-size: var(--type-read); }
.admin-request, .admin-person {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
width: 100%;
margin: 0 0 8px;
padding: 12px 14px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
text-align: start;
color: var(--ink);
}
.admin-person.is-selected { border-color: var(--teal); }
.admin-person-main, .admin-request-main { min-width: 0; }
.admin-person-main b, .admin-request-main b { display: block; font-size: var(--type-title); }
.admin-person-main small, .admin-request-main small {
display: block;
margin-top: 2px;
color: var(--muted);
font-size: var(--type-note);
}
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-actions button, .admin-detail button, .admin-create button[type="submit"] {
min-height: 32px;
padding: 0 12px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--ink);
font: 650 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}
.admin-actions .is-primary, .admin-create button[type="submit"] {
border-color: var(--teal);
background: var(--teal);
color: var(--surface);
}
.admin-actions .is-danger { color: var(--red-ink); border-color: var(--red-line); }
.admin-detail {
margin-top: 8px;
padding: 14px 16px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--wash);
}
.admin-detail p { margin: 0 0 12px; color: var(--muted); font-size: var(--type-read); }
.admin-detail-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
margin-top: 10px;
}
.admin-detail input[type="password"] {
min-height: 32px;
padding: 0 10px;
border: 1px solid var(--line);
border-radius: var(--r-s);
font: var(--type-control)/1 var(--font-ui);
}
.signup-open {
width: 100%;
margin: 0;
padding: 8px 4px;
border: 0;
background: transparent;
color: var(--teal);
font: 650 var(--type-control)/1.4 var(--font-ui);
text-align: start;
cursor: pointer;
}
@media (max-width: 720px) {
.admin-scroll { padding: 16px 14px 28px; }
.admin-request, .admin-person { align-items: flex-start; flex-direction: column; }
}

.session-form {
display: flex;
flex-direction: column;
gap: 10px;
max-width: 34rem;
margin: 0 0 18px;
padding: 16px 18px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
}

.session-form-row {
display: grid;
grid-template-columns: 64px 1fr;
align-items: center;
gap: 10px;
}

.session-form-row label span {
color: var(--muted);
font-size: var(--type-control);
}

.session-form input[type="text"],
.session-form select {
width: 100%;
padding: 8px 10px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: var(--type-control)/1.3 var(--font-ui);
}

.session-form input[type="text"] {
font-family: var(--font-mono);
}

.session-form input:focus,
.session-form select:focus {
outline: 2px solid var(--teal);
outline-offset: -1px;
}

.session-presets {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
}

.session-presets-label {
color: var(--muted);
font-size: var(--type-control);
margin-inline-end: 2px;
}

.session-preset {
padding: 4px 12px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface-2);
color: var(--ink-2);
font: var(--type-note)/1.4 var(--font-mono);
cursor: pointer;
}

.session-preset:hover { border-color: var(--teal); color: var(--teal); }

.session-form-error {
margin: 0;
color: var(--red);
font-size: var(--type-note);
}

.session-form-actions { display: flex; gap: 10px; }

.session-form-actions button {
padding: 8px 16px;
border-radius: var(--r-pill);
font: 650 var(--type-control)/1.2 var(--font-ui);
cursor: pointer;
}

.session-form-actions button[type="submit"] {
border: 1px solid var(--teal);
background: var(--teal);
color: var(--surface);
}

.session-form-actions button[type="submit"]:hover { background: var(--teal-deep); }

.session-form-actions #session-cancel {
border: 1px solid var(--line);
background: var(--surface);
color: var(--ink-2);
}

.nodes-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
gap: 14px;
}

.nodes-empty {
grid-column: 1 / -1;
margin: 0;
padding: 16px 18px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
color: var(--muted);
font-size: var(--type-read);
}

.node-card {
display: flex;
flex-direction: column;
gap: 9px;
padding: 14px 16px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
}

.node-card.is-down { opacity: 0.72; align-self: start; }
.node-hw { margin: 6px 0 0; color: var(--muted); font-size: var(--type-note); line-height: 1.5; }

.node-card.is-tainted {
border-color: var(--amber);
background: var(--amber-wash);
}

.node-card-head {
display: flex;
align-items: baseline;
gap: 8px;
flex-wrap: wrap;
}



.node-card-head b {
color: var(--ink);
font: 650 var(--type-title)/1.2 var(--font-ui);
}

.node-address {
color: var(--muted);
font: var(--type-meta)/1 var(--font-mono);
}

.node-badges {
display: inline-flex;
gap: 6px;
margin-inline-start: auto;
}

.node-pool,
.node-taint {
padding: 2px 8px;
border-radius: var(--r-pill);
font: 650 var(--type-meta)/1.5 var(--font-ui);
}

.node-pool.is-session { background: var(--teal-wash); color: var(--teal); }
.node-pool.is-compute { background: var(--blue-wash); color: var(--blue); }

.node-taint {
background: var(--amber);
color: var(--surface);
cursor: help;
}

.node-bar-row {
display: grid;
grid-template-columns: 38px 1fr auto;
align-items: center;
gap: 8px;
}

.node-bar-label {
color: var(--muted);
font-size: var(--type-meta);
}

.node-bar {
height: 6px;
border-radius: var(--r-pill);
background: var(--surface-3);
overflow: hidden;
}

.node-bar span {
display: block;
height: 100%;
border-radius: var(--r-pill);
background: var(--teal);
transition: width 240ms ease;
}

.node-bar span.is-hot { background: var(--red); }

.node-bar-value {
color: var(--ink-2);
font: var(--type-meta)/1 var(--font-mono);
}

.node-gpus {
display: flex;
flex-wrap: wrap;
gap: 6px;
min-height: 18px;
color: var(--muted);
font-size: var(--type-meta);
}

.node-gpu {
padding: 2px 8px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface-2);
color: var(--ink-2);
font: var(--type-meta)/1.5 var(--font-mono);
}

.node-sessions {
color: var(--muted);
font-size: var(--type-meta);
}

.node-session-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 7px 10px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--wash);
color: var(--ink);
font: var(--type-note)/1.3 var(--font-mono);
cursor: pointer;
text-align: start;
}

.node-session-row:hover { border-color: var(--teal); }

.node-session-row small { color: var(--teal); font-family: var(--font-ui); }

.node-session-row.is-ended { opacity: 0.65; }
.node-session-row.is-ended small { color: var(--muted); }

.session-view {
display: flex;
flex-direction: column;
gap: 10px;
max-width: 62rem;
}

.session-view-head {
display: flex;
align-items: center;
gap: 12px;
}

.session-view-meta {
display: flex;
align-items: baseline;
gap: 8px;
min-width: 0;
flex: 1;
}

.session-view-meta b {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font: var(--type-note)/1.3 var(--font-mono);
color: var(--ink);
}

.session-status {
flex: 0 0 auto;
padding: 2px 8px;
border-radius: var(--r-pill);
background: var(--teal-wash);
color: var(--teal);
font: 650 var(--type-meta)/1.5 var(--font-ui);
}

.session-status[data-status="dead"],
.session-status[data-status="closed"] {
background: var(--surface-3);
color: var(--muted);
}

#session-back,
#session-close {
flex: 0 0 auto;
padding: 7px 14px;
border-radius: var(--r-pill);
font: 650 var(--type-control)/1.2 var(--font-ui);
cursor: pointer;
}

#session-back {
border: 1px solid var(--line);
background: var(--surface);
color: var(--ink-2);
}

#session-back:hover { border-color: var(--teal); color: var(--teal); }

#session-close {
border: 1px solid var(--red-line);
background: var(--surface);
color: var(--red);
}

#session-close:hover { border-color: var(--red); background: var(--red-wash); }

.session-dead-banner {
margin: 0;
padding: 9px 14px;
border: 1px solid var(--amber);
border-radius: var(--r-s);
background: var(--amber-wash);
color: var(--amber-ink);
font-size: var(--type-note);
}

.session-output {
min-height: 320px;
max-height: 56vh;
margin: 0;
padding: 14px 16px;
overflow: auto;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--terminal);
color: var(--teal-line);
font: var(--type-note)/1.55 var(--font-mono);
white-space: pre-wrap;
word-break: break-word;
}

.session-input-form {
display: flex;
gap: 8px;
}

.session-input-form input {
flex: 1;
padding: 9px 12px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: var(--type-control)/1.3 var(--font-mono);
}

.session-input-form input:focus {
outline: 2px solid var(--teal);
outline-offset: -1px;
}

.session-input-form button {
padding: 9px 18px;
border: 1px solid var(--teal);
border-radius: var(--r-s);
background: var(--teal);
color: var(--surface);
font: 650 var(--type-control)/1.2 var(--font-ui);
cursor: pointer;
}

.session-input-form button:hover { background: var(--teal-deep); }
.session-input-form button:disabled,
.session-input-form input:disabled { opacity: 0.55; cursor: default; }



.demo-pill {
display: inline-flex;
align-items: center;
gap: 6px;
padding-block: 3px;
padding-inline: 10px 4px;
border: 1px solid var(--amber-line);
border-radius: var(--r-pill);
background: var(--amber-wash);
color: var(--amber-ink);
font: 600 var(--type-meta)/1.2 var(--font-ui);
white-space: nowrap;
}

.demo-pill[hidden] { display: none; }

.demo-pill button {
padding: 1px 6px;
border: 0;
border-radius: var(--r-pill);
background: transparent;
color: inherit;
font: 600 var(--type-control)/1.2 var(--font-ui);
cursor: pointer;
}

.demo-pill button:hover { background: var(--amber-line); }


.coach-hint {
display: flex;
align-items: center;
gap: 8px;
margin: 6px 0 2px;
padding: 8px 10px;
border: 1px solid var(--blue-line);
border-inline-start: 3px solid var(--teal);
border-radius: var(--r-s);
background: var(--blue-wash);
color: var(--ink-2);
font: var(--type-note)/1.45 var(--font-ui);
}

.coach-hint p { margin: 0; flex: 1; }

.coach-hint .coach-ok {
flex: none;
padding: 3px 10px;
border: 1px solid var(--teal);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--teal);
font: 600 var(--type-meta)/1.4 var(--font-ui);
cursor: pointer;
}

.coach-hint .coach-ok:hover { background: var(--teal-wash); }


.conclusion-page { padding: 0; }

.conclusion-body[hidden] { display: none; }
.conclusion-body {




box-sizing: border-box;
width: 100%;
max-width: calc(var(--page-measure) + 2 * var(--page-gutter));
margin: 0 auto;
padding: 0 var(--page-gutter) 30px;
}


.conclusion-cards {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 16px;
align-items: start;
}

.concl-chain { display: grid; gap: var(--space-2); margin-top: var(--space-5); }
.concl-chain[hidden] { display: none; }
.concl-chain-title { margin: 0; font-size: var(--type-title); }
.concl-chain-level { margin: 0; color: var(--muted); font-size: var(--type-note); }

.concl-add-atoms { margin-top: var(--space-2); border-top: 1px solid var(--line-soft); padding-top: var(--space-3); }
.concl-add-atoms-open { width: fit-content; color: var(--teal-ink); font-size: var(--type-control); font-weight: var(--weight-medium); cursor: pointer; }
.concl-add-atoms-body { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.concl-add-atoms-lede { margin: 0; color: var(--muted); font-size: var(--type-note); max-width: var(--read-measure); }
.concl-add-atoms-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.concl-add-atoms-go { justify-self: start; }
.concl-add-atoms-error { margin: 0; color: var(--red-ink); font-size: var(--type-note); }
.concl-add-atoms-error[hidden] { display: none; }

.concl-card {
padding: 16px 18px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
}

.concl-card h2 {
margin: 0 0 10px;
font: 650 var(--type-heading)/1.3 var(--font-ui);
color: var(--ink);
}

.concl-figure-card img {
display: block;
max-width: 100%;
max-height: 420px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--wash);
}

.concl-empty {
margin: 0;
color: var(--muted);
font: var(--type-read)/1.5 var(--font-ui);
}

.concl-row {
display: flex;
justify-content: space-between;
gap: 10px;
margin: 0;
padding: 7px 0;
border-top: 1px solid var(--surface-3);
font: var(--type-read)/1.4 var(--font-ui);
}

.concl-row:first-of-type { border-top: 0; }

.concl-row span { color: var(--muted); }
.concl-row b { font-weight: 650; color: var(--ink); text-align: end; }

.concl-checks {
margin: 8px 0 0;
padding: 0;
list-style: none;
}

.concl-checks li {
padding: 4px 0;
border-top: 1px solid var(--surface-3);
color: var(--ink-2);
font: var(--type-note)/1.45 var(--font-ui);
}

.concl-temporal {
margin: 10px 0 0;
padding: 8px 10px;
border: 1px solid var(--amber-line);
border-inline-start: 3px solid var(--amber);
border-radius: var(--r-s);
background: var(--amber-wash);
color: var(--amber-ink);
font: var(--type-note)/1.5 var(--font-ui);
}

.concl-limitation {
margin: 6px 0 0;
color: var(--amber-ink);
font: var(--type-note)/1.55 var(--font-ui);
}

.concl-basis-kicker {
margin: 12px 0 4px;
color: var(--teal);
font: 700 var(--type-meta)/1.2 var(--font-ui);
letter-spacing: 0.16em;
text-transform: uppercase;
}

.concl-rules {
margin: 0;
padding: 0;
list-style: none;
}

.concl-rules li {
padding: 6px 0;
border-top: 1px solid var(--surface-3);
color: var(--ink-2);
font: var(--type-note)/1.5 var(--font-ui);
}

.concl-rules a {
display: block;
margin-top: 2px;
color: var(--blue);
font: var(--type-meta)/1.4 var(--font-mono);
overflow-wrap: anywhere;
}


.admin-usage { display: grid; gap: 8px; margin-top: 8px; }
.admin-usage-table { width: 100%; max-width: 520px; border-collapse: collapse; font-size: var(--type-note); }
.admin-usage-table th, .admin-usage-table td { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: start; }
.admin-usage-table td + td, .admin-usage-table th + th { text-align: end; font-variant-numeric: tabular-nums; }


.concl-selfcheck p { margin: 0; color: var(--ink-2); font-size: var(--type-note); }
.concl-selfcheck.has-flags { border-color: var(--amber-ink); }
.concl-selfcheck ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: var(--type-note); }
.concl-selfcheck b { display: block; color: var(--amber-ink); font-weight: 650; }
.concl-selfcheck q { display: block; color: var(--ink); quotes: "“" "”"; }
.concl-selfcheck span { display: block; color: var(--ink-2); }

.admin-feedback-item {
margin: 0 0 8px;
padding: 12px 14px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
color: var(--ink);
}
.admin-feedback-item.is-fixed { background: var(--wash); }
.admin-feedback-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.admin-feedback-head small { color: var(--muted); font-size: var(--type-note); }
.admin-feedback-tag, .admin-feedback-status {
padding: 2px 8px;
border: 1px solid var(--line-soft);
border-radius: var(--r-pill);
color: var(--ink-2);
font: 650 var(--type-meta)/1.4 var(--font-ui);
}
.admin-feedback-status.is-new { border-color: transparent; background: var(--amber-wash); color: var(--amber-ink); }
.admin-feedback-status.is-seen { border-color: transparent; background: var(--blue-wash); color: var(--blue-ink); }
.admin-feedback-status.is-fixed { border-color: transparent; background: var(--teal-wash); color: var(--teal-ink); }
.admin-feedback-text {
margin: 8px 0 4px;
color: var(--ink);
font-size: var(--type-read);
line-height: 1.55;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.admin-feedback-where { display: block; color: var(--muted); font-size: var(--type-note); overflow-wrap: anywhere; }
.admin-feedback-shot { display: inline-block; margin-top: 8px; }
.admin-feedback-shot img {
display: block;
max-width: min(100%, 320px);
max-height: 200px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--wash);
object-fit: contain;
}
.admin-feedback-more { margin-top: 8px; color: var(--ink-2); font-size: var(--type-note); }
.admin-feedback-more summary { font-size: var(--type-control); }
.admin-feedback-more pre {
margin: 6px 0;
padding: 8px;
border-radius: var(--r-s);
background: var(--wash);
font: var(--type-note)/1.5 var(--font-mono);
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.admin-feedback-more ul { margin: 6px 0; padding-inline-start: 1.1em; }
.admin-feedback-item .admin-actions { margin-top: 10px; }
.admin-feedback-issue {
width: 100%;
box-sizing: border-box;
margin-top: 6px;
padding: 8px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: var(--type-control)/1.5 var(--font-mono);
}


.concl-handled-lead { margin: 0 0 8px; color: var(--muted); font-size: var(--type-note); }
.concl-handled-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.concl-handled-list summary { cursor: pointer; overflow-wrap: anywhere; }
.concl-handled-did { color: var(--muted); }

.concl-handled-list > li[data-kind="risk"] { padding-inline-start: 10px; border-inline-start: 3px solid var(--amber); }
.concl-handled-list > li[data-kind="risk"] .concl-handled-did { color: var(--amber-ink); }
.concl-handled-why { margin: 6px 0; color: var(--ink); font-size: var(--type-note); }
.concl-handled-change { margin-block-start: 2px; }
}

@layer legacy {





.admin-console {
flex: 1;
display: grid;
grid-template-columns: 180px minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr);
min-height: 0;
}
.admin-nav {
display: flex;
flex-direction: column;
gap: 2px;
padding: 16px 8px;
border-inline-end: 1px solid var(--line);
}
.admin-nav a {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 6px 10px;
border-radius: var(--r-s);
color: var(--ink-2);
text-decoration: none;
}
.admin-nav a:hover { background: var(--surface-2); }
.admin-nav a.active { background: var(--surface-2); color: var(--ink); font-weight: var(--weight-strong); }
.admin-badge {
min-width: 18px;
padding: 0 6px;
border-radius: 9px;
background: var(--teal);
color: var(--surface);
font: 600 var(--type-meta)/1.5 var(--font-mono);
text-align: center;
}
.admin-main { overflow: auto; padding: 16px 24px 48px; min-width: 0; }
.admin-placeholder { color: var(--muted); }

.admin-list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.admin-list-search { flex: 1 1 220px; min-width: 0; }
.admin-list-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-chip-group { display: flex; gap: 2px; }
.admin-chip { padding: 2px 10px; font-size: var(--type-note); border: 1px solid var(--line); border-radius: var(--r-pill); background: none; color: var(--ink-2); cursor: pointer; }
.admin-chip[aria-pressed="true"] { border-color: var(--teal); color: var(--ink); background: color-mix(in srgb, var(--teal) 16%, transparent); font-weight: var(--weight-strong); }
.admin-chip[aria-disabled="true"] { cursor: default; }
.admin-list-range { margin-inline-start: auto; color: var(--muted); font: var(--type-meta) var(--font-mono); }
.admin-list-fresh { width: 100%; margin: 4px 0; }
.admin-list-bulk {
position: sticky; top: 0; z-index: 2;
display: flex; align-items: center; gap: 8px; padding: 6px 8px;
background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-s);
}
.admin-list-table { width: 100%; border-collapse: collapse; font-size: var(--type-note); }
.admin-list-table th { position: sticky; top: 0; background: var(--surface); text-align: start; font-weight: var(--weight-strong); color: var(--muted); }
.admin-list-table th, .admin-list-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-list-table.is-loading tbody { opacity: 0.4; transition: opacity 120ms; pointer-events: none; }
.admin-list-table .is-numeric { text-align: end; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.admin-list-pick { width: 28px; }
.admin-list-row { cursor: pointer; }
.admin-list-row:hover { background: var(--surface-2); }
.admin-list-row.is-focused { outline: 2px solid var(--teal); outline-offset: -2px; }
.admin-list-row.is-selected { background: var(--surface-2); }
.admin-list-status { color: var(--muted); }
.admin-list-sentinel { height: 1px; }
.admin-list-search, .admin-list-sort { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: inherit; }
.admin-group-meta { color: var(--ink-2); margin: 0 0 8px; }
.admin-group .admin-actions { margin: 12px 0; }
.admin-report { border-top: 1px solid var(--line); padding: 8px 0; }
.admin-report > summary { cursor: pointer; }
.admin-history { margin: 0; padding-inline-start: 18px; font-size: var(--type-meta); color: var(--muted); }

.admin-status { display: inline-flex; align-items: center; gap: 4px; }
.admin-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.admin-status[data-status="new"]::before { background: var(--teal); }
.admin-status[data-status="seen"]::before { background: var(--amber); }
.admin-status[data-status="fixed"]::before { background: var(--teal-deep); }
.admin-tag { padding: 0 6px; border-radius: var(--r-xs); border: 1px solid var(--line); font-size: var(--type-meta); }
.admin-tag.is-regressed { border-color: var(--red); color: var(--red); }

.admin-tag.is-failed { border-color: var(--red); color: var(--red); }
.admin-tag.is-running, .admin-tag.is-published { border-color: var(--teal-line); color: var(--teal-ink); }
.admin-tag + .admin-tag { margin-inline-start: 4px; }
.admin-showcase-actions { display: flex; gap: 6px; white-space: nowrap; }
.admin-showcase-error { color: var(--red); }
.admin-showcase-error[hidden] { display: none; }
.admin-spark { display: inline-flex; align-items: flex-end; gap: 1px; height: 16px; }
.admin-spark i { width: 3px; background: var(--muted); min-height: 1px; }
.admin-meter { display: inline-block; width: 60px; height: 6px; border-radius: 3px; background: var(--line); vertical-align: middle; overflow: hidden; }
.admin-meter i, .admin-meter span { display: block; height: 100%; border-radius: 3px; background: var(--teal); }
.admin-meter.is-near i, .admin-meter.is-hot i, .admin-meter.is-hot span { background: var(--red); }
.admin-node > .admin-meter { grid-column: 1 / -1; width: 100%; margin-top: 4px; }

.admin-drawer {
position: fixed; top: var(--header-h); right: 0; bottom: 0; z-index: 20;
width: min(560px, 100vw); overflow: auto;
background: var(--surface); border-inline-start: 1px solid var(--line); box-shadow: var(--shadow-2);
}
[dir="rtl"] .admin-drawer { right: auto; left: 0; }
.admin-drawer-head { position: sticky; top: 0; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-drawer-head h2 { flex: 1; margin: 0; font-size: var(--type-title); }
.admin-drawer-body { padding: 16px; }

.admin-todo { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.admin-todo a { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); text-decoration: none; }

@media (max-width: 760px) {
.admin-console { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.admin-nav { flex-direction: row; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 8px 16px; }
.admin-main { padding: 12px 16px 48px; }
.admin-list-table .is-wide-only { display: none; }
.admin-drawer { width: 100vw; }
}

}

@layer legacy {








:where(button, a, input, textarea, select, summary, [tabindex]):focus-visible {
outline: 2px solid var(--teal);
outline-offset: 2px;
}

.composer:focus-within,
.rail-composer:focus-within {
border-color: var(--teal);
box-shadow: var(--focus-ring);
}

.next-step {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px 18px;
width: min(100%, var(--chat-col, 52rem));
margin: 0 auto 10px;
padding: 14px 16px;
border: 1px solid var(--line);
border-inline-start-width: 4px;
border-radius: var(--r-m);
background: var(--surface);
}

.next-step[hidden] { display: none; }
.next-step[data-tone="attention"] { border-inline-start-color: var(--teal); background: var(--teal-wash); }
.next-step[data-tone="problem"] { border-inline-start-color: var(--red); background: var(--red-wash); }
.next-step[data-tone="wait"] { border-inline-start-color: var(--subtle); background: var(--wash); }



.next-step[data-tone="success"] { border-inline-start-width: 1px; padding-block: 10px; padding-inline: 16px 12px; background: var(--surface); }
.next-step[data-tone="success"] .next-step-text { display: flex; flex: 1 1 8rem; align-items: baseline; gap: 8px; }
.next-step[data-tone="success"] .next-step-kicker { margin: 0; }
.next-step[data-tone="success"] h2 { font-size: var(--type-title); }
.next-step[data-tone="info"] { border-inline-start-color: var(--faint); }

.next-step-text { flex: 1 1 18rem; min-width: 0; }

.next-step-kicker {
margin: 0 0 2px;
color: var(--muted);
font: 700 var(--type-meta)/1.3 var(--font-ui);
letter-spacing: 0.04em;
}

.next-step h2 {
margin: 0;
color: var(--ink);
font: 700 var(--type-heading)/1.35 var(--font-ui);
}

.next-step p { margin: 4px 0 0; color: var(--ink-2); font-size: var(--type-read); line-height: 1.55; }



.next-step[data-echo="1"] { padding: 9px 14px; gap: 8px 14px; }

.next-step[data-answered="1"] { padding: 10px 14px; }
.next-step[data-answered="1"] .next-step-text { display: none; }
.next-step[data-echo="1"] #next-step-title { display: none; }
.next-step[data-echo="1"] .next-step-kicker { display: inline; margin-block: 0; margin-inline: 0 6px; }

.next-step-more { margin-top: 6px; }
.next-step-more summary { cursor: pointer; color: var(--muted); font-size: var(--type-control); }
.next-step-more pre {
max-height: 10rem;
margin: 6px 0 0;
padding: 8px 10px;
overflow: auto;
border-radius: var(--r-s);
background: var(--wash);
font: var(--type-note)/1.5 "SFMono-Regular", Menlo, monospace;
white-space: pre-wrap;
word-break: break-all;
}

.next-step .run-actions {
flex: 0 1 auto;
justify-content: flex-end;
padding: 0;
}

.run-actions button {
min-height: 36px;
padding: 8px 14px;
border-radius: var(--r-s);
font: 650 var(--type-control)/1.2 var(--font-ui);
color: var(--ink-2);
}

.run-actions button[hidden] { display: none; }


.run-actions button.is-primary,
.decision-choices button.is-primary,
.dialog-actions button.is-primary,
.conclusion-actions button.is-primary,
.rail-next-step-go {
border-color: var(--teal);
background: var(--teal);
color: var(--surface);
}

.run-actions button.is-primary:hover,
.decision-choices button.is-primary:hover,
.dialog-actions button.is-primary:hover,
.conclusion-actions button.is-primary:hover {
border-color: var(--teal-deep);
background: var(--teal-deep);
color: var(--surface);
}


.run-actions button.is-danger,
.dialog-actions button.is-danger,
.choice-chip.is-danger,
.rail-choice-chip.is-danger {
border-color: var(--red);
background: var(--surface);
color: var(--red-ink);
}

.dialog-actions button.is-primary.is-danger {
background: var(--red);
color: var(--surface);
}

#change-input { border-color: var(--line); color: var(--ink-2); }


.chat-page[data-mode="failed"] .run-board {
display: flex;
flex: 0 0 auto;
max-height: 46vh;
overflow-y: auto;
}

.chat-page[data-mode="failed"] .transcript,
.chat-page[data-mode="failed"] .composer-dock {
display: flex;
}

.chat-page[data-mode="failed"] .run-error {
border-color: var(--red-line);
background: var(--red-wash);
color: var(--red-ink);
}



.decision-card {
display: flex;
flex-direction: column;
gap: 8px;
padding: 16px 18px;
border: 1px solid var(--teal-line);
border-inline-start: 4px solid var(--teal);
border-radius: var(--r-m);
background: var(--wash);
scroll-margin: 24px;
}

.decision-card.is-flash { box-shadow: 0 0 0 4px rgba(42, 130, 107, 0.22); }

.decision-kicker {
margin: 0;
color: var(--teal);
font: 700 var(--type-note)/1.3 var(--font-ui);
letter-spacing: 0.04em;
}

.decision-card h2 { margin: 0; font: 700 var(--type-heading)/1.3 var(--font-ui); font-style: normal; }
#transcript .decision-card[data-decision-id="preflight"]:not(.is-done) > h2 {
position: sticky;
top: 0;
z-index: 1;
padding-block: 4px;
background: var(--wash);
}
.decision-card .decision-prompt { margin: 0; color: var(--ink-2); font-size: var(--type-title); }
#transcript .decision-card[data-decision-id="preflight"] > .decision-prompt { display: none; }
.decision-card .evidence { margin: 0; padding-inline-start: 18px; color: var(--ink-2); font-size: var(--type-read); line-height: 1.6; }

.decision-evidence { margin: 2px 0 4px; }
.decision-evidence > summary {
display: inline-flex; align-items: center; gap: 6px; min-height: 28px;
color: var(--muted); font-size: var(--type-control); cursor: pointer; list-style: none;
}
.decision-evidence > summary::-webkit-details-marker { display: none; }
.decision-evidence > summary::before { content: "›"; display: inline-block; transition: transform 160ms ease; }
.decision-evidence[open] > summary::before { transform: rotate(90deg); }


[dir="rtl"] .decision-evidence > summary::before { direction: ltr; scale: -1 1; }
.decision-evidence > summary:hover { color: var(--teal-ink); }
.decision-evidence > .evidence { margin-top: 4px; }

.decision-why {
margin: 0;
padding: 8px 10px;
border-radius: var(--r-s);
background: var(--teal-wash);
color: var(--teal-ink);
font-size: var(--type-read);
}


.decision-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; scroll-margin-bottom: 64px; }

.decision-choices button {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 38px;
padding: 8px 14px;
border: 1px solid var(--line-strong);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: 650 var(--type-control)/1.2 var(--font-ui);
cursor: pointer;
}

.decision-choices button:hover:not([disabled]) { border-color: var(--teal); color: var(--teal); }
.decision-choices button.is-primary:hover:not([disabled]) { color: var(--surface); }
.decision-choices button[disabled] { cursor: not-allowed; opacity: 0.55; }
.decision-choices button.is-caution { border-color: var(--red-line); color: var(--red-ink); }

.decision-choices button[hidden] { display: none; }
.decision-choices .decision-change { border-color: transparent; background: transparent; color: var(--muted); font-weight: 600; }
.decision-choices .decision-change:hover:not([disabled]) { border-color: var(--line-strong); }

.choice-badge {
padding: 2px 6px;
border-radius: var(--r-pill);
background: rgba(255, 255, 255, 0.24);
font: 700 var(--type-meta)/1.2 var(--font-ui);
}

.decision-input {
display: grid;
grid-template-columns: minmax(0, 1fr) auto auto;
gap: 6px 8px;
align-items: center;
padding: 10px;
border: 1px solid var(--line-strong);
border-radius: var(--r-s);
background: var(--surface);
}

.decision-input[hidden] { display: none; }
.decision-input label { grid-column: 1 / -1; font: 650 var(--type-control)/1.3 var(--font-ui); }
.decision-input input { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-s); font: inherit; }
.decision-input button { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface); cursor: pointer; font: 650 var(--type-control)/1 var(--font-ui); }
.decision-input small { grid-column: 1 / -1; color: var(--muted); font-size: var(--type-note); }

.decision-error {
margin: 0;
padding: 8px 10px;
border-radius: var(--r-s);
background: var(--red-wash);
color: var(--red-ink);
font-size: var(--type-read);
}

.decision-error[hidden] { display: none; }
.decision-note { margin: 0; color: var(--muted); font-size: var(--type-note); }
.decision-card .rule-source summary { cursor: pointer; color: var(--muted); font-size: var(--type-control); }

.decision-card.is-done {
gap: 4px;
opacity: 1;
border-color: var(--line);
border-inline-start-color: var(--line-strong);
background: var(--surface);
}




.decision-card.is-done .decision-why,
.decision-card.is-done .decision-choices,
.decision-card.is-done .decision-note,
.decision-card.is-done .rule-source,
.decision-card.is-done .decision-prompt { display: none; }

.decision-answered { margin: 0; color: var(--teal); font: 650 var(--type-read)/1.4 var(--font-ui); }


.decision-card.is-pinned .decision-choices { display: none; }

.decision-card.is-chosen :is(.decision-choices, .decision-input, .decision-note, .decision-why) { display: none; }
.decision-answered.is-pending::after {
content: "";
display: inline-block;
width: 9px;
height: 9px;
margin-inline-start: 8px;
border-radius: 50%;
border: 2px solid var(--teal-line, var(--line));
border-top-color: var(--teal);
animation: trace-turn 0.9s linear infinite;
vertical-align: -1px;
}

.decision-context {
align-self: flex-start;
padding: 0;
border: 0;
background: none;
color: var(--teal);
font-size: var(--type-note);
cursor: pointer;
text-decoration: underline;
}



.confirm-dialog {
width: min(92vw, 30rem);
padding: 22px 22px 18px;
border: 1px solid var(--line);
border-radius: var(--r-l);
box-shadow: 0 24px 60px rgba(23, 39, 48, 0.24);
color: var(--ink);
}

.confirm-dialog::backdrop { background: rgba(23, 39, 48, 0.36); }
.confirm-dialog h2 { margin: 0 0 8px; font: 700 var(--type-heading)/1.35 var(--font-ui); }
.confirm-dialog p { margin: 0 0 12px; color: var(--ink-2); font-size: var(--type-read); line-height: 1.6; }
.confirm-dialog .upload-field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; font-size: var(--type-control); }
.dialog-error { padding: 8px 10px; border-radius: var(--r-s); background: var(--red-wash); color: var(--red-ink); }
.dialog-error[hidden] { display: none; }

.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.dialog-actions button {
min-height: 38px;
padding: 8px 16px;
border: 1px solid var(--line-strong);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: 650 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}


.choice-chip.is-quiet,
.rail-choice-chip.is-quiet { border-style: dashed; color: var(--muted); }


.new-analysis {
min-height: 34px;
padding: 0 12px;
border: 1px solid var(--teal);
border-radius: var(--r-s);
background: var(--surface);
color: var(--teal);
font: 650 var(--type-control)/1 var(--font-ui);
white-space: nowrap;
cursor: pointer;
}

.new-analysis:hover { background: var(--teal-wash); }
.run-switch b { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-ui); }



.run-switch.is-opening .run-switch-caret { font-size: 0; }
.run-switch.is-opening .run-switch-caret::before {
content: "";
display: inline-block;
width: 9px;
height: 9px;
border-radius: 50%;
border: 2px solid var(--teal-line, var(--line));
border-top-color: var(--teal);
animation: trace-turn 0.9s linear infinite;
vertical-align: -1px;
}



.runtime-banner.is-nudged { animation: runtime-nudged 1.2s ease-out; }
@keyframes runtime-nudged {
0%, 40% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 45%, transparent); }
100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
.runtime-banner.is-nudged { animation: none; outline: 2px solid var(--red); outline-offset: 2px; }
}
.runtime-banner {
display: flex;
align-items: center;
gap: 12px;
margin: 0;
padding-block: 8px;
padding-inline: 16px 10px;
border-bottom: 1px solid var(--line);
background: var(--wash);
color: var(--ink-2);
font-size: var(--type-read);
line-height: 1.5;
}
.runtime-banner-text { flex: 1; min-width: 0; }


@media (max-width: 520px) {
.runtime-banner { flex-wrap: wrap; row-gap: 6px; padding-block: 6px; }
.runtime-banner-text { flex-basis: 100%; }


.runtime-banner-text {
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-clamp: 2;
cursor: pointer;
}
.runtime-banner.is-open .runtime-banner-text { display: block; -webkit-line-clamp: unset; line-clamp: none; }


body:has(.composer-dock[data-asking="1"]) .runtime-banner:not(.is-open) .runtime-banner-text { -webkit-line-clamp: 1; line-clamp: 1; }
}
.runtime-banner-close {
flex: none;
min-height: 28px;
padding: 0 10px;
border: 1px solid currentColor;
border-radius: var(--r-pill);
background: transparent;
color: inherit;
font: 650 var(--type-control)/1 var(--font-ui);
opacity: 0.8;
cursor: pointer;
}
.runtime-banner-close:hover { opacity: 1; }

.runtime-banner-install {
flex: none;
min-height: 28px;
padding: 0 12px;
border: 1px solid var(--red-ink);
border-radius: var(--r-pill);
background: var(--red-ink);
color: var(--red-wash);
font: 650 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}
.runtime-banner-install:disabled { opacity: 0.6; cursor: progress; }
.runtime-banner-install[hidden] { display: none; }

.runtime-banner[data-tone="problem"] { background: var(--red-wash); color: var(--red-ink); }
.runtime-banner[hidden] { display: none; }


.assistant-notice {
box-sizing: border-box;
width: min(100%, 52rem);
margin: 0 auto 8px;
padding: 6px 10px;
border-inline-start: 3px solid var(--viz-moderate);
background: var(--amber-wash);
color: var(--amber-ink);
font-size: var(--type-note);
line-height: 1.5;
}
.assistant-notice[hidden] { display: none; }



.app[data-lang="zh"] :is(#run-headline, .stage-next-line, .plan-card h2, .decision-card h2, .upload-card h2) {
font-style: normal;
font-family: "PingFang SC", var(--font-ui);
letter-spacing: 0;
}



.rail-next-step {
display: grid;
gap: 6px;
margin: 0;
padding: 10px 12px;
border: 1px solid var(--line);
border-inline-start: 4px solid var(--faint);
border-radius: var(--r-m);
background: var(--surface);
}

.rail-next-step[hidden] { display: none; }
.rail-next-step[data-tone="attention"] { border-inline-start-color: var(--teal); background: var(--teal-wash); }
.rail-next-step[data-tone="problem"] { border-inline-start-color: var(--red); background: var(--red-wash); }
.rail-next-step b { font-size: var(--type-title); line-height: 1.4; }

.rail-next-step-go {
justify-self: start;
min-height: 32px;
padding: 6px 12px;
border: 1px solid var(--teal);
border-radius: var(--r-s);
font: 650 var(--type-read)/1 var(--font-ui);
cursor: pointer;
}


.conclusion-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 0;
}

.conclusion-actions[hidden] { display: none; }

.conclusion-actions button {
min-height: 40px;
padding: 8px 16px;
border: 1px solid var(--line-strong);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: 650 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}



@media (max-width: 720px) {
.next-step { padding: 12px; }
.next-step .run-actions { justify-content: flex-start; width: 100%; }
.decision-input { grid-template-columns: 1fr; }
.new-analysis { padding: 0 10px; }
}



@media (max-width: 520px) {
.next-step .run-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.next-step .run-actions::-webkit-scrollbar { display: none; }
.next-step .run-actions button { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
.decision-card, .next-step { transition: none; scroll-behavior: auto; }
}




.chat-page[data-mode="gate"] .run-board { max-height: 30vh; }
.next-step[data-kind="decide"] { padding: 10px 14px; }


.composer-dock {
display: flex;
flex-direction: column;
align-items: stretch;
}
.chat-page[data-mode="gate"] .composer-dock,
.chat-page[data-mode="running"] .composer-dock,
.chat-page[data-mode="failed"] .composer-dock { flex-wrap: nowrap; }


#change-input.is-primary { border-color: var(--teal); color: var(--surface); }



@media (max-width: 720px) {

.suite-sub { display: none; }
.chat-page[data-mode="gate"] .run-board,
.chat-page[data-mode="running"] .run-board,
.chat-page[data-mode="failed"] .run-board { max-height: 30vh; }
.run-split { display: none; }
.run-board.is-asked-open .run-split { display: grid; }
.next-step { margin-bottom: 6px; }
}


.run-row-more {
align-self: center;
width: 32px;
min-height: 32px;
border: 1px solid transparent;
border-radius: var(--r-s);
background: transparent;
color: var(--muted);
font: 700 var(--type-heading)/1 var(--font-ui);
cursor: pointer;
}

.run-row-more:hover { border-color: var(--line); background: var(--surface); color: var(--ink); }

.run-row-menu {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 2px 0 6px;
padding: 6px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
list-style: none;
}

.run-row-menu button {
min-height: 32px;
padding: 6px 12px;
border: 1px solid var(--line-strong);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: 650 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}

.run-row-menu button.is-danger { border-color: var(--red-line); color: var(--red-ink); }
.run-row-wrap.is-archived .run-row { opacity: 0.7; }

.run-list-archived {
align-self: center;
margin-top: 4px;
padding: 6px 8px;
border: 0;
background: none;
color: var(--teal);
font: 650 var(--type-note)/1.2 var(--font-ui);
text-decoration: underline;
cursor: pointer;
}

.run-list-archived[hidden] { display: none; }


.notify-toggle {
display: inline-block;
margin: 4px 0 0;
padding: 0;
border: 0;
background: none;
color: var(--teal);
font: 600 var(--type-control)/1.5 var(--font-ui);
text-align: start;
cursor: pointer;
}
.notify-toggle:hover:not(:disabled) { text-decoration: underline; }
.notify-toggle:disabled { color: var(--subtle); cursor: default; }
.notify-toggle[hidden] { display: none; }


.bubble.finding {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px 8px;
align-self: stretch;
max-width: none;
padding: 6px 10px;
border: 0;
border-inline-start: 3px solid var(--teal);
border-radius: 0;
border-start-end-radius: 8px;
border-end-end-radius: 8px;
background: var(--wash);
color: var(--ink);
font-size: var(--type-read);
line-height: 1.55;
}
.finding-mark { color: var(--teal); font-weight: 700; }
.finding-text { flex: 1 1 16rem; }
.finding-link {
padding: 0;
border: 0;
background: none;
color: var(--teal);
font: 650 var(--type-control)/1.5 var(--font-ui);
cursor: pointer;
}
.finding-link:hover { text-decoration: underline; }

.bubble.finding.is-alert { border-inline-start-color: var(--amber); }
.bubble.finding.is-alert .finding-mark { color: var(--amber-ink, var(--amber)); }

.bubble.finding.is-alert .finding-text { flex: 1 1 calc(100% - 2em); }
.bubble.finding.is-alert .finding-link { margin-inline-start: 1.2em; }
.finding-ask {
margin-block: 2px;
margin-inline: 1.2em 0;
padding: 3px 12px;
border: 1px solid var(--amber-line, var(--line));
border-radius: 999px;
background: var(--surface);
color: var(--ink);
font: 550 var(--type-note)/1.5 var(--font-ui);
text-align: start;
cursor: pointer;
}
.finding-ask:hover, .finding-ask:focus-visible { border-color: var(--amber); background: var(--amber-wash, var(--surface)); }


.bubble.finding.is-briefing .finding-text { flex: 1 1 calc(100% - 2em); }

.bubble.finding.is-briefing.is-under-answer:not(.is-open) .finding-text {
max-height: 4.8em;
overflow: hidden;
-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.bubble.finding.is-briefing.is-under-answer:not(.is-open) .finding-link { display: none; }
.bubble.finding.is-briefing:not(.is-under-answer) .briefing-more { display: none; }
.briefing-more {
margin-inline-start: 1.2em;
padding: 0;
border: 0;
background: none;
color: var(--teal-ink);
font: inherit;
font-size: var(--type-note);
cursor: pointer;
}
.briefing-more:hover { text-decoration: underline; }
.bubble.finding.is-briefing .finding-link { margin-inline-start: 1.2em; }
.finding-views { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; margin-inline-start: 1.2em; }
.finding-view {
min-height: 30px;
padding: 3px 12px;
border: 1px solid var(--teal-line, var(--line));
border-radius: 999px;
background: var(--surface);
color: var(--teal-ink, var(--teal));
font: 600 var(--type-note)/1.5 var(--font-ui);
cursor: pointer;
}
.finding-view:hover, .finding-view:focus-visible { border-color: var(--teal); background: var(--teal-wash, var(--surface)); }
.bubble.finding .reply-computed { flex: 1 1 100%; margin-inline-start: 1.2em; }




.bubble.finding.notice-card {
--notice: var(--blue);
--notice-ink: var(--blue-ink);
--notice-line: var(--blue-line);
--notice-wash: var(--blue-wash);
display: grid;
gap: 6px;
padding: 10px 12px;
border: 1px solid var(--notice-line);
border-inline-start: 3px solid var(--notice);
border-radius: 4px 10px 10px 4px;
background: var(--surface);
}
.bubble.finding.notice-card.is-caution { --notice: var(--amber); --notice-ink: var(--amber-ink); --notice-line: var(--amber-line); --notice-wash: var(--amber-wash); }
.bubble.finding.notice-card.is-problem { --notice: var(--red); --notice-ink: var(--red-ink); --notice-line: var(--red-line); --notice-wash: var(--red-wash); }
.notice-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.notice-badge {
flex: none;
padding: 0 8px;
border-radius: 999px;
background: var(--notice-wash);
color: var(--notice-ink);
font: 650 var(--type-meta)/1.7 var(--font-ui);
letter-spacing: 0.02em;
}
.notice-title { flex: 1 1 12rem; color: var(--ink); font: 650 var(--type-title)/1.4 var(--font-ui); }
.bubble.finding.notice-card .finding-text { margin: 0; color: var(--ink-2, var(--ink)); }
.notice-facts {
display: grid;
gap: 4px;
margin: 0;
padding: 8px 10px;
border-radius: 8px;
background: var(--notice-wash);
list-style: none;
}
.notice-facts li { display: grid; gap: 0; }
.notice-facts li > span:first-child { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.notice-facts .record-ground-tag { font-weight: 650; color: var(--notice-ink); }
.notice-how { color: var(--muted, var(--subtle)); font-size: var(--type-note); line-height: 1.45; }
.notice-so { margin: 0; color: var(--ink-2, var(--ink)); }
.notice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.bubble.finding.notice-card .finding-link,
.bubble.finding.notice-card .finding-ask { margin: 0; }
.bubble.finding.notice-card .finding-ask:hover,
.bubble.finding.notice-card .finding-ask:focus-visible { border-color: var(--notice); background: var(--notice-wash); }
.notice-act {
min-height: 30px;
padding: 3px 12px;
border: 1px solid var(--notice);
border-radius: 999px;
background: var(--notice-wash);
color: var(--notice-ink);
font: 650 var(--type-note)/1.5 var(--font-ui);
cursor: pointer;
}
.notice-act:hover:not(:disabled), .notice-act:focus-visible { background: var(--surface); }
.notice-act[aria-expanded="true"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--notice); }
.notice-act.is-done, .notice-act:disabled { border-color: var(--line); background: var(--surface-2); color: var(--subtle); cursor: default; }

.notice-ack {
min-height: 30px;
padding: 3px 12px;
border: 1px solid var(--line);
border-radius: 999px;
background: transparent;
color: var(--muted, var(--subtle));
font: 550 var(--type-note)/1.5 var(--font-ui);
cursor: pointer;
}
.notice-ack:hover:not(:disabled), .notice-ack:focus-visible {
border-color: var(--line-strong, var(--line));
background: var(--surface-2, var(--surface));
color: var(--ink-2, var(--ink));
}
.notice-ack:disabled { opacity: 0.65; cursor: default; }
.bubble.finding.notice-card.is-acked .notice-ack { display: none; }

.notice-auto { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0; color: var(--muted, var(--subtle)); font-size: var(--type-note); line-height: 1.45; }
.notice-auto b { color: var(--ink-2, var(--ink)); font-weight: 600; }


.bubble.finding.notice-card:is(.is-acked, .is-folded):not(.is-open) .finding-text,
.bubble.finding.notice-card:is(.is-acked, .is-folded):not(.is-open) .notice-facts,
.bubble.finding.notice-card:is(.is-acked, .is-folded):not(.is-open) .notice-actions,
.bubble.finding.notice-card:is(.is-acked, .is-folded):not(.is-open) .notice-confirm,
.bubble.finding.notice-card:is(.is-acked, .is-folded):not(.is-open) .set-preview { display: none; }
.bubble.finding.notice-card.is-folded:not(.is-open) { padding-block: 6px; }
.bubble.finding.notice-card:is(.is-acked, .is-folded):not(.is-open) .notice-head { flex-wrap: nowrap; min-width: 0; }
.bubble.finding.notice-card:is(.is-acked, .is-folded):not(.is-open) .notice-title {
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: var(--type-read);
}
.notice-key {
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: var(--muted, var(--subtle));
font-size: var(--type-note);
font-variant-numeric: tabular-nums;
}
.notice-key::before { content: "· "; }
.bubble.finding.notice-card.is-open .notice-key,
.bubble.finding.notice-card:not(.is-acked):not(.is-folded) .notice-key { display: none; }
.notice-actions > .is-extra { display: none; }
.notice-more {
min-height: 30px;
padding: 3px 8px;
border: 0;
background: none;
color: var(--notice-ink);
font: 600 var(--type-note)/1.5 var(--font-ui);
cursor: pointer;
}
.notice-more:hover, .notice-more:focus-visible { text-decoration: underline; }

.run-notices {
display: inline-block;
margin: 2px 0 0;
padding: 0;
border: 0;
background: none;
color: var(--amber-ink);
font: 600 var(--type-note)/1.5 var(--font-ui);
cursor: pointer;
}
.run-notices[hidden] { display: none; }
.run-notices::after { content: " ↓"; }
.run-notices:hover, .run-notices:focus-visible { text-decoration: underline; }
.bubble.finding.notice-card:is(.is-acked, .is-folded) .notice-head { cursor: pointer; }
.bubble.finding.notice-card:is(.is-acked, .is-folded) .notice-head::after {
content: "";
flex: none;
width: 0.4em;
height: 0.4em;
margin-inline-start: 2px;
border-inline-end: 1.5px solid currentColor;
border-bottom: 1.5px solid currentColor;
transform: rotate(45deg);
opacity: 0.65;
}
.bubble.finding.notice-card:is(.is-acked, .is-folded).is-open .notice-head::after {
transform: rotate(-135deg);
translate: 0 0.12em;
}
.notice-confirm {
display: grid;
gap: 8px;
padding: 10px 12px;
border: 1px dashed var(--notice);
border-radius: 8px;
background: var(--surface-2);
}
.notice-confirm p { margin: 0; color: var(--ink); line-height: 1.55; }
.notice-confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notice-confirm-actions button { min-height: 32px; }
.notice-done { margin: 0; color: var(--notice-ink); font: 600 var(--type-note)/1.5 var(--font-ui); }
.notice-error { margin: 0; color: var(--red-ink); font-size: var(--type-note); }
.next-ask { white-space: nowrap; }


.choice-chip.is-reply,
.rail-choice-chip.is-reply { border-color: var(--teal-line); background: var(--teal-wash); color: var(--teal-ink); }
.choice-chip.is-reply::before,
.rail-choice-chip.is-reply::before { content: "\201C"; margin-inline-end: 2px; color: var(--teal); }

.choice-chip.is-more::after { content: "▸"; margin-inline-start: 2px; }
[dir="rtl"] .choice-chip.is-more::after { content: "◂"; }
@media (max-width: 520px) {
.notice-actions > button { flex: 1 1 auto; }
.notice-confirm-actions button { flex: 1 1 100%; }
}
.bubble.finding.is-briefing .finding-ask { min-height: 30px; }

.inline-tree {
margin: 0;
padding: 10px 12px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
}
.inline-tree-canvas { max-height: 520px; overflow: auto; font-size: var(--type-read); color: var(--muted); }
.inline-tree figcaption { margin-top: 6px; color: var(--muted); font-size: var(--type-note); line-height: 1.5; }
.inline-tree-source { font-size: var(--type-meta); color: var(--ink-2); }


.inline-tree.is-compact .inline-tree-canvas {
max-height: 200px;
overflow: hidden;
-webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.inline-tree-grow { margin-top: var(--space-2); }
.inline-tree-explore { color: var(--teal); font-weight: 600; white-space: nowrap; text-decoration: none; }
.inline-tree-explore:hover { text-decoration: underline; }


.set-preview {
display: grid;
gap: 8px;
padding: 10px 12px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
}
.set-preview-head { margin: 0; color: var(--ink-2, var(--ink)); font-size: var(--type-note); font-variant-numeric: tabular-nums; }
.set-preview-tree { max-height: 380px; }
.set-preview-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); justify-self: start; margin: 0; font-size: var(--type-note); }

:is(.bubble, .reply-view, .rail-step).is-flash { box-shadow: 0 0 0 4px rgba(42, 130, 107, 0.22); }
.finding-view.is-open { border-color: var(--notice, var(--teal)); background: var(--notice-wash, var(--teal-wash)); }
.set-compare { display: grid; gap: 8px; }
.set-compare-lead, .set-compare-none { margin: 0; color: var(--muted); font-size: var(--type-note); }
.set-compare-table { width: 100%; border-collapse: collapse; font-size: var(--type-note); font-variant-numeric: tabular-nums; }
.set-compare-table caption { text-align: start; font-weight: 650; color: var(--ink); padding-bottom: 2px; }
.set-compare-table th, .set-compare-table td { padding-block: 2px; padding-inline: 0 6px; text-align: start; font-weight: 400; vertical-align: middle; }
.set-compare-table thead th { color: var(--muted); font-size: var(--type-meta); }
.set-compare-table tbody th { color: var(--ink-2, var(--ink)); max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-compare-table tfoot td { color: var(--muted); font-size: var(--type-meta); }
.set-compare-cell { width: 38%; white-space: nowrap; }
.set-compare-bar { display: inline-block; width: 5rem; height: 6px; margin-inline-end: 6px; border-radius: 3px; background: var(--line); vertical-align: middle; overflow: hidden; }
.set-compare-bar > span { display: block; height: 100%; background: var(--faint); }
.set-compare-cell.is-set .set-compare-bar > span { background: var(--viz-2); }
.set-compare-num { color: var(--ink-2, var(--ink)); }
.tree-view-svg { display: block; max-width: 100%; height: auto; }
.tree-branch { stroke: var(--ink-2); stroke-width: 1.2; }
.tree-tip { font: var(--type-meta) var(--font-ui); fill: var(--ink); }
.tree-support { stroke: var(--surface); stroke-width: 1; }
.tree-support.is-strong { fill: var(--teal); }
.tree-support.is-moderate { fill: var(--viz-moderate); }
.tree-support.is-weak { fill: var(--faint); }
.tree-scale { stroke: var(--ink-2); stroke-width: 1.5; }
.tree-scale-label { font: var(--type-meta) var(--font-ui); fill: var(--muted); }





.stage-head .conclusion-expert-link { min-height: 32px; margin-top: var(--space-1); color: var(--muted); font-size: var(--type-control); }
.stage-head .conclusion-expert-link:is(:hover, :focus-visible) { color: var(--teal-deep); }
.conclusion-expert-link[hidden] { display: none; }
body.is-expert .conclusion-expert-show,
body:not(.is-expert) .conclusion-expert-hide { display: none; }


@keyframes expert-revealed {
from { outline-color: color-mix(in srgb, var(--teal) 55%, transparent); }
to { outline-color: transparent; }
}
.is-revealed { outline: 1.5px solid transparent; outline-offset: 2px; animation: expert-revealed 1s ease-out; }
@media (prefers-reduced-motion: reduce) {
.is-revealed { outline: none; animation: none; }
}


.concl-answer { grid-column: 1 / -1; border-inline-start: 4px solid var(--teal); }
.concl-asked { margin: 0 0 4px; color: var(--muted); font-size: var(--type-read); }
.concl-headline { margin: 0 0 10px; font-size: var(--type-headline); line-height: 1.45; color: var(--ink); }

.concl-detail { margin: -2px 0 12px; color: var(--ink-2); font-size: var(--type-read); line-height: 1.65; }




.skel-bar {
display: block;
flex: none;
height: 12px;
border-radius: var(--r-xs);
background: linear-gradient(90deg, var(--surface-3) 0%, var(--wash) 45%, var(--surface-3) 90%) 0 0 / 200% 100%;
animation: skel-shimmer 1.4s ease-in-out infinite;
}
.skel-bar.is-block { border-radius: var(--r-s); }
.skel-bar.is-pill { border-radius: var(--r-pill); }
.skel-bar.is-dot { border-radius: 50%; }
@keyframes skel-shimmer { to { background-position: -200% 0; } }
.skel-stack { display: grid; gap: 8px; min-width: 0; }
.skel-row { display: flex; align-items: center; gap: 10px; }
.skel-row > .skel-bar:last-child { margin-inline-start: auto; }
.skel-card { display: grid; gap: 12px; pointer-events: none; }
.skel-figures { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.skel-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.skel-tile { padding: 12px; border: 1px solid var(--line-soft); border-radius: var(--r-s); }
.skel-entry { display: grid; grid-template-columns: 9px 1fr; gap: 12px; align-items: start; padding: 10px 0; list-style: none; }
.skel-entry > .skel-bar.is-dot { margin-top: 2px; }
.skel-list-row { padding: 10px 12px; list-style: none; }
.skel-tree { display: grid; gap: 9px; padding: 14px 4px; }
.skel-conversation { display: grid; gap: 12px; padding: 4px 0; }
.skel-bubble {
width: min(68%, 520px);
padding: 12px 14px;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface);
}
.skel-bubble.is-user { justify-self: end; width: min(32%, 240px); background: var(--teal-wash); }
@media (max-width: 720px) {
.skel-figures { grid-template-columns: 1fr; }
.skel-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.skel-bubble { width: 86%; }
.skel-bubble.is-user { width: 52%; }
}
@media (prefers-reduced-motion: reduce) {
.skel-bar { animation: none; }
}



.answer-teaser {
width: min(100%, 680px);
margin: 10px 0 14px;
padding: 16px 18px 14px;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-card);
}
.answer-teaser-headline { margin: 2px 0 10px; color: var(--ink); font: 700 var(--type-heading)/1.5 var(--font-ui); }
.answer-teaser .concl-reliability { margin-bottom: 0; }
.answer-teaser-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
gap: 8px;
margin: 12px 0 0;
}
.answer-teaser-stats > div { padding: 8px 10px; border-radius: var(--r-s); background: var(--wash); }
.answer-teaser-stats dt { color: var(--muted); font-size: var(--type-note); line-height: 1.4; }
.answer-teaser-stats dd { margin: 2px 0 0; color: var(--ink); font: 700 var(--type-title)/1.35 var(--font-ui); }

.concl-reliability { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 12px; margin-bottom: 10px; }
.concl-reliability-badge {
padding: 2px 10px;
border-radius: var(--r-pill);
background: var(--line-soft);
color: var(--teal-ink);
font-size: var(--type-note);
font-weight: 700;
}
.concl-reliability[data-level="moderate"] .concl-reliability-badge { background: var(--amber-wash); color: var(--amber-ink); }
.concl-reliability[data-level="weak"] .concl-reliability-badge { background: var(--red-wash); color: var(--red-ink); }
.concl-reliability[data-level="unknown"] .concl-reliability-badge { background: var(--surface-3); color: var(--muted); }
.concl-standing { margin: 0 0 14px; }
.concl-standing .concl-subtitle { margin: 0 0 8px; }
.concl-standing-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.concl-standing-row { flex-wrap: nowrap; margin: 0; padding: 8px 10px; border-radius: var(--r-s); background: var(--wash); }
.concl-standing-row .concl-reliability-badge { flex: none; }
.concl-standing-words { min-width: 0; }
.concl-standing-words b { display: block; color: var(--ink); font-weight: 650; }
.concl-standing-words p { margin: 2px 0 0; color: var(--ink-2); line-height: 1.5; }
.concl-reasons { flex: 1 1 18rem; margin: 0; padding-inline-start: 18px; color: var(--ink-2); font-size: var(--type-read); line-height: 1.55; }
.concl-subtitle { margin: 18px 0 8px; font-size: var(--type-read); color: var(--ink-2); }

.concl-reliability .concl-review-inline { margin: 0; padding: 2px 10px; font-size: var(--type-note); font-weight: 650; line-height: inherit; }

.concl-grade { padding: 2px 10px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2); font-size: var(--type-note); font-weight: 650; }
.concl-grade[data-grade="X"] { background: var(--amber-wash); color: var(--amber-ink); }
a.concl-grade { text-decoration: none; }
a.concl-grade:hover, a.concl-grade:focus-visible { text-decoration: underline; }
.concl-checked { padding: 2px 10px; border-radius: var(--r-pill); font-size: var(--type-note); font-weight: 650; }
.concl-checked.is-holds { background: var(--teal-wash); color: var(--teal-ink); }
.concl-checked.is-sensitive { background: var(--amber-wash); color: var(--amber-ink); }

.concl-trust { flex: 1 1 18rem; color: var(--ink-2); font-size: var(--type-read); line-height: 1.55; }
.concl-trust.is-warn { color: var(--amber-ink); }
.concl-trust.is-bad { color: var(--red-ink); font-weight: 650; }
.concl-trust-more { margin: -4px 0 10px; color: var(--muted); font-size: var(--type-note); }
.concl-trust-more > summary { cursor: pointer; width: fit-content; }
.concl-trust-more ul { margin: 4px 0 0; padding-inline-start: 18px; line-height: 1.5; }
.concl-trust-more li.is-bad { color: var(--red-ink); }
.concl-trust-more li.is-warn { color: var(--amber-ink); }
.concl-subtitle-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 18px 0 8px; }
.concl-subtitle-row .concl-subtitle { margin: 0; }
.concl-explain { font-size: var(--type-note); }

.concl-evidence:not(.is-explained) .concl-plain { display: none; }

.concl-evidence {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 10px;
margin: 0;
}


.concl-evidence > .concl-stat:has(.concl-support-plot:not([hidden])) { grid-column: 1 / -1; }
.concl-stat {
min-width: 0;
padding: 12px 14px;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface-2);
}
.concl-evidence dt { color: var(--muted); font-size: var(--type-note); }
.concl-evidence dd { margin: 4px 0 0; display: flex; flex-direction: column; gap: 4px; }
.concl-evidence dd > b {
color: var(--ink);
font-size: var(--type-headline);
font-weight: 650;
line-height: 1.25;
font-variant-numeric: tabular-nums;
}


.concl-unit { display: inline-block; color: var(--muted); font-size: var(--type-note); font-weight: 500; white-space: nowrap; }

.concl-range { color: var(--muted); font-size: var(--type-note); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.concl-plain { color: var(--muted); font-size: var(--type-read); line-height: 1.5; }


.concl-hero {
margin: 16px 0 4px;
padding: 16px 16px 12px;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface);
}
.concl-hero-grid {
display: grid;
grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
gap: 22px;
align-items: start;
}
.concl-hero.is-single .concl-hero-grid { grid-template-columns: minmax(0, 1fr); }
.concl-hero-panel header { margin-bottom: 6px; }
.concl-hero-panel h3 { margin: 0; color: var(--ink); font-size: var(--type-title); font-weight: 650; }
.concl-hero-panel header p { margin: 2px 0 0; color: var(--muted); font-size: var(--type-note); line-height: 1.45; }
.concl-hero-canvas { position: relative; min-height: 120px; overflow-x: auto; }
.concl-hero-canvas.is-loading {
min-height: var(--hero-hold, 260px);
border-radius: var(--r-s);
background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 45%, var(--surface-3) 90%) 0 0 / 200% 100%;
animation: concl-shimmer 1.4s ease-in-out infinite;
}
@keyframes concl-shimmer { to { background-position: -200% 0; } }
.concl-hero-canvas img { display: block; max-width: 100%; border-radius: var(--r-s); }

.concl-hero.is-selection .concl-hero-canvas img { width: 100%; min-width: 640px; height: auto; }
.concl-selection-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 10px; }
.concl-selection-files { color: var(--muted); font-size: var(--type-note); }
.concl-selection-files a { margin-inline-start: 8px; }
.concl-hero-legend {
display: flex;
flex-wrap: wrap;
gap: 6px 18px;
margin: 12px 0 0;
padding: 0;
list-style: none;
color: var(--ink-2);
font-size: var(--type-note);
}
.concl-hero-legend li { display: inline-flex; align-items: center; gap: 7px; }
.concl-hero-key { display: inline-block; flex: none; }
.concl-hero-key.is-band { width: 18px; height: 10px; border-radius: var(--r-2xs); background: rgba(42, 130, 107, 0.18); box-shadow: inset 0 0 0 1px rgba(42, 130, 107, 0.45); }
.concl-hero-key.is-outlier { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.concl-hero-key.is-fit { width: 18px; border-top: 2px dashed var(--ink-2); }
.concl-hero-key.is-dot { width: 10px; height: 10px; border-radius: 50%; }
.concl-hero-key[class*="is-support-"] { width: 9px; height: 9px; border-radius: 50%; }
.concl-hero-key.is-support-strong { background: var(--viz-strong); }
.concl-hero-key.is-support-moderate { background: var(--viz-moderate); }
.concl-hero-key.is-support-weak { background: var(--viz-weak); }
.concl-hero-key.is-wedge { width: 16px; height: 10px; background: var(--line-strong); clip-path: polygon(0 50%, 100% 0, 100% 100%); }

.concl-hero-filter {
display: inline-flex;
align-items: center;
gap: 7px;
min-height: 32px;
padding: 0 10px;
border: 1px solid transparent;
border-radius: var(--r-pill);
background: transparent;
color: var(--ink-2);
font: inherit;
cursor: pointer;
}
.concl-hero-filter small { color: var(--subtle); font-size: var(--type-meta); }
.concl-hero-filter:hover { border-color: var(--line-soft); background: var(--wash); }
.concl-hero-filter[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-ink); }

.concl-hero-reading {
margin: 0 0 12px;
color: var(--ink);
font-size: var(--type-title);
line-height: 1.6;
}
.concl-hero-modes {
display: inline-flex;
align-items: center;
gap: 4px;
margin: 0 0 12px;
padding: 3px;
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--wash);
font-size: var(--type-note);
}
.concl-hero-modes span { padding-block: 0; padding-inline: 8px 6px; color: var(--muted); }
.concl-hero-modes button {
min-height: 32px;
padding: 0 12px;
border: 0;
border-radius: var(--r-s);
background: transparent;
color: var(--muted);
font: 600 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}
.concl-hero-modes button[aria-pressed="true"] { background: var(--surface); color: var(--teal-ink); box-shadow: 0 1px 3px rgba(27, 68, 68, 0.1); }
.concl-hero-caption {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
gap: 6px 16px;
margin-top: 8px;
color: var(--muted);
font-size: var(--type-note);
line-height: 1.5;
}
.concl-hero-caption .concl-source { flex-basis: 100%; }
.concl-hero-links { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.concl-link {
padding: 6px 0;
border: 0;
background: none;
color: var(--teal-deep);
font: 650 var(--type-control)/1.3 var(--font-ui);
text-decoration: none;
cursor: pointer;
}
.concl-link:hover { text-decoration: underline; text-underline-offset: 3px; }



.concl-versions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
margin-bottom: 10px;
color: var(--muted);
font-size: var(--type-note);
}
.concl-versions-label { font-weight: 650; }
.concl-versions-sep { color: var(--faint); }
.concl-version-chip {
padding: 2px 8px;
border: 0;
border-radius: var(--r-pill);
background: var(--surface-2);
color: var(--teal-deep);
font: 650 var(--type-note)/1.3 var(--font-ui);
cursor: pointer;
}
button.concl-version-chip:hover { background: var(--wash); }
.concl-version-chip.is-current {
background: var(--wash);
color: var(--teal-ink);
cursor: default;
}


.tt-svg { display: block; max-width: none; overflow: visible; font-family: var(--font-ui); }
.tt-grid { stroke: var(--surface-3); stroke-width: 1; }
.tt-axis { fill: var(--subtle); font-size: var(--type-meta); }
.tt-axis-title { fill: var(--muted); font-size: var(--type-meta); }
.tt-band { fill: rgba(42, 130, 107, 0.1); }
.tt-ci { stroke: var(--teal); stroke-width: 1.5; }
.tt-root-label { fill: var(--teal-ink); font-size: var(--type-note); font-weight: 650; }
.tt-branch { stroke: var(--ink-2); stroke-width: 1.3; stroke-linecap: round; }
.tt-root { fill: var(--teal); stroke: var(--surface); stroke-width: 2; cursor: help; }
.tt-hit { fill: transparent; cursor: help; }
.tt-hit:hover { fill: rgba(42, 130, 107, 0.18); }
.tt-hit-row { fill: transparent; cursor: help; }
.tt-hit-row:hover { fill: rgba(42, 130, 107, 0.06); }


.tt-tip { fill: var(--teal); }
.tt-point { fill: var(--teal); fill-opacity: 0.72; cursor: help; }
.tt-label { fill: var(--ink-2); font-size: var(--type-meta); pointer-events: none; }
.tt-label.is-outlier { fill: var(--amber-ink); font-weight: 650; }
.tt-fit { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }

.tt-svg.is-dense .tt-branch { stroke-width: 0.7; }
.tt-svg.is-dense .tt-tip { fill-opacity: 0.85; }
.tt-svg.is-dense .tt-point { fill-opacity: 0.45; }
.tt-svg .tt-tip.is-outlier, .tt-svg .tt-point.is-outlier { fill: var(--amber); fill-opacity: 1; stroke: var(--surface); stroke-width: 1.2; }
.tt-svg.is-dense .tt-tip.is-outlier, .tt-svg.is-dense .tt-point.is-outlier { stroke-width: 0.6; }

.tt-svg .tt-c1, .concl-hero-key.tt-c1 { fill: var(--viz-1); background: var(--viz-1); }
.tt-svg .tt-c2, .concl-hero-key.tt-c2 { fill: var(--viz-2); background: var(--viz-2); }
.tt-svg .tt-c3, .concl-hero-key.tt-c3 { fill: var(--viz-3); background: var(--viz-3); }
.tt-svg .tt-cother, .concl-hero-key.tt-cother { fill: var(--faint); background: var(--faint); }
.tt-svg .tt-cnone { fill: var(--line-strong); }
.tt-svg .is-dim { fill: var(--line); fill-opacity: 0.55; }


.tt-wedge { fill: var(--line-strong); fill-opacity: 0.42; stroke: var(--ink-2); stroke-opacity: 0.35; stroke-width: 1; stroke-linejoin: round; cursor: pointer; }
.tt-wedge.is-flat { fill-opacity: 0.25; stroke-dasharray: 2 2; }
.tt-svg .tt-wedge.is-dim { fill: var(--line); fill-opacity: 0.35; stroke-opacity: 0.2; }

.tt-svg .tt-wedge:hover { fill-opacity: 0.7; stroke: var(--teal-ink); stroke-opacity: 0.8; }
.tt-strip { stroke: none; }
.tt-wedge-count { fill: var(--muted); font-size: var(--type-meta); font-variant-numeric: tabular-nums; pointer-events: none; }


.tt-svg .tt-tip.is-member, .tree-view-svg .tt-tip.is-member { fill: var(--viz-2); fill-opacity: 1; }
.tt-member-track { fill: var(--line); }
.tt-member-strip { fill: var(--viz-2); }
.tt-wedge-count.has-members { fill: var(--ink-2); font-weight: 650; }
.tt-wedge:focus-visible { outline: none; stroke: var(--teal); stroke-width: 2; stroke-opacity: 1; }
.tt-point:hover { fill: var(--teal-ink); fill-opacity: 1; }


.tt-stack { position: relative; }
.tt-stack > .tt-canvas,
.tt-stack > .tt-front { position: absolute; top: 0; left: 0; }
.tt-stack > .tt-canvas { pointer-events: none; }
.tt-front .tt-hover-node { fill: rgba(42, 130, 107, 0.18); pointer-events: none; }
.tt-front .tt-hover-row { fill: rgba(42, 130, 107, 0.06); pointer-events: none; }


.tt-link { pointer-events: none; }

.seq-ref {
display: inline;
padding: 0 2px;
border: 0;
border-radius: 3px;
background: none;
color: var(--teal-deep);
font: inherit;
text-decoration: underline dotted;
text-underline-offset: 3px;
cursor: pointer;
}
.seq-ref:hover { background: var(--teal-wash); text-decoration-style: solid; }
.seq-ref:focus-visible, .seq-ref-all:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.seq-ref-all {
margin-top: 6px;
padding: 0;
border: 0;
background: none;
color: var(--teal);
font: 650 var(--type-note)/1.4 var(--font-ui);
text-decoration: underline;
text-underline-offset: 3px;
cursor: pointer;
}


.qc-pick-sheet {
position: sticky;
bottom: 16px;
z-index: 5;
width: min(640px, calc(100% - 2 * var(--page-gutter, 24px)));
margin: 12px auto 16px;
padding-block: 12px 14px;
padding-inline: 16px 44px;
border: 1px solid var(--teal-line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: 0 10px 28px rgba(22, 50, 58, 0.14);
}
.qc-pick-sheet[hidden] { display: none; }
.qc-pick-sheet[aria-busy="true"] .qc-pick-head b::after { content: " …"; }
.qc-pick-sheet p { margin: 0; }
.qc-pick-head { color: var(--ink); font-size: var(--type-title); }
.qc-pick-head b { font-weight: 650; }
.qc-pick-line { margin-top: 3px; color: var(--ink-2); font-size: var(--type-note); line-height: 1.5; }
.qc-pick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.qc-pick-close {
position: absolute; top: 6px; inset-inline-end: 8px; width: 30px; height: 30px; border: 0; border-radius: var(--r-s);
background: none; color: var(--muted); font: 400 var(--type-heading)/1 var(--font-ui); cursor: pointer;
}
.qc-pick-close:hover { background: var(--surface-2); color: var(--ink); }

.concl-hero-pick {
position: relative;
margin: 12px 0 2px;
padding-block: 10px 12px;
padding-inline: 14px 44px;
border: 1px solid var(--teal-line);
border-radius: var(--r-m);
background: var(--teal-wash);
}
.concl-hero-pick[hidden] { display: none; }
.concl-hero-pick p { margin: 0; }
.concl-hero-pick-head b { color: var(--ink); font-size: var(--type-title); font-weight: 650; }
.concl-hero-pick-facts { margin-top: 2px; color: var(--ink-2); font-size: var(--type-note); line-height: 1.5; }
.concl-hero-pick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; }
.concl-hero-pick-close {
position: absolute;
top: 6px;
inset-inline-end: 8px;
width: 30px;
height: 30px;
border: 0;
border-radius: var(--r-s);
background: none;
color: var(--muted);
font: 400 var(--type-heading)/1 var(--font-ui);
cursor: pointer;
}
.concl-hero-pick-close:hover { background: var(--surface); color: var(--ink); }
.concl-hero-pick-close:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.tt-link-ring { fill: none; stroke-width: 1.6; }
.tt-link-ring.is-hover { stroke: var(--ink); stroke-opacity: 0.85; }
.tt-link-ring.is-pick { stroke: var(--teal-deep); stroke-width: 2.2; }
.tt-link-band.is-hover { fill: var(--ink); fill-opacity: 0.05; }
.tt-link-band.is-pick { fill: var(--teal); fill-opacity: 0.1; stroke: var(--teal); stroke-opacity: 0.55; stroke-width: 1; }

.tt-link-band.is-focus { fill: var(--ink); fill-opacity: 0.045; stroke: var(--muted); stroke-opacity: 0.7; stroke-width: 1; stroke-dasharray: 4 3; }



.is-emphasis .tt-link-band.is-focus { display: none; }
.is-emphasis .is-muted { opacity: 0.28; }
.tt-emphasis-band { fill: var(--tt-emphasis, var(--blue-ink)); fill-opacity: 0.07; stroke: var(--tt-emphasis, var(--blue-ink)); stroke-width: 1.4; }
.tt-emphasis-label { fill: var(--tt-emphasis, var(--blue-ink)); font-size: var(--type-note); font-weight: 650; }
.tt-tooltip {
position: absolute;
z-index: 3;
max-width: min(320px, 90%);
padding: 6px 9px;
border-radius: var(--r-s);
background: var(--ink);
color: var(--surface);
font-size: var(--type-note);
line-height: 1.4;
pointer-events: none;
box-shadow: 0 6px 18px rgba(23, 39, 48, 0.18);
}
.concl-source { font-size: var(--type-meta); color: var(--ink-2); min-width: 0; }

.concl-source .concl-exact, .concl-source .concl-path { display: block; overflow-wrap: anywhere; }
.concl-source .concl-path { color: var(--muted); }



body:not(.is-expert) :is(.review-badge.is-none, .review-badge.is-running) { display: none !important; }
body:not(.is-expert) .concl-reasons > li:nth-child(n + 2) { display: none; }




body:not(.is-expert) :is(.concl-link.is-source, .concl-next-intro, .concl-next .principle-provenance, .next-unavailable) { display: none !important; }
body:not(.is-expert) .concl-next:not(.is-all) .next-list > .next-row:nth-child(n + 3) { display: none; }
body.is-expert .next-more { display: none !important; }
.next-more { margin-top: 6px; min-height: 28px; }
.concl-validation { margin: 8px 0; padding-inline-start: 18px; display: grid; gap: 6px; }
.concl-validation li { line-height: var(--leading); }
.concl-validation-note { display: block; color: var(--muted); font-size: var(--type-note); }
.concl-caveats p { margin: 0 0 4px; color: var(--muted); font-size: var(--type-read); line-height: var(--leading); }

.concl-compare { grid-column: 1 / -1; }

.concl-trace { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 2px; font-size: var(--type-meta); }

.concl-trace .concl-link { min-height: 30px; box-sizing: border-box; }
.concl-trace[hidden] { display: none; }

.concl-robust { grid-column: 1 / -1; }
.concl-robust-verdict { margin: 0 0 12px; color: var(--ink-2); font-size: var(--type-read); }
.concl-robust-badge { display: inline-block; margin-inline-end: 6px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2, var(--wash)); color: var(--ink); font-size: var(--type-note); font-weight: 650; }
.concl-robust[data-verdict="holds"] .concl-robust-badge { background: var(--teal-wash); color: var(--teal-ink); }
.concl-robust[data-verdict="sensitive"] .concl-robust-badge { background: var(--amber-wash, var(--wash)); color: var(--amber-ink); }
.concl-robust-plot { display: grid; gap: 6px; }
.concl-robust-row { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr) minmax(0, 9em); align-items: center; gap: 12px; font-size: var(--type-note); }
.concl-robust-label { color: var(--ink-2); text-align: start; }
.concl-robust-row.is-main .concl-robust-label { color: var(--ink); font-weight: 650; }
.concl-robust-track { position: relative; height: 18px; border-bottom: 1px solid var(--line); }
.concl-robust-band { position: absolute; top: 0; bottom: 0; background: var(--teal-wash); }
.concl-robust-ci { position: absolute; top: 8px; height: 2px; background: var(--ink-2); opacity: 0.55; }
.concl-robust-dot { position: absolute; top: 4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--teal); border: 2px solid var(--surface); box-sizing: border-box; }
.concl-robust-row.is-main .concl-robust-dot { background: var(--ink); }
.concl-robust-row.is-moved .concl-robust-dot { background: var(--surface); border-color: var(--amber); }
.concl-robust-value { color: var(--muted); font-variant-numeric: tabular-nums; }
.concl-robust-row.is-moved .concl-robust-value { color: var(--amber-ink); font-weight: 600; }
.concl-robust-axis { position: relative; height: 16px; margin-inline-start: calc(min(15em, 30%) + 12px); margin-inline-end: calc(9em + 12px); color: var(--subtle); font-size: var(--type-meta); }
.concl-robust-axis span { position: absolute; transform: translateX(-50%); }
.concl-robust-legend { margin: 6px 0 0; color: var(--muted); font-size: var(--type-meta); }
.concl-robust-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: var(--type-note); }
.concl-robust-list li { display: grid; grid-template-columns: 1.2em minmax(0, 15em) minmax(0, 1fr); gap: 8px; align-items: baseline; }
.concl-robust-mark { color: var(--teal); font-weight: 700; }
.concl-robust-list .is-moved .concl-robust-mark, .concl-robust-list .is-moved .concl-robust-note { color: var(--amber-ink); }
.concl-robust-note { color: var(--muted); }
.concl-robust-missing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: var(--type-note); }
@media (max-width: 720px) {
.concl-robust-row { grid-template-columns: minmax(0, 1fr) minmax(0, 7em); }
.concl-robust-track { grid-column: 1 / -1; grid-row: 2; }
.concl-robust-axis { margin-inline-start: 0; margin-inline-end: 0; }
}
.concl-compare-table { width: 100%; border-collapse: collapse; font-size: var(--type-read); }
.concl-compare-table th, .concl-compare-table td { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: start; }
.concl-compare-table tr.is-changed td { background: var(--amber-wash); font-weight: 600; }
.concl-compare-summary { margin: 8px 0 0; font-size: var(--type-read); color: var(--ink); }

.concl-followups { grid-column: 1 / -1; }



.next-list { display: grid; margin-top: 4px; border-top: 1px solid var(--line-soft); }
.next-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.next-row:last-child { border-bottom: 0; }
.next-row-text { display: grid; gap: 3px; min-width: 0; }
.next-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.next-row-head b { color: var(--ink); font-weight: 650; }
.next-row-text p { margin: 0; color: var(--muted); font-size: var(--type-read); line-height: 1.5; }
.next-row-text .addon-reason { color: var(--subtle); font-size: var(--type-note); }
.next-row-action { flex: none; display: flex; align-items: center; min-height: 32px; }
.next-row-action:empty { display: none; }
.next-row-action button { min-height: 32px; }
.next-row-more summary { width: fit-content; color: var(--subtle); font-size: var(--type-control); cursor: pointer; }
.next-row-more summary:hover { color: var(--teal-ink); }
.next-row-more p { margin-top: 4px; }
.next-tag { padding: 1px 8px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--muted); font-size: var(--type-meta); font-weight: 600; }
.addon-badge { padding: 1px 8px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--muted); font-size: var(--type-meta); font-weight: 650; }
.next-row[data-state="running"] .addon-badge { background: var(--teal-wash); color: var(--teal-ink); }
.next-row[data-state="done"] .addon-badge { background: var(--teal-wash); color: var(--teal-deep); }
.next-row[data-state="failed"] .addon-badge { background: var(--amber-wash); color: var(--amber-ink); }
.next-row:is([data-state="unavailable"], [data-state="not_applicable"]) .next-row-head b { color: var(--muted); }

.next-unavailable { border-top: 1px solid var(--line-soft); }
.next-unavailable > summary { width: fit-content; padding: 10px 0; color: var(--muted); font-size: var(--type-control); cursor: pointer; }
.next-unavailable > summary:hover { color: var(--teal-ink); }
.next-unavailable > .next-list { margin-top: 0; }
.concl-next .principle-provenance { margin: 10px 0 0; color: var(--subtle); font-size: var(--type-meta); }
@media (max-width: 640px) {
.next-row { flex-direction: column; align-items: stretch; }
}

.concl-followup { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.concl-followup:last-of-type { border-bottom: 0; }
.concl-followup p { margin: 2px 0 0; color: var(--muted); font-size: var(--type-note); line-height: 1.5; }
.concl-followup button {
flex: none;
padding: 6px 12px;
border: 1px solid var(--teal);
border-radius: var(--r-s);
background: var(--surface);
color: var(--teal-ink);
font: 650 var(--type-control)/1.3 var(--font-ui);
cursor: pointer;
}
.concl-followup button:hover:not(:disabled) { background: var(--line-soft); }

.expert-details { margin-top: 10px; }
.expert-details > summary { cursor: pointer; color: var(--teal); font-size: var(--type-control); font-weight: 650; }
.tunables-form { display: grid; gap: 10px; margin-top: 8px; }
.tunable { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 2px 10px; align-items: center; font-size: var(--type-read); }
.tunable-key { grid-column: 1; font-size: var(--type-meta); color: var(--muted); overflow-wrap: anywhere; }
.tunable input, .tunable select { grid-column: 2; grid-row: 1 / span 2; padding: 5px 8px; border: 1px solid var(--line); border-radius: var(--r-xs); font: inherit; }
.tunable small { grid-column: 1 / -1; color: var(--muted); font-size: var(--type-note); }
.tunables-error { margin: 0; color: var(--red-ink); font-size: var(--type-read); }
.tunables-form button[type="submit"] { justify-self: start; }
.concl-command { padding: 8px 10px; border-radius: var(--r-xs); background: var(--surface-3); font-size: var(--type-note); white-space: pre-wrap; word-break: break-all; }
.conclusion-cards > .expert-details { grid-column: 1 / -1; }
.tunables-form button[type="submit"] {
padding: 7px 14px;
border: 0;
border-radius: var(--r-s);
background: var(--teal);
color: var(--surface);
font: 650 var(--type-control)/1.3 var(--font-ui);
cursor: pointer;
}
.tunables-form button[type="submit"]:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 900px) {
.concl-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 640px) {


.conclusion-body { padding-bottom: 24px; }
.concl-card { padding: 14px; }
.concl-evidence { --tile-min: 140px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.concl-stat { padding: 10px 11px; }
.concl-evidence dd > b { font-size: var(--type-heading); }
.concl-hero { padding: 12px 10px 10px; }

.concl-fold > summary { padding-inline-start: 14px; }
.concl-fold > :not(summary) { margin-inline-start: 14px; margin-inline-end: 14px; }
.concl-followup { flex-direction: column; align-items: stretch; }
.tunable { grid-template-columns: 1fr; }
.tunable input, .tunable select { grid-column: 1; grid-row: auto; }
}
.concl-preliminary { margin-inline-start: 8px; padding: 1px 8px; border-radius: var(--r-pill); background: var(--amber-wash); color: var(--amber-ink); font-size: var(--type-meta); font-weight: 700; }
@media (max-width: 640px) {


.inline-tree-canvas .tree-view-svg,
.concl-hero-canvas .tree-view-svg { max-width: none; }
}
.concl-say { margin: 8px 0 0; }






.plan-autopilot {
display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px;
margin: 12px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
min-width: 0; font-size: var(--type-control);
}
.plan-autopilot > legend { float: left; grid-column: 1 / -1; margin-bottom: 2px; padding: 0; color: var(--ink); font-weight: 650; }
.plan-autopilot-option { display: contents; }
.plan-autopilot-option > b {
grid-row: 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
border: 1px solid var(--line-soft); border-radius: var(--r-pill); background: var(--surface);
color: var(--ink-2); font-weight: 600; cursor: pointer;
}
.plan-autopilot-option:has(input:checked) > b { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-ink); }
.plan-autopilot-option:has(input:focus-visible) > b { outline: 2px solid var(--teal); outline-offset: 2px; }
.plan-autopilot-option:has(input:disabled) > b { cursor: default; }
@media (hover: hover) {
.plan-autopilot-option:not(:has(input:disabled)) > b:hover { border-color: var(--teal-line); }
}
.plan-autopilot input { margin: 0; accent-color: var(--teal); }
.plan-autopilot-option > small { display: none; }
.plan-autopilot-option:has(input:checked) > small { display: block; grid-row: 3; grid-column: 1 / -1; }
.plan-autopilot small { color: var(--muted); font-size: var(--type-note); line-height: 1.5; }
.decision-stop-reason {
margin: 0 0 8px;
padding: 6px 10px;
border-inline-start: 3px solid var(--viz-moderate);
background: var(--amber-wash);
color: var(--amber-ink);
font-size: var(--type-read);
line-height: 1.5;
}
.notify-toggle:not([hidden]) + .notify-toggle { margin-inline-start: 14px; }






.app {
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
}
.product-header { padding-top: env(safe-area-inset-top); }

.files-drawer, .record-drawer {
padding-right: env(safe-area-inset-right);
padding-bottom: env(safe-area-inset-bottom);
}
[dir="rtl"] :is(.files-drawer, .record-drawer) {
padding-right: 0;
padding-left: env(safe-area-inset-left);
}
body[data-page="chat"][data-rail-peek="open"] .assistant-rail {
padding-right: env(safe-area-inset-right);
padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 1100px) {
.chat-page .inspector {
padding-right: calc(12px + env(safe-area-inset-right));
padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.assistant-rail {
padding-right: env(safe-area-inset-right);
padding-bottom: env(safe-area-inset-bottom);
}
}






@media (pointer: coarse) {
:is(.files-open, .record-open, .rail-drawer, .inspector-toggle, .new-analysis, .run-switch,
.account-button, .demo-pill button, .file-action, .files-close) { position: relative; }
:is(.files-open, .record-open, .rail-drawer, .inspector-toggle, .new-analysis, .run-switch,
.account-button, .demo-pill button, .file-action, .files-close)::after {
content: "";
position: absolute;
inset: min(0px, (100% - 44px) / 2);
}


.top-nav.is-wide > a { min-height: 44px; }
.run-row-more { width: 44px; min-height: 44px; }
.run-row-menu button,
.signup-row button,
.account-email { min-height: 44px; }

.feedback-kind,
.feedback-shot-actions .btn-secondary,
.feedback-check { min-height: 44px; }
}


.library-entry {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 14px;
width: min(100%, 30rem);
min-height: 64px;
margin: 14px auto 0;
padding: 12px 16px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
color: var(--ink);
text-align: start;
cursor: pointer;
box-shadow: var(--shadow-1);
transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.library-entry:hover { border-color: var(--teal); box-shadow: 0 8px 22px -12px rgba(23, 60, 52, 0.35); transform: translateY(-1px); }


.library-preview-backdrop {
position: fixed;
inset: 0;
z-index: 62;
background: rgba(23, 39, 48, 0.34);
}
.library-preview-backdrop[hidden] { display: none; }
.library-preview {
position: fixed;
inset-block: 0;
inset-inline-end: 0;
z-index: 63;


display: flex;
flex-direction: column;
gap: var(--space-2);
width: min(820px, 100vw);
padding: var(--space-3) var(--space-4);
background: var(--surface);
box-shadow: 0 30px 80px -24px rgba(23, 39, 48, 0.45);
}
.library-preview[hidden] { display: none; }

.library-question { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-inline: var(--space-4); }
.library-question input { flex: 1 1 16rem; min-height: 36px; }
.library-question-said { flex-basis: 100%; }
.library-question-said:empty { display: none; }
.library-preview-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.library-preview-head h2 { margin: 0; font-size: var(--type-title); }
.library-preview-name { margin: 0; font-size: var(--type-title); }
.library-preview-facts, .library-preview-use { margin: var(--space-1) 0 0; color: var(--ink-2); }
.library-preview-link { display: inline-block; margin-block-start: var(--space-1); }
.library-preview > * { flex: none; }
.library-preview > .library-preview-tree { flex: 1 1 0; }
.library-preview-tree { position: relative; min-height: 360px; overflow: hidden; }
.library-preview-said { margin: 0; color: var(--ink-2); }
.library-preview-said:empty { display: none; }
.library-preview-placed { margin: 0; font-weight: 600; color: var(--ink); }
.library-preview-placed:empty { display: none; }

.placement-offer { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-block-start: var(--space-2); }
.placement-offer[hidden] { display: none; }
.placement-offer p { margin: 0; flex-basis: 100%; }
.placement-global { margin-block-start: var(--space-2); }
.library-preview-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.library {
display: flex;
flex-direction: column;
margin-block-start: var(--space-6);
border: 1px solid var(--line-soft);
border-radius: var(--r-l);
background: var(--surface);
scroll-margin-block-start: var(--space-3);
}
.library-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
padding: 20px 22px 10px;
}
.library-head h2 { margin: 0; color: var(--ink); font-size: var(--type-headline); font-weight: 700; }
.library-lede { max-width: min(100%, 780px); margin: 6px 0 0; color: var(--muted); font-size: var(--type-read); line-height: 1.55; }
.library-tools { display: flex; flex-direction: column; gap: 10px; padding: 4px 22px 10px; }
.library-search {
display: flex;
align-items: center;
gap: 8px;
min-height: 46px;
padding: 0 14px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface-2);
color: var(--subtle);
}
.library-search:focus-within { border-color: var(--teal); box-shadow: var(--focus-ring); background: var(--surface); }
.library-search input {
flex: 1;
min-width: 0;
height: 44px;
border: 0;
outline: 0;
background: transparent;
color: var(--ink);
font: var(--type-title)/1.2 var(--font-ui);
}
.library-families {
display: flex;
gap: 6px;
overflow-x: auto;
padding-bottom: 2px;
scrollbar-width: thin;
}
.library-chip {
display: inline-flex;
align-items: center;
gap: 6px;
flex: none;
min-height: 34px;
padding: 0 12px;
border: 1px solid var(--line-soft);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--ink-2);
font: 600 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}
.library-chip small { color: var(--subtle); font-size: var(--type-meta); font-weight: 600; }
.library-chip:hover { border-color: var(--teal); }
.library-chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-ink); }
.library-chip[aria-pressed="true"] small { color: var(--teal); }
.library-status { margin: 0; padding: 0 22px 8px; color: var(--muted); font-size: var(--type-note); }

.library-reco { margin: 0 22px 10px; padding: 12px 14px; border-radius: var(--r-m); border: 1px solid var(--teal-line); background: var(--teal-wash); }
.library-reco[hidden] { display: none; }
.library-reco.is-narrow, .library-reco.is-none { border-color: var(--line-soft); background: var(--surface-2); }
.library-reco-line { margin: 0; color: var(--ink); font-size: var(--type-read); line-height: 1.5; }
.library-reco-lead { color: var(--teal-ink); font-weight: 700; }
.library-reco-who { font-weight: 650; }
.library-reco-why { color: var(--ink-2); }
.library-reco.is-narrow .library-reco-line, .library-reco.is-none .library-reco-line { color: var(--muted); }
.library-reco-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.library-reco-open { min-height: 36px; padding: 0 16px; border: 0; border-radius: var(--r-s); background: var(--teal); color: var(--surface); font: 650 var(--type-note)/1 var(--font-ui); cursor: pointer; }
.library-reco-open:hover:not(:disabled) { background: var(--teal-deep); }
.library-reco-others { color: var(--subtle); font-size: var(--type-note); }
.library-list {
display: grid;
flex: none;
grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
align-content: start;
gap: 12px;
margin: 0;
padding: 4px 22px 18px;
list-style: none;
}
.library-card {
display: flex;
flex-direction: column;
gap: 6px;
padding: 14px 16px;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface-2);
}
.library-card:hover { border-color: var(--teal-line); }
.library-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.library-family { color: var(--teal-deep); font-size: var(--type-note); font-weight: 700; }
.library-path { overflow: hidden; color: var(--subtle); font-size: var(--type-meta); text-overflow: ellipsis; white-space: nowrap; }
.library-card h3 { margin: 0; color: var(--ink); font-size: var(--type-title); font-weight: 650; line-height: 1.35; }
.library-facts { margin: 0; color: var(--ink-2); font-size: var(--type-read); font-variant-numeric: tabular-nums; }
.library-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.library-badge { padding: 2px 8px; border-radius: var(--r-pill); font-size: var(--type-meta); font-weight: 650; }
.library-badge.is-time { background: var(--line-soft); color: var(--teal-ink); }
.library-badge.is-plain { background: var(--surface-3); color: var(--muted); }
.library-badge.is-rebuild { background: var(--blue-wash); color: var(--blue-ink); }
.library-badge.is-view { background: var(--amber-wash); color: var(--amber-ink); }
.library-badge.is-recomb { background: var(--red-wash); color: var(--red-ink); }
.library-badge.is-local { background: var(--teal-wash); color: var(--teal-ink); }

.library-badge.is-locked { background: var(--amber-wash); color: var(--amber-ink); }

.library-badge.is-ready { background: var(--teal-wash); color: var(--teal-ink); }

.library-card h3 .library-title-name { display: block; margin-top: 2px; color: var(--muted); font-size: var(--type-note); font-weight: 500; }

.library-external { display: inline-flex; align-items: center; text-decoration: none; }
.library-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.library-actions .library-open, .library-actions .library-preview-open, .library-actions .library-external { margin-top: 0; }
.concl-figure-review .figure-review-actions { margin-top: 12px; margin-bottom: 4px; }
.concl-figure-review .figure-review-error { color: var(--red); }
.concl-figure-review .figure-review-gallery { margin-top: 10px; }
.concl-recombination .recomb-list { margin: 8px 0 0; padding-inline-start: 18px; }
.concl-recombination .recomb-list li { margin: 3px 0; color: var(--subtle); font-size: var(--type-note); line-height: 1.5; }
.concl-recombination .recomb-actions { margin-top: 12px; }
.concl-recombination .recomb-error { color: var(--red); }
.concl-recombination .principle-provenance { color: var(--muted); font-size: var(--type-meta); }


.library-note, .library-use {
display: -webkit-box;
margin: 0;
overflow: hidden;
font-size: var(--type-note);
line-height: 1.45;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-clamp: 2;
}
.library-note { color: var(--muted); }
.library-use { color: var(--ink-2); }
.library-source { margin: 0; color: var(--subtle); font-size: var(--type-note); line-height: 1.45; }


.library-chooser { display: flex; flex-direction: column; gap: 8px; }

.library-chooser-toggle { display: none; }
.library-choice-row { display: flex; flex-direction: column; gap: 5px; }
.library-choice-row.is-sub { padding-inline-start: 14px; border-inline-start: 2px solid var(--teal-line); }
.library-choice-label { margin: 0; color: var(--ink-2); font-size: var(--type-control); font-weight: 650; }
.library-choice-label span { color: var(--subtle); font-weight: 400; }
.library-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.library-choice {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 1px;
max-width: 250px;
padding: 6px 11px;
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface-2);
color: var(--ink);
font: 600 var(--type-note)/1.3 var(--font-ui);
text-align: start;
cursor: pointer;
transition: border-color 0.15s ease, background-color 0.15s ease;
}
.library-choice small { color: var(--subtle); font-size: var(--type-meta); font-weight: 400; line-height: 1.35; }
.library-choice:hover { border-color: var(--teal); }
.library-choice[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-ink); }
.library-choice[aria-pressed="true"] small { color: var(--teal-ink); }
.library-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; color: var(--subtle); font-size: var(--type-meta); }
.library-legend .library-pill { background: none; padding: 0; }
.library-clear { margin-inline-start: auto; font-size: var(--type-note); }
.library-more { align-self: center; font-size: var(--type-note); }

.library-region { color: var(--ink); font-weight: 650; }
.library-pills { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.library-pill {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 1px 7px;
border-radius: var(--r-pill);
font-size: var(--type-meta);
font-weight: 600;
}
.library-pill-mark { font-weight: 700; }
.library-pill.is-now { background: var(--teal-wash); color: var(--teal-ink); }
.library-pill.is-rerun { background: var(--blue-wash); color: var(--blue-ink); }
.library-pill.is-no { background: var(--surface-3); color: var(--subtle); text-decoration: line-through; text-decoration-color: var(--line); }
.library-pill.is-no .library-pill-mark { text-decoration: none; }
.library-caution { margin: 0; color: var(--amber-ink); font-size: var(--type-note); line-height: 1.45; }
.library-verdict { display: flex; flex-direction: column; gap: 2px; padding: 6px 9px; border-radius: var(--r-s); background: var(--surface); font-size: var(--type-note); line-height: 1.45; }
.library-verdict p { margin: 0; }
.library-verdict .is-good strong { color: var(--teal-ink); }
.library-verdict .is-bad strong { color: var(--red-ink); }
.library-verdict.is-fit { box-shadow: inset 3px 0 0 var(--teal); }
.library-verdict.is-unfit { box-shadow: inset 3px 0 0 var(--line); }

.library-card.is-unfit { opacity: 0.62; }
.library-card.is-unfit:hover, .library-card.is-unfit:focus-within { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .library-choice { transition: none; } }

.library-external, .library-preview-open, .library-open {
align-self: flex-start;
min-height: 40px;
margin-top: auto;
padding: 0 18px;
border: 0;
border-radius: var(--r-s);
background: var(--teal);
color: var(--surface);
font: 650 var(--type-read)/1 var(--font-ui);
cursor: pointer;
}
.library-open:hover:not(:disabled), .library-preview-open:hover:not(:disabled) { background: var(--teal-deep); }
.library-open:disabled, .library-preview-open:disabled { opacity: 0.7; cursor: progress; }
.library-foot { margin: 0; padding: 10px 22px 14px; border-top: 1px solid var(--surface-3); color: var(--subtle); font-size: var(--type-note); }



.concl-source-note {
margin: 0 0 14px;
padding: 0 0 12px;
border-bottom: 1px solid var(--line-soft);
color: var(--muted);
font-size: var(--type-note);
line-height: 1.55;
}
.concl-source-note p { margin: 0; }
.concl-source-note .concl-source-facts { margin-bottom: 6px; color: var(--ink-2); }

.concl-source-note a { padding: 7px 0; color: var(--teal-deep); font-weight: 650; white-space: nowrap; }


.concl-fold { padding: 0; }
.concl-fold > summary {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 2px 14px;
padding-block: 14px;
padding-inline: 18px 44px;
position: relative;
list-style: none;
cursor: pointer;
border-radius: inherit;
}
.concl-fold > summary::-webkit-details-marker { display: none; }
.concl-fold > summary::after { position: absolute; inset-inline-end: 20px; top: 21px; }
.concl-fold > summary:hover { background: var(--surface-2); }
.concl-fold > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.concl-fold > summary h2 { margin: 0; font-size: var(--type-title); }
.concl-fold-sum { color: var(--muted); font-size: var(--type-note); }
.concl-fold[open] > summary { border-bottom: 1px solid var(--line-soft); border-radius: var(--r-m) var(--r-m) 0 0; }
.concl-fold > :not(summary) { margin-inline-start: 18px; margin-inline-end: 18px; }
.concl-fold > :last-child:not(summary) { margin-bottom: 16px; }
.concl-fold > summary + * { margin-top: 12px; }

@media (max-width: 680px) {
.library { margin-inline: calc(-1 * var(--page-gutter)); border-inline: 0; border-radius: 0; }
.library-head { padding: 14px 16px 8px; }
.library-tools, .library-status, .library-foot, .library-reco { padding-inline-start: 16px; padding-inline-end: 16px; }
.library-reco { margin-inline-start: 16px; margin-inline-end: 16px; }
.library-list { grid-template-columns: minmax(0, 1fr); padding: 4px 16px max(16px, env(safe-area-inset-bottom)); }
.library-search input { font-size: max(16px, var(--type-control)); }

.library-choice { flex: 1 1 calc(50% - 6px); max-width: none; }

.library-chooser-toggle { display: block; align-self: flex-start; min-height: 32px; padding: 0; text-align: start; font-weight: 650; }
.library-chooser:not([data-open="1"]) > :not(.library-chooser-toggle) { display: none; }
}


.concl-related { display: grid; gap: 0; margin: 4px 0 0; padding: 0; list-style: none; }
.concl-related li {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 0;
border-top: 1px solid var(--line);
}
.concl-related li:first-child { border-top: 0; }
.concl-related b { font-size: var(--type-read); }
.concl-related p { margin: 2px 0 0; color: var(--muted); font-size: var(--type-read); line-height: var(--leading); }
.concl-related button, .concl-explore .concl-followup button {
flex: none;
min-height: 36px;
padding: 0 14px;
border: 1px solid var(--teal);
border-radius: var(--r-s);
background: var(--surface);
color: var(--teal-ink);
font: 650 var(--type-control)/1.3 var(--font-ui);
cursor: pointer;
}
.concl-related button:hover:not(:disabled) { background: var(--line-soft); }
.concl-related button:disabled { opacity: 0.7; cursor: progress; }
.concl-explore-status:empty { display: none; }
@media (max-width: 640px) {
.concl-related li { flex-direction: column; align-items: stretch; }
}


.library-link.link {
padding: 0;
border: 0;
background: none;
color: var(--teal);
font: 650 var(--type-control)/1.4 var(--font-ui);
text-decoration: underline;
text-underline-offset: 3px;
cursor: pointer;
}
.chat-column { position: relative; }
.opening-dropmask {
position: absolute;
inset: 8px;
z-index: 20;
display: grid;
place-items: center;
border: 2px dashed var(--teal);
border-radius: var(--r-l);
background: color-mix(in srgb, var(--teal-wash) 94%, transparent);
color: var(--teal);
font: 700 var(--type-heading)/1.4 var(--font-ui);
pointer-events: none;
}
.opening-dropmask[hidden] { display: none; }



.share-dialog { max-width: min(34rem, calc(100vw - 32px)); }
.share-new { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 12px 0; }
.share-new[hidden] { display: none; }
.share-new .upload-field { flex: 1 1 18rem; }
.share-new input { width: 100%; font-family: var(--font-mono, monospace); font-size: var(--type-control); }
.share-list-title { margin: 14px 0 6px; font-size: var(--type-note); color: var(--ink-2); }
.share-list { list-style: none; margin: 0 0 8px; padding: 0; max-height: 12rem; overflow: auto; }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: var(--type-read); color: var(--ink-2); }
.share-row.is-ended { color: var(--muted); }
.share-revoke { min-height: 28px; }
.share-empty { color: var(--muted); font-size: var(--type-read); }



.viewer-banner {
display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
padding: 8px 16px; border-bottom: 1px solid var(--teal-line); background: var(--teal-wash);
color: var(--teal-ink); font-size: var(--type-note);
}
.viewer-sign-in { margin-inline-start: auto; color: var(--teal-deep); font-weight: 650; }
body[data-viewer="1"] :is(.top-nav > a[data-page="chat"], .assistant-rail, #rail-drawer, #new-analysis,
#run-switch, #record-open, #account, #conclusion-share, #conclusion-record, #conclusion-new,
#conclusion-package, .header-meta,
.concl-followups, .concl-explore, .tx-note-form, .tx-note-actions) { display: none !important; }
body[data-viewer="1"] .content { grid-template-columns: minmax(0, 1fr); }

.concl-support-plot { margin: var(--space-2) 0 var(--space-1); }
.concl-support-plot svg { display: block; width: 100%; max-width: 360px; height: auto; }
.concl-support-plot figcaption { color: var(--subtle); font-size: var(--type-meta); line-height: 1.4; }
.concl-support-plot .sp-strong { fill: var(--teal-wash); }
.concl-support-plot .sp-cut { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.concl-support-plot .sp-axis-line { stroke: var(--line-strong); }
.concl-support-plot .sp-dot { fill-opacity: .5; }
.concl-support-plot .sp-dot.is-strong, .concl-support-plot .sp-bar.is-strong { fill: var(--viz-strong); }
.concl-support-plot .sp-dot.is-moderate, .concl-support-plot .sp-bar.is-moderate { fill: var(--viz-moderate); }
.concl-support-plot .sp-dot.is-weak, .concl-support-plot .sp-bar.is-weak { fill: var(--viz-weak); }
.concl-support-plot .sp-tick, .concl-support-plot .sp-axis { font: var(--type-meta) var(--font-ui); fill: var(--subtle); }
.concl-support-plot .sp-count { font: var(--weight-strong) var(--type-meta) var(--font-ui); fill: var(--muted); }
.concl-support-plot .sp-count.is-strong { fill: var(--teal-ink); }


.concl-board .board-story { margin: -4px 0 var(--space-3); color: var(--muted); font-size: var(--type-note); }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3);
grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.board-item { min-width: 0; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 10px;
background: var(--surface); }
.board-item.is-not_run, .board-item.is-planned, .board-item.is-pending { background: var(--surface-2); }
.board-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.board-mark { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--viz-weak);
transform: translateY(-1px); }
.board-item[data-level="strong"] .board-mark { background: var(--viz-strong); }
.board-item[data-level="moderate"] .board-mark { background: var(--viz-moderate); }
.board-item[data-level="weak"] .board-mark { background: var(--red); }
.board-item.is-not_run .board-mark, .board-item.is-planned .board-mark { background: transparent;
box-shadow: inset 0 0 0 1.5px var(--faint); }
.board-title { flex: 1 1 200px; margin: 0; font-size: var(--type-note); font-weight: var(--weight-strong);
color: var(--ink-2); line-height: 1.35; }
.board-tags { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.board-tag { padding: 1px 7px; border-radius: 999px; font-size: var(--type-meta); color: var(--muted);
background: var(--surface-3); white-space: nowrap; }
.board-tag.is-lead { color: var(--teal-ink); background: var(--teal-wash); }
.board-tag.is-extra { color: var(--blue-ink); background: var(--blue-wash); }
.board-tag.is-level.is-strong { color: var(--teal-ink); background: var(--teal-wash); }
.board-tag.is-level.is-moderate { color: var(--amber-ink); background: var(--amber-wash); }
.board-tag.is-level.is-weak { color: var(--red-ink); background: var(--red-wash); }
.board-body { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.board-words { flex: 1 1 220px; min-width: 0; }
.board-headline { margin: 0; color: var(--ink); line-height: 1.5; }
.board-item:not(.is-done) .board-headline { color: var(--muted); }
.board-reason { margin: 4px 0 0; color: var(--subtle); font-size: var(--type-note); line-height: 1.45; }
.board-reasons { margin: 2px 0 0; color: var(--subtle); font-size: var(--type-note); line-height: 1.45; }
.board-reasons-summary { cursor: pointer; width: fit-content; }
.board-reasons-summary:hover { color: var(--teal-ink); }
.board-reasons-list { margin: 4px 0 0; padding-inline-start: 1.2em; }
.board-reasons-list li + li { margin-top: 2px; }
.board-open { margin-top: 2px; min-height: 30px; box-sizing: border-box; display: inline-flex; align-items: center; }
.board-addon { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.board-addon .addon-reason { margin: 0; flex: 1 1 100%; }
.board-figure { flex: 0 1 260px; margin: 0; min-width: 0; }
.board-mini { display: block; width: 100%; max-width: 260px; height: auto; overflow: visible; }
.board-mini text { font: var(--type-meta) var(--font-ui); }
.board-label { fill: var(--muted); }
.board-label.is-lead { fill: var(--ink); font-weight: var(--weight-strong); }
.board-value { fill: var(--subtle); }
.board-value.is-up { fill: var(--red); font-weight: var(--weight-strong); }
.board-tick { fill: var(--subtle); }
.board-bar { fill: var(--line-strong); }
.board-bar.is-lead { fill: var(--teal); }
.board-track { fill: var(--surface-3); }
.board-axis { stroke: var(--line-strong); stroke-width: 1; }
.board-axis.is-gene { stroke-width: 2; stroke-linecap: round; }
.board-range { stroke: var(--teal-soft); stroke-width: 4; stroke-linecap: round; }
.board-dot { fill: var(--teal); stroke: var(--surface); stroke-width: 1.5; }
.board-tick-up { stroke: var(--red); stroke-width: 1.4; }
.board-tick-down { stroke: var(--blue); stroke-width: 0.8; opacity: .6; }
.board-seg.s0 { fill: var(--teal); }
.board-seg.s1 { fill: var(--viz-1); }
.board-seg.s2 { fill: var(--viz-2); }
.board-seg.s3 { fill: var(--viz-3); }
.board-seg.s4 { fill: var(--viz-moderate); }
.board-seg.s5, .board-seg.is-rest { fill: var(--line-strong); }

.reply-trace { margin: 2px 0 0; color: var(--subtle); font-size: var(--type-note); }

.reply-did { margin: 4px 0 0; padding: 0; list-style: none; font-size: var(--type-note); }
.reply-did li { position: relative; padding-inline-start: 1.2em; }
.reply-did li::before { content: "\2713"; position: absolute; inset-inline-start: 0; color: var(--subtle); }
.reply-did li.is-failed { color: var(--muted); }
.reply-did li.is-failed::before { content: "\00d7"; color: var(--subtle); }
.reply-did li.is-failed-group { padding-inline-start: 0; }
.reply-did li.is-failed-group::before { content: none; }
.reply-did-failed > summary { color: var(--muted); cursor: pointer; padding-inline-start: 1.2em; list-style: none; position: relative; }
.reply-did-failed > summary::-webkit-details-marker { display: none; }
.reply-did-failed > summary::before { content: "\00d7"; position: absolute; inset-inline-start: 0; color: var(--subtle); }
.reply-did-failed > summary:hover { color: var(--teal-ink); }
.reply-did-failed > .reply-did { margin: 2px 0 0; }


.reply-cite { display: inline-block; min-inline-size: 1.4em; margin-inline: 1px; padding: 0 4px; border: 1px solid var(--line-strong);
border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: .72em; line-height: 1.5;
vertical-align: .35em; text-align: center; cursor: pointer; }
sup.reply-cite { cursor: help; }
.reply-cite:hover, .reply-cite:focus-visible { border-color: var(--teal); color: var(--teal); }
.reply-cite.is-missing { border-style: dashed; color: var(--red-ink); }
.reply-evidence { margin: 4px 0 0; font-size: var(--type-note); }
.reply-evidence > summary { color: var(--subtle); cursor: pointer; }
.reply-evidence-list { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.reply-evidence-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; padding: 4px 6px; border-radius: 6px; }
.reply-evidence-list li.is-lit { background: var(--line-soft); outline: none; }
.reply-evidence-n { grid-row: span 2; color: var(--muted); font-variant-numeric: tabular-nums; }
.reply-evidence-source { color: var(--subtle); }
.reply-evidence-quote { quotes: none; overflow-wrap: anywhere; font-family: var(--font-mono, monospace); }
.reply-evidence-quote mark { background: color-mix(in srgb, var(--teal) 22%, transparent); color: inherit; border-radius: 2px; }
.reply-evidence-missing, .reply-evidence-list li.is-missing .reply-evidence-n { color: var(--red-ink); }


.concl-section .concl-headline.is-section { font-size: var(--type-heading); }
.concl-section > .board-open { margin-top: var(--space-2); }
.section-figure { margin: var(--space-3) 0 var(--space-2); max-width: 760px; }
.section-figure-svg { display: block; width: 100%; height: auto; overflow: visible; }
.section-figure-svg text { font: var(--type-meta) var(--font-ui); }
.section-figure-note { margin: 4px 0 0; color: var(--subtle); font-size: var(--type-note); line-height: 1.45; }
.sf-grid { stroke: var(--line-soft); stroke-width: 1; }
.sf-axis { stroke: var(--line-strong); stroke-width: 1; }
.sf-tick { fill: var(--subtle); }
.sf-axis-title { fill: var(--muted); }
.sf-label { fill: var(--muted); }
.sf-label.is-lead { fill: var(--ink); font-weight: var(--weight-strong); }
.sf-label.is-up { fill: var(--red); font-weight: var(--weight-strong); }
.sf-dot { fill: var(--line-strong); fill-opacity: .85; stroke: var(--surface); stroke-width: .8; }
.sf-dot.is-lead { fill: var(--teal); }
.is-rtt .sf-dot { fill: var(--teal); fill-opacity: .55; }
.sf-dot.is-outlier { fill: var(--red); fill-opacity: .9; }
.sf-fit { stroke: var(--ink-2); stroke-width: 1.4; stroke-dasharray: 5 4; }
.sf-range { stroke: var(--teal-soft); stroke-width: 5; stroke-linecap: round; }
.sf-mark { fill: var(--teal); stroke: var(--surface); stroke-width: 1.5; }
.sf-step { fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linejoin: round; }
.sf-band { fill: var(--teal); fill-opacity: 0.14; stroke: none; }
.sf-bar { fill: var(--line-strong); }
.sf-bar.is-lead { fill: var(--teal); }
.sf-gene { stroke: var(--line-strong); stroke-width: 2.5; stroke-linecap: round; }
.sf-up { stroke: var(--red); stroke-width: 1.6; }
.sf-down { stroke: var(--blue); stroke-width: 1; opacity: .55; }
.sf-ring { fill: var(--surface); stroke: var(--red); stroke-width: 1.2; }
.sf-threshold { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 4 3; }
.board-links { display: flex; flex-wrap: wrap; gap: 0 14px; }

.concl-synthesis { border-inline-start: 4px solid var(--viz-weak); }
.concl-synthesis[data-level="strong"] { border-inline-start-color: var(--viz-strong); }
.concl-synthesis[data-level="moderate"] { border-inline-start-color: var(--viz-moderate); }
.concl-synthesis[data-level="weak"] { border-inline-start-color: var(--red); }
.synthesis-kicker { margin: 0; color: var(--muted); font-size: var(--type-note); }
.synthesis-verdict { margin: 4px 0 8px; font-size: var(--type-heading); line-height: 1.45; color: var(--ink); }
.synthesis-level { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.synthesis-basis { color: var(--subtle); font-size: var(--type-meta); }
.synthesis-points { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: 6px; }
.synthesis-point { position: relative; padding-inline-start: 16px; line-height: 1.5; color: var(--ink-2); }
.synthesis-point::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 6px; height: 6px;
border-radius: 50%; background: var(--teal); }
.synthesis-point.is-caution { color: var(--muted); }
.synthesis-point.is-caution::before { background: var(--amber); }
.synthesis-text { margin-inline-end: 6px; }
.synthesis-chip { display: inline-flex; align-items: center; min-height: 28px; margin-block: 0; margin-inline: 0 4px; padding: 0 9px;
border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--teal-ink);
font: inherit; font-size: var(--type-meta); cursor: pointer; vertical-align: middle; }
.synthesis-chip:hover, .synthesis-chip:focus-visible { border-color: var(--teal-line); background: var(--teal-wash); }
.board-extra { margin-top: var(--space-3); }
.board-extra > summary, .concl-sections-extra > summary, .concl-more > summary { display: flex; align-items: center; min-height: 32px;
cursor: pointer; color: var(--teal-ink); font-size: var(--type-control); font-weight: var(--weight-strong); }
.board-extra > .board-list { margin-top: var(--space-2); }
.board-extra > summary::-webkit-details-marker, .concl-sections-extra > summary::-webkit-details-marker, .concl-more > summary::-webkit-details-marker { display: none; }
.board-extra > summary::before, .concl-sections-extra > summary::before, .concl-more > summary::before { content: "▸"; margin-inline-end: 8px;
transition: transform .15s ease; }
.board-extra[open] > summary::before, .concl-sections-extra[open] > summary::before, .concl-more[open] > summary::before { transform: rotate(90deg); }
[dir="rtl"] :is(.board-extra, .concl-sections-extra, .concl-more) > summary::before { scale: -1 1; }
.concl-sections-extra { display: grid; gap: var(--space-3); }
.concl-sections-extra > summary { padding: 4px 0; }

.concl-more { display: grid; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line-soft); }
.concl-more > summary { padding: 4px 0; min-height: 40px; }

.concl-investigation { border-inline-start: 4px solid var(--viz-1); }
.inv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.inv-badge { padding: 1px 8px; border-radius: 999px; font-size: var(--type-meta); color: var(--blue-ink); background: var(--blue-wash); }
.inv-body { margin-top: var(--space-2); }
.inv-why-head, .inv-none, .inv-failed { margin: 0 0 6px; color: var(--muted); }
.inv-why { margin: 0 0 var(--space-3); padding-inline-start: 18px; color: var(--ink-2); line-height: 1.5; }
.inv-start { margin-inline-end: 10px; }
.inv-ask { margin-top: var(--space-3); }
.inv-ask-hint { display: block; color: var(--subtle); font-size: var(--type-note); margin-bottom: 4px; }
.inv-ask-row { display: flex; gap: 8px; flex-wrap: wrap; }
.inv-ask-input { flex: 1 1 240px; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
background: var(--surface); color: var(--ink); font: inherit; }
.inv-running { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.inv-running-text { font-size: var(--type-note); }
.inv-spinner { flex: none; width: 15px; height: 15px; border: 2px solid var(--line-strong); border-top-color: var(--viz-1);
border-radius: 50%; animation: inv-spin 0.8s linear infinite; }
@keyframes inv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .inv-spinner { animation-duration: 2.4s; } }
.inv-subtitle { margin: var(--space-3) 0 6px; font-size: var(--type-note); color: var(--ink-2); font-weight: var(--weight-strong); }
.inv-summary-text { margin: 0; line-height: 1.55; color: var(--ink); }
.inv-findings, .inv-papers, .inv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.inv-list { padding-inline-start: 18px; list-style: disc; color: var(--ink-2); }
.inv-finding { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.inv-finding.is-contradicts { border-inline-start: 3px solid var(--red); }
.inv-finding.is-supports { border-inline-start: 3px solid var(--viz-strong); }
.inv-finding.is-new { border-inline-start: 3px solid var(--viz-1); }
.inv-finding-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.inv-finding-title { margin: 0; flex: 1 1 200px; font-size: var(--type-note); color: var(--ink); }
.inv-kind { padding: 0 7px; border-radius: 999px; font-size: var(--type-meta); background: var(--surface-3); color: var(--muted); }
.inv-kind.is-contradicts { color: var(--red-ink); background: var(--red-wash); }
.inv-kind.is-supports { color: var(--teal-ink); background: var(--teal-wash); }
.inv-kind.is-new { color: var(--blue-ink); background: var(--blue-wash); }
.inv-conf { font-size: var(--type-meta); color: var(--subtle); }
.inv-finding-text { margin: 6px 0; line-height: 1.5; color: var(--ink-2); }
.inv-finding-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.inv-cites { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.inv-cite { padding: 0 6px; border-radius: 4px; font: var(--type-meta) var(--font-mono, monospace); background: var(--surface-3); color: var(--muted); }
.inv-cite.is-paper { color: var(--blue-ink); background: var(--blue-wash); cursor: help; }
.inv-cite.is-data { color: var(--ink-2); background: var(--surface-3); cursor: help; }
.inv-cite.is-result { color: var(--teal-ink); background: var(--teal-wash); }
.inv-warn { color: var(--amber-ink); font-size: var(--type-meta); }
.inv-dropped { margin: 6px 0 0; color: var(--subtle); font-size: var(--type-meta); }
.inv-paper { display: flex; gap: 8px; line-height: 1.45; }
.inv-paper-id { flex: none; color: var(--blue-ink); font: var(--type-meta) var(--font-mono, monospace); padding-top: 2px; }
.inv-paper-cite { color: var(--muted); }
.inv-paper-title { color: var(--ink); }
a.inv-paper-title { color: var(--teal-deep); }
.inv-paper-journal { color: var(--subtle); font-style: italic; }
.inv-paper-pre { color: var(--amber-ink); }
.inv-trace { margin-top: var(--space-3); }
.inv-trace > summary { cursor: pointer; color: var(--muted); font-size: var(--type-control); min-height: 30px; display: flex; align-items: center; }
.inv-trace-list { margin: var(--space-2) 0 0; padding-inline-start: 20px; color: var(--ink-2); display: grid; gap: 3px; }
.inv-trace-label { color: var(--muted); }
.inv-again { margin-top: var(--space-3); display: inline-flex; align-items: center; min-height: 32px; }



.monitor-defaults li { flex-wrap: wrap; }
.monitor-options {
display: flex;
flex-wrap: wrap;
flex-basis: 100%;
gap: 6px;
margin: 4px 0 6px;
}
.monitor-options .monitor-chip { min-height: 30px; padding: 4px 12px; font-size: var(--type-control); }
.monitor-chip.is-quiet { border-style: dashed; color: var(--muted); }


.decision-presets {
grid-column: 1 / -1;
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.decision-presets[hidden] { display: none; }
.decision-input .decision-preset {
display: inline-flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
min-height: 44px;
padding: 6px 12px;
border-radius: var(--r-s);
text-align: start;
}
.decision-input .decision-preset small { color: var(--muted); font: 500 var(--type-meta)/1.3 var(--font-ui); }
.decision-input .decision-preset:is(:hover, :focus-visible):not(:disabled) { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-ink); }


.pick-dialog { width: min(92vw, 28rem); }
.pick-dialog form { display: flex; flex-direction: column; gap: 10px; }
.pick-dialog h2 { margin: 0; }
.pick-search {
min-height: 38px;
padding: 6px 10px;
border: 1px solid var(--line-strong);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: inherit;
}
.pick-list {
display: flex;
flex-direction: column;
gap: 2px;
max-height: min(52vh, 22rem);
overflow-y: auto;
margin: 0 -6px;
padding: 0 6px;
}
.pick-option {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
min-height: 40px;
padding: 8px 10px;
border: 1px solid transparent;
border-radius: var(--r-s);
background: transparent;
color: var(--ink);
font: 600 var(--type-title)/1.3 var(--font-ui);
text-align: start;
cursor: pointer;
}
.pick-option small { color: var(--muted); font-weight: 500; font-size: var(--type-note); text-align: end; }
.pick-option:is(:hover, :focus-visible) { border-color: var(--teal-line); background: var(--teal-wash); color: var(--teal-ink); }
.pick-empty { margin: 0; color: var(--muted); }

.example-pick-lead { margin: 0; color: var(--muted); font-size: var(--type-note); }
.example-pick-option { flex-direction: column; align-items: stretch; gap: 2px; }
.example-pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.example-pick-option .example-pick-about { text-align: start; }
.pick-empty[hidden] { display: none; }

.bubble.home-thinking { color: var(--muted); font-style: italic; }



.library-reach { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: var(--space-2) 0 0; color: var(--ink-2); font-size: var(--type-note); line-height: 1.5; }
.library-reach[hidden] { display: none; }
.library-reach-name { color: var(--ink); font-weight: var(--weight-strong); }
.library-reach-count { color: var(--teal-ink); }
.library-reach-count.is-later, .library-reach-later { color: var(--muted); }
.library-reach-open { min-height: 28px; padding: 0 8px; font-size: var(--type-note); }
.library-focus { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 22px 10px; padding: 8px 12px; border-radius: var(--r-m); border: 1px solid var(--teal-line); background: var(--teal-wash); color: var(--ink-2); font-size: var(--type-note); }
.library-focus b { color: var(--teal-ink); }
.library-focus-clear { margin-inline-start: auto; min-height: 28px; }
.library-quick { margin-block-start: var(--space-3); padding: 10px 12px; border-radius: var(--r-m); border: 1px solid var(--teal-line); background: var(--teal-wash); }
.library-quick[hidden] { display: none; }
.library-quick-title { margin: 0 0 4px; color: var(--teal-ink); font-size: var(--type-note); }
.library-quick p { margin: 2px 0 0; color: var(--ink); font-size: var(--type-note); line-height: 1.5; }
.library-quick .library-quick-lead, .library-quick .library-quick-level { color: var(--ink-2); }
.library-quick .library-quick-note { color: var(--muted); font-size: var(--type-meta); }

.library-picks { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.library-picks[hidden] { display: none; }
.library-picks-title { margin: 0; font-size: var(--type-read); }
.library-picks-lead { margin: 2px 0 6px; color: var(--muted); font-size: var(--type-note); }
.library-picks-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.library-pick { padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: var(--r-m); background: var(--surface-2); }
.library-pick-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0; }
.library-pick-title { color: var(--ink); overflow-wrap: anywhere; }
.library-pick-facts { color: var(--muted); font-size: var(--type-note); }
.library-pick-use { margin: 2px 0 6px; color: var(--ink-2); font-size: var(--type-note); }
.library-pick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.public-compare[hidden] { display: none; }
.public-compare-build { margin: 0 0 8px; color: var(--ink-2); }
.public-compare-build b { color: var(--ink); overflow-wrap: anywhere; }
.public-compare-row { display: grid; grid-template-columns: minmax(8em, 1.2fr) 1fr 1fr; gap: 2px 12px; align-items: baseline; padding: 8px 10px; border-radius: var(--r-m); background: var(--surface-2); }
.public-compare-head { color: var(--muted); font-size: var(--type-note); }
.public-compare-label { color: var(--ink-2); font-size: var(--type-note); }
.public-compare-value { font-variant-numeric: tabular-nums; }
.public-compare-verdict { margin: 8px 0 0; padding-inline-start: 10px; border-inline-start: 3px solid var(--teal); color: var(--ink); }
.public-compare-verdict.is-differ { border-inline-start-color: var(--amber); }
.public-compare-scope, .public-compare-ceiling { margin: 6px 0 0; color: var(--ink-2); font-size: var(--type-note); }
.public-compare-ceiling { color: var(--muted); }
.public-compare-look { margin-top: 10px; }
@media (max-width: 560px) {
.public-compare-row { grid-template-columns: 1fr 1fr; }
.public-compare-row .public-compare-label { grid-column: 1 / -1; order: -1; }
.public-compare-row .public-compare-label.is-blank { display: none; }
}


.next-step-why { margin: 2px 0 0; color: var(--muted); font-size: var(--type-note); line-height: 1.45; }
.next-step-why[hidden] { display: none; }
}

@layer legacy {













.card {
padding: 14px 16px;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-card);
}
.card-kicker {
margin: 0 0 6px;
color: var(--teal-ink);
font: 700 var(--type-meta)/1.3 var(--font-ui);
letter-spacing: 0.06em;
}
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.btn-primary,
.btn-secondary {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 34px;
padding: 6px 15px;
border-radius: var(--r-s);
font: 650 var(--type-control)/1.2 var(--font-ui);
text-decoration: none;
cursor: pointer;
transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { border: 1px solid var(--teal); background: var(--teal); color: var(--surface); }
.btn-primary:hover { border-color: var(--teal-deep); background: var(--teal-deep); }
.btn-secondary { border: 1px solid var(--teal-line); background: var(--surface); color: var(--teal-ink); }
.btn-secondary:hover { border-color: var(--teal); background: var(--teal-wash); }
.btn-primary:disabled,
.btn-secondary:disabled { opacity: 0.65; cursor: progress; }
.btn-quiet,
.library-link.link {
padding: 0;
border: 0;
background: none;
color: var(--teal);
font: 650 var(--type-control)/1.4 var(--font-ui);
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
cursor: pointer;
}
.btn-quiet:hover,
.library-link.link:hover { color: var(--teal-deep); background: none; }

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-quiet:focus-visible,
.choice-chip:focus-visible,
.welcome-recent-row:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }


.place-card {
margin: 8px 0 12px;
padding: 16px 18px 14px;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-card);
}
.place-headline { margin: 0 0 10px; color: var(--ink); font: 650 var(--type-title)/1.55 var(--font-ui); }
.place-figure { margin: 2px 0 4px; overflow: hidden; }
.place-figure .tt-svg { width: 100%; height: auto; }
.place-legend { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; color: var(--muted); font-size: var(--type-note); line-height: 1.5; }
.place-key {
flex: none;
width: 11px;
height: 11px;
border-radius: 50%;
background: var(--teal);
box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--teal-line);
}
.place-lines { margin: 12px 0 0; padding-inline-start: 18px; color: var(--ink); font-size: var(--type-read); line-height: 1.7; }



.place-caveat {
margin: 12px 0 0;
padding: 8px 12px;
border-inline-start: 3px solid var(--ref-grey);
border-radius: 0;
border-start-end-radius: var(--r-s);
border-end-end-radius: var(--r-s);
background: var(--wash);
color: var(--muted);
font-size: var(--type-note);
line-height: 1.6;
}


.place-advice {
margin: 12px 0 0;
padding: 9px 12px;
border: 1px solid var(--line-soft);
border-inline-start: 3px solid var(--teal);
border-radius: var(--r-s);
background: var(--surface);
}
.place-advice.is-heavy { border-inline-start-color: var(--amber); background: var(--amber-wash); }
.place-advice-verdict { margin: 0; color: var(--ink); font-size: var(--type-read); font-weight: 650; line-height: 1.5; }
.place-advice-reasons { margin: 6px 0 0; padding-inline-start: 18px; color: var(--muted); font-size: var(--type-note); line-height: 1.6; }
.place-table { width: 100%; border-collapse: collapse; font-size: var(--type-note); }
.place-table th { color: var(--muted); font-weight: 650; text-align: start; }
.place-table th,
.place-table td { padding-block: 5px; padding-inline: 0 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tt-svg.has-marks .tt-branch { stroke: var(--faint); }
.tt-svg.has-marks .tt-tip { fill: var(--ref-grey); }
.tt-mark { fill: var(--teal); fill-opacity: 0.88; stroke: var(--surface); stroke-width: 1.5; cursor: help; }
.tt-mark:hover { fill: var(--teal-ink); fill-opacity: 1; }
.bubble-action { display: flex; width: fit-content; margin-top: 10px; }


.welcome-recent { margin: 18px 0 0; text-align: start; }
.welcome-recent[hidden] { display: none; }
.welcome-recent-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.welcome-recent-list > li { display: flex; }
.welcome-recent-list .welcome-recent-row { flex: 1; justify-content: flex-start; }
.welcome-recent-row {
display: flex;
flex-direction: column;
gap: 3px;
width: 100%;
padding: 10px 14px;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface);
color: var(--ink);
font: 650 var(--type-read)/1.4 var(--font-ui);
text-align: start;
cursor: pointer;
transition: border-color 0.15s ease, background 0.15s ease;
}
.welcome-recent-row small { color: var(--muted); font-size: var(--type-note); font-weight: 400; }
.welcome-recent-row:hover { border-color: var(--teal); background: var(--teal-wash); }
@media (min-width: 1000px) {
.chat-page[data-mode="welcome"] .chat-stage { max-width: 1240px; }


.chat-page[data-mode="welcome"] .empty-state { padding-top: 28px; }
.chat-page[data-mode="welcome"] .welcome-recent-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.welcome-recent-row small { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ledger-empty { margin: 4px 0 0; color: var(--muted); font-size: var(--type-note); line-height: 1.6; }
#ledger-list:not(:empty) + .ledger-empty { display: none; }

.library-card .library-open.btn-secondary, .library-card .library-preview-open.btn-secondary, .library-card .library-external.btn-secondary { width: fit-content; min-height: 34px; padding: 0 16px; border: 1px solid var(--teal-line); background: var(--surface); color: var(--teal-ink); }
.library-card .library-open.btn-secondary:hover:not(:disabled), .library-card .library-external.btn-secondary:hover { border-color: var(--teal); background: var(--teal-wash); }



.run-actions button,
.concl-followup button,
.concl-related button,
.library-card .library-open.btn-secondary, .library-card .library-preview-open.btn-secondary, .library-card .library-external.btn-secondary { border-radius: var(--r-s); }
.plan-card,
.concl-card,
.library-card,
.decision-card,
.next-step { border-radius: var(--r-m); }





.record-drawer {
position: fixed;
top: var(--header-h);
inset-inline-end: 0;
bottom: 0;
z-index: 45;
display: flex;
flex-direction: column;
width: min(100vw, 460px);
border-inline-start: 1px solid var(--line);
background: var(--surface);
box-shadow: -18px 0 44px rgba(23, 39, 48, 0.14);
transform: translateX(calc((100% + 72px) * var(--inline-sign)));
transition: transform 0.26s ease;
}
body[data-record="open"] .record-drawer { transform: none; }
.record-head {
display: flex;
flex: 0 0 auto;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
padding: 14px 16px 12px;
border-bottom: 1px solid var(--line-soft);
background: var(--surface-2);
}
.record-heading h2 { margin: 0; color: var(--ink); font: 700 var(--type-heading)/1.3 var(--font-ui); }
.record-run { margin: 3px 0 0; color: var(--muted); font-size: var(--type-note); line-height: 1.4; }
.record-body { flex: 1 1 auto; overflow-y: auto; padding: 12px 16px 18px; overscroll-behavior: contain; }
.record-lead { margin: 0; color: var(--muted); font-size: var(--type-read); line-height: 1.6; }
.record-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.record-list { position: relative; margin: 6px 0 0; padding: 0; list-style: none; }
.record-empty { margin: 14px 0 0; color: var(--muted); font-size: var(--type-read); line-height: 1.7; }
.record-day {
margin: 16px 0 4px;
color: var(--muted);
font: 700 var(--type-meta)/1.3 var(--font-ui);
letter-spacing: 0.04em;
}
.record-entry {
position: relative;
display: grid;
grid-template-columns: 12px minmax(0, 1fr);
gap: 10px;
padding: 7px 0 9px;
}

.record-entry::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
inset-inline-start: 5.5px;
border-inline-start: 1px solid var(--line-soft);
}
.record-day + .record-entry::before { top: 12px; }
.record-dot {
position: relative;
width: 9px;
height: 9px;
margin-block: 5px 0;
margin-inline: 1.5px 0;
border-radius: 50%;
background: var(--ref-grey);
box-shadow: 0 0 0 3px var(--surface);
}
.record-entry.who-you .record-dot { background: var(--teal); }
.record-entry.who-auto .record-dot { background: var(--surface); box-shadow: inset 0 0 0 2px var(--teal), 0 0 0 3px var(--surface); }
.record-entry.is-amber .record-dot { background: var(--amber); box-shadow: 0 0 0 3px var(--surface); }
.record-entry.is-failed .record-dot { background: var(--red-ink); }
.record-entry.kind-step .record-dot { width: 7px; height: 7px; margin-block: 6px 0; margin-inline: 2.5px 0; }
.record-meta { display: flex; align-items: baseline; gap: 8px; }
.record-kicker { color: var(--muted); font: 700 var(--type-meta)/1.3 var(--font-ui); letter-spacing: 0.04em; }
.record-entry.who-you .record-kicker,
.record-entry.who-auto .record-kicker { color: var(--teal-ink); }
.record-entry.is-amber .record-kicker { color: var(--amber-ink); }
.record-entry.is-failed .record-kicker { color: var(--red-ink); }
.record-meta time { color: var(--muted); font-size: var(--type-meta); font-variant-numeric: tabular-nums; }
.record-text { margin: 2px 0 0; color: var(--ink); font-size: var(--type-read); line-height: 1.6; overflow-wrap: anywhere; }
.record-entry.kind-asked .record-text { color: var(--muted); }
.record-entry.kind-step .record-text { color: var(--muted); font-size: var(--type-note); }
.record-entry.kind-result .record-text { font-weight: 650; }
.record-entry.kind-note .record-text {
margin-top: 4px;
padding: 8px 10px;
border-radius: var(--r-s);
background: var(--teal-wash);
white-space: pre-wrap;
}
.record-detail { margin: 4px 0 0; padding-inline-start: 16px; color: var(--muted); font-size: var(--type-read); line-height: 1.6; }
.record-go { margin-top: 4px; font-size: var(--type-control); }
.record-foot {
flex: 0 0 auto;
padding: 12px 16px 14px;
border-top: 1px solid var(--line-soft);
background: var(--surface-2);
}
.record-foot-note { margin: 0; color: var(--muted); font-size: var(--type-note); line-height: 1.6; }
.record-foot .card-actions { margin-top: 10px; }
.record-link { display: block; margin-top: 10px; font-size: var(--type-control); }
@media (prefers-reduced-motion: reduce) {
.record-drawer { transition: none; }
}




.record-observation {
margin: 12px 0 4px;
padding: 14px 16px;
border: 1px solid var(--teal-line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-card);
}
.record-observation[hidden] { display: none; }
.record-observation-text { margin: 0; color: var(--ink); font: 650 var(--type-title)/1.6 var(--font-ui); }
.record-grounds { display: grid; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; }
.record-ground { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: baseline; color: var(--muted); font-size: var(--type-note); line-height: 1.55; }
.record-ground-tag {
padding: 1px 6px;
border-radius: var(--r-xs);
background: var(--teal-wash);
color: var(--teal-ink);
font: 700 var(--type-meta)/1.5 var(--font-ui);
white-space: nowrap;
}
.record-ground.is-data .record-ground-tag { background: var(--surface-3); color: var(--muted); }
.record-ground.is-field .record-ground-tag { background: var(--surface-3); color: var(--muted); }
.record-observation-so {
margin: 10px 0 0;
padding-top: 10px;
border-top: 1px solid var(--line-soft);
color: var(--ink);
font-size: var(--type-read);
line-height: 1.65;
}
.record-observation .card-actions[hidden],
.record-own[hidden],
.record-observation-done[hidden] { display: none; }
.record-own { margin-top: 12px; }
.record-own textarea {
display: block;
width: 100%;
min-height: 56px;
padding: 8px 10px;
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
color: var(--ink);
font: var(--type-control)/1.6 var(--font-ui);
resize: vertical;
}
.record-own textarea:focus { outline: none; border-color: var(--teal); }
.record-observation-done { margin: 10px 0 0; color: var(--teal-ink); font-size: var(--type-read); }

.record-open { position: relative; }
.record-dot-new { display: none; }
.record-open.has-observation .record-dot-new {
display: block;
position: absolute;
top: 5px;
inset-inline-end: 5px;
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--teal);
box-shadow: 0 0 0 2px var(--surface);
}



.language-picker {
min-height: 30px;
max-width: 180px;
padding-block: 0;
padding-inline: 10px 26px;
border: 0;
border-radius: var(--r-xs);
background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%2375868C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center / 10px 10px;
color: var(--teal-deep);
font: 650 var(--type-control)/1.2 var(--font-ui);
appearance: none;
cursor: pointer;
}
.language-picker:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.account-menu .language-picker { min-height: 36px; }

.theme-picker {
min-height: 36px;
max-width: 180px;
padding-block: 0;
padding-inline: 10px 26px;
border: 0;
border-radius: var(--r-xs);
background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%2375868C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center / 10px 10px;
color: var(--teal-deep);
font: 650 var(--type-control)/1.2 var(--font-ui);
appearance: none;
cursor: pointer;
}
[dir="rtl"] .theme-picker { background-position: left 8px center; }




[dir="rtl"] .language-picker { background-position: left 8px center; }


[dir="rtl"] code, [dir="rtl"] svg { direction: ltr; }






:where([dir="rtl"]) :where(p, li, dd, dt, h1, h2, h3, h4, h5, blockquote, figcaption, summary, label, small, td, th, caption,
.bubble, .rail-bubble, .finding-text, .next-step-text, .stage-next-line, .stage-next-why) {
unicode-bidi: plaintext;

text-align: -webkit-match-parent;
text-align: match-parent;
}






.page:not(.chat-page) {
overflow-y: auto;
overscroll-behavior-y: contain;
}



.upload-card {
padding: 14px 16px;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-card);
}
.upload-card h2 { margin: 0 0 10px; color: var(--ink); font: 650 var(--type-title)/1.4 var(--font-ui); }
.upload-drop {
display: flex;
align-items: center;
gap: 14px;
padding: 16px 18px;
border: 1px dashed var(--teal-soft);
border-radius: var(--r-s);
background: var(--surface-2);
cursor: pointer;
transition: border-color var(--t-quick) var(--ease-out), background-color var(--t-quick) var(--ease-out), scale var(--t-press) var(--ease-out);
}
.upload-drop:hover, .upload-drop:focus-within { border-color: var(--teal); background: var(--teal-wash); }
.upload-drop:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.upload-drop:active { scale: 0.99; }
.upload-drop-mark {
display: grid;
flex: none;
place-items: center;
width: 40px;
height: 40px;
border-radius: var(--r-m);
background: var(--surface);
color: var(--teal);
box-shadow: 0 0 0 1px var(--teal-line);
}
.upload-drop-text { display: grid; gap: 2px; }
.upload-drop-text b { color: var(--teal-ink); font: 650 var(--type-title)/1.4 var(--font-ui); }
.upload-drop-text small { color: var(--muted); font-size: var(--type-note); line-height: 1.5; }
.upload-card .upload-example {
margin: 10px 0 0;
padding: 2px 0;
border: 0;
background: none;
color: var(--teal);
font: 600 var(--type-read)/1.5 var(--font-ui);
cursor: pointer;
}
.upload-card .upload-example:hover { text-decoration: underline; text-underline-offset: 3px; }
.upload-card.is-done .upload-example { display: none; }
.upload-card .upload-status { margin: 8px 0 0; color: var(--muted); font-size: var(--type-read); }
.upload-card .upload-status:empty { display: none; }
.upload-card.is-sending .upload-drop { opacity: 0.6; pointer-events: none; }
.upload-card.is-done .upload-drop { display: none; }
.upload-card.is-done .upload-status { color: var(--teal-ink); }





.can-fill { position: relative; }
.card-zoom {
position: absolute;
top: var(--space-2);
inset-inline-end: var(--space-2);
z-index: 3;
display: inline-grid;
place-items: center;
width: 28px;
height: 28px;
padding: 0;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
color: var(--muted);
cursor: pointer;
opacity: 0;
transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.card-zoom::before {
content: "";
width: 15px;
height: 15px;
background: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9.8 2.6h3.6v3.6M13.4 2.6 9.6 6.4M6.2 13.4H2.6V9.8M2.6 13.4l3.8-3.8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9.8 2.6h3.6v3.6M13.4 2.6 9.6 6.4M6.2 13.4H2.6V9.8M2.6 13.4l3.8-3.8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.card-zoom[aria-pressed="true"]::before {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.4 6.2H9.8V2.6M9.8 6.2l3.6-3.6M2.6 9.8h3.6v3.6M6.2 9.8l-3.6 3.6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.4 6.2H9.8V2.6M9.8 6.2l3.6-3.6M2.6 9.8h3.6v3.6M6.2 9.8l-3.6 3.6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.can-fill:hover > .card-zoom,
.can-fill:focus-within > .card-zoom,
.card-zoom:focus-visible,
.is-filling > .card-zoom { opacity: 1; }
.card-zoom:hover { border-color: var(--teal); color: var(--teal-ink); }
.card-zoom:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (hover: none) { .card-zoom { opacity: 0.85; } }
.card-zoom-hold { visibility: hidden; }
.can-fill > .card-zoom-clear { margin-inline-end: 36px; }
html .can-fill.is-filling > .card-zoom-clear { margin-inline-end: 44px; }


.can-fill > figcaption.card-zoom-clear { margin-inline-end: 0; padding-inline-end: 36px; }
html .can-fill.is-filling > figcaption.card-zoom-clear { margin-inline-end: 0; padding-inline-end: 44px; }

html .can-fill.is-filling {
position: fixed;
inset: var(--space-4);
z-index: 60;
box-sizing: border-box;
width: auto;
max-width: none;
height: auto;
max-height: none;
margin: 0;
padding: var(--space-6) var(--space-6) var(--space-5);
overflow: auto;
overscroll-behavior: contain;
border: 1px solid var(--line-strong);
border-radius: var(--r-m);
background: var(--surface);
color: var(--ink);
box-shadow: var(--shadow-3);
animation: card-fill-in 0.18s ease-out;
}
html .can-fill.is-filling::backdrop { background: color-mix(in srgb, var(--surface-2) 80%, transparent); backdrop-filter: blur(3px); }
html .can-fill.is-filling > .card-zoom { top: var(--space-3); inset-inline-end: var(--space-3); width: 32px; height: 32px; }

html .can-fill.is-filling :is(svg, img, canvas) { max-width: 100%; }



html .can-fill.is-filling svg[viewBox]:not(.tt-svg) {
display: block;
width: 100%;
height: auto;
max-height: calc(100dvh - 220px);
margin-inline: auto;
}
html .can-fill.is-filling :is(.section-figure, .board-figure) { max-width: none; }
html .is-filling.section-figure,
html .is-filling.board-figure { flex: none; }
html .is-filling :is(.concl-hero-canvas img) { width: 100%; height: auto; }



html .tree-explorer .can-fill.is-filling:is(.tx-geo, .tx-sites, .tx-frequencies, .tx-table) {
display: flex;
flex-direction: column;
padding: var(--space-4) var(--space-4) var(--space-3);
overflow: hidden;
}
html .tree-explorer .is-filling .tx-diversity-head { position: static; flex-wrap: wrap; padding-inline: 0; }
html .tree-explorer .is-filling .tx-diversity-head > .tx-diversity-hint { overflow: visible; white-space: normal; }
html .tree-explorer .is-filling > .tx-diversity-plot { flex: 1; min-height: 0; margin-top: var(--space-2); }
html .tree-explorer .is-filling > .tx-diversity-plot > .tx-diversity-canvas {
position: absolute;
top: 0;
left: 6px;
width: calc(100% - 12px);
height: calc(100% - 4px);
}
html .tree-explorer .is-filling.tx-geo > .tx-map-plot { margin: var(--space-2) 0 0; }
html .tree-explorer .is-filling.tx-table > .tx-table-head { margin-inline: 0; }
html .tree-explorer .is-filling.tx-table > .tx-table-body { flex: 1; height: auto; min-height: 0; margin: 0; }

html .concise-paper.is-filling { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
html .concise-paper.is-filling > .preview-edition-about { padding-block: var(--space-3); }
html .concise-paper.is-filling > .concise-pages {
flex: 1;
height: auto;
min-height: 0;
grid-template-columns: repeat(auto-fill, min(100%, calc((100dvh - 7rem) * 210 / 297)));
justify-content: center;
padding: var(--space-4);
}
body.has-filling-card { overflow: hidden; }
@keyframes card-fill-in { from { opacity: 0; scale: 0.97; } to { opacity: 1; scale: 1; } }
@media (max-width: 520px) {
html .can-fill.is-filling { inset: 0; padding: var(--space-5) var(--space-3) var(--space-4); border: 0; border-radius: 0; }
html .concise-paper.is-filling > .concise-pages {
flex: 1;
height: auto;
min-height: 0;
grid-template-columns: 880px;
justify-content: start;
overflow: auto;
padding: var(--space-3);
}
html .concise-paper.is-filling .concise-pages img { width: 880px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { html .can-fill.is-filling { animation: none; } }









html :is(.account-menu, .run-list, .slot-panel, .work-tray-panel) {
border-color: color-mix(in srgb, var(--teal) 45%, var(--line-strong));
box-shadow: var(--shadow-3);
}
.app-body::after {
content: "";
position: fixed;
inset: var(--header-h) 0 0;
z-index: 29;
background: var(--scrim);
opacity: 0;
pointer-events: none;
transition: opacity var(--t-quick) var(--ease-out);
}
body:has(#account-menu:not([hidden]), #run-list:not([hidden])) .app-body::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .app-body::after { transition: none; } }

}

@layer legacy {














:root {

--spring: linear(0, 0.047, 0.1551, 0.2879, 0.4233, 0.5485, 0.6572, 0.7474, 0.8195, 0.8753, 0.9172, 0.9478,
0.9693, 0.984, 0.9936, 0.9995, 1.0029, 1.0045, 1.005, 1.0049, 1.0044, 1.0037, 1.003, 1.0024, 1.0018, 1.0014,
1.001, 1.0007, 1.0005, 1.0003, 1.0002, 1.0001, 1, 1);
--spring-pop: linear(0, 0.0451, 0.1516, 0.286, 0.426, 0.5578, 0.6736, 0.7703, 0.8474, 0.9064, 0.9495, 0.9797,
0.9994, 1.0113, 1.0175, 1.0198, 1.0195, 1.0177, 1.0152, 1.0124, 1.0097, 1.0072, 1.0052, 1.0035, 1.0022, 1.0013,
1.0006, 1.0001, 1, 1);
--settle: linear(0, 0.0502, 0.16, 0.2893, 0.4165, 0.5313, 0.6296, 0.7111, 0.777, 0.8294, 0.8704, 0.9021, 0.9265,
0.945, 0.9591, 0.9696, 0.9775, 0.9834, 0.9878, 0.991, 0.9934, 0.9952, 0.9965, 0.9974, 0.9981, 0.9987, 0.999,
0.9993, 0.9995, 0.9997, 0.9999, 1);
--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
--ease-in: cubic-bezier(0.32, 0, 0.67, 0);
--t-press: 90ms;
--t-quick: 160ms;
--t-base: 240ms;
--t-exit: 200ms;
--t-pop: 440ms;
--t-sheet: 560ms;
}
@supports not (transition-timing-function: linear(0, 1)) {
:root {
--spring: cubic-bezier(0.32, 0.72, 0, 1);
--spring-pop: cubic-bezier(0.34, 1.25, 0.64, 1);
--settle: cubic-bezier(0.22, 1, 0.36, 1);
}
}


.files-drawer,
.record-drawer,
.inspector,
.assistant-rail { transition: transform var(--t-exit) var(--ease-in); }
body[data-files="open"] .files-drawer,
body[data-record="open"] .record-drawer,
.chat-page[data-drawer="open"] .inspector,
body[data-rail-drawer="open"] .assistant-rail { transition: transform var(--t-sheet) var(--spring); }

body[data-page="chat"][data-rail-peek="open"] .assistant-rail { transition: translate var(--t-sheet) var(--spring); }
@starting-style {
body[data-page="chat"][data-rail-peek="open"] .assistant-rail { translate: calc(100% * var(--inline-sign)) 0; }
}


:is(.files-backdrop, .rail-backdrop, .inspector-backdrop) {
opacity: 1;
transition: opacity var(--t-base) var(--ease-out), display var(--t-base) allow-discrete;
}


:is(.files-backdrop, .rail-backdrop, .inspector-backdrop)[hidden] {
opacity: 0;
pointer-events: none;
transition-duration: var(--t-exit);
transition-timing-function: var(--ease-in);
}
@starting-style {
:is(.files-backdrop, .rail-backdrop, .inspector-backdrop):not([hidden]) { opacity: 0; }
}


.library-preview-backdrop {
opacity: 1;
transition: opacity var(--t-base) var(--ease-out), display var(--t-base) allow-discrete;
}
.library-preview-backdrop[hidden] {
opacity: 0;
pointer-events: none;
transition-duration: var(--t-exit);
transition-timing-function: var(--ease-in);
}
@starting-style {
.library-preview-backdrop:not([hidden]) { opacity: 0; }
}


.run-list, .account-menu { transform-origin: top right; }
[dir="rtl"] :is(.run-list, .account-menu) { transform-origin: top left; }
.top-nav .account-menu { transform-origin: bottom left; }
[dir="rtl"] .top-nav .account-menu { transform-origin: bottom right; }
:is(.run-list, .account-menu) {
transition: opacity var(--t-quick) var(--ease-out), scale var(--t-pop) var(--spring),
translate var(--t-pop) var(--spring), display var(--t-pop) allow-discrete;
}

:is(.run-list, .account-menu)[hidden] {
opacity: 0;
pointer-events: none;
scale: 0.96;
translate: 0 -4px;
transition-duration: 140ms;
transition-timing-function: var(--ease-in);
}
@starting-style {
:is(.run-list, .account-menu):not([hidden]) { opacity: 0; scale: 0.96; translate: 0 -6px; }
}


.confirm-dialog {
transition: opacity var(--t-quick) var(--ease-out), scale var(--t-pop) var(--spring),
display var(--t-pop) allow-discrete, overlay var(--t-pop) allow-discrete;
}
.confirm-dialog:not([open]) {
opacity: 0;
scale: 0.96;
transition-duration: 150ms;
transition-timing-function: var(--ease-in);
}
@starting-style { .confirm-dialog[open] { opacity: 0; scale: 0.96; } }
.confirm-dialog::backdrop {
transition: background-color var(--t-base) var(--ease-out), display var(--t-base) allow-discrete,
overlay var(--t-base) allow-discrete;
}
.confirm-dialog:not([open])::backdrop { background-color: transparent; }
@starting-style { .confirm-dialog[open]::backdrop { background-color: transparent; } }


@keyframes arrive {
from { opacity: 0; translate: 0 10px; scale: 0.985; }
}
@keyframes arrive-small {
from { opacity: 0; translate: 0 6px; scale: 0.96; }
}
@keyframes fade-in {
from { opacity: 0; }
}
.bubble, .rail-bubble { animation: arrive var(--t-pop) var(--spring) backwards; }
.bubble.user, .rail-bubble.user { transform-origin: bottom right; }
[dir="rtl"] :is(.bubble.user, .rail-bubble.user) { transform-origin: bottom left; }
.place-card, .plan-card, .decision-card, .step-card, .upload-card, .bubble-action { animation: arrive var(--t-pop) var(--spring) backwards; }

:is(.choice-row, .rail-choices) > * { animation: arrive-small var(--t-pop) var(--spring-pop) backwards; }
:is(.choice-row, .rail-choices) > :nth-child(2) { animation-delay: 30ms; }
:is(.choice-row, .rail-choices) > :nth-child(3) { animation-delay: 60ms; }
:is(.choice-row, .rail-choices) > :nth-child(4) { animation-delay: 90ms; }
:is(.choice-row, .rail-choices) > :nth-child(5) { animation-delay: 120ms; }
:is(.choice-row, .rail-choices) > :nth-child(n + 6) { animation-delay: 150ms; }

:is(.transcript, .rail-transcript) > .is-replayed,
:is(.transcript, .rail-transcript) > .is-replayed * { animation: none; }

:is(.transcript, .rail-transcript) > .is-in-place,
:is(.transcript, .rail-transcript) > .is-in-place * { animation: none; }
:is(.transcript, .rail-transcript).is-arriving { animation: fade-in 320ms var(--ease-out) both; }

.is-entering > * { animation: fade-in var(--t-base) var(--ease-out) both; }
.is-entering > :nth-child(2) { animation-delay: 70ms; }
.is-entering > :nth-child(3) { animation-delay: 140ms; }
.is-entering > :nth-child(4) { animation-delay: 210ms; }
.is-entering > :nth-child(n + 5) { animation-delay: 260ms; }

.conclusion-cards > * { animation: arrive var(--t-pop) var(--spring) backwards; }
.conclusion-cards > :nth-child(2) { animation-delay: 40ms; }
.conclusion-cards > :nth-child(3) { animation-delay: 80ms; }
.conclusion-cards > :nth-child(n + 4) { animation-delay: 120ms; }





:is(.next-step, .rail-next-step, .run-board, .run-error, .run-eta, .login-error,
.welcome-error, .session-dead-banner, .session-form-error, .login-hint, .nodes-notice) {
transition: opacity var(--t-base) var(--ease-out), translate var(--t-pop) var(--settle),
display var(--t-base) allow-discrete;
}
:is(.next-step, .rail-next-step, .run-board, .run-error, .run-eta, .login-error,
.welcome-error, .session-dead-banner, .session-form-error, .login-hint, .nodes-notice)[hidden] {
opacity: 0;
translate: 0 4px;
transition-duration: var(--t-exit);
transition-timing-function: var(--ease-in);
}
@starting-style {
:is(.next-step, .rail-next-step, .run-board, .run-error, .run-eta, .login-error,
.welcome-error, .session-dead-banner, .session-form-error, .login-hint, .nodes-notice):not([hidden]) {
opacity: 0;
translate: 0 4px;
}
}


:is(.next-step, .rail-next-step):not([hidden]) { transition-delay: 200ms, 200ms, 0s; }
.is-resaid { animation: resay 360ms var(--ease-out); }
@keyframes resay { from { opacity: 0.25; } }



.turn-trace { animation: fade-in var(--t-base) var(--ease-out) both; }
.turn-trace.is-leaving { opacity: 0; transition: opacity 160ms var(--ease-in); }


.record-observation {
transition: opacity var(--t-base) var(--ease-out), translate var(--t-pop) var(--spring),
scale var(--t-pop) var(--spring), display var(--t-pop) allow-discrete;
}
.record-observation[hidden] { opacity: 0; scale: 0.98; transition-duration: var(--t-exit); transition-timing-function: var(--ease-in); }
@starting-style { .record-observation:not([hidden]) { opacity: 0; translate: 0 8px; scale: 0.98; } }
.record-list.is-refiltered { animation: fade-in var(--t-base) var(--ease-out); }
.record-observation-done:not([hidden]) { animation: fade-in var(--t-base) var(--ease-out); }


:root { interpolate-size: allow-keywords; }
.rail-status-body {
overflow: clip;
transition: height var(--t-pop) var(--settle), opacity var(--t-base) var(--ease-out), display var(--t-pop) allow-discrete;
}
.rail-status-body[hidden] { height: 0; opacity: 0; transition-duration: var(--t-exit); transition-timing-function: var(--ease-in); }
@starting-style { .rail-status-body:not([hidden]) { height: 0; opacity: 0; } }


:is(.btn-primary, .btn-secondary, .choice-chip, .library-chip, .rail-choice-chip,
.files-open, .rail-drawer, .inspector-toggle, .new-analysis, .dialog-actions button, .composer button[type="submit"],
.rail-composer button, .welcome-recent-row, .run-switch) {
transition: scale var(--t-press) var(--ease-out), background-color var(--t-quick) var(--ease-out),
border-color var(--t-quick) var(--ease-out), color var(--t-quick) var(--ease-out), box-shadow var(--t-quick) var(--ease-out);
}
:is(.btn-primary, .btn-secondary, .choice-chip, .library-chip, .rail-choice-chip,
.files-open, .rail-drawer, .inspector-toggle, .new-analysis, .dialog-actions button, .composer button[type="submit"],
.rail-composer button, .run-switch):active:not(:disabled) { scale: 0.97; }
.welcome-recent-row:active { scale: 0.985; }






:is(.btn-primary, .btn-secondary, .run-actions button, .decision-choices button, .dialog-actions button,
.conclusion-actions button, .rail-next-step-go, .choice-chip, .rail-choice-chip,
.welcome-recent-row, .library-open, .new-analysis, .composer button[type="submit"],
.rail-composer button, .concl-followup button, .concl-related button) {
transition: translate var(--t-quick) var(--ease-out), scale var(--t-press) var(--ease-out),
background-color var(--t-quick) var(--ease-out), border-color var(--t-quick) var(--ease-out),
color var(--t-quick) var(--ease-out), box-shadow var(--t-quick) var(--ease-out);
}
@media (hover: hover) {
:is(.btn-primary, .run-actions button.is-primary, .decision-choices button.is-primary,
.dialog-actions button.is-primary, .conclusion-actions button.is-primary, .rail-next-step-go,
.library-open, .composer button[type="submit"], .rail-composer button):hover:not(:disabled) {
translate: 0 -1px;
box-shadow: var(--shadow-accent);
}
:is(.btn-secondary, .run-actions button:not(.is-primary), .decision-choices button:not(.is-primary),
.dialog-actions button:not(.is-primary), .choice-chip, .rail-choice-chip,
.welcome-recent-row, .new-analysis):hover:not(:disabled) {
translate: 0 -1px;
box-shadow: 0 4px 12px -8px rgba(23, 39, 48, 0.35);
}
}
:is(.btn-primary, .run-actions button, .decision-choices button, .dialog-actions button, .rail-next-step-go,
.choice-chip, .rail-choice-chip, .library-open,
.composer button[type="submit"], .rail-composer button):focus-visible:not(:disabled) {
box-shadow: var(--focus-ring);
}

:is(.run-actions button.is-danger, .dialog-actions button.is-danger, .choice-chip.is-danger,
.rail-choice-chip.is-danger, .run-row-menu button.is-danger):is(:hover, :focus-visible):not(:disabled) {
border-color: var(--red);
background: var(--red-wash);
color: var(--red-ink);
box-shadow: 0 4px 12px -8px rgba(162, 67, 44, 0.55);
}
.dialog-actions button.is-primary.is-danger:is(:hover, :focus-visible):not(:disabled) {
border-color: var(--red-ink);
background: var(--red-ink);
color: var(--surface);
}
:is(.btn-primary, .btn-secondary, .run-actions button, .decision-choices button, .dialog-actions button,
.choice-chip, .rail-choice-chip, .welcome-recent-row, .library-open,
.new-analysis, .composer button[type="submit"], .rail-composer button, .rail-next-step-go):active:not(:disabled) {
translate: 0 0;
box-shadow: none;
}











.page:not([hidden]) { animation: arrive-page 160ms var(--ease-out) backwards; }
html[data-nav="forward"] .page:not([hidden]) { animation-name: arrive-forward; }
html[data-nav="back"] .page:not([hidden]) { animation-name: arrive-back; }
@keyframes arrive-page { from { opacity: 0.6; translate: 0 3px; } }
@keyframes arrive-forward { from { opacity: 0.6; translate: 4px 0; } }
@keyframes arrive-back { from { opacity: 0.6; translate: -4px 0; } }
[dir="rtl"][data-nav="forward"] .page:not([hidden]) { animation-name: arrive-back; }
[dir="rtl"][data-nav="back"] .page:not([hidden]) { animation-name: arrive-forward; }


@media (prefers-reduced-motion: reduce) {
:root { --t-pop: 1ms; --t-sheet: 1ms; --t-press: 1ms; }
*, *::before, *::after {
animation-duration: 1ms !important;
animation-delay: 0ms !important;
animation-iteration-count: 1 !important;
scroll-behavior: auto !important;
}
:is(.btn-primary, .btn-secondary, .choice-chip):active:not(:disabled) { scale: none; }

:is(.btn-primary, .btn-secondary, .run-actions button, .decision-choices button, .dialog-actions button,
.conclusion-actions button, .rail-next-step-go, .choice-chip, .rail-choice-chip,
.welcome-recent-row, .library-open, .new-analysis, .composer button,
.rail-composer button):hover { translate: none; }

:root { --t-exit: 1ms; }

.has-chart-hover [data-hover] { transition: none; }
:is(.next-step, .rail-next-step):not([hidden]) { transition-delay: 0s; }
}







.run-board-toggle { flex: 0 0 auto; align-self: center; }
.chat-page:is([data-mode="running"], [data-mode="gate"], [data-mode="failed"]) .run-board.is-compact {
max-height: none;
overflow: visible;
}
.chat-page:is([data-mode="running"], [data-mode="gate"], [data-mode="failed"]) .run-board.is-compact .run-head {
align-items: center;
flex-wrap: nowrap;
}
.chat-page:is([data-mode="running"], [data-mode="gate"], [data-mode="failed"]) .run-board.is-compact .run-kicker { margin-bottom: 4px; }
.chat-page:is([data-mode="running"], [data-mode="gate"], [data-mode="failed"]) .run-board #run-headline { margin: 0; font-size: var(--type-headline); }
.chat-page:is([data-mode="running"], [data-mode="gate"], [data-mode="failed"]) .run-board.is-compact .run-count { font-size: var(--type-note); }
.chat-page:is([data-mode="running"], [data-mode="gate"], [data-mode="failed"]) .run-board.is-compact .run-progress { margin: 10px 0 0; }


.chat-page:is([data-mode="running"], [data-mode="gate"], [data-mode="failed"]) .run-board.is-compact .run-split {
visibility: hidden;
transition: visibility 0s linear var(--t-exit);
}
.chat-page:not([data-mode="running"]):not([data-mode="gate"]):not([data-mode="failed"]) .run-board-toggle { display: none; }



.welcome-error {
margin: 6px 0 0;
padding: 8px 12px;
border: 1px solid var(--red-line);
border-radius: var(--r-s);
background: var(--red-wash);
color: var(--red-ink);
font-size: var(--type-read);
line-height: 1.5;
}
.welcome-error[hidden] { display: none; }





.next-step[data-compact="1"] { flex-wrap: nowrap; gap: 10px; padding-block: 8px; padding-inline: 14px 10px; }
.next-step[data-compact="1"] #next-step-title { display: none; }
.next-step[data-compact="1"] .next-step-text {
display: flex;
flex: 1 1 auto;
flex-wrap: wrap;
align-items: center;
gap: 4px 12px;
min-width: 0;
}
.next-step[data-compact="1"] .next-step-kicker { display: inline; margin: 0; }
.next-step[data-compact="1"] .next-step-more { margin-top: 0; }
.next-step[data-compact="1"] .run-actions { flex: none; width: auto; }


.next-step[data-compact="2"] { flex-wrap: wrap; gap: 8px 12px; padding-block: 8px; padding-inline: 14px 10px; }
.next-step[data-compact="2"] .next-step-text {
display: flex;
flex: 1 1 18rem;
flex-wrap: wrap;
align-items: baseline;
gap: 2px 10px;
min-width: 0;
}
.next-step[data-compact="2"] .next-step-kicker { display: inline; margin: 0; }
.next-step[data-compact="2"] #next-step-title { font-size: var(--type-read); line-height: 1.45; }
.next-step[data-compact="2"] .next-step-more { flex-basis: 100%; margin-top: 0; }
.next-step[data-compact="2"] .run-actions { flex: none; width: auto; }


.run-name-hint {
color: var(--muted);
font-family: var(--font-ui);
font-size: var(--type-meta);
font-weight: 500;
}


.tree-names-toggle {
display: block;
margin: 6px 0 0;
padding: 0;
border: 0;
background: none;
color: var(--teal);
font: 650 var(--type-control)/1.5 var(--font-ui);
text-decoration: underline;
text-underline-offset: 2px;
cursor: pointer;
}




.concl-hero-canvas { overflow-y: hidden; }


.chat-page[data-mode="failed"] .run-error[data-tone="quiet"] {
border-color: var(--line);
background: var(--wash);
color: var(--ink-2);
}


.nodes-notice {
margin: 8px 0 0;
max-width: 56rem;
padding: 8px 12px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--wash);
color: var(--ink-2);
font-size: var(--type-read);
line-height: 1.55;
}
.nodes-notice[hidden] { display: none; }
.nodes-notice[data-tone="problem"] { border-color: var(--red-line); background: var(--red-wash); color: var(--red-ink); }



html[data-auth="out"] .app { visibility: hidden; }
html[data-auth="out"] #login-gate[hidden] { display: flex; }


.delib-badge:empty { display: none; }
.delib-badge {
padding: 2px 8px;
border-radius: var(--r-pill);
background: var(--teal);
color: var(--surface);
font: 700 var(--type-meta)/1.4 var(--font-ui);
}
.step-card.is-done .delib-badge { background: var(--faint); }




@media (max-width: 680px) {
.run-board #run-headline { margin-bottom: 2px; font-size: var(--type-headline); }
.run-board .run-kicker { margin-bottom: 4px; }
.run-board .run-progress { margin-top: 6px; }
.chat-page[data-mode="failed"] .run-error:not(.is-open) {
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
cursor: pointer;


padding-bottom: 0;
border-bottom: 10px solid var(--red-wash);
}
.chat-page[data-mode="failed"] .run-error[data-tone="quiet"]:not(.is-open) { border-bottom-color: var(--wash); }
}






.run-board {
border: 1px solid var(--line);
border-radius: var(--r-l);
background: var(--surface-2);
box-shadow: var(--shadow-2);
}
.chat-page:is([data-mode="running"], [data-mode="gate"], [data-mode="failed"]) .run-board.is-compact { padding: 12px 18px; }
.chat-page:is([data-mode="running"], [data-mode="gate"], [data-mode="failed"]) .run-board:not(.is-compact) { padding: 16px 20px 18px; }

.run-details {
display: grid;
grid-template-rows: 1fr;
opacity: 1;
transition:
grid-template-rows var(--t-pop) var(--ease-out),
opacity var(--t-base) var(--ease-out);
}
.run-details-inner {
min-height: 0;
overflow: hidden;
}
.chat-page:is([data-mode="running"], [data-mode="gate"], [data-mode="failed"]) .run-board.is-compact .run-details {
grid-template-rows: 0fr;
opacity: 0;
transition:
grid-template-rows var(--t-exit) ease-in,
opacity var(--t-quick) ease-in;
}


.chat-page:is([data-mode="running"], [data-mode="gate"], [data-mode="failed"]) .run-board .run-split { height: min(360px, 44vh); }
.chat-page:is([data-mode="running"], [data-mode="gate"], [data-mode="failed"]) .run-board:not(.is-compact) { max-height: none; overflow: visible; }

.chat-page[data-mode="running"] .transcript,
.chat-page[data-mode="gate"] .transcript,
.chat-page[data-mode="failed"] .transcript {
-webkit-mask: linear-gradient(to bottom, transparent 0, #000 18px);
mask: linear-gradient(to bottom, transparent 0, #000 18px);
}
.run-split .run-steps { padding-inline-end: 4px; }


.run-board-toggle {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 30px;
padding: 0 12px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--ink-2);
font: 650 var(--type-control)/1 var(--font-ui);
text-decoration: none;
cursor: pointer;
}
.run-board-chevron { transition: transform var(--t-base) var(--ease-out); }
.run-board-toggle[aria-expanded="true"] .run-board-chevron { transform: rotate(180deg); }





.is-streaming > .stream-text > :is(p, .rich-head):last-child::after,
.is-streaming > .stream-text > :is(ul, ol):last-child > li:last-child::after {
content: "";
display: inline-block;
width: 2px;
height: 1.05em;
margin-inline-start: 2px;
vertical-align: -0.18em;
border-radius: var(--r-2xs);
background: var(--teal);
opacity: 0.55;
animation: stream-caret 1s ease-in-out infinite;
}
@keyframes stream-caret { 50% { opacity: 0.1; } }
@media (prefers-reduced-motion: reduce) {
.is-streaming > .stream-text :is(p, .rich-head, li)::after { animation: none; }
.reply-copy { transition: none; }
}




.composer .autopilot-switch {
display: inline-flex;
align-items: center;
gap: 7px;
height: 30px;
margin-inline-end: 6px;
padding-block: 0;
padding-inline: 8px 10px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--muted);
font: 650 var(--type-control)/1 var(--font-ui);
white-space: nowrap;
cursor: pointer;
transition: border-color var(--t-quick) var(--ease-out), background-color var(--t-quick) var(--ease-out),
color var(--t-quick) var(--ease-out);
}
.composer .autopilot-switch[hidden] { display: none; }
.autopilot-track {
position: relative;
width: 26px;
height: 16px;
border-radius: var(--r-pill);
background: var(--line-strong);
transition: background-color var(--t-base) var(--ease-out);
}
.autopilot-thumb {
position: absolute;
top: 2px;
inset-inline-start: 2px;
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--surface);
box-shadow: 0 1px 2px rgba(23, 39, 48, 0.25);
transition: translate var(--t-pop) var(--spring);
}
.composer .autopilot-switch[aria-checked="true"] { border-color: var(--teal-line); background: var(--teal-wash); color: var(--teal-deep, var(--teal-deep)); }
.autopilot-switch[aria-checked="true"] .autopilot-track { background: var(--teal); }
.autopilot-switch[aria-checked="true"] .autopilot-thumb { translate: calc(10px * var(--inline-sign)) 0; }
@media (hover: hover) {
.composer .autopilot-switch:hover { border-color: var(--teal); color: var(--ink); }
.composer .autopilot-switch[aria-checked="false"]:hover .autopilot-track { background: var(--line-strong); }
}
.composer .autopilot-switch:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.composer .autopilot-switch:active { scale: 0.97; }


@media (max-width: 520px) {
.composer .autopilot-switch { gap: 6px; padding-inline: 6px 8px; }
}


.autopilot-intro {
box-sizing: border-box;
display: flex;
align-items: center;
gap: 10px;
width: min(100%, max(var(--chat-col, 52rem), 40rem));
margin: 0 auto 8px;
padding-block: 6px;
padding-inline: 12px 6px;
border: 1px solid var(--teal-line);
border-radius: var(--r-m);
background: var(--teal-wash);
color: var(--teal-deep);
font-size: var(--type-read);
line-height: 1.45;
}
.autopilot-intro[hidden] { display: none; }
.autopilot-intro > #autopilot-line-text { flex: 1; min-width: 0; }

.autopilot-intro-change, .stage-live-menu-change { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; flex: 0 0 auto; color: var(--muted); font-size: var(--type-control); }
.autopilot-mode {
padding: 4px 10px;
border: 1px solid var(--teal-line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--teal-deep);
font: 650 var(--type-control)/1.2 var(--font-ui);
cursor: pointer;
}
.autopilot-mode:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (hover: hover) {
.autopilot-mode:hover { border-color: var(--teal); color: var(--ink); }
}
.autopilot-intro-close {
flex: 0 0 auto;
padding: 4px 10px;
border: 1px solid var(--teal-line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--teal-deep);
font: 650 var(--type-control)/1.2 var(--font-ui);
cursor: pointer;
}
.autopilot-intro-close:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (hover: hover) {
.autopilot-intro-close:hover { border-color: var(--teal); color: var(--ink); }
}

.composer:has(.autopilot-switch:not([hidden])) { width: min(100%, max(var(--chat-col, 52rem), 40rem)); }
.composer textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }



:is(.composer, .rail-composer) textarea:placeholder-shown {
-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
[dir="rtl"] :is(.composer, .rail-composer) textarea:placeholder-shown {
-webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent);
mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent);
}
.rail-composer textarea::placeholder { white-space: nowrap; }

html[data-i18n="pending"] body { visibility: hidden; }






html[data-boot-page] .content,
html[data-boot-page] .top-nav { visibility: hidden; }
html[data-boot-page] .content { position: relative; }
html[data-boot-page]:not([data-auth="out"]) .content::before {
content: "";
visibility: visible;
position: absolute;
inset: 32px clamp(16px, 7vw, 120px) auto;
height: 320px;
box-sizing: border-box;
pointer-events: none;

padding: 24px;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background:
linear-gradient(var(--surface-3), var(--surface-3)) 24px 24px / 32% 20px no-repeat,
linear-gradient(var(--surface-3), var(--surface-3)) 24px 70px / calc(74% - 48px) 12px no-repeat,
linear-gradient(var(--surface-3), var(--surface-3)) 24px 94px / calc(56% - 48px) 12px no-repeat,
linear-gradient(var(--surface-3), var(--surface-3)) 24px 138px / calc(100% - 48px) 156px no-repeat,
var(--surface);
opacity: 0;
animation: boot-in 280ms ease-out 450ms forwards, boot-breathe 1.4s ease-in-out 730ms infinite alternate;
}
html[data-boot-page]:not([data-auth="out"]) .product-header::after {
content: "";
position: absolute;
bottom: -1px;
left: 0;
width: 28%;
height: 2px;
pointer-events: none;
background: linear-gradient(90deg, transparent, var(--teal), transparent);
opacity: 0;
animation: boot-in 280ms ease-out 450ms forwards, boot-sweep 1.3s ease-in-out 450ms infinite;
}
@keyframes boot-in { to { opacity: 1; } }
@keyframes boot-breathe { from { opacity: 1; } to { opacity: 0.72; } }
@keyframes boot-sweep { from { transform: translateX(-100%); } to { transform: translateX(360%); } }
html[dir="rtl"][data-boot-page] .product-header::after { animation-direction: normal, reverse; }
@media (prefers-reduced-motion: reduce) {
html[data-boot-page]:not([data-auth="out"]) .content::before,
html[data-boot-page]:not([data-auth="out"]) .product-header::after { animation: boot-in 1ms linear 450ms forwards; }
}




body.is-opening-run .content > .page,
body.is-opening-run #rail-body {
opacity: 0.4;
pointer-events: none;
transition: opacity var(--t-base) var(--ease-out);
}




.run-log .log-line { display: inline; }
.run-log .log-tool { color: var(--muted); }
.run-log .log-beat { color: var(--subtle); }
.run-log .log-line.is-new { animation: log-in 420ms var(--ease-out) both; }
@keyframes log-in { from { opacity: 0; } to { opacity: 1; } }
.run-log.is-live::after {
content: "";
display: inline-block;
width: 0.55em;
height: 1.05em;
margin-inline-start: 1px;
vertical-align: -0.2em;
background: var(--teal);
opacity: 0.5;
animation: log-caret 1.1s steps(2, jump-none) infinite;
}
@keyframes log-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
.run-log .log-line.is-new, .run-log.is-live::after { animation: none; }
}
.run-log-status {
flex: 0 0 auto;
margin: 6px 0 0;
padding-top: 6px;
border-top: 1px dashed var(--line-soft);
color: var(--subtle);
font: var(--type-meta)/1.4 var(--font-mono);
font-variant-numeric: tabular-nums;
}
.run-log-status[hidden] { display: none; }
.run-log-status::before {
content: "";
display: inline-block;
width: 6px;
height: 6px;
margin-inline-end: 7px;
border-radius: 50%;
background: var(--teal);
vertical-align: 1px;
animation: log-pulse 1.6s ease-in-out infinite;
}
@keyframes log-pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .run-log-status::before { animation: none; } }


.run-reconnecting[hidden] { display: none; }
.run-board.is-reconnecting .run-log-status::before { animation: none; background: var(--amber-ink); opacity: 0.6; }
.run-board.is-reconnecting .run-log.is-live::after { animation: none; opacity: 0.3; }

.offline-banner {
position: fixed;
top: calc(var(--header-h, 56px) + var(--space-2));
left: 50%;
transform: translateX(-50%);
z-index: 60;
max-width: min(92vw, 640px);
margin: 0;
padding: var(--space-1) var(--space-4);
border: 1px solid var(--amber-line);
border-radius: 999px;
background: var(--amber-wash);
color: var(--amber-ink);
font-size: var(--type-note);
text-align: center;
box-shadow: 0 2px 10px rgb(0 0 0 / 0.08);
}
.offline-banner[hidden] { display: none; }






.autoconfirm-card {

flex: none;
align-self: flex-start;
width: min(680px, 100%);
padding: var(--space-3) var(--space-4);
border: 1px solid var(--teal-line);
border-radius: var(--r-m);
background: linear-gradient(180deg, var(--teal-wash), var(--surface));
animation: arrive var(--t-pop) var(--spring) backwards;
transition: opacity var(--t-exit) var(--ease-in), translate var(--t-exit) var(--ease-in),
grid-template-rows 360ms var(--ease-out), margin 360ms var(--ease-out), padding 360ms var(--ease-out);
display: grid;
grid-template-rows: 1fr;
overflow: hidden;
}
.autoconfirm-card > .autoconfirm-body { min-height: 0; }
.autoconfirm-card.is-done { opacity: 0; translate: 0 -4px; grid-template-rows: 0fr; padding-block: 0; margin-block: calc(var(--space-2) * -1); border-width: 0; }
.autoconfirm-body { display: grid; gap: 6px; }
.autoconfirm-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; color: var(--teal-ink); font: 700 var(--type-meta)/1.4 var(--font-ui); letter-spacing: 0.04em; }
.autoconfirm-title { color: var(--ink); font-weight: 650; letter-spacing: 0; }
.autoconfirm-title::before { content: "·"; margin-inline-end: 8px; color: var(--faint); }

.autoconfirm-spark { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.autoconfirm-spark::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--teal); opacity: 0; animation: autoconfirm-ping 1.4s var(--ease-out) infinite; }
.autoconfirm-choice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; color: var(--ink-2); font-size: var(--type-note); }
.autoconfirm-choice b { color: var(--ink); font-weight: 650; }
.autoconfirm-why { margin: 0; color: var(--muted); font-size: var(--type-note); line-height: 1.55; }
.autoconfirm-foot { display: flex; align-items: center; gap: var(--space-3); margin-top: 2px; }

.autoconfirm-bar { position: relative; flex: 1; height: 4px; overflow: hidden; border-radius: 999px; background: var(--teal-line); }
.autoconfirm-bar-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--teal); transform-origin: left center; animation: autoconfirm-count linear both; }
[dir="rtl"] .autoconfirm-bar-fill { transform-origin: right center; }
.autoconfirm-take { flex: none; min-height: 28px; }

.autoconfirm-note {
position: fixed;
top: calc(var(--header-h) + 10px);
left: 50%;
z-index: 60;
width: min(420px, calc(100vw - 32px));
padding: 10px 14px;
border: 1px solid var(--teal-line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-2);
translate: -50% 0;
animation: autoconfirm-drop var(--t-pop) var(--spring) backwards;
transition: opacity var(--t-exit) var(--ease-in), translate var(--t-exit) var(--ease-in);
}
.autoconfirm-note[hidden] { display: none; }
.autoconfirm-note .autoconfirm-kicker { font-size: var(--type-meta); }
.autoconfirm-note.is-done { border-color: var(--teal); }
.autoconfirm-note.is-leaving { opacity: 0; translate: -50% -8px; }
.autoconfirm-done { margin: 0; color: var(--teal-ink); font: 650 var(--type-note)/1.4 var(--font-ui); animation: fade-in var(--t-quick) var(--ease-out) both; }

@keyframes autoconfirm-count { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes autoconfirm-ping { 0% { opacity: 0.6; scale: 0.6; } 100% { opacity: 0; scale: 1.6; } }
@keyframes autoconfirm-drop { from { opacity: 0; translate: -50% -10px; } }
@media (prefers-reduced-motion: reduce) {
.autoconfirm-card, .autoconfirm-note { animation: none; transition: none; }
.autoconfirm-spark::after { animation: none; }
}


.next-step .notify-toggle {
display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; padding: 0; margin: 0;
border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted);
text-decoration: none; cursor: pointer; vertical-align: middle;
}
.next-step .notify-toggle[hidden] { display: none; }
.next-step .notify-toggle[aria-pressed="true"] { color: var(--teal-deep, var(--teal)); border-color: var(--teal-line); background: var(--teal-wash); }
.next-step .notify-toggle:disabled { opacity: 0.5; cursor: default; }
.next-step .notify-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); }
}




@layer legacy {


.app-body {
flex: 1;
min-height: 0;
display: flex;
}
.app-body > .content {
flex: 1;
min-width: 0;
}


.top-nav {
position: relative;
flex: none;
display: flex;
flex-direction: column;
gap: 4px;
width: 76px;


padding: 10px 4px;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-width: none;
border-inline-end: 1px solid var(--line-soft);
background: var(--surface-2);
}
.top-nav::-webkit-scrollbar { display: none; }
.top-nav > a {
position: relative;
z-index: 1;
display: flex;
flex: none;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
min-height: 56px;
padding: 7px 0 6px;
border-radius: var(--r-m);
color: var(--muted);
font: 600 var(--type-meta)/1.15 var(--font-ui);
text-align: center;
text-decoration: none;



-webkit-hyphens: auto;
hyphens: auto;


overflow-wrap: break-word;
transition: color var(--t-quick) var(--ease-out), background-color var(--t-quick) var(--ease-out);
}
.top-nav > a[hidden] { display: none; }


body:not(.is-expert) .top-nav:not(.is-extra-open) > a:is([data-page="dashboard"], [data-page="qc"]):not(.active) { display: none; }
.top-nav > .nav-extra {
position: relative;
z-index: 1;
display: flex;
flex: none;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
min-height: 56px;
padding: 7px 0 6px;
border: 0;
border-radius: var(--r-m);
background: transparent;
color: var(--muted);
font: 600 var(--type-meta)/1.15 var(--font-ui);
cursor: pointer;
}
.top-nav > .nav-extra[hidden] { display: none; }
.top-nav > .nav-extra:hover { color: var(--ink); background: var(--wash); }
.top-nav > .nav-extra:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.top-nav:not(.is-extra-open) .nav-extra-close, .top-nav.is-extra-open .nav-extra-open { display: none; }


.top-nav > a > span { max-width: 100%; min-width: 0; }
.nav-icon {
flex: none;
width: 22px;
height: 22px;
fill: none;
stroke: currentColor;
stroke-width: 1.5;
stroke-linecap: round;
stroke-linejoin: round;
}


.top-nav > a:hover { color: var(--ink-2); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.top-nav > a.active,
.top-nav > a.active:hover { color: var(--teal-ink); background: var(--teal-wash); }
.top-nav > a.active { font-weight: 700; }
.top-nav > a:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }



.top-nav.has-pill > a.active,
.top-nav.has-pill > a.active:hover { background: transparent; }
.nav-pill {
position: absolute;
top: 0;
left: 0;
z-index: 0;
border-radius: var(--r-m);
background: var(--teal-wash);
pointer-events: none;
opacity: 0;
}
.nav-pill.is-placed { opacity: 1; }
.nav-pill.is-moving {
transition: translate var(--t-pop) var(--spring), width var(--t-pop) var(--spring),
height var(--t-pop) var(--spring), opacity var(--t-quick) var(--ease-out);
}



.top-nav > #nav-gallery:not([hidden]) + a { margin-block-start: 9px; }
.top-nav > #nav-gallery:not([hidden]) + a::before {
content: "";
position: absolute;
top: -7px;
inset-inline: 14px;
border-top: 1px solid var(--line);
}



.top-nav > a[data-page="qc"]:not([hidden]) { margin-block-start: 9px; }
.top-nav > a[data-page="qc"]:not([hidden])::before {
content: "";
position: absolute;
top: -7px;
inset-inline: 14px;
border-top: 1px solid var(--line);
}



.top-nav > a:not([hidden]):is(#nav-nodes, #nav-admin) { margin-block-start: auto; }
.top-nav > a:not([hidden]):is(#nav-nodes, #nav-admin)::before {
content: "";
position: absolute;
top: -5px;
inset-inline: 14px;
border-top: 1px solid var(--line);
}
.top-nav #nav-nodes:not([hidden]) ~ #nav-admin { margin-block-start: 0; }
.top-nav #nav-nodes:not([hidden]) ~ #nav-admin::before { content: none; }


.top-nav > a > .tab-count {
position: absolute;
top: 3px;
inset-inline-end: 8px;
min-width: 16px;
height: 16px;
margin: 0;
padding: 0 4px;
}



.top-nav > a.has-new::after {
content: "";
position: absolute;
top: 5px;
inset-inline-end: calc(50% - 16px);
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--red);
box-shadow: 0 0 0 2px var(--surface-2);
}
.top-nav > a.has-new:has(> .tab-count:not([hidden]))::after { top: 0; inset-inline-end: 5px; }



@media (min-width: 600px) {
.top-nav:not(.has-places) { display: none; }
}


.nav-expand,
.nav-history { display: none; }
@media (min-width: 1200px) {
.top-nav { transition: width var(--t-quick) var(--ease-out); }


.nav-expand {
position: relative;
display: flex;
flex: none;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
min-height: 52px;
margin-block-end: 9px;
padding: 6px 2px 5px;
border: 0;
border-radius: var(--r-m);
background: none;
color: var(--muted);
font: 600 var(--type-meta)/1.15 var(--font-ui);
cursor: pointer;
}
.nav-expand::after {
content: "";
position: absolute;
bottom: -6px;
inset-inline: 14px;
border-top: 1px solid var(--line);
}
.nav-expand-close,
.top-nav.is-wide .nav-expand-open { display: none; }
.top-nav.is-wide .nav-expand-close { display: inline; }
.nav-expand:hover { color: var(--ink-2); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-expand:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }

.top-nav.is-wide { width: 232px; padding-inline: 10px; }
.top-nav.is-wide .nav-expand {
flex-direction: row;
justify-content: flex-start;
gap: 12px;
min-height: 40px;
padding: 8px 12px;
font-size: var(--type-control);
}
.top-nav.is-wide .nav-expand .nav-icon { scale: -1 1; }

.top-nav.is-wide > a {
flex-direction: row;
justify-content: flex-start;
gap: 12px;
min-height: 40px;
padding: 8px 12px;
font-size: var(--type-control);
text-align: start;
overflow-wrap: normal;
}
.top-nav.is-wide > a > .tab-count { position: static; margin-inline-start: auto; }


.top-nav.is-wide > a.has-new::after { position: static; flex: none; margin-inline-start: auto; box-shadow: none; }
.top-nav.is-wide > a.has-new:has(> .tab-count:not([hidden]))::after { margin-inline-start: -4px; }


.top-nav.is-wide .nav-history:not([hidden]) {
display: flex;
flex: 1 1 auto;
flex-direction: column;
min-height: 0;
margin-block-start: 10px;
padding-block-start: 10px;
border-top: 1px solid var(--line);
}
.nav-history-head {
margin: 0 0 4px;
padding-inline: 12px;
color: var(--subtle);
font: 700 var(--type-meta)/1.4 var(--font-ui);
}
.nav-history-rows {
min-height: 0;
margin: 0;
padding: 0;
overflow-y: auto;
list-style: none;
scrollbar-width: thin;
}
.nav-run,
.nav-history-all {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
min-height: 34px;
padding: 6px 12px;
border: 0;
border-radius: var(--r-s);
background: none;
color: var(--ink-2);
font: 500 var(--type-note)/1.3 var(--font-ui);
text-align: start;
cursor: pointer;
}
.nav-run-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-run:hover,
.nav-history-all:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-run[aria-current="true"] {
background: var(--surface);
box-shadow: inset 0 0 0 1px var(--line);
color: var(--ink);
font-weight: 650;
cursor: default;
}
.nav-run:focus-visible,
.nav-history-all:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.nav-run-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.nav-run-dot.is-running { background: var(--teal); }
.nav-run-dot.is-gate { background: var(--amber); }
.nav-run-dot.is-queued { box-shadow: inset 0 0 0 1.5px var(--subtle); }
.nav-history-all { flex: none; margin-block-start: 2px; color: var(--teal-ink); font-weight: 600; }

.top-nav.is-wide .nav-history:not([hidden]) ~ a:not([hidden]):is(#nav-nodes, #nav-admin) { margin-block-start: 9px; }
.top-nav.is-wide .nav-history:not([hidden]) ~ #nav-nodes:not([hidden]) ~ #nav-admin { margin-block-start: 0; }
}
@media (min-width: 1200px) and (prefers-reduced-motion: reduce) {
.top-nav { transition: none; }
}



.top-nav > .account {
position: static;
flex: none;
display: block;
margin-block-start: auto;
padding-block-start: 9px;
border-top: 1px solid var(--line);
}
.top-nav > .account[hidden] { display: none; }
.top-nav > :is(#nav-nodes, #nav-admin):not([hidden]) ~ .account { margin-block-start: 0; padding-block-start: 0; border-top: 0; }
.top-nav > .account .account-button {
flex-direction: column;
justify-content: center;
gap: 4px;
width: 100%;
min-height: 56px;
padding: 6px 2px 5px;
}
.top-nav > .account .account-avatar { width: 26px; height: 26px; font-size: var(--type-note); }
.top-nav > .account .account-button b { max-width: 100%; }
.top-nav > .account .account-caret { display: none; }
.top-nav > .account .account-badge { top: 2px; inset-inline-start: calc(50% + 4px); }


.top-nav > .account .account-menu {
position: fixed;
top: auto;
bottom: 10px;
inset-inline-start: 84px;
max-height: calc(100dvh - 20px);
}
@media (min-width: 1200px) {
.top-nav.is-wide > .account .account-button {
flex-direction: row;
justify-content: flex-start;
gap: 10px;
min-height: 44px;
padding: 8px 10px;
text-align: start;
}
.top-nav.is-wide > .account .account-button b { flex: 1; min-width: 0; }
.top-nav.is-wide > .account .account-badge { inset-inline-start: 26px; }
.top-nav.is-wide > .account .account-menu { inset-inline-start: 240px; }
}

@media (max-width: 599px) {
.app-body { flex-direction: column; }
.top-nav {
order: 2;
flex-direction: row;
gap: 2px;
width: auto;
padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
overflow-x: auto;
overflow-y: hidden;
border-inline-end: 0;
border-top: 1px solid var(--line-soft);
}
.top-nav:not(.has-reports) { display: none; }
.top-nav > a, .top-nav > .nav-extra {
flex: 1 1 0;
min-width: 58px;
min-height: 52px;
padding-inline: 2px;
}


.top-nav > a.is-away { display: none; }
.top-nav > a:not([hidden]):is(#nav-nodes, #nav-admin),
.top-nav > a[data-page="qc"]:not([hidden]) { margin: 0; }
.top-nav > a:not([hidden]):is(#nav-nodes, #nav-admin)::before,
.top-nav > a[data-page="qc"]:not([hidden])::before { content: none; }
}

@media (max-width: 599px) and (pointer: coarse) {
body:has(:is(textarea, input:not([type="checkbox"]):not([type="radio"]), [contenteditable="true"]):focus) .top-nav { display: none; }
}


.product-header { container: product-header / inline-size; }
.product-brand { flex: none; }
.header-actions {
flex: 0 1 auto;
justify-content: flex-end;
min-width: 0;
flex-wrap: nowrap;
}
.header-actions > * { flex: none; }
.header-label, .header-meta small, .header-meta b, .account-button b { white-space: nowrap; }
:is(.files-open, .record-open, .rail-drawer, .inspector-toggle, .new-analysis) { height: 36px; }


.header-view-switch { box-sizing: border-box; height: 36px; align-items: center; }



.product-header > .header-view-switch { flex: none; margin-inline-end: auto !important; }


.header-actions > .header-meta { flex: 0 1 auto; min-width: 0; }
.run-switch { min-width: 0; min-height: 32px; padding-inline: 4px; border-radius: var(--r-xs); }
.run-switch b { min-width: 0; }




@container product-header (max-width: 1500px) {
.demo-long { display: none; }
.demo-short { display: inline; }
}
@container product-header (max-width: 1180px) {
.suite-sub { display: none; }
.account-button b, .account-caret { display: none; }
.account-button { padding: 3px; }
}
@container product-header (max-width: 1100px) {
.header-meta { gap: 6px; padding: 5px 8px; }
.header-meta small, .slot-meter { display: none; }
}
@container product-header (max-width: 960px) {
.product-brand { gap: 0; }
.product-brand > div { display: none; }
}
@container product-header (max-width: 860px) {
.header-actions { gap: 6px; }
:is(.files-open, .record-open, .rail-drawer, .inspector-toggle) .header-label {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
clip-path: inset(50%);
}
:is(.files-open, .record-open, .rail-drawer, .inspector-toggle) { justify-content: center; min-width: 36px; padding: 0 10px; }
}
@container product-header (max-width: 640px) {
.new-analysis .header-label {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
clip-path: inset(50%);
}
.new-analysis { justify-content: center; min-width: 36px; padding: 0 10px; }



#files-open, #record-open { display: none; }


.header-view-switch { display: none !important; }
.header-meta { gap: 4px; padding: 3px 4px; border-radius: var(--r-m); }

.header-meta:has(#demo-pill:not([hidden])) .new-analysis { display: none; }
.demo-pill button { min-width: 28px; min-height: 28px; }
}
@container product-header (max-width: 480px) {
.header-actions { gap: 4px; }
.evo-logo { width: 32px; height: 32px; }
}
@media (max-width: 860px) {
.product-header { gap: 10px; padding-inline: 14px; }
}
@media (max-width: 599px) {
.product-header { min-height: 56px; gap: 8px; padding-inline: 10px; }
}


}

@layer legacy {






.tree-explorer {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
margin: var(--space-1) var(--page-gutter) var(--space-6);
overflow: hidden;



container: tx / inline-size;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-1);
}
.tree-explorer[hidden] { display: none; }

.tx-toolbar {
gap: 8px 14px;
padding: 10px 16px;
border-bottom: 1px solid var(--line);
}
.tx-control { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--type-control); }
.tx-control[hidden] { display: none; }
.tx-select,
.tx-search-input,
.tx-group-input,
.tx-filter-find,
.tx-site-input,
.tx-input {
min-height: 30px;
padding: 4px 8px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: var(--type-control)/1.3 var(--font-ui);
}
.tx-select { max-width: 12rem; }


.tx-toolbar .tx-field-select { width: 9rem; }
.tx-toolbar .tx-branch-select { width: 10rem; }
.tx-segmented { display: inline-flex; }
.tx-site { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.tx-search-wrap { position: relative; display: inline-flex; align-items: center; }

.tx-site-pick,
.tx-filter-suggest {
position: absolute;
top: calc(100% + 4px);
inset-inline-start: 0;
z-index: 30;
display: flex;
flex-direction: column;
width: min(20rem, 86vw);
max-height: 300px;
padding: 6px;
overflow: auto;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: 0 14px 36px rgba(24, 58, 62, 0.16);
}
.tx-site-pick[hidden],
.tx-filter-suggest[hidden] { display: none; }
.tx-site-pick-head,
.tx-filter-suggest-head { margin: 2px 6px 6px; color: var(--muted); font-size: var(--type-meta); line-height: 1.45; }
.tx-filter-opt + .tx-filter-suggest-head { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.tx-suggest-site b, .tx-suggest-gene b { font-family: var(--font-mono, ui-monospace, monospace); }
.tx-site-pick-group { margin: 8px 8px 2px; color: var(--subtle); font: 700 var(--type-meta)/1.3 var(--font-ui); }
.tx-site-opt,
.tx-filter-opt {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
padding: 7px 8px;
border: 0;
border-radius: var(--r-s);
background: none;
color: var(--ink);
font: 600 var(--type-note)/1.3 var(--font-ui);
text-align: start;
cursor: pointer;
}
.tx-site-opt small,
.tx-filter-opt small { color: var(--muted); font-weight: 500; font-size: var(--type-meta); }
.tx-site-opt:hover, .tx-site-opt:focus-visible,
.tx-filter-opt:hover, .tx-filter-opt:focus-visible { background: var(--teal-wash); color: var(--teal-ink); outline: none; }
.tx-site-opt.is-current { box-shadow: inset 0 0 0 1px var(--teal-line); }
.tx-site[hidden] { display: none; }
.tx-site-input { width: 8rem; }
.tx-search-wrap { flex: 1 1 auto; min-width: 0; }
.tx-search-wrap .tx-search-input { width: 100%; }
.tx-filter-val { padding: 0 2px; border: 0; border-radius: var(--r-xs); background: none; color: inherit; font: inherit; cursor: pointer; }
.tx-filter-val:hover, .tx-filter-val:focus-visible { background: var(--teal-wash); outline: none; }
.tx-filter-val.is-paused { color: var(--subtle); text-decoration: line-through; }
.tx-filter-suggest { width: min(24rem, 90vw); }
.tx-filter-opt b { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.tx-filter-opt small { white-space: nowrap; }
.tx-site-note { color: var(--amber-ink); font-size: var(--type-meta); max-width: 22rem; }
.tx-segmented[hidden] { display: none; }
.tx-search { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.tx-search-input { flex: 1; min-width: 0; }
.tx-search-count { color: var(--muted); font-size: var(--type-note); white-space: nowrap; }
.tx-toggle { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: var(--type-control); cursor: pointer; white-space: nowrap; }
.tx-toggle[hidden] { display: none; }
.tx-toggle input { accent-color: var(--teal); margin: 0; }


.tx-zone { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.tx-zone-find { flex: 1 1 15rem; }
.tx-sep { flex: none; width: 1px; height: 22px; background: var(--line-soft); }


.tx-nav {
position: absolute;
top: 10px;
inset-inline-end: 10px;
z-index: 3;
display: flex;
flex-direction: column;
gap: 2px;
padding: 3px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: color-mix(in srgb, var(--surface) 92%, transparent);
backdrop-filter: blur(6px);
box-shadow: var(--shadow-2);
}
.tx-nav .tx-icon { border-color: transparent; background: none; }
.tx-nav .tx-icon:hover { border-color: transparent; background: var(--teal-wash); color: var(--teal-ink); }
.tx-nav .tx-icon:disabled { border-color: transparent; background: none; }
.tx-nav svg { display: block; width: 15px; height: 15px; margin: auto; }
.tx-nav-sep { height: 1px; margin: 2px 5px; background: var(--line-soft); }
.tx-nav .tx-export-button.is-on { background: var(--teal-wash); color: var(--teal-ink); }


.tx-export-menu {
position: absolute;
top: 10px;
inset-inline-end: calc(10px + var(--tx-nav-w, 44px) + 6px);
z-index: 4;
width: 17rem;
max-width: calc(100% - var(--tx-nav-w, 44px) - 32px);
max-height: calc(100% - 20px);
overflow: auto;
padding: 6px 14px 12px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-3);
cursor: auto;
touch-action: auto;
}
.tx-export-menu[hidden] { display: none; }
.tx-icon,
.tx-button {
min-width: 30px;
min-height: 30px;
padding: 4px 9px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: 600 var(--type-control)/1 var(--font-ui);
cursor: pointer;
}
.tx-icon:hover, .tx-button:hover { border-color: var(--teal); color: var(--teal-ink, var(--teal-ink)); }
.tx-button.is-primary { border-color: var(--teal); background: var(--teal); color: var(--surface); }
.tx-button.is-primary:hover { background: var(--teal-deep, var(--teal-deep)); color: var(--surface); }
.tx-link {
padding: 0;
border: 0;
background: none;
color: var(--teal);
font: 600 var(--type-control)/1.3 var(--font-ui);
text-decoration: none;
cursor: pointer;
white-space: nowrap;
}
.tx-link:hover { text-decoration: underline; }
.tx-link[hidden] { display: none; }

.tx-note {
display: flex;
align-items: center;
gap: 4px 14px;
padding: 3px 16px;
border-bottom: 1px solid var(--line);
background: var(--wash);
color: var(--muted);
font-size: var(--type-note);
}
.tx-note[hidden] { display: none; }
.tx-note-pending { width: min(22rem, 60%); height: 1lh; border-radius: var(--r-s); background: var(--line-soft, var(--line)); opacity: 0.6; }
.tx-note-count { color: var(--ink); font-weight: 600; }

button.tx-note-count { display: inline-block; margin: -2px -6px; padding: 2px 6px; border: 0; border-radius: var(--r-s); background: none; font: inherit; font-weight: 600; cursor: pointer; }
button.tx-note-count:hover, button.tx-note-count[aria-expanded="true"] { background: var(--teal-wash); color: var(--teal-ink); }
.tx-note-more { margin-inline-start: 3px; color: var(--subtle); font-size: var(--type-meta); }
.tx-note-facts { color: var(--muted); font-size: var(--type-note); }
.tx-note-facts:empty { display: none; }
.tx-note-source { font-size: var(--type-meta); }
.tx-note-warn { color: var(--amber-ink, var(--amber-ink)); }
.tx-note-warn::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 6px; border-radius: 50%; background: var(--amber); vertical-align: 1px; }


.tx-panel-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-inline-start: auto; }
.tx-panel-chips[hidden] { display: none; }

.tx-presets { margin-inline-start: auto; }
.tx-presets[hidden], .tx-presets > .tx-seg[hidden] { display: none; }
.tx-presets:not([hidden]) + .tx-panel-chips { margin-inline-start: 0; }
.tx-presets > .tx-seg { min-height: 24px; padding: 2px 10px; font-size: var(--type-control); }
.tx-chip {
min-height: 24px;
padding: 2px 10px;
border: 1px solid var(--line);
border-radius: 999px;
background: var(--surface);
color: var(--muted);
font: 600 var(--type-control)/1.2 var(--font-ui);
cursor: pointer;
}
.tx-chip:hover { border-color: var(--teal); color: var(--teal-ink); }
.tx-chip.is-on { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-ink); }
.tx-chip.is-on:hover { border-color: var(--teal-deep); }
.tx-chip[hidden] { display: none; }

.tx-badge { margin-inline-start: 5px; padding: 0 5px; border-radius: 999px; background: var(--teal); color: var(--surface); font: 700 var(--type-meta)/1.6 var(--font-ui); vertical-align: 1px; }
.tx-badge[hidden] { display: none; }

.tx-panel-close { margin-inline-start: auto; min-width: 24px; min-height: 24px; padding: 2px 6px; border-color: transparent; background: none; color: var(--muted); }
.tx-panel-close:hover { color: var(--ink); background: var(--wash); border-color: transparent; }

.tx-body {
flex: 1;
min-height: 0;
display: grid;
grid-template-columns: minmax(0, 1fr) 17.5rem;
}
.tx-stage {
position: relative;
min-width: 0;
min-height: 320px;
overflow: hidden;
cursor: grab;
touch-action: none;
outline: none;
}
.tx-stage.is-pointing { cursor: pointer; }
.tx-stage.is-dragging { cursor: grabbing; }
.tx-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--teal); }
.tx-canvas { position: absolute; inset: 0; display: block; }
.tx-overlay { pointer-events: none; }
.tx-axis-title {
position: absolute;
right: calc(12px + var(--tx-site-dock, 0px));
bottom: 2px;

max-width: calc(100% - 24px - var(--tx-site-dock, 0px));
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: var(--muted);
font-size: var(--type-meta);
pointer-events: none;
}
.tx-status {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
color: var(--muted);
text-align: center;
background: var(--surface);
}
.tx-status[hidden] { display: none; }
.tx-tooltip {
position: absolute;
top: 0;
left: 0;
max-width: 280px;
padding: 6px 9px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: color-mix(in srgb, var(--surface) 97%, transparent);
box-shadow: 0 4px 14px rgba(23, 39, 48, 0.08);
font-size: var(--type-note);
pointer-events: none;
}
.tx-tooltip[hidden] { display: none; }
.tx-tip-title { font-weight: 600; word-break: break-all; }
.tx-tip-line { color: var(--ink-2); }
.tx-tip-line .tx-dot { display: inline-block; vertical-align: middle; margin-block: 0 2px; margin-inline: 0 4px; }
.tx-tip-key { color: var(--muted); }
.tx-tip-date { white-space: nowrap; }
.tx-tip-hint { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line-soft); color: var(--subtle); font-size: var(--type-meta); }

.tx-side {
min-height: 0;
overflow: auto;
border-inline-start: 1px solid var(--line);
background: var(--surface);
}




.tx-body { position: relative; }
.tx-side-toggle {
position: absolute;
top: 0;
bottom: 0;
inset-inline-end: calc(17.5rem - 7px);
z-index: 4;
display: flex;
align-items: center;
justify-content: center;
width: 14px;
min-width: 0;
min-height: 0;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
color: var(--muted);
font: 600 var(--type-meta)/1 var(--font-ui);
cursor: pointer;
}
.tx-side-toggle::before {
content: "";
position: absolute;
top: calc(50% - 17px);
inset-inline-start: 0;
z-index: -1;
width: 14px;
height: 34px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface);
box-shadow: 0 1px 3px rgba(23, 39, 48, 0.08);
transition: background-color 140ms ease, border-color 140ms ease;
}
.tx-side-toggle:hover, .tx-side-toggle:focus-visible { background: var(--teal-wash); color: var(--teal-ink); }
.tx-side-toggle:hover::before, .tx-side-toggle:focus-visible::before { border-color: var(--teal); background: var(--teal-wash); }
@media (min-width: 861px) {
.tree-explorer.is-side-collapsed .tx-body { grid-template-columns: minmax(0, 1fr) 2rem; }
.tree-explorer.is-side-collapsed .tx-side { overflow: hidden; cursor: pointer; }
.tree-explorer.is-side-collapsed .tx-side:hover { background: var(--teal-wash); }
.tree-explorer.is-side-collapsed .tx-side > * { display: none; }
.tree-explorer.is-side-collapsed .tx-side-toggle { inset-inline-end: calc(2rem - 7px); color: var(--muted); }
.tree-explorer.is-side-collapsed .tx-side-toggle::before { display: none; }
}
@media (max-width: 860px) {
.tx-side-toggle { display: none; }
}
body.is-tree-zen [data-tree-explorer] .tx-side-toggle { display: none; }
.tx-panel, .tx-legend { padding: 12px 14px; }
.tx-panel[hidden], .tx-legend[hidden] { display: none; }
.tx-legend { border-top: 1px solid var(--line-soft, var(--line-soft)); }
.tx-hint { margin: 0; color: var(--muted); font-size: var(--type-note); }
.tx-panel-head { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; align-items: start; }
.tx-panel-kind { grid-column: 1; color: var(--muted); font-size: var(--type-meta); text-transform: uppercase; letter-spacing: 0.04em; }
.tx-clade-tag { display: inline-block; margin-inline-start: 4px; padding: 0 5px; border: 1px solid var(--ink); border-radius: 4px; color: var(--ink); font-weight: 600; text-transform: none; letter-spacing: 0; }
.tx-panel-title { grid-column: 1; margin: 2px 0 8px; font-size: var(--type-title); line-height: 1.35; word-break: break-all; }
.tx-panel-after { font-size: var(--type-meta); font-weight: 500; color: var(--muted); word-break: normal; }
.tx-close { grid-column: 2; grid-row: 1 / span 2; min-width: 28px; min-height: 28px; font-size: var(--type-heading); }



.tx-facts { display: grid; grid-template-columns: fit-content(8em) minmax(0, 1fr); gap: 4px 12px; margin: 0 0 8px; font-size: var(--type-note); }
.tx-facts dt { color: var(--muted); }
.tx-facts dd { margin: 0; word-break: break-word; }
.tx-support { display: block; }
.tx-support .tx-dot { margin-inline-end: 6px; vertical-align: 0; }
.tx-support-verdict { display: block; color: var(--muted); }
.tx-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; }
.tx-inferred { margin: 0 0 8px; font-size: var(--type-note); }
.tx-section { margin-top: 10px; }
.tx-section[hidden] { display: none; }
.tx-section h4 { margin: 0 0 6px; color: var(--muted); font-size: var(--type-meta); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.tx-bars { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: var(--type-note); }
.tx-bars li { display: grid; grid-template-columns: minmax(0, 7rem) 1fr auto; align-items: center; gap: 8px; }
.tx-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-bar-track { height: 8px; border-radius: var(--r-2xs); background: var(--line-soft, var(--line-soft)); overflow: hidden; }
.tx-bar-fill { display: block; height: 100%; border-radius: var(--r-2xs); }
.tx-bar-count { color: var(--muted); font-variant-numeric: tabular-nums; }

.tx-muts { margin: 0 0 4px; font-size: var(--type-note); line-height: 1.5; }
.tx-muts code { font-size: var(--type-note); word-break: break-word; }
.tx-mut {
padding: 0 2px;
border: 0;
border-radius: 3px;
background: none;
color: var(--teal-ink);
font: inherit;
text-decoration: underline dotted;
text-underline-offset: 2px;
cursor: pointer;
}
.tx-mut:hover, .tx-mut:focus-visible { background: var(--teal-wash); outline: none; }
.tx-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tx-legend-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.tx-legend-title { margin: 0; font-size: var(--type-control); font-weight: 600; }
.tx-legend-list { margin: 0 0 6px; padding: 0; list-style: none; }
.tx-legend-button {
width: 100%;
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: 8px;
padding: 3px 6px;
border: 0;
border-radius: var(--r-xs);
background: none;
color: var(--ink);
font: var(--type-control)/1.35 var(--font-ui);
text-align: start;
cursor: pointer;
}
.tx-legend-button:hover { background: var(--wash); }
.tx-legend-item.is-picked .tx-legend-button { background: var(--teal-wash, var(--teal-wash)); box-shadow: inset 0 0 0 1px var(--teal-line, var(--teal-line)); }
.tx-legend-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-legend-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.tx-ramp { height: 10px; margin: 4px 6px 4px; border-radius: 3px; }
.tx-ramp-bar { border-radius: var(--r-xs); }
.tx-ramp-ends { display: flex; justify-content: space-between; margin: 0 6px 8px; color: var(--muted); font-size: var(--type-note); font-variant-numeric: tabular-nums; }
.tx-ramp-missing { cursor: default; }
.tx-branch-legend { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.tx-branch-legend .tx-legend-title { margin-bottom: 6px; }
.tx-branch-swatch { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.tx-strips { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tx-strips[hidden] { display: none; }
.tx-strip-select { max-width: 9.5rem; }
.tx-site-strip { display: inline-flex; align-items: center; gap: 6px; }
.tx-site-strip[hidden] { display: none; }
.tx-site-mode { max-width: 9.5rem; }
.tx-dot-blank { box-shadow: inset 0 0 0 1px var(--line-strong); }
.tx-strip-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.tx-strip-chip { display: inline-flex; align-items: center; gap: 2px; padding-block: 2px; padding-inline: 8px 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--wash); font-size: var(--type-control); }
.tx-strip-remove { min-width: 22px; min-height: 22px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: var(--type-title); line-height: 1; cursor: pointer; }
.tx-strip-remove:hover { background: var(--surface); color: var(--ink); }
.tx-topn { min-height: 24px; padding: 1px 4px; font-size: var(--type-control); }
.tx-legend-tools { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.tx-legend-item { display: flex; align-items: center; }
.tx-legend-item .tx-legend-button { flex: 1; min-width: 0; }
.tx-legend-button.has-swatch { grid-template-columns: minmax(0, 1fr) auto; }
.tx-legend-button.has-swatch:has(.tx-legend-tag) { grid-template-columns: auto minmax(0, 1fr) auto; }
.tx-legend-tag { overflow: hidden; color: var(--muted); font-size: var(--type-meta); white-space: nowrap; text-overflow: ellipsis; }
.tx-site-step { display: inline-flex; gap: 4px; }
.tx-site-step-button { min-width: 26px; min-height: 26px; padding: 0 6px; font-size: var(--type-control); }
.tx-site-step-button:disabled { opacity: 0.4; cursor: default; }
.tx-site-key { margin: 0 6px 8px; }
.tx-site-details { margin-inline-start: 2px; font-size: var(--type-control); }

.tx-stage > .tx-site-key-bar {
position: absolute;
inset-inline-start: 8px;
bottom: 34px;
z-index: 3;
display: grid;
gap: 4px;
max-width: calc(100% - max(72px, var(--tx-site-dock, 0px) + 20px));
padding: 6px 8px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: color-mix(in srgb, var(--surface) 92%, transparent);
backdrop-filter: blur(6px);
box-shadow: var(--shadow-2);
font-size: var(--type-note);
pointer-events: none;
}
.tx-stage > .tx-site-key-bar button { pointer-events: auto; }
.tx-stage > .tx-site-key-bar[hidden] { display: none; }
.tx-site-key-bar-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.tx-site-key-bar-name { font: 650 var(--type-note)/1.3 var(--font-mono); }
.tx-site-key-bar-states { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.tx-site-key-bar-state { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.tx-site-key-bar-state small, .tx-site-key-bar-more { color: var(--muted); font-weight: 500; font-size: var(--type-meta); }
@media (min-width: 861px) {
.tree-explorer:not(.is-side-collapsed) .tx-stage > .tx-site-key-bar { display: none; }
body.is-tree-zen [data-tree-explorer] .tx-stage > .tx-site-key-bar:not([hidden]) { display: grid; }
}

@media (max-width: 860px) {
.tx-stage > .tx-site-key-bar.is-field { display: none; }
}
.tx-site-key-bar.is-field .tx-site-key-bar-states { align-items: center; }


@container tx (max-width: 639px) {
.tx-stage > .tx-site-key-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 4px 6px; }
.tx-stage > .tx-site-key-bar[hidden] { display: none; }
.tx-site-key-bar .tx-site-kind, .tx-site-key-bar-count { display: none; }
.tx-site-key-bar .tx-site-step-button { min-width: 24px; min-height: 24px; }
}
.tx-key-bar-ramp { display: inline-block; width: 96px; height: 8px; margin: 0; border-radius: var(--r-pill); }
.tx-site-swap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 6px 6px; }
.tx-site-swap .tx-seg:disabled { opacity: 0.45; cursor: default; }
.tx-site-swap-note { color: var(--muted); font-size: var(--type-meta); }
.tx-swatch { position: relative; flex: none; width: 12px; height: 12px; margin-block: 0; margin-inline: 6px 2px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 1px rgba(23, 39, 48, 0.12); }
.tx-swatch:hover, .tx-swatch:focus-within { box-shadow: 0 0 0 2px var(--teal); }
.tx-swatch input { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); padding: 0; border: 0; opacity: 0; cursor: pointer; }
.tx-legend-more { padding: 2px 6px; color: var(--muted); font-size: var(--type-note); list-style: none; }
.tx-ramp-missing:hover { background: none; }
.tree-explorer { position: relative; }
.tx-view { position: relative; display: inline-flex; }
.tx-view-button.is-on, .tx-share-button.is-on { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-ink); }
.tx-view-menu { position: absolute; z-index: 6; top: calc(100% + 6px); right: 0; width: 17rem; padding: 6px 14px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-3); }
.tx-view-menu[hidden] { display: none; }
.tx-view-menu.opens-right { right: auto; left: 0; }
.tx-view-section { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-bottom: 8px; }
.tx-view-section .tx-palette-sub { flex-basis: 100%; margin: 6px 0 0; }
.tx-view-section .tx-select { max-width: 100%; }
.tx-file-list { display: flex; flex-direction: column; gap: 4px; flex-basis: 100%; }
.tx-file { font-size: var(--type-control); overflow-wrap: anywhere; }
.tx-file code { font-size: var(--type-note); }
.tx-view-section[hidden] { display: none; }
.tx-view-section:first-child .tx-palette-sub,
.tx-compact-section[hidden] + .tx-view-section:not(.tx-compact-section) .tx-palette-sub { border-top: 0; padding-top: 4px; }

.tx-share-menu { width: 17rem; }

.tx-figure { display: grid; gap: 6px; flex-basis: 100%; }
.tx-figure-field { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: 6px; font-size: var(--type-control); }
.tx-figure-field .tx-select { min-width: 0; max-width: none; }
.tx-figure-custom { grid-column: 2; display: inline-flex; align-items: center; gap: 6px; }
.tx-figure-custom[hidden] { display: none; }
.tx-figure-mm { width: 5rem; }
.tx-figure-unit { color: var(--muted); font-size: var(--type-note); }
.tx-figure-size { margin: 0; font-size: var(--type-note); font-variant-numeric: tabular-nums; }

.tx-site-control { display: grid; gap: 6px; flex-basis: 100%; }
.tx-site-pins { display: grid; gap: 2px; }
.tx-site-pins[hidden] { display: none; }
.tx-site-pins-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; }
.tx-site-pins-input { min-width: 0; }
.tx-site-pins-note:empty { display: none; }
.tx-site-pins-key { justify-self: start; }
.tx-site-pins-key[hidden] { display: none; }
.tx-share-main { padding-bottom: 4px; }
.tx-share-main .tx-share-copy { width: 100%; }
.tx-share-open { flex-direction: column; align-items: flex-start; gap: 6px; }
.tx-view-reset { padding-top: 8px; border-top: 1px solid var(--line-soft); }

.tx-minimap { position: absolute; left: 0; top: 0; z-index: 2; width: 150px; height: 110px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); box-shadow: var(--shadow-2); cursor: pointer; touch-action: none; }
.tx-minimap[hidden] { display: none; }
.tx-add-search { flex: none; }


.tx-story.is-empty .tx-story-hint, .tx-story.is-empty .tx-story-list, .tx-story.is-empty .tx-story-name,
.tx-story.is-empty .tx-story-play, .tx-story.is-empty .tx-story-share { display: none; }
.tx-table-head, .tx-table-row { display: grid; align-items: center; }
.tx-table-head { margin: 6px 16px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.tx-table-th { padding: 4px 8px; border: 0; background: none; color: var(--muted); font: var(--weight-medium) var(--type-meta)/1.4 var(--font-ui); text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.tx-table-th:hover { color: var(--teal-ink); }
.tx-table-body { position: relative; height: 240px; margin: 0 16px 10px; overflow: auto; outline: none; }
.tx-table-body:focus-visible { box-shadow: inset 0 0 0 2px var(--teal); }
.tx-table-spacer { position: relative; }
.tx-table-rows { position: absolute; top: 0; left: 0; right: 0; }
.tx-table-row { height: 26px; border-bottom: 1px solid var(--line-soft); font-size: var(--type-note); cursor: pointer; }
.tx-table-row:hover, .tx-table-row.is-active { background: var(--surface-3); }
.tx-table-row.is-selected { background: var(--teal-wash); color: var(--teal-ink); font-weight: var(--weight-medium); }
.tx-table-td { display: flex; align-items: center; gap: 5px; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tx-freq-canvas[hidden] { display: none; }
.tx-map { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-inline-start: 1px solid var(--line); background: var(--surface); }
.tx-map[hidden] { display: none; }
.tx-map-plot { position: relative; flex: 1; min-height: 240px; margin: 6px 8px 0; border: 1px solid var(--line-soft); border-radius: var(--r-s); overflow: hidden; }
.tx-map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; cursor: grab; touch-action: none; }
.tx-map-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--teal); }
.tx-map-hint { margin: 6px 16px 10px; color: var(--subtle); font-size: var(--type-meta); line-height: var(--leading); }
.tx-stage.is-lasso { cursor: crosshair; }
.tx-lasso-button.is-on { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-ink); }
.tx-diversity { flex: none; border-top: 1px solid var(--line); background: var(--surface); }
.tx-diversity[hidden] { display: none; }
.tx-diversity-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 16px 0; }
.tx-diversity-head .tx-legend-title { margin: 0; }
.tx-diversity-hint { color: var(--subtle); font-size: var(--type-meta); }
.tx-map-when { color: var(--ink-2); font-size: var(--type-meta); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-map-when:empty { display: none; }
.tx-diversity-focus { color: var(--teal-ink); font-size: var(--type-meta); font-weight: var(--weight-medium); }
.tx-diversity-focus:empty { display: none; }
.tx-diversity-plot { position: relative; padding: 0 6px 4px; }
.tx-diversity-canvas { display: block; width: 100%; height: 132px; outline: none; cursor: crosshair; }
.tx-diversity-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--teal); border-radius: var(--r-xs); }
.tx-diversity-tip { top: 0; left: 0; }

.tx-site-rank { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 2px 0 8px; }
.tx-site-rank-summary { flex: 1 1 100%; margin: 0; color: var(--ink-2); font-size: var(--type-meta); }
.tx-site-rank-pick { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--type-control); }
.tx-site-rank-select { max-width: 13rem; }


.tx-site-dock-bar { position: absolute; bottom: 4px; z-index: 2; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 2px; box-sizing: border-box; }
.tx-site-dock-bar[hidden], .tx-site-dock-grip[hidden] { display: none; }
.tx-site-dock-sets { display: inline-flex; flex: none; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.tx-site-dock-set { min-height: 22px; padding: 0 7px; border: 0; background: var(--surface); color: var(--muted); font: 600 var(--type-meta)/1 var(--font-ui); cursor: pointer; white-space: nowrap; }
.tx-site-dock-set + .tx-site-dock-set { border-inline-start: 1px solid var(--line); }
.tx-site-dock-set.is-on { background: var(--teal-wash); color: var(--teal-ink); }
.tx-site-dock-set:hover { color: var(--teal-ink); box-shadow: inset 0 -2px 0 var(--teal); }
.tx-site-dock-set:focus-visible, .tx-site-dock-step:focus-visible, .tx-site-dock-track:focus-visible, .tx-site-dock-grip:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.tx-site-dock-range { flex: none; color: var(--muted); font-size: var(--type-meta); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-site-dock-track { position: relative; flex: 1 1 auto; min-width: 36px; height: 18px; border-radius: var(--r-s); background: var(--line-soft); cursor: pointer; touch-action: none; }
.tx-site-dock-ticks { position: absolute; inset: 2px 0; width: 100%; height: calc(100% - 4px); pointer-events: none; }
.tx-site-dock-thumb { position: absolute; top: 0; bottom: 0; min-width: 6px; box-sizing: border-box; border: 1.5px solid var(--teal); border-radius: var(--r-s); background: color-mix(in srgb, var(--teal) 14%, transparent); cursor: grab; }
.tx-site-dock-track:hover { background: var(--line); }
.tx-site-dock-track.is-whole .tx-site-dock-thumb { border-color: var(--line-strong); background: none; }
.tx-site-dock-zoom { display: inline-flex; flex: none; gap: 2px; }
.tx-site-dock-step { width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink-2); font: 600 var(--type-control)/1 var(--font-ui); cursor: pointer; }
.tx-site-dock-step:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-ink); }
.tx-site-dock-step:disabled { opacity: 0.4; cursor: default; }
.tx-site-dock-grip { position: absolute; z-index: 2; width: 9px; transform: translateX(-50%); cursor: col-resize; touch-action: none; }
.tx-site-dock-grip::after { content: ""; position: absolute; top: 50%; left: 3px; width: 3px; height: 28px; margin-top: -14px; border-radius: 2px; background: var(--line-strong); }
.tx-site-dock-grip:hover::after, .tx-site-dock-grip.is-pulling::after { background: var(--teal); }

.tx-site-dock-bar.is-narrow .tx-site-dock-range { display: none; }
.tx-site-dock-bar.is-tight .tx-site-dock-track { display: none; }

.tx-site-dock-bar.is-tight .tx-site-dock-set:not(.is-on) { display: none; }
.tx-site-dock-bar.is-tight .tx-site-dock-set.is-on::after { content: " \21C4"; }
@media (pointer: coarse) {
.tx-site-dock-set { font-size: var(--type-control); }
.tx-filter-opt, .tx-site-opt { font-size: var(--type-control); }

.tx-site-dock-grip { width: 24px; }
.tx-site-dock-grip::after { left: 10px; width: 4px; height: 44px; margin-top: -22px; }
}



.tx-div-kind[hidden], .tx-div-gene[hidden], .tx-div-columns[hidden] { display: none; }
.tx-site-cands { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 0 16px 6px; }
.tx-site-cands[hidden] { display: none; }
.tx-site-cands-label { color: var(--muted); font-size: var(--type-meta); }
.tx-site-cand { display: inline-flex; gap: 5px; align-items: baseline; font-variant-numeric: tabular-nums; }
.tx-site-cand-value { color: var(--muted); font-weight: 500; }
.tx-segmented .tx-seg:disabled { opacity: 0.45; cursor: not-allowed; }

.tx-site-combos { margin: 0 16px 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); font-size: var(--type-note); }
.tx-site-combos[hidden], .tx-site-combos-body[hidden] { display: none; }
.tx-site-combos-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tx-site-combos-title { margin: 0; font: 650 var(--type-note)/1.3 var(--font-ui); }
.tx-site-combos-scroll { margin-top: 8px; overflow-x: auto; }
.tx-site-combos-table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tx-site-combos-table th, .tx-site-combos-table td { padding: 3px 10px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.tx-site-combos-table th { color: var(--muted); font-weight: var(--weight-medium); font-size: var(--type-meta); }
.tx-site-combos-state { font: 650 var(--type-note)/1.3 var(--font-mono); }
.tx-site-combos-num { color: var(--ink-2); text-align: end !important; }
.tx-site-combos-note { color: var(--muted); }
.tx-site-combos-row[role="button"] { cursor: pointer; }
.tx-site-combos-row[role="button"]:hover, .tx-site-combos-row:focus-visible { background: var(--teal-wash); outline: none; }
.tx-site-combos-row.is-on { background: var(--teal-wash); box-shadow: inset 3px 0 0 var(--teal); }
.tx-site-card { margin: 4px 16px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); font-size: var(--type-note); }
.tx-site-card[hidden] { display: none; }
.tx-site-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tx-site-card-title { margin: 0; font: 650 var(--type-body)/1.2 var(--font-ui); font-variant-numeric: tabular-nums; }
.tx-site-card-gene { color: var(--muted); font-size: var(--type-meta); }


.tx-site-region { margin: 6px 0 0; color: var(--ink-2); font-size: var(--type-note); line-height: 1.5; }
.tx-site-region-label { color: var(--muted); }
.tx-site-region-name { color: var(--ink); font-weight: 600; }
a.tx-site-region-name { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
a.tx-site-region-name:hover, a.tx-site-region-name:focus-visible { color: var(--teal-ink); text-decoration-color: currentColor; }
.tx-site-card-tag { padding: 1px 7px; border-radius: 999px; background: var(--teal-wash); color: var(--ink-2); font-size: var(--type-meta); }
.tx-site-card-close { margin-inline-start: auto; }
.tx-structure-open + .tx-site-card-close { margin-inline-start: 0; }
.tx-site-card-head .tx-structure-open { margin-inline-start: auto; }


.tx-structure {
position: fixed;
inset-block-start: 84px;
inset-inline-end: 20px;
z-index: 40;
display: flex;
flex-direction: column;
gap: 6px;
inline-size: min(540px, calc(100vw - 32px));
block-size: min(600px, calc(100vh - 110px));
padding: 10px 12px 12px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: 0 12px 36px rgba(23, 39, 48, 0.18);
}


@media (min-width: 861px) {
body[data-rail="expanded"]:not([data-rail-over-tree]) .tx-structure {
inset-inline-end: calc(var(--rail-w) + 20px);
inline-size: min(540px, calc(100vw - var(--rail-w) - 32px));
}
}
.tx-structure-head { display: flex; align-items: center; gap: 8px; }
.tx-structure-title { flex: 1; margin: 0; font-size: var(--type-note); font-weight: 650; }
.tx-structure-stage { position: relative; flex: 1; min-block-size: 0; border-radius: var(--r-xs); background: var(--surface-2); overflow: hidden; }
.tx-structure-note, .tx-structure-source { margin: 0; color: var(--muted); font-size: var(--type-meta); line-height: 1.5; }
.tx-structure-source a { color: var(--teal-ink); }
.tx-site-pin { margin-inline-start: auto; }
.tx-site-pin + .tx-site-card-close { margin-inline-start: 0; }
.tx-site-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 26rem)); gap: 10px 28px; margin-top: 10px; }
.tx-site-group-head { display: flex; gap: 4px; align-items: baseline; color: var(--ink-2); font-size: var(--type-meta); }
.tx-site-group-name { color: var(--ink); font-weight: var(--weight-medium); }
.tx-site-states { margin: 6px 0 4px; padding: 0; list-style: none; display: grid; gap: 3px; }
.tx-site-state { display: grid; grid-template-columns: 1.6em minmax(4rem, 1fr) auto auto; align-items: center; gap: 8px; padding: 1px 4px; border-radius: var(--r-xs); }
.tx-site-state.is-pickable { cursor: pointer; }
.tx-site-state.is-pickable:hover, .tx-site-state:focus-visible { background: var(--teal-wash); outline: none; }
.tx-site-state.is-on { background: var(--teal-wash); box-shadow: inset 0 0 0 1px var(--teal); }
.tx-site-state.is-asked .tx-site-swatch { box-shadow: 0 0 0 2px var(--ink); }
.tx-site-swatch { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: var(--r-xs); background: var(--state); color: var(--surface); font: 700 var(--type-meta)/1 var(--font-mono); text-shadow: 0 0 2px rgb(0 0 0 / 0.45); }
.tx-site-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.tx-site-bar-fill { display: block; height: 100%; }
.tx-site-num { color: var(--ink-2); font-size: var(--type-meta); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-site-only { padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: 600 var(--type-meta)/1.5 var(--font-ui); cursor: pointer; visibility: hidden; }
.tx-site-state:hover .tx-site-only, .tx-site-state:focus-within .tx-site-only, .tx-site-state.is-on .tx-site-only { visibility: visible; }
.tx-site-only:hover { border-color: var(--teal); color: var(--teal-ink); }
.tx-site-more, .tx-site-known { color: var(--muted); font-size: var(--type-meta); }
.tx-site-facts { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 10px 0 0; }
.tx-site-facts dt { color: var(--muted); }
.tx-site-facts dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.tx-site-mono { font-family: var(--font-mono); }
.tx-site-change { margin: 8px 0 0; color: var(--ink); }


.tx-site-time { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.tx-site-time-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.tx-site-time-title { margin: 0; font: 650 var(--type-note)/1.3 var(--font-ui); }
.tx-site-time-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-inline-start: auto; }
.tx-site-time-follow { color: var(--muted); font-size: var(--type-meta); }
.tx-site-time-chip { min-width: 26px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: 600 var(--type-meta)/1.5 var(--font-mono); cursor: pointer; }
.tx-site-time-chip.is-on { border-color: var(--state); box-shadow: inset 0 -2px 0 var(--state); }
.tx-site-time-chip:focus-visible { outline: 2px solid var(--state); outline-offset: 1px; }
.tx-site-time-chart { margin: 6px 0 0; }
.tx-site-time-svg { display: block; max-width: 480px; height: auto; overflow: visible; }
.tx-st-grid { stroke: var(--line); stroke-width: 1; }
.tx-st-tick { fill: var(--muted); font: var(--type-meta) var(--font-ui); font-variant-numeric: tabular-nums; }
.tx-st-band { opacity: 0.18; }
.tx-st-line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.tx-st-line.is-faint { stroke-width: 1.25; stroke-dasharray: 3 3; opacity: 0.55; }
.tx-st-dot { fill: var(--surface); stroke-width: 1.25; }
.tx-st-event line { stroke-width: 3; stroke-linecap: round; opacity: 0.85; }
.tx-st-event { cursor: pointer; outline: none; }
.tx-st-event:hover line, .tx-st-event:focus-visible line { stroke-width: 4.5; opacity: 1; }
.tx-st-rule { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 2; pointer-events: none; }
.tx-st-hit { fill: transparent; cursor: crosshair; }
.tx-site-time-read { min-height: 1.4em; margin: 2px 0 0; color: var(--ink-2); font-size: var(--type-meta); font-variant-numeric: tabular-nums; }
.tx-site-time-note { margin: 6px 0 0; }
.tx-site-card-warn { margin: 6px 0 0; color: var(--amber-ink); }
.tx-site-verdict { margin: 8px 0 0; color: var(--ink-2); max-width: var(--read-measure); }
.tx-site-limits { margin: 8px 0 0; padding-inline-start: 1.1em; color: var(--muted); font-size: var(--type-meta); }
.tx-site-limits li + li { margin-top: 2px; }
.tx-search .tx-search-input { flex: 1 1 9rem; min-width: 9rem; }
.tx-filter-button.is-on { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-ink); }
.tx-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 16px; border-bottom: 1px solid var(--line); background: var(--teal-wash); font-size: var(--type-note); }
.tx-filterbar[hidden] { display: none; }
.tx-filter-chip { background: var(--surface); }



.tx-strip { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); background: var(--wash); }
.tx-strip > .tx-changes, .tx-strip > .tx-note { width: 100%; box-sizing: border-box; border-bottom: 0; background: none; }
.tx-strip > .tx-changes:not([hidden]) { border-bottom: 1px solid var(--line-soft); }
.tx-changes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 5px 16px; border-bottom: 1px solid var(--line); background: var(--wash); font-size: var(--type-note); }
.tx-changes[hidden] { display: none; }
.tx-changes-title { color: var(--muted); font-size: var(--type-meta); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.tx-change-chip { background: var(--surface); }
.tx-changes-reset { margin-inline-start: auto; }

.tx-note-item { margin: 0 0 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
.tx-note-item.is-resolved { opacity: 0.65; }
.tx-note-where { display: block; margin-bottom: 4px; font-weight: 600; text-align: start; }
.tx-note-meta { margin: 0 0 4px; color: var(--muted); font-size: var(--type-meta); }
.tx-note-flag { color: var(--teal-ink); }
.tx-note-text { margin: 0 0 4px; font-size: var(--type-read); white-space: pre-wrap; overflow-wrap: anywhere; }
.tx-note-reply { margin-block: 2px; margin-inline: 10px 0; padding-inline-start: 8px; border-inline-start: 2px solid var(--line); font-size: var(--type-read); white-space: pre-wrap; overflow-wrap: anywhere; }
.tx-note-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--type-control); }
.tx-note-form { display: grid; gap: 6px; margin-top: 6px; }
.tx-note-input { width: 100%; min-height: 3em; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-s); font: inherit; font-size: var(--type-control); resize: vertical; box-sizing: border-box; }
.tx-note-form .tx-button { justify-self: end; }
.tx-note-error { margin: 4px 0 0; color: var(--red); font-size: var(--type-meta); }
.tx-filter-key { color: var(--muted); }
.tx-filter-count { margin-inline-start: auto; color: var(--teal-ink); font-weight: var(--weight-medium); }
.tx-filter-panel .tx-control { margin-bottom: 8px; }
.tx-filter-find { width: 100%; margin-bottom: 6px; }
.tx-filter-list { max-height: min(22rem, 42vh); overflow: auto; margin: 0 0 10px; padding: 0; list-style: none; border: 1px solid var(--line-soft); border-radius: var(--r-s); }
.tx-filter-list li[hidden] { display: none; }
.tx-filter-value { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 10px; font-size: var(--type-note); cursor: pointer; }
.tx-filter-value:hover { background: var(--surface-3); }
.tx-filter-value input { accent-color: var(--teal); margin: 0; }
.tx-filter-dates { margin-bottom: 10px; }
.tx-date-row { display: flex; align-items: center; gap: 10px; }
.tx-date-sliders { display: grid; flex: 1; gap: 2px; }
.tx-range { width: 100%; accent-color: var(--teal); }
.tx-date-text { display: block; margin-top: 4px; color: var(--muted); font-size: var(--type-note); font-variant-numeric: tabular-nums; }
.tx-range-row { display: flex; gap: 10px; margin-bottom: 4px; }
.tx-range-input { width: 7.5rem; }
.tx-filter-exclude { margin: 0 0 10px; }
.tx-filter-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.tx-groups { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 6px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tx-groups[hidden] { display: none; }
.tx-group { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 18rem; min-width: 14rem; max-width: 30rem; }
.tx-group .tx-group-input { flex: 1; min-width: 0; }
.tx-group-ring { flex: none; width: 12px; height: 12px; border: 3px solid; border-radius: 50%; background: var(--surface); }
.tx-icon:disabled, .tx-button:disabled { opacity: 0.4; cursor: default; border-color: var(--line); color: var(--ink); }
.tx-help-button { border-radius: 50%; }

.tx-dialog {
position: absolute;
z-index: 5;
top: var(--tx-dialog-top, 56px);
left: 50%;
width: min(34rem, calc(100% - 32px));
max-height: calc(100% - var(--tx-dialog-top, 56px) - 16px);
overflow: auto;
transform: translateX(-50%);
padding: 12px 14px 14px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-3);
}
.tx-dialog[hidden] { display: none; }
.tx-palette-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tx-palette-title { margin: 0; font-size: var(--type-title); }
.tx-palette-input {
width: 100%;
min-height: 36px;
padding: 6px 10px;
border: 1px solid var(--teal);
border-radius: var(--r-s);
font: var(--type-control)/1.3 var(--font-ui);
outline: none;
box-shadow: var(--focus-ring);
}
.tx-palette-list { margin: 6px 0 10px; padding: 0; list-style: none; }
.tx-palette-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: var(--r-xs); font-size: var(--type-read); cursor: pointer; }
.tx-palette-item.is-active, .tx-palette-item:hover { background: var(--teal-wash); color: var(--teal-ink); }
.tx-palette-empty { padding: 6px 10px; color: var(--muted); font-size: var(--type-read); }
.tx-palette-sub { margin: 4px 0 6px; padding-top: 10px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: var(--type-note); }
.tx-keys { display: grid; grid-template-columns: max-content 1fr; gap: 5px 14px; margin: 0; font-size: var(--type-note); }
.tx-keys dt { margin: 0; white-space: nowrap; }
.tx-keys dd { margin: 0; color: var(--muted); }
.tx-command kbd, .tx-keys kbd {
display: inline-block;
padding: 1px 6px;
border: 1px solid var(--line);
border-bottom-width: 2px;
border-radius: var(--r-2xs);
background: var(--wash);
color: var(--ink);
font: var(--weight-medium) var(--type-meta)/1.5 var(--font-ui);
white-space: nowrap;
}

@media (max-width: 860px) {

.tx-body { grid-template-columns: 1fr; grid-template-rows: minmax(58vh, 1fr) auto; }
.tx-side { border-inline-start: 0; border-top: 1px solid var(--line); max-height: none; overflow: visible; }
.tx-toolbar { padding: 8px 12px; gap: 6px 10px; }


.tx-nav .tx-zoom-lens, .tx-nav .tx-undo-button { display: none; }

.tx-toolbar { position: relative; }
.tx-view { position: static; }
.tx-view-menu, .tx-view-menu.opens-right { top: calc(100% - 4px); left: 12px; right: 12px; width: auto; }

.tx-file-list a, .tx-file-list button { overflow-wrap: anywhere; white-space: normal; text-align: start; }
.tx-diversity-hint { display: none; }
.tx-note { padding: 5px 12px; }
.tx-note-source { display: none; }
}

.tx-empty {
position: absolute;
top: 38%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 5;
max-width: min(26rem, 86%);
padding: 14px 18px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: 0 10px 30px rgba(24, 58, 62, 0.12);
color: var(--ink);
font-size: var(--type-note);
text-align: center;
}
.tx-empty[hidden] { display: none; }
.tx-empty p { margin: 0 0 10px; font-weight: 600; }
.tx-empty-actions { display: flex; justify-content: center; align-items: center; gap: 12px; }


.tx-toast {
position: absolute;
bottom: 44px;
left: 50%;
transform: translateX(-50%);
z-index: 6;
display: flex;
align-items: center;
gap: 12px;
padding: 7px 12px;
border-radius: var(--r-m);
background: var(--ink);
color: var(--surface);
font-size: var(--type-note);
box-shadow: 0 8px 24px rgba(23, 39, 48, 0.22);
white-space: nowrap;
}
.tx-toast[hidden] { display: none; }
.tx-toast .tx-link { color: var(--surface); text-decoration: underline; }
.tx-toast .tx-link[hidden] { display: none; }


.tx-intro {
position: absolute;
inset-inline-start: 12px;
bottom: 44px;
z-index: 5;
width: min(24rem, calc(100% - 24px));
padding: 12px 14px;
border: 1px solid var(--teal-line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: 0 10px 30px rgba(24, 58, 62, 0.12);
font-size: var(--type-read);
color: var(--ink-2);



transition: none;
}
.tx-intro[hidden] { display: none; }



.tx-side .tx-intro {
position: static;
width: auto;
margin: 0;
padding: 12px 14px;
border: 0;
border-bottom: 1px solid var(--line-soft);
border-radius: 0;
box-shadow: none;
background: transparent;
}


.tx-intro-toggle {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
margin: 0;
padding: 0;
border: 0;
background: none;
font: inherit;
text-align: start;
color: var(--ink);
cursor: pointer;
}
.tx-intro-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: var(--r-s); }
.tx-intro-title { flex: 1; font-weight: 700; }
.tx-intro-mark {
display: inline-grid;
place-items: center;
flex: none;
width: 18px;
height: 18px;
border: 1px solid var(--teal-line);
border-radius: 50%;
background: var(--surface);
color: var(--teal-ink);
font-size: var(--type-meta);
font-weight: 700;
line-height: 1;
}
.tx-intro-toggle:hover .tx-intro-mark { border-color: var(--teal); }


.tx-intro-body { display: grid; grid-template-rows: 1fr; opacity: 1; transition: none; }
.tx-intro-inner { min-height: 0; overflow: hidden; padding-top: 6px; }
.tx-intro.is-tucked .tx-intro-body { grid-template-rows: 0fr; opacity: 0; visibility: hidden; }
.tx-intro.is-animated .tx-intro-body { transition: grid-template-rows 200ms ease, opacity 200ms ease, visibility 200ms; }
.tx-side .tx-intro.is-tucked { padding-block: 10px; }
.tx-intro.is-animated { transition: padding 200ms ease; }
@media (prefers-reduced-motion: reduce) {
.tx-intro.is-animated, .tx-intro.is-animated .tx-intro-body { transition: none; }
}
.tx-intro ul { margin: 0 0 10px; padding-inline-start: 18px; line-height: 1.45; }
.tx-intro li + li { margin-top: 4px; }


.tx-story-name { width: 16rem; }
.tx-story-hint { margin: 2px 16px 6px; }
.tx-story-list { display: flex; flex-direction: column; gap: 8px; max-height: 260px; margin: 0 16px 12px; padding-inline-start: 22px; overflow: auto; }
.tx-story-step { padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: var(--r-s); background: var(--surface); }
.tx-story-step.is-current { border-color: var(--teal-line); box-shadow: inset 3px 0 0 var(--teal-line); }
.tx-story-title { width: 100%; font-weight: 600; }
.tx-story-note { display: block; width: 100%; margin-top: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: var(--type-note)/1.4 var(--font-ui); resize: vertical; }
.tx-story-tools { display: flex; gap: 12px; margin-top: 6px; }
.tx-story-empty { color: var(--muted); font-size: var(--type-note); list-style: none; }
.tx-story-card {
position: absolute;
top: 12px;
inset-inline-start: 12px;
z-index: 6;
width: min(26rem, calc(100% - 24px));
padding: 12px 14px 10px;
border: 1px solid var(--teal-line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: 0 10px 30px rgba(24, 58, 62, 0.14);
}
.tx-story-card[hidden] { display: none; }
.tx-story-card-title { margin: 0 0 4px; color: var(--ink); font-weight: 700; font-size: var(--type-title); }
.tx-story-card-note { margin: 0 0 8px; color: var(--ink-2); font-size: var(--type-note); line-height: 1.5; white-space: pre-wrap; }
.tx-story-nav { display: flex; align-items: center; gap: 10px; }
.tx-story-count { color: var(--muted); font-size: var(--type-note); font-variant-numeric: tabular-nums; }
.tx-story-nav .tx-link { margin-inline-start: auto; }




.tree-explorer:empty {
position: relative;
min-height: min(70vh, 640px);
overflow: hidden;
}
.tree-explorer:empty::after {
content: "";
position: absolute;
inset: 16px 16px 24px;

background:
linear-gradient(var(--surface-3), var(--surface-3)) 0 0 / 100% 34px no-repeat,
linear-gradient(90deg, var(--surface-3) 0 2px, transparent 2px) 8px 56px / 60% calc(100% - 56px) no-repeat,
repeating-linear-gradient(180deg, var(--surface-3) 0 6px, transparent 6px 22px) 8px 56px / 60% calc(100% - 56px) no-repeat;
border-radius: var(--r-s);
opacity: 0.8;
animation: tx-skel-breathe 1.4s ease-in-out infinite alternate;
}


.tree-explorer:empty[data-wait]::before {
content: attr(data-wait);
position: absolute;
z-index: 1;
inset-inline: 0;
top: 46%;
width: fit-content;
max-width: calc(100% - 48px);
margin-inline: auto;
padding: 6px 14px;
border-radius: var(--r-pill);
background: var(--surface);
box-shadow: var(--shadow-1);
text-align: center;
color: var(--muted);
font-size: var(--type-note);
opacity: 0;
animation: tx-wait-in 320ms ease-out 1s forwards;
}
@keyframes tx-skel-breathe { from { opacity: 0.45; } to { opacity: 0.85; } }
@keyframes tx-wait-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
.tree-explorer:empty::after { animation: none; }
.tree-explorer:empty[data-wait]::before { animation: tx-wait-in 1ms linear 1s forwards; }
}





.lens-workspace { flex: 1; min-height: 0; display: flex; gap: var(--space-3); margin: var(--space-1) var(--page-gutter) var(--space-6); }
.lens-workspace > .tree-explorer { flex: 1; min-width: 0; margin: 0; }
.lens-panel {
--lens-color: var(--red);
flex: none;
display: flex;
flex-direction: column;
gap: var(--space-3);
width: clamp(16rem, 24vw, 23rem);
min-height: 0;
padding: var(--space-4);
overflow: auto;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-1);
}
.lens-panel[hidden] { display: none; }
.lens-panel { position: relative; }




.lens-workspace { position: relative; }
.lens-dock {
position: absolute;
top: 0;
bottom: 0;
inset-inline-start: calc(clamp(16rem, 24vw, 23rem) + var(--space-3) / 2 - 7px);
z-index: 4;
display: flex;
align-items: center;
justify-content: center;
width: 14px;
min-width: 0;
min-height: 0;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
color: var(--muted);
font: 600 var(--type-meta)/1 var(--font-ui);
cursor: pointer;
}
.lens-dock::before {
content: "";
position: absolute;
top: calc(50% - 17px);
inset-inline-start: 0;
z-index: -1;
width: 14px;
height: 34px;
box-sizing: border-box;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface);
box-shadow: 0 1px 3px rgba(23, 39, 48, 0.08);
transition: background-color 140ms ease, border-color 140ms ease;
}
.lens-dock:hover, .lens-dock:focus-visible { background: var(--teal-wash); color: var(--teal-ink); }
.lens-dock:hover::before, .lens-dock:focus-visible::before { border-color: var(--teal); background: var(--teal-wash); }

.lens-panel.is-docked { width: 2.5rem; min-width: 2.5rem; padding: var(--space-2) 4px; overflow: hidden; cursor: pointer; }
.lens-panel.is-docked:hover { background: var(--teal-wash); }
.lens-panel.is-docked > :not(.lens-dock-label) { display: none; }
.lens-dock-label { writing-mode: vertical-rl; margin: 10px auto 0; color: var(--muted); font: 600 var(--type-meta)/1.2 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; }
.lens-workspace:has(.lens-panel.is-docked) .lens-dock { inset-inline-start: calc(2.5rem + var(--space-3) / 2 - 7px); }
.lens-workspace:has(.lens-panel.is-docked) .lens-dock::before { display: none; }

@media (max-width: 900px) {
.lens-dock { display: none; }
}
body.is-tree-zen[data-page="trees"] .lens-dock { display: none; }





body.is-tree-zen [data-page-panel="trees"] > .stage-head,
body.is-tree-zen [data-page-panel="trees"] > .stage-next,
body.is-tree-zen[data-page="trees"] [data-lens-panel],
body.is-tree-zen [data-tree-explorer] .tx-side,
body.is-tree-zen [data-tree-explorer] .tx-strip,
body.is-tree-zen [data-tree-explorer] :is(.tx-frequencies, .tx-diversity, .tx-table, .tx-story, .tx-map, .tx-compare) { display: none; }
body.is-tree-zen [data-tree-explorer] .tx-body { grid-template-columns: minmax(0, 1fr); }
body.is-tree-zen [data-tree-explorer] :is(.tx-dock, .tx-dock-handle, .tx-filter-panel) { display: none; }
body.is-tree-zen [data-tree-explorer] .tx-scene { grid-template-columns: minmax(0, 1fr); }







body.is-tree-zen [data-page-panel="trees"]::before {
content: "";
position: fixed;
inset: 0;
z-index: 55;
background: color-mix(in srgb, var(--surface-2) 80%, transparent);
backdrop-filter: blur(3px);
animation: tx-zen-fade 0.18s ease-out;
}
html body.is-tree-zen [data-page-panel="trees"] > .lens-workspace > [data-tree-explorer] {
position: fixed;
inset: var(--space-4);
z-index: 56;
min-height: 0;
margin: 0;
border-color: var(--line-strong);
box-shadow: var(--shadow-3);
animation: tx-zen-fade 0.18s ease-out;
}
@media (min-width: 861px) {
body.is-tree-zen[data-rail="expanded"] [data-page-panel="trees"]::before { top: var(--header-h); }
html body.is-tree-zen[data-rail="expanded"] [data-page-panel="trees"] > .lens-workspace > [data-tree-explorer] {
top: calc(var(--header-h) + 16px);
inset-inline-end: calc(var(--rail-w) + var(--space-4));
}
body.is-tree-zen[data-rail="expanded"] .assistant-rail { position: relative; z-index: 57; }

html body.is-tree-zen[data-rail-over-tree="on"] [data-page-panel="trees"] > .lens-workspace > [data-tree-explorer] { inset-inline-end: var(--space-4); }
body.is-tree-zen[data-rail-over-tree="on"][data-rail="expanded"] .assistant-rail { position: fixed; }
}
@media (max-width: 860px) {
html body.is-tree-zen [data-page-panel="trees"] > .lens-workspace > [data-tree-explorer] { inset: 0; border: 0; border-radius: 0; }

html body.is-tree-zen [data-tree-explorer] .tx-scene { flex: 1 1 auto; }
}
body.is-tree-zen[data-page="trees"] { overflow: hidden; }

.tx-inset {
position: absolute;
z-index: 3;
display: grid;
gap: 8px;
box-sizing: border-box;
padding: 10px 12px;
overflow: hidden;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: color-mix(in srgb, var(--surface) 94%, transparent);
box-shadow: var(--shadow-1);
font-size: var(--type-note);
}
.tx-inset[hidden], .tx-inset [hidden] { display: none; }
.tx-inset-fold { position: absolute; top: 4px; inset-inline-end: 4px; min-width: 22px; min-height: 22px; border-color: transparent; background: none; color: var(--subtle); }

.tx-inset.is-pop { z-index: 6; overflow-y: auto; background: var(--surface); box-shadow: var(--shadow-2, var(--shadow-1)); }
.tx-inset-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 6px 10px; padding-inline-end: 18px; }
.tx-inset-number { display: grid; gap: 1px; min-width: 0; }
.tx-inset-number b { color: var(--ink); font: 700 var(--type-title)/1.15 var(--font-ui); font-variant-numeric: tabular-nums; }
.tx-inset-number span { overflow: hidden; color: var(--muted); font-size: var(--type-meta); white-space: nowrap; text-overflow: ellipsis; }
.tx-inset-key { padding-top: 8px; border-top: 1px solid var(--line-soft); }
.tx-inset-key > .tx-site-key-bar { display: grid; gap: 4px; padding: 0; border: 0; background: none; box-shadow: none; font-size: var(--type-note); pointer-events: auto; }
.tx-inset-key > .tx-site-key-bar[hidden] { display: none; }
.tx-inset-chart { display: block; border-radius: var(--r-s); background: var(--wash); }
.tx-inset-axis { display: flex; justify-content: space-between; margin-top: -4px; color: var(--muted); font-size: var(--type-meta); }


body.is-tree-zen [data-tree-explorer].is-figure :is(.tx-toolbar, .tx-groups, .tx-filterbar, .tx-nav, .tx-minimap, .tx-changes-row, .tx-side-toggle, .tree-highlights) { display: none; }
body.is-tree-zen [data-tree-explorer].is-figure .tx-stage > .tx-site-key-bar:not([hidden]) { display: grid; inset-inline-start: 16px; }
.tx-figure-title {
position: absolute;
top: 12px;
inset-inline-start: 16px;
z-index: 4;
display: grid;
gap: 2px;
max-width: calc(100% - 340px);
padding: 6px 10px;
border-radius: var(--r-m);
background: color-mix(in srgb, var(--surface) 88%, transparent);
color: var(--muted);
font-size: var(--type-note);
pointer-events: none;
}
.tx-figure-title b { color: var(--ink); font: 650 var(--type-title)/1.3 var(--font-ui); }
.tx-figure-title .tx-figure-headline { color: var(--ink); font-weight: 600; font-size: var(--type-read); }
.tx-figure-title[hidden], .tx-figure-tools[hidden] { display: none; }
.tx-figure-tools { position: absolute; top: 12px; inset-inline-end: 16px; z-index: 4; display: flex; align-items: center; gap: 8px; }
@container tx (max-width: 639px) {
.tx-figure-export { display: none; }
.tx-figure-title { max-width: calc(100% - 140px); }
}
@keyframes tx-zen-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
body.is-tree-zen [data-page-panel="trees"]::before,
html body.is-tree-zen [data-page-panel="trees"] > .lens-workspace > [data-tree-explorer] { animation: none; }
}
.lens-head { display: grid; gap: var(--space-1); }
.lens-kicker { margin: 0; color: var(--lens-color); font: 700 var(--type-meta)/1.3 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; }
.lens-lede { margin: 0; color: var(--ink); font: 650 var(--type-title)/1.5 var(--font-ui); text-wrap: pretty; }
.lens-note { margin: 0; color: var(--muted); font-size: var(--type-note); line-height: var(--leading); }


.lens-numbers { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.lens-numbers > div { flex: 1 1 auto; }
.lens-numbers > div { min-width: 0; padding: var(--space-2); border-radius: var(--r-s); background: var(--surface-2); }
.lens-numbers dt { overflow: hidden; color: var(--subtle); font-size: var(--type-meta); line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.lens-numbers dd { margin: 2px 0 0; color: var(--ink); font: 700 var(--type-title)/1.3 var(--font-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lens-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line-soft); }
.lens-list-head h3 { margin: 0; color: var(--ink-2); font: 650 var(--type-note)/1.4 var(--font-ui); }
.lens-count { color: var(--subtle); font-size: var(--type-meta); font-variant-numeric: tabular-nums; }
.lens-hint { margin: calc(var(--space-2) * -1) 0 0; color: var(--subtle); font-size: var(--type-meta); line-height: 1.5; }
.lens-events { display: grid; gap: 2px; min-height: 6rem; margin: 0; padding: 0; overflow: auto; list-style: none; }
.lens-group { margin: var(--space-2) 0 2px; color: var(--muted); font: 650 var(--type-meta)/1.3 var(--font-ui); }
.lens-event { display: flex; align-items: flex-start; gap: var(--space-2); width: 100%; min-height: 36px; padding: 6px var(--space-2); border: 1px solid transparent; border-radius: var(--r-s); background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.lens-event:hover { background: var(--surface-2); }
.lens-event:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.lens-event.is-on { border-color: var(--lens-color); background: var(--surface-2); }
.lens-event-mark { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--line-strong); }
.lens-event.is-marked .lens-event-mark { border-radius: 1px; background: var(--lens-color); transform: rotate(45deg); }
.lens-event-words { display: grid; gap: 1px; min-width: 0; }
.lens-event-words b { color: var(--ink); font: 600 var(--type-note)/1.4 var(--font-ui); overflow-wrap: anywhere; }
.lens-event-words small { color: var(--muted); font-size: var(--type-meta); line-height: 1.4; overflow-wrap: anywhere; }
.lens-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; }
.lens-page, .lens-story { min-height: 32px; }


.lens-overlay { --overlay-color: var(--blue); display: grid; gap: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line-soft); }
.lens-overlay h3 { margin: 0; color: var(--ink-2); font: 650 var(--type-note)/1.4 var(--font-ui); }
.lens-overlay-choices { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.lens-overlay-choice {
--overlay-color: var(--blue);
display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 var(--space-2);
border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2);
font: 600 var(--type-meta)/1 var(--font-ui); cursor: pointer;
}
.lens-overlay-choice::before { content: ""; width: 9px; height: 9px; border: 2px solid var(--overlay-color); border-radius: 50%; }
.lens-overlay-choice:hover { background: var(--surface-3); }
.lens-overlay-choice[aria-pressed="true"] { border-color: var(--overlay-color); color: var(--ink); background: var(--surface-2); }
.lens-overlay-group { justify-self: start; max-width: 100%; min-height: 28px; font-size: var(--type-meta); }
.lens-overlay-result { display: grid; gap: var(--space-2); }
.lens-overlay-count { margin: 0; color: var(--ink-2); font-size: var(--type-note); line-height: 1.45; }
.lens-overlay-count b { color: var(--overlay-color); font: 700 var(--type-heading)/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.lens-overlay-only { justify-self: start; min-height: 30px; }



.lens-changes { flex: none; display: grid; gap: var(--space-2); }
.lens-find {
width: 100%; min-height: 36px; padding: 6px var(--space-3); box-sizing: border-box;
border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink);
font: var(--type-note)/1.3 var(--font-ui);
}
.lens-find:focus-visible { border-color: var(--teal); outline: none; box-shadow: var(--focus-ring); }
.lens-chips { display: flex; flex-wrap: wrap; gap: var(--space-1); }


.lens-combos { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.lens-combo {
display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px;
border: 1px solid var(--lens-color); border-radius: 999px; background: var(--surface); color: var(--lens-color);
font: 650 var(--type-meta)/1.2 var(--font-ui); text-align: start; cursor: pointer;
}
.lens-combo small { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.lens-combo:hover { background: color-mix(in srgb, var(--lens-color) 8%, var(--surface)); }
.lens-combo[aria-pressed="true"] { background: var(--lens-color); color: var(--surface); }
.lens-combo[aria-pressed="true"] small { color: color-mix(in srgb, var(--surface) 80%, var(--lens-color)); }
.lens-combo-banner { display: grid; gap: 4px; padding: var(--space-2) var(--space-3); border-radius: var(--r-s); background: var(--surface-2); }
.lens-combo-about { margin: 0; color: var(--ink-2); font-size: var(--type-meta); line-height: 1.5; }
.lens-combo-source { margin: 0; color: var(--subtle); font-size: var(--type-meta); line-height: 1.5; }
.lens-combo-source a { display: inline-block; padding: 6px 0; color: var(--teal-deep); font-weight: 600; }
.lens-combo-clear { justify-self: start; min-height: 28px; font-size: var(--type-meta); }

.lens-lit-flag { flex: none; margin: 0 2px; color: var(--lens-color); font-size: var(--type-note); line-height: 1; }
.lens-lit-tag { display: inline-block; padding: 1px 6px; border-radius: 999px; background: var(--lens-color); color: var(--surface); font: 650 var(--type-meta)/1.4 var(--font-ui); }
.lens-change:not(.is-open) > .lens-lit-note { display: none; }
.lens-lit-note { display: grid; gap: 3px; margin-block: 2px var(--space-1); margin-inline: var(--space-3) 0; padding: var(--space-2); border-inline-start: 2px solid var(--lens-color); border-radius: 0; border-start-end-radius: var(--r-s); border-end-end-radius: var(--r-s); background: var(--surface-2); }
.lens-lit-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.lens-lit-panel { color: var(--muted); font-size: var(--type-meta); }
.lens-lit-text { margin: 0; color: var(--ink-2); font-size: var(--type-meta); line-height: 1.55; }
.lens-lit-source { margin: 0; color: var(--subtle); font-size: var(--type-meta); line-height: 1.5; overflow-wrap: anywhere; }
.lens-lit-source a { display: inline-block; padding: 6px 0; color: var(--teal-deep); font-weight: 600; }
.lens-chip {
display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 10px;
border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2);
font: 650 var(--type-control)/1 var(--font-ui); cursor: pointer;
}
.lens-chip small { color: var(--subtle); font-weight: 500; font-variant-numeric: tabular-nums; }
.lens-chip:hover { background: var(--surface-2); }
.lens-chip[aria-pressed="true"] { border-color: var(--lens-color); background: var(--surface-2); color: var(--ink); }
.lens-change-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.lens-change[hidden] { display: none; }
.lens-change-head {
display: block; width: 100%; padding: 7px var(--space-2); border: 1px solid transparent; border-radius: var(--r-s);
background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer;
}
.lens-change-head:hover { background: var(--surface-2); }
.lens-change-head:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.lens-change.is-open > .lens-change-head { border-color: var(--lens-color); background: var(--surface-2); }

.lens-change.is-marked:not(.is-open) > .lens-change-head { box-shadow: inset 3px 0 0 var(--lens-color); }
.lens-change-words { display: grid; gap: 1px; min-width: 0; }
.lens-change-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.lens-change-top b { color: var(--ink); font: 650 var(--type-note)/1.4 var(--font-ui); overflow-wrap: anywhere; }
.lens-change-times { flex: none; color: var(--lens-color); font: 700 var(--type-note)/1.4 var(--font-ui); font-variant-numeric: tabular-nums; }
.lens-change-words small { color: var(--muted); font-size: var(--type-meta); line-height: 1.45; overflow-wrap: anywhere; }
.lens-change-where { color: var(--subtle) !important; }
.lens-change-branches { display: grid; gap: 1px; margin-block: 2px var(--space-1); margin-inline: var(--space-3) 0; padding: 0; list-style: none; }
.lens-change-branches[hidden] { display: none; }
.lens-change-branches .lens-event { min-height: 32px; padding: 4px var(--space-2); }

.lens-narrow { align-self: flex-start; max-width: 100%; }
@media (max-width: 900px) {
.lens-workspace { flex-direction: column; }
.lens-panel { width: auto; max-height: 40vh; }


.lens-panel:has(.lens-changes) { max-height: 55vh; gap: var(--space-2); padding: var(--space-3); }
.lens-panel:has(.lens-changes) .lens-lede { font-size: var(--type-note); font-weight: 600; }
.lens-panel:has(.lens-changes) .lens-note { display: none; }
.lens-panel:has(.lens-changes) .lens-numbers > div { padding: 6px var(--space-2); }
.lens-panel:has(.lens-changes) .lens-numbers dd { font-size: var(--type-note); }
}


@media (max-width: 860px) {
.lens-workspace, .lens-workspace > .tree-explorer, .tree-explorer { flex: none; }
}


.tx-guide {
position: absolute;
inset-inline-end: 12px;
bottom: 44px;
z-index: 6;
width: min(22rem, calc(100% - 24px));
padding: 10px 12px 8px;
border: 1px solid var(--teal-line);
border-inline-start: 3px solid var(--teal);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: 0 10px 30px rgba(24, 58, 62, 0.14);
animation: tx-guide-in 220ms ease-out;
}
.tx-guide[hidden] { display: none; }
.tx-guide.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity 200ms ease, transform 200ms ease; }
.tx-guide-head { display: flex; align-items: baseline; gap: 8px; }
.tx-guide-title { color: var(--ink); font-weight: 700; font-size: var(--type-note); }
.tx-guide-count { color: var(--muted); font-size: var(--type-meta); font-variant-numeric: tabular-nums; }
.tx-guide-close { margin-inline-start: auto; min-width: 24px; min-height: 24px; }
.tx-guide-steps { display: grid; gap: 3px; margin: 6px 0 4px; padding: 0; list-style: none; font-size: var(--type-note); }
.tx-guide-steps > li { display: flex; gap: 6px; align-items: baseline; color: var(--muted); transition: color 200ms ease; }
.tx-guide-steps > li::before { content: "○"; color: var(--line-strong); flex: none; }
.tx-guide-steps > li.is-now { color: var(--ink); font-weight: 600; }
.tx-guide-steps > li.is-now::before { content: "●"; color: var(--teal); }
.tx-guide-steps > li.is-done { color: var(--ink-2); }
.tx-guide-steps > li.is-done::before { content: "✓"; color: var(--teal); }
.tx-guide-skip { font-size: var(--type-meta); }
@keyframes tx-guide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
.tx-guide { animation: none; }
.tx-guide.is-leaving, .tx-guide-steps > li { transition: none; }
}




.tx-tour {
position: absolute;
inset-inline-start: 12px;
bottom: 44px;
z-index: 7;
width: min(23rem, calc(100% - 24px));
padding: 10px 12px;
border: 1px solid var(--teal-line);
border-inline-start: 3px solid var(--teal);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-3);
color: var(--ink-2);
cursor: auto;
animation: tx-guide-in 220ms ease-out;
}
.tx-tour[hidden] { display: none; }
.tx-tour:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.tx-tour.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity 180ms ease, transform 180ms ease; }
.tx-tour-head { display: flex; align-items: baseline; gap: 8px; }
.tx-tour-name { color: var(--teal-ink); font-size: var(--type-meta); font-weight: var(--weight-strong); }
.tx-tour-count { color: var(--subtle); font-size: var(--type-meta); font-variant-numeric: tabular-nums; }
.tx-tour-close { margin-inline-start: auto; min-width: 24px; min-height: 24px; }
.tx-tour-bar { height: 3px; margin: 6px 0; overflow: hidden; border-radius: var(--r-pill); background: var(--surface-3); }
.tx-tour-fill { display: block; height: 100%; background: var(--teal); transform: scaleX(0); transform-origin: 0 50%; transition: transform 300ms ease; }
.tx-tour-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.tx-tour-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: transform 200ms ease; }
.tx-tour-dot.is-done { background: var(--teal-soft); }
.tx-tour-dot.is-now { background: var(--teal); transform: scale(1.4); }
.tx-tour-text { margin-top: 8px; }
.tx-tour-text.is-new { animation: tx-tour-text-in 260ms ease-out; }
.tx-tour-title { margin: 0; color: var(--ink); font-size: var(--type-title); font-weight: var(--weight-strong); line-height: var(--leading-tight); }
.tx-tour-body { margin: 4px 0 0; font-size: var(--type-read); line-height: var(--leading); }
.tx-tour-detail { margin: 4px 0 0; color: var(--teal-ink); font-size: var(--type-note); font-weight: var(--weight-medium); }
.tx-tour-note { margin: 6px 0 0; color: var(--muted); font-size: var(--type-note); }
.tx-tour-detail[hidden], .tx-tour-note[hidden] { display: none; }
.tx-tour-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.tx-tour-keys { margin-inline-start: auto; color: var(--subtle); font-size: var(--type-meta); }


.tx-tour-spot {
position: fixed;
top: 0;
left: 0;
z-index: 60;
border: 2px solid var(--teal);
border-radius: var(--r-s);
box-shadow: 0 0 0 4px rgba(40, 122, 101, 0.16), 0 0 18px rgba(40, 122, 101, 0.28);
pointer-events: none;
transition: left 240ms ease, top 240ms ease, width 240ms ease, height 240ms ease;
}
.tx-tour-spot[hidden] { display: none; }
.tx-tour-spot::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--teal); border-radius: inherit; opacity: 0; }
.tx-tour-spot.is-arriving::after { animation: tx-tour-pulse 900ms ease-out; }


.tx-intro-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; line-height: 1.3; }
.tx-intro-head .tx-intro-toggle { flex: 1 1 auto; width: auto; min-width: 0; }


.tx-intro-tour { flex: none; max-width: 100%; overflow: hidden; font-size: var(--type-control); line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.tx-intro.is-tucked .tx-intro-head { row-gap: 0; }
.tx-intro-tour[hidden], .tx-tour-button[hidden] { display: none; }
@keyframes tx-tour-text-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes tx-tour-pulse { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.12); } }


@media (max-width: 640px) {
.tx-tour {
position: fixed;
inset-inline: 8px;
bottom: max(8px, env(safe-area-inset-bottom));
z-index: 61;
width: auto;
max-height: 46vh;
overflow-y: auto;
}
.tx-tour-keys { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.tx-tour, .tx-tour-text.is-new, .tx-tour-spot.is-arriving::after { animation: none; }
.tx-tour.is-leaving, .tx-tour-fill, .tx-tour-dot, .tx-tour-spot { transition: none; }
}










.tx-toolbar {
display: grid;
grid-template-columns: auto auto minmax(12rem, 1fr) auto auto auto auto;
grid-template-areas: "map s1 find s2 frame s3 act";
align-items: center;
}
.tx-zone-map { grid-area: map; }
.tx-zone-find { grid-area: find; min-width: 0; }
.tx-zone-frame { grid-area: frame; }
.tx-zone-act { grid-area: act; justify-self: end; }
.tx-sep-1 { grid-area: s1; }
.tx-sep-2 { grid-area: s2; }
.tx-sep-3 { grid-area: s3; }
.tx-zone { flex-wrap: nowrap; white-space: nowrap; }

.tx-toolbar > .tx-zone:not(.tx-zone-find) { min-width: max-content; }
.tx-zone-find .tx-search { min-width: 0; }

.tx-search .tx-search-input { text-overflow: ellipsis; }

.tx-seg { white-space: nowrap; }





@container tx (max-width: 1399px) {
.tx-zone-map .tx-control-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; pointer-events: none; }
.tx-toolbar .tx-field-select { width: auto; field-sizing: content; min-width: 6rem; max-width: 12rem; }
.tx-toolbar .tx-branch-select { width: auto; field-sizing: content; min-width: 6rem; max-width: 10rem; }
.tree-explorer:not(.is-compact-toolbar) .tx-tour-button { display: none; }
}



@container tx (max-width: 1099px) {
.tx-toolbar {
grid-template-columns: auto auto minmax(0, 1fr) auto;
grid-template-areas: "map frame . act" "find find find find";
}
.tx-sep { display: none; }
}


@container tx (max-width: 919px) {
.tx-toolbar { gap: 6px 10px; padding: 8px 12px; }
.tx-zone-map .tx-control-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; pointer-events: none; }


.tx-toolbar .tx-field-select { width: auto; field-sizing: content; min-width: 6rem; max-width: 12rem; }
.tx-toolbar .tx-branch-select { width: auto; field-sizing: content; min-width: 6rem; max-width: 10rem; }
.tx-toolbar .tx-seg { padding-inline: 9px; }
}


@container tx (max-width: 779px) {
.tx-toolbar {
grid-template-columns: minmax(0, 1fr) auto;
grid-template-areas: "map act" "find frame";
}
.tx-branch-control { display: none; }

.tree-explorer.is-simple:not(.is-compact-toolbar) .tx-zone-find { grid-column: 1 / -1; }
}



@container tx (min-width: 780px) {
.tree-explorer.is-bar-tight:not(.is-compact-toolbar) .tx-toolbar {
grid-template-columns: auto auto minmax(0, 1fr) auto;
grid-template-areas: "map frame . act" "find find find find";
}
.tree-explorer.is-bar-tight:not(.is-compact-toolbar) .tx-sep { display: none; }
.tree-explorer.is-bar-tighter:not(.is-compact-toolbar) .tx-toolbar {
grid-template-columns: minmax(0, 1fr) auto;
grid-template-areas: "map act" "find frame";
}
.tree-explorer.is-simple.is-bar-tighter:not(.is-compact-toolbar) .tx-zone-find { grid-column: 1 / -1; }
}



@media (pointer: coarse) {
@container tx (min-width: 1100px) and (max-width: 1299px) {
.tx-toolbar {
grid-template-columns: auto auto minmax(0, 1fr) auto;
grid-template-areas: "map frame . act" "find find find find";
}
.tx-sep { display: none; }
}
@container tx (min-width: 920px) and (max-width: 1099px) {
.tx-zone-map .tx-control-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; pointer-events: none; }
}
@container tx (min-width: 780px) and (max-width: 919px) {
.tx-toolbar {
grid-template-columns: minmax(0, 1fr) auto;
grid-template-areas: "map act" "find frame";
}
}
}


@container tx (max-width: 479px) {



.tx-toolbar { grid-template-columns: minmax(5rem, 6rem) minmax(0, 1fr); grid-template-areas: "act act" "map find"; }
.tx-zone-find, .tx-zone-find .tx-search { gap: 6px; }
.tx-zone-act { justify-self: start; }
.tx-search .tx-search-input { flex-basis: 4rem; min-width: 4rem; }
.tx-zone-frame { display: none; }
.tree-explorer.is-tour-frame .tx-zone-frame { display: inline-flex; }

.tx-toolbar > .tx-zone.tx-zone-map { min-width: 0; }
.tx-zone-map > .tx-control:not(.tx-branch-control) { flex: 1 1 auto; min-width: 0; }
.tx-toolbar .tx-field-select { width: 100%; min-width: 5.5rem; }
}

.tree-explorer.is-compact-toolbar .tx-site { gap: 4px; min-width: 0; }
.tree-explorer.is-compact-toolbar .tx-site-input { width: 5.5rem; min-width: 0; }
.tree-explorer.is-compact-toolbar .tx-toolbar .tx-field-select { min-width: 5.5rem; }


@container tx (max-width: 339px) {
.tx-tour-button { display: none; }
}



.tree-explorer.is-compact-toolbar .tx-toolbar { display: flex; align-items: center; gap: 8px; }
.tree-explorer.is-compact-toolbar .tx-toolbar > .tx-zone.tx-zone-map { flex: 1 1 auto; min-width: 0; }
.tree-explorer.is-compact-toolbar .tx-zone-find,
.tree-explorer.is-compact-toolbar .tx-zone-act { flex: none; }
.tree-explorer.is-compact-toolbar .tx-zone-frame,
.tree-explorer.is-compact-toolbar .tx-sep,
.tree-explorer.is-compact-toolbar .tx-panel-chips { display: none; }
.tree-explorer.is-compact-toolbar .tx-tour-button:not([hidden]) { display: inline-flex; }
.tx-display-menu.is-compact-sheet {
position: fixed;
inset-inline: 0;
top: auto;
bottom: 0;
z-index: 6;
width: auto;
max-height: min(68dvh, 36rem);
overflow-y: auto;
overscroll-behavior: contain;
padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.tree-explorer.is-compact-toolbar .tx-compact-section { padding-block: 8px; border-block-start: 1px solid var(--line-soft); }
.tree-explorer.is-compact-toolbar .tx-compact-section .tx-search { flex: 1 1 100%; }
.tree-explorer.is-compact-toolbar .tx-compact-section .tx-search-wrap { flex: 1 1 auto; }
.tree-explorer.is-compact-toolbar .tx-compact-section .tx-search-input { width: 100%; }
.tx-display-menu.is-compact-sheet :is(.tx-filter-suggest, .tx-site-pick) { position: static; max-height: min(40dvh, 18rem); overflow-y: auto; }
.tx-display-menu.is-compact-sheet .tx-share-menu {
position: static;
width: auto;
max-height: none;
overflow: visible;
margin-block-start: 8px;
box-shadow: none;
}

.tx-note { flex-wrap: nowrap; min-width: 0; overflow: hidden; }
.tx-note > * { flex: none; }
.tx-note > .tx-note-facts,
.tx-note > .tx-note-warn { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-note > .tx-note-warn { flex-shrink: 4; }
.tx-note > .tx-panel-chips { flex-wrap: nowrap; }
.tx-note > .tx-presets { flex-wrap: nowrap; }
@container tx (max-width: 1099px) {
.tx-note > .tx-note-source { display: none; }
}

@container tx (max-width: 819px) {
.tx-note { flex-wrap: wrap; }
.tx-note > .tx-note-facts, .tx-note > .tx-note-warn { flex: 1 1 0; }
.tx-note > .tx-panel-chips > .tx-chip { flex: none; white-space: nowrap; }
.tx-note > .tx-panel-chips { order: 5; flex: 1 1 100%; margin-inline-start: 0; overflow-x: auto; scrollbar-width: none; }
.tx-note > .tx-panel-chips::-webkit-scrollbar { display: none; }

.tree-explorer.is-simple .tx-note > .tx-panel-chips { order: 0; flex: none; margin-inline-start: auto; overflow: visible; }

.tx-note > .tx-presets { order: 4; flex: 1 1 100%; margin-inline-start: 0; overflow-x: auto; scrollbar-width: none; }
.tx-note > .tx-presets::-webkit-scrollbar { display: none; }
.tx-note > .tx-presets > .tx-seg { flex: 1 0 auto; }
}


@container tx (max-width: 979px) {
.tx-body { grid-template-columns: minmax(0, 1fr) 15rem; }
.tx-side-toggle { inset-inline-end: calc(15rem - 7px); }
}



.tx-filter-panel {
min-width: 0;
min-height: 0;
overflow: auto;
overscroll-behavior: contain;
padding: 12px 14px 14px;
border-inline-start: 1px solid var(--line);
background: var(--surface);
}
.tx-filter-panel[hidden] { display: none; }
.tx-filter-panel .tx-palette-head { position: sticky; top: -12px; z-index: 1; margin: -12px -14px 8px; padding: 10px 14px 8px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.tx-filter-panel .tx-filter-foot { position: sticky; bottom: -14px; margin: 0 -14px -14px; padding: 10px 14px 12px; background: var(--surface); }
.tree-explorer.is-filtering .tx-body { grid-template-columns: minmax(0, 1fr) clamp(17rem, 30cqi, 21rem); }
.tree-explorer.is-filtering .tx-side,
.tree-explorer.is-filtering .tx-side-toggle { display: none; }
.tx-filter-button.is-open { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-ink); }
@container tx (max-width: 639px) {
.tree-explorer.is-filtering .tx-body { grid-template-columns: minmax(0, 1fr); }
.tree-explorer.is-filtering .tx-side { display: block; }
.tx-filter-panel {
position: fixed;
inset-inline: 8px;
bottom: max(8px, env(safe-area-inset-bottom));
z-index: 61;
max-height: min(56vh, 30rem);
border: 1px solid var(--line);
border-radius: var(--r-m);
box-shadow: var(--shadow-3);
}
}


.tx-main {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
overflow: hidden;
}
.tx-scene {
flex: 1 1 0;
min-height: 176px;
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr);
}
.tx-scene > .tx-stage { min-height: 0; }
.tx-main.has-map .tx-scene { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }


.tx-main.has-map.is-map-below .tx-scene { grid-template-columns: minmax(0, 1fr); }
.tx-dock > .tx-map { border-inline-start: 0; }
.tx-dock > .tx-map:not([hidden]) ~ :not([hidden]) { border-top: 1px solid var(--line); }


.tx-dock {
flex: 0 1 auto;
max-height: clamp(120px, 42%, 360px);
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-gutter: stable;
background: var(--surface);
}
.tree-explorer.has-dock-height .tx-dock { flex: 0 0 var(--tx-dock-h); max-height: calc(100% - 188px); }
.tx-dock > .tx-diversity:first-child, .tx-dock > [hidden] + .tx-diversity { border-top: 0; }
.tx-dock > .tx-diversity:not([hidden]) ~ .tx-diversity:not([hidden]) { border-top: 1px solid var(--line); }

.tx-dock:not(:has(> :not([hidden]))),
.tx-main:not(:has(> .tx-dock > :not([hidden]))) > .tx-dock-handle { display: none; }


.tx-dock .tx-diversity-head { position: sticky; top: 0; z-index: 2; flex-wrap: nowrap; padding-bottom: 6px; background: var(--surface); }
.tx-dock .tx-diversity-head > * { flex: none; }
.tx-dock .tx-diversity-head > .tx-diversity-hint { flex: 0 1 auto; min-width: 2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-dock .tx-diversity-head > .tx-panel-close { margin-inline-start: auto; }
@container tx (max-width: 639px) {
.tx-dock .tx-diversity-head { flex-wrap: wrap; }
}

.tx-dock > * { position: relative; }
.tx-dock > .is-arriving::after {
content: "";
position: absolute;
inset: 0;
z-index: 3;
border-radius: var(--r-s);
box-shadow: inset 0 0 0 2px var(--teal);
opacity: 0;
pointer-events: none;
animation: tx-dock-arrive 900ms ease-out;
}
@keyframes tx-dock-arrive { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tx-dock > .is-arriving::after { animation: none; } }

.tx-dock-handle {
position: relative;
flex: none;
height: 9px;
margin-block: -4px;
z-index: 3;
cursor: row-resize;
touch-action: none;
outline: none;
}
.tx-dock-handle::before { content: ""; position: absolute; inset-inline: 0; top: 4px; height: 1px; background: var(--line); }
.tx-dock-handle::after {
content: "";
position: absolute;
top: 2px;
left: calc(50% - 18px);
width: 36px;
height: 5px;
border-radius: var(--r-pill);
background: var(--line-strong);
transition: background-color 140ms ease;
}
.tx-dock-handle:hover::before, .tx-dock-handle.is-dragging::before, .tx-dock-handle:focus-visible::before { height: 2px; top: 3.5px; background: var(--teal); }
.tx-dock-handle:hover::after, .tx-dock-handle.is-dragging::after, .tx-dock-handle:focus-visible::after { background: var(--teal); }
.tree-explorer:has(.tx-dock-handle.is-dragging) { user-select: none; cursor: row-resize; }



.tx-dock .tx-diversity-head > .tx-dock-fold { margin-inline-start: auto; }
.tx-dock .tx-diversity-head > .tx-dock-fold + .tx-panel-close { margin-inline-start: 0; }
@media (min-width: 861px) {
.tree-explorer.is-dock-folded .tx-dock, .tree-explorer.is-dock-folded.has-dock-height .tx-dock { flex: none; max-height: none; overflow: hidden; scrollbar-gutter: auto; }

.tree-explorer.is-dock-folded .tx-dock > :not([hidden]):not(.is-filling) > :not(.tx-diversity-head):not(.card-zoom) { display: none; }
.tree-explorer.is-dock-folded .tx-dock .tx-diversity-head { position: static; margin-bottom: 0; padding-bottom: 0; cursor: pointer; }
.tree-explorer.is-dock-folded .tx-dock > .tx-diversity:not([hidden]):not(.is-filling) { padding-block: 6px; }
}
@media (max-width: 860px) {
.tx-dock-fold { display: none; }
}

@container tx (max-width: 819px) {
.tx-main.has-map .tx-scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.4fr) minmax(200px, 1fr); }
.tx-scene > .tx-map { border-inline-start: 0; border-top: 1px solid var(--line); }
}




@media (max-width: 860px) {
.tx-main { overflow: visible; }

.tx-scene { flex: none; min-height: max(58vh, min(480px, calc(100dvh - var(--header-h) - 12px))); }
.tx-main.has-map .tx-scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: 58vh minmax(320px, auto); }
.tx-scene > .tx-map { border-inline-start: 0; border-top: 1px solid var(--line); }
.tx-dock, .tree-explorer.has-dock-height .tx-dock { flex: none; max-height: none; overflow: visible; scrollbar-gutter: auto; border-top: 1px solid var(--line); }
.tx-dock .tx-diversity-head { position: static; }
.tx-body, .tree-explorer.is-filtering .tx-body { grid-template-columns: minmax(0, 1fr); }
.tree-explorer.is-filtering .tx-side { display: block; }
.tx-dock-handle { display: none !important; }
}





.lens-workspace { margin-bottom: var(--space-4); }
@media (min-width: 1101px) {
body[data-page="trees"] .lens-workspace { margin-bottom: var(--space-3); }
}



@media (min-width: 861px) {
[data-page-panel="trees"] { overflow-y: auto; overscroll-behavior-y: contain; }
[data-page-panel="trees"] > .lens-workspace { flex: 1 0 0; }
[data-page-panel="trees"] > .lens-workspace > .tree-explorer { min-height: min(560px, calc(100dvh - var(--header-h) - 16px)); }
body.is-tree-zen [data-page-panel="trees"] { overflow-y: hidden; }
}

@container (min-width: 780px) {
[data-page-panel="trees"] > .stage-head > .stage-tabs { grid-column: 3; grid-row: 1; justify-self: end; }
}


@media (min-width: 861px) and (max-height: 860px), (min-width: 861px) and (max-width: 1699px) {
[data-page-panel="trees"] > .stage-head { padding-block: 12px 8px; row-gap: 6px; }
[data-page-panel="trees"] > .stage-head > .stage-sub > span:first-child { display: none; }
body[data-page="trees"] .lens-workspace { margin-top: 0; }
}

@media (min-width: 861px) and (max-width: 900px) {
.lens-panel { max-height: min(30vh, 16rem); }
}






.tree-highlights { flex: none; margin: 0 var(--page-gutter) var(--space-3); }
.tree-highlights[hidden] { display: none; }
.th-head { display: flex; align-items: center; gap: var(--space-2); min-height: 24px; margin-bottom: var(--space-2); }
.th-title { margin: 0; color: var(--ink); font: 650 var(--type-control)/1.3 var(--font-ui); }
.th-count { color: var(--muted); font-size: var(--type-meta); }

.th-line { display: flex; flex: 1 1 auto; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.th-line::-webkit-scrollbar { display: none; }
.th-chip {
--th-color: var(--teal);
display: inline-flex;
flex: none;
align-items: baseline;
gap: 5px;
min-height: 24px;
margin: 0;
padding: 2px 9px;
border: 1px solid var(--line-soft);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--ink);
font: inherit;
font-size: var(--type-meta);
white-space: nowrap;
cursor: pointer;
}
.th-chip .th-dot { align-self: center; }
.th-chip:hover { border-color: color-mix(in srgb, var(--th-color) 55%, var(--line)); }
.th-chip:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.th-chip.is-on { border-color: var(--th-color); background: color-mix(in srgb, var(--th-color) 7%, var(--surface)); }
.th-chip-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.th-chip-value.is-mono { font-family: var(--font-mono); }
.th-chip-name { color: var(--muted); }
.tree-highlights.is-folded .th-head { margin-bottom: 0; }
.tree-highlights.is-folded .th-title { flex: none; white-space: nowrap; }
@media (max-width: 640px) {
.tree-highlights.is-folded .th-title { display: none; }
}
.th-fold { flex: none; margin-inline-start: auto; min-height: 24px; padding: 0 6px; font-size: var(--type-meta); white-space: nowrap; }
.th-cards {
display: grid;
grid-auto-flow: column;
grid-auto-columns: minmax(14rem, 1fr);
gap: var(--space-2);
overflow-x: auto;
scroll-snap-type: x proximity;
scrollbar-width: thin;
padding: 1px 1px 2px;
}
.th-cards[hidden] { display: none; }

.th-cards.is-more-end { -webkit-mask-image: linear-gradient(to var(--th-end, right), black calc(100% - 48px), transparent); mask-image: linear-gradient(to var(--th-end, right), black calc(100% - 48px), transparent); }
.th-cards.is-more-start { -webkit-mask-image: linear-gradient(to var(--th-start, left), black calc(100% - 48px), transparent); mask-image: linear-gradient(to var(--th-start, left), black calc(100% - 48px), transparent); }
.th-cards.is-more-start.is-more-end { -webkit-mask-image: linear-gradient(to right, transparent, black 48px, black calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, black 48px, black calc(100% - 48px), transparent); }
[dir="rtl"] .th-cards { --th-end: left; --th-start: right; }
.th-card {
--th-color: var(--teal);
display: flex;
flex-direction: column;
align-items: stretch;
gap: 2px;
min-width: 0;
margin: 0;
padding-block: 10px;
padding-inline: 12px;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface);
color: var(--ink);
font: inherit;
text-align: start;
scroll-snap-align: start;
cursor: pointer;
transition: border-color var(--t-quick) var(--ease-out), box-shadow var(--t-quick) var(--ease-out), background-color var(--t-quick) var(--ease-out);
}
.th-card:hover { border-color: color-mix(in srgb, var(--th-color) 55%, var(--line)); box-shadow: var(--shadow-1); }
.th-card:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.th-card.is-on {
border-color: var(--th-color);
background: color-mix(in srgb, var(--th-color) 7%, var(--surface));
box-shadow: 0 0 0 1px var(--th-color) inset;
}
.th-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.th-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--th-color); }
.th-kicker { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--muted); font: 600 var(--type-meta)/1.3 var(--font-ui); white-space: nowrap; text-overflow: ellipsis; }
.th-go { flex: none; color: var(--teal-ink); font: 600 var(--type-meta)/1.3 var(--font-ui); opacity: 0.8; }
.th-go::after { content: " →"; }
.th-card:hover .th-go, .th-card.is-on .th-go { opacity: 1; }
.th-card.is-on .th-go { color: var(--th-color); }
.th-card.is-on .th-go::after { content: " ✓"; }
.th-figure { display: flex; align-items: baseline; gap: 6px; min-width: 0; margin-top: 2px; }
.th-value { flex: none; color: var(--ink); font-size: var(--type-heading); font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.th-value.is-mono { font-family: var(--font-mono); }
.th-unit { min-width: 0; overflow: hidden; color: var(--muted); font-size: var(--type-meta); white-space: nowrap; text-overflow: ellipsis; }
.th-text {
margin-top: 2px;
color: var(--ink);
font-size: var(--type-meta);
line-height: 1.45;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
body.is-tree-zen [data-page-panel="trees"] > .tree-highlights { display: none; }

@media (max-height: 700px) {
.th-text { display: none; }
}
@media (max-width: 640px) {
.th-cards { grid-auto-columns: 78%; }
}

@media (max-width: 480px) {
.th-fold { min-width: 28px; min-height: 28px; }
.th-chip { min-height: 28px; align-items: center; }
}




.tx-changes-row {
flex: none;
display: flex;
align-items: center;
box-sizing: border-box;
height: 36px;
min-width: 0;
overflow: hidden;
border-bottom: 1px solid var(--line-soft);
background: var(--surface);
}
.tx-changes-row > .tx-changes {
flex: 1 1 auto;
flex-wrap: nowrap;
min-width: 0;
padding-block: 3px;
padding-inline: 12px 10px;
overflow-x: auto;
scrollbar-width: none;
border-bottom: 0;
background: none;
}
.tx-changes-row > .tx-changes > * { flex: none; white-space: nowrap; }

.tx-crumbs { display: flex; flex: 0 1 auto; align-items: center; gap: 2px; min-width: 0; max-width: 55%; overflow: hidden; padding-inline: 8px 4px; font-size: var(--type-note); }
.tx-crumbs[hidden] { display: none; }
.tx-crumb { flex: 0 1 auto; min-width: 0; max-width: 14rem; overflow: hidden; padding: 2px 6px; border: 0; border-radius: var(--r-xs); background: none; color: var(--teal-ink); font: inherit; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.tx-crumb:hover, .tx-crumb:focus-visible { background: var(--teal-wash); outline: none; }
.tx-crumb.is-current { color: var(--ink); font-weight: 600; cursor: default; }
.tx-crumb-sep { flex: none; color: var(--subtle); }
.tx-changes-row.has-crumbs::before { display: none; }

.tx-changes-row { position: relative; }
.tx-changes-row > .tx-toast { top: 50%; bottom: auto; left: auto; inset-inline-end: 8px; transform: translateY(-50%); padding-block: 4px; }
.tx-changes-row:has(> .tx-changes[hidden])::before {
content: attr(data-none);
padding-inline: 12px;
color: var(--subtle);
font-size: var(--type-meta);
}
@media (max-width: 600px) {
.tx-changes-row > .tx-changes .tx-changes-title { display: none; }
.tx-changes-row > .tx-changes .tx-change-chip { padding-inline: 8px 2px; gap: 2px; }
}








@media (max-width: 640px) {
[data-page-panel="trees"] > .stage-head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 8px; padding-top: 12px; }
[data-page-panel="trees"] > .stage-head > .stage-sub { grid-column: 2; grid-row: 1; }
[data-page-panel="trees"] > .stage-head > .stage-sub > span:first-child { display: none; }
[data-page-panel="trees"] > .stage-head > .stage-tabs { grid-column: 1 / -1; grid-row: 2; }
}

@media (min-width: 641px) and (max-width: 860px) and (max-height: 500px) {
[data-page-panel="trees"] > .stage-head { padding-block: 10px 6px; row-gap: 6px; }
[data-page-panel="trees"] > .stage-head > .stage-sub > span:first-child { display: none; }
}
@container tx (max-width: 479px) {
.tx-note > .tx-note-facts { display: none; }
.tx-note > .tx-note-warn { cursor: pointer; }
.tx-note.is-warn-open { flex-wrap: wrap; }
.tx-note.is-warn-open > .tx-note-warn { order: 6; flex: 1 1 100%; overflow: visible; white-space: normal; }

.tx-note > .tx-panel-chips { gap: 4px; }
.tx-note > .tx-panel-chips > .tx-chip { padding-inline: 7px; font-size: var(--type-meta); }
}


@container tx (max-width: 639px) {
.tx-dock .tx-diversity-head > .tx-diversity-focus { flex: 1 1 100%; order: 9; white-space: normal; }
.tx-dock .tx-diversity-head > .tx-panel-close { order: 8; }
}
@media (max-width: 860px) {
.tx-panel.is-detail {
position: fixed;
inset-inline: 0;
bottom: 0;
z-index: 60;
max-width: 640px;
max-height: min(50dvh, 30rem);
margin-inline: auto;
overflow-y: auto;
overscroll-behavior: contain;
padding-block: 8px calc(14px + env(safe-area-inset-bottom, 0px));
padding-inline: 16px;
border: 1px solid var(--line);
border-bottom: 0;
border-start-start-radius: 16px;
border-start-end-radius: 16px;
background: var(--surface);
box-shadow: 0 -10px 30px rgba(23, 39, 48, 0.18);
animation: tx-sheet-in 220ms ease-out;
}
.tx-panel.is-detail::before {
content: "";
display: block;
width: 36px;
height: 4px;
margin: 0 auto 8px;
border-radius: 2px;
background: var(--line);
}
.tx-panel.is-detail .tx-panel-head { position: sticky; top: -8px; z-index: 1; padding-top: 4px; background: var(--surface); }

.tree-explorer.is-filtering .tx-panel.is-detail { display: none; }
}


@media (max-width: 860px) {
.tree-explorer.is-filtering .tx-body { grid-template-columns: minmax(0, 1fr); }
.tx-filter-panel {
position: fixed;
inset-inline: 8px;
bottom: max(8px, env(safe-area-inset-bottom));
z-index: 61;
max-height: min(56vh, 30rem);
border: 1px solid var(--line);
border-radius: var(--r-m);
box-shadow: var(--shadow-3);
}
}


@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
.tx-filter-panel,
.tx-panel.is-detail {
position: fixed;
top: calc(var(--header-h) + 8px);
bottom: 8px;
inset-inline: auto 8px;
z-index: 61;
width: min(340px, 44vw);
max-width: none;
max-height: none;
margin: 0;
border: 1px solid var(--line);
border-radius: var(--r-m);
box-shadow: var(--shadow-3);
}
.tx-panel.is-detail::before { display: none; }
.tx-panel.is-detail { padding-block: 10px; animation-name: tx-side-sheet-in; }
}
@keyframes tx-side-sheet-in { from { opacity: 0; translate: calc(var(--inline-sign) * 24px) 0; } to { opacity: 1; translate: none; } }
@keyframes tx-sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tx-panel.is-detail { animation: none; } }






.tree-explorer.is-simple :is(.tx-branch-control, .tx-add-search, .tx-filter-button, .tx-zone-frame,
.tx-sep-3, .tx-help-button, .tx-compact-frame, .tx-view-display, .tx-view-reset,
.tx-panel-chips > .tx-chip:not([data-key="map"])) { display: none !important; }
.tree-explorer.is-simple:not(.is-compact-toolbar) .tx-view:not(.tx-share) { display: none !important; }
}

@layer legacy {






.stage-split {
flex: 1;
min-height: 0;
display: flex;
}
.stage-split > .report-doc-body { flex: 1 1 auto; min-width: 0; }
.stage-split .tree-explorer.is-docked {
flex: 0 0 var(--dock-w, 42%);
min-width: 320px;
margin-block: 0 var(--space-4);
margin-inline: 0 var(--page-gutter);
}
.stage-split.is-docked > :is(.tree-explorer, .split-handle) {
position: sticky;
top: var(--dock-top, 0px);
align-self: flex-start;
height: var(--dock-h, 70vh);
}
.split-handle {
flex: 0 0 10px;
cursor: col-resize;
position: relative;
touch-action: none;
}
.split-handle::after {
content: "";
position: absolute;
top: 40%;
bottom: 40%;
left: 3px;
width: 4px;
border-radius: 2px;
background: var(--line-strong);
}
.split-handle:hover::after,
.split-handle:focus-visible::after { background: var(--teal); }

.split-handle:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.split-handle[hidden] { display: none; }
.stage-split.is-resizing > .report-doc-body { pointer-events: none; user-select: none; }
.dock-toggle {
min-height: 32px;
padding: 4px 12px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
color: var(--teal-deep);
font: var(--weight-medium) var(--type-control) var(--font-ui);
cursor: pointer;
}
.dock-toggle[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-wash, var(--surface-2)); }
.dock-toggle[hidden] { display: none; }
@media (max-width: 980px) {
.stage-split { flex-direction: column; }
.stage-split.is-docked > .tree-explorer.is-docked {
top: auto;
bottom: 0;
z-index: 5;
align-self: stretch;
flex: none;
height: min(46vh, 460px);
min-width: 0;
margin: 0;
border-top: 1px solid var(--line);
background: var(--surface);
box-shadow: 0 -6px 16px rgb(23 39 48 / 0.08);
}
.split-handle { display: none; }
}



#selection-body > .rd-section { grid-template-columns: minmax(0, 1fr); }
.rd-selection-view { min-width: 0; }
.rd-selection-view .sel-views { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.rd-selection-view .sel-figure { margin: 0; min-width: 0; }
@media (max-width: 600px), (pointer: coarse) { .dock-toggle { min-height: 32px; } }

}

@layer legacy {










.chat-page { --chat-col: var(--read-measure); }
.chat-column {
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
}
.chat-page:not([data-mode="welcome"]) .chat-stage { max-width: calc(var(--page-measure) + 40px); }
.transcript { --talk-gap: 14px; gap: var(--talk-gap); }
.bubble.assistant,
.bubble.question {
max-width: 100%;
padding: 2px 0;
border-color: transparent;
background: transparent;
font-size: var(--type-read);
line-height: 1.7;
}
.bubble.question { padding-inline-start: 14px; border-inline-start-color: var(--teal); }
.bubble.user {
max-width: min(560px, 85%);
font-size: var(--type-read);
line-height: 1.6;
border-radius: 18px;
border-end-end-radius: 6px;
}
.composer-dock { background: linear-gradient(180deg, transparent, var(--wash) 18px); }
.composer {
background: var(--surface);
box-shadow: 0 4px 18px rgba(23, 39, 48, 0.07);
}
.chat-page .answer-teaser { width: 100%; }

.run-board { width: min(100%, var(--chat-col)); margin: 0 auto 8px; }


.chat-page .runtime-banner {
width: min(100% - 40px, var(--chat-col));
margin: 0 auto 12px;
border: 1px solid var(--line);
border-radius: var(--r-m);
}
.chat-page .runtime-banner[data-tone="problem"] { border-color: var(--red-line); }
@media (max-width: 860px) {
.transcript { padding-inline: 4px; }
.composer-dock { padding-inline: 0; }
}



.next-step[data-card-in-view="1"] .run-actions .is-primary,
.next-step[data-card-in-view="1"] .next-step-text { display: none; }
.next-step[data-card-in-view="1"]:not(:has(.run-actions button:not([hidden]):not(.is-primary))) { display: none; }
body[data-page="chat"]:has(#next-step[data-card-in-view="1"]) #run-headline { display: none; }
body[data-page="chat"]:has(#next-step[data-card-in-view="1"]) .run-kicker { display: block; }






@media (max-width: 520px) {

.run-board .run-head > div { flex: 1 1 auto; min-width: 0; }
.run-board .run-board-toggle { align-self: flex-start; }
.run-board .run-board-toggle-text {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}

.run-board .run-eta { color: var(--muted); font-family: var(--font-ui); font-weight: 500; }


.next-step[data-quiet="1"] { padding: 0 2px 6px; border: 0; background: none; box-shadow: none; }
.next-step[data-quiet="1"]::before { display: none; }
.next-step[data-quiet="1"] .run-actions button { min-height: 30px; padding-block: 4px; }
.next-step[data-quiet="1"] .next-step-text { display: none; }
.next-step[data-quiet="1"] .run-actions { justify-content: flex-end; }


.next-step[data-compact="1"] { flex-wrap: wrap; }
.next-step[data-compact="1"] .next-step-kicker { display: none; }
.next-step[data-compact="1"] .run-actions { flex: 1 1 100%; flex-wrap: wrap; overflow: visible; }

.next-step[data-answered="1"] .run-actions { flex-wrap: wrap; overflow: visible; }
.next-step[data-answered="1"] .run-actions button:not([hidden]) {
flex: 1 1 0;
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

.next-step[data-answered="1"] .run-actions button.is-primary:not([hidden]) { flex-basis: 100%; }


.composer:has(textarea:focus) .autopilot-switch { display: none; }



.run-row-wrap { flex-wrap: wrap; }
.run-row-wrap > .run-row { flex: 1 1 calc(100% - 60px); }
.run-row-wrap > .run-row-release { order: 3; margin-inline-start: 10px; padding: 5px 8px; }
.run-badge { max-width: 100%; white-space: normal; }
}



@media (max-width: 520px) and (pointer: coarse) {
.chat-page:has(.composer textarea:focus) .next-step { display: none; }
.chat-page:has(.composer textarea:focus) .autopilot-intro { display: none; }
.composer:focus-within { box-shadow: 0 0 0 1px var(--teal); }
}

}

@layer legacy {








.run-board.has-phases .run-progress { align-items: flex-start; }
.run-board.has-phases .run-progress-track { display: none; }
.run-board.has-phases .run-progress-label { line-height: 8px; }
.run-phasebar {
display: flex;
flex: 1;
gap: 3px;
min-width: 0;
margin: 0;
padding: 0;
list-style: none;
}
.run-phasebar[hidden] { display: none; }
.run-phasebar-part {
display: flex;

flex: 1 1 5em;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.run-phasebar-track {
display: block;
height: 8px;
overflow: hidden;
background: var(--line-soft);
}
.run-phasebar-part:first-child .run-phasebar-track { border-start-start-radius: var(--r-pill); border-end-start-radius: var(--r-pill); }
.run-phasebar-part:last-child .run-phasebar-track { border-start-end-radius: var(--r-pill); border-end-end-radius: var(--r-pill); }
.run-phasebar-fill {
display: block;
width: 0;
height: 100%;
background: var(--teal);
transition: width 0.4s ease;
}
.run-phasebar-name {
overflow: hidden;
color: var(--subtle);
font: 500 var(--type-meta)/1.3 var(--font-ui);
white-space: nowrap;
text-overflow: ellipsis;
}
.run-phasebar-part[data-state="done"] .run-phasebar-name { color: var(--muted); }
.run-phasebar-part[data-state="done"] .run-phasebar-name::before { content: "✓ "; color: var(--teal); font-weight: 700; }
.run-phasebar-part:is([data-state="running"], [data-state="waiting"], [data-state="failed"]) .run-phasebar-name { color: var(--ink); font-weight: 700; }
.run-phasebar-part[data-state="waiting"] .run-phasebar-fill { background: var(--amber); }
.run-phasebar-part[data-state="failed"] .run-phasebar-fill { background: var(--red); }
.chat-page[data-mode="running"] .run-phasebar-part[data-state="running"] .run-phasebar-fill {
background: linear-gradient(90deg, var(--teal) 0%, color-mix(in srgb, var(--teal) 45%, var(--surface)) 50%, var(--teal) 100%) 0 0 / 200% 100%;
animation: task-sweep 2.4s linear infinite;
}
.run-board.is-reconnecting .run-phasebar-fill { animation: none; }
.chat-page[data-mode="failed"] .run-progress-label { color: var(--red); }
.run-detail-kicker[data-state="failed"] { color: var(--red); }
.run-detail-kicker:is([data-state="complete"], [data-state="pending"], [data-state="skipped"], [data-state="held"]) { color: var(--muted); }


.chat-page:is([data-mode="running"], [data-mode="gate"], [data-mode="failed"]) .run-board:not(.is-compact) .run-details-inner { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.chat-page[data-mode="gate"] .run-board .run-split { height: min(300px, 36vh); }


.run-map { display: flex; min-height: 0; flex-direction: column; }
.run-map-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
margin: 0 0 4px;
padding: 0 6px;
color: var(--ink-2);
font: 700 var(--type-note)/1.3 var(--font-ui);
}
.run-map-head small { color: var(--muted); font-size: var(--type-meta); font-weight: 500; }
.run-map .run-steps { flex: 1; min-height: 0; overflow: auto; }
.run-phase { border-bottom: 1px solid var(--line-soft); }
.run-phase:last-child { border-bottom: 0; }
.run-phase-head {
display: grid;
grid-template-columns: 20px minmax(0, 1fr) auto 10px;
align-items: center;
gap: 10px;
width: 100%;
padding: 9px 6px;
border: 0;
border-radius: var(--r-s);
background: none;
color: var(--ink);
font: 650 var(--type-read)/1.3 var(--font-ui);
text-align: start;
cursor: pointer;
}
.run-phase-head:hover { background: var(--wash); }
.run-phase-head:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.run-phase-head::after {
content: "";
width: 6px;
height: 6px;
border-right: 1.5px solid var(--muted);
border-bottom: 1.5px solid var(--muted);
transform: rotate(-45deg);
transition: transform var(--t-base) var(--ease-out);
}
.run-phase.is-open > .run-phase-head::after { transform: translateY(-2px) rotate(45deg); }
.run-phase-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-phase-sum { color: var(--muted); font-size: var(--type-meta); font-weight: 500; white-space: nowrap; }
.run-phase.is-now .run-phase-sum { color: var(--teal-ink); font-weight: 650; }
.run-phase[data-state="pending"] .run-phase-name { color: var(--muted); font-weight: 600; }
.run-phase[data-state="waiting"] .run-phase-sum { color: var(--amber-ink); }
.run-phase[data-state="failed"] .run-phase-sum { color: var(--red); }
.run-phase-mark {
position: relative;
box-sizing: border-box;
width: 18px;
height: 18px;
border: 1.5px solid var(--line);
border-radius: 50%;
color: var(--surface);
font: 800 var(--type-floor) var(--font-ui);
line-height: 15px;
text-align: center;
}
.run-phase[data-state="done"] .run-phase-mark { border-color: var(--teal); background: var(--teal); }
.run-phase[data-state="done"] .run-phase-mark::before { content: "✓"; }
.run-phase[data-state="failed"] .run-phase-mark { border-color: var(--red); background: var(--red); }
.run-phase[data-state="failed"] .run-phase-mark::before { content: "!"; }
.run-phase:is([data-state="running"], [data-state="waiting"]) .run-phase-mark { border-color: var(--teal); }
.run-phase[data-state="waiting"] .run-phase-mark { border-color: var(--amber); }
.run-phase:is([data-state="running"], [data-state="waiting"]) .run-phase-mark::before {
content: "";
position: absolute;
inset: 3px;
border-radius: 50%;
background: var(--teal);
animation: pulse 1.4s ease-in-out infinite;
}
.run-phase[data-state="waiting"] .run-phase-mark::before { background: var(--amber); }
.run-phase-steps {
display: none;
margin: 0 0 8px;
margin-inline-start: 15px;
padding: 0;
padding-inline-start: 10px;
border-inline-start: 2px solid var(--line-soft);
list-style: none;
}
.run-phase.is-open > .run-phase-steps { display: block; }


.run-steps .run-step { font-size: var(--type-read); }
.run-steps .run-step:hover { background: var(--wash); }
.run-steps .run-step.is-quiet { display: none; }
.run-steps .run-step .dot { width: 8px; height: 8px; }
.run-steps .run-step.complete { color: var(--ink-2); }
.run-steps .run-step.running { background: var(--teal-wash); color: var(--teal-ink); }
.run-steps .run-step.current { padding-inline-start: 5px; }
.run-steps .run-step.active-log:not(.running) { background: var(--surface-3); }
.run-steps .run-step small { color: var(--muted); white-space: nowrap; }
.run-steps .run-step.running small { color: var(--teal-ink); font-weight: 650; }
.run-step-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.run-detail-about {
margin: 0 0 12px;
color: var(--ink-2);
font-size: var(--type-note);
line-height: 1.55;
}
.run-detail-about[hidden], .run-detail-next[hidden], .run-step-meter[hidden] { display: none; }
.run-step-meter { flex: none; margin: 2px 0 0; }
.run-step-track {
position: relative;
height: 6px;
overflow: hidden;
border-radius: var(--r-pill);
background: var(--line-soft);
}
.run-step-fill {
width: 0;
height: 100%;
border-radius: inherit;
background: var(--teal);
transition: width 1s linear;
}
.run-step-meter.is-unknown .run-step-fill {
width: 30%;
opacity: 0.6;
animation: run-step-unknown 1.8s ease-in-out infinite alternate;
}
@keyframes run-step-unknown { from { transform: translateX(0); } to { transform: translateX(233%); } }
.run-step-meter.is-stalled .run-step-fill { animation: none; opacity: 0.4; }
.run-step-time {
margin: 7px 0 0;
color: var(--ink);
font: 650 var(--type-note)/1.4 var(--font-ui);
}
.run-detail .run-log-status { margin: 4px 0 10px; padding-top: 0; border-top: 0; }
.run-detail-next {
flex: none;
margin: 0 0 10px;
padding: 7px 10px;
border: 1px dashed var(--line);
border-radius: var(--r-s);
color: var(--ink-2);
font-size: var(--type-note);
line-height: 1.45;
}
.run-log-toggle {
display: inline-flex;
flex: none;
align-items: center;
align-self: flex-start;
gap: 6px;
margin: 0 0 8px;
padding: 2px 0;
border: 0;
background: none;
color: var(--teal-ink);
font: 650 var(--type-meta)/1.4 var(--font-ui);
cursor: pointer;
}
.run-log-toggle:hover { text-decoration: underline; }
.run-log-toggle[aria-expanded="true"] .run-board-chevron { transform: rotate(180deg); }
.run-detail:not(.is-log-open) .run-log { display: none; }
.run-detail.is-log-open .run-log {
padding: 8px 10px;
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface);
}

@media (prefers-reduced-motion: reduce) {
.run-phase-mark::before, .run-step-meter.is-unknown .run-step-fill,
.chat-page[data-mode="running"] .run-phasebar-part[data-state="running"] .run-phasebar-fill { animation: none; }
.run-step-fill, .run-phasebar-fill { transition: none; }
}

}



@layer legacy {

.overview-body[hidden] { display: none; }
.overview-body {
box-sizing: border-box;
width: 100%;
max-width: calc(var(--page-measure) + 2 * var(--page-gutter));
margin-inline: auto;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: var(--space-4);
align-content: start;
padding: 0 var(--page-gutter) 30px;
}

.ov-card > h2 { margin-bottom: var(--space-1); }
.ov-sub {
margin: 0 0 var(--space-3);
color: var(--muted);
font-size: var(--type-note);
line-height: var(--leading);
}


.ov-flow {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
gap: var(--space-2);
margin: var(--space-3) 0 0;
padding: 0;
list-style: none;
}
.ov-step {
display: grid;
gap: 2px;
padding: var(--space-3) var(--space-4);
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface-2);
}
.ov-step-state {
justify-self: start;
padding: 1px 8px;
border-radius: var(--r-pill);
background: var(--surface-3);
color: var(--muted);
font: var(--weight-medium) var(--type-meta)/1.5 var(--font-ui);
}
.ov-step.is-done .ov-step-state { background: var(--teal-wash); color: var(--teal-ink); }
.ov-step.is-missing .ov-step-state { background: var(--red-wash); color: var(--red-ink); }
.ov-step-count {
margin-top: var(--space-1);
color: var(--ink);
font: var(--weight-strong) var(--type-headline)/1.1 var(--font-ui);
font-variant-numeric: tabular-nums;
}
.ov-step.is-waiting .ov-step-count,
.ov-step.is-missing .ov-step-count { color: var(--subtle); }
.ov-step-name { color: var(--ink-2); font: var(--weight-medium) var(--type-note)/1.4 var(--font-ui); }


.ov-metrics {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
gap: var(--space-2);
margin-top: var(--space-2);
}
.ov-metric {
display: grid;
gap: 2px;
padding: var(--space-3) var(--space-4);
border: 1px solid var(--line-soft);
border-inline-start: 3px solid var(--teal);
border-radius: var(--r-s);
background: var(--surface);
}
.ov-metric[data-tone="blue"] { border-inline-start-color: var(--blue); }
.ov-metric[data-tone="amber"] { border-inline-start-color: var(--amber); }
.ov-metric[data-tone="red"] { border-inline-start-color: var(--red); }
.ov-metric-label { color: var(--subtle); font: var(--weight-medium) var(--type-meta)/1.3 var(--font-ui); }
.ov-metric-value {
color: var(--ink);
font: var(--weight-strong) var(--type-headline)/1.15 var(--font-ui);
font-variant-numeric: tabular-nums;
}
.ov-metric-note { color: var(--muted); font-size: var(--type-note); line-height: var(--leading); }


.ov-checks { display: grid; gap: var(--space-2); margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.ov-check {
display: grid;
grid-template-columns: 18px minmax(0, 1fr);
gap: var(--space-3);
align-items: start;
padding: var(--space-2) 0;
border-bottom: 1px solid var(--line-soft);
}
.ov-check:last-child { border-bottom: 0; }
.ov-check b { color: var(--ink); font: var(--weight-medium) var(--type-title)/1.4 var(--font-ui); }
.ov-check p { margin: 2px 0 0; color: var(--muted); font-size: var(--type-note); line-height: var(--leading); }
.ov-check-mark {
width: 12px;
height: 12px;
margin-top: 4px;
border-radius: 50%;
background: var(--teal);
}
.ov-check[data-tone="caution"] .ov-check-mark { background: var(--amber); }
.ov-check[data-tone="bad"] .ov-check-mark { background: var(--red); }
.ov-limit {
margin: var(--space-3) 0 0;
padding: var(--space-3) var(--space-4);
border: 1px solid var(--amber-line);
border-inline-start: 3px solid var(--amber);
border-radius: var(--r-s);
background: var(--amber-wash);
color: var(--amber-ink);
font-size: var(--type-note);
line-height: var(--leading);
}

.ov-decision {
margin: var(--space-3) 0 0;
padding: var(--space-3) var(--space-4);
border: 1px solid var(--amber-line);
border-inline-start: 3px solid var(--amber);
border-radius: var(--r-s);
background: var(--amber-wash);
}
.ov-decision b { color: var(--ink); font: var(--weight-medium) var(--type-title)/1.4 var(--font-ui); }
.ov-decision p { margin: 2px 0 0; color: var(--amber-ink); font-size: var(--type-note); line-height: var(--leading); }
.ov-decision ul { margin: var(--space-2) 0 0; padding-inline-start: 18px; color: var(--amber-ink); font-size: var(--type-note); line-height: var(--leading); }

.ov-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.ov-links-lead { color: var(--subtle); font-size: var(--type-note); }


.concl-glance { grid-column: 1 / -1; }
.concl-glance[hidden] { display: none; }
.glance-body { display: grid; gap: var(--space-3); }
.glance-flow { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--type-note); }
.glance-step { display: inline-flex; align-items: baseline; gap: 5px; }
.glance-step + .glance-step::before { content: "→"; margin-inline-end: var(--space-2); color: var(--faint); }
[dir="rtl"] .glance-step + .glance-step::before { content: "←"; }
.glance-step b { color: var(--ink); font: 650 var(--type-title)/1.3 var(--font-ui); font-variant-numeric: tabular-nums; }
.glance-step:not(.is-done) b { color: var(--subtle); }
.glance-step.is-missing span { color: var(--red-ink); }
.glance-step.is-running span { color: var(--teal); font-weight: 650; }
.glance-tiles .ov-metric.is-link { position: relative; text-align: start; font: inherit; cursor: pointer; transition: border-color var(--t-quick, 0.15s) ease, box-shadow var(--t-quick, 0.15s) ease; }
.glance-tiles .ov-metric.is-link:hover { border-color: var(--teal-line); box-shadow: 0 2px 8px rgba(24, 58, 62, 0.08); }
.glance-tiles .ov-metric.is-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.glance-open { margin-top: auto; padding-top: var(--space-1); color: var(--teal-ink); font: 600 var(--type-meta)/1.3 var(--font-ui); opacity: 0; transition: opacity var(--t-quick, 0.15s) ease; }
.glance-tiles .ov-metric.is-link:is(:hover, :focus-visible) .glance-open { opacity: 1; }
@media (hover: none) { .glance-open { opacity: 1; } }

}





@layer legacy {

.dashboard-page { padding: 0; }
.dashboard-body[hidden] { display: none; }
.dashboard-body {
box-sizing: border-box;
width: 100%;
max-width: calc(var(--page-measure) + 2 * var(--page-gutter));
margin-inline: auto;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: var(--space-4);
align-content: start;
padding: 0 var(--page-gutter) 30px;
}

.dash-card {
box-sizing: border-box;
min-width: 0;
margin: 0;
padding: var(--space-4) 18px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
}
.dash-title { margin: 0; color: var(--ink); font: var(--weight-strong) var(--type-heading)/1.35 var(--font-ui); }
.dash-sub { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--type-read); line-height: var(--leading); }
.dash-content { margin-top: var(--space-3); min-width: 0; }
.dash-empty { margin: 0; color: var(--subtle); font-size: var(--type-note); line-height: var(--leading); }
.dash-norun { color: var(--muted); }
.dash-note { margin: var(--space-2) 0 0; color: var(--subtle); font-size: var(--type-meta); }
.dash-failed { margin: 0; padding: var(--space-2) var(--space-3); border-radius: var(--r-s); background: var(--amber-wash);
color: var(--amber-ink); font-size: var(--type-note); }

.dash-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
gap: var(--space-4);
align-items: start;
}
.dash-col { display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.dash-step-track i[hidden] { display: none; }


.dash-head { display: grid; gap: var(--space-2); }
.dash-head-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.dash-status {
padding: 2px 10px;
border-radius: var(--r-pill);
background: var(--teal-wash);
color: var(--teal-ink);
font: var(--weight-strong) var(--type-note)/1.5 var(--font-ui);
}
.dash-status[data-tone="blue"] { background: var(--blue-wash); color: var(--blue-ink); }
.dash-status[data-tone="amber"] { background: var(--amber-wash); color: var(--amber-ink); }
.dash-status[data-tone="red"] { background: var(--red-wash); color: var(--red-ink); }
.dash-status[data-tone="grey"] { background: var(--surface-3); color: var(--muted); }
.dash-live { display: inline-flex; align-items: center; gap: 6px; color: var(--subtle); font-size: var(--type-meta);
font-variant-numeric: tabular-nums; }
.dash-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.dash-live.is-live::before { background: var(--teal); animation: dashPulse 1.8s ease-in-out infinite; }
@keyframes dashPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.dash-run-title { margin: 0; color: var(--ink); font: var(--weight-strong) var(--type-headline)/1.3 var(--font-ui);
overflow-wrap: anywhere; }
.dash-meta { margin: 0; color: var(--muted); font-size: var(--type-title); overflow-wrap: anywhere; }
.dash-clock { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-8); margin: var(--space-1) 0 0; }
.dash-clock > div { display: grid; gap: 2px; min-width: 0; }
.dash-clock > div[hidden] { display: none; }
.dash-clock dt { color: var(--subtle); font-size: var(--type-meta); }
.dash-clock dd { margin: 0; color: var(--ink); font: var(--weight-strong) var(--type-heading)/1.3 var(--font-ui);
font-variant-numeric: tabular-nums; }
.dash-progress { height: 6px; overflow: hidden; border-radius: var(--r-pill); background: var(--surface-3); }
.dash-progress[hidden] { display: none; }
.dash-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--teal);
transition: width .6s cubic-bezier(.22, 1, .36, 1); }
.dash-progress[data-tone="amber"] i { background: var(--amber); }
.dash-progress[data-tone="red"] i { background: var(--red); }
.dash-progress[data-tone="blue"] i { background: var(--blue); }


.dash-steps { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.dash-steps[hidden], .dash-reasons[hidden], .dash-bars[hidden] { display: none; }
.dash-step {
display: grid;
grid-template-columns: 12px minmax(0, 1fr) minmax(56px, 28%) minmax(4.5em, auto);
align-items: center;
gap: var(--space-2) var(--space-3);
padding: 5px var(--space-2);
border-radius: var(--r-xs);
font-size: var(--type-read);
}
.dash-step.is-current { background: var(--teal-wash); }
.dash-step[data-status="waiting"].is-current { background: var(--amber-wash); }
.dash-step-mark { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); box-sizing: border-box; }
.dash-step[data-kind="gate"] .dash-step-mark { border-radius: 2px; transform: rotate(45deg) scale(.85); }
.dash-step[data-status="complete"] .dash-step-mark { border-color: var(--teal); background: var(--teal); }
.dash-step[data-status="running"] .dash-step-mark { border-color: var(--teal); animation: dashPulse 1.8s ease-in-out infinite; }
.dash-step[data-status="waiting"] .dash-step-mark { border-color: var(--amber); background: var(--amber); }
.dash-step[data-status="failed"] .dash-step-mark { border-color: var(--red); background: var(--red); }
.dash-step-name { overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.dash-step:is([data-status="pending"], [data-status="notRun"]) .dash-step-name { color: var(--subtle); }
.dash-step.is-current .dash-step-name { color: var(--ink); font-weight: var(--weight-medium); }
.dash-step-track { position: relative; height: 6px; border-radius: var(--r-pill); }
.dash-step-track i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: var(--r-pill);
transition: width .6s cubic-bezier(.22, 1, .36, 1); }
.dash-step-took { background: var(--teal-soft); }
.dash-step[data-status="running"] .dash-step-took { background: var(--teal); }
.dash-step[data-status="failed"] .dash-step-took { background: var(--red); }
.dash-step-expected { box-sizing: border-box; border: 1px dashed var(--line-strong); }
.dash-step-time { color: var(--subtle); font-size: var(--type-meta); text-align: end; white-space: nowrap;
font-variant-numeric: tabular-nums; }
.dash-step.is-current .dash-step-time { color: var(--ink-2); }
.dash-step-go {
grid-column: 2 / -1;
justify-self: start;
padding: 3px 10px;
border: 1px solid var(--amber-line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--amber-ink);
font: var(--weight-medium) var(--type-meta)/1.5 var(--font-ui);
cursor: pointer;
}
.dash-step-go:hover { background: var(--amber-wash); }
.dash-step-go:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.dash-step-go[hidden] { display: none; }


.dash-funnel, .dash-bars { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.dash-bar {
display: grid;
grid-template-columns: minmax(6.5em, 36%) minmax(0, 1fr) minmax(3em, auto);
align-items: center;
gap: var(--space-3);
font-size: var(--type-read);
}
.dash-bar-label { overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.dash-bar-track { height: 10px; overflow: hidden; border-radius: var(--r-pill); background: var(--surface-3); }
.dash-bar-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--teal);
transition: width .6s cubic-bezier(.22, 1, .36, 1); }
.dash-bar-fill[data-tone="blue"] { background: var(--blue); }
.dash-bar-fill[data-tone="amber"] { background: var(--amber); }
.dash-bar-fill[data-tone="grey"] { background: var(--line-strong); }
.dash-bar-value { color: var(--ink); font-weight: var(--weight-strong); text-align: end; font-variant-numeric: tabular-nums; }
.dash-funnel-step { display: grid; gap: 4px; }
.dash-reasons { display: grid; gap: 2px; margin: 0; padding: 0; padding-inline-start: calc(36% + var(--space-3)); list-style: none; }
.dash-reasons[hidden] { display: none; }
.dash-reasons li { display: flex; gap: var(--space-2); align-items: baseline; color: var(--red-ink); font-size: var(--type-meta); }
.dash-reasons b { font-weight: var(--weight-strong); font-variant-numeric: tabular-nums; }
.dash-reasons span { color: var(--muted); }


.dash-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-4); }
.dash-parts[hidden] { display: none; }
.dash-part { display: grid; gap: var(--space-2); align-content: start; margin: 0; min-width: 0; }
.dash-part[hidden] { display: none; }
.dash-part[data-part="time"] { grid-column: 1 / -1; }
.dash-part figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-3);
color: var(--ink-2); font: var(--weight-medium) var(--type-note)/1.4 var(--font-ui); }
.dash-part figcaption small { color: var(--subtle); font-weight: var(--weight-regular); font-size: var(--type-meta);
font-variant-numeric: tabular-nums; }
.dash-meter { height: 4px; overflow: hidden; border-radius: var(--r-pill); background: var(--surface-3); }
.dash-meter i { display: block; height: 100%; background: var(--teal); transition: width .6s cubic-bezier(.22, 1, .36, 1); }
.dash-chart { min-width: 0; }
.dash-histogram { display: block; width: 100%; height: auto; max-height: 220px; overflow: visible; }
.dash-histogram .tick { font: var(--type-meta) var(--font-ui); fill: var(--subtle); font-variant-numeric: tabular-nums; }
.dash-histogram .axis { stroke: var(--line-strong); stroke-width: 1; }
.dash-histogram rect.chart-bar { transform-box: fill-box; transform-origin: center bottom;
animation: dashGrow .6s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes dashGrow { from { transform: scaleY(0); opacity: .3; } to { transform: scaleY(1); opacity: 1; } }


.dash-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 178px), 1fr)); gap: var(--space-2); }


@media (min-width: 561px) {
.dash-results:is(:has(> :nth-child(6):last-child), :has(> :nth-child(9):last-child)) {
grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 178px), calc((100% - 2 * var(--space-2)) / 3)), 1fr));
}
.dash-results:is(:has(> :nth-child(7):last-child), :has(> :nth-child(8):last-child)) {
grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 178px), calc((100% - 3 * var(--space-2)) / 4)), 1fr));
}
}
.dash-result {
display: grid;
gap: 2px;
align-content: start;
min-width: 0;
padding: var(--space-3) var(--space-4);
border: 1px solid var(--line-soft);
border-inline-start: 3px solid var(--teal);
border-radius: var(--r-s);
background: var(--surface);
}
.dash-result[data-tone="amber"] { border-inline-start-color: var(--amber); }
.dash-result[data-tone="red"] { border-inline-start-color: var(--red); }
.dash-result.is-waiting { border-style: dashed; border-inline-start: 1px dashed var(--line-strong); background: var(--surface-2); }
.dash-result-label { color: var(--muted); font-size: var(--type-read); }
.dash-result-value { color: var(--ink); font: var(--weight-strong) var(--type-headline)/1.25 var(--font-ui);
font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dash-result.is-waiting .dash-result-value { color: var(--faint); }
.dash-result-note { color: var(--subtle); font-size: var(--type-note); line-height: 1.45; }


.dash-alerts, .dash-events { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.dash-alert { display: grid; gap: 2px; padding: var(--space-2) var(--space-3); border-inline-start: 3px solid var(--blue);
border-radius: var(--r-xs); background: var(--surface-2); }
.dash-alert[data-tone="bad"] { border-inline-start-color: var(--red); background: var(--red-wash); }
.dash-alert[data-tone="caution"] { border-inline-start-color: var(--amber); background: var(--amber-wash); }
.dash-alert b { color: var(--ink); font: var(--weight-medium) var(--type-read)/1.45 var(--font-ui); }
.dash-alert p { margin: 0; color: var(--muted); font-size: var(--type-note); line-height: var(--leading); }
.dash-alert p[hidden] { display: none; }
.dash-event { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--space-2); padding-bottom: var(--space-2);
border-bottom: 1px solid var(--line-soft); }
.dash-event:last-child { border-bottom: 0; padding-bottom: 0; }
.dash-event-kicker { justify-self: start; padding: 0 8px; border-radius: var(--r-pill); background: var(--surface-3);
color: var(--ink-2); font: var(--weight-medium) var(--type-meta)/1.6 var(--font-ui); }
.dash-event[data-tone="bad"] .dash-event-kicker { background: var(--red-wash); color: var(--red-ink); }
.dash-event[data-tone="caution"] .dash-event-kicker { background: var(--amber-wash); color: var(--amber-ink); }
.dash-event-when { justify-self: end; color: var(--subtle); font-size: var(--type-meta); font-variant-numeric: tabular-nums; }
.dash-event p { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: var(--type-read); line-height: var(--leading);
overflow-wrap: anywhere; }


.fresh-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-3); }
.fresh-headline { margin: 0; color: var(--ink); font: var(--weight-medium) var(--type-read)/1.55 var(--font-ui); }
.fresh-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); }
.fresh-meta small { color: var(--subtle); font-size: var(--type-meta); }
.fresh-check { padding: 4px 12px; font-size: var(--type-note); }
.fresh-tiles { margin-bottom: var(--space-3); }
.fresh-impact { margin-bottom: var(--space-4); }
.fresh-impact .dash-alert[data-tone=""] { border-inline-start-color: var(--teal); }
.dash-butterfly rect.fresh-run { fill: var(--line-strong); }
.dash-butterfly rect.fresh-new { fill: var(--teal); }
.fresh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fresh-chip { padding: 1px 9px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2);
font-size: var(--type-meta); line-height: 1.7; font-variant-numeric: tabular-nums; }
.fresh-chip.is-new { background: var(--amber-wash); color: var(--amber-ink); }
.fresh-chip.is-new b { font-weight: var(--weight-strong); }
.fresh-stack { display: flex; gap: 2px; min-height: 26px; border-radius: var(--r-s); overflow: hidden; }
.fresh-seg { display: flex; align-items: center; min-width: max-content; padding: 0 10px; color: var(--ink);
font-size: var(--type-meta); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fresh-seg.is-same { background: var(--surface-3); }
.fresh-seg.is-close { background: var(--teal-wash); color: var(--teal-ink); }
.fresh-seg.is-distant { background: var(--amber-wash); color: var(--amber-ink); }
.fresh-caption { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--type-meta); }
.fresh-genetic { margin-top: var(--space-4); }
.fresh-scroll { max-width: 100%; overflow-x: auto; }
.fresh-table { width: 100%; border-collapse: collapse; font-size: var(--type-meta); font-variant-numeric: tabular-nums; }
.fresh-table th { padding-block: 4px; padding-inline: 0 8px; color: var(--subtle); font-weight: var(--weight-medium); text-align: start;
border-bottom: 1px solid var(--line); white-space: nowrap; }
.fresh-table td { padding-block: 5px; padding-inline: 0 8px; color: var(--ink-2); border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.fresh-table td a { color: var(--teal-ink); text-decoration: none; }
.fresh-table td a:hover { text-decoration: underline; }
.fresh-table tr[data-verdict="distant"] .fresh-num { color: var(--amber-ink); font-weight: var(--weight-strong); }
.fresh-num { text-align: end; white-space: nowrap; }


@media (max-width: 560px) {
.dash-card { padding: var(--space-3) var(--space-3); }
.dash-clock { gap: var(--space-2) var(--space-5); }
.dash-step { grid-template-columns: 12px minmax(0, 1fr) auto; }
.dash-step-track { display: none; }
.dash-bar { grid-template-columns: minmax(5.5em, 38%) minmax(0, 1fr) minmax(2.5em, auto); gap: var(--space-2); }
.dash-reasons { padding-inline-start: var(--space-4); }
.dash-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-result { padding: var(--space-2) var(--space-3); }
.dash-result-value { font-size: var(--type-heading); }
}

@media (prefers-reduced-motion: reduce) {
.dash-live.is-live::before, .dash-step[data-status="running"] .dash-step-mark, .dash-histogram rect.chart-bar { animation: none; }
.dash-progress i, .dash-step-track i, .dash-bar-fill, .dash-meter i { transition: none; }
}

}




@layer legacy {

.report-doc-body[hidden] { display: none; }
.report-doc-body {
box-sizing: border-box;
width: 100%;
max-width: calc(var(--page-measure) + 2 * var(--page-gutter));
margin-inline: auto;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: var(--space-4);
align-content: start;
padding: 0 var(--page-gutter) 30px;
}





:where(.report-doc-body, .conclusion-body, .overview-body, .dashboard-body) :where(p) {
max-width: var(--read-measure);
}
.rd-section { display: grid; gap: var(--space-3); align-content: start; scroll-margin-top: var(--space-3); }
.rd-section > .rd-section-title { margin: 0; padding-bottom: var(--space-2); border-bottom: 1px solid var(--line-soft); }

.rd-lead-kicker {
margin: 0 0 var(--space-1);
color: var(--teal);
font: var(--weight-strong) var(--type-meta)/1.3 var(--font-ui);
letter-spacing: 0.08em;
}
.rd-section .rd-lead-title { margin: 0; font: var(--weight-strong) var(--type-headline)/1.3 var(--font-ui); }
.rd-lead-meta { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--type-note); }

.rd-subheading { margin: var(--space-2) 0 0; color: var(--ink-2); font: var(--weight-medium) var(--type-title)/1.4 var(--font-ui); }
.rd-note { margin: 0; color: var(--muted); font-size: var(--type-read); line-height: var(--leading); }



.rd-table-frame { position: relative; min-width: 0; }
.rd-table-frame::before,
.rd-table-frame::after {
content: "";
position: absolute;
top: 1px;
bottom: 1px;
z-index: 3;
width: 18px;
pointer-events: none;
opacity: 0;
transition: opacity 120ms ease;
}
.rd-table-frame::before { left: 1px; border-radius: var(--r-s) 0 0 var(--r-s); background: linear-gradient(to right, color-mix(in srgb, var(--ink) 10%, transparent), transparent); }
.rd-table-frame::after { right: 1px; border-radius: 0 var(--r-s) var(--r-s) 0; background: linear-gradient(to left, color-mix(in srgb, var(--ink) 10%, transparent), transparent); }
.rd-table-frame.has-left::before,
.rd-table-frame.has-right::after { opacity: 1; }
.rd-table-wrap {
max-height: 680px;
overflow: auto;
overscroll-behavior-x: contain;
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
}
.rd-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
font-size: var(--type-note);
line-height: 1.45;
font-variant-numeric: tabular-nums;
}
.rd-table th {
position: sticky;
top: 0;
z-index: 1;
background: var(--surface-2);
color: var(--ink-2);
font-size: var(--type-meta);
font-weight: var(--weight-medium);
text-align: start;
}
.rd-table :is(th, td) { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.rd-table :is(th, td).is-num { text-align: end; font-variant-numeric: tabular-nums; }
.rd-table tbody tr:hover { background: var(--teal-wash); }
.rd-table tbody tr:last-child td { border-bottom: 0; }
.rd-table tbody tr:nth-child(even) { background: var(--surface-2); }
.rd-table.is-settings td:first-child { width: 46%; color: var(--muted); }
@media (max-width: 600px) {

.rd-table-frame.is-wide .rd-table.is-records :is(th, td):first-child { position: static; box-shadow: none; }


.rd-table { min-width: 480px; }
.rd-table :is(th, td):first-child { white-space: nowrap; }

.rd-table.is-settings { min-width: 0; }
.rd-table.is-settings td:first-child { width: 38%; white-space: normal; }
}

.rd-callout {
padding: var(--space-3) var(--space-4);
border: 1px solid var(--teal-line);
border-inline-start: 3px solid var(--teal);
border-radius: var(--r-s);
background: var(--teal-wash);
color: var(--teal-ink);
}
.rd-callout.is-warning { border-color: var(--amber-line); border-inline-start-color: var(--amber); background: var(--amber-wash); color: var(--amber-ink); }
.rd-callout.is-danger { border-color: var(--red-line); border-inline-start-color: var(--red); background: var(--red-wash); color: var(--red-ink); }

.rd-callout.is-limits { border-color: var(--line); border-inline-start-color: var(--faint); background: var(--surface-2); color: var(--muted); }
.rd-callout.is-limits b { color: var(--subtle); font-size: var(--type-meta); letter-spacing: 0.02em; }
.rd-callout-action { margin-top: var(--space-2); min-height: 32px; }
.rd-callout b { display: block; margin-bottom: 2px; color: var(--ink); font-weight: var(--weight-medium); }
.rd-callout p { margin: 0; font-size: var(--type-note); line-height: var(--leading); }


.rd-records { display: grid; gap: var(--space-2); }
.rd-records-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.rd-records-search {
width: min(360px, 100%);
min-height: 32px;
padding: 0 10px;
border: 1px solid var(--line-strong);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: var(--type-control) var(--font-ui);
}
.rd-records-search:focus { border-color: var(--teal); outline: none; box-shadow: var(--focus-ring); }

.rd-table.is-records :is(th, td) { white-space: nowrap; vertical-align: middle; }
.rd-table.is-records th { cursor: pointer; user-select: none; }


.rd-table.is-records thead th {
min-width: 4.5ch;
max-width: 11ch;
white-space: normal;
overflow-wrap: normal;
vertical-align: bottom;
line-height: 1.3;
}
.rd-table.is-records th:hover { color: var(--ink); }
.rd-table.is-records th:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.rd-table.is-records td.is-long { max-width: 24ch; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.rd-table.is-records td.is-long:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.rd-table.is-records td.is-long.is-open { max-width: 60ch; min-width: 36ch; white-space: normal; overflow-wrap: anywhere; }
.rd-table.is-records th[aria-sort="ascending"]::after { content: " ↑"; }
.rd-table.is-records th[aria-sort="descending"]::after { content: " ↓"; }

.rd-table-frame.is-wide .rd-table.is-records :is(th, td):first-child {
position: sticky;
inset-inline-start: 0;
z-index: 1;
background: var(--surface);
box-shadow: inset -1px 0 0 var(--line-soft);
}

[dir="rtl"] .rd-table-frame.is-wide .rd-table.is-records :is(th, td):first-child { box-shadow: inset 1px 0 0 var(--line-soft); }
.rd-table-frame.is-wide .rd-table.is-records th:first-child { z-index: 2; background: var(--surface-2); }
.rd-table-frame.is-wide .rd-table.is-records tbody tr:nth-child(even) td:first-child { background: var(--surface-2); }
.rd-table-frame.is-wide .rd-table.is-records tbody tr:hover td:first-child { background: var(--teal-wash); }


.stage-tabs.has-more-end { mask-image: linear-gradient(to right, var(--ink) calc(100% - 32px), transparent); }
.stage-tabs.has-more-start { mask-image: linear-gradient(to left, var(--ink) calc(100% - 32px), transparent); }
.stage-tabs.has-more-start.has-more-end {
mask-image: linear-gradient(to right, transparent, var(--ink) 32px, var(--ink) calc(100% - 32px), transparent);
}

[dir="rtl"] .stage-tabs.has-more-end { mask-image: linear-gradient(to left, var(--ink) calc(100% - 32px), transparent); }
[dir="rtl"] .stage-tabs.has-more-start { mask-image: linear-gradient(to right, var(--ink) calc(100% - 32px), transparent); }
[dir="rtl"] .stage-tabs.has-more-start.has-more-end {
mask-image: linear-gradient(to right, transparent, var(--ink) 32px, var(--ink) calc(100% - 32px), transparent);
}



.rd-records-common { margin: 0; color: var(--muted); font-size: var(--type-note); }
.rd-records-common[hidden] { display: none; }


.rd-presets { display: inline-flex; flex-wrap: wrap; gap: 2px; width: fit-content; padding: 2px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface-2); }
.rd-presets[hidden] { display: none; }
.rd-preset { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border: 0; border-radius: calc(var(--r-s) - 2px); background: transparent; color: var(--muted); font: 600 var(--type-control)/1 var(--font-ui); cursor: pointer; }
.rd-preset[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(24, 58, 62, 0.1); }
.rd-preset-n { color: var(--subtle); font-variant-numeric: tabular-nums; font-weight: 500; }

.rd-focus { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.rd-focus[hidden] { display: none; }
.rd-focus-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding-block: 0; padding-inline: 12px 8px; border: 1px solid var(--teal-line); border-radius: var(--r-pill); background: var(--teal-wash); color: var(--teal-ink); font: 600 var(--type-control)/1 var(--font-ui); cursor: pointer; }
.rd-focus-chip:hover { border-color: var(--teal); }
.rd-focus-x { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--teal-ink); font-size: var(--type-title); }
.rd-focus-chip:hover .rd-focus-x { background: color-mix(in srgb, var(--teal) 14%, transparent); }
.rd-focus-tree { min-height: 32px; font-size: var(--type-note); }
.report-doc-body > .rd-section { scroll-margin-top: 96px; }

.rd-figure li[data-filter-table] { border-radius: var(--r-s); cursor: pointer; transition: background var(--t-quick, 0.15s) ease; }
.rd-figure li[data-filter-table]:hover { background: var(--surface-2); }
.rd-figure li[data-filter-table]:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.rd-figure li[data-filter-table].is-on { background: var(--teal-wash); }
.rd-records-widen { margin-inline-start: auto; font-size: var(--type-note); }
.rd-table.is-records tbody tr[aria-expanded]:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.rd-table.is-records tbody tr[aria-expanded="true"] > td { background: var(--teal-wash); }
.rd-table.is-records tr.rd-row-detail > td { padding: var(--space-2) var(--space-3) var(--space-3); background: var(--surface-2); white-space: normal; }
.rd-row-detail dl {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
gap: var(--space-1) var(--space-4);
margin: 0;
}
.rd-row-detail dl > div { min-width: 0; }
.rd-row-detail dt { color: var(--muted); font-size: var(--type-meta); }
.rd-row-detail dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }


.rd-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-2) var(--space-3); }
.rd-pager[hidden] { display: none; }
.rd-pager-at { color: var(--muted); font-size: var(--type-meta); font-variant-numeric: tabular-nums; }
.rd-pager button { min-height: 32px; }

.rd-files { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }


:is(.rd-files .rd-file, .ov-links .ov-link, .concl-hero-links .concl-link, .concl-explain, .rd-records-widen) {
display: inline-flex;
align-items: center;
min-block-size: 32px;
}


.rd-figure [data-pick-field],
.rd-figure [data-pick-reason],
.rd-figure [data-pick-status] { cursor: pointer; }
.rd-figure rect[data-pick-field]:hover,
.rd-figure rect.is-picked { stroke: var(--ink); stroke-width: 1.5; }
.rd-figure :is(li[data-pick-reason], li[data-pick-status]) { border-radius: var(--r-s); }
.rd-figure :is(li[data-pick-reason], li[data-pick-status]):hover { background: var(--surface-2); }
.rd-figure :is(li[data-pick-reason], li[data-pick-status]).is-picked { background: var(--teal-wash); box-shadow: inset 0 0 0 1px var(--teal-line); }
.rd-figure .stack-bar span[data-pick-status]:hover { filter: brightness(0.9); }



.rd-metrics {
container-type: inline-size;
display: grid;

grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: var(--space-2);
}
.rd-metric {
display: grid;
grid-row: span 3;
grid-template-rows: subgrid;
row-gap: 2px;
align-content: start;
min-width: 0;
padding: var(--space-3) var(--space-4);
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface-2);
}
.rd-metric[data-tone="teal"] .rd-metric-value { color: var(--teal-deep); }
.rd-metric[data-tone="amber"] .rd-metric-value { color: var(--amber-ink); }
.rd-metric[data-tone="red"] .rd-metric-value { color: var(--red-ink); }
.rd-metric-label { color: var(--subtle); font: var(--weight-medium) var(--type-meta)/1.3 var(--font-ui); }
.rd-metric-value {
align-self: end;
color: var(--ink);
font: var(--weight-strong) var(--type-headline)/1.1 var(--font-ui);
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}

@container (max-width: 480px) {
.rd-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rd-metric { padding: var(--space-2) var(--space-3); }
.rd-metric-value { font-size: var(--type-headline); }
}
.rd-metric-note { color: var(--muted); font-size: var(--type-note); line-height: var(--leading); }




.rd-lede { display: grid; gap: var(--space-1); margin: 0; padding: 0 2px; }
.rd-lede-text { margin: 0; color: var(--ink); font: 650 var(--type-heading)/1.5 var(--font-ui); text-wrap: pretty; }
.rd-lede-note { margin: 0; color: var(--muted); font-size: var(--type-read); line-height: var(--leading); }
.rd-lede-note.is-warning { color: var(--amber-ink); }
.rd-lede-note.is-warning::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; border-radius: 50%; background: var(--amber); vertical-align: 1px; }


.rd-fold > .rd-fold-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); list-style: none; cursor: pointer; }
.rd-fold > .rd-fold-head::-webkit-details-marker { display: none; }
.rd-fold > .rd-fold-head .rd-section-title { margin: 0; padding: 0; border: 0; }
.rd-fold > .rd-fold-head::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform var(--t-quick, 0.15s) ease; }
.rd-fold[open] > .rd-fold-head::after { transform: translateY(1px) rotate(-135deg); }
.rd-fold[open] > .rd-fold-head { margin-bottom: var(--space-3); padding-bottom: var(--space-2); border-bottom: 1px solid var(--line-soft); }
.rd-fold > .rd-fold-head:hover .rd-section-title { color: var(--teal-ink); }


.rd-export { position: relative; }
.rd-export > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; list-style: none; cursor: pointer; }
.rd-export > summary::-webkit-details-marker { display: none; }
.rd-export > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.rd-export-menu {
position: absolute;
top: calc(100% + 6px);
inset-inline-end: 0;
z-index: 20;
display: grid;
width: min(26rem, calc(100vw - 32px));
max-height: min(70vh, 32rem);
overflow: auto;
padding: var(--space-2);
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-2, 0 8px 24px rgba(23, 39, 48, 0.12));
}
.rd-export-heading { margin: var(--space-2) var(--space-2) var(--space-1); color: var(--subtle); font: 650 var(--type-meta)/1.3 var(--font-ui); }
.rd-export-row { display: flex; align-items: center; gap: var(--space-2); padding: 4px var(--space-2); border-radius: var(--r-s); }
.rd-export-row:hover { background: var(--surface-2); }
.rd-export-name { flex: 1; min-width: 0; overflow: hidden; color: var(--ink); font-size: var(--type-read); text-overflow: ellipsis; white-space: nowrap; }
.rd-export-row .btn-quiet { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 32px; padding: 0 10px; font-size: var(--type-control); }
@container (max-width: 1000px) { .rd-export-menu { inset-inline-end: auto; inset-inline-start: 0; } }




.load-failed {
margin: var(--space-3) 0;
color: var(--muted);
font-size: var(--type-note);
}
.load-retry {
margin-inline-start: var(--space-2);
padding: 4px 12px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--teal);
font: inherit;
font-weight: var(--weight-medium);
cursor: pointer;
}
.load-retry:hover { border-color: var(--teal); }
.load-retry:disabled { opacity: 0.6; cursor: default; }
.tx-status .load-retry { pointer-events: auto; }




@media print {
@page { margin: 16mm; }


:root { color-scheme: light; }
.product-header, .top-nav, .assistant-rail, .rail-backdrop, .composer, .composer-dock, .rail-composer,
.stage-tabs, .stage-next, .preview-toolbar, .rd-export-menu, .qc-pick-sheet, .run-list, .run-list-backdrop,
.record-drawer, .preview-toast, .load-retry, .page button, #assistant-notice, #runtime-banner { display: none !important; }
html, body, .app { height: auto !important; min-height: 0 !important; overflow: visible !important; background: var(--surface); }
.content { display: block !important; }

.page[hidden] { display: none !important; }
.page,.page:not(.chat-page), .stage-page.is-flowing { overflow: visible !important; height: auto !important; min-height: 0; }
.stage-head, .rd-lead, .rd-section > .rd-section-title { position: static !important; }
.report-doc-body { max-width: none; padding: 0; }
.rd-table-wrap { max-height: none; overflow: visible; }
.rd-table-frame::before, .rd-table-frame::after { display: none; }
.rd-figure, .rd-table-wrap, figure, table, .concl-card { break-inside: avoid; }
.rd-section-title, h1, h2, h3 { break-after: avoid; }
}

}

@layer legacy {











body.has-explainer { overflow: hidden; }
.explainer-backdrop[hidden], .explainer[hidden] { display: none; }
.explainer-backdrop {
position: fixed;
inset: 0;
z-index: 90;
background: rgba(10, 20, 24, 0.48);
animation: xp-fade var(--t-base) var(--ease-out) both;
}
.explainer {
position: fixed;


top: max(16px, calc(50% - 300px));
left: 50%;
z-index: 91;
display: flex;
flex-direction: column;
width: min(640px, calc(100vw - 32px));
max-height: calc(100dvh - max(16px, calc(50% - 300px)) - 16px);
overflow-x: hidden;
overflow-y: auto;
border: 1px solid var(--line);
border-radius: var(--r-l);
background: var(--surface);
color: var(--ink);
box-shadow: var(--shadow-3);
font-family: var(--font-ui);
transform: translateX(-50%);
animation: xp-dialog-in var(--t-pop) var(--spring) both;
}
.explainer:focus { outline: none; }
.explainer:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.explainer-head {
display: flex;
align-items: center;
gap: var(--space-3);
padding-block: var(--space-3) 0;
padding-inline: var(--space-5) var(--space-3);
}
.explainer-name {
margin: 0;
color: var(--teal-ink);
font-size: var(--type-note);
font-weight: var(--weight-strong);
letter-spacing: 0.04em;
}
.explainer-count {
margin-inline-start: auto;
color: var(--subtle);
font-size: var(--type-note);
font-variant-numeric: tabular-nums;
}
.explainer-icon {
display: inline-grid;
place-items: center;
flex: none;
width: 36px;
height: 36px;
padding: 0;
border: 1px solid transparent;
border-radius: var(--r-pill);
background: none;
color: var(--muted);
cursor: pointer;
}
.explainer-icon:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); }
.explainer-icon:disabled { color: var(--faint); cursor: default; }
.explainer-icon:focus-visible,
.explainer-dot:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.explainer-icon .xp-svg { display: inline-grid; }
.explainer-play { border-color: var(--teal-line); color: var(--teal); }
.explainer-play[hidden] { display: none; }

[dir="rtl"] .explainer-prev svg, [dir="rtl"] .explainer-next svg { transform: scaleX(-1); }


.explainer-stage {
position: relative;
display: grid;
place-items: center;
height: 290px;
margin: var(--space-3) var(--space-4) 0;
padding: var(--space-4);
overflow: hidden;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--wash);
}

.explainer-caption { padding: var(--space-4) var(--space-5) 0; }
.explainer-title {
margin: 0 0 var(--space-1);
color: var(--ink);
font-size: var(--type-heading);
font-weight: var(--weight-strong);
line-height: var(--leading-tight);
}
.explainer-body {
min-height: calc(3 * var(--leading) * 1em);
margin: 0;
color: var(--muted);
font-size: var(--type-title);
line-height: var(--leading);
}


.explainer-try { margin-top: var(--space-3); }

.explainer-ways {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2);
padding: var(--space-3) var(--space-5) 0;
}
.explainer-ways[hidden] { display: none; }
.explainer-way.btn-primary,
.explainer-way.btn-secondary {
min-height: 40px;
padding: 8px 16px;
border-radius: var(--r-s);
font: var(--weight-medium) var(--type-title)/1.3 var(--font-ui);
cursor: pointer;
}
.explainer-way.btn-quiet { min-height: 40px; padding: 0 8px; }
.explainer-way:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.explainer-controls {
display: flex;
align-items: center;
gap: var(--space-1);
margin-top: var(--space-3);
padding: var(--space-2) var(--space-3) var(--space-3);
border-top: 1px solid var(--line-soft);
}
.explainer-dots {
display: flex;
flex: 1;
justify-content: center;
align-items: center;
min-width: 0;
}
.explainer-dot {
display: grid;
place-items: center;
width: 30px;
height: 36px;
padding: 0;
border: 0;
background: none;
cursor: pointer;
}
.explainer-dot::before {
content: "";
grid-area: 1 / 1;
width: 16px;
height: 4px;
border-radius: var(--r-pill);
background: var(--line-strong);
}
.explainer-dot.is-seen::before { background: var(--teal-soft); }
.explainer-dot[aria-current="step"]::before { width: 26px; background: var(--teal-line); }
.explainer-dot-fill {
grid-area: 1 / 1;
justify-self: center;
width: 0;
height: 4px;
border-radius: var(--r-pill);
background: var(--teal);
}
.explainer-dot[aria-current="step"] .explainer-dot-fill {
width: 26px;
transform-origin: left center;
animation: xp-fill var(--xp-ms, 8s) linear both;
}
[dir="rtl"] .explainer-dot[aria-current="step"] .explainer-dot-fill { transform-origin: right center; }
.explainer-dot:hover::before { background: var(--teal-soft); }
.explainer-keys {
flex: none;
margin-inline-start: var(--space-2);
color: var(--subtle);
font-size: var(--type-meta);
white-space: nowrap;
}



.explainer[data-paused] .explainer-stage *,
.explainer[data-paused] .explainer-dot-fill { animation-play-state: paused; }
.explainer.is-final .explainer-stage *,
.explainer.is-final .explainer-dot-fill,
.explainer.is-still .explainer-stage *,
.explainer.is-still .explainer-dot-fill,
.explainer.is-still { animation: none; }
@media (prefers-reduced-motion: reduce) {
.explainer, .explainer-backdrop, .explainer-stage *, .explainer-dot-fill { animation: none !important; }
}


.empty-state .explainer-offer {
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
gap: var(--space-2);
width: fit-content;
max-width: 100%;
margin: 0 0 var(--space-4);
padding-block: var(--space-1);
padding-inline: var(--space-4) var(--space-1);
border: 1px solid var(--teal-line);
border-radius: var(--r-pill);
background: var(--teal-wash);
color: var(--teal-ink);
font-size: var(--type-note);

animation: explainer-offer-in 250ms ease-out both;
}

.empty-state .explainer-offer > span { min-width: 0; }
.empty-state .explainer-offer :is(.btn-secondary, .btn-quiet) { flex: none; min-height: 28px; padding: 0 var(--space-3); font-size: var(--type-note); }
@media (max-width: 560px) {
.empty-state .explainer-offer { flex-wrap: wrap; padding: var(--space-2) var(--space-3); border-radius: var(--r-m); }


.empty-state .welcome-hero-text > .explainer-offer { order: 1; margin: var(--space-3) 0 0; }
}
.empty-state .explainer-offer[hidden] { display: none; }
@keyframes explainer-offer-in {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
.empty-state .explainer-offer { animation: none; }
}
.explainer-offer .btn-secondary {
min-height: 32px;
padding: 4px 12px;
border-radius: var(--r-s);
font: var(--weight-medium) var(--type-control)/1.3 var(--font-ui);
cursor: pointer;
}
.explainer-offer .btn-quiet { font-size: var(--type-control); }
.explainer-help {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 32px;
margin-top: var(--space-1);
font-size: var(--type-control);
text-decoration: none;
}

.stage-sub .explainer-help { min-height: 28px; margin: 0; margin-inline-start: 6px; padding: 2px 8px; vertical-align: -4px; }
.explainer-help:hover > span:last-child { text-decoration: underline; }
.explainer-help-mark {
display: inline-grid;
place-items: center;
width: 17px;
height: 17px;
border: 1.5px solid currentColor;
border-radius: var(--r-pill);
font-size: var(--type-meta);
font-weight: var(--weight-strong);
line-height: 1;
}


.xp-art {
display: grid;
gap: var(--space-3);
width: 100%;
max-width: 520px;
color: var(--ink);
font-size: var(--type-note);
line-height: 1.4;
}
.xp-art p, .xp-art ol, .xp-art ul { margin: 0; }
.xp-art ol, .xp-art ul { padding: 0; list-style: none; }
.xp-svg { display: inline-flex; line-height: 0; }
.xp-card {
padding: var(--space-3) var(--space-3);
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-1);
}
.xp-kicker {
margin-bottom: 6px !important;
color: var(--subtle);
font-size: var(--type-meta);
font-weight: var(--weight-strong);
letter-spacing: 0.04em;
}
.xp-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: var(--r-s);
background: var(--teal);
color: var(--surface);
font-weight: var(--weight-medium);
}
.xp-cursor {
position: absolute;
z-index: 2;
opacity: 0;
pointer-events: none;
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}



.xp-veiled { position: relative; isolation: isolate; }
.xp-veiled::before {
content: "";
position: absolute;
inset: -1px;
z-index: -1;
border: 1px solid var(--line);
border-radius: inherit;
background: var(--surface);
opacity: 0;
pointer-events: none;
animation: xp-veil 320ms var(--ease-out) var(--veil-at, 0ms) both;
}


.xp-typed { position: relative; display: inline-flex; min-width: 0; overflow: hidden; }
.xp-typed-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-cover {
position: absolute;
inset-block: 0;
inset-inline-start: 0;
width: 100%;
border-inline-start: 2px solid var(--teal);
background: var(--surface);
transform: translateX(calc(101% * var(--inline-sign, 1)));
animation: xp-type var(--type-for, 1500ms) steps(var(--type-steps, 14), end) var(--type-at, 300ms) both;
}


.xp-files { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
.xp-drop {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: var(--space-2);
min-height: 176px;
padding: var(--space-3);
border: 2px dashed var(--teal-soft);
border-radius: var(--r-m);
background: var(--teal-wash);
isolation: isolate;
}
.xp-drop::before {
content: "";
position: absolute;
inset: -2px;
z-index: -1;
border: 2px dashed var(--line-strong);
border-radius: inherit;
background: var(--surface-2);
opacity: 0;
animation: xp-veil 500ms var(--ease-out) 700ms both;
}
.xp-drop-hint { color: var(--subtle); font-size: var(--type-meta); }
.xp-file {
display: inline-flex;
align-items: center;
gap: 8px;
max-width: 100%;
padding-block: 6px;
padding-inline: 8px 10px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
box-shadow: var(--shadow-2);
color: var(--teal);
animation: xp-drop-in 900ms var(--spring) 200ms both;
}
.xp-file-meta { color: var(--blue); animation-delay: 650ms; }
.xp-file-name {
overflow: hidden;
color: var(--ink);
font-family: var(--font-mono);
font-size: var(--type-meta);
text-overflow: ellipsis;
white-space: nowrap;
}
.xp-look { animation: xp-rise var(--t-pop) var(--spring) 1500ms both; }
.xp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.xp-stat {
display: grid;
gap: 1px;
padding: 7px 10px;
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface-2);
animation: xp-pop 380ms var(--spring-pop) calc(1900ms + var(--i) * 260ms) both;
}
.xp-stat b { font-size: var(--type-heading); line-height: 1.2; }
.xp-stat small { color: var(--subtle); font-size: var(--type-meta); }


.xp-ask { max-width: 460px; }
.xp-composer {
display: flex;
align-items: center;
gap: var(--space-2);
padding-block: 9px;
padding-inline: 14px 9px;
border: 1px solid var(--line-strong);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-1);
font-size: var(--type-title);
}
.xp-composer .xp-typed { flex: 1; align-self: stretch; align-items: center; }
.xp-send {
display: inline-grid;
place-items: center;
flex: none;
width: 28px;
height: 28px;
border-radius: var(--r-pill);
background: var(--teal);
color: var(--surface);
animation: xp-press 300ms var(--ease-out) 1900ms both;
}
.xp-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.xp-chip {
display: inline-flex;
align-items: baseline;
gap: 6px;
padding: 4px 11px;
border: 1px solid var(--teal-line);
border-radius: var(--r-pill);
background: var(--teal-wash);
color: var(--teal-ink);
animation: xp-pop 380ms var(--spring-pop) calc(2200ms + var(--i) * 260ms) both;
}
.xp-chip small { color: var(--subtle); font-size: var(--type-meta); }
.xp-plan { display: grid; gap: var(--space-2); justify-items: start; animation: xp-rise var(--t-pop) var(--spring) 3000ms both; }
.xp-plan .xp-kicker { margin-bottom: 0 !important; }
.xp-plan-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.xp-plan-steps li {
padding: 2px 9px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface-2);
color: var(--ink-2);
animation: xp-fade 300ms var(--ease-out) calc(3300ms + var(--i) * 160ms) both;
}
.xp-plan .xp-btn { animation: xp-pop 380ms var(--spring-pop) 4100ms both; }


.xp-decide { max-width: 460px; }
.xp-gate { display: grid; gap: 6px; }
.xp-gate-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.xp-gate-head b { font-size: var(--type-title); }
.xp-stamp {
padding: 1px 9px;
border: 1px solid var(--teal-line);
border-radius: var(--r-pill);
background: var(--teal-wash);
color: var(--teal-ink);
font-size: var(--type-meta);
font-weight: var(--weight-medium);
animation: xp-pop 380ms var(--spring-pop) 3700ms both;
}
.xp-gate-ask { color: var(--muted); }
.xp-option {
position: relative;
display: flex;
align-items: center;
gap: var(--space-2);
padding: 7px 10px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
}
.xp-option.is-best { border-color: var(--teal); background: var(--teal-wash); isolation: isolate; }
.xp-option.is-best::before {
content: "";
position: absolute;
inset: -1px;
z-index: -1;
border: 1px solid var(--line);
border-radius: inherit;
background: var(--surface);
opacity: 0;
animation: xp-veil 300ms var(--ease-out) 3100ms both;
}
.xp-option-mark {
display: inline-grid;
place-items: center;
width: 18px;
height: 18px;
border-radius: var(--r-pill);
background: var(--teal);
color: var(--surface);
animation: xp-pop 300ms var(--spring-pop) 3150ms both;
}
.xp-option-dot { width: 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); }
.xp-option-text { min-width: 0; }
.xp-tag {
margin-inline-start: auto;
padding: 1px 8px;
border: 1px solid var(--teal-line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--teal-ink);
font-size: var(--type-meta);
font-weight: var(--weight-medium);
white-space: nowrap;
animation: xp-pop 380ms var(--spring-pop) 900ms both;
}
.xp-option .xp-cursor { inset-inline-end: 22%; bottom: -12px; animation: xp-cursor 1700ms var(--ease-out) 1700ms both; }
.xp-why { color: var(--muted); font-size: var(--type-meta); animation: xp-fade 400ms var(--ease-out) 1400ms both; }
.xp-auto {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-2) var(--space-3);
border: 1px dashed var(--line-strong);
border-radius: var(--r-m);
background: var(--surface-2);
animation: xp-rise var(--t-pop) var(--spring) 4300ms both;
}
.xp-switch {
position: relative;
flex: none;
width: 32px;
height: 18px;
border-radius: var(--r-pill);
background: var(--teal);
isolation: isolate;
}
.xp-switch::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
border-radius: inherit;
background: var(--line-strong);
opacity: 0;
animation: xp-veil 260ms var(--ease-out) 5100ms both;
}
.xp-switch-knob {
position: absolute;
top: 2px;
inset-inline-start: 16px;
width: 14px;
height: 14px;
border-radius: var(--r-pill);
background: var(--surface);
animation: xp-knob 260ms var(--ease-out) 5100ms both;
}
.xp-auto-words { display: grid; gap: 1px; min-width: 0; }
.xp-auto-words small { color: var(--subtle); font-size: var(--type-meta); }


.xp-run { gap: var(--space-4); }
.xp-track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.xp-track::before,
.xp-track::after {
content: "";
position: absolute;
top: 11px;
inset-inline-start: 10%;
height: 2px;
border-radius: var(--r-pill);
}
.xp-track::before { width: 80%; background: var(--line); }
.xp-track::after {
width: 60%;
background: var(--teal);
transform-origin: left center;
animation: xp-grow 2300ms linear 300ms both;
}
[dir="rtl"] .xp-track::after { transform-origin: right center; }
.xp-stage { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; text-align: center; }
.xp-stage-dot {
display: grid;
place-items: center;
width: 24px;
height: 24px;
border: 2px solid var(--line-strong);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--surface);
}
.xp-stage-dot { position: relative; isolation: isolate; }
.xp-stage.is-done .xp-stage-dot { border-color: var(--teal); background: var(--teal); }
.xp-stage.is-done .xp-stage-dot::before {
content: "";
position: absolute;
inset: -2px;
z-index: -1;
border: 2px solid var(--line-strong);
border-radius: inherit;
background: var(--surface);
opacity: 0;
animation: xp-veil 260ms var(--ease-out) calc(500ms + var(--i) * 750ms) both;
}
.xp-stage.is-done .xp-stage-check { animation: xp-pop 300ms var(--spring-pop) calc(560ms + var(--i) * 750ms) both; }
.xp-stage.is-now .xp-stage-dot {
border-color: var(--teal);
box-shadow: 0 0 0 4px var(--teal-wash);
animation: xp-pop 300ms var(--spring-pop) 2600ms both;
}
.xp-stage.is-now .xp-stage-dot::after {
content: "";
width: 8px;
height: 8px;
border-radius: var(--r-pill);
background: var(--teal);
animation: xp-pulse 1200ms var(--ease-out) 2800ms 4 both;
}
.xp-stage-name { color: var(--muted); font-size: var(--type-meta); line-height: 1.25; overflow-wrap: anywhere; }
.xp-stage.is-done .xp-stage-name, .xp-stage.is-now .xp-stage-name { color: var(--ink); font-weight: var(--weight-medium); }
.xp-finding {
display: inline-flex;
align-items: center;
justify-self: center;
gap: 6px;
max-width: 100%;
padding: 5px 12px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--ink-2);
font-size: var(--type-meta);
animation: xp-rise var(--t-pop) var(--spring) 2400ms both;
}
.xp-finding .xp-svg { color: var(--teal); }
.xp-next {
display: flex;
align-items: center;
gap: var(--space-3);
padding: 10px 14px;
border: 1px solid var(--line);
border-inline-start: 3px solid var(--teal);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-2);
animation: xp-rise var(--t-pop) var(--spring) 3200ms both;
}
.xp-next-words { display: grid; gap: 1px; min-width: 0; }
.xp-next-words .xp-kicker { margin-bottom: 0 !important; }
.xp-next-words b { font-size: var(--type-title); }
.xp-next-words small { color: var(--muted); font-size: var(--type-meta); }
.xp-ring { flex: none; }
.xp-ring-fill { animation: xp-fade 600ms var(--ease-out) 3500ms both; }


.xp-talk { gap: var(--space-2); max-width: 460px; }
.xp-thread { display: grid; gap: 5px; }
.xp-said {
justify-self: end;
max-width: 80%;
padding: 3px 11px;
border: 1px solid var(--teal-line);
border-radius: var(--r-pill);
background: var(--teal-wash);
color: var(--teal-ink);
font-weight: var(--weight-medium);
animation: xp-rise var(--t-pop) var(--spring) calc(300ms + var(--i) * 1700ms) both;
}
.xp-reply {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px var(--space-2);
justify-self: start;
max-width: 88%;
padding: 4px 11px;
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
color: var(--ink-2);
font-size: var(--type-meta);
animation: xp-rise var(--t-pop) var(--spring) calc(1000ms + var(--i) * 1700ms) both;
}
.xp-reply .xp-tag { margin-inline-start: 0; }
.xp-talk .xp-composer { animation: xp-rise var(--t-pop) var(--spring) 5300ms both; }
.xp-talk .xp-typed { --type-for: 1300ms; --type-steps: 10; --type-at: 5700ms; }


.xp-check { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; max-width: 520px; }
.xp-board { display: grid; gap: var(--space-2); animation: xp-rise var(--t-pop) var(--spring) 200ms both; }
.xp-board .xp-kicker, .xp-flags .xp-kicker { margin-bottom: 0 !important; }
.xp-bar { display: flex; gap: 2px; height: 10px; overflow: hidden; border-radius: var(--r-pill); background: var(--surface-3); }
.xp-bar-kept {
flex: 84 1 0;
background: var(--teal);
transform-origin: left center;
animation: xp-grow 1100ms var(--ease-out) 500ms both;
}
[dir="rtl"] .xp-bar-kept { transform-origin: right center; }
.xp-bar-flag { flex: 2 1 0; min-width: 6px; background: var(--amber); animation: xp-pop 300ms var(--spring-pop) 1700ms both; }
.xp-counts { display: grid; gap: 2px; color: var(--muted); font-size: var(--type-meta); animation: xp-fade 400ms var(--ease-out) 1900ms both; }
.xp-counts b { color: var(--ink); font-size: var(--type-title); }
.xp-counts-flag b { color: var(--amber-ink); }
.xp-flags { display: grid; gap: var(--space-2); animation: xp-rise var(--t-pop) var(--spring) 2500ms both; }
.xp-flag-list { display: grid; gap: 6px; }
.xp-flag {
position: relative;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px 6px;
padding: 6px 8px;
border: 1px solid var(--amber-line);
border-inline-start: 3px solid var(--amber);
border-radius: var(--r-s);
background: var(--amber-wash);
animation: xp-rise var(--t-pop) var(--spring) calc(2800ms + var(--i) * 400ms) both;
}
.xp-flag-words { display: grid; flex: 1 1 120px; min-width: 0; }
.xp-flag-words b { font-family: var(--font-mono); font-size: var(--type-meta); }
.xp-flag-words small { color: var(--amber-ink); font-size: var(--type-meta); }
.xp-flag-btn {
padding: 1px 8px;
border: 1px solid var(--line-strong);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--muted);
font-size: var(--type-meta);
}

.xp-flag-keep { position: relative; }
.xp-flag-on {
position: absolute;
inset: -1px;
display: grid;
place-items: center;
border-radius: inherit;
background: var(--teal);
color: var(--surface);
animation: xp-fade 300ms var(--ease-out) 4800ms both;
}
.xp-flag.is-kept::after {
content: "";
position: absolute;
inset-block: -1px;
inset-inline-start: -3px;
width: 3px;
border-start-start-radius: var(--r-s);
border-end-start-radius: var(--r-s);
background: var(--teal);
animation: xp-fade 300ms var(--ease-out) 4800ms both;
}
.xp-flag .xp-cursor { inset-inline-end: 64px; bottom: -10px; animation: xp-cursor 1700ms var(--ease-out) 3800ms both; }


.xp-answer { max-width: 480px; }
.xp-concl { display: grid; gap: 6px; border-inline-start: 3px solid var(--teal); }
.xp-concl-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.xp-concl-top .xp-kicker { margin-bottom: 0 !important; }
.xp-badge {
padding: 2px 10px;
border: 1px solid var(--amber-line);
border-radius: var(--r-pill);
background: var(--amber-wash);
color: var(--amber-ink);
font-size: var(--type-meta);
font-weight: var(--weight-medium);
animation: xp-pop 400ms var(--spring-pop) 1500ms both;
}
.xp-answer-line {
font-size: var(--type-heading);
font-weight: var(--weight-medium);
line-height: var(--leading-tight);
animation: xp-rise var(--t-pop) var(--spring) 300ms both;
}
.xp-axis { display: flex; justify-content: center; }
.xp-axis svg { width: 100%; max-width: 340px; height: auto; }
.xp-axis-band { transform-box: fill-box; transform-origin: center; animation: xp-band 600ms var(--ease-out) 2000ms both; }
.xp-axis-dot { transform-box: fill-box; transform-origin: center; animation: xp-pop 380ms var(--spring-pop) 2500ms both; }
.xp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.xp-tile {
display: grid;
gap: 2px;
padding: 8px 10px;
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
animation: xp-rise var(--t-pop) var(--spring) calc(2900ms + var(--i) * 300ms) both;
}
.xp-tile small { color: var(--subtle); font-size: var(--type-meta); }
.xp-tile b { font-size: var(--type-title); }


.xp-tree { gap: var(--space-2); max-width: 480px; }
.xp-tree-tools { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.xp-pill {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 26px;
padding: 2px 10px;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--ink-2);
}
.xp-colour { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-ink); --veil-at: 1100ms; }
.xp-search { min-width: 92px; border-color: var(--teal); --veil-at: 3200ms; }
.xp-search .xp-svg { color: var(--subtle); }
.xp-search-text { font-family: var(--font-mono); --type-for: 700ms; --type-steps: 3; --type-at: 3400ms; }
.xp-legend { display: flex; flex-wrap: wrap; gap: 4px var(--space-3); color: var(--muted); font-size: var(--type-meta); animation: xp-fade 400ms var(--ease-out) 1500ms both; }
.xp-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.xp-legend-item i { width: 9px; height: 9px; border-radius: var(--r-pill); }
.xp-legend-item.g1 i { background: var(--viz-1); }
.xp-legend-item.g2 i { background: var(--viz-2); }
.xp-legend-item.g3 i { background: var(--viz-3); }
.xp-tree-stage { position: relative; width: min(100%, 330px); aspect-ratio: 300 / 170; justify-self: center; }
.xp-tree-svg, .xp-tree-svg svg { width: 100%; height: 100%; }
.xp-branch {
fill: none;
stroke: var(--tree-branch);
stroke-width: 2;
stroke-linecap: round;
animation: xp-fade 360ms var(--ease-out) calc(var(--o, 0) * 45ms) both;
}
.xp-branch.g1 { stroke: var(--viz-1); }
.xp-branch.g2 { stroke: var(--viz-2); }
.xp-branch.g3 { stroke: var(--viz-3); }

.xp-tree-svg .xp-grey { opacity: 0; animation: xp-veil 600ms var(--ease-out) 1400ms both; }
.xp-branch.xp-grey { stroke: var(--tree-branch); }
.xp-tip circle.xp-grey { fill: var(--tree-branch); }
.xp-halo {
fill: none;
stroke: var(--teal);
stroke-width: 7;
stroke-linecap: round;
opacity: 0.22;
animation: xp-fade 300ms var(--ease-out) 5600ms both;
}
.xp-tip circle { stroke: var(--surface); stroke-width: 1.2; }
.xp-tip.g1 circle { fill: var(--viz-1); }
.xp-tip.g2 circle { fill: var(--viz-2); }
.xp-tip.g3 circle { fill: var(--viz-3); }
.xp-tip text { fill: var(--tree-label); font-family: var(--font-mono); font-size: var(--type-meta); }
.xp-tip { animation: xp-fade 300ms var(--ease-out) calc(500ms + var(--i) * 40ms) both; }
.xp-tip:not(.is-hit) { opacity: 0.32; animation: xp-fade 300ms var(--ease-out) calc(500ms + var(--i) * 40ms) both, xp-dim 400ms var(--ease-out) 4100ms both; }
.xp-tip.is-hit text { fill: var(--ink); font-weight: var(--weight-strong); }
.xp-pick { fill: none; stroke: var(--teal); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: xp-ripple 700ms var(--ease-out) 5400ms both; }
.xp-tree-stage .xp-cursor { left: 34%; top: 14%; animation: xp-cursor 1800ms var(--ease-out) 4300ms both; }
[dir="rtl"] .xp-tree-stage .xp-cursor { left: 34%; right: auto; }
.xp-pop {
position: absolute;
top: 22%;
left: 37%;
z-index: 1;
display: grid;
gap: 1px;
padding: 6px 10px;
border: 1px solid var(--teal-line);
border-radius: var(--r-s);
background: var(--surface);
box-shadow: var(--shadow-2);
font-size: var(--type-meta);
white-space: nowrap;
animation: xp-pop 400ms var(--spring-pop) 5800ms both;
}
.xp-pop small { color: var(--subtle); }


.xp-record { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; max-width: 500px; }
.xp-log-list { display: grid; gap: 10px; }
.xp-log-list li {
position: relative;
padding-inline-start: 18px;
animation: xp-rise var(--t-pop) var(--spring) calc(400ms + var(--i) * 550ms) both;
}
.xp-log-list li::before {
content: "";
position: absolute;
top: 5px;
inset-inline-start: 2px;
width: 8px;
height: 8px;
border-radius: var(--r-pill);
background: var(--teal);
}
.xp-log-list li:not(:last-child)::after {
content: "";
position: absolute;
top: 15px;
bottom: -10px;
inset-inline-start: 5px;
width: 2px;
background: var(--teal-line);
}
.xp-record-side { display: grid; gap: var(--space-3); }
.xp-doc { display: grid; gap: 10px; justify-items: start; animation: xp-rise var(--t-pop) var(--spring) 2000ms both; }
.xp-doc-lines { display: grid; gap: 5px; width: 100%; }
.xp-doc-lines i { height: 6px; border-radius: var(--r-pill); background: var(--surface-3); }
.xp-doc-lines i:nth-child(2) { width: 86%; }
.xp-doc-lines i:nth-child(3) { width: 93%; }
.xp-doc-lines i:nth-child(4) { width: 58%; }
.xp-btn-small { padding: 4px 9px; font-size: var(--type-meta); animation: xp-press 300ms var(--ease-out) 2900ms both; }
.xp-share {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 6px;
animation: xp-rise var(--t-pop) var(--spring) 3400ms both;
}
.xp-share-link { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-ink); font-weight: var(--weight-medium); }
.xp-toast {
padding: 1px 8px;
border-radius: var(--r-pill);
background: var(--ink);
color: var(--surface);
font-size: var(--type-meta);
animation: xp-pop 380ms var(--spring-pop) 4200ms both;
}


@media (max-width: 560px) {
.explainer { top: 50%; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); transform: translate(-50%, -50%); }
.explainer-head { padding-inline-start: var(--space-4); }
.explainer-stage { height: 300px; margin-inline: var(--space-3); padding: var(--space-3); }
.explainer-caption { padding-inline: var(--space-4); }
.explainer-title { font-size: var(--type-heading); }
.explainer-body { font-size: var(--type-read); }
.explainer-ways { padding-inline: var(--space-4); }
.explainer-ways .explainer-way:not(.btn-quiet) { flex: 1 1 100%; }
.explainer-keys { display: none; }
.explainer-dot { width: 24px; }
.xp-files { grid-template-columns: 1fr; }
.xp-drop { flex-direction: row; flex-wrap: wrap; min-height: 0; padding: var(--space-2); }
.xp-drop-hint { display: none; }
.xp-stat { padding: 5px 8px; }
.xp-stat b { font-size: var(--type-title); }
.xp-answer-line { font-size: var(--type-heading); }
.xp-tile { padding: 6px 8px; }
.xp-record { grid-template-columns: 1fr; gap: var(--space-2); }
.xp-record-side { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.xp-auto { padding: 6px 10px; }
.xp-check { grid-template-columns: 1fr; gap: var(--space-2); }
.xp-board { gap: 6px; padding: var(--space-2) var(--space-3); }
.xp-counts { grid-auto-flow: column; justify-content: start; gap: var(--space-3); }
.xp-flags { gap: 6px; padding: var(--space-2) var(--space-3); }
.xp-flag { padding: 4px 8px; }
.xp-reply { max-width: 96%; }
}
@media (pointer: coarse) { .explainer-keys { display: none; } }


@keyframes xp-fade { from { opacity: 0; } }
@keyframes xp-rise { from { opacity: 0; translate: 0 10px; } }
@keyframes xp-pop { from { opacity: 0; scale: 0.8; } }
@keyframes xp-dialog-in { from { opacity: 0; scale: 0.96; } }
@keyframes xp-fill { from { transform: scaleX(0); } }
@keyframes xp-drop-in { from { opacity: 0; transform: translate(-24px, -110px) rotate(-10deg); } }
@keyframes xp-veil { from { opacity: 1; } }
@keyframes xp-type { from { transform: translateX(0); } }
@keyframes xp-press { 0% { scale: 1; } 50% { scale: 0.86; } 100% { scale: 1; } }
@keyframes xp-cursor {
0% { opacity: 0; translate: 70px 50px; }
45% { opacity: 1; translate: 0 0; scale: 1; }
60% { opacity: 1; translate: 0 0; scale: 0.82; }
75% { opacity: 1; translate: 0 0; scale: 1; }
100% { opacity: 0; translate: 0 0; }
}
@keyframes xp-knob { from { translate: calc(-14px * var(--inline-sign, 1)) 0; } }
@keyframes xp-grow { from { transform: scaleX(0); } }
@keyframes xp-pulse { 0% { scale: 0.6; opacity: 0.4; } 50% { scale: 1.15; opacity: 1; } 100% { scale: 1; opacity: 1; } }
@keyframes xp-band { from { opacity: 0; transform: scaleX(0.1); } }
@keyframes xp-dim { from { opacity: 1; } }
@keyframes xp-ripple { 0% { opacity: 1; scale: 0.4; } 100% { opacity: 0; scale: 1.8; } }

}



@layer legacy {

.preflight-panel {
display: grid;
gap: 10px;
min-width: 0;
margin: 2px 0 4px;
}
.preflight-panel.is-advice {
margin: 0 0 8px;
padding: 12px 14px;
border: 1px solid var(--line);
border-inline-start: 3px solid var(--amber);
border-radius: var(--r-m);
background: var(--surface);
}
.preflight-panel p { margin: 0; }
.preflight-trigger { color: var(--ink-2); font-size: var(--type-read); }
.preflight-fold > summary {
width: fit-content;
min-height: 28px;
color: var(--muted);
font-size: var(--type-control);
cursor: pointer;
}
.preflight-fold > summary:hover { color: var(--teal-ink); }
.preflight-fold > .preflight-facts,
.preflight-fold > .preflight-ids { margin-top: 6px; }

.preflight-facts {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 4px;
margin: 0;
padding: 8px 10px;
border-radius: var(--r-s);
background: var(--teal-wash);
font-size: var(--type-read);
}
.preflight-facts > div { display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.preflight-facts dt { color: var(--muted); min-width: 9em; }
.preflight-facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

.preflight-findings { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.preflight-finding {
display: grid;
gap: 6px;
min-width: 0;
padding: 10px 12px;
border: 1px solid var(--amber-line);
border-inline-start: 3px solid var(--amber);
border-radius: var(--r-s);
background: var(--amber-wash);
scroll-margin: 24px;
}
.preflight-finding.is-decided { border-color: var(--line); border-inline-start-color: var(--teal); background: var(--surface); }
.preflight-finding.is-flash { box-shadow: 0 0 0 4px rgba(185, 148, 66, 0.28); }
.preflight-finding-title { color: var(--ink); font-weight: 600; font-size: var(--type-title); }
.preflight-finding-detail { color: var(--ink-2); font-size: var(--type-read); }
.preflight-tag {
display: inline-block;
margin-inline-start: 8px;
padding: 1px 6px;
border: 1px solid var(--line-strong);
border-radius: 999px;
color: var(--muted);
font: 600 var(--type-meta)/1.4 var(--font-ui);
vertical-align: middle;
}

.preflight-ids { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.preflight-id {
max-width: 100%;
padding: 1px 6px;
border-radius: 6px;
background: var(--wash);
color: var(--ink-2);
font-size: var(--type-note);
overflow-wrap: anywhere;
}
.preflight-more { color: var(--muted); font-size: var(--type-note); align-self: center; }

.preflight-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.preflight-actions .preflight-action { min-height: 32px; padding: 4px 10px; font-size: var(--type-note); }
.preflight-actions .preflight-action[aria-pressed="true"] { border-color: var(--teal); color: var(--teal-ink); background: var(--teal-wash); }
.preflight-actions .preflight-action.is-suggested:not([aria-pressed="true"]) { border-color: var(--teal); border-style: dashed; }
.preflight-suggested { color: var(--teal-ink); font-size: var(--type-note); }
.preflight-basis > .preflight-panel { margin-top: 6px; }

.preflight-input { display: grid; gap: 6px; }
.preflight-input[hidden] { display: none; }
.preflight-input label { color: var(--ink-2); font-size: var(--type-control); }
.preflight-input textarea,
.preflight-input input {
box-sizing: border-box;
width: 100%;
min-width: 0;
padding: 6px 8px;
border: 1px solid var(--line-strong);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: var(--type-control)/1.5 var(--font-mono, monospace);
}
.preflight-input button { justify-self: start; }

.preflight-decided { color: var(--teal-ink); font-size: var(--type-note); font-weight: 600; }
.preflight-note { color: var(--muted); font-size: var(--type-note); }
.preflight-error { color: var(--red-ink); font-size: var(--type-note); }
.preflight-error[hidden] { display: none; }
.preflight-apply { justify-self: start; }
.preflight-pilot {
display: grid;
gap: 6px;
padding: 10px 12px;
border: 1px dashed var(--line-strong);
border-radius: var(--r-s);
}
.preflight-pilot-choice { display: flex; gap: 6px; align-items: flex-start; color: var(--ink); font-size: var(--type-read); }
.preflight-pilot-choice input { margin-top: 3px; flex: none; }
.preflight-pilot-label { color: var(--amber-ink); font-weight: 600; }
.preflight-pilot-state { color: var(--ink-2); font-size: var(--type-note); }
.preflight-pilot-problem { color: var(--red-ink); font: var(--type-note)/1.5 var(--font-mono, monospace); overflow-wrap: anywhere; }
.preflight-pilot-run { justify-self: start; }
.decision-card.is-done .preflight-pilot-run,
.decision-card.is-done .preflight-actions,
.decision-card.is-done .preflight-input { display: none; }

.metadata-conflict-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.metadata-conflict-head h2 { margin: 0; }
.metadata-conflict-list { gap: 12px; }
.metadata-conflict-current,
.metadata-conflict-choice,
.metadata-remembered { display: grid; gap: 6px; min-width: 0; }
.metadata-conflict-current { padding: 8px 10px; border-radius: var(--r-s); background: var(--surface); }
.metadata-conflict-current h4,
.metadata-conflict > h4 { margin: 0; color: var(--ink-2); font-size: var(--type-control); }
.metadata-conflict-value { margin: 0; color: var(--ink); font: 600 var(--type-read)/1.5 var(--font-mono, monospace); overflow-wrap: anywhere; white-space: pre-wrap; }
.metadata-conflict-choices { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.metadata-conflict-choice { padding-block-start: 8px; border-top: 1px solid var(--line); }
.metadata-conflict-fact { display: flex; flex-wrap: wrap; gap: 4px 8px; min-width: 0; font-size: var(--type-note); }
.metadata-conflict-fact code { color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-wrap; }
.metadata-conflict-label { flex: none; color: var(--muted); }
.metadata-remembered { padding: 8px 10px; border-radius: var(--r-s); background: var(--teal-wash); }
.metadata-remembered-value { margin: 0; color: var(--teal-ink); font-weight: 600; overflow-wrap: anywhere; }
.metadata-save-status { padding: 8px 10px; border-radius: var(--r-s); background: var(--teal-wash); }

@media (max-width: 560px) {
.preflight-facts dt { min-width: 0; width: 100%; }
.preflight-finding { padding: 8px 10px; }
}

}

@layer legacy {




.guide-backdrop[hidden], .guide[hidden] { display: none; }
.guide-backdrop {
position: fixed;
inset: 0;
z-index: 90;
background: rgba(10, 20, 24, 0.48);
animation: guide-fade var(--t-base) var(--ease-out) both;
}
.guide {
position: fixed;
top: max(16px, calc(50% - 360px));
left: 50%;
z-index: 91;
display: flex;
flex-direction: column;
width: min(680px, calc(100vw - 32px));
max-height: calc(100dvh - 2 * max(16px, calc(50% - 360px)));
border: 1px solid var(--line);
border-radius: var(--r-l);
background: var(--surface);
color: var(--ink);
box-shadow: var(--shadow-3);
font-family: var(--font-ui);
transform: translateX(-50%);
animation: guide-in var(--t-pop) var(--spring) both;
}
.guide:focus { outline: none; }
.guide:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.guide-head {
display: flex;
align-items: center;
gap: var(--space-3);
padding-block: var(--space-3);
padding-inline: var(--space-5) var(--space-3);
border-bottom: 1px solid var(--line);
}
.guide-title {
margin: 0;
color: var(--teal-ink);
font-size: var(--type-title);
font-weight: var(--weight-strong);
}
.guide-close {
display: inline-grid;
place-items: center;
width: 36px;
height: 36px;
margin-inline-start: auto;
padding: 0;
border: 1px solid transparent;
border-radius: var(--r-pill);
background: none;
color: var(--muted);
font-size: var(--type-heading);
line-height: 1;
cursor: pointer;
}
.guide-close:hover { background: var(--surface-3); color: var(--ink); }
.guide-close:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }


.guide-body {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
padding: var(--space-4) var(--space-5);
line-height: var(--leading);
}
.guide-lede {
margin: 0 0 var(--space-4);
color: var(--ink);
font-size: var(--type-title);
}
.guide-section + .guide-section { margin-top: var(--space-5); }
.guide-section-head {
margin: 0 0 var(--space-2);
color: var(--ink);
font-size: var(--type-title);
font-weight: var(--weight-strong);
}
.guide-section-lede, .guide-note {
margin: 0 0 var(--space-2);
color: var(--muted);
font-size: var(--type-note);
}
.guide-note { margin: var(--space-2) 0 0; }
.guide-section ul, .guide-section ol { margin: 0; padding: 0; list-style: none; }


.guide-figure {
display: grid;
place-items: center;
margin: 0 0 var(--space-3);
padding: var(--space-4) var(--space-3);
overflow: hidden;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--wash);
}

.guide-glyph { display: inline-grid; flex: none; place-items: center; color: var(--ink-2); line-height: 0; }
.guide-words { display: grid; gap: 1px; min-width: 0; }
.guide-name { color: var(--ink); font-size: var(--type-note); font-weight: var(--weight-strong); }
.guide-ask, .guide-line { color: var(--muted); font-size: var(--type-note); }


.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.guide-cards li {
display: grid;
align-content: start;
gap: var(--space-2);
padding: var(--space-3);
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-1);
}
.guide-cards .guide-glyph {
justify-self: start;
padding: 6px;
border-radius: var(--r-s);
background: var(--teal-wash);
}
.guide-ask { font-size: var(--type-meta); }


.guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); counter-reset: guide-step; }
.guide-steps li {
position: relative;
display: grid;
align-content: start;
gap: var(--space-2);
padding: var(--space-3);
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
counter-increment: guide-step;
}
.guide-steps li::before {
content: counter(guide-step);
position: absolute;
top: var(--space-2);
inset-inline-end: var(--space-2);
display: grid;
place-items: center;
width: 20px;
height: 20px;
border-radius: var(--r-pill);
background: var(--teal);
color: var(--surface);
font-size: var(--type-meta);
font-weight: var(--weight-strong);
}
.guide-steps .guide-glyph { justify-self: start; }
.guide-steps .guide-line { font-size: var(--type-meta); }


.guide-says { display: grid; gap: var(--space-1); }
.guide-says li {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: var(--space-1) var(--space-2);
color: var(--muted);
font-size: var(--type-note);
}
.guide-say {
padding: 1px 10px;
border: 1px solid var(--teal-line);
border-radius: var(--r-pill);
background: var(--teal-wash);
color: var(--teal-ink);
quotes: none;
overflow-wrap: anywhere;
}
.guide-does { min-width: 0; }
.guide-does::before { content: "→ "; color: var(--faint); }
[dir="rtl"] .guide-does::before { content: "← "; }


.guide-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); }
.guide-rows li, .guide-lines li { display: flex; align-items: flex-start; gap: var(--space-2); }
.guide-lines { display: grid; gap: var(--space-2); }
.guide-lines .guide-glyph { transform: scale(0.8); transform-origin: top center; }
.guide-lines .guide-line { padding-top: 4px; color: var(--ink-2); }


.guide-cards li, .guide-steps li, .guide-says li, .guide-rows li, .guide-lines li {
animation: guide-rise var(--t-pop) var(--spring) calc(var(--i, 0) * 70ms) both;
}
.guide-section:not(.is-seen) *, .guide-section:not(.is-seen) *::before { animation-play-state: paused; }

.guide-foot {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2);
padding: var(--space-3) var(--space-5);
border-top: 1px solid var(--line);
}
.guide-done { margin-inline-start: auto; }

@media (max-width: 560px) {
.guide { top: 50%; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); transform: translate(-50%, -50%); }
.guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-steps, .guide-rows { grid-template-columns: 1fr; }
.guide-figure { padding: var(--space-3) var(--space-2); }
.guide-head, .guide-body, .guide-foot { padding-inline: var(--space-4); }
.guide-foot .guide-tour { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {

.guide, .guide-backdrop, .guide-body *, .guide-body *::before { animation: none !important; }
}

@keyframes guide-fade { from { opacity: 0; } }
@keyframes guide-in { from { opacity: 0; scale: 0.96; } }
@keyframes guide-rise { from { opacity: 0; translate: 0 8px; } }

}

@layer legacy {















.page-guide-line {
display: inline-flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-1) var(--space-3);
min-width: 0;
vertical-align: middle;
}
.page-guide-line[hidden] { display: none; }
.stage-sub .page-guide-line .explainer-help { margin-inline-start: 0; vertical-align: baseline; }
.stage-sub .page-guide-line .page-guide-hint { margin-top: 0; }
.page-guide-line .explainer-help[aria-expanded="true"] { color: var(--teal-deep); }
.page-guide-hint {
display: inline-flex;
align-items: center;
gap: var(--space-1);
min-width: 0;
margin-top: var(--space-1);
padding-block: 0;
padding-inline: 10px 4px;
border: 1px solid var(--teal-line);
border-radius: var(--r-pill);
background: var(--teal-wash);
color: var(--teal-ink);

font-size: var(--type-control);
line-height: var(--leading-tight);
}
.page-guide-hint[hidden] { display: none; }
.page-guide-hint-close {
display: inline-grid;
place-items: center;
flex: none;
width: 28px;
height: 28px;
padding: 0;
border: 0;
border-radius: var(--r-pill);
background: none;
color: var(--teal-ink);
font-size: var(--type-control);
line-height: 1;
cursor: pointer;
}
.page-guide-hint-close:hover { background: var(--surface); }
.page-guide-hint-close:focus-visible { outline: none; box-shadow: var(--focus-ring); }


.page-guide-spot {
position: fixed;
z-index: 88;
top: 0;
left: 0;
width: 0;
height: 0;
border-radius: var(--r-m);
box-shadow: 0 0 0 2px var(--teal), 0 0 0 6px rgba(40, 122, 101, 0.22), 0 0 0 200vmax rgba(10, 20, 24, 0.34);
opacity: 0;
pointer-events: none;
transition: opacity var(--t-base, 240ms) ease-out;
}
.page-guide-spot.is-on { opacity: 1; }
.page-guide-spot.is-lost { opacity: 0; }
.page-guide-spot.is-gliding {
transition: top 250ms var(--ease-out, ease-out), left 250ms var(--ease-out, ease-out),
width 250ms var(--ease-out, ease-out), height 250ms var(--ease-out, ease-out), opacity var(--t-base, 240ms) ease-out;
}


.page-guide-card[hidden] { display: none; }
.page-guide-card {
position: fixed;
z-index: 89;
top: 0;
left: 0;
box-sizing: border-box;
width: min(360px, calc(100vw - 24px));
padding: var(--space-3) var(--space-4) var(--space-4);
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
color: var(--ink);
box-shadow: var(--shadow-3);
font-family: var(--font-ui);
opacity: 1;
transition: opacity 250ms ease-out;


pointer-events: none;
}
.page-guide-card.is-moving { opacity: 0; }
.page-guide-card:focus { outline: none; }
.page-guide-card:focus-visible { box-shadow: var(--shadow-3), var(--focus-ring); }
.page-guide-card .page-guide-head,
.page-guide-card .page-guide-body,
.page-guide-card .page-guide-actions { pointer-events: none; }
.page-guide-card .page-guide-close,
.page-guide-card .page-guide-actions button { pointer-events: auto; }
.page-guide-head {
display: flex;
align-items: center;
gap: var(--space-2);
margin-bottom: var(--space-1);
}
.page-guide-name {
margin: 0;
color: var(--teal-ink);
font-size: var(--type-meta);
font-weight: var(--weight-strong);
letter-spacing: 0.04em;
}
.page-guide-count {
margin: 0;
margin-inline-start: auto;
color: var(--subtle);
font-size: var(--type-meta);
font-variant-numeric: tabular-nums;
}
.page-guide-close {
display: inline-grid;
place-items: center;
flex: none;
width: 32px;
height: 32px;
margin-inline-end: -8px;
padding: 0;
border: 0;
border-radius: var(--r-pill);
background: none;
color: var(--muted);
font-size: var(--type-heading);
line-height: 1;
cursor: pointer;
}
.page-guide-close:hover { background: var(--surface-3); color: var(--ink); }
.page-guide-close:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.page-guide-title {
margin: 0 0 var(--space-1);
font-size: var(--type-title);
font-weight: var(--weight-strong);
line-height: var(--leading-tight);
}
.page-guide-body {
margin: 0;
color: var(--ink-2);
font-size: var(--type-read);
line-height: var(--leading);
overflow-wrap: anywhere;
}
.page-guide-actions {
display: flex;
justify-content: flex-end;
gap: var(--space-2);
margin-top: var(--space-3);
}
.page-guide-actions button {
min-height: 32px;
padding: 4px 14px;
border-radius: var(--r-s);
font: var(--weight-medium) var(--type-control)/1.3 var(--font-ui);
cursor: pointer;
}
.page-guide-back:disabled { visibility: hidden; }



@media (max-width: 600px) {
.page-guide-card,
.page-guide-card.is-docked {
top: auto;
right: 8px;
bottom: calc(8px + env(safe-area-inset-bottom, 0px));
left: 8px;
width: auto;
max-height: 45dvh;
overflow-y: auto;
}
}

@media (prefers-reduced-motion: reduce) {
.page-guide-spot, .page-guide-spot.is-gliding, .page-guide-card { transition: none; }
}

}

@layer legacy {







.demo-pointer {
position: fixed;
top: 0;
left: 0;
z-index: 1000;
pointer-events: none;
display: flex;
align-items: flex-start;
gap: var(--space-1);
transition: opacity var(--t-base) var(--ease-out);
}
.demo-pointer svg { display: block; filter: drop-shadow(var(--shadow-2)); }
.demo-pointer svg path { fill: var(--surface); stroke: var(--teal-ink); stroke-width: 1.6; stroke-linejoin: round; }
.demo-pointer.is-pressing svg { transform: scale(0.88); transform-origin: 3px 2px; }
.demo-pointer-tag {
margin-top: var(--space-4);
padding: 0 var(--space-2);
border-radius: var(--r-pill);
background: var(--teal-ink);
color: var(--surface);
font: var(--weight-medium) var(--type-meta) / var(--leading-tight) var(--font-ui);
white-space: nowrap;
}
.demo-ripple {
position: fixed;
top: 0;
left: 0;
z-index: 999;
width: var(--space-8);
height: var(--space-8);
border: 2px solid var(--teal-ink);
border-radius: 50%;
pointer-events: none;
animation: demo-ripple 300ms var(--ease-out) forwards;
}
@keyframes demo-ripple {
from { opacity: 0.8; scale: 0.3; }
to { opacity: 0; scale: 1.4; }
}

.demo-ripple { translate: -50% -50%; }
.demo-bubble {
position: fixed;
top: 0;
left: 0;
z-index: 1000;
max-width: 280px;
padding: var(--space-2) var(--space-3);
border-radius: var(--r-m);
background: var(--surface);
color: var(--ink);
box-shadow: var(--shadow-3);
font: var(--type-control) / var(--leading-tight) var(--font-ui);
pointer-events: none;
opacity: 0;
transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.demo-bubble.is-shown { opacity: 1; }
.demo-ring {
position: fixed;
z-index: 998;
border-radius: var(--r-m);
box-shadow: 0 0 0 2px var(--teal-ink), 0 0 0 100vmax color-mix(in srgb, var(--ink) 12%, transparent);
pointer-events: none;
transition: top var(--t-base) var(--ease-out), left var(--t-base) var(--ease-out),
width var(--t-base) var(--ease-out), height var(--t-base) var(--ease-out);
}
.demo-ring[hidden] { display: none; }
.demo-bar {
position: fixed;
left: 50%;
bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
z-index: 1001;
translate: -50% 0;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2);
padding: var(--space-2) var(--space-3);
border-radius: var(--r-pill);
background: var(--surface);
box-shadow: var(--shadow-3);
font: var(--type-control) / var(--leading-tight) var(--font-ui);
}
.demo-bar-label { font-weight: var(--weight-strong); color: var(--teal-ink); }
.demo-bar-count { color: var(--ink-2); }
.demo-bar button[hidden] { display: none; }

.is-demo-offer { box-shadow: var(--focus-ring); }
.demo-ring.is-pulsing { animation: demo-offer 1.4s var(--ease-out) infinite; }
@keyframes demo-offer { 50% { opacity: 0.45; } }
.is-demo-filled { box-shadow: var(--focus-ring); transition: box-shadow var(--t-base) var(--ease-out); }
.demo-pointer.is-leaving, .demo-bubble.is-leaving, .demo-ring.is-leaving { opacity: 0; }


@media (max-width: 600px), (hover: none) {
.demo-pointer, .demo-ripple { display: none; }
.demo-bubble {
left: var(--space-3);
right: var(--space-3);
top: auto;
bottom: calc(var(--space-10) + env(safe-area-inset-bottom, 0px));
max-width: none;
transform: none !important;
}
}

@media (prefers-reduced-motion: reduce) {
.demo-pointer, .demo-bubble, .demo-ring, .is-demo-filled { transition: none; }
.demo-ripple, .demo-ring.is-pulsing { animation: none; }
}


.is-agent-highlight {
outline: 2px solid var(--teal-ink);
outline-offset: 3px;
transition: outline-color var(--t-base) var(--ease-out);
}

}

@layer legacy {



.login-guest {
width: 100%;
margin-bottom: var(--space-3);
}
.guest-banner {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: var(--space-1) var(--space-3);
padding: var(--space-1) var(--space-4);
font-size: var(--type-note);
background: var(--teal-soft);
color: var(--ink);
border-bottom: 1px solid var(--teal-line);
}
.guest-banner[hidden] { display: none; }
.guest-banner-sign-in {
background: none;
border: none;
padding: 0;
color: var(--teal-ink);
text-decoration: underline;
cursor: pointer;
}




.guest-turnstile {
position: fixed;
inset-block-start: 50%;
inset-inline-start: 50%;
z-index: 90;
transform: translate(-50%, -50%);
pointer-events: none;
}
.guest-turnstile.is-asking {
padding: 12px;
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-3);
pointer-events: auto;
}

.guest-turnstile:not(.is-asking) iframe {
pointer-events: none !important;
}


.login-gate.is-dialog {
background: rgba(16, 24, 28, 0.45);
}
.login-gate.is-dialog .login-motif,
.login-gate.is-dialog .login-lang,
.login-gate.is-dialog .login-tagline,
.login-gate.is-dialog .login-evidence,
.login-gate.is-dialog .login-points { display: none; }
.login-gate.is-dialog .login-card { position: relative; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22); }
.login-close {
position: absolute;
inset-block-start: 8px;
inset-inline-end: 8px;
width: 44px;
height: 44px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 0;
background: transparent;
color: var(--ink-2, currentColor);
cursor: pointer;
}
.login-close svg { width: 18px; height: 18px; }
.login-close[hidden], .guest-sign-in[hidden] { display: none; }
.guest-sign-in {
min-height: 36px;
padding: 6px 14px;
border-radius: var(--r-pill);
border: 1px solid var(--teal);
background: var(--teal-wash);
color: var(--teal-ink);
font: inherit;
font-size: var(--type-control);
white-space: nowrap;
flex-shrink: 0;
cursor: pointer;
}



@media (max-width: 480px) {
.guest-sign-in { min-height: 34px; padding: 4px 10px; }
.product-header:has(.guest-sign-in:not([hidden])):has(#files-open:not([hidden])) .product-brand { display: none; }
}
@media (max-width: 600px) {
.login-gate.is-dialog { background: var(--surface); }
.login-gate.is-dialog .login-card { box-shadow: none; }
}

}

@layer legacy {

.transcript[data-replay] > :not(.replay-beat) { display: none; }
.replay-head {
color: var(--muted);
font-size: var(--type-meta);
}
.transcript[data-replay] > .replay-beat:not(.replay-head) { margin-inline-start: var(--space-3); }
.replay-compute-text { display: block; }
.replay-track {
display: block;
height: 3px;
margin-top: var(--space-1);
overflow: hidden;
border-radius: var(--r-pill);
background: var(--line-soft);
}
.replay-fill {
display: block;
height: 100%;
background: var(--teal);
transform-origin: left center;
animation: replay-fill var(--replay-ms, 1500ms) linear forwards;
}
@keyframes replay-fill {
from { transform: scaleX(0); }
to { transform: scaleX(1); }
}
.decision-card.is-replay-asking :is(.decision-why, .decision-answered) { visibility: hidden; }
.replay-figure-fallback {
color: var(--muted);
font-size: var(--type-meta);
}
.replay-bar {
position: fixed;
inset-inline: 0;
bottom: var(--space-4);
z-index: 60;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2);
width: max-content;
max-width: calc(100vw - 2 * var(--space-4));
margin-inline: auto;
padding: var(--space-2) var(--space-3);
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-2);
}
.replay-bar-status {
color: var(--muted);
font-size: var(--type-meta);
font-variant-numeric: tabular-nums;
}
.concl-answer.is-replay-landed { animation: replay-landed 2.4s var(--ease-out); }
@keyframes replay-landed {
from { opacity: 0.72; transform: translateY(2px); }
to { opacity: 1; transform: none; }
}
.showcase-hints {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2);
margin-block: var(--space-3);
}
.showcase-hints[hidden] { display: none; }
.showcase-hints-kicker {
margin-inline-end: var(--space-1);
color: var(--muted);
font-size: var(--type-meta);
}
.showcase-ask-controls {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
margin-block: var(--space-2);
color: var(--muted);
font-size: var(--type-meta);
}
.showcase-ask-controls[hidden] { display: none; }
.showcase-ask-controls .bubble.system,
.bubble.system.showcase-ask-status { color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
.replay-fill { animation: none; transform: none; }
.concl-answer.is-replay-landed { animation: none; box-shadow: 0 0 0 3px var(--teal-line); }
}
@media (max-width: 600px) {
.replay-bar {
inset-inline: var(--space-4);
bottom: var(--space-2);
width: auto;
max-width: none;
justify-content: center;
}
}

}

@layer legacy {










.chat-page[data-mode="welcome"] { --chat-col: 1180px; }
.empty-state { box-sizing: border-box; width: 100%; max-width: 1180px; text-align: start; }
.empty-state .welcome-title {
margin: 0 0 var(--space-4);
color: var(--ink);
font-size: var(--type-display);
line-height: 1.08;
letter-spacing: -0.035em;
text-wrap: balance;
}


.welcome-title-plain { display: none; }


.empty-state:is([data-showcases="none"], [data-showcases="loading"]) .welcome-title-examples { display: none; }
.empty-state:is([data-showcases="none"], [data-showcases="loading"]) .welcome-title-plain { display: inline; }


.welcome-showcases[hidden] { display: none; }
.showcase-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
gap: var(--space-3);
}
.showcase-card {
display: flex;
flex-direction: column;
gap: var(--space-2);
min-width: 0;
padding: var(--space-4);
color: var(--ink-2);
font: var(--weight-regular) var(--type-read)/var(--leading) var(--font-ui);
text-align: start;
}
.showcase-question {
display: -webkit-box;
overflow: hidden;
color: var(--ink);
font-size: var(--type-title);
font-weight: var(--weight-strong);
line-height: var(--leading-tight);
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

.showcase-thumb { display: block; width: 100%; height: 64px; }
.showcase-tree { fill: none; stroke: var(--tree-branch); stroke-width: 1; vector-effect: non-scaling-stroke; }
.showcase-bars.is-up { fill: var(--viz-strong); }
.showcase-bars.is-down { fill: var(--slate); }
.showcase-bars.is-flat { fill: var(--viz-weak); }

.showcase-answer {
display: -webkit-box;
overflow: hidden;
overflow-wrap: anywhere;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.showcase-answer-lead { margin-inline-end: var(--space-1); color: var(--teal-ink); font-weight: var(--weight-strong); }
.showcase-meta { color: var(--muted); font-size: var(--type-meta); }


.showcase-card > .showcase-thumb { width: min(100%, 280px); }



.showcase-card.is-draft { border-style: dashed; }
.showcase-badges { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.showcase-badge {
padding: 0 6px;
border: 1px solid var(--amber);
border-radius: var(--r-xs);
color: var(--ink-2);
font-size: var(--type-meta);
font-weight: var(--weight-medium);
}
.showcase-badge.is-running { border-color: var(--teal-line); color: var(--teal-ink); }

.showcase-go { align-self: flex-end; margin-top: auto; color: var(--teal-ink); font-size: var(--type-control); font-weight: var(--weight-medium); }





.welcome-hero {
position: relative;
display: grid;
min-height: clamp(360px, 52vh, 540px);
margin: calc(-1 * var(--space-4)) 0 0;
padding: var(--space-4) 0 var(--space-5);
isolation: isolate;
}
.welcome-hero-text { position: relative; z-index: 1; display: grid; align-content: center; width: min(100%, 560px); }
.welcome-field {
position: absolute;



inset-block: 0;
inset-inline: 46% calc(-1 * var(--space-4));
z-index: 0;
pointer-events: none;

-webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}
.welcome-tree { display: block; width: 100%; height: 100%; overflow: visible; }
.wt-grid { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 2 5; }
.wt-axis-line { stroke: var(--line-strong); stroke-width: 1; }
.wt-tick { stroke: var(--line-strong); stroke-width: 1; }
.wt-tick.is-major { stroke: var(--subtle); }
.wt-interval { fill: var(--teal-soft); opacity: 0.85; }
.wt-drop { stroke: var(--teal); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.7; }
.wt-branch, .wt-stem {
fill: none;
stroke: var(--tree-branch);
stroke-width: 1.4;
stroke-linecap: round;
stroke-linejoin: round;
transition: stroke var(--t-quick, 160ms) ease, opacity var(--t-quick, 160ms) ease;
}
.wt-branch.is-clade { stroke: var(--teal); stroke-width: 2; }
.wt-tip { stroke: var(--surface); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; transition: scale 160ms ease; }
.wt-tip.is-clade { fill: var(--teal); }
.wt-tip.is-place-1 { fill: var(--viz-1); }
.wt-tip.is-place-2 { fill: var(--viz-2); }
.wt-tip.is-traced { scale: 1.6; stroke: var(--ink); stroke-width: 1; }
.wt-root { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2; }
.wt-mrca { fill: var(--teal); stroke: var(--surface); stroke-width: 2; }
.welcome-field-pulse {
position: absolute;

left: calc(var(--x, -99px) - 9px);
top: calc(var(--y, -99px) - 9px);
width: 18px;
height: 18px;
border: 1.5px solid var(--teal);
border-radius: 50%;
opacity: 0;
pointer-events: none;
will-change: transform, opacity;
}
.wt-trace { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 160ms ease; }
.welcome-tree.is-tracing .wt-trace { opacity: 1; }
.welcome-tree.is-tracing :is(.wt-branch, .wt-stem) { opacity: 0.45; }
.welcome-field-mark, .welcome-field-axis {
position: absolute;
color: var(--subtle);
font: var(--weight-medium) var(--type-meta)/1.3 var(--font-mono);
letter-spacing: 0.02em;
white-space: nowrap;
}
.welcome-field-mark { left: var(--x, 0); top: var(--y, 0); translate: -50% 0; opacity: 0; }
.welcome-field-mark.is-clade { color: var(--teal-ink); }
.welcome-field-mark.is-root { translate: 0 0; }
.welcome-field-axis { bottom: var(--space-2); }
.welcome-field-axis.is-past { left: var(--space-8); }
.welcome-field-axis.is-now { right: var(--space-8); }
.welcome-field-axis.is-now::after { content: " →"; }

.welcome-tree-source { position: absolute; inset-inline-end: var(--space-8); bottom: calc(-1 * var(--space-3)); z-index: 1; font-size: var(--type-note); }
.welcome-tree-source[hidden] { display: none; }

@media (max-width: 760px) { .welcome-tree-source { display: none; } }
.welcome-field-axis.is-past::before { content: "← "; }
[dir="rtl"] .welcome-field-axis.is-now::after { content: " ←"; }
[dir="rtl"] .welcome-field-axis.is-past::before { content: "→ "; }
.wt-reveal-rect { transform-box: fill-box; transform-origin: left center; }
[dir="rtl"] .wt-reveal-rect { transform-origin: right center; }
@media (prefers-reduced-motion: no-preference) {

.welcome-tree:not(.is-grown) .wt-reveal-rect { animation: wt-grow 1500ms var(--settle) backwards; }
.welcome-tree:not(.is-grown) .wt-tip { opacity: 0; animation: wt-tip 320ms ease-out forwards; animation-delay: var(--at, 0ms); }
.welcome-tree:not(.is-grown) :is(.wt-interval, .wt-drop, .wt-mrca) { opacity: 0; animation: wt-tip 400ms ease-out 1500ms forwards; }



.welcome-field-pulse { animation: wt-pulse 2.8s ease-out 1900ms 3; }
.welcome-field-mark { animation: wt-tip 400ms ease-out 1700ms forwards; }
}
@media (prefers-reduced-motion: reduce) {
.welcome-field-mark { opacity: 1; }
}
@keyframes wt-grow { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes wt-tip { from { opacity: 0; } to { opacity: 1; } }
@keyframes wt-pulse { 0% { opacity: 0.7; transform: scale(0.6); } 80%, 100% { opacity: 0; transform: scale(2.4); } }

.empty-state .welcome-kicker {
display: flex;
align-items: center;
gap: var(--space-2);
margin: 0 0 var(--space-3);
color: var(--teal-ink);
font: var(--weight-strong) var(--type-meta)/1.4 var(--font-mono);
letter-spacing: 0.08em;
text-transform: uppercase;
}
.empty-state .welcome-kicker::before { content: ""; flex: none; width: 22px; height: 2px; border-radius: 2px; background: var(--teal); }
.empty-state .welcome-lede { max-width: 34em; margin: 0 0 var(--space-5); color: var(--muted); font-size: var(--type-heading); line-height: var(--leading); text-wrap: pretty; }


@media (min-width: 761px) and (max-height: 900px) {
.welcome-hero { min-height: 0; padding-block: var(--space-2); }
.empty-state .welcome-kicker { margin-bottom: var(--space-2); }
.empty-state .welcome-lede { margin-bottom: var(--space-3); font-size: var(--type-read); }
.chat-page[data-mode="welcome"] .empty-state .explainer-offer { margin-bottom: var(--space-2); }

.empty-state .welcome-start > .welcome-section-head { display: none; }
.welcome-grid .picker-card { padding: var(--space-3) var(--space-4); }
}
.welcome-own { display: grid; gap: var(--space-3); }
.welcome-say { display: block; min-width: 0; }
.welcome-say .composer {
width: 100%;
margin: 0;
border: 1px solid var(--line-strong);
border-radius: var(--r-l);
box-shadow: var(--shadow-3);
}
.welcome-say .composer:focus-within { border-color: var(--teal); box-shadow: var(--shadow-3), var(--focus-ring); }
.welcome-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--space-2); }
.welcome-action {
display: inline-flex;
align-items: center;
gap: var(--space-1);
min-height: 34px;
padding: 0 var(--space-4);
border: 1px solid var(--line);
border-radius: 999px;
background: var(--surface);
color: var(--ink-2);
font-size: var(--type-control);
cursor: pointer;
}
.welcome-upload svg { flex: none; color: var(--teal); }
.empty-state .welcome-promise {
display: flex;
align-items: center;
gap: var(--space-2);
margin: var(--space-1) 0 0;
color: var(--subtle);
font-size: var(--type-note);
}
.empty-state .welcome-promise::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-wash); }
.welcome-status { display: block; color: var(--amber-ink); font-size: var(--type-note); }
.welcome-status[hidden] { display: none; }


.empty-state .welcome-section-head {
display: flex;
align-items: baseline;
gap: var(--space-3);
margin: 0;
padding-top: var(--space-3);
border-top: 1px solid var(--line);
color: var(--ink-2);
font: var(--weight-strong) var(--type-meta)/1.4 var(--font-mono);
letter-spacing: 0.08em;
text-transform: uppercase;
}

.welcome-start { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.welcome-start[hidden] { display: none; }
.welcome-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.welcome-tabs [role="tab"] {
padding: var(--space-2) var(--space-4);
border: 1px solid transparent;
border-radius: var(--r-pill);
background: none;
color: var(--muted);
font-size: var(--type-control);
font-weight: var(--weight-strong);
cursor: pointer;
}
.welcome-tabs [role="tab"][aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }

.welcome-tabbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-4); }
.welcome-tabbar .library-link { display: inline-flex; align-items: center; min-height: 40px; margin-inline-start: auto; font-size: var(--type-note); }
.empty-state .welcome-start-hint { flex: 1 1 22rem; min-width: 0; margin: 0; color: var(--muted); font-size: var(--type-note); }
.welcome-panel[hidden], .welcome-grid[hidden], .welcome-atoms[hidden] { display: none; }
.welcome-start .welcome-questions { margin: 0; }
.welcome-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.welcome-grid .picker-card { display: grid; align-content: start; gap: var(--space-1); min-width: 0; padding: var(--space-4); text-align: start; color: var(--ink-2); font-size: var(--type-note); }
.welcome-grid .picker-card-detail { font-size: var(--type-note); }
.welcome-grid .picker-card-title { color: var(--ink); font-size: var(--type-heading); }
.welcome-grid .picker-needs { color: var(--teal-ink); font-weight: var(--weight-strong); }
.welcome-grid .picker-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.welcome-grid .picker-tag { padding: 0 var(--space-2); border-radius: 999px; background: var(--teal-wash); color: var(--teal-ink); font-size: var(--type-meta); }







.welcome-atoms { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; grid-template-areas: "legend legend" "stages tray"; gap: var(--space-4) var(--space-5); align-items: start; }
.welcome-atoms > .atoms-legend { grid-area: legend; }
.welcome-atoms > .atoms-stages { grid-area: stages; }
.welcome-atoms > .atoms-tray { grid-area: tray; }
.empty-state .atoms-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin: 0; color: var(--muted); font-size: var(--type-meta); }
.atoms-legend-item { display: inline-flex; align-items: center; gap: var(--space-1); }
.atoms-legend-item::before { content: ""; width: 14px; height: 10px; border: 1px solid var(--teal); border-radius: var(--r-2xs); }
.atoms-legend-item[data-status="partial"]::before { border-style: dashed; }
.atoms-legend-item[data-status="no"]::before { border-color: transparent; background: var(--line-soft); }
.atoms-legend-item[data-status="picked"]::before { border-color: var(--teal); background: var(--teal); }
.atoms-legend-item[data-status="auto"]::before { border-color: var(--amber); background: var(--amber-wash); }
.atoms-legend-item[data-status="needed"]::before { border-color: var(--teal); background: var(--teal-wash); }
.atoms-legend-item[data-status="carried"]::before { border-color: var(--teal-line); background: var(--teal-wash); }
.atoms-legend-item[data-status="off"]::before { border-color: var(--line); background: var(--surface); }
.atoms-legend-share { margin-inline-start: auto; font-family: var(--font-mono); }
.atoms-stages { display: grid; border-top: 1px solid var(--line); }
.atoms-stage { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-3); align-items: baseline; padding-block: var(--space-2); border-bottom: 1px solid var(--line-soft); }
.atoms-stage-name { color: var(--ink-2); font: var(--weight-strong) var(--type-meta)/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.atoms-chips { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.atom-chip {
display: inline-flex;
align-items: baseline;
gap: var(--space-2);
min-height: 32px;
padding: var(--space-1) var(--space-3);
border: 1px solid var(--teal-line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--ink);
font-size: var(--type-note);
text-align: start;
cursor: pointer;
}
.atom-chip.is-check { border-color: var(--amber-line); }
.atom-chip[data-status="partial"] { border-style: dashed; }

.atom-chip:disabled { border-color: transparent; background: none; color: var(--subtle); cursor: default; }
.atom-chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: var(--surface); }
.atom-chip.is-auto { border-color: var(--amber); background: var(--amber-wash); color: var(--amber-ink); }
.atom-chip.is-carried { background: var(--teal-wash); color: var(--teal-ink); }

.atom-chip.is-needed { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-ink); }

.atom-chip.is-off { border-color: var(--line-soft); background: var(--surface-2, transparent); }
.atom-chip.is-off .atom-chip-title { color: var(--muted); text-decoration: line-through 1.5px; text-decoration-color: var(--muted); }
.atom-chip-share { color: var(--muted); font: var(--weight-medium) var(--type-meta)/1 var(--font-mono); }
.atom-chip[aria-pressed="true"] .atom-chip-share { color: var(--teal-wash); }
.atom-chip:disabled .atom-chip-share { color: var(--faint); }
.atoms-tray {
position: sticky;
inset-block-start: var(--space-4);
display: grid;
gap: var(--space-1);
padding: var(--space-4);
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-2);
}
.empty-state :is(.atoms-tray-empty, .atoms-tray-base) { margin: 0; color: var(--muted); font-size: var(--type-note); }
.empty-state .atoms-tray-error { margin: 0; color: var(--red-ink); font-size: var(--type-note); }
.empty-state .atoms-tray-line { display: grid; gap: 0; margin: 0; font-size: var(--type-note); color: var(--ink); }
.atoms-tray-line b { color: var(--ink-2); font-weight: var(--weight-strong); }
.atoms-tray-line small { color: var(--muted); font-size: var(--type-meta); }
.atoms-tray-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-1); }






.welcome-method { margin-top: var(--space-10); }
.empty-state .welcome-method .welcome-tier-title {
max-width: 22em;
margin: 0 0 var(--space-2);
color: var(--ink);
font-size: var(--type-headline);
font-weight: var(--weight-strong);
line-height: var(--leading-tight);
letter-spacing: -0.02em;
}
.empty-state .welcome-method .method-lede { max-width: 56em; margin: 0 0 var(--space-5); color: var(--ink-2); font-size: var(--type-read); }
.method-map {
--method-gap: var(--space-3);
--method-agent: minmax(14rem, 17rem);
display: grid;
grid-template-columns: var(--method-agent) minmax(0, 1fr);
grid-template-areas: "agent steps" "agent loop";
column-gap: calc(var(--method-gap) * 2 + 4px);
row-gap: 0;
}
.method-agent {
grid-area: agent;
position: relative;
display: flex;
flex-direction: column;
gap: var(--space-2);
min-width: 0;
padding: var(--space-4);
border: 1px solid var(--teal-line);
border-radius: var(--r-m);
background: color-mix(in srgb, var(--teal-wash) 55%, var(--surface));
}

.method-agent::after {
content: "";
position: absolute;
top: 66px;
inset-inline-start: calc(100% + 1px);
width: calc(var(--method-gap) * 2 + 2px);
height: 2px;
background: var(--teal);
}
.method-agent::before {
content: "";
position: absolute;
top: 62px;
inset-inline-start: calc(100% + var(--method-gap) * 2 - 4px);
border-block: 5px solid transparent;
border-inline-start: 7px solid var(--teal);
}
.empty-state .welcome-method .method-from { margin: 0; color: var(--teal-ink); font: var(--weight-strong) var(--type-meta)/1.4 var(--font-ui); letter-spacing: 0.04em; }
.method-agent-name { display: flex; align-items: center; gap: var(--space-2); color: var(--ink); font-size: var(--type-title); line-height: var(--leading-tight); }
.method-agent-mark { flex: none; width: 20px; height: 20px; }
.method-agent-mark circle { fill: var(--teal); }
.method-agent-mark path { fill: none; stroke: var(--surface); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.method-agent-says { color: var(--ink-2); font-size: var(--type-note); }
.method-picks { display: grid; gap: var(--space-2); margin: var(--space-1) 0 0; padding: 0; list-style: none; }
.method-picks li { display: grid; gap: 4px; min-width: 0; padding: var(--space-2) var(--space-3); border-radius: var(--r-s); background: var(--surface); }
.method-ask { color: var(--ink); font-size: var(--type-note); font-weight: var(--weight-strong); }
.method-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.method-chip { padding: 1px var(--space-2); border: 1px solid var(--teal-line); border-radius: var(--r-pill); color: var(--teal-ink); font-size: var(--type-meta); line-height: 1.5; }
.method-steps { grid-area: steps; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--method-gap); margin: 0; padding: 0; list-style: none; }
.method-steps li { position: relative; display: grid; min-width: 0; }
.method-step {
display: grid;
grid-template-rows: auto auto auto 1fr auto;
align-content: start;
gap: var(--space-1);
width: 100%;
min-width: 0;
padding: var(--space-4);
color: var(--ink-2);
font: var(--weight-regular) var(--type-note)/var(--leading) var(--font-ui);
text-align: start;
}
.method-step:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.method-steps li:not(:last-child)::after {
content: "";
position: absolute;
top: 66px;
inset-inline-end: calc(-1 * var(--method-gap) - 1px);
z-index: 1;
width: calc(var(--method-gap) + 2px);
height: 2px;
background: var(--teal-soft);
}
.method-figure { display: block; width: 100%; height: 64px; margin: var(--space-1) 0 var(--space-2); overflow: visible; }
.method-figure .m-dot { fill: var(--surface); stroke: var(--teal-soft); stroke-width: 2; }
.method-figure .m-dot.is-on { fill: var(--teal); stroke: var(--teal); }
.method-figure .m-line { fill: none; stroke: var(--teal-soft); stroke-width: 2; stroke-linecap: round; }
.method-figure .m-link { fill: var(--teal-wash); stroke: var(--teal); stroke-width: 2; }
.method-figure .m-link.is-weak { fill: var(--amber-wash); stroke: var(--amber); stroke-dasharray: 4 3; }
.method-figure .m-node { fill: var(--teal); stroke: var(--teal-wash); stroke-width: 5; }
.method-figure .m-card { fill: var(--surface); stroke: var(--teal); stroke-width: 2; }
.method-figure .m-card.is-mid { stroke: var(--teal-soft); }
.method-figure .m-card.is-back { stroke: var(--teal-line); }
.method-step b { color: var(--ink); font-size: var(--type-heading); line-height: var(--leading-tight); }
.method-says { color: var(--muted); text-wrap: pretty; }
.method-go { margin-top: var(--space-1); color: var(--teal-ink); font-size: var(--type-meta); font-weight: var(--weight-strong); }
.method-go::after { content: " →"; }
:dir(rtl) .method-go::after { content: " ←"; }


.method-loop {
grid-area: loop;
position: relative;
display: grid;

align-content: center;
gap: var(--space-2);
margin-top: var(--space-6);
padding: var(--space-3) var(--space-4);
border: 1px dashed var(--amber-line);
border-radius: var(--r-m);
background: color-mix(in srgb, var(--amber-wash) 45%, var(--surface));
}
.method-loop::before {
content: "";
position: absolute;
top: calc(-1 * var(--space-6));
inset-inline-start: calc(-2 * var(--method-gap) - 4px);
inset-inline-end: calc((100% - 3 * var(--method-gap)) / 8 * 3 + var(--method-gap));
height: calc(var(--space-6) / 2);
border-bottom: 2px dashed var(--amber);
border-inline-end: 2px dashed var(--amber);
border-end-end-radius: var(--r-s);
}

.method-loop-tick {
position: absolute;
top: calc(-1 * var(--space-6));
width: 0;
height: calc(var(--space-6) / 2);
border-inline-start: 2px dashed var(--amber);
}
.method-loop-tick.is-0 { inset-inline-start: calc((100% - 3 * var(--method-gap)) / 8 - 1px); }
.method-loop-tick.is-1 { inset-inline-start: calc((100% - 3 * var(--method-gap)) / 8 * 3 + var(--method-gap) - 1px); }
.method-loop-head {
position: absolute;
top: calc(-1 * var(--space-6) / 2 - 5px);
inset-inline-start: calc(-2 * var(--method-gap) - 6px);
border-block: 6px solid transparent;
border-inline-end: 8px solid var(--amber);
}
.empty-state .welcome-method .method-loop-title { display: flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--ink); font-size: var(--type-heading); }
.method-loop-mark { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--amber-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:dir(rtl) .method-loop-mark { scale: -1 1; }
.empty-state .welcome-method .method-loop-says { margin: 0; color: var(--ink-2); font-size: var(--type-note); }
.method-moves { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.method-moves li { padding: 2px var(--space-3); border: 1px solid var(--amber-line); border-radius: var(--r-pill); background: var(--surface); color: var(--amber-ink); font-size: var(--type-note); font-weight: var(--weight-strong); }

.method-more { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-3); margin-top: var(--space-3); }
.method-atom, .method-human { min-width: 0; margin: 0; padding: var(--space-4); border: 1px solid var(--line-soft); border-radius: var(--r-m); background: var(--surface); }
.method-atom figcaption { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); color: var(--ink); font-size: var(--type-heading); font-weight: var(--weight-strong); }
.method-atom-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-wash); }

.method-atom dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; margin: 0; }
.method-atom dl > div { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: var(--space-4); padding: var(--space-2) 0; border-top: 1px solid var(--line-soft); }
.method-atom dt { color: var(--teal-ink); font-size: var(--type-note); font-weight: var(--weight-strong); }
.method-atom dd { margin: 0; color: var(--ink-2); font-size: var(--type-note); }
.method-human { display: grid; align-content: start; gap: var(--space-2); }
.method-human b { color: var(--ink); font-size: var(--type-heading); }
.method-human ul { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.method-human li { position: relative; display: grid; gap: 2px; padding-inline-start: 1.4em; color: var(--ink-2); font-size: var(--type-note); }
.method-human li span { color: var(--ink); font-weight: var(--weight-medium); }
.method-human li small { color: var(--muted); font-size: var(--type-meta); }

.method-human li::before { content: ""; position: absolute; top: 0.45em; inset-inline-start: 0.1em; width: 0.7em; height: 0.4em; border-bottom: 2px solid var(--teal); border-left: 2px solid var(--teal); rotate: -45deg; }
@media (prefers-reduced-motion: no-preference) {
.welcome-method:not(.is-seen) .method-figure > * { opacity: 0; translate: 0 6px; }
.welcome-method .method-figure > * { transition: opacity 420ms ease-out, translate 520ms var(--settle); }
.welcome-method .method-steps li:nth-child(2) .method-figure > * { transition-delay: 140ms; }
.welcome-method .method-steps li:nth-child(3) .method-figure > * { transition-delay: 280ms; }
.welcome-method .method-steps li:nth-child(4) .method-figure > * { transition-delay: 420ms; }
.welcome-method.is-seen .m-link.is-weak { animation: m-weak 2.4s ease-in-out 1s infinite; }

.welcome-method.is-seen .method-loop::before,
.welcome-method.is-seen :is(.method-loop-tick, .method-loop-head) { animation: m-weak 1.6s ease-in-out 1.2s 3; }
}
@keyframes m-weak { 50% { opacity: 0.45; } }

@media (max-width: 1000px) {
.method-map { grid-template-columns: minmax(0, 1fr); grid-template-areas: "agent" "steps" "loop"; row-gap: var(--space-3); }
.method-agent { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-4); align-items: start; }
.method-agent > :not(.method-picks) { grid-column: 1; }
.method-picks { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.method-agent::after { top: 100%; inset-inline-start: calc((100% - 3 * var(--method-gap)) / 8); width: 2px; height: calc(var(--space-3) + 2px); }
.method-agent::before { display: none; }
.method-loop { margin-top: 0; }
.method-loop::before, .method-loop-tick, .method-loop-head { display: none; }
}
.empty-state .welcome-showcases { margin-top: var(--space-6); }

@media (max-width: 1100px) {
.welcome-field { inset-inline-start: 40%; opacity: 0.55; }
.welcome-field-mark.is-root { display: none; }
}
@media (max-width: 760px) {
.welcome-grid, .method-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.method-agent, .method-more { grid-template-columns: minmax(0, 1fr); }
.method-picks { grid-column: 1; grid-row: auto; }
.welcome-atoms { grid-template-columns: minmax(0, 1fr); grid-template-areas: "legend" "stages" "tray"; }
.atoms-tray { position: static; }
.method-steps li:nth-child(2)::after, .method-agent::after { display: none; }

.welcome-hero { min-height: 0; margin-top: 0; padding-top: 168px; }
.welcome-field {
inset: 0 calc(-1 * var(--space-2)) auto;
height: 170px;
opacity: 1;
-webkit-mask-image: linear-gradient(180deg, black 60%, transparent 100%);
mask-image: linear-gradient(180deg, black 60%, transparent 100%);
}


.welcome-field-axis, .welcome-field-mark.is-root, .welcome-field-mark.is-clade { display: none; }
.empty-state .welcome-lede { font-size: var(--type-read); }
}
@media (max-width: 480px) {
.welcome-grid, .method-steps { grid-template-columns: minmax(0, 1fr); }

.method-step { grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: none; column-gap: var(--space-3); padding: var(--space-3) var(--space-4); }
.method-step > .method-figure { grid-column: 1; grid-row: 1 / span 4; align-self: center; height: 40px; margin: 0; }
.method-step > :not(.method-figure) { grid-column: 2; }
.atoms-stage { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.method-steps li::after { display: none; }


.welcome-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
.welcome-tabs [role="tab"] { padding: var(--space-2) var(--space-1); line-height: 1.25; text-align: center; }
.welcome-tabs [role="tab"]::after { display: block; margin: 2px 0 0; }
}



.empty-state .welcome-more {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2);
margin: var(--space-5) 0 0;
color: var(--muted);
font-size: var(--type-control);
}
.welcome-more .link { display: inline-flex; align-items: center; min-height: 40px; font-size: var(--type-control); }


.empty-state .welcome-recent { margin: var(--space-6) 0 0; }






.welcome-questions { margin: 0 0 var(--space-4); }
.welcome-questions[hidden] { display: none; }
.question-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
gap: var(--space-3);
}
.question-card { min-width: 0; overflow: hidden; }
.question-card-open {
display: flex;
align-items: flex-start;
gap: var(--space-3);
width: 100%;
padding: var(--space-3) var(--space-4);
border: 0;
background: none;
color: var(--ink-2);
font: var(--weight-regular) var(--type-read)/var(--leading) var(--font-ui);
text-align: start;
}
.question-card-glyph { flex: none; margin-top: 2px; color: var(--muted); }
.question-card-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.question-card-title { color: var(--ink); font-size: var(--type-title); font-weight: var(--weight-strong); line-height: var(--leading-tight); }
.question-card-ask { color: var(--ink-2); }
.question-card-fast, .question-card-time { color: var(--muted); font-size: var(--type-meta); }




.welcome-questions .question-cards {
grid-template-columns: repeat(3, minmax(0, 1fr));


grid-auto-flow: row dense;
gap: 0;
counter-reset: question;
}


@media (min-width: 1200px) { .welcome-questions .question-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .welcome-questions .question-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .welcome-questions .question-cards { grid-template-columns: minmax(0, 1fr); } }
.welcome-questions .question-card { position: relative; counter-increment: question; }

.welcome-questions .question-card.is-compose { counter-increment: none; }
.welcome-questions .question-card.is-compose > .question-card-open::before { content: "L0 →"; }
.welcome-questions .question-card.is-compose .question-card-fast { color: var(--ink-2); }
.question-card-time-label { margin-inline-end: 0.5em; color: var(--muted); font-weight: var(--weight-strong); }
.welcome-questions .question-card.is-open {
grid-column: 1 / -1;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
.welcome-questions .question-card.is-open > .question-card-open { align-content: start; }
.welcome-questions .question-card.is-open > .question-card-body {
padding: var(--space-5);
border-top: 0;
border-inline-start: 1px solid var(--line-soft);
}
.welcome-questions .question-card.is-open > .question-card-body > :first-child { margin-top: 0; }
.welcome-questions .question-card.is-open .question-card-answer { font-size: var(--type-heading); line-height: var(--leading); }
@media (max-width: 900px) {
.welcome-questions .question-card.is-open { grid-template-columns: minmax(0, 1fr); }
.welcome-questions .question-card.is-open > .question-card-open { align-content: start; }
.welcome-questions .question-card.is-open > .question-card-body { border-inline-start: 0; border-top: 1px solid var(--line-soft); }
}
.welcome-questions .question-card-open {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: start;
gap: var(--space-1) var(--space-4);
align-self: stretch;
padding: var(--space-4) var(--space-5) var(--space-5);
}
.welcome-questions .question-card-open::before {
content: counter(question, decimal-leading-zero);
grid-row: 1;
grid-column: 1;
color: var(--teal);
font: var(--weight-strong) var(--type-meta)/1.4 var(--font-mono);
letter-spacing: 0.08em;
}
.welcome-questions .question-card-glyph { grid-row: 1 / span 2; grid-column: 2; margin: 0; color: var(--teal); }
.welcome-questions .question-card-glyph svg { width: 40px; height: 40px; }
.welcome-questions .question-card-words { grid-row: 2; grid-column: 1 / -1; gap: var(--space-1); }
.welcome-questions .question-card-title { font-size: var(--type-heading); letter-spacing: -0.01em; }
.welcome-questions .question-card-ask { margin-bottom: var(--space-2); color: var(--ink-2); font-size: var(--type-title); }
.welcome-questions .question-card-fast { position: relative; padding-inline-start: var(--space-3); color: var(--teal-ink); font-size: var(--type-note); }
.welcome-questions .question-card-fast::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.4em; bottom: 0.4em; width: 2px; border-radius: 2px; background: var(--teal); }
.welcome-questions .question-card-time { margin-top: var(--space-1); color: var(--subtle); font-family: var(--font-mono); letter-spacing: 0.01em; }
.question-card-body {
padding: 0 var(--space-4) var(--space-4);
border-top: 1px solid var(--line-soft);
}
.question-card-body[hidden] { display: none; }
.question-card-pick { margin-top: var(--space-3); }
.question-card-demo-from { margin: var(--space-3) 0 0; color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-strong); }
.question-card-note, .question-card-status, .question-card-progress { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--type-note); }
.question-card-status[hidden] { display: none; }
.question-card-upgrade { margin-top: var(--space-3); display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--space-2); }
.question-card-upgrade-option { flex: 1 1 200px; min-width: 0; }
.question-card-upgrade-option .question-card-upgrade-go { width: 100%; }
.question-card-upgrade-explain { margin-top: var(--space-1); }
.question-card-upgrade-status { flex-basis: 100%; }
.question-card-upgrade-go { font-size: var(--type-control); }
.question-card-answer { margin: var(--space-3) 0 0; color: var(--ink); }
.question-card-kicker {
margin-inline-end: var(--space-2);
color: var(--teal-ink);
font-size: var(--type-meta);
font-weight: var(--weight-strong);
letter-spacing: 0.06em;
}
.question-card-level { margin-inline-end: var(--space-2); font-size: var(--type-meta); font-weight: var(--weight-medium); }
.question-card-level.is-level-strong { color: var(--teal-ink); }
.question-card-level.is-level-moderate { color: var(--amber-ink); }
.question-card-level.is-level-weak { color: var(--red-ink); }
.question-card-chain-name { margin: var(--space-3) 0 var(--space-1); color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-strong); letter-spacing: 0.06em; }


.chain-diagram {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
margin: var(--space-2) 0 0;
padding: 0;
list-style: none;
}
.chain-link {
display: flex;
flex-direction: column;
gap: 1px;
min-width: 0;
max-width: 100%;
padding: var(--space-1) var(--space-2);
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface-2, var(--surface));
font-size: var(--type-meta);
}
.chain-link > span { min-width: 0; overflow-wrap: anywhere; }
.chain-link-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
.chain-link-files { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); }
.chain-link-file {
padding: 2px 0;
border: 0;
background: none;
color: var(--teal-deep);
font: var(--weight-medium) var(--type-meta)/1.3 var(--font-ui);
cursor: pointer;
}
.chain-link-file:hover { text-decoration: underline; text-underline-offset: 3px; }
body:not(.is-expert) .chain-link-files { display: none; }
.chain-link-name { color: var(--ink); font-weight: var(--weight-medium); }
.chain-link-kind, .chain-link-tier { color: var(--muted); }
.chain-link-tier { color: var(--teal-ink); font-weight: var(--weight-strong); }
.chain-link-level { color: var(--muted); }
.chain-link.is-level-strong { border-color: var(--teal-line); }
.chain-link.is-level-strong .chain-link-level { color: var(--teal-ink); }
.chain-link.is-level-moderate .chain-link-level { color: var(--amber-ink); }
.chain-link.is-level-weak .chain-link-level { color: var(--red-ink); }
.chain-link.is-empty { border-style: dashed; background: none; }
.chain-link.is-empty .chain-link-name { color: var(--muted); }
.chain-link-empty, .chain-link-via, .chain-link-upstream { color: var(--muted); }
.chain-link.is-sensitivity-capped { border-color: var(--amber-line); }
.chain-link-sensitivity { color: var(--amber-ink); }
.chain-link-disagree { color: var(--amber-ink); }
.chain-link-failed { color: var(--amber-ink); }
.chain-link-retry-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.chain-link-retry {
display: inline-flex;
align-items: center;
min-height: 24px;
padding: 0 var(--space-2);
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--ink-2);
font: var(--weight-medium) var(--type-meta)/1.2 var(--font-ui);
cursor: pointer;
}
.chain-link-retry:disabled { cursor: not-allowed; color: var(--muted); }
.chain-link-retry-error { color: var(--red-ink); }
.question-card-evidence { margin-top: var(--space-3); }
.question-card-evidence > summary {
width: fit-content;
color: var(--muted);
font-size: var(--type-control);
}
.question-card-evidence-body { margin-top: var(--space-2); }
.question-card-detail { margin-top: var(--space-2); }
.question-card-detail-name { margin: 0; color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-strong); letter-spacing: 0.06em; }
.question-card-detail-list { margin: 2px 0 0; padding-inline-start: var(--space-4); color: var(--ink-2); font-size: var(--type-note); }
.question-card-detail-list > li { margin-top: 2px; }







.empty-state :is(.welcome-title, .showcase-card, .welcome-own, .welcome-start, .welcome-method, .welcome-more, .welcome-recent) {
animation: arrive-small 180ms var(--settle) backwards;
animation-delay: var(--enter, 0ms);
}
.empty-state .welcome-own { --enter: 80ms; }
.empty-state .welcome-kicker { animation: arrive-small 180ms var(--settle) backwards; }
.empty-state .welcome-start { --enter: 160ms; }
.empty-state .welcome-method { --enter: 220ms; }
.empty-state .welcome-recent { --enter: 120ms; }
.empty-state .welcome-more { --enter: 420ms; }
@media (prefers-reduced-motion: no-preference) {
.empty-state.is-holding :is(.welcome-title, .showcase-card, .welcome-own, .welcome-start, .welcome-method, .welcome-more, .welcome-recent) {
animation-play-state: paused;
}
}



.showcase-strip {
box-sizing: border-box;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-1) var(--space-2);
margin: 0 max(var(--page-gutter), calc((100% - var(--page-measure)) / 2)) var(--space-4);
padding: var(--space-2) var(--space-3);
border: 1px solid var(--teal-line);
border-radius: var(--r-m);
background: var(--teal-wash);
color: var(--ink-2);
font-size: var(--type-control);
}
.showcase-strip[hidden] { display: none; }
.showcase-strip-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-1) var(--space-2);
margin: 0;
padding: 0;
list-style: none;
}
.showcase-strip-actions > li[hidden] { display: none; }

.showcase-strip-actions::before,
.showcase-strip-actions > li:not([hidden]) ~ li:not([hidden])::before {
content: "·";
margin-inline-end: var(--space-2);
color: var(--muted);
}


@media (max-width: 600px) {
.showcase-strip-actions { flex-basis: 100%; column-gap: var(--space-4); }
.showcase-strip-actions::before,
.showcase-strip-actions > li:not([hidden]) ~ li:not([hidden])::before { content: none; }
}
.showcase-strip .is-onward { font-weight: var(--weight-strong); }
.showcase-strip .is-onward::after { content: " ▸"; }
[dir="rtl"] .showcase-strip .is-onward::after { content: " ◂"; }
.showcase-strip-hint { flex-basis: 100%; margin: 0; color: var(--muted); font-size: var(--type-meta); }
.showcase-strip-hint[hidden] { display: none; }

.showcase-strip-error { flex-basis: 100%; margin: 0; color: var(--red-ink); }
.showcase-strip-error[hidden] { display: none; }


.welcome-guide {
box-sizing: border-box;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2) var(--space-3);
margin: 0 max(var(--page-gutter), calc((100% - var(--page-measure)) / 2)) var(--space-3);
padding: var(--space-2) var(--space-3);
border: 1px solid var(--teal-line);
border-radius: var(--r-m);
background: var(--teal-wash);
color: var(--teal-ink);
font-size: var(--type-control);
}

.empty-state .welcome-guide {
flex-wrap: nowrap;
gap: var(--space-2);
width: fit-content;
max-width: 100%;
margin: 0 0 var(--space-4);
padding-block: var(--space-1);
padding-inline: var(--space-4) var(--space-1);
border-radius: var(--r-pill);
font-size: var(--type-note);
}
.empty-state .welcome-guide .welcome-guide-text { flex: 0 1 auto; color: inherit; }
.empty-state .welcome-guide .welcome-guide-actions { flex: none; flex-wrap: nowrap; }
.empty-state .welcome-guide :is(.btn-secondary, .btn-quiet) { min-height: 28px; padding: 0 var(--space-3); font-size: var(--type-note); }
.welcome-guide[hidden] { display: none; }
.welcome-guide-step { flex: none; font-weight: var(--weight-strong); font-variant-numeric: tabular-nums; }
.welcome-guide-text { flex: 1 1 24em; min-width: 0; margin: 0; color: var(--ink-2); }
.welcome-guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.welcome-guide-actions :is(.btn-primary, .btn-secondary, .btn-quiet) { min-height: 32px; }
@media (max-width: 560px) {
.empty-state .welcome-guide { flex-wrap: wrap; padding: var(--space-2) var(--space-3); border-radius: var(--r-m); }
.empty-state .welcome-hero-text > .welcome-guide { order: 1; margin: var(--space-3) 0 0; }
}

.is-guided { outline: 2px solid var(--teal-line); outline-offset: 4px; transition: outline-color 250ms ease-out; }
@media (prefers-reduced-motion: reduce) {
.is-guided { transition: none; }
}
}

@layer legacy {






.gallery-page { position: relative; gap: var(--space-3); }
.gallery-page > :not(.sr-only) { flex: none; width: 100%; max-width: 1180px; margin-inline: auto; }
.gallery-head .page-title { margin-bottom: var(--space-1); }
.gallery-lede { max-width: 46em; margin: 0; color: var(--ink-2); font-size: var(--type-read); line-height: var(--leading); }
.gallery-status { margin-block: 0; color: var(--muted); font-size: var(--type-note); }
.gallery-status:empty { display: none; }

.gallery-reps {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
gap: var(--space-3);
margin-block: 0;
padding: 0;
list-style: none;
}
.gallery-rep {
display: flex;
flex-direction: column;
gap: var(--space-2);
min-width: 0;
padding: var(--space-4);
color: var(--ink-2);
font-size: var(--type-read);
line-height: var(--leading);
animation: gallery-in 220ms var(--ease-out) var(--enter, 0ms) backwards;
}
@keyframes gallery-in { from { opacity: 0; translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .gallery-rep { animation: none; } }

.gallery-rep.is-full { box-shadow: inset 3px 0 0 var(--teal), var(--shadow-1); }
@media (min-width: 900px) { .gallery-rep.is-full { grid-column: span 2; } }
.gallery-rep-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-2); }
.gallery-rep-name { margin: 0; color: var(--ink); font-size: var(--type-title); font-weight: var(--weight-strong); line-height: var(--leading-tight); }
.gallery-rep-badge { padding: 2px 8px; border-radius: var(--r-pill); font-size: var(--type-meta); font-weight: 650; white-space: nowrap; }
.gallery-rep-badge.is-full { background: var(--teal); color: var(--surface); }
.gallery-rep-badge.is-ready { background: var(--teal-wash); color: var(--teal-ink); }
.gallery-rep-badge.is-locked { background: var(--amber-wash); color: var(--amber-ink); }
.gallery-rep-badge.is-mine { background: var(--blue-wash); color: var(--blue-ink); }
.welcome-rep.is-mine { border-color: var(--teal-line); }
.gallery-rep-question { margin: 0; color: var(--ink); font-weight: var(--weight-medium); }
.gallery-rep-answer, .gallery-rep-what, .gallery-rep-finding { margin: 0; }

.gallery-rep-what { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: var(--type-note); -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.gallery-rep-answer b { margin-inline-end: 4px; color: var(--teal-ink); }
.gallery-rep-finding { color: var(--ink); font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; }
.gallery-rep > .showcase-thumb { width: min(100%, 420px); height: 64px; }
.gallery-rep-why { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.gallery-rep-why li { padding: 1px 8px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2); font-size: var(--type-meta); }
.gallery-rep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: auto; padding-top: var(--space-1); }
.gallery-rep-actions :is(.btn-primary, .btn-secondary) { min-height: 36px; padding: 0 14px; }
.gallery-rep-more { margin-inline-start: auto; font-size: var(--type-note); }
.gallery-rep-status { margin: 0; color: var(--muted); font-size: var(--type-note); }
.gallery-rep-status:empty { display: none; }


.welcome-showcases-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); }
.empty-state .welcome-showcases .welcome-tier-title { margin: 0; color: var(--ink); font-size: var(--type-headline); font-weight: var(--weight-strong); line-height: var(--leading-tight); }
.welcome-gallery-link { font-size: var(--type-control); font-weight: var(--weight-medium); }
.welcome-reps {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
gap: var(--space-2);
margin: var(--space-3) 0 0;
padding: 0;
list-style: none;
}
.welcome-reps[hidden] { display: none; }
.welcome-reps > li { display: flex; min-width: 0; }
.welcome-rep {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
grid-template-areas: "mark name go" "what what what";
align-items: baseline;
gap: 2px var(--space-2);
flex: 1;
min-width: 0;
padding: 10px 14px;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface);
color: var(--ink-2);
font: var(--weight-regular) var(--type-note)/1.4 var(--font-ui);
text-align: start;
text-decoration: none;
cursor: pointer;
}
.welcome-rep:hover, .welcome-rep:focus-visible { border-color: var(--teal); background: var(--teal-wash); }
.welcome-rep:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.welcome-rep[aria-busy="true"], .welcome-rep.is-busy { cursor: progress; }
.welcome-rep-name { grid-area: name; overflow: hidden; color: var(--ink); font-size: var(--type-control); text-overflow: ellipsis; white-space: nowrap; }
.welcome-rep-what { grid-area: what; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.welcome-rep > .guest-lock-mark { grid-area: mark; }
.welcome-rep-go { grid-area: go; color: var(--teal-ink); font-weight: var(--weight-medium); white-space: nowrap; }

.library-all-row { display: flex; grid-column: 1 / -1; justify-content: center; padding: var(--space-2) 0; }
.library-all-row .library-all { min-height: 40px; padding: 0 20px; }
.welcome-rep.is-all { display: flex; align-items: center; justify-content: center; color: var(--teal-ink); font-weight: var(--weight-medium); }
}

@layer legacy {




html:not([data-grow~="more_examples"]) #welcome-reps,
html:not([data-grow~="start_tabs"]) #welcome-start,
html:not([data-grow~="method"]) #welcome-method,
html:not([data-grow~="atoms"]) :is(#welcome-tab-atoms, #welcome-atoms, .question-card.is-compose) { display: none !important; }





html:not([data-grow~="expert_offer"]) body:not(.is-expert) :is(.product-header .view-switch, #conclusion-expert) { display: none !important; }


body:not(.is-expert) .tx-changes-row:has(> .tx-changes[hidden])::before { visibility: hidden; }


body:not(.is-expert) :is(.tx-lasso-button, .tx-undo-button, .tx-zen-button, .tx-export-button) { display: none; }


.concl-caveats-more > summary { width: fit-content; color: var(--teal-ink); font-size: var(--type-note); cursor: pointer; }
.concl-caveats-more > summary:hover { color: var(--teal-deep); text-decoration: underline; }
.concl-caveats-more[open] > summary { margin-bottom: 4px; }


.grow-note {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 2px 6px;
margin: var(--space-4) 0 var(--space-2);
padding: 8px 12px;
border-inline-start: 3px solid var(--teal);
border-radius: var(--r-s);
background: var(--teal-wash);
color: var(--ink-2);
font-size: var(--type-note);
line-height: 1.5;
animation: grow-in 260ms var(--ease-out) backwards;
}
.grow-note b { color: var(--teal-ink); }
.grow-note .grow-note-go { min-height: 30px; padding: 0 12px; }
@keyframes grow-in { from { opacity: 0; translate: 0 -4px; } }
@media (prefers-reduced-motion: reduce) { .grow-note { animation: none; } }


.grow-more { margin: var(--space-8) 0 0; color: var(--muted); font-size: var(--type-note); line-height: 1.6; }
.grow-more[hidden] { display: none; }


.grow-panel { width: min(560px, calc(100vw - 32px)); }
.grow-panel h2 { margin: 0 0 var(--space-2); font-size: var(--type-title); }
.grow-panel-lead { margin: 0 0 var(--space-2); color: var(--ink-2); font-size: var(--type-read); line-height: var(--leading); }
.grow-panel-stage { margin: 0 0 var(--space-3); color: var(--teal-ink); font-weight: var(--weight-medium); }
.grow-panel-list { display: grid; gap: 2px; margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.grow-panel-list label {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
grid-template-areas: "box name" "box why";
column-gap: 10px;
align-items: center;
padding: 8px 10px;
border-radius: var(--r-s);
cursor: pointer;
}
.grow-panel-list label:hover { background: var(--surface-2); }
.grow-panel-list input { grid-area: box; width: 18px; height: 18px; accent-color: var(--teal); }
.grow-panel-name { grid-area: name; color: var(--ink); font-weight: var(--weight-medium); }
.grow-panel-why { grid-area: why; color: var(--muted); font-size: var(--type-meta); }

}

@layer legacy {




#welcome-showcases.has-portal #welcome-reps { display: none !important; }
#welcome-showcases.has-portal #welcome-showcase-cards { margin-bottom: var(--space-4); }
.portal-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--space-3); }
.portal-strip:empty, .portal-grid:empty { display: none; }
.portal-chip {
display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
border: 1px solid var(--line-soft); border-radius: var(--r-pill); background: var(--surface);
color: var(--ink-2); font: 600 var(--type-control)/1 var(--font-ui); text-decoration: none; cursor: pointer;
}
.portal-chip:hover { border-color: var(--teal); }
.portal-chip.is-on { border-color: var(--teal); background: var(--teal); color: var(--surface); }
.portal-chip.is-on:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.portal-chip i { font-style: normal; font-size: var(--type-meta); font-weight: 500; opacity: 0.8; }
.portal-chip.is-all { color: var(--teal-ink); }
.portal-find { flex: 0 1 16rem; min-width: 12rem; }
.portal-find input {
width: 100%; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill);
background: var(--surface); color: var(--ink); font: inherit; font-size: var(--type-note);
}
.portal-find input:hover { border-color: var(--teal-line); }
.portal-find input:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
@media (pointer: coarse) { .portal-find input { font-size: max(16px, var(--type-control)); } }
.portal-find-none { align-self: center; color: var(--muted); font-size: var(--type-note); }
.portal-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: var(--space-2); }
.portal-name { margin: 0; color: var(--ink); font-size: var(--type-headline); font-weight: var(--weight-strong); }
.portal-meta { margin: 0; color: var(--muted); font-size: var(--type-note); }
.portal-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--space-3); }
.portal-card {
display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: var(--space-4);
border: 1px solid var(--line-soft); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-1);
}
.portal-card.is-full { grid-column: 1 / -1; box-shadow: inset 3px 0 0 var(--teal), var(--shadow-1); }
.portal-card.is-full .portal-a { font-size: var(--type-read); font-weight: var(--weight-medium); color: var(--ink-2); }
.portal-card:is(.is-rerun, .is-no) { background: var(--surface-2); box-shadow: none; }
.portal-q { margin: 0; color: var(--muted); font-size: var(--type-meta); letter-spacing: 0.04em; }
.portal-a { margin: 0; color: var(--ink); font-size: var(--type-title); font-weight: var(--weight-strong); line-height: var(--leading-tight); }
.portal-card:is(.is-rerun, .is-no) .portal-a { color: var(--ink-2); }
.portal-sub { margin: 0; color: var(--ink-2); font-size: var(--type-note); }
.portal-tag { align-self: flex-start; padding: 1px 8px; border-radius: var(--r-pill); background: var(--teal-wash); color: var(--teal-ink); font-size: var(--type-meta); font-weight: 650; }
.portal-tag.is-full { background: var(--teal); color: var(--surface); }
.portal-tag.is-later { background: var(--blue-wash); color: var(--blue-ink); }
.portal-tag.is-no { background: var(--surface-3); color: var(--muted); }
.portal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.portal-rel.is-strong { background: var(--teal-wash); color: var(--teal-ink); }
.portal-rel.is-moderate { background: var(--amber-wash); color: var(--amber-ink); }
.portal-rel.is-weak { background: var(--red-wash); color: var(--red-ink); }
.portal-acts { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: auto; font-size: var(--type-note); }
.portal-acts .link { font-weight: var(--weight-medium); }
.portal-ask { display: flex; gap: 6px; margin-top: 4px; }
.portal-ask input { flex: 1; min-width: 0; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--type-note); }
.portal-ask input:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.portal-ask .btn-primary { min-height: 36px; padding: 0 14px; }

@media (pointer: coarse) { .portal-ask input { font-size: max(16px, var(--type-control)); } }
.portal-mine {
display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: var(--space-3); padding: 12px 16px;
border: 1.5px dashed var(--teal-line); border-radius: var(--r-m); color: var(--ink-2); font-size: var(--type-note);
}
.portal-mine b { color: var(--ink); font-size: var(--type-read); }
.portal-mine .portal-choose { min-height: 34px; padding: 0 14px; }
.portal-mine-other { flex-basis: 100%; color: var(--muted); font-size: var(--type-meta); }

}





@layer components {

.chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr));gap:var(--space-3)}
.chart-card{margin:0;padding:var(--space-4);border:1px solid var(--line-soft);border-radius:var(--r-s);background:var(--surface);box-shadow:none}
.chart-card figcaption{margin-bottom:var(--space-2);padding-bottom:var(--space-2);border-bottom:1px solid var(--line-soft);color:var(--ink-2);
font:var(--weight-strong) var(--type-title)/1.4 var(--font-ui)}
.chart-card svg{display:block;width:100%;height:auto}
.chart-card .axis{stroke:var(--subtle);stroke-width:1}
.chart-card :is(.bar-label,.bar-value){font:var(--type-meta) var(--font-ui);fill:var(--muted)}.chart-card .bar-value{fill:var(--ink);font-weight:var(--weight-strong)}
@keyframes barGrow{from{transform:scaleY(0);opacity:.3}to{transform:scaleY(1);opacity:1}}
.chart-card svg rect.chart-bar{transform-box:fill-box;transform-origin:center bottom;animation:barGrow .65s cubic-bezier(.22,1,.36,1) both}
.chart-card svg{overflow:visible}
.chart-card .tick{font:var(--type-meta) var(--font-ui);fill:var(--subtle);font-variant-numeric:tabular-nums}
.chart-grid-line{stroke:var(--line-soft);stroke-width:1}
.chart-bar.tone-blue,.tone-blue{fill:var(--blue);background:var(--blue)}
.chart-bar.tone-teal,.tone-teal{fill:var(--teal);background:var(--teal)}
.chart-bar.tone-amber,.tone-amber{fill:var(--amber);background:var(--amber)}
.chart-bar.tone-red,.tone-red{fill:var(--red);background:var(--red)}
.chart-bar.tone-grey,.tone-grey{fill:var(--line-strong);background:var(--line-strong)}
.chart-bar{transition:opacity .16s}.chart-bar:hover{opacity:.78}
.chart-fail-zone{fill:var(--red-wash)}
.chart-threshold{stroke:var(--red);stroke-width:1.5;stroke-dasharray:4 3}
.chart-threshold-label{font:var(--weight-medium) var(--type-meta) var(--font-ui);fill:var(--red-ink)}
.chart-summary{margin:var(--space-2) 0 0;color:var(--muted);font-size:var(--type-read);line-height:var(--leading);font-variant-numeric:tabular-nums}
.chart-summary.is-alert{color:var(--red-ink)}
.chart-empty{margin:var(--space-2) 0 0;color:var(--muted);font-size:var(--type-note)}
.chart-constant-value{margin:var(--space-4) 0 var(--space-1);color:var(--ink);font:var(--weight-strong) var(--type-headline)/1.1 var(--font-ui);font-variant-numeric:tabular-nums}
.stack-bar{display:flex;gap:2px;height:14px;margin:var(--space-3) 0 var(--space-4);overflow:hidden;border-radius:var(--r-pill);background:var(--surface-3)}
.stack-bar span{min-width:4px}
.stack-legend{display:grid;gap:var(--space-2);margin:0;padding:0;list-style:none}
.stack-legend li{display:grid;grid-template-columns:10px 1fr auto 3.2em;align-items:center;gap:var(--space-2);font-size:var(--type-note);color:var(--ink-2)}
.stack-legend li.is-zero{color:var(--subtle)}
.stack-legend i{width:10px;height:10px;border-radius:3px}
.stack-legend b{font-weight:var(--weight-strong);font-variant-numeric:tabular-nums;text-align:end}
.stack-legend small{color:var(--subtle);font-size:var(--type-meta);text-align:end;font-variant-numeric:tabular-nums}
.bar-list{display:grid;gap:var(--space-2);margin:var(--space-3) 0 0;padding:0;list-style:none}
.bar-list li{display:grid;grid-template-columns:minmax(8em,34%) 1fr 3.5em;align-items:center;gap:var(--space-3);font-size:var(--type-note)}
.bar-list-label{overflow:hidden;color:var(--ink-2);text-overflow:ellipsis;white-space:nowrap}
.bar-list-track{height:10px;overflow:hidden;border-radius:var(--r-pill);background:var(--surface-3)}
.bar-list-track i{display:block;height:100%;border-radius:var(--r-pill);transform-origin:left;animation:barGrowX .6s cubic-bezier(.22,1,.36,1) both}
.bar-list b{color:var(--ink);font-weight:var(--weight-strong);text-align:end;font-variant-numeric:tabular-nums}
.chart-wide{grid-column:1/-1}
.lane-line{stroke:var(--line-soft);stroke-width:1}
.lane-hit{fill:transparent}.lane[data-filter-table]{cursor:pointer}.lane[data-filter-table]:hover .lane-hit,.lane.is-on .lane-hit{fill:var(--teal-wash)}
.lane[data-filter-table]:focus-visible{outline:2px solid var(--teal);outline-offset:-2px}
.chart-card .lane-label{font:var(--type-meta) var(--font-ui);fill:var(--ink-2)}
.event-range{stroke-width:2;stroke-linecap:round;opacity:.35}.event-range.tone-blue{stroke:var(--blue)}.event-range.tone-teal{stroke:var(--teal)}.event-range.tone-amber{stroke:var(--amber)}.event-range.tone-red{stroke:var(--red)}.event-range.tone-grey{stroke:var(--line-strong)}
.event-dot{fill-opacity:.75}
.chart-grid>*{min-width:0}
.chart-fit{grid-column:1/-1;max-width:100%}.chart-fit .chart-summary{max-width:60ch}
.flow-scroll{overflow-x:auto;margin-top:var(--space-2)}
.flow-matrix{border-collapse:separate;border-spacing:2px;font-size:var(--type-meta);font-variant-numeric:tabular-nums}
.flow-matrix th{padding:4px 6px;color:var(--muted);font-weight:var(--weight-medium);text-align:right;white-space:nowrap}
.flow-matrix thead th{text-align:center;vertical-align:bottom}
.flow-matrix th.is-focal{color:var(--ink)}
.flow-matrix .flow-corner{color:var(--subtle);font-weight:400;text-align:left}
.flow-matrix td{min-width:2.4em;height:2.1em;padding:0 6px;border-radius:4px;text-align:center;color:var(--ink);background:color-mix(in srgb,var(--teal) calc(var(--share,0)*100%),var(--surface-2))}
.flow-matrix td[style]{font-weight:var(--weight-medium)}.flow-matrix td.is-dark{color:var(--surface)}
.flow-matrix td.is-zero{background:var(--surface-2)}.flow-matrix td.is-self{background:transparent;color:var(--faint)}
.chart-note{margin:var(--space-1) 0 0;color:var(--subtle);font-size:var(--type-meta)}
.chart-dot{stroke:var(--surface);stroke-width:1.5;fill-opacity:.85;transition:fill-opacity .16s}.chart-dot:hover{fill-opacity:1}
.chart-dot.is-point{stroke-width:.6;fill-opacity:.6}
.chart-line{fill:none;stroke-width:2;stroke-linejoin:round}
.chart-line.tone-blue{stroke:var(--blue)}.chart-line.tone-teal{stroke:var(--teal)}.chart-line.tone-amber{stroke:var(--amber)}.chart-line.tone-red{stroke:var(--red)}
.chart-area{stroke:none;fill-opacity:.8}
.chart-hover{fill:transparent}.chart-hover:hover{fill:var(--ink);fill-opacity:.05}
.chart-region{fill:var(--surface-3)}.chart-region.is-masked{fill:var(--line-soft)}
.chart-region.is-suggested{fill:transparent;stroke:var(--subtle);stroke-width:1;stroke-dasharray:3 3}
.chart-card :is(.axis-title,.region-label){font:var(--type-meta) var(--font-ui);fill:var(--muted)}
.chart-card .panel-title{font:var(--weight-medium) var(--type-meta) var(--font-ui);fill:var(--ink-2)}
.chart-legend{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-4);margin:var(--space-2) 0 0;padding:0;list-style:none;color:var(--muted);font-size:var(--type-meta)}
.chart-legend li{display:flex;align-items:center;gap:6px}.chart-legend i{width:10px;height:10px;border-radius:3px}
.bar-list-track.is-stacked{display:flex;gap:2px;background:var(--surface-3)}
.bar-list-track.is-stacked i{flex:none;min-width:3px;border-radius:0}
.bar-list-track.is-stacked i:first-child{border-radius:var(--r-pill) 0 0 var(--r-pill)}
.bar-list-track.is-stacked i:last-child{border-radius:0 var(--r-pill) var(--r-pill) 0}
.bar-list-track.is-stacked i:only-child{border-radius:var(--r-pill)}
[data-pick-query]{cursor:pointer}
@keyframes barGrowX{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){.chart-card svg rect,.bar-list-track i{animation:none}}
}



svg[data-type-fit] text{font-size:calc(var(--type-chart) * var(--chart-k,1))}
svg[data-type-fit] text tspan{font-size:inherit}
svg[data-type-fit] text:is(.panel-title,.bar-value,.chart-strong){font-size:calc(var(--type-chart-strong) * var(--chart-k,1))}
.is-chart-scroll{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}












@layer legacy, components;

@layer components {


:is(.btn-primary, .btn-secondary,
.run-actions button, .decision-choices button, .dialog-actions button, .conclusion-actions button,
.concl-followup button, .concl-related button, .rail-next-step-go, .library-open,
.composer button[type="submit"], .rail-composer button[type="submit"], .session-form-actions button,
.coach-ok, .run-retry, .replay-bar button) {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-2);



flex-shrink: 0;
max-width: 100%;
min-height: 34px;
padding: var(--space-1) var(--space-4);
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink-2);
font: var(--weight-medium) var(--type-control)/1.2 var(--font-ui);
text-align: center;
text-decoration: none;
text-wrap: balance;
cursor: pointer;
transition: translate var(--t-quick) var(--ease-out), scale var(--t-press) var(--ease-out),
background-color var(--t-quick) var(--ease-out), border-color var(--t-quick) var(--ease-out),
color var(--t-quick) var(--ease-out), box-shadow var(--t-quick) var(--ease-out);
}

.next-step[data-card-in-view="1"] .run-actions .is-primary,
.decision-card.is-done .preflight-pilot-run { display: none; }


@media (hover: hover) {
:is(.btn-secondary,
.run-actions button, .decision-choices button, .dialog-actions button, .conclusion-actions button,
.concl-followup button, .concl-related button, .coach-ok,
.dock-toggle, .runtime-banner-install, .admin-actions button, .replay-bar button,
.session-form-actions button:not([type="submit"])):not(.is-primary):not(.is-danger):is(:hover, :focus-visible):not(:disabled) {
border-color: var(--teal);
background: var(--teal-wash);
color: var(--teal-ink);
}
}


:is(.btn-primary, .is-primary, .rail-next-step-go, .library-open:not(.btn-secondary),
.composer button[type="submit"], .rail-composer button[type="submit"],
.session-form-actions button[type="submit"]):not(.is-danger) {
border-color: var(--teal);
background: var(--teal);
color: var(--surface);
}
@media (hover: hover) {
:is(.btn-primary, .is-primary, .rail-next-step-go, .library-open:not(.btn-secondary),
.composer button[type="submit"], .rail-composer button[type="submit"],
.session-form-actions button[type="submit"]):not(.is-danger):is(:hover, :focus-visible):not(:disabled) {
border-color: var(--teal-deep);
background: var(--teal-deep);
color: var(--surface);
box-shadow: var(--shadow-accent);
}
}


.is-danger {
border-color: var(--red-line);
background: var(--surface);
color: var(--red-ink);
}
@media (hover: hover) {
.is-danger:is(:hover, :focus-visible):not(:disabled) {
border-color: var(--red);
background: var(--red-wash);
color: var(--red-ink);
}
}
.is-danger.is-primary {
border-color: var(--red);
background: var(--red);
color: var(--surface);
}
@media (hover: hover) {
.is-danger.is-primary:is(:hover, :focus-visible):not(:disabled) {
border-color: var(--red-ink);
background: var(--red-ink);
color: var(--surface);
}
}


:is(.btn-quiet, .link, .finding-link, .record-link, .notify-toggle, .login-toggle, .bubble-link, .concl-link) {
padding: 0;
border: 0;
background: none;
color: var(--teal);
font-weight: var(--weight-medium);
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
cursor: pointer;
}
@media (hover: hover) {
:is(.btn-quiet, .link, .finding-link, .record-link, .notify-toggle, .login-toggle, .bubble-link, .concl-link):is(:hover, :focus-visible) {
color: var(--teal-deep);
background: none;
}
}


:is(.btn-primary, .btn-secondary, .run-actions button, .decision-choices button, .dialog-actions button,
.conclusion-actions button, .concl-followup button, .concl-related button, .rail-next-step-go,
.library-open, .composer button[type="submit"],
.rail-composer button[type="submit"], .session-form-actions button, .coach-ok,
.dock-toggle, .runtime-banner-install, .admin-actions button, .replay-bar button):active:not(:disabled) {
translate: 0 0;
box-shadow: none;
}
:is(.btn-primary, .btn-secondary, .run-actions button, .decision-choices button, .dialog-actions button,
.conclusion-actions button, .concl-followup button, .concl-related button, .rail-next-step-go,
.library-open, .composer button, .rail-composer button, .session-form-actions button,
.coach-ok, .replay-bar button):disabled {
opacity: 0.55;
cursor: default;
box-shadow: none;
}
.decision-choices button.is-picked:disabled {
opacity: 1;
border-color: var(--teal-line);
background: var(--teal-wash);
color: var(--teal-ink);
}


:is(.composer, .rail-composer) button[type="submit"] { border-radius: var(--r-pill); }





:is(.files-open, .record-open, .rail-drawer, .inspector-toggle, .new-analysis) {
align-items: center;
gap: 6px;
min-height: 34px;
padding: 0 var(--space-3);
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink-2);
font: var(--weight-medium) var(--type-control)/1 var(--font-ui);
cursor: pointer;
}
.new-analysis { border-color: var(--teal-line); color: var(--teal-ink); }
@media (hover: hover) {
:is(.files-open, .record-open, .rail-drawer, .inspector-toggle, .new-analysis):is(:hover, :focus-visible) {
border-color: var(--teal);
background: var(--teal-wash);
color: var(--teal-ink);
}
}
:is(.files-open, .record-open, .rail-drawer, .inspector-toggle)[aria-expanded="true"] {
border-color: var(--teal-line);
background: var(--teal-wash);
color: var(--teal-ink);
}
.account-button {
border: 1px solid var(--line-soft);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--ink-2);
font: var(--weight-medium) var(--type-control)/1 var(--font-ui);
}
.account-button[aria-expanded="true"] { border-color: var(--teal-line); }
@media (hover: hover) {
.account-button:is(:hover, :focus-visible) { border-color: var(--teal-line); }
}

.top-nav .account-button {
border: 0;
border-radius: var(--r-m);
background: none;
color: var(--muted);
font: 600 var(--type-meta)/1.15 var(--font-ui);
}
.top-nav .account-button[aria-expanded="true"] { color: var(--ink-2); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.top-nav .account-button:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
@media (hover: hover) {
.top-nav .account-button:hover { color: var(--ink-2); background: color-mix(in srgb, var(--ink) 6%, transparent); }
}
@media (min-width: 1200px) {
.top-nav.is-wide .account-button { font-size: var(--type-control); }
}


:is(.choice-chip, .rail-choice-chip, .library-chip, .monitor-chip,
.concl-hero-filter, .run-board-toggle, .session-preset, .monitor-edit, .tree-names-toggle, .hint-chip) {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 30px;

padding: var(--space-1) var(--space-3);
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--surface);
color: var(--ink-2);
font: var(--weight-medium) var(--type-control)/1.2 var(--font-ui);
text-align: start;
cursor: pointer;
transition: background-color var(--t-press) var(--ease-out), border-color var(--t-quick) var(--ease-out),
color var(--t-quick) var(--ease-out), translate var(--t-quick) var(--ease-out),
scale var(--t-press) var(--ease-out), box-shadow var(--t-quick) var(--ease-out);
}
@media (hover: hover) {
:is(.choice-chip, .rail-choice-chip, .library-chip, .monitor-chip,
.concl-hero-filter, .run-board-toggle, .session-preset, .monitor-edit, .tree-names-toggle,
.admin-chip, .welcome-action, .chain-link-retry, .feedback-kind, .hint-chip):is(:hover, :focus-visible):not(:disabled) {
border-color: var(--teal);
background: var(--teal-wash);
color: var(--teal-ink);
}
}


@media (hover: hover) {
.atom-chip:is(:hover, :focus-visible):not(:disabled):not([aria-pressed="true"]) {
border-color: var(--teal);
background: var(--teal-wash);
color: var(--teal-ink);
}
}
:is(.choice-chip, .rail-choice-chip, .library-chip, .concl-hero-filter, .session-preset, .monitor-chip):is(.is-active, .is-chosen, [aria-pressed="true"], [aria-checked="true"]) {
border-color: var(--teal-line);
background: var(--teal-wash);
color: var(--teal-ink);
}
:is(.choice-chip, .rail-choice-chip).is-primary {
border-color: var(--teal);
background: var(--teal);
color: var(--surface);
}
@media (hover: hover) {
:is(.choice-chip, .rail-choice-chip).is-primary:is(:hover, :focus-visible):not(:disabled) {
border-color: var(--teal-deep);
background: var(--teal-deep);
color: var(--surface);
}
}
:is(.choice-chip, .rail-choice-chip, .library-chip, .monitor-chip,
.concl-hero-filter, .run-board-toggle, .session-preset, .monitor-edit, .tree-names-toggle,
.admin-chip, .welcome-action, .chain-link-retry, .hint-chip, .feedback-kind):not(.is-primary):not(.is-danger):active:not(:disabled) {
background: var(--teal-line);
}


:is(.choice-chip, .rail-choice-chip) { min-height: 34px; padding: 0 var(--space-4); }



:is(.rail-action[data-asking="1"] .rail-choice-chip, .stage-action-option) {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: 2px 10px;
width: 100%;
min-height: 40px;
padding: var(--space-2) var(--space-3);
border: 1px solid var(--line);
border-radius: var(--r-m);
background: var(--surface);
color: var(--ink);
font: 600 var(--type-control)/1.35 var(--font-ui);
text-align: start;
cursor: pointer;
transition: background-color var(--t-press) var(--ease-out), border-color var(--t-quick) var(--ease-out);
}
:is(.rail-action[data-asking="1"] .rail-choice-chip, .stage-action-option).is-suggested {
border-color: var(--teal);
background: var(--teal-wash);
color: var(--teal-ink);
}
@media (hover: hover) {
.stage-action-option:is(:hover, :focus-visible):not(:disabled) { border-color: var(--teal); background: var(--teal-wash); }
}
.stage-action-option:disabled { opacity: 0.55; cursor: progress; }



.choice-chip.is-more { color: var(--muted); }






.question-panel[data-asking="1"] .choice-chip:not(.is-more):not(.is-quiet):not([hidden]) {
display: grid;
flex-shrink: 0;
grid-template-columns: auto auto minmax(0, 1fr);
align-items: baseline;
column-gap: var(--space-3);
width: 100%;
min-height: 40px;
padding: var(--space-2) var(--space-3);
border-radius: var(--r-s);
line-height: 1.35;
}
.question-panel[data-asking="1"] .choice-chip-label { grid-column: 2; color: var(--ink); font-weight: var(--weight-medium); }
.question-panel[data-asking="1"] .choice-chip > :not(.choice-chip-key):not(.choice-chip-label) {
grid-column: 3;
min-width: 0;
margin: 0;
overflow: hidden;
font-size: var(--type-note);
text-overflow: ellipsis;
white-space: nowrap;
}
.question-panel[data-asking="1"] .choice-chip:is(.is-more, .is-quiet) { align-self: flex-start; border-color: transparent; background: none; }


@media (max-height: 760px) and (min-width: 641px) {
.question-panel[data-asking="1"] .choice-chip:not(.is-more):not(.is-quiet):not([hidden]) { width: auto; min-height: 34px; padding-block: var(--space-1); }
}
@media (max-width: 640px) {
.question-panel[data-asking="1"] .choice-chip-key { display: none; }
.question-panel[data-asking="1"] .choice-chip:not(.is-more):not(.is-quiet):not([hidden]) { grid-template-columns: minmax(0, 1fr); min-height: 38px; padding-block: 5px; line-height: 1.3; }
.question-panel[data-asking="1"] .choice-chip-label,
.question-panel[data-asking="1"] .choice-chip > :not(.choice-chip-key):not(.choice-chip-label) { grid-column: 1; }
.question-panel[data-asking="1"] .choice-chip > :not(.choice-chip-key):not(.choice-chip-label) { margin-top: 1px; white-space: normal; }
}


:is(.files-close, .files-preview-close, .runtime-banner-close, .rail-collapse, .replay-close) {
display: inline-grid;
place-items: center;
min-width: 28px;
min-height: 28px;
padding: 0 var(--space-2);
border: 1px solid var(--line-soft);
border-radius: var(--r-s);
background: var(--surface);
color: var(--muted);
font: var(--weight-medium) var(--type-control)/1 var(--font-ui);
cursor: pointer;
transition: background-color var(--t-press) var(--ease-out), border-color var(--t-quick) var(--ease-out),
color var(--t-quick) var(--ease-out), translate var(--t-quick) var(--ease-out),
scale var(--t-press) var(--ease-out), box-shadow var(--t-quick) var(--ease-out);
}
@media (hover: hover) {
:is(.files-close, .files-preview-close, .runtime-banner-close, .rail-collapse, .replay-close):is(:hover, :focus-visible) {
border-color: var(--teal);
background: var(--teal-wash);
color: var(--teal-ink);
}
}

:is(.files-close, .files-preview-close, .runtime-banner-close, .rail-collapse, .replay-close):active {
background: var(--line-soft);
}


:is(.review-badge, .run-badge, .library-badge, .node-badge, .delib-badge,
.choice-badge, .concl-reliability-badge, .record-ground-tag) {
display: inline-flex;
align-items: center;
min-height: 20px;
padding: 0 var(--space-2);
border-radius: var(--r-pill);
font: var(--weight-medium) var(--type-meta)/1 var(--font-ui);
letter-spacing: 0.01em;
white-space: nowrap;
}


:is(.card, .place-card, .plan-card, .step-card, .upload-card, .library-card, .node-card, .concl-card, .showcase-card, .gallery-rep, .question-card, .welcome-grid .picker-card, .method-step) {
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface);
box-shadow: var(--shadow-1);
}



.welcome-questions .question-cards { border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--surface); }
.welcome-questions .question-card {
border: 0;
border-inline-end: 1px solid var(--line);
border-bottom: 1px solid var(--line);
border-radius: 0;
background: transparent;
box-shadow: none;
}
.welcome-questions .question-card.is-open { background: var(--surface-2); }

.welcome-questions .question-card.is-compose { background: color-mix(in srgb, var(--teal-wash) 50%, var(--surface)); }
:is(.decision-card, .run-board, .next-step) { border-radius: var(--r-m); }
:is(.card-kicker, .run-kicker, .next-step-kicker) {
color: var(--teal-ink);
font: var(--weight-strong) var(--type-meta)/1.3 var(--font-ui);
letter-spacing: 0.06em;
}






:is(.admin-person, .rd-table.is-records tbody tr[aria-expanded], .showcase-card, .question-card-open, .welcome-grid .picker-card, .method-step) {
cursor: pointer;
transition: background-color var(--t-quick) var(--ease-out), border-color var(--t-quick) var(--ease-out),
box-shadow var(--t-quick) var(--ease-out);
}
@media (hover: hover) {
:is(.admin-person, .rd-table.is-records tbody tr[aria-expanded], .showcase-card, .question-card-open, .welcome-grid .picker-card, .method-step):is(:hover, :focus-visible) {
background: var(--teal-wash);
border-color: var(--teal-line);
}
:is(.admin-person, .showcase-card, .welcome-grid .picker-card, .method-step):is(:hover, :focus-visible) { box-shadow: var(--shadow-2); }
}
:is(.admin-person, .rd-table.is-records tbody tr[aria-expanded], .showcase-card, .question-card-open, .welcome-grid .picker-card, .method-step):active { background: var(--teal-line); transition-duration: var(--t-press); }

.showcase-card[aria-busy="true"] { cursor: progress; }


:is(.session-form input, .session-form select, .record-own-form textarea) {
border: 1px solid var(--line-strong);
border-radius: var(--r-s);
background: var(--surface);
color: var(--ink);
font: var(--type-control)/1.4 var(--font-ui);
}
:is(.session-form input, .session-form select, .record-own-form textarea):focus-visible {
border-color: var(--teal);
outline: none;
box-shadow: var(--focus-ring);
}





:is(.stage-tabs, .tx-segmented, .view-switch) {
display: inline-flex;
flex-wrap: nowrap;
gap: 2px;
max-width: 100%;
margin: 0;
padding: 3px;
overflow-x: auto;
scrollbar-width: none;
border: 1px solid var(--line-soft);
border-radius: var(--r-m);
background: var(--surface-3);
}
:is(.stage-tabs, .tx-segmented, .view-switch) > button {
position: static;
flex: 0 0 auto;
min-height: 28px;
margin: 0;
padding: 0 var(--space-3);
border: 0;
border-radius: var(--r-s);
background: transparent;
color: var(--muted);
font: var(--weight-medium) var(--type-control)/1 var(--font-ui);
white-space: nowrap;
cursor: pointer;
transition: background-color var(--t-quick) var(--ease-out), color var(--t-quick) var(--ease-out),
box-shadow var(--t-quick) var(--ease-out);
}
@media (hover: hover) {
:is(:is(.stage-tabs, .tx-segmented, .view-switch) > button, .rd-preset, .welcome-tabs > [role="tab"]):is(:hover, :focus-visible) {
color: var(--teal-ink);
background: var(--surface-2);
}
}
:is(.stage-tabs, .tx-segmented, .view-switch) > button:is(.is-on, [aria-current="true"], [aria-selected="true"]) {
color: var(--teal-ink);
background: var(--surface);
box-shadow: var(--shadow-1), 0 0 0 1px var(--line-soft);
}




:is(.concl-sections-extra > summary, .admin-feedback-more > summary,
.feedback-check, .tx-toggle, .admin-invite, .admin-switch) {
border-radius: var(--r-s);
cursor: pointer;
transition: background-color var(--t-quick) var(--ease-out), box-shadow var(--t-quick) var(--ease-out),
color var(--t-quick) var(--ease-out);
}
@media (hover: hover) {
:is(.concl-sections-extra > summary, .admin-feedback-more > summary,
.feedback-check, .tx-toggle, .admin-invite, .admin-switch):hover {
background: var(--surface-3);
box-shadow: 0 0 0 4px var(--surface-3);
color: var(--ink);
}
}


.has-chart-hover [data-hover] {
transition: opacity var(--t-quick) var(--ease-out), fill-opacity var(--t-quick) var(--ease-out),
stroke-opacity var(--t-quick) var(--ease-out), stroke-width var(--t-quick) var(--ease-out),
background-color var(--t-quick) var(--ease-out);
}

.has-chart-hover li[data-hover].is-dimmed { opacity: 0.45; }
svg.has-chart-hover [data-hover].is-dimmed { fill-opacity: 0.45; stroke-opacity: 0.45; }

svg.has-chart-hover :not(line)[data-hover].is-hover {
stroke: var(--ink);
stroke-width: 1.25;
}
svg.has-chart-hover line[data-hover].is-hover { opacity: 1; }
.has-chart-hover li[data-hover].is-hover { background: var(--surface-3); border-radius: var(--r-s); }
.chart-tip { position: fixed; z-index: 60; }


:is(button, a, [role="switch"], [role="tab"], summary):focus-visible {
outline: 2px solid var(--teal);
outline-offset: 2px;
}



.chat-page:not([data-mode="running"]):not([data-mode="gate"]):not([data-mode="failed"]) .run-board-toggle,
.delib-badge:empty { display: none; }


:is(.btn-primary, .btn-secondary, .run-actions button, .decision-choices button, .dialog-actions button,
.conclusion-actions button, .concl-followup button, .concl-related button, .rail-next-step-go,
.library-open, .composer button, .rail-composer button, .session-form-actions button,
.coach-ok, .run-retry, .replay-bar button, .btn-quiet, .link, .finding-link, .record-link,
.notify-toggle, .login-toggle, .bubble-link, .concl-link, .files-open, .record-open, .rail-drawer,
.inspector-toggle, .new-analysis, .account-button, .choice-chip, .rail-choice-chip,
.library-chip, .monitor-chip, .concl-hero-filter, .run-board-toggle, .session-preset,
.monitor-edit, .tree-names-toggle, .files-close, .files-preview-close,
.runtime-banner-close, .rail-collapse, .replay-close, .hint-chip, .review-badge, .run-badge,
.library-badge, .node-badge, .delib-badge, .choice-badge, .concl-reliability-badge,
.record-ground-tag, .card, .place-card, .plan-card, .step-card, .upload-card, .library-card,
.node-card, .concl-card, .showcase-card, .stage-tabs, .tx-segmented, .view-switch)[hidden] {
display: none;
}






.is-guest-locked { position: relative; }
.is-guest-locked.is-guest-locked,
.is-guest-locked.is-guest-locked:focus-visible:not(:disabled) {
border-style: dashed;
border-color: var(--line);
background: var(--surface-2);
color: var(--muted);
box-shadow: none;
translate: none;
}
.is-guest-locked.is-guest-locked:is(.btn-primary, .is-primary) { border-style: dashed; }
.guest-lock-mark { display: inline-flex; flex: none; align-items: center; margin-inline-end: var(--space-1); color: var(--subtle); }
.guest-lock-mark svg { display: block; }


.delib-branch.is-guest-locked { grid-template-columns: auto 14px 1fr auto; }
.delib-branch > .guest-lock-mark { margin-inline-end: 0; }
.guest-lock-tip {
position: absolute;
inset-block-end: calc(100% + 6px);
inset-inline-start: 0;
z-index: 30;
padding: var(--space-1) var(--space-2);
border-radius: var(--r-s);
background: var(--ink);
color: var(--surface);
font: var(--weight-medium) var(--type-meta)/1.3 var(--font-ui);
white-space: nowrap;
pointer-events: none;
opacity: 0;
visibility: hidden;
transition: opacity var(--t-quick) var(--ease-out), visibility 0s linear var(--t-quick);
}

:is(.top-nav, .account-menu) .guest-lock-tip { inset-block: calc(100% + 6px) auto; }
.is-guest-locked:focus-visible > .guest-lock-tip { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (hover: hover) {
.is-guest-locked.is-guest-locked:hover:not(:disabled) {
border-color: var(--line);
background: var(--surface-2);
color: var(--muted);
box-shadow: none;
translate: none;
}
.is-guest-locked:hover > .guest-lock-tip { opacity: 1; visibility: visible; transition-delay: 0s; }
}

@media (prefers-reduced-motion: reduce) {
@media (hover: hover) {
:is(.btn-primary, .is-primary, .rail-next-step-go):hover { translate: none; }
}

:is(.stage-tabs, .tx-segmented, .view-switch) > button { transition: none; }
}
}



@layer components {
.plan-atoms { display: grid; gap: var(--space-2, 8px); margin: var(--space-2, 8px) 0; }
.plan-atoms-lead { margin: 0; color: var(--ink); line-height: 1.6; }
.plan-atoms-fold {
border: 1px solid var(--line); border-radius: var(--r-s);
background: var(--surface-2); padding: 0 var(--space-3, 12px);
}
.plan-atoms-summary { padding: var(--space-2, 8px) 0; cursor: pointer; color: var(--ink-2); font-weight: 600; }
.plan-atoms-open { margin-left: 10px; color: var(--teal); font-weight: 400; font-size: var(--type-note); }
.plan-atoms-fold[open] .plan-atoms-open { display: none; }
.plan-atoms-group { border-top: 1px solid var(--line-soft); padding: var(--space-2, 8px) 0; }
.plan-atoms-heading { margin: 0 0 2px; font-size: var(--type-title); color: var(--ink); }
.plan-atoms-note { margin: 0 0 6px; color: var(--subtle); font-size: var(--type-note); }
.plan-atoms-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plan-atom, .plan-atoms-option {
border: 1px solid var(--line-soft); border-radius: var(--r-xs);
background: var(--surface); padding: 6px 10px; min-width: 0;
}
.plan-atom.is-core { border-left: 3px solid var(--teal); }
.plan-atom.is-check { border-left: 3px solid var(--blue); }
.plan-atom.is-off { border-style: dashed; background: var(--surface-2); }
.plan-atom-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.plan-atom-name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.plan-atom-role, .plan-atom-level, .plan-atom-off {
font-size: var(--type-meta); line-height: 1.5; padding: 0 6px; border-radius: var(--r-pill);
border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.plan-atom.is-core .plan-atom-role { color: var(--teal-ink); border-color: var(--teal-line); background: var(--teal-wash); }
.plan-atom.is-check .plan-atom-role { color: var(--blue-ink); border-color: var(--blue-line); background: var(--blue-wash); }
.plan-atom-level.is-ceiling-weak { color: var(--amber-ink); border-color: var(--amber-line); background: var(--amber-wash); }
.plan-atom-off { color: var(--amber-ink); border-color: var(--amber-line); }
.plan-atom-toggle {
margin-left: auto; font: inherit; font-size: var(--type-note); padding: 2px 10px; cursor: pointer;
border: 1px solid var(--teal-line); border-radius: var(--r-xs); background: var(--teal-wash); color: var(--teal-ink);
}
.plan-atom-toggle:disabled { opacity: 0.6; cursor: progress; }
.plan-atom-line, .plan-atoms-option-atoms { margin: 2px 0 0; color: var(--muted); font-size: var(--type-note); line-height: 1.5; }
.plan-atom-why { margin: 4px 0 0; color: var(--amber-ink); font-size: var(--type-note); line-height: 1.5; }
.plan-atom-exploratory { margin: 4px 0 0; padding: 4px 8px; border-radius: var(--r-s); background: var(--amber-wash); color: var(--amber-ink); font-size: var(--type-note); line-height: 1.5; }
.plan-atoms-switch { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--ink); }
.plan-atoms-option.plan-atoms-off .plan-atoms-switch { cursor: not-allowed; color: var(--muted); }
.plan-atoms-switch input { accent-color: var(--teal); margin: 0; }
.plan-atoms-error:empty { display: none; }
.plan-atoms-error { margin: 0 0 8px; color: var(--red-ink); font-size: var(--type-note); }


.delib-atoms-line { display: block; margin-top: 2px; color: var(--muted); font-size: var(--type-note); line-height: 1.5; font-weight: 400; }
.delib-atoms { margin-top: var(--space-2, 8px); font-size: var(--type-note); }
.delib-atoms-summary { cursor: pointer; color: var(--teal); }
.delib-atoms-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.delib-atoms-row { display: grid; grid-template-columns: minmax(7em, max-content) 1fr; gap: 2px 10px; color: var(--muted); }
.delib-atoms-name { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .delib-atoms-row { grid-template-columns: 1fr; } }




.deliberation.is-done .delib-branch:not(.is-chosen),
.deliberation.is-done :is(.delib-atoms-line, .delib-note, .delib-atoms),
.deliberation.is-done:has(.delib-branch.is-chosen) .delib-explain { display: none; }
.deliberation.is-done .delib-root { margin-bottom: 6px; }
.deliberation.is-done:not(:has(.delib-branch.is-chosen)) .delib-explain { margin-bottom: 0; }




.delib-ask { color: var(--teal-ink, var(--teal)); font-weight: var(--weight-medium, 600); }
.delib-name { color: var(--ink); font-weight: var(--weight-medium, 600); }
.deliberation:not(.is-done) .delib-explain {
margin-bottom: 6px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.deliberation .delib-explain:empty { display: none; }
.deliberation:not(.is-done) .delib-root { margin-bottom: 4px; }
.deliberation:not(.is-done) .delib-branch { margin-bottom: 4px; padding-block: 5px; }
.deliberation:not(.is-done) .delib-branch > div {
display: flex;
align-items: baseline;
gap: 0 6px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.deliberation:not(.is-done) .delib-branch > div > div { flex: none; }
.deliberation:not(.is-done) .delib-branch > div > :is(.delib-note, .delib-atoms-line) {
min-width: 0;
margin-top: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.deliberation:not(.is-done) .delib-branch > div > .delib-note:not(.is-caution):not(.is-ruled-out)::before { content: "· "; }
.deliberation:not(.is-done) .delib-branch > div > .delib-atoms-line { display: none; }
.deliberation:not(.is-done) .delib-branch > div > .delib-note ~ .delib-note { display: none; }
.deliberation:not(.is-done):not(.is-expanded) .delib-branch.is-tucked { display: none; }
.deliberation.is-expanded .delib-more, .deliberation.is-done .delib-more { display: none; }
.delib-more {
display: block;
margin: 0 0 4px;
padding: 2px 4px;
border: 0;
background: none;
color: var(--teal);
font: 600 var(--type-note)/1.5 var(--font-ui);
cursor: pointer;
}
.delib-more::after { content: " ▸"; }
.delib-more:focus-visible { color: var(--teal-deep, var(--teal)); text-decoration: underline; }
@media (hover: hover) {
.delib-more:hover { color: var(--teal-deep, var(--teal)); text-decoration: underline; }
}
:is(#transcript, .rail-transcript) > .deliberation:not(.is-done) {
position: sticky;
bottom: 0;
z-index: 2;

max-height: 55vh;
overflow-y: auto;
flex-shrink: 0;
box-shadow: 0 -6px 18px color-mix(in srgb, var(--ink) 8%, transparent);
}



.delib-file { margin: 0 0 6px; color: var(--ink-2); font-size: var(--type-note); line-height: 1.5; }
.delib-file b { color: var(--ink); font-weight: var(--weight-medium); }
.delib-file-status { display: block; margin: -2px 0 6px; color: var(--muted); font-size: var(--type-note); line-height: 1.5; }
.delib-file-status.is-checked { color: var(--teal-ink); }
.delib-file-status.is-unchecked { color: var(--amber-ink); }
.delib-file-hint { margin: 2px 0 4px; color: var(--muted); font-size: var(--type-note); }
.deliberation:not(.is-expanded):has(.delib-branch.is-tucked) .delib-file-hint,
.deliberation.is-done :is(.delib-file, .delib-file-status, .delib-file-hint) { display: none; }


.deliberation.is-done:has(.delib-branch.is-chosen) {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 2px 6px;
padding-block: 6px;
}

.deliberation.is-done .delib-ask { display: none; }
.deliberation.is-done:has(.delib-branch.is-chosen) .delib-root { margin: 0; color: var(--muted); }
.deliberation.is-done:has(.delib-branch.is-chosen) .delib-root .delib-name { color: var(--muted); font-weight: 400; }
.deliberation.is-done:has(.delib-branch.is-chosen) .delib-root::after { content: " →"; }


.deliberation.is-done { opacity: 1; background: transparent; border-color: var(--line-soft); }
.deliberation.is-done .delib-branch.is-chosen {
display: inline-flex;
align-items: baseline;
gap: 6px;
width: auto;
margin: 0;
padding: 0;
border: 0;
background: none;
box-shadow: none;
color: var(--ink);
font-weight: var(--weight-medium);
cursor: default;
}
.deliberation.is-done .delib-branch.is-chosen .delib-twig {
flex: none; width: auto; height: auto; border: 0; border-radius: 0; background: none; color: var(--teal);
}
.deliberation.is-done .delib-branch.is-chosen .delib-twig::before { content: "✓"; }
.deliberation.is-done .delib-badge { display: none; }


@media (max-width: 520px) { .next-step[data-answered="1"] .run-actions button { text-wrap: nowrap; } }
@media (pointer: coarse) {
.tree-explorer .tx-toolbar :is(.tx-select, .tx-filter-button, .tx-view-button),
.tx-display-menu.is-compact-sheet :is(button, select, input:not([type="checkbox"], [type="radio"]), a, label),
.tree-explorer .tx-nav .tx-icon { min-width: 44px; min-height: 44px; }
.tx-display-menu.is-compact-sheet :is(button, a, label):not([hidden]) { display: inline-flex; align-items: center; }
}
}

















@font-face {
font-family: "JetBrains Mono Variable";
font-style: normal;
font-display: swap;
font-weight: 100 800;
src: url(/static/fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2-variations");
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: "JetBrains Mono Variable";
font-style: normal;
font-display: swap;
font-weight: 100 800;
src: url(/static/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2-variations");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


@property --om-turn {
syntax: "<angle>";
inherits: false;
initial-value: 0deg;
}
@keyframes om-spin { to { --om-turn: 360deg; } }

@keyframes om-wave {
0%, 100% { stop-color: var(--spectrum-1); }
16% { stop-color: var(--spectrum-2); }
33% { stop-color: var(--spectrum-3); }
50% { stop-color: var(--spectrum-4); }
66% { stop-color: var(--spectrum-5); }
83% { stop-color: var(--spectrum-7); }
}


.px-art { display: none; }
.px-art .px-line { fill: var(--teal); }
.px-art .px-n1 { fill: var(--cover); }
.px-art .px-n2 { fill: var(--blue); }
.px-band-1 { stop-color: var(--teal-soft); }
.px-band-2 { stop-color: var(--teal); }
.px-band-3 { stop-color: var(--teal-deep); }
.px-band-4 { stop-color: var(--teal-ink); }

@media screen {
:root[data-theme="omarchy"] .px-art { display: block; }
:root[data-theme="omarchy"] .evo-logo,
:root[data-theme="omarchy"] .login-mark,
:root[data-theme="omarchy"] .login-motif { display: none; }

:root[data-theme="omarchy"] .suite-name,
:root[data-theme="omarchy"] .login-brand h1 {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
:root[data-theme="omarchy"] .px-mark { width: 36px; height: 36px; flex: none; image-rendering: pixelated; }
:root[data-theme="omarchy"] .px-wordmark { height: 18px; width: auto; margin-bottom: 4px; }
:root[data-theme="omarchy"] .login-brand { flex-direction: column; gap: 22px; }
:root[data-theme="omarchy"] .login-brand .px-mark { width: 84px; height: 84px; }
:root[data-theme="omarchy"] .login-brand .px-wordmark { height: 54px; margin: 0; }

:root[data-theme="omarchy"] .product-brand:hover .px-wordmark stop,
:root[data-theme="omarchy"] .login-brand:hover .px-wordmark stop { animation: om-wave 2.4s linear infinite; }
:root[data-theme="omarchy"] .px-wordmark .px-band-2 { animation-delay: -0.3s !important; }
:root[data-theme="omarchy"] .px-wordmark .px-band-3 { animation-delay: -0.6s !important; }
:root[data-theme="omarchy"] .px-wordmark .px-band-4 { animation-delay: -0.9s !important; }


:root[data-theme="omarchy"] *,
:root[data-theme="omarchy"] *::before,
:root[data-theme="omarchy"] *::after { border-radius: 0 !important; }


:root[data-theme="omarchy"] :is(.wt-tip, .wt-root, .wt-mrca) { rx: 0; ry: 0; shape-rendering: crispEdges; }


:root[data-theme="omarchy"] { scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; caret-color: var(--teal); }
:root[data-theme="omarchy"] ::selection { background: var(--teal); color: var(--surface); }
:root[data-theme="omarchy"] body,
:root[data-theme="omarchy"] .app { background: transparent; }


:root[data-theme="omarchy"] body { word-spacing: -0.22em; }
:root[data-theme="omarchy"] :is(pre, code, kbd, samp, input, textarea, select, .mono, [class*="mono"]) { word-spacing: normal; }


:root[data-theme="omarchy"] body::before,
:root[data-theme="omarchy"] .login-gate::before {
content: "";
position: fixed;
inset: 0;
z-index: -1;
pointer-events: none;
opacity: 0.16;
background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 45%, var(--cover) 100%);
mask:
url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='480' shape-rendering='crispEdges'><rect x='384' y='0' width='18' height='18'/><rect x='366' y='30' width='12' height='12' opacity='.5'/><rect x='432' y='48' width='18' height='18'/><rect x='96' y='72' width='18' height='18'/><rect x='294' y='102' width='12' height='12' opacity='.5'/><rect x='336' y='96' width='18' height='18'/><rect x='432' y='96' width='18' height='18'/><rect x='24' y='120' width='18' height='18'/><rect x='48' y='120' width='18' height='18'/><rect x='102' y='126' width='12' height='12' opacity='.5'/><rect x='192' y='120' width='18' height='18'/><rect x='288' y='120' width='18' height='18'/><rect x='0' y='144' width='18' height='18'/><rect x='336' y='144' width='18' height='18'/><rect x='384' y='144' width='18' height='18'/><rect x='456' y='144' width='18' height='18'/><rect x='222' y='174' width='12' height='12' opacity='.5'/><rect x='336' y='168' width='18' height='18'/><rect x='366' y='174' width='12' height='12' opacity='.5'/><rect x='0' y='192' width='18' height='18'/><rect x='54' y='198' width='12' height='12' opacity='.5'/><rect x='174' y='198' width='12' height='12' opacity='.5'/><rect x='192' y='192' width='18' height='18'/><rect x='174' y='222' width='12' height='12' opacity='.5'/><rect x='360' y='216' width='18' height='18'/><rect x='384' y='216' width='18' height='18'/><rect x='408' y='216' width='18' height='18'/><rect x='462' y='222' width='12' height='12' opacity='.5'/><rect x='246' y='246' width='12' height='12' opacity='.5'/><rect x='408' y='240' width='18' height='18'/><rect x='432' y='240' width='18' height='18'/><rect x='432' y='264' width='18' height='18'/><rect x='30' y='294' width='12' height='12' opacity='.5'/><rect x='312' y='288' width='18' height='18'/><rect x='432' y='288' width='18' height='18'/><rect x='144' y='312' width='18' height='18'/><rect x='264' y='312' width='18' height='18'/><rect x='390' y='318' width='12' height='12' opacity='.5'/><rect x='216' y='336' width='18' height='18'/><rect x='192' y='360' width='18' height='18'/><rect x='432' y='360' width='18' height='18'/><rect x='216' y='384' width='18' height='18'/><rect x='246' y='390' width='12' height='12' opacity='.5'/><rect x='270' y='390' width='12' height='12' opacity='.5'/><rect x='288' y='384' width='18' height='18'/><rect x='384' y='384' width='18' height='18'/><rect x='432' y='384' width='18' height='18'/><rect x='192' y='408' width='18' height='18'/><rect x='96' y='432' width='18' height='18'/><rect x='318' y='438' width='12' height='12' opacity='.5'/><rect x='366' y='438' width='12' height='12' opacity='.5'/><rect x='72' y='456' width='18' height='18'/><rect x='120' y='456' width='18' height='18'/><rect x='150' y='462' width='12' height='12' opacity='.5'/><rect x='288' y='456' width='18' height='18'/><rect x='408' y='456' width='18' height='18'/></svg>") 0 0 / 480px 480px repeat,
radial-gradient(ellipse 64% 62% at 50% 46%, transparent 62%, black 100%) 0 0 / 100% 100% no-repeat;
mask-composite: intersect;



}
:root[data-theme="omarchy"] .login-gate::before { z-index: 0; opacity: 0.32; }

@media (max-width: 760px) {
:root[data-theme="omarchy"] body::before { display: none; }
:root[data-theme="omarchy"] .login-gate::before { opacity: 0.16; }
}






:root[data-theme="omarchy"] .product-header { background: var(--wash); box-shadow: none; backdrop-filter: none; }
:root[data-theme="omarchy"] .top-nav > a.active { box-shadow: inset 2px 0 0 var(--teal); }
:root[data-theme="omarchy"].om-hints .top-nav > a[data-ws] { position: relative; }
:root[data-theme="omarchy"].om-hints .top-nav > a[data-ws]::after {
content: attr(data-ws);
position: absolute;
inset-inline-start: 2px;
top: 2px;
min-width: 14px;
padding: 1px 3px;
background: var(--teal);
color: var(--surface);
font: var(--weight-strong) var(--type-meta)/1 var(--font-mono);
text-align: center;
}

@container product-header (max-width: 960px) {
:root[data-theme="omarchy"] .product-brand .px-wordmark { display: none; }
}


:root[data-theme="omarchy"] .composer { border: 2px solid var(--line-strong); }
:root[data-theme="omarchy"] .composer:focus-within {
border-color: transparent;
background:
linear-gradient(var(--surface), var(--surface)) padding-box,
linear-gradient(45deg, var(--blue), var(--teal) 50%, var(--cover)) border-box;
box-shadow: 0 0 22px -8px color-mix(in srgb, var(--teal) 70%, transparent);
}



:root[data-theme="omarchy"] :is([class$="-card"], [class*="-card "]):focus-within { box-shadow: inset 0 0 0 1px var(--teal); }



:root[data-theme="omarchy"] .can-fill.is-filling {
border: 2px solid transparent;
background:
linear-gradient(var(--surface), var(--surface)) padding-box,
linear-gradient(45deg, var(--blue), var(--teal) 50%, var(--cover)) border-box;
box-shadow: 0 0 40px -10px color-mix(in srgb, var(--teal) 60%, transparent);
}
:root[data-theme="omarchy"] .can-fill.is-filling::backdrop { background: color-mix(in srgb, var(--surface-2) 72%, transparent); backdrop-filter: none; }
:root[data-theme="omarchy"] .card-zoom { border-radius: 0; }

:root[data-theme="omarchy"] body.is-tree-zen [data-page-panel="trees"] > .lens-workspace > [data-tree-explorer] {
border: 2px solid transparent;
background:
linear-gradient(var(--surface), var(--surface)) padding-box,
linear-gradient(45deg, var(--blue), var(--teal) 50%, var(--cover)) border-box;
box-shadow: 0 0 40px -10px color-mix(in srgb, var(--teal) 60%, transparent);
}
:root[data-theme="omarchy"] body.is-tree-zen [data-page-panel="trees"]::before {
background: color-mix(in srgb, var(--surface-2) 72%, transparent);
backdrop-filter: none;
}
@media (max-width: 860px) {
:root[data-theme="omarchy"] body.is-tree-zen [data-page-panel="trees"] > .lens-workspace > [data-tree-explorer] { border: 0; }
}



:root[data-theme="omarchy"] :is(.account-menu, .run-list, .slot-panel, .work-tray-panel) {
border: 2px solid transparent;
background:
linear-gradient(var(--surface), var(--surface)) padding-box,
linear-gradient(45deg, var(--blue), var(--teal) 50%, var(--cover)) border-box;
box-shadow: 0 0 32px -10px color-mix(in srgb, var(--teal) 55%, transparent);
}


:root[data-theme="omarchy"] .theme-picker {
border: 2px solid transparent;
background-clip: padding-box;
}
:root[data-theme="omarchy"] .theme-picker:hover,
:root[data-theme="omarchy"] .theme-picker:focus-visible {
background:
linear-gradient(var(--surface), var(--surface)) padding-box,
conic-gradient(from var(--om-turn), var(--spectrum-1), var(--spectrum-2), var(--spectrum-3), var(--spectrum-4),
var(--spectrum-5), var(--spectrum-6), var(--spectrum-7), var(--spectrum-1)) border-box;
animation: om-spin 2.4s linear infinite;
}
}




@supports (appearance: base-select) {
.theme-picker,
.theme-picker::picker(select) { appearance: base-select; }

.theme-picker {
display: inline-flex;
align-items: center;
gap: 8px;
padding-inline: 10px;
background-image: none;
}
.theme-picker::picker-icon {
content: "";
width: 10px;
height: 10px;
background: var(--subtle);
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
transition: rotate 160ms ease;
}
.theme-picker:open::picker-icon { rotate: 180deg; }
.theme-picker::picker(select) {
padding: var(--space-1);
border: 1px solid var(--line);
border-radius: var(--r-s);
background: var(--surface);
box-shadow: var(--shadow-3);
}
.theme-picker option {
min-height: 32px;
padding: 6px 10px;
border: 2px solid transparent;
border-radius: var(--r-xs);
color: var(--ink);
font: var(--weight-medium) var(--type-control)/1.2 var(--font-ui);
cursor: pointer;
}
.theme-picker option::checkmark { color: var(--teal); }
.theme-picker option:hover,
.theme-picker option:focus-visible { background: var(--surface-3); outline: none; }
.theme-picker option[value="omarchy"] { font-family: "JetBrains Mono Variable", var(--font-mono); letter-spacing: 0.02em; }
.theme-picker option[value="omarchy"]:hover,
.theme-picker option[value="omarchy"]:focus-visible {
background:
linear-gradient(var(--surface-3), var(--surface-3)) padding-box,
conic-gradient(from var(--om-turn), var(--spectrum-1), var(--spectrum-2), var(--spectrum-3), var(--spectrum-4),
var(--spectrum-5), var(--spectrum-6), var(--spectrum-7), var(--spectrum-1)) border-box;
box-shadow: 0 0 14px -2px color-mix(in srgb, var(--spectrum-6) 55%, transparent);
animation: om-spin 1.6s linear infinite;
}
}


@media (prefers-reduced-motion: reduce) {
:root[data-theme="omarchy"] body::before,
:root[data-theme="omarchy"] .login-gate::before,
:root[data-theme="omarchy"] .theme-picker,
.theme-picker option,
.px-wordmark stop { animation: none !important; }
}
