:root {
  color-scheme: light;
  --paper: #f5f3eb;
  --surface: #fbfaf5;
  --ink: #1c2924;
  --muted: #626d63;
  --line: #d7dcd0;
  --brand: #315c49;
  --brand-dark: #183a2c;
  --tint: #e5edda;
  --e: #2e6347;
  --i: #a46135;
  --path: #315c49;
  --fixed: #183a2c;
  --field: #8a9b84;
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, select { font: inherit; }
a { color: var(--brand-dark); }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #608339; outline-offset: 3px; }
.shell { width: min(1360px, 100% - 72px); margin-inline: auto; }
.topbar { background: #fbfaf5; border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 740; letter-spacing: -.02em; }
.top-link { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 660; }
.top-link span { margin-left: 3px; color: var(--brand); }
.top-link:hover, .footer a:hover { text-decoration: underline; }
.hero { padding: 31px 0 22px; }
.hero-kicker, .eyebrow { color: var(--brand-dark); font-size: 11px; font-weight: 790; letter-spacing: .14em; }
.hero-kicker { display: flex; align-items: center; gap: 9px; }
.hero-kicker span { width: 18px; height: 2px; background: var(--brand); border-radius: 1px; }
h1, h2, h3, p, figure { margin: 0; }
h1 { margin: 9px 0 8px; max-width: 1000px; font-size: clamp(2rem, 4.3vw, 3.6rem); font-weight: 750; line-height: 1.1; letter-spacing: -.052em; }
h1 em { color: var(--brand); font-style: normal; }
.hero p { color: var(--muted); max-width: 720px; font-size: 15px; }
.model-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.model-choice { flex: 0 1 322px; display: flex; align-items: center; gap: 11px; min-height: 62px; padding: 9px 13px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 11px; text-align: left; }
.model-choice:hover { border-color: #8ca37a; }
.model-choice[aria-pressed="true"] { background: var(--tint); border-color: #8ca37a; }
.model-number { display: grid; flex: 0 0 33px; height: 33px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 700; }
.model-choice[aria-pressed="true"] .model-number { background: var(--brand); color: #fbfaf5; border-color: var(--brand); }
.model-choice strong, .model-choice small { display: block; }
.model-choice strong { font-size: 14px; line-height: 1.25; }
.model-choice small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.workspace { display: grid; grid-template-columns: minmax(262px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; scroll-margin: 14px; }
.results { display: grid; min-width: 0; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.panel-header h2 { margin-top: 1px; font-size: 21px; font-weight: 740; line-height: 1.25; letter-spacing: -.03em; }
.settings { padding: 17px; }
.settings-head { margin-bottom: 14px; }
#settings-form > label, .scrub label { font-size: 13px; font-weight: 720; }
select { width: 100%; display: block; min-height: 37px; margin-top: 4px; padding: 4px 8px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.param-group { padding: 0; border: 0; min-width: 0; margin: 16px 0 0; }
.param-group legend { padding: 0; margin-bottom: 7px; width: 100%; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .10em; font-weight: 760; }
.param-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.param-grid.single { grid-template-columns: 1fr; }
.param.wide { grid-column: 1/-1; }
.param label { display: block; color: var(--ink); font-size: 11.5px; font-weight: 650; }
.param-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.param-meta output { color: var(--brand-dark); font-size: 11.5px; font-weight: 730; white-space: nowrap; font-variant-numeric: tabular-nums; }
input[type=range] { display: block; width: 100%; height: 19px; margin: 2px 0 0; accent-color: var(--brand); cursor: ew-resize; }
.actions { display: flex; align-items: stretch; gap: 8px; margin-top: 16px; }
.primary, .secondary { min-height: 38px; padding: 6px 11px; border: 1px solid transparent; border-radius: 7px; white-space: nowrap; font-size: 12px; font-weight: 730; }
.primary { flex: 1; color: #fbfaf5; background: var(--brand); }
.primary::before { content: ""; display: inline-block; margin-right: 6px; border: 4px solid transparent; border-left: 6px solid currentColor; border-right: 0; }
.primary:hover { background: var(--brand-dark); }
.secondary { color: var(--brand-dark); border-color: #c5d0b9; background: #f3f5ed; }
.secondary:hover { background: var(--tint); }
.run-status { min-height: 17px; color: var(--muted); margin-top: 8px; font-size: 11.5px; }
.visuals, .stability, .notes { padding: 17px 20px; }
.visual-head { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.plot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 18px; }
figure { min-width: 0; }
figcaption h3, .notes h3 { font-size: 14px; font-weight: 740; }
figcaption p { font-size: 12px; color: var(--muted); margin-top: 1px; min-height: 18px; }
.plot { height: 217px; margin-top: 4px; }
.plot svg { display: block; overflow: hidden; }
.chart-frame { fill: #f5f6ed; stroke: #d7dcd0; }
.chart-grid { stroke: #e5e9df; stroke-width: 1; }
.chart-tick, .axis-title { fill: var(--muted); font-size: 11px; }
.axis-title { font-weight: 680; }
.series { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.trace-e { stroke: var(--e); stroke-width: 2.5; }
.trace-i { stroke: var(--i); stroke-width: 2.2; stroke-dasharray: 6 4; }
.phase-path { stroke: var(--path); stroke-width: 2.7; }
.phase-field { fill: none; stroke: var(--field); opacity: .65; stroke-width: 1; }
.phase-null-e { stroke: var(--e); stroke-width: 1.6; stroke-dasharray: 5 4; opacity: .76; }
.phase-null-i { stroke: var(--i); stroke-width: 1.6; stroke-dasharray: 2 4; opacity: .85; }
.zero-line, .scrub-guide { stroke: #6d7b66; stroke-width: 1; stroke-dasharray: 3 4; }
.chart-hit { fill: transparent; cursor: crosshair; touch-action: manipulation; }
.legend { min-height: 29px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 11px; padding-top: 4px; color: var(--muted); font-size: 11.5px; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.key { width: 14px; height: 0; border-top: 2px solid var(--key, var(--path)); }
.key.dash { border-top-style: dashed; }
.key.dot { border-top-style: dotted; }
.key.circle, .key.diamond { width: 8px; height: 8px; border: 1.5px solid var(--fixed); border-radius: 50%; background: var(--fixed); margin-inline: 3px; }
.key.diamond { border-radius: 0; background: #fbfaf5; transform: rotate(45deg); }
.scrub { margin-top: 8px; padding: 9px 11px; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; }
.scrub-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1px 12px; }
.scrub output { font-size: 12px; color: var(--brand-dark); font-weight: 660; font-variant-numeric: tabular-nums; }
.scrub input { margin-top: 3px; }
.stability p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 9px; text-align: left; }
th, td { padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); font-size: 12px; font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-weight: 660; }
td:last-child { padding-right: 0; }
tr:last-child td { border-bottom: 0; }
.state { font-weight: 720; }
.state::before { content: "◇"; margin-right: 5px; color: var(--brand); }
.state.stable::before { content: "●"; color: var(--i); }
.notes { margin-top: 16px; scroll-margin: 16px; }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 14px; }
.notes-grid article { min-width: 0; }
.notes-grid article + article { border-left: 1px solid var(--line); padding-left: 20px; }
.notes p { color: var(--muted); font-size: 13px; margin-top: 7px; }
.equations { padding: 7px 9px; margin-top: 6px; border-radius: 7px; background: var(--tint); color: var(--ink); font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
code { color: var(--ink); font-size: .93em; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 16px 0 24px; gap: 5px 14px; color: var(--muted); font-size: 12px; }
.footer a { text-decoration: none; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: absolute; z-index: 2; padding: 8px; background: white; }
@media (max-width: 1080px) {
  .shell { width: calc(100% - 38px); }
  .workspace { grid-template-columns: 263px minmax(0, 1fr); gap: 12px; }
  .results { gap: 12px; }
  .visuals, .stability, .notes { padding-inline: 15px; }
  .plot-grid { gap: 10px; }
}
@media (min-width: 781px) and (max-width: 980px) {
  .plot-grid { grid-template-columns: 1fr; gap: 13px; }
}
@media (max-width: 780px) {
  .shell { width: calc(100% - 28px); }
  .hero { padding-top: 26px; padding-bottom: 20px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .settings { padding: 13px 15px; }
  .param-grid { gap: 8px 20px; }
  .param-group { margin-top: 13px; }
  .param-grid.single { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes-grid { grid-template-columns: 1fr; gap: 13px; }
  .notes-grid article + article { border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; }
}
@media (max-width: 560px) {
  .plot-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .model-choice { flex-basis: 100%; min-height: 53px; padding-block: 6px; }
  .model-bar { gap: 7px; }
  .hero p { font-size: 14px; }
}
@media (pointer: coarse) {
  button, select { min-height: 44px !important; }
  input[type=range] { min-height: 26px; }
}

/* Daybreak presentation and same-origin embedding. */
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; }
h1 em { font-style: italic; }
.top-links, .footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.brand { font-weight: 600; }
.panel, .model-choice { border-radius: 4px; }
.primary, .secondary, select, .scrub, .equations { border-radius: 3px; }
.noscript-notice { margin: 20px; padding: 15px; border: 1px solid var(--line); }
html.embedded .topbar, html.embedded .hero, html.embedded .footer, html.embedded .skip { display: none; }
html.embedded body { background: transparent; }
html.embedded .shell { width: 100%; padding: 0 0 2px; }
@media (max-width: 560px) {
  .topbar-inner { align-items: flex-start; padding-block: 14px; }
  .top-links { gap: 5px 12px; justify-content: flex-end; }
  .top-link { font-size: 12px; }
  .footer nav { gap: 8px 16px; }
}
