@font-face {
  font-family: "Cell Lab Serif";
  src: local("Songti SC"), local("STSong"), local("SimSun");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f6f0;
  --surface: #fffefa;
  --ink: #192b25;
  --muted: #4e6057;
  --quiet: #586b60;
  --line: #d9ded3;
  --teal: #26745d;
  --teal-dark: #225442;
  --teal-soft: #e3eee6;
  --amber: #8b552a;
  --amber-soft: #f7ecdd;
  --radius-panel: 16px;
  --radius-control: 8px;
  --ease-out: cubic-bezier(.2, .75, .3, 1);
  --heading-font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --display-font: "Cell Lab Serif", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --body-font: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.65 var(--body-font); }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .52; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading-font); line-height: 1.3; text-wrap: balance; }
h2 { font-size: 23px; font-weight: 680; }
h3 { font-size: 16px; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 5; translate: 0 -150%; background: var(--surface); padding: 8px 14px; }
.skip:focus { translate: none; }
.shell, .header-inner, .footer-inner { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; white-space: nowrap; }
.brand-mark { width: 24px; height: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; transform: rotate(-7deg); }
.brand-mark i { background: var(--teal-dark); border-radius: 75% 54% 65% 52%; }
.brand-mark i:nth-child(2) { background: #5d876e; border-radius: 75% 38% 62% 42%; transform: scale(.8); }
.brand-mark i:nth-child(3) { background: #7d9b75; transform: scale(.7); }
.brand-mark i:nth-child(4) { background: #303b2a; }
.brand-word { font: 780 19px/1 var(--body-font); letter-spacing: .075em; }
.brand-divider { width: 1px; height: 18px; background: var(--line); margin-inline: 2px; }
.brand-product { color: var(--muted); font-size: 14px; font-weight: 650; }
.navigation { display: flex; gap: clamp(12px, 2.4vw, 36px); align-items: stretch; }
.navigation a { color: var(--muted); font-size: 14px; font-weight: 620; padding: 23px 2px 21px; border-bottom: 2px solid transparent; white-space: nowrap; }
.navigation a[aria-current="page"] { border-color: var(--teal-dark); color: var(--teal-dark); }
.environment { justify-self: end; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12px; font-weight: 650; color: var(--muted); }
.environment i { width: 7px; height: 7px; border-radius: 50%; background: #a37037; }
.screen { padding: 32px 0 52px; }
#view-overview { padding-top: 48px; }

.hero { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 70px); }
.hero-copy { padding-block: 16px; }
.hero-figure { position: relative; border-radius: var(--radius-panel); background: #081a19; overflow: hidden; isolation: isolate; aspect-ratio: 1.47; }
.hero-figure img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 56% 50%; filter: hue-rotate(-18deg) saturate(.75); }
.hero-figure figcaption { position: absolute; right: 14px; bottom: 14px; border-radius: 6px; padding: 4px 9px; background: #091b18; color: #e7eee4; font-size: 11px; letter-spacing: .035em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--teal-dark); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.eyebrow > span { width: 20px; height: 1px; background: currentColor; }
.hero h1 { font: 700 clamp(38px, 5.2vw, 72px)/1.16 var(--display-font); letter-spacing: -.045em; text-wrap: initial; }
.hero-subtitle { font-size: clamp(17px, 2.05vw, 25px); line-height: 1.45; margin-top: 14px; font-weight: 640; }
.hero-text { max-width: 29em; margin-top: 15px; color: var(--muted); line-height: 1.8; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-actions { margin-top: 24px; gap: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 8px 15px; border-radius: var(--radius-control); border: 1px solid transparent; font-weight: 650; white-space: nowrap; transition: background-color 140ms var(--ease-out), border-color 140ms var(--ease-out), transform 120ms var(--ease-out); }
.button span { font: 500 17px/1 var(--body-font); }
.primary { background: var(--teal-dark); color: #fff; }
.secondary { background: var(--surface); color: var(--teal-dark); border-color: #becbbf; }
.compact { padding: 6px 11px; font-size: 13px; }

.section { margin-top: 38px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 14px; }
.section-head p, .panel-heading p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--teal-dark); font-size: 14px; font-weight: 660; flex: 0 0 auto; }
.text-link span { font-size: 16px; }
.home-flow { padding-top: 12px; border-top: 1px solid var(--line); }
.step-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.step-card { padding: 15px 13px 16px; display: grid; align-content: start; gap: 5px; transition: background-color 140ms var(--ease-out); }
.step-card + .step-card { border-left: 1px solid var(--line); }
.step-card .step-index { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.step-index code { font: 700 12px/1.5 var(--mono); color: var(--teal-dark); }
.step-index .arrow { color: var(--teal-dark); font-size: 15px; line-height: 1; }
.step-card strong { font: 680 15px/1.4 var(--heading-font); }
.step-card small { color: var(--muted); line-height: 1.5; font-size: 12px; }
.home-bottom { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; margin-top: 26px; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.abstract-card { padding-block: 10px; }
.protocol-card { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.abstract-card h2 { font-size: 18px; }
.readout-items { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.readout-items p { color: var(--muted); margin: 3px 0 0 13px; font-size: 13px; }
.dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; margin-right: 6px; vertical-align: 2px; }
.dot.teal { background: var(--teal); }
.dot.amber { background: var(--amber); }

@media (hover: hover) {
  .navigation a:hover { color: var(--teal-dark); }
  .primary:not(:disabled):hover { background: #163e30; }
  .secondary:not(:disabled):hover, .step-card:hover { background: var(--teal-soft); }
  .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
}
.button:not(:disabled):active { transform: scale(.985); }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 4px 0 22px; }
.page-heading .eyebrow { margin-bottom: 8px; }
.page-heading h1 { font: 700 clamp(30px, 4.2vw, 47px)/1.26 var(--display-font); letter-spacing: -.035em; }
.page-heading > div > p:last-child { margin-top: 8px; color: var(--muted); }
.workflow-grid { display: grid; grid-template-columns: minmax(218px, .36fr) minmax(0,1fr); gap: 16px; align-items: start; }
.flow-progress { min-width: 135px; color: var(--teal-dark); font-size: 13px; font-weight: 680; }
progress { display: block; width: 100%; height: 8px; border: 0; margin-top: 5px; accent-color: var(--teal-dark); }
.stage-list { padding: 7px; display: grid; gap: 4px; }
.stage-button { border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; text-align: left; padding: 12px 10px; display: grid; grid-template-columns: 30px minmax(0,1fr) 15px; gap: 9px; align-items: center; width: 100%; color: var(--ink); }
.stage-button:hover, .stage-button[aria-current="step"] { background: var(--teal-soft); border-color: #c2d3c6; }
.stage-button small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.stage-number { color: var(--teal-dark); font: 700 13px/1.4 var(--mono); }
.stage-mark { color: var(--teal-dark); font-weight: 750; }
.workflow-detail { padding: clamp(17px, 3vw, 35px); }
.workflow-detail h2 { margin-top: 6px; font-size: 28px; }
.workflow-detail .lead { color: var(--muted); margin-top: 9px; max-width: 70ch; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 18px; }
.detail-box { min-width: 0; border-top: 1px solid var(--line); padding: 10px 6px 4px 0; }
.detail-box h3 { font-size: 13px; color: var(--teal-dark); margin-bottom: 3px; }
.detail-box p { color: var(--muted); font-size: 13px; }
.checklist { border: none; margin: 20px 0 12px; padding: 0; }
.checklist legend { font-weight: 700; padding-bottom: 6px; }
.checklist label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 0; cursor: pointer; }
.checklist input { accent-color: var(--teal-dark); flex: 0 0 17px; width: 17px; height: 17px; margin: 0; }
.workflow-actions { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 15px; }
.boundary-box { padding: 18px; margin-top: 15px; }
.boundary-box h2 { font-size: 18px; }
.roles { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 11px; }
.roles p { margin-top: 3px; color: var(--muted); font-size: 13px; }

.workbench-grid { display: grid; grid-template-columns: minmax(275px, .36fr) minmax(0,1fr); gap: 17px; align-items: start; }
.controls { padding: 17px 17px 12px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-heading h2, .controls h2 { font-size: 18px; }
.plain-button { background: transparent; color: var(--teal-dark); border: 0; border-radius: 5px; padding: 4px 2px; min-height: 36px; font-size: 13px; font-weight: 650; }
.plain-button:hover { text-decoration: underline; }
.controls fieldset { padding: 0; border: 0; margin: 16px 0 13px; min-width: 0; }
.controls legend, .field label, .range-field label { font-weight: 650; font-size: 13px; color: var(--muted); }
.controls legend { padding-bottom: 5px; }
.segmented { border: 1px solid var(--line); border-radius: calc(var(--radius-control) + 4px); padding: 3px; background: #edf0e8; display: flex; min-width: 0; }
.segmented label { cursor: pointer; flex: 1 1 50%; min-width: 0; }
.segmented label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label span, .segmented button { display: grid; place-items: center; text-align: center; padding: 5px 7px; min-height: 36px; font-size: 13px; font-weight: 650; border-radius: var(--radius-control); color: var(--muted); }
.segmented label input:checked + span, .segmented button[aria-pressed="true"] { color: var(--teal-dark); background: var(--surface); box-shadow: 0 1px 2px #233f3019; }
.segmented label input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.segmented button { border: 0; background: transparent; }
.field { display: grid; gap: 5px; margin-bottom: 12px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.field select { min-width: 0; background: var(--surface); color: var(--ink); border: 1px solid #bfc9bc; border-radius: var(--radius-control); min-height: 42px; width: 100%; padding: 5px 8px; font-size: 14px; }
.range-field { margin-top: 10px; }
.range-field label { display: flex; justify-content: space-between; align-items: center; gap: 5px; }
.range-field output { background: var(--teal-soft); color: var(--teal-dark); border-radius: 5px; padding: 1px 6px; font: 660 12px/1.6 var(--mono); }
.range-field input { display: block; accent-color: var(--teal-dark); width: 100%; margin: 5px 0 0; min-height: 30px; cursor: pointer; }
.range-label { display: flex; justify-content: space-between; margin-top: 0; font-size: 11px; color: var(--quiet); }
.divider { margin-top: 11px; height: 1px; background: var(--line); }
.select-inline { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; }
.select-inline select { width: 64px; }
.run-button { width: 100%; justify-content: space-between; }
.form-status { color: var(--muted); min-height: 19px; font-size: 12px; margin-top: 6px; }
.run-feedback { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.results-jump { display: none; flex: none; min-height: 44px; }
.workbench-results { display: grid; gap: 14px; min-width: 0; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); scroll-margin-block: 16px; }
.metric { padding: 13px 15px 14px; min-width: 0; }
.metric + .metric { border-inline-start: 1px solid var(--line); }
.metric small { color: var(--muted); display: block; font-size: 12px; }
.metric strong { font: 690 clamp(18px, 2.8vw, 32px)/1.2 var(--mono); letter-spacing: -.04em; display: block; margin: 5px 0 3px; }
.metric-decision strong { font-family: var(--heading-font); font-size: clamp(16px, 2.35vw, 26px); letter-spacing: normal; }
.metric strong.good { color: var(--teal-dark); }
.metric strong.review { color: var(--amber); }
.metric .metric-meta { color: var(--muted); font-size: 12px; }
.chart-panel { padding: 16px 15px 10px; min-width: 0; }
.chart-heading { align-items: flex-start; }
#chart { display: block; width: 100%; height: 268px; margin-top: 6px; touch-action: pan-y; }
.chart-legend { min-height: 28px; padding-left: 47px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px 14px; color: var(--muted); font-size: 11px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-item i { display: inline-block; width: 15px; height: 0; border-top: 2px solid var(--teal); }
.legend-item.dashed i { border-top-style: dashed; }
.legend-item.vertical i { width: 0; height: 12px; margin-inline: 5px; border-top: 0; border-left: 2px dashed var(--quiet); }
.legend-item.marker i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid #61817f; background: var(--surface); }
.ranking-panel { padding: 15px 15px 6px; min-width: 0; }
.ranking-panel .panel-heading { margin-bottom: 8px; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: -2px; }
table { border-collapse: collapse; text-align: left; min-width: 100%; font-size: 12px; }
td, th { border-bottom: 1px solid var(--line); padding: 8px 9px; white-space: nowrap; }
th { color: var(--muted); background: #eeefe8; font-weight: 650; }
td { color: var(--ink); }
.ranking-table td:nth-child(n+2):nth-child(-n+4) { font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tr.selected { background: var(--teal-soft); }
.candidate-button { border: 0; background: transparent; border-radius: 4px; color: var(--teal-dark); font: 650 12px/1.5 var(--mono); padding: 5px 0; min-height: 30px; }
.candidate-button:hover { text-decoration: underline; }
.status-pill { display: inline-flex; align-items: center; min-height: 20px; border-radius: 5px; padding: 1px 7px; font-size: 11px; font-weight: 660; }
.status-pill.advance { background: #dcebe0; color: #23533f; }
.status-pill.review { background: var(--amber-soft); color: #845427; }
.status-pill.hold, .status-pill.neutral { background: #eaece5; color: #4b5b51; }

.reports-grid { display: grid; grid-template-columns: 1.44fr 1fr; gap: 14px; align-items: start; }
.report-card { padding: 19px; margin-bottom: 14px; min-width: 0; }
.report-card .panel-heading { margin-bottom: 12px; }
.report-card .small { margin-top: 9px; }
.summary-list { margin: 11px 0 13px; }
.summary-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.summary-list dt, .report-explain { color: var(--muted); font-size: 13px; }
.summary-list dd { text-align: right; font-weight: 630; font-size: 13px; }
.report-explain { margin-bottom: 9px; }
.blind-scores { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; margin: 10px 0; }
.blind-score { padding: 10px; border: 1px solid var(--line); background: #f1f4ed; border-radius: var(--radius-control); }
.blind-score .number { display: block; font: 700 23px/1.2 var(--mono); color: var(--teal-dark); margin-top: 2px; }
#blind-actions { margin-top: 12px; }
.history-list { display: grid; }
.history-row { display: flex; gap: 8px 15px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding: 9px 0; color: var(--muted); }
.history-row strong { margin-right: auto; color: var(--ink); }
.history-row time { font-size: 12px; }
.methodology h2 { font-size: 18px; }
.methodology dl { margin-top: 10px; }
.methodology dl div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.methodology dt { font-weight: 680; }
.methodology dd { color: var(--muted); }
.reference-links { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 15px; margin-top: 12px; }
.reference-links a { font-size: 12px; color: var(--teal-dark); font-weight: 670; }
.reference-links a:hover { text-decoration: underline; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 10px; padding: 17px 0 22px; font-size: 12px; }
.footer-inner strong { color: var(--ink); }

@media (max-width: 1000px) {
  .shell, .header-inner, .footer-inner { width: calc(100% - 48px); }
  .hero { gap: 28px; }
  .step-card { padding-inline: 10px; }
}
@media (max-width: 780px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 0 8px; padding-top: 13px; }
  .environment { grid-area: 1 / 2; }
  .navigation { grid-column: 1 / -1; justify-content: space-between; gap: 7px; }
  .navigation a { min-height: 44px; padding: 11px 2px 8px; font-size: 13px; }
  #view-overview { padding-top: 24px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero-copy { padding-block: 0; }
  .hero-figure { max-height: 380px; }
  .workbench-grid, .reports-grid, .workflow-grid { grid-template-columns: minmax(0, 1fr); }
  .controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
  .controls .panel-heading, .controls .divider, .controls .run-button, .run-feedback { grid-column: 1 / -1; }
  .controls fieldset { margin-top: 12px; }
  .controls .field:has(#scenario) { align-self: center; margin: 0 0 6px; }
  .controls .field-row { align-self: center; }
  .controls .select-inline { grid-column: 1 / -1; }
  .results-jump { display: inline-flex; align-items: center; gap: 5px; }
  .step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step-card:nth-child(3n+1) { border-left: 0; }
  .step-card:nth-child(n+4) { border-top: 1px solid var(--line); }
  .stage-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage-button { padding: 8px 5px; grid-template-columns: minmax(0,1fr); gap: 2px; position: relative; }
  .stage-button .stage-mark { position: absolute; inset: 4px 5px auto auto; }
  .stage-button .stage-number { font-size: 11px; }
  .stage-button strong { font-size: 13px; display: block; }
  .stage-button small { display: none; }
}
@media (max-width: 520px) {
  .shell, .header-inner, .footer-inner { width: calc(100% - 32px); }
  .screen { padding-block: 20px 34px; }
  .hero h1 { font-size: clamp(32px, 9.7vw, 48px); }
  .hero-subtitle { font-size: 18px; margin-top: 9px; }
  .hero-text { font-size: 14px; margin-top: 11px; }
  .hero .eyebrow { margin-bottom: 9px; }
  .hero-actions { gap: 8px 14px; margin-top: 15px; }
  .hero-actions .button, .hero-actions .text-link { font-size: 13px; }
  .hero-figure { aspect-ratio: 1.64; border-radius: 12px; }
  .hero-figure figcaption { right: 8px; bottom: 8px; }
  .section { margin-top: 24px; }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-card:nth-child(n) { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .step-card:nth-child(-n+2) { border-top: 0; }
  .step-card:nth-child(odd) { border-left: 0; }
  .step-card { padding: 12px; }
  .step-card strong { font-size: 14px; }
  .home-bottom { grid-template-columns: 1fr; gap: 10px; }
  .protocol-card { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line); }
  .page-heading { padding-bottom: 15px; align-items: flex-start; flex-wrap: wrap; }
  .page-heading > div > p:last-child { font-size: 14px; }
  .detail-grid, .roles { grid-template-columns: 1fr; gap: 7px; }
  .controls, .report-card { padding: 14px; }
  .controls { display: block; }
  .controls .field:has(#scenario) { margin-bottom: 11px; }
  .field select { min-height: 44px; font-size: 16px; }
  .metric { padding: 10px 8px; }
  .metric .metric-meta { font-size: 11px; }
  .chart-heading { flex-wrap: wrap; align-items: flex-start; }
  .chart-panel, .ranking-panel { padding-inline: 12px; }
  #chart { height: 230px; }
  .chart-legend { padding-left: 5px; }
  .footer-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .button:not(:disabled):active { transform: none; }
}

@media (max-width: 380px) { .navigation { gap: 3px; } .navigation a { font-size: 12px; padding-inline: 0; } }

.workbench-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 14px; min-height: 54px; border-bottom: 1px solid var(--line); }
.workbench-nav .navigation a { padding-block: 13px 10px; }
.workbench-nav .project-return { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal-dark); font-weight: 650; font-size: 13px; }
.workbench-nav .project-return:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) {
  .workbench-nav .navigation { order: 3; width: 100%; }
  .workbench-nav .navigation a { padding-block: 9px 7px; }
}

.mechanism-layout {
  display: grid;
  grid-template-columns: minmax(240px, .42fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.mechanism-controls { align-self: start; }
.mechanism-controls .range-field { margin-top: 15px; }
.mechanism-note { color: var(--muted); font-size: 13px; margin-block: 8px 14px; }
.mechanism-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.mechanism-results dt { color: var(--muted); font-size: 12px; }
.mechanism-results dd { font: 680 22px/1.4 var(--heading-font); color: var(--teal-dark); }
.mechanism-plot { min-width: 0; }
#mechanism-graph { display: block; width: 100%; height: auto; margin-top: 4px; }
.mechanism-grid-lines { fill: none; stroke: #dfe5db; stroke-width: 1; }
.mechanism-axis { font: 13px system-ui, sans-serif; fill: #51645a; }
.myocyte-ca-line, .myocyte-activation-line, .myocyte-force-line, .myocyte-control-line {
  fill: none;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.myocyte-ca-line, .myocyte-ca-key { stroke: #176370; color: #176370; }
.myocyte-activation-line, .myocyte-activation-key { stroke: #925326; color: #925326; }
.myocyte-activation-line { stroke-dasharray: 6 4; }
.myocyte-force-line, .myocyte-force-key { stroke: #235c46; color: #235c46; }
.myocyte-force-line { stroke-width: 3.2; }
.myocyte-control-line, .myocyte-control-key { stroke: #65736c; color: #55675d; }
.myocyte-control-line { stroke-width: 1.8; stroke-dasharray: 1 5; }
.mechanism-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: 12px; }
.mechanism-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mechanism-legend span::before { content: ""; width: 15px; border-top: 2px solid currentColor; }
.mechanism-legend .myocyte-activation-key::before { border-top-style: dashed; }
.mechanism-legend .myocyte-force-key::before { border-top-width: 3px; }
.mechanism-legend .myocyte-control-key::before { border-top-style: dotted; }
.mechanism-methods { margin-top: 16px; }
@media (max-width: 720px) {
  .mechanism-layout { grid-template-columns: minmax(0,1fr); }
  .mechanism-controls { display: block; }
}
@media (max-width: 460px) {
  .mechanism-axis { font-size: 21px; }
  .workbench-nav .navigation { flex-wrap: wrap; }
}
