:root{--nav:#0e2241;--paper:#f2f6fc;--white:#fff;--ink:#182e4d;--muted:#536985;--line:#dce6f4;--blue:#145bc6}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.45 system-ui,sans-serif}.shell{min-height:100vh;display:grid;grid-template-columns:208px minmax(0,1fr)}aside{background:var(--nav);padding:23px 13px;color:#e9f2ff}aside strong{font-size:20px;padding-left:8px}aside p{margin:4px 8px 18px;color:#afc4e5}nav{display:grid;gap:4px}button,select,input{font:inherit;color:inherit}button,select,input:not([type=range]){background:white;border:1px solid var(--line);border-radius:8px;padding:8px 11px}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #4d83ff;outline-offset:2px}aside button{text-align:left;background:transparent;border-color:transparent;color:#e9f2ff}aside button[aria-current=page]{background:#1b56a4}main{min-width:0}.top,.title,.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:space-between}.top[hidden]{display:none}.top{padding:13px 22px;background:#fff;border-bottom:1px solid var(--line)}.top div,.actions div{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.wrap{padding:20px 22px}.title h1{font-size:clamp(22px,3vw,32px);line-height:1.1;margin:0}.title p{margin:5px 0;color:var(--muted)}.primary{background:var(--blue);color:white;border-color:var(--blue);font-weight:650}.steps,.metrics,.panels{display:grid;gap:9px;margin:14px 0}.steps{grid-template-columns:repeat(auto-fit,minmax(95px,1fr))}.steps button{border-top:3px solid var(--stage,#145bc6);text-align:left;background:#fff}.metrics{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.card{padding:13px;background:#fff;border:1px solid var(--line);border-radius:10px;min-width:0;box-shadow:0 2px 5px #193f6810}.card h2{font-size:15px;margin:0 0 10px}.card p,small{color:var(--muted)}.metric strong{font-size:23px;display:block;margin-top:3px}.panels{grid-template-columns:1.18fr 1fr 1fr}.card svg{width:100%;height:144px}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0}.tabs button[aria-pressed=true]{background:#e7f0ff;border-color:#a5c4ef;color:#174f9d}.fields{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}label{display:grid;gap:5px;margin:6px 0}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:8px 4px;border-bottom:1px solid var(--line)}.scroll{overflow-x:auto}.bar{display:grid;grid-template-columns:66px 1fr 42px;gap:8px;align-items:center;margin:8px 0}.bar i{height:8px;background:var(--bar,#367de1);border-radius:10px}.actions{margin-top:14px}.tag{background:#e5f5ed;color:#146647;padding:5px 8px;border-radius:8px}.donut{width:112px;aspect-ratio:1;border-radius:50%;background:conic-gradient(#317df4 0 32%,#14a89f 32% 57%,#8759d7 57% 75%,#eb9a33 75% 100%);display:grid;place-items:center;margin:4px auto 10px}.donut b{display:grid;place-items:center;width:70px;aspect-ratio:1;border-radius:50%;background:white} @media(max-width:950px){.panels{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:690px){.shell{grid-template-columns:1fr}aside{padding:9px}aside p{display:none}nav{display:flex;flex-wrap:wrap}.panels{grid-template-columns:1fr}.wrap,.top{padding:13px}}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.chips button{background:#176bcf;color:#fff;border-color:#176bcf;padding:5px 9px}.chip-picker{min-width:0}.chip-picker select{width:100%}
.source-choice{display:flex;align-items:center;gap:8px}.source-details{margin-top:12px}
.card svg.analytic{height:auto;max-height:240px}.analytic text{fill:#536985;font:9px system-ui}.bar{grid-template-columns:56px 1fr 50px}.donut b{font-size:12px}
.sample-table th,.sample-table td{white-space:nowrap;padding-inline:12px}.card .chart-wide svg.analytic{max-height:none;display:block}.chart-wide .analytic text{font-size:12px}
.stage-icon{width:19px;height:19px;flex:none;vertical-align:middle}.steps button,aside nav button{display:flex;align-items:center;gap:7px}.steps .stage-icon{color:var(--stage)}aside .stage-icon{color:#9dc7fa}.attribution{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:clamp(14px,4vw,40px);max-width:760px;margin:10px auto}.attribution .donut{width:clamp(108px,18vw,200px);margin:0}.attribution .donut b{width:64%;text-align:center;font-size:clamp(12px,1.6vw,19px)}.attribution .donut small{display:block;font-size:10px;font-weight:500}.panels .attribution{grid-template-columns:1fr;justify-items:center;gap:8px}.panels .attribution .breakdown{width:100%}.panels .attribution .donut{width:100px}.panels .attribution .donut b{font-size:12px}.breakdown .bar{grid-template-columns:65px minmax(0,1fr) 55px}.bar-track{display:block;background:#edf2fa;border-radius:20px}.bar-track i{display:block}.bar-value{text-align:right;font-variant-numeric:tabular-nums}@media(max-width:520px){.attribution{grid-template-columns:1fr;justify-items:center}.attribution .breakdown{width:100%}}
.panels{align-items:start}.signed-contribution{display:grid;gap:7px}.signed-contribution p{margin:0 0 5px}.signed-axis{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin:0 67px 0 61px}.signed-row{display:grid;grid-template-columns:55px minmax(35px,1fr) 64px;gap:6px;align-items:center;font-size:12px}.signed-row strong{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.signed-track{position:relative;height:12px;border-radius:4px;background:#eef3fa}.signed-track:after{content:"";position:absolute;left:50%;height:100%;border-left:1px solid #637891}.signed-track i{position:absolute;height:100%;border-radius:3px}
.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.18fr) repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;align-items:start}.dashboard-stack{display:grid;gap:10px;min-width:0}.curve-table{margin-top:7px}.curve-table th,.curve-table td{font-size:12px}.dashboard-columns .attribution{grid-template-columns:1fr;justify-items:center;gap:8px}.dashboard-columns .attribution .breakdown{width:100%}.dashboard-columns .attribution .donut{width:100px}.dashboard-columns .attribution .donut b{font-size:12px}@media(max-width:900px){.dashboard-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:690px){.dashboard-columns{grid-template-columns:1fr}}
.dashboard-columns.dashboard-v2{grid-template-columns:repeat(12,minmax(0,1fr));align-items:stretch;gap:14px}.dashboard-v2>.card:nth-child(-n+2){grid-column:span 6}.dashboard-v2>.card:nth-child(n+3){grid-column:span 4}.dashboard-v2>.card:last-child{grid-column:span 12}.dashboard-v2 .card h2{padding-bottom:7px;border-bottom:1px solid var(--line)}.dashboard-v2 .attribution{grid-template-columns:auto minmax(0,1fr);justify-items:stretch}.dashboard-v2 .curve-details summary{cursor:pointer;margin-top:8px;color:var(--blue)}@media(max-width:820px){.dashboard-v2>.card:nth-child(n){grid-column:span 6}}@media(max-width:620px){.dashboard-v2>.card:nth-child(n){grid-column:span 12}}
.allocation-selected{background:#eaf2ff}.channel-link{padding:3px 5px;border:0;background:transparent;color:var(--blue);text-align:left}.channel-link[aria-pressed="true"]{font-weight:750;text-decoration:underline;text-underline-offset:3px}.run-warning{color:#885407;background:#fff4d9;border-radius:6px;padding:4px 8px}.allocation-table th,.allocation-table td{white-space:nowrap;font-variant-numeric:tabular-nums}
.channel-mapping-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:12px;align-items:end;margin:0 0 12px;padding:12px;border:1px solid var(--line,#d8e3f2);border-radius:10px}
.channel-mapping-row label{min-width:0;margin:0}.channel-remove{width:40px;height:40px;padding:0!important;font-size:23px;line-height:1;color:var(--muted);background:transparent}.channel-remove:hover,.channel-remove:focus-visible{color:#ab2925;background:#ffefee;border-color:#eda8a5}
.background-option{display:flex;align-items:center;gap:8px;width:fit-content}.background-option input{margin:0;flex:none}.lift-settings{margin:12px 0}.lift-settings textarea{width:100%;font:inherit}
.constraint-table{min-width:480px}.constraint-table th,.constraint-table td{padding:8px 10px}.constraint-table input[type=number]{width:6.5em}.constraint-table input[type=checkbox]{margin:0;vertical-align:middle}
button:disabled{opacity:.48;cursor:not-allowed}select:disabled,input:disabled{opacity:.55;cursor:not-allowed}
.history-restore{margin-top:14px}
.run-actions{margin:12px 0}.run-action-row{display:grid;grid-template-columns:minmax(4.5em,7em) minmax(0,16em) auto;align-items:center;justify-content:start;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}.run-action-row label{display:block;margin:0;font-weight:650}.run-action-row input{width:100%;min-width:0}.run-action-row button{justify-self:start}@media(max-width:560px){.run-action-row{grid-template-columns:4.5em minmax(0,1fr)}.run-action-row input+button{grid-column:2}}
.results-sections{border-bottom:1px solid var(--line);padding-bottom:8px;margin-bottom:0}.results-topics{padding-inline-start:12px;margin-top:10px}.response-channels{border-top:1px solid var(--line);padding-top:10px}
.operation-overlay[hidden],.operation-status[hidden]{display:none}.operation-overlay{position:fixed;inset:0;z-index:30;display:grid;justify-items:center;align-items:start;padding:clamp(90px,22vh,200px) 16px 16px;background:#10244080}.operation-status{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;justify-content:space-between;padding:14px 16px;background:var(--white);border:1px solid var(--line);border-radius:10px}.operation-overlay .operation-status{width:min(100%,380px);box-shadow:0 12px 36px #10244040}.operation-status progress{accent-color:var(--blue);max-width:100%}#background-progress{margin:0 22px 20px}.dataset-status{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;overflow-wrap:anywhere}.dataset-upload{display:inline-flex;position:relative;gap:10px;align-items:center;margin:0 8px 0 0}.dataset-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.dataset-upload span{border:1px solid var(--line);border-radius:8px;padding:8px 11px}.dataset-upload:focus-within span{outline:2px solid var(--blue);outline-offset:2px}

/* Shared styling for lifecycle screens and their nested tabs. */
:root {
  --paper: #f4f7fc;
  --ink: #142742;
  --line: #d9e3f1;
  --blue: #215dd2;
  --focus: #376fe1;
}
body {font-family: Inter, system-ui, sans-serif}
aside {background: linear-gradient(165deg,#10284c,#0b1c36 70%)}
nav {gap: 5px}
nav button {min-height: 40px; border-radius: 10px; transition: background-color .16s ease, color .16s ease}
nav button:hover:not(:disabled) {background-color: #1a365f}
nav button[aria-current=page] {background: #2455a2; box-shadow: inset 3px 0 #8bb4ff}
nav button:disabled {opacity: .47}
.wrap {padding: clamp(16px,2.3vw,32px)}
.top {background: #fbfdff}
.title {align-items: baseline; margin-bottom: 12px}
.title h1 {letter-spacing: -.035em; font-weight: 740}
.title small {background: #eaf0f9; border-radius: 999px; padding: 4px 10px}
.card {padding: clamp(14px,1.7vw,24px); border-radius: 16px; box-shadow: 0 2px 5px #182b4d08, 0 8px 24px #182b4d08}
.card h2 {font-size: 1.12rem; letter-spacing: -.02em}
.tabs {gap: 8px; align-items: center}
.tabs button {font-weight: 600; min-height: 38px; line-height: 1.25}
.tabs button[aria-pressed=true] {background: #e6efff; color: #174ba8; border-color: #a6c2f8}
.tabs.results-sections {padding: 5px; border: 1px solid #dce6f4; border-radius: 13px; background: #eaf0f9; margin: 16px 0 12px}
.tabs.results-sections button {background: transparent; border-color: transparent}
.tabs.results-sections button[aria-pressed=true] {background: #fff; color: #174ba8; border-color: #c4d7f9; box-shadow: 0 2px 5px #234b831b}
.tabs.results-topics {padding: 0 0 8px; border-bottom: 1px solid var(--line); margin: 10px 0 16px}
.tabs.response-channels {padding: 0; border: 0}
.tabs.response-channels button {border-radius: 999px; min-height: 34px}
button,select,input:not([type=range]),textarea {border-radius: 9px}
button, .dataset-upload span {transition: background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
button:hover:not(:disabled),.dataset-upload:hover span {border-color: #9cb9ed; box-shadow: 0 2px 6px #19458914}
.primary {background: var(--blue); border-color: var(--blue)}
.primary:hover:not(:disabled) {background: #184cad; border-color: #184cad}
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {outline: 2px solid var(--focus); outline-offset: 2px}
label {font-weight: 550}
input,select,textarea {font-weight: 400}
table thead {background: #eef4fc}
th,td {padding: 9px 10px}
thead th {font-weight: 650}
tbody tr:nth-child(even) {background: #f8faff}
tbody tr:hover {background: #edf4ff}
.actions {border-top: 1px solid var(--line); padding-top: 13px}
@media(max-width: 690px) {
  .tabs {gap: 5px}
  .tabs button {padding-inline: 9px}
  .title {gap: 8px}
}
@media(prefers-reduced-motion: reduce) {
  button,.dataset-upload span {transition: none}
}

/* Form controls keep their native keyboard and accessibility behavior. */
:root {
  --control-border: #c9d6e8;
  --control-hover: #f0f5ff;
  --control-shadow: 0 1px 2px #13294b12;
  --danger: #a92042;
}
button, .dataset-upload span, input::file-selector-button {
  font-weight: 620;
  box-shadow: var(--control-shadow);
}
button, .dataset-upload span {min-height: 40px}
button:active:not(:disabled) {box-shadow: inset 0 1px 3px #15264a2b}
button:disabled, input:disabled, select:disabled, textarea:disabled {
  opacity: 1;
  color: #5c6d84;
  background: #edf1f7;
  border-color: #d9e2ee;
  box-shadow: none;
}
nav button, .tabs button {box-shadow: none}
nav button:disabled {background: transparent; color: #9baec9}
.wrap button:not(.primary):not(:disabled):hover {background-color: var(--control-hover)}
.wrap .tabs button[aria-pressed=true] {box-shadow: inset 0 -2px #6090f2}
.wrap .tabs.results-sections button[aria-pressed=true] {box-shadow: 0 2px 5px #234b831b}
input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea, select {
  border: 1px solid var(--control-border);
  background-color: #fcfdff;
  min-height: 40px;
  padding: 8px 11px;
}
select:not([multiple]) {
  appearance: none;
  min-width: 0;
  padding-inline-end: 2.3em;
  background-image: linear-gradient(45deg,transparent 50%,#4b6285 50%),linear-gradient(135deg,#4b6285 50%,transparent 50%);
  background-position: calc(100% - 17px) 52%,calc(100% - 12px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
select[multiple] {padding: 4px}
select[multiple] option {padding: 7px 9px; border-radius: 5px}
textarea {font: inherit; min-height: 7em; resize: vertical}
input[type=checkbox], input[type=radio] {
  accent-color: var(--blue);
  inline-size: 17px;
  block-size: 17px;
  flex: none;
  margin: 0;
}
input[type=checkbox]:not(:disabled),input[type=radio]:not(:disabled) {cursor: pointer}
label.background-option,label.source-choice {display: flex; gap: 10px; align-items: center}
.background-option {border: 1px solid var(--control-border); border-radius: 10px; padding: 9px 12px; background: #f8faff}
.background-option:has(input:checked) {background: #e8f1ff; border-color: #a6c2f8}
.dataset-upload span, input::file-selector-button {background: #edf4ff; color: #174ba8; border: 1px solid #bad0f4; border-radius: 9px; padding: 8px 11px}
.dataset-upload span {display: inline-flex; align-items: center}
input::file-selector-button {cursor: pointer; margin-inline-end: 10px}
.chips button {min-height: 30px; border-radius: 999px; color: #164992; background: #e7f0ff; border-color: #bcd2f8}
.channel-remove, #remove-selected-run, #confirm-remove-run {color: var(--danger); background: #fff5f7; border-color: #edc1cd}
.wrap :is(.channel-remove,#remove-selected-run,#confirm-remove-run):hover:not(:disabled) {background: #ffe8ee; border-color: #d98da3}
.actions {gap: 12px; justify-content: flex-end}
.actions small:empty {display: none}
.actions .primary {min-width: 9em}
progress {accent-color: var(--blue); block-size: 10px}
@media (forced-colors: active) {
  select:not([multiple]) {appearance: auto; background-image: none; padding-inline-end: 11px}
}

/* Indigo identifies the current location. Teal identifies actions. */
:root {
  --paper: #f5f5fa;
  --ink: #202238;
  --muted: #565a72;
  --line: #dddfee;
  --blue: #08786e;
  --focus: #6e54c6;
  --control-border: #cbcde0;
  --control-hover: #f0edf9;
}
aside {background: linear-gradient(155deg,#292345,#1c1b34 65%)}
aside p, aside .stage-icon {color: #c5b9ef}
nav button:hover:not(:disabled) {background: #3a315c}
nav button[aria-current=page] {background: #514185; box-shadow: inset 3px 0 #c0aaff}
nav button:disabled {
  opacity: 1;
  color: #c3bfd3;
  background: #ffffff08;
  border-color: transparent;
}
nav button:disabled .stage-icon {color: #ada5c4}
.nav-lock {display: none; position: relative; width: 10px; height: 8px; margin-inline-start: auto; margin-inline-end: 2px; border: 1px solid currentColor; border-radius: 2px; flex: none}
.nav-lock::before {content: ""; position: absolute; inset: -6px 1px auto; height: 6px; border: 1px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0}
nav button:disabled .nav-lock {display: inline-block}
.steps button:disabled {color: #565a72; opacity: 1; background: #f0eff5; border-color: transparent}
.tabs.results-sections {background: #eeecf7; border-color: #ddd8ed}
.tabs button[aria-pressed=true], .tabs.results-sections button[aria-pressed=true] {color: #49358e; background: #ebe5fa; border-color: #cbbceb}
.tabs.results-sections button[aria-pressed=true] {background: #fff}
.wrap .tabs button[aria-pressed=true] {box-shadow: inset 0 -2px #9b82db}
.primary:hover:not(:disabled) {background: #07635c; border-color: #07635c}
.tag {background: #ddf4ed; color: #116457}
.dataset-upload span,input::file-selector-button {background: #e7f4f1; border-color: #a8d5cc; color: #0d675e}
select:not([multiple]) {
  border-radius: 11px;
  background-color: #fdfcff;
  background-image: linear-gradient(45deg,transparent 50%,#62499e 50%),linear-gradient(135deg,#62499e 50%,transparent 50%),linear-gradient(#e9e3f5,#e9e3f5);
  background-position: calc(100% - 16px) 52%,calc(100% - 11px) 52%,calc(100% - 29px) center;
  background-size: 5px 5px,5px 5px,1px 55%;
}
select:not([multiple]):hover:not(:disabled) {border-color: #957bc9}
@supports (appearance: base-select) and selector(::picker(select)) {
  select:not([multiple]),select:not([multiple])::picker(select) {appearance: base-select}
  select:not([multiple]) {background-image: none; padding-inline-end: 10px; align-items: center}
  select:not([multiple])::picker-icon {color: #62499e; border-inline-start: 1px solid #e9e3f5; padding-inline-start: 8px}
  select:not([multiple])::picker(select) {border: 1px solid #d8cdec; border-radius: 12px; background: #fff; margin-block: 4px; padding: 4px; box-shadow: 0 10px 24px #25203b24}
  select:not([multiple]) option {padding: 8px 10px; border-radius: 7px}
  select:not([multiple]) option:is(:hover,:focus-visible,:checked) {background: #f0ebfa; color: #49358e}
}
@media (forced-colors: active) {
  select:not([multiple]),select:not([multiple])::picker(select) {appearance: auto; background-image: none}
}

/* Use tinted surfaces throughout the workspace to separate content from controls. */
:root {
  --paper: #e9e7f4;
  --workspace-surface: #f2effa;
  --form-surface: #f0edf8;
}
main {background: linear-gradient(145deg,#e7e1f5 0%,#efedf7 46%,#e4f1f0 100%)}
.top {background: #eee9f8; border-bottom-color: #d4c9e9}
.card {
  background: var(--workspace-surface);
  border-color: #d5cbea;
  box-shadow: 0 6px 20px #36265212;
}
.card h2 {color: #42316b}
.card.metric {background: #e6f4f1; border-color: #bfddd8}
.card.metric:nth-child(even) {background: #e9e2f7; border-color: #d7c8ed}
.steps button:not(:disabled) {background: #ece5f8}
.steps button:not(:disabled):hover {background: #e1d6f6}
.tabs.results-sections {background: #ded6ef; border-color: #cec0e8}
.tabs.results-sections button[aria-pressed=true] {background: #f3edf9}
.tabs:not(.results-sections) button:not([aria-pressed=true]):not(:disabled) {background: #ece8f6}
.wrap select,.wrap textarea,.wrap input:not([type=checkbox]):not([type=radio]):not([type=range]) {background-color: var(--form-surface)}
.wrap select:focus,.wrap textarea:focus,.wrap input:focus {background-color: #f8f5fc}
table thead {background: #dfd5ef}
tbody tr:nth-child(even) {background: #e9e3f3}
tbody tr:hover {background: #e2f1ef}
.background-option {background: #e5f2ef}
.operation-status {background: #f1ebfa}
@media (forced-colors: active) {
  main,.top,.card,.card.metric {background: Canvas}
}
/* Workspace layout and active-state accents. */
:root {--paper:#eeebf7;--line:#d9d1e7;--ink:#211b36;--focus:#754ec6}
.shell {grid-template-columns: 230px minmax(0,1fr)}
aside {background: #24203d; padding: 24px 14px}
aside strong {letter-spacing: -.035em}
nav button {min-height: 43px; padding-inline: 12px; font-weight: 600}
nav button:disabled {background: transparent; border-color: transparent; color: #b5afc7}
nav button[aria-current=page] {background: #644c9c; box-shadow: inset 3px 0 #c7afff}
main {background: linear-gradient(135deg,#ece3f8,#f3eff9 55%,#e0f2ed)}
.wrap {width: min(100%,1600px); margin-inline: auto}
.title h1 {font-size: clamp(25px,3vw,38px)}
.title small {background:#e8dcf6; color:#513478; font-weight:650}
.card:not(.metric) {background:#f5f0fb}
.card.metric {box-shadow: inset 0 3px #67b4a6,0 5px 14px #261f4510}
.card.metric:nth-child(even) {box-shadow: inset 0 3px #a18bd7,0 5px 14px #261f4510}
.tabs.results-sections {background:#e0d5f1; padding:6px; box-shadow:inset 0 1px 2px #39206012}
.tabs.results-sections button[aria-pressed=true] {background:#f8f3ff; color:#432878}
.tabs.results-topics button[aria-pressed=true] {background:#dfd1f4; color:#44257e}
.wrap .primary {background:#086f65; border-color:#086f65; box-shadow:0 3px 7px #09625833}
.wrap .primary:hover:not(:disabled) {background:#065a52}
.wrap .primary:disabled {background:#e6e4ee; border-color:#d5d0df; color:#6a6378; box-shadow:none}
.steps button:disabled {background:#eae6f1; border-color:transparent}
@media(max-width:690px){.shell{grid-template-columns:1fr}aside{padding:10px}.wrap{padding:14px}}
.actions .step-requirement:not(:empty){display:block;margin-inline-end:auto;padding:7px 11px;border-inline-start:3px solid #a486d9;border-radius:5px;background:#ebe2f6;color:#493664;font-weight:600;max-width:42ch}
.overview-controls,.project-save{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}.overview-controls{padding:10px 16px;background:#eee9f8;border-radius:12px}.overview-controls label{min-width:0}.overview-controls select{max-width:100%}#run-context{color:var(--muted);margin:8px 0 16px}.project-save{margin:10px 0}#project-status:empty{display:none}main>#project-status{display:block;margin:0 22px 12px}
.workflow-log{max-height:15rem;overflow:auto;margin:0;padding-left:1.5em}.workflow-log li{padding:5px 0}.workflow-log time{color:var(--muted);font-variant-numeric:tabular-nums;margin-right:.5em}
.analyst-help{margin:10px 0;color:var(--muted)}
.analyst-help summary{cursor:pointer;width:fit-content;font-weight:650;color:var(--blue)}
.analyst-help p,.analyst-help pre{margin:6px 0;padding:9px 12px;background:var(--paper);border-radius:8px}
.analyst-help pre{white-space:pre-wrap;overflow-wrap:anywhere}
.constraint-table output{display:block;color:var(--muted);font-size:.85em}
.sampling-presets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:12px;margin-block:16px 8px}
.sampling-presets button{display:grid;gap:5px;text-align:left;padding:14px 16px;background:#fbf8ff;border:1px solid #d3c5e7;border-radius:12px}
.sampling-presets button[aria-pressed=true]{background:#e6f5f1;border-color:#168276;box-shadow:inset 3px 0 #168276;color:#164c45}
.sampling-presets small,.sampling-note,#operation-detail{color:var(--muted)}
.operation-overlay .operation-status{display:grid;gap:10px;width:min(100%,420px);padding:20px;border-radius:14px;background:#faf6ff;border-color:#d3c5e7}
.operation-overlay .operation-status progress{width:100%;height:8px;accent-color:#086f65}
#operation-detail:empty{display:none}
.decision-warning,.comparison-ready,.project-preview{padding:11px 14px;border-radius:8px;border-inline-start:3px solid #976309;background:#fff0cc;color:#55390b!important}
.comparison-ready,.project-preview{background:#e6f5f1;border-inline-start-color:#168276;color:#164c45!important}
.decision-warning strong{display:block;margin-bottom:3px}
.health-status{display:inline-block;white-space:nowrap;padding:3px 8px;border-radius:20px;background:#e9e4f2;color:#483762}
.health-status[data-health="Passed"]{background:#dcf0e8;color:#165545}
.health-status[data-health="Needs review"]{background:#ffebc2;color:#68440c}
.project-actions,.project-copy{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.project-copy label{flex:1 1 15rem;min-width:0}
.project-copy{align-items:end;margin-top:10px}
.card .scroll tbody th[scope=row]{position:sticky;inset-inline-start:0;z-index:1;background:#f5f0fb}
.card .scroll :is(th,td):has(.health-status){white-space:nowrap}
.card td:has(.health-status)+td{font-variant-numeric:tabular-nums;text-align:right}
@media(max-width:690px){.project-actions button,.project-copy button,.sampling-presets button{min-height:44px}}

/* Analyst workspace refinements shared by dashboard and workflow screens. */
:root {
  --ink: #22213b;
  --muted: #56536d;
  --focus: #6240b0;
  --line: #d9d3e9;
}
main {background: linear-gradient(145deg, #ede9f8, #f7f5fa 58%, #e7f3f0)}
.wrap .title {gap: 8px 20px; margin-bottom: clamp(14px, 2vw, 24px)}
.title h1 {line-height: 1.15; text-wrap: balance}
.title p {max-width: 64ch}
.card:not(.metric) {background: #fbf9ff; border-color: var(--line); box-shadow: 0 2px 5px #2921410c, 0 8px 24px #2921410b}
.card h2 {color: #3e305e; line-height: 1.25}
.metrics {gap: clamp(8px, 1.2vw, 16px)}
.metric strong {line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere}
aside nav button:not([aria-current=page]):not(:disabled):hover {background: #383053}
aside nav button:disabled {opacity: 1; color: #bcb7ce}
aside nav button:focus-visible {outline-color: #d0baff}
.tabs.results-sections {background: #e8dff5; border-color: #d9cbea}
.tabs.results-topics button[aria-pressed=true] {box-shadow: inset 0 -2px #8564bf}
.wrap :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=range]):hover:not(:disabled) {
  border-color: #9a85c2;
}
.wrap :is(select, input[type=checkbox], input[type=radio]):not(:disabled) {cursor: pointer; accent-color: #17695f}
.wrap button:active:not(:disabled) {box-shadow: none}
.operation-overlay {align-items: center; padding: 16px; background: #211a3980}
.operation-overlay .operation-status {border-inline-start: 4px solid #16766c}
#background-progress {border-inline-start: 4px solid #16766c; background: #e5f5f0}
.result-scroll {max-height: min(60vh, 31rem); overflow: auto; border: 1px solid var(--line); border-radius: 10px}
.result-scroll thead th {position: sticky; top: 0; z-index: 1; background: #e8e0f1}
.result-scroll:focus-visible {outline: 2px solid var(--focus); outline-offset: 3px}
.result-number {text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums}
.table-export {margin-block-start: 10px}
.card .bar {grid-template-columns: minmax(72px, 12ch) minmax(0, 1fr) max-content}
.card .bar > :first-child {min-width: 0; overflow-wrap: anywhere}
.chart-wide svg {display: block; max-width: 100%}
@media (max-width: 690px) {
  .wrap :is(button, select), aside nav button {min-height: 44px}
  .title h1 {text-wrap: wrap}
  .overview-controls label {flex: 1 1 12rem}
}
@media (forced-colors: active) {
  .result-scroll thead th {background: Canvas}
  aside nav button:focus-visible {outline-color: Highlight}
}

/* Keep dense results and run management readable at narrow widths. */
.result-row-count,.activity-note {margin-block: 8px 0; color: var(--muted); font-size: .88rem}
.result-scroll tbody tr:nth-child(even) {background: #f3eff9}
.result-scroll tbody tr:hover {background: #e7f4f0}
.recent-projects > label {margin-block-start: 16px}
.recent-projects .project-actions {margin-block-start: 8px}
.recent-projects .project-feedback {padding: 10px 12px; border-radius: 8px; background: #eee7f7}
.workflow-log {margin-block-start: 8px}
.workflow-log li {padding: 8px 0; border-block-end: 1px solid var(--line)}
.workflow-log li:last-child {border-block-end: 0}
@media (max-width: 690px) {
  .wrap .tabs {flex-wrap: wrap}
  .wrap .tabs button {max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere}
  .recent-projects .project-copy button {width: 100%}
}

.dataset-status {padding: 12px 14px; border-radius: 10px; background: #eee7f7}
.dataset-status > span {min-width: 0; overflow-wrap: anywhere}
.dataset-actions {display: flex; flex-wrap: wrap; align-items: center; gap: 10px}
.dataset-actions .dataset-upload {margin: 0}
.dataset-actions a {display: inline-flex; min-height: 40px; align-items: center; padding-inline: 10px}
.selected-run-context {display: flex; flex-wrap: wrap; gap: 5px 18px; margin-block: 0 16px; padding: 10px 14px; border-inline-start: 3px solid #6e55a4; background: #eee7f7; border-radius: 8px; overflow-wrap: anywhere}
.selected-run-context span,.nav-status {font-size: .82em}
.nav-label {display: grid; min-width: 0; gap: 2px}
.nav-status {font-weight: 400}
.nav-status:empty {display: none}
.channel-mapping-row {grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto}
.channel-mapping-row > strong {grid-column: 1 / -1}
.field-warning {color: #784b0e}
.training-inline {margin-block: 14px; padding: 12px; border-inline-start: 4px solid #16766c}
.training-inline progress {max-width: 100%}
.chart-reader {display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px}
.chart-reader input {flex: 1 1 12rem; min-width: 0}
.chart-value {display: block; padding: 8px 10px; background: #eef1f8; border-radius: 6px; overflow-wrap: anywhere}
.run-history-list {max-height: 22rem}
.result-scroll .selected-history-run,.locked-channel {background: #dff2ed}
.locked-channel {padding: 6px 10px; border-radius: 6px}
.run-action-row > .card {grid-column: 1 / -1}
.wrap a:focus-visible,.wrap input[type=range]:focus-visible {outline: 2px solid var(--focus); outline-offset: 3px}
@media (max-width: 690px) {
  .channel-mapping-row {grid-template-columns: minmax(0,1fr)}
  .dataset-actions > * {min-height: 44px}
}

.public-demo-header {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px clamp(16px,3vw,40px);background:#25203d;color:#fff}
.public-demo-header div {display:grid;gap:4px}
.public-demo-header strong {font-size:1.12rem}
.public-demo-header span {color:#e5e0f1}
.public-demo-header a {color:#fff;background:#17695f;padding:10px 14px;border-radius:8px}
.public-demo-version {padding:10px 20px;color:var(--muted);font-size:.85rem}
