:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --canvas: #f5f6f8;
  --surface: #ffffff;
  --surface-muted: #f8f9fb;
  --surface-blue: #f2f5ff;
  --text: #111318;
  --text-secondary: #555b66;
  --text-muted: #7b818c;
  --border: #dfe2e8;
  --border-strong: #c8ccd4;
  --blue: #003bff;
  --blue-hover: #002fd1;
  --blue-soft: #e9efff;
  --green: #16794d;
  --green-soft: #eaf7f0;
  --yellow: #8b5a00;
  --yellow-soft: #fff5d8;
  --red: #c52c3a;
  --red-soft: #fff0f1;
  --radius: 8px;
  --radius-sm: 5px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
form { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
h2 { margin-bottom: 6px; font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
p { color: var(--text-secondary); line-height: 1.55; }
code { color: #33405f; font-family: "SFMono-Regular", Consolas, monospace; font-size: .88em; }
.visually-hidden { width: 1px; height: 1px; padding: 0; position: absolute; left: 0; top: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.topbar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.topbar-inner { width: min(calc(100% - 48px), 1280px); height: 60px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; }
.brand-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark-large { width: 42px; height: 42px; border-radius: 8px; font-size: 18px; }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { font-size: 14px; letter-spacing: -.01em; }
.brand small { margin-top: 3px; color: var(--text-muted); font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.account { display: flex; align-items: center; gap: 10px; }
.account-name { color: var(--text-secondary); font-size: 13px; }
.container { width: min(calc(100% - 48px), 1280px); margin: 0 auto; padding: 40px 0 80px; }

.eyebrow { margin-bottom: 8px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lead { max-width: 700px; margin-bottom: 0; color: var(--text-secondary); font-size: 15px; }
.muted { color: var(--text-muted); }
.page-heading { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-heading-compact { margin-bottom: 22px; }
.page-heading code { display: inline-block; margin-top: 2px; }
.heading-meta { margin-bottom: 11px; display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 13px; }
.heading-actions, .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.breadcrumbs { margin-bottom: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--text-muted); font-size: 12px; }
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }

.experiment-titlebar { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.experiment-title { min-width: 0; display: flex; align-items: flex-start; gap: 12px; }
.experiment-title h1 { margin: 0 0 5px; font-size: clamp(26px, 2.6vw, 36px); }
.experiment-title-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--text-muted); font-size: 11px; }
.experiment-icon { width: 29px; height: 29px; margin-top: 4px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.experiment-tabs { margin: 0 0 18px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--border); }
.experiment-tabs a { min-height: 46px; padding: 0 2px; display: inline-flex; align-items: center; position: relative; color: var(--text-secondary); font-size: 12px; font-weight: 600; text-decoration: none; }
.experiment-tabs a:hover { color: var(--blue); }
.experiment-tabs a.active { color: var(--text); }
.experiment-tabs a.active::after { content: ""; height: 2px; position: absolute; left: 0; right: 0; bottom: -1px; background: var(--blue); }
.experiment-workspace { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(420px, 1fr); gap: 16px; align-items: start; }
.workspace-panel { padding: 0; overflow: hidden; }
.workspace-heading { min-height: 72px; padding: 22px 24px; display: flex; align-items: center; border-bottom: 1px solid var(--border); }
.workspace-heading h2 { margin: 0; font-size: 21px; }
.overview-panel > .state-banner { margin: 20px 24px 0; }
.information-grid { margin: 0; padding: 22px 24px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 34px; }
.information-grid div { min-width: 0; display: grid; grid-template-columns: minmax(120px, .75fr) minmax(0, 1.25fr); gap: 12px; align-items: center; }
.information-grid dt { color: var(--text-muted); font-size: 12px; }
.information-grid dd { min-width: 0; margin: 0; color: var(--text); font-size: 12px; overflow-wrap: anywhere; }
.workspace-section { padding: 24px; border-top: 1px solid var(--border); }
.workspace-section-heading { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.workspace-section-heading h3 { margin: 0; font-size: 16px; }
.workspace-section-heading > span { color: var(--text-muted); font-size: 11px; }
.workspace-section .metric-grid { margin: 0; }
.steps-horizontal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.compact-history .history-row { min-height: 50px; }

.parameters-panel { position: sticky; top: 76px; }
.parameter-section { padding: 22px 24px; border-top: 1px solid var(--border); }
.workspace-heading + .parameter-section { border-top: 0; }
.parameter-section-heading { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.parameter-section-heading h3 { margin: 0; font-size: 16px; }
.parameter-section-heading p { margin: 3px 0 0; color: var(--text-muted); font-size: 10px; }
.parameter-section-heading > a { color: var(--blue); font-size: 11px; font-weight: 600; text-decoration: none; }
.parameter-section-heading > span { color: var(--text-muted); font-size: 10px; }
.parameter-list { margin: 0; display: grid; gap: 13px; }
.parameter-list > div { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(0, 1.2fr); gap: 18px; align-items: center; }
.parameter-list dt { color: var(--text-muted); font-size: 12px; }
.parameter-list dd { min-width: 0; margin: 0; color: var(--text); font-size: 12px; }
.coverage-value { display: grid; grid-template-columns: minmax(90px, 1fr) auto; gap: 10px; align-items: center; }
.coverage-value progress { height: 6px; }
.coverage-value strong { font-size: 12px; }
.parameter-variants .variant-row { padding: 14px 0; }
.compact-manual-form { gap: 11px; }
.compact-manual-form .field input, .compact-manual-form .field select { min-height: 38px; }
.new-run-section > p { margin-bottom: 14px; font-size: 11px; }
.parameter-danger { margin: 18px 24px 24px; }

.button { min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--text); font-size: 13px; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.button-primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.button-primary:hover { border-color: var(--blue-hover); background: var(--blue-hover); }
.button-secondary { border-color: #aab9f5; background: var(--surface-blue); color: #173489; }
.button-secondary:hover { border-color: var(--blue); color: var(--blue); }
.button-ghost { border-color: var(--border); background: var(--surface); color: var(--text-secondary); }
.button-ghost:hover { border-color: var(--border-strong); color: var(--text); }
.button-danger { border-color: #efb6bd; background: var(--red-soft); color: var(--red); }
.button-compact { min-height: 32px; padding: 0 10px; font-size: 12px; }
.button-wide { width: 100%; }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid rgba(0,59,255,.2); outline-offset: 2px; }

.panel, .auth-card, .confirm-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.panel { padding: 24px; }
.notice { margin-bottom: 22px; padding: 13px 16px; display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.notice-index { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 750; }
.notice p { margin: 0; display: grid; }
.notice strong { font-size: 12px; }
.notice span { margin-top: 1px; color: var(--text-muted); font-size: 11px; }

.experiments-panel { min-width: 0; max-width: 100%; padding: 0; overflow: hidden; }
.table-panel-heading { margin: 0; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.table-panel-heading h2 { margin: 0; }
.table-panel-heading p { margin: 3px 0 0; font-size: 12px; }
.table-count { min-width: 28px; height: 24px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--surface-muted); color: var(--text-secondary); font-size: 11px; font-weight: 700; }
.table-wrap { width: 100%; max-width: 100%; display: block; overflow-x: auto; }
.experiments-table { width: 100%; min-width: 960px; border-collapse: collapse; text-align: left; }
.experiments-table th { padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-muted); color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.experiments-table td { padding: 15px 16px; border-bottom: 1px solid #eceef2; color: var(--text-secondary); font-size: 12px; vertical-align: middle; }
.experiments-table tbody tr:last-child td { border-bottom: 0; }
.experiments-table tbody tr:hover { background: #fafbff; }
.experiment-name { display: grid; gap: 4px; color: var(--text); text-decoration: none; }
.experiment-name strong { font-size: 13px; }
.experiment-name:hover strong, .row-action:hover { color: var(--blue); }
.strategy-cell { max-width: 210px; }
.row-action { color: var(--blue); font-size: 12px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.empty-state { padding: 52px 24px; display: grid; justify-items: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty-state p { max-width: 500px; }
.empty-mark { width: 44px; height: 44px; margin-bottom: 16px; border: 1px solid #b8c5ff; border-radius: 50%; background: var(--blue-soft); }

.status { width: fit-content; padding: 4px 8px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-running { background: var(--green-soft); color: var(--green); }
.status-paused { background: var(--yellow-soft); color: var(--yellow); }
.status-completed { background: #eef0f3; color: #606672; }
.status-draft { background: var(--blue-soft); color: #2443a8; }
.state-banner { margin-bottom: 16px; padding: 13px 16px; display: flex; align-items: center; gap: 10px 22px; border: 1px solid var(--border); border-left: 3px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.state-banner strong { white-space: nowrap; font-size: 13px; }
.state-banner span { color: var(--text-secondary); font-size: 12px; line-height: 1.45; }
.state-running { border-left-color: var(--green); }
.state-paused { border-left-color: #d69b20; }

.metric-grid { margin-bottom: 16px; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.metric-card { min-height: 118px; padding: 20px; display: grid; align-content: space-between; border-right: 1px solid var(--border); }
.metric-card:last-child { border-right: 0; }
.metric-card span, .metric-card small { color: var(--text-muted); font-size: 11px; }
.metric-card strong { margin: 8px 0 2px; font-size: 30px; letter-spacing: -.04em; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .75fr); gap: 16px; align-items: start; }
.detail-main, .detail-aside { display: grid; gap: 16px; }
.panel-heading { margin-bottom: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin: 0; font-size: 20px; }
.panel-heading p { margin-bottom: 0; }
.panel-intro { max-width: 720px; margin: -6px 0 20px; font-size: 12px; }
.coverage, .tag { padding: 4px 8px; border-radius: 999px; background: var(--blue-soft); color: #2949a8; font-size: 10px; font-weight: 700; }
.variant-list { display: grid; }
.variant-row { padding: 17px 0; display: grid; gap: 8px; border-top: 1px solid #eceef2; }
.variant-row:first-child { padding-top: 0; border-top: 0; }
.variant-row:last-child { padding-bottom: 0; }
.variant-title, .variant-meta { display: flex; align-items: center; gap: 9px; }
.variant-title strong { margin-left: auto; }
.variant-meta { justify-content: space-between; color: var(--text-muted); font-size: 10px; }
.variant-meta strong { color: var(--text-secondary); }
progress { width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 999px; background: #e9ebef; }
progress::-webkit-progress-bar { background: #e9ebef; }
progress::-webkit-progress-value { border-radius: 999px; background: var(--blue); }
progress::-moz-progress-bar { border-radius: 999px; background: var(--blue); }
.summary-card h2, .version-card h2 { font-size: 17px; }
.steps-list { margin: 18px 0; padding: 0; display: grid; gap: 14px; list-style: none; }
.steps-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.steps-list li > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #b8c5ff; border-radius: 50%; color: var(--blue); font-size: 10px; font-weight: 750; }
.steps-list p { margin: 0; display: grid; gap: 3px; }
.steps-list strong { color: var(--text); font-size: 12px; }
.steps-list small { color: var(--text-muted); line-height: 1.45; }
.summary-list { margin: 0; padding-top: 16px; display: grid; gap: 12px; border-top: 1px solid var(--border); }
.summary-list div { display: grid; gap: 2px; }
.summary-list dt { color: var(--text-muted); font-size: 10px; }
.summary-list dd { margin: 0; font-size: 12px; font-weight: 650; }
.version-card p:not(.eyebrow) { font-size: 12px; }
.danger-zone { border: 1px solid #efc4c8; border-radius: var(--radius); background: var(--red-soft); }
.danger-zone summary { min-height: 44px; padding: 0 15px; display: flex; align-items: center; color: var(--red); font-size: 12px; font-weight: 700; cursor: pointer; }
.danger-zone > div { padding: 0 15px 15px; }
.danger-zone p { font-size: 11px; }

.manual-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; align-items: end; }
.manual-form .button { width: fit-content; margin-bottom: 1px; }
.manual-list { margin-top: 20px; border-top: 1px solid var(--border); }
.manual-row { min-height: 62px; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #eceef2; }
.manual-row > div { display: grid; gap: 3px; }
.manual-row strong { font-size: 12px; }
.manual-row small { color: var(--text-muted); }
.empty-inline { margin: 18px 0 0; font-size: 11px; }
.history { display: grid; }
.history-row { min-height: 54px; display: grid; grid-template-columns: 10px 1fr; gap: 11px; position: relative; }
.history-row:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 16px; bottom: -3px; width: 1px; background: var(--border); }
.history-dot { width: 9px; height: 9px; margin-top: 5px; border: 2px solid var(--surface); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px #9eb0f4; }
.history-row div { display: grid; align-content: start; gap: 4px; }
.history-row strong { font-size: 12px; }
.history-row small { color: var(--text-muted); font-size: 10px; }

.settings-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .65fr); gap: 16px; align-items: start; }
.settings-main { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.settings-main > .panel { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.settings-main > .panel:last-child { border-bottom: 0; }
.settings-aside { display: grid; gap: 12px; position: sticky; top: 76px; }
.form-section { padding: 0; }
.section-heading { margin: 0; padding: 17px 20px; display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--border); background: var(--surface-muted); }
.section-heading h2 { margin: 0 0 3px; font-size: 15px; }
.section-heading p { margin: 0; font-size: 11px; }
.section-number { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #b8c5ff; border-radius: 50%; background: var(--surface); color: var(--blue); font-size: 10px; font-weight: 750; }
.form-section > .form-stack, .form-section > .field, .form-section > .radio-group { margin: 20px; }
.form-stack { display: grid; gap: 17px; }
.field { display: grid; gap: 6px; color: var(--text-secondary); }
.field-short { max-width: 250px; }
.field-label { color: var(--text); font-size: 12px; font-weight: 650; }
.field small, .field-help { color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.field-help { margin: 0; }
.field input, .field textarea, .field select { width: 100%; min-height: 42px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); padding: 9px 11px; transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { min-height: 116px; resize: vertical; font-family: "SFMono-Regular", Consolas, monospace; line-height: 1.55; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #9299a5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,59,255,.1); outline: none; }
.field input[readonly] { background: var(--surface-muted); color: var(--text-muted); cursor: not-allowed; }
.input-suffix { display: grid; grid-template-columns: 1fr 40px; }
.input-suffix input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-suffix > span { display: grid; place-items: center; border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-muted); color: var(--text-secondary); font-size: 12px; font-weight: 650; }
.variant-editor { display: grid; gap: 7px; }
.variant-editor-header, .variant-editor-row { display: grid; grid-template-columns: minmax(150px, 1fr) 145px 125px; gap: 9px; align-items: center; }
.variant-editor-header { padding: 0 3px; color: var(--text-muted); font-size: 10px; }
.variant-editor-row { padding: 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-muted); }
.variant-editor-row .field { gap: 0; }
.control-choice { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-secondary); font-size: 10px; font-weight: 650; cursor: pointer; }
.control-choice:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: #19389d; }
.control-choice input, .radio-card input { accent-color: var(--blue); }
.radio-group { display: grid; gap: 8px; }
.radio-card { min-height: 84px; padding: 14px; display: grid; grid-template-columns: 18px 1fr; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.radio-card:has(input:checked) { border-color: #7f99ff; background: var(--surface-blue); }
.radio-card input { width: 16px; height: 16px; margin: 2px 0 0; }
.radio-card span { display: grid; gap: 4px; }
.radio-card strong { font-size: 12px; }
.radio-card small { color: var(--text-muted); font-size: 10px; line-height: 1.45; }
.help-card { padding: 20px; }
.help-card h2 { font-size: 15px; }
.help-card > p { font-size: 11px; }
.formula { display: grid; gap: 6px; color: var(--text-secondary); font-size: 11px; }
.formula b { color: var(--text-muted); }
.formula strong { color: var(--blue); font-size: 13px; }
.sticky-actions { display: grid; gap: 8px; }

.alert { margin-bottom: 16px; padding: 12px 14px; display: grid; gap: 3px; border: 1px solid; border-radius: var(--radius-sm); }
.alert strong { font-size: 12px; }
.alert span { font-size: 11px; line-height: 1.5; }
.alert-error { border-color: #efb6bd; background: var(--red-soft); color: #a8202e; }
.alert-success { border-color: #b4dbc7; background: var(--green-soft); color: #12613e; }
.alert-warning { border-color: #ead09a; background: var(--yellow-soft); color: #76500c; }
.alert-neutral { border-color: var(--border); background: var(--surface-muted); color: var(--text-secondary); }
.global-feedback { margin-top: -16px; }
.auth-layout, .confirm-layout { min-height: calc(100vh - 180px); display: grid; place-items: center; }
.auth-card { width: min(100%, 420px); padding: 30px; }
.auth-brand { margin-bottom: 22px; }
.auth-card h1 { font-size: 28px; }
.auth-card .form-stack { margin-top: 24px; }
.confirm-card { width: min(100%, 700px); padding: 30px; }
.confirm-card h1 { font-size: 30px; }
.version-transition { margin: 24px 0; display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; gap: 12px; }
.version-transition > div { padding: 14px; display: grid; gap: 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-muted); }
.version-transition small, .version-transition span { color: var(--text-muted); font-size: 10px; }
.transition-line { height: 1px; background: var(--border-strong); }
.check-list { margin: 0 0 22px; padding: 0; display: grid; gap: 10px; list-style: none; }
.check-list li { padding-left: 21px; position: relative; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.check-list li::before { content: ""; width: 8px; height: 4px; position: absolute; left: 2px; top: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

@media (max-width: 960px) {
  .detail-layout, .settings-layout, .experiment-workspace { grid-template-columns: 1fr; }
  .settings-aside { position: static; }
  .parameters-panel { position: static; }
  .detail-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .danger-zone { grid-column: 1 / -1; }
  .notice { grid-template-columns: auto 1fr; }
}

@media (max-width: 640px) {
  .topbar-inner, .container { width: min(calc(100% - 28px), 1280px); }
  .topbar-inner { height: 56px; }
  .brand small, .account-name { display: none; }
  .container { padding-top: 26px; }
  .global-feedback { margin-top: -6px; }
  .page-heading, .experiment-heading, .state-banner { align-items: stretch; flex-direction: column; }
  .experiment-titlebar { align-items: stretch; flex-direction: column; }
  .experiment-title { align-items: flex-start; }
  .experiment-icon { width: 24px; height: 24px; }
  .experiment-tabs { gap: 20px; overflow-x: auto; }
  .experiment-tabs a { white-space: nowrap; }
  .page-heading > .button { width: 100%; }
  .heading-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .heading-actions .button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 104px; border-right: 0; border-bottom: 1px solid var(--border); }
  .metric-card:last-child { border-bottom: 0; }
  .detail-aside { grid-template-columns: 1fr; }
  .workspace-heading { min-height: 60px; padding: 18px; }
  .overview-panel > .state-banner { margin: 16px 18px 0; }
  .information-grid { padding: 18px; grid-template-columns: 1fr; gap: 12px; }
  .information-grid div { grid-template-columns: 120px minmax(0, 1fr); }
  .workspace-section, .parameter-section { padding: 18px; }
  .steps-horizontal { grid-template-columns: 1fr; gap: 14px; }
  .parameter-list > div { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
  .parameter-danger { margin: 16px 18px 18px; }
  .variant-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .panel, .auth-card, .confirm-card { padding: 18px; }
  .experiments-panel { padding: 0; }
  .table-panel-heading { padding: 15px 16px; }
  .manual-form { grid-template-columns: 1fr; }
  .manual-form .button { width: 100%; }
  .manual-row { align-items: flex-start; flex-direction: column; }
  .section-heading { padding: 15px 16px; }
  .form-section > .form-stack, .form-section > .field, .form-section > .radio-group { margin: 16px; }
  .variant-editor-header { display: none; }
  .variant-editor-row { grid-template-columns: 1fr; }
  .control-choice { justify-content: flex-start; padding: 0 11px; }
  .version-transition { grid-template-columns: 1fr; }
  .transition-line { width: 1px; height: 20px; margin: -3px auto; }
  .form-actions { display: grid; }
  .form-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
