/* Product Partner: warm graphite surfaces and restrained pastel accents. */
:root {
 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
 color-scheme: dark;
 --bg: #1c1b20; --surface: #242229; --sidebar: #211f26; --ink: #d5cbd1;
 --muted: #aaa0ae; --line: #413a46; --line-soft: #322e38;
 --accent: #c5b5d9; --accent-solid: #c5b5d9; --accent-hover: #d3c2e5;
 --accent-ink: #29232f; --accent-soft: #342e40;
 --gradient-start: #d0bbdf; --gradient-middle: #d9b6c8; --gradient-end: #e6c5ae;
 --text-gradient: linear-gradient(105deg, var(--gradient-start) 0%, var(--gradient-middle) 55%, var(--gradient-end) 100%);
 --danger: #d8a0a5; --danger-soft: #3c2c33;
 --success: #abc7b5; --success-soft: #2b3631;
 --warning: #d4be97; --warning-soft: #3b342b;
 --radius: 10px; --tg-safe: var(--tg-content-safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.65px; font-weight: 650; }
h2 { font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -.1px; }
h3 { font-size: 15px; line-height: 1.45; font-weight: 600; }
p { color: var(--muted); line-height: 1.6; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.shell { min-height: 100dvh; width: 100%; max-width: 1440px; margin: 0 auto; }
.topbar { min-height: 64px; padding: calc(10px + var(--tg-safe)) 20px 10px; display: flex; align-items: center; gap: 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; letter-spacing: -.25px; font-weight: 650; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-solid); color: var(--accent-ink); }
.brand-mark svg { width: 23px; height: 23px; stroke-width: 1.65; }
.header-note { color: var(--muted); font-size: 12px; border-left: 1px solid var(--line); padding-left: 18px; }
.health { margin-left: auto; display: flex; align-items: center; gap: 7px; border: 0; background: none; color: var(--muted); font-size: 12px; min-height: 44px; padding: 4px 0 4px 8px; white-space: nowrap; }
.health-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warning); }
.health[data-connected=true] .health-dot { background: var(--success); }
#main { padding: 24px 20px 110px; min-width: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.heading-copy { min-width: 0; }
.heading-copy p { margin-top: 7px; font-size: 13px; }
.actions-row { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; padding: 10px 15px; min-height: 42px; font-size: 13px; line-height: 1.35; font-weight: 550; text-decoration: none; }
.button svg { width: 17px; height: 17px; }
.button.primary { background: var(--accent-solid); color: var(--accent-ink); }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.button:active { transform: translateY(1px); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); padding: 8px; flex-shrink: 0; }
.icon-button svg { width: 18px; height: 18px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 550; padding: 4px 0; text-align: left; }
.text-button svg { width: 16px; height: 16px; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 500; }
.quiet-label { color: var(--muted); font-size: 12px; }
.active-project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 24px; }
.focus-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.focus-heading svg { color: var(--accent); width: 17px; height: 17px; }
.focus-heading .stage { margin-left: auto; }
.active-project h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.3px; margin-bottom: 7px; }
.active-description { font-size: 13px; max-width: 660px; }
.project-next { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.next-label { display: block; color: var(--muted); font-size: 11px; font-weight: 600; margin-bottom: 4px; }
.project-next p { color: var(--ink); font-size: 13px; line-height: 1.55; }
.active-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 16px; }
.active-footer .focus-note { font-size: 11px; color: var(--muted); }
.stage { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); background: var(--sidebar); border-radius: 4px; padding: 3px 7px; font-size: 11px; line-height: 1.5; font-weight: 500; white-space: nowrap; }
.stage[data-status=test] { color: var(--warning); background: var(--warning-soft); }
.stage[data-status=build] { color: var(--accent); background: var(--accent-soft); }
.stage[data-status=active] { color: var(--success); background: var(--success-soft); }
.stage[data-status=killed] { color: var(--danger); background: var(--danger-soft); }
.list-panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.list-toolbar { padding: 16px 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-title { display: flex; align-items: center; gap: 9px; }
.muted-count { color: var(--muted); background: var(--sidebar); border-radius: 4px; padding: 1px 6px; font-size: 11px; line-height: 1.65; font-weight: 500; font-variant-numeric: tabular-nums; }
.list-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.search-box { margin: 0; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 6px; padding-left: 10px; height: 35px; width: 190px; color: var(--muted); }
.search-box svg { width: 15px; height: 15px; }
.search-box input { min-width: 0; width: 100%; border: 0; border-radius: 6px; background: transparent; padding: 7px 8px 7px 0; font-size: 12px; color: var(--ink); outline-offset: 0; }
.filters { display: flex; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.filter { padding: 8px 1px 11px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 12px; min-height: 42px; }
.filter.selected { color: var(--accent); border-bottom-color: var(--accent-solid); font-weight: 600; }
.idea-row, .job-row { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; color: var(--ink); padding: 18px 20px; }
.idea-row:last-child, .job-row:last-child { border-bottom: 0; }
.idea-row[data-focused=true] { background: color-mix(in srgb, var(--accent-soft) 48%, var(--surface)); }
.row-leading { width: 18px; align-self: flex-start; margin-top: 3px; flex-shrink: 0; }
.status-mark { display: block; width: 13px; height: 13px; border: 1.5px solid var(--muted); border-radius: 50%; }
.status-mark[data-status=test] { border-color: var(--warning); background: var(--warning-soft); box-shadow: inset 0 0 0 2px var(--surface); }
.status-mark[data-status=build] { border-color: var(--accent); background: var(--accent-soft); }
.status-mark[data-status=active] { border-color: var(--success); background: var(--success); box-shadow: inset 0 0 0 2px var(--surface); }
.status-mark[data-status=paused], .status-mark[data-status=killed] { border-style: dashed; }
.row-body { min-width: 0; flex: 1; }
.row-title { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; margin-bottom: 5px; }
.row-body h3 { font-size: 14px; font-weight: 600; }
.row-body p { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.55; }
.row-meta { display: flex; align-items: center; gap: 10px; margin-top: 9px; color: var(--muted); font-size: 11px; flex-wrap: wrap; }
.row-meta .selected-label { color: var(--accent); }
.row-arrow { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
.empty { padding: 38px 22px; text-align: center; }
.empty h3 { font-size: 15px; }
.empty p { max-width: 350px; font-size: 13px; margin: 9px auto 12px; }
.empty .text-button { justify-content: center; }
.navigation { position: fixed; bottom: 0; left: 0; width: 100%; display: grid; grid-template-columns: repeat(3,1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); z-index: 10; }
.nav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 11px; padding: 6px 10px; min-height: 52px; }
.nav-item svg { width: 20px; height: 20px; }
.nav-item.selected { color: var(--accent); font-weight: 600; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); position: absolute; top: 6px; left: calc(50% + 13px); }
.nav-count, .nav-caption, .nav-footer { display: none; }
label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 9px; }
input, textarea, select { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 11px 12px; color: var(--ink); font-size: 14px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; min-height: 100px; }
.field-help { font-size: 12px; line-height: 1.6; margin: 10px 0 18px; }
.context-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; }
.form-heading { margin-bottom: 22px; }
.form-heading p { font-size: 13px; margin-top: 6px; }
.context-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.context-footer .field-help { margin: 0; }
.settings-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-top: 20px; }
.settings-block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; }
.settings-block h2 { margin-bottom: 15px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.setting-row span { color: var(--muted); }
.setting-row strong { font-weight: 550; text-align: right; }
.settings-block .field-help { margin-bottom: 0; }
.settings-block .button { margin-top: 20px; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px 26px; width: min(620px,calc(100% - 32px)); max-height: calc(100dvh - 44px); background: var(--surface); color: var(--ink); margin: auto; box-shadow: 0 16px 60px #14111640; overflow-y: auto; overscroll-behavior: contain; }
.panel::backdrop { background: #141116aa; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 10px; }
.panel h2 { font-size: 23px; line-height: 1.35; letter-spacing: -.4px; margin-bottom: 13px; }
.panel h3 { font-size: 14px; margin: 16px 0 7px; }
.detail-intro { font-size: 14px; line-height: 1.6; color: var(--ink); margin: 16px 0; }
.detail-section { border-top: 1px solid var(--line-soft); padding-top: 1px; margin-top: 19px; }
.detail-section p { font-size: 13px; white-space: pre-wrap; }
.detail-section ul { font-size: 13px; line-height: 1.7; padding-left: 18px; color: var(--muted); }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 22px 0; }
.detail-actions .button { font-size: 12px; }
.detail-actions .full { grid-column: 1/-1; }
.detail-source { font-size: 11px; color: var(--muted); margin-top: 22px; }
.source-link { color: var(--accent); display: block; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; margin: 9px 0; text-decoration: underline; text-underline-offset: 3px; }
.form-field { margin: 17px 0; }
.form-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.form-footer .button { min-width: 110px; }
.job-running { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; border-left: 3px solid var(--accent-solid); }
.job-running h3 { margin: 10px 0 7px; font-size: 17px; }
.job-running p { font-size: 13px; }
.job-running .button { margin-top: 17px; min-height: 38px; font-size: 12px; }
.job-status { color: var(--muted); font-size: 11px; white-space: nowrap; padding: 3px 7px; background: var(--sidebar); border-radius: 4px; }
.job-status[data-state=complete] { color: var(--success); background: var(--success-soft); }
.job-status[data-state=running], .job-status[data-state=queued] { color: var(--accent); background: var(--accent-soft); }
.job-status[data-state=failed], .job-status[data-state=interrupted] { color: var(--danger); background: var(--danger-soft); }
.result-text { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.result-text p { color: var(--ink); font-size: 14px; margin: 12px 0; }
.result-text h3 { font-size: 16px; margin-top: 23px; }
.result-text ul { padding-left: 20px; }
.result-text a { color: var(--accent); }
.gate { max-width: 500px; padding: 46px 0; }
.gate p { margin: 16px 0 22px; font-size: 14px; }
.toast { position: fixed; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 12px 17px; border-radius: 7px; font-size: 13px; line-height: 1.5; max-width: calc(100% - 32px); width: max-content; z-index: 30; box-shadow: 0 4px 18px #14111640; }
.preview-banner { font-size: 11px; text-align: center; color: var(--muted); background: var(--sidebar); border-bottom: 1px solid var(--line); padding: 5px 12px; }
@media (min-width: 950px) {
 .shell { display: grid; grid-template-columns: 218px minmax(0,1fr); grid-template-rows: auto 1fr; }
 .topbar { grid-column: 1/-1; padding-left: 24px; padding-right: 32px; }
 #main { grid-column: 2; grid-row: 2; padding: 34px 40px 60px; }
 .view { max-width: 1000px; margin: 0 auto; }
 .navigation { grid-column: 1; grid-row: 2; position: sticky; align-self: start; top: 0; left: auto; width: auto; height: calc(100dvh - 64px); display: flex; flex-direction: column; gap: 5px; border-top: 0; border-right: 1px solid var(--line); background: var(--sidebar); padding: 25px 14px 18px; }
 .nav-caption { display: block; color: var(--muted); font-size: 11px; margin: 0 12px 9px; }
 .nav-item { flex-direction: row; justify-content: flex-start; gap: 10px; font-size: 13px; min-height: 42px; padding: 10px 12px; text-align: left; }
 .nav-item svg { width: 18px; height: 18px; }
 .nav-item.selected { background: var(--surface); box-shadow: 0 1px 2px #14111618; }
 .nav-count { display: inline; margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
 .nav-dot { position: static; margin-left: auto; }
 .nav-footer { display: block; margin-top: auto; padding: 16px 12px 0; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
 .nav-footer span { font-weight: 600; }
 .nav-footer p { font-size: 11px; line-height: 1.55; margin-top: 5px; }
 .toast { bottom: 24px; }
}
@media (min-width: 1440px) { .shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
@media (max-width: 649px) {
 .header-note { display: none; }
 .topbar { min-height: 58px; padding-left: 16px; padding-right: 16px; gap: 10px; }
 .brand { font-size: 14px; gap: 8px; }
 .brand-mark { width: 28px; height: 28px; }
 .health { font-size: 11px; gap: 5px; }
 #main { padding: 23px 16px 104px; }
 .page-heading { flex-wrap: wrap; gap: 17px; margin-bottom: 20px; }
 h1 { font-size: 25px; }
 .actions-row { width: 100%; display: grid; grid-template-columns: 1.15fr 1fr; }
 .button { min-height: 44px; font-size: 13px; }
 .active-project { padding: 17px 18px; margin-bottom: 20px; }
 .active-project h3 { font-size: 18px; }
 .active-description { font-size: 12px; }
 .project-next { margin-top: 15px; padding-top: 12px; }
 .active-footer { margin-top: 9px; }
 .active-footer .focus-note { font-size: 10px; }
 .list-toolbar { padding: 13px 15px 10px; gap: 8px; flex-wrap: wrap; }
 .list-toolbar .section-title { flex: 1; }
 .list-tools { display: contents; }
 .list-tools .icon-button { order: 1; width: 38px; height: 38px; }
 .search-box { order: 2; width: 100%; height: 38px; }
 .search-box input { font-size: 13px; }
 .filters { padding: 0 15px; gap: 22px; }
 .filter { min-height: 44px; font-size: 12px; }
 .idea-row, .job-row { padding: 16px 15px; gap: 10px; }
 .row-leading { width: 14px; margin-top: 4px; }
 .row-title { display: block; }
 .row-title .stage { display: none; }
 .row-body h3 { font-size: 14px; }
 .row-body p { font-size: 12px; }
 .row-meta { margin-top: 8px; gap: 8px; font-size: 10px; }
 .row-meta .mobile-stage { display: inline-flex; font-size: 10px; padding: 2px 6px; }
 .row-meta .row-updated { display: none; }
 .row-arrow { width: 14px; height: 14px; }
 .context-card, .settings-block { padding: 18px; }
 .context-footer { align-items: flex-start; flex-direction: column; gap: 14px; }
 .context-footer .button { width: 100%; }
 .settings-grid { grid-template-columns: 1fr; gap: 14px; }
 .panel { width: calc(100% - 24px); padding: 16px 18px 22px; border-radius: 11px; max-height: calc(100dvh - 32px); }
 .panel h2 { font-size: 21px; }
 .panel .icon-button { width: 44px; height: 44px; }
 .form-footer .button { flex: 1; min-width: 0; }
 .detail-actions { gap: 8px; }
 .detail-actions .button { font-size: 12px; padding: 10px 8px; }
 .job-running { padding: 18px; }
 .job-row { align-items: flex-start; }
 .job-status { margin-top: 3px; font-size: 10px; }
 .quiet-label { font-size: 11px; }
}
@media (min-width: 650px) { .row-meta .mobile-stage { display: none; } }
@media (max-width: 359px) { #main { padding-left: 12px; padding-right: 12px; } .topbar { padding-left: 12px; padding-right: 12px; } .brand { font-size: 13px; } .health { font-size: 10px; } .button { padding-left: 10px; padding-right: 10px; } }
@media (hover: hover) and (pointer: fine) {
 .button.primary:hover { background: var(--accent-hover); }
 .button.secondary:hover, .icon-button:hover { background: var(--sidebar); }
 .idea-row:hover, .job-row:hover { background: var(--bg); }
 .text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
 .nav-item:not(.selected):hover { background: var(--line-soft); }
}
@media (prefers-reduced-motion: reduce) { .button:active { transform: none; } }

@media (min-width:360px) and (max-width:649px) {
 .list-toolbar { flex-wrap:nowrap; }
 .list-toolbar .section-title { flex:1; white-space:nowrap; }
 .list-tools { display:flex; gap:5px; }
 .list-tools .icon-button { order:initial; }
 .search-box { order:initial; width:120px; }
}
@media (max-width:649px) {
 .active-description, .active-footer .focus-note { display:none; }
 .active-footer { justify-content:flex-end; margin-top:6px; }
 .project-next { margin-top:11px; padding-top:10px; }
 input, textarea, select, .search-box input { font-size:16px; }
 .row-meta, .row-meta .mobile-stage, .job-status { font-size:11px; }
}

/* Clip only text: icons and focus outlines retain their readable solid accent. */
h1, .brand > span:not(.brand-mark), .gradient-label,
.filter.selected, .nav-item.selected > span:not(.nav-count):not(.nav-dot),
.row-meta .selected-label, .source-link, .result-text a, .panel h2 {
 background-image: var(--text-gradient);
 background-clip: text;
 -webkit-background-clip: text;
 color: transparent;
 -webkit-text-fill-color: transparent;
 text-decoration-color: var(--accent);
}
h1, .brand > span:not(.brand-mark), .gradient-label, .panel h2 { width: fit-content; }
::selection { background: #514259; color: var(--ink); }
@media (forced-colors: active) {
 h1, .brand > span:not(.brand-mark), .gradient-label, .filter.selected,
 .nav-item.selected > span:not(.nav-count):not(.nav-dot), .row-meta .selected-label,
 .source-link, .result-text a, .panel h2 {
  background-image: none; color: CanvasText; -webkit-text-fill-color: CanvasText;
 }
}

/* Overview modules share the same palette and use saved records only. */
.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:22px; }
.stat-card { display:flex; flex-direction:column; align-items:flex-start; gap:5px; min-width:0; text-align:left; border:1px solid var(--line); background:var(--surface); border-radius:var(--radius); padding:17px 18px; color:var(--ink); }
.stat-label { font-size:12px; color:var(--muted); }
.stat-value { font-size:29px; font-weight:600; line-height:1.3; letter-spacing:-.8px; font-variant-numeric:tabular-nums; }
.stat-note { font-size:11px; color:var(--muted); }
.dashboard-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.dashboard-card { min-width:0; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); padding:20px 22px; margin-bottom:18px; }
.module-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; min-height:25px; }
.module-heading .text-button { min-height:32px; }
.module-note { font-size:12px; margin-top:12px; }
.focus-description { font-size:13px; margin-top:8px; }
.dashboard-focus { margin-bottom:18px; }
.focus-actions { display:flex; flex-wrap:wrap; gap:9px; align-items:center; margin-top:19px; }
.focus-actions .text-button { margin-left:auto; }
.decision-summary { font-size:12px; margin-top:13px; }
.decision-summary span { color:var(--muted); }
.stage-chart { display:flex; align-items:center; gap:22px; min-height:182px; }
.donut { position:relative; width:154px; flex-shrink:0; aspect-ratio:1; }
.donut svg { width:100%; height:100%; stroke-width:16px; }
.donut-track { stroke:var(--line-soft); }
.chart-segment { stroke-width:16px; stroke-linecap:butt; }
.donut-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.donut-center strong { font-size:28px; font-weight:600; font-variant-numeric:tabular-nums; }
.donut-center span { font-size:11px; color:var(--muted); }
.chart-legend { flex:1; min-width:0; }
.legend-row { display:flex; align-items:center; gap:8px; width:100%; border:0; background:none; color:var(--muted); padding:6px 0; text-align:left; font-size:12px; min-height:29px; }
.legend-row strong { margin-left:auto; font-weight:550; font-variant-numeric:tabular-nums; color:var(--ink); }
.legend-row:disabled { cursor:default; opacity:.6; }
.chart-swatch { width:7px; height:7px; border-radius:50%; flex-shrink:0; background:var(--muted); }
.chart-segment[data-status=explore] { stroke:#b2a8c6; }
.chart-swatch[data-status=explore] { background:#b2a8c6; }
.chart-segment[data-status=test] { stroke:#d4be97; }
.chart-swatch[data-status=test] { background:#d4be97; }
.chart-segment[data-status=build] { stroke:#d7acba; }
.chart-swatch[data-status=build] { background:#d7acba; }
.chart-segment[data-status=active] { stroke:#abc7b5; }
.chart-swatch[data-status=active] { background:#abc7b5; }
.chart-segment[data-status=paused] { stroke:#aaa0ae; }
.chart-swatch[data-status=paused] { background:#aaa0ae; }
.chart-segment[data-status=killed] { stroke:#a27f88; }
.chart-swatch[data-status=killed] { background:#a27f88; }
.outcome-row { margin:15px 0; }
.outcome-head { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:12px; margin-bottom:7px; }
.outcome-head strong { color:var(--ink); font-weight:550; }
.outcome-track, .budget-track { height:5px; border-radius:4px; overflow:hidden; background:var(--line-soft); }
.outcome-track > span, .budget-track > span { display:block; height:100%; border-radius:4px; background:var(--accent); }
.outcome-track [data-outcome=supported] { background:var(--success); }
.outcome-track [data-outcome=rejected] { background:var(--danger); }
.outcome-track [data-outcome=inconclusive] { background:var(--warning); }
.outcome-track [data-outcome=unclassified] { background:var(--muted); }
.chart-empty { font-size:12px; margin-bottom:18px; }
.evidence-grid { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.evidence-grid h3 { font-size:12px; font-weight:600; color:var(--muted); margin-bottom:13px; }
.evidence-item { border-bottom:1px solid var(--line-soft); padding:9px 0 11px; }
.evidence-item:last-child { border-bottom:0; }
.evidence-item p, p.evidence-item { font-size:13px; color:var(--ink); }
.evidence-caption { display:block; font-size:11px; color:var(--muted); margin-top:5px; }
.evidence-item .source-link { display:inline-block; font-size:11px; margin:4px 0 0; }
.experiment-row { display:flex; align-items:flex-start; gap:14px; width:100%; background:none; color:var(--ink); border:0; border-top:1px solid var(--line-soft); padding:16px 0; text-align:left; }
.experiment-row:first-child { border-top:0; }
.experiment-status { flex-shrink:0; font-size:11px; border-radius:4px; background:var(--sidebar); padding:3px 7px; color:var(--muted); margin-top:3px; max-width:142px; }
.experiment-status[data-state=running] { color:var(--accent); background:var(--accent-soft); }
.experiment-status[data-outcome=supported] { color:var(--success); background:var(--success-soft); }
.experiment-status[data-outcome=rejected] { color:var(--danger); background:var(--danger-soft); }
.experiment-status[data-outcome=inconclusive] { color:var(--warning); background:var(--warning-soft); }
.activity-row { display:grid; grid-template-columns:85px minmax(0,1fr); gap:4px 10px; width:100%; border:0; border-bottom:1px solid var(--line-soft); background:none; text-align:left; padding:11px 0; color:var(--ink); }
.activity-row:last-child { border-bottom:0; }
.activity-type, .activity-date { font-size:11px; color:var(--muted); }
.activity-title { font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.activity-date { grid-column:2; }
.budget-value { font-size:29px; font-weight:600; letter-spacing:-.8px; }
.budget-track { margin:16px 0; }
.experiment-module > select { max-width:360px; margin-bottom:10px; }
.experiment-project-label { font-size:12px; color:var(--muted); margin-bottom:6px; }
.experiment-result-fields { margin-top:20px; padding-top:2px; border-top:1px solid var(--line); }
.handoff-text { font-family:inherit; font-size:13px; line-height:1.65; min-height:300px; }
.stage-filter-note { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:7px 20px; background:var(--accent-soft); font-size:12px; }
.stage-filter-note .text-button { min-height:34px; }
.navigation { grid-template-columns:repeat(4,1fr); }
@media (hover:hover) and (pointer:fine) {
 .stat-card:hover, .experiment-row:hover, .activity-row:hover { background:var(--bg); }
 .legend-row:not(:disabled):hover { color:var(--ink); }
}
@media (min-width:950px) {
 .stage-chart { gap:16px; }
 .donut { width:142px; }
}
@media (max-width:1100px) and (min-width:950px) {
 .stage-chart { gap:11px; } .donut { width:114px; }
 .dashboard-card { padding:18px; }
}
@media (max-width:649px) {
 .stats-grid { grid-template-columns:1fr 1fr; gap:10px; margin-bottom:16px; }
 .stat-card { padding:13px 15px; } .stat-value { font-size:27px; }
 .dashboard-grid, .evidence-grid { grid-template-columns:1fr; gap:0; }
 .dashboard-card { padding:17px 18px; margin-bottom:16px; }
 #overview-view .page-heading { flex-wrap:nowrap; gap:12px; }
 #overview-discover { flex-shrink:0; padding:10px 12px; font-size:12px; min-height:42px; }
 #overview-view .heading-copy p { font-size:12px; max-width:160px; }
 .focus-actions { display:grid; grid-template-columns:1fr; margin-top:16px; gap:8px; }
 .focus-actions .text-button { margin-left:0; justify-content:center; }
 .stage-chart { gap:20px; min-height:184px; } .donut { width:130px; }
 .evidence-grid > div + div { margin-top:20px; }
 .legend-row { min-height:32px; }
 .experiment-row { flex-direction:column; gap:8px; padding:14px 0; }
 .experiment-status { margin-top:0; max-width:none; }
 .activity-row { grid-template-columns:80px minmax(0,1fr); }
 .navigation { padding-left:6px; padding-right:6px; }
 .nav-item { padding-left:5px; padding-right:5px; }
 .handoff-text { font-size:16px; }
 .stage-filter-note { padding-left:15px; padding-right:15px; }
}
@media (max-width:359px) {
 .stage-chart { gap:12px; } .donut { width:110px; }
 .dashboard-card { padding:15px; }
 #overview-view .heading-copy p { max-width:140px; }
}
