:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0b1728;
  --panel: #101e31;
  --panel-2: #13243a;
  --line: rgba(153, 180, 211, .15);
  --line-strong: rgba(153, 180, 211, .25);
  --text: #edf4fc;
  --muted: #93a6bd;
  --dim: #647992;
  --cyan: #55c7e7;
  --blue: #4e8ce8;
  --green: #77d6b0;
  --orange: #f4a261;
  --red: #ef7d75;
  --radius: 15px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-width: 320px; color: var(--text); background: radial-gradient(circle at 70% -20%, rgba(42, 89, 133, .18), transparent 36%), var(--bg); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar { height: 68px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(6, 15, 27, .9); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); }
.brand { display: flex; gap: 11px; align-items: center; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #061421; font-weight: 900; font-size: 18px; background: linear-gradient(145deg, #8be1ee, #4c9fd8); box-shadow: 0 5px 18px rgba(62, 173, 210, .18); }
.brand strong { display: block; font-size: 14px; letter-spacing: .02em; }
.brand small { display: block; color: var(--dim); font-size: 8px; letter-spacing: .17em; margin-top: 2px; }
.topbar-meta { display: flex; gap: 12px; align-items: center; }
.status-pill, .version-tag { border: 1px solid var(--line); border-radius: 30px; padding: 7px 11px; font-size: 9px; letter-spacing: .12em; color: var(--muted); }
.status-pill { color: #a9dcca; }
.status-pill i, .live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 10px rgba(119, 214, 176, .55); }
.workspace { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.navigation { border-right: 1px solid var(--line); padding: 27px 13px 20px; background: rgba(8, 18, 31, .58); display: flex; flex-direction: column; gap: 4px; }
.nav-caption { color: #60748e; font-size: 9px; letter-spacing: .17em; padding: 0 12px 13px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 9px; color: #9aacc1; font-size: 12px; line-height: 1.25; transition: background .16s, color .16s; }
.nav-link:hover { background: rgba(104, 149, 197, .1); color: var(--text); }
.nav-link.active { color: #eaf8fc; background: linear-gradient(90deg, rgba(68, 161, 197, .19), rgba(68, 161, 197, .06)); box-shadow: inset 2px 0 0 var(--cyan); }
.nav-index { color: #60758e; font-size: 9px; font-variant-numeric: tabular-nums; width: 18px; }
.nav-link.active .nav-index { color: var(--cyan); }
.nav-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 18px 11px 4px; display: flex; gap: 10px; align-items: center; color: var(--dim); font-size: 10px; line-height: 1.5; }
.nav-foot-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--cyan); background: rgba(85, 199, 231, .1); font-size: 20px; }
.main-column { min-width: 0; padding: 0 28px 24px; }
.page-toolbar { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 23px; }
.breadcrumb { display: block; color: #6f829b; font-size: 9px; letter-spacing: .16em; }
.page-hint { display: block; margin-top: 6px; color: #b3c0d0; font-size: 12px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid var(--line); background: rgba(16, 30, 49, .78); padding: 7px 9px; border-radius: 12px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 6px; }
.toolbar-label { color: #9aacc1; font-size: 10px; margin-right: 5px; }
.toolbar-right { padding-left: 9px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.toolbar-right select { background: #0a1627; color: var(--text); border: 1px solid var(--line-strong); border-radius: 6px; padding: 5px 7px; font-size: 10px; }
.run-state { color: #879ab1; font-size: 8px; letter-spacing: .12em; padding: 0 5px; min-width: 52px; text-align: right; }
.run-state.running { color: var(--green); }
.button { border: 1px solid transparent; border-radius: 8px; padding: 9px 12px; font-size: 11px; font-weight: 650; letter-spacing: .01em; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: transform .14s, background .14s, border-color .14s; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #041421; background: linear-gradient(135deg, #8be2ec, #53b7d9); box-shadow: 0 4px 16px rgba(63, 166, 203, .13); }
.button-primary:hover { background: linear-gradient(135deg, #a0eff4, #6bc8e4); }
.button-secondary { color: #d6e4f3; border-color: var(--line-strong); background: #172940; }
.button-secondary:hover { background: #203650; }
.button-quiet { color: #9aacc1; background: transparent; border-color: transparent; }
.button-quiet:hover { color: var(--text); background: rgba(120, 152, 188, .1); }
.button-full { width: 100%; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 19px; align-items: start; }
.module-column, .side-column { min-width: 0; }
.side-column { display: flex; flex-direction: column; gap: 14px; }
.panel { background: linear-gradient(180deg, rgba(17, 32, 51, .96), rgba(13, 26, 43, .96)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 34px rgba(0, 0, 0, .12); }
.parameter-panel, .status-panel { padding: 18px 17px; }
.panel-kicker { color: var(--cyan); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; font-weight: 750; margin-bottom: 7px; }
.panel h2 { font-size: 15px; line-height: 1.3; margin: 0; letter-spacing: -.015em; }
.panel h3 { font-size: 13px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 10px; line-height: 1.55; }
.tiny { font-size: 9px; line-height: 1.5; }
.parameter-panel > p { margin: 8px 0 17px; }
.control-row { margin: 15px 0; }
.control-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 9px; }
.control-head label { color: #c4d1df; font-size: 10px; }
.control-head output { color: #8fd9eb; font-size: 10px; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--cyan); height: 4px; cursor: pointer; }
.mini-divider { height: 1px; background: var(--line); margin: 17px 0 12px; }
.derived-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.derived-grid div { padding: 9px; border-radius: 8px; background: rgba(4, 13, 24, .42); }
.derived-grid span { display: block; color: var(--dim); font-size: 8px; margin-bottom: 5px; }
.derived-grid strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.scenario-actions { display: grid; gap: 7px; margin-top: 14px; }
.status-panel { padding-bottom: 12px; }
.status-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(153, 180, 211, .09); font-size: 10px; color: var(--muted); }
.status-row:last-child { border-bottom: 0; }
.status-row strong { color: #e0edf8; font-size: 11px; font-variant-numeric: tabular-nums; }
.module-intro { margin: 3px 0 18px; }
.eyebrow { color: #7590ac; font-size: 9px; letter-spacing: .18em; font-weight: 700; margin-bottom: 9px; }
.module-intro h1 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); line-height: 1.13; letter-spacing: -.04em; }
.module-intro p { color: #9eb0c4; font-size: 12px; line-height: 1.65; max-width: 760px; margin: 0; }
.visual-panel, .chart-panel, .experiment-panel, .equation-panel, .flow-panel, .challenge-panel, .export-panel, .scanner-controls, .comparison-controls { padding: 18px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 14px; }
.panel-heading h2 { margin-top: 2px; }
.live-tag { color: #90dfc1; border: 1px solid rgba(119, 214, 176, .2); background: rgba(119, 214, 176, .07); border-radius: 30px; padding: 6px 9px; font-size: 8px; letter-spacing: .12em; white-space: nowrap; }
.unit-label { color: #879ab1; font-size: 9px; white-space: nowrap; }
.science-canvas { display: block; width: 100%; height: min(55vw, 430px); min-height: 260px; border-radius: 10px; border: 1px solid rgba(160, 186, 218, .15); background: #07111f; }
.chart-canvas { display: block; width: 100%; height: 300px; border-radius: 9px; background: #0a1525; }
.short-chart { height: 230px; }
.legend-row { display: flex; flex-wrap: wrap; gap: 15px; padding: 13px 2px 4px; color: #a0b1c4; font-size: 9px; }
.legend-row span, .compare-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.swatch-blue { background: #3567c3; }.swatch-neutral { background: #263d55; }.swatch-red { background: #e65f4e; }
.legend-line { display: inline-block; width: 16px; height: 0; border-top: 1px solid #e5efff; }
.legend-arrow { display: inline-block; width: 14px; height: 1px; background: #e5efff; position: relative; }
.legend-arrow:after { content: ''; position: absolute; right: 0; top: -3px; border-left: 4px solid #e5efff; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.canvas-caption { display: flex; justify-content: space-between; color: #647992; font-size: 9px; padding-top: 7px; }
.info-grid, .two-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 14px; }
.compact-panel { padding: 16px 17px; }
.compact-panel p { margin: 0; color: #9bacc0; font-size: 11px; line-height: 1.65; }
.chart-panel { margin-bottom: 14px; }
.note-panel { display: flex; gap: 12px; padding: 15px 16px; margin-top: 14px; border-radius: 12px; border: 1px solid rgba(85, 199, 231, .16); background: rgba(46, 120, 153, .08); }
.note-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; color: var(--cyan); border: 1px solid rgba(85, 199, 231, .35); font-size: 11px; font-weight: 800; }
.note-panel strong { font-size: 11px; }.note-panel p { color: #9eb0c4; font-size: 10px; line-height: 1.6; margin: 5px 0 0; }
.preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 22px; }
.preset-card { text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #0b192b; color: var(--text); min-height: 76px; }
.preset-card:hover { border-color: rgba(85, 199, 231, .5); background: #10243a; }
.preset-card strong { display: block; font-size: 10px; margin-bottom: 7px; }
.preset-card span { display: block; color: var(--muted); font-size: 9px; }
.field-heading { margin-bottom: 12px; }
.experiment-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 13px; }
.comparison-controls { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 15px; margin-bottom: 14px; }
.compare-control label, .scanner-field label { display: block; color: #aab9ca; font-size: 10px; margin-bottom: 8px; }
.compare-control select, .scanner-field select, .scanner-field input { width: 100%; padding: 9px 10px; color: var(--text); border-radius: 8px; border: 1px solid var(--line-strong); background: #0a1728; font-size: 11px; }
.compare-control output { color: var(--cyan); margin-left: 5px; }
.compare-control input { width: 100%; }
.compare-status { grid-column: 1 / -1; }
.compare-legend { display: flex; gap: 18px; color: var(--muted); font-size: 9px; padding: 9px 3px 0; }
.legend-a { border-color: #55c7e7; }.legend-b { border-color: #f4a261; }
.metric-copy { font-size: 10px; line-height: 1.6; color: var(--muted); margin: 0; }
.equation-panel { margin-bottom: 14px; }
.equation { color: #e6f1fd; font-family: Georgia, "Times New Roman", serif; font-size: clamp(21px, 3vw, 30px); padding: 16px 0; letter-spacing: .01em; }
.eq-blue { color: #72cbe7; }.eq-red { color: #f2a078; }
.equation-panel > p, .flow-panel p { color: #9bacc0; font-size: 11px; line-height: 1.7; margin: 0; }
.equation-subgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 17px; }
.equation-subgrid div { padding: 11px; background: rgba(5, 14, 25, .45); border: 1px solid var(--line); border-radius: 9px; }
.equation-subgrid strong { display: block; color: #c9d7e6; font-size: 9px; margin-bottom: 8px; }
.equation-subgrid code { color: #8fd9eb; font-size: 10px; white-space: normal; }
.metric-equations { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.metric-equation { padding: 15px; }
.metric-equation span { display: block; color: var(--cyan); font-size: 8px; letter-spacing: .14em; margin-bottom: 9px; }
.metric-equation strong { display: block; font-family: Georgia, serif; font-size: 18px; font-weight: 500; margin-bottom: 7px; }
.metric-equation p { color: var(--muted); font-size: 9px; margin: 0 0 11px; }
.metric-equation b { color: #e5f3ff; font-size: 16px; font-variant-numeric: tabular-nums; }
.equation-small { font-size: 19px; padding: 13px 0; }
.flow-panel h2 { margin-bottom: 3px; }
.challenge-panel { padding: 21px; }
.challenge-top { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.challenge-top h2 { font-size: 19px; }
.target-number { min-width: 105px; padding: 11px 15px; text-align: center; border: 1px solid rgba(85, 199, 231, .25); background: rgba(85, 199, 231, .08); border-radius: 12px; }
.target-number span, .target-number small { display: block; color: #91a7be; font-size: 8px; letter-spacing: .12em; }
.target-number strong { display: block; color: #8de0ee; font-size: 28px; margin: 2px 0; }
.challenge-panel > p { color: #a4b4c6; font-size: 11px; line-height: 1.6; margin: 18px 0 10px; }
.challenge-equation { text-align: center; padding: 17px; border-radius: 9px; background: #091727; color: #e5f4fc; font: 23px Georgia, serif; }
.challenge-readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 13px 0; }
.challenge-readout div { padding: 11px; background: rgba(4, 13, 24, .4); border-radius: 8px; }
.challenge-readout span { display: block; color: var(--dim); font-size: 8px; margin-bottom: 6px; }
.challenge-readout strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.challenge-actions { display: flex; gap: 8px; }
.challenge-feedback { margin-top: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: #a7b8cb; font-size: 10px; line-height: 1.5; }
.challenge-feedback.success { color: #a9e8cc; border-color: rgba(119, 214, 176, .3); background: rgba(119, 214, 176, .07); }
.report-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.report-metric { padding: 13px; }
.report-metric span { display: block; color: var(--muted); font-size: 9px; margin-bottom: 8px; }
.report-metric strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.export-panel { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.export-panel p { max-width: 620px; color: var(--muted); font-size: 10px; line-height: 1.6; margin: 7px 0 0; }
.export-actions { display: flex; flex-direction: column; gap: 8px; }
.scanner-controls { display: grid; grid-template-columns: 1fr 1fr .8fr auto; gap: 12px; align-items: end; margin-bottom: 14px; }
.scanner-controls > span { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; margin-top: 13px; }
.results-table { width: 100%; border-collapse: collapse; font-size: 10px; min-width: 520px; }
.results-table th, .results-table td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.results-table th:first-child, .results-table td:first-child { text-align: left; }
.results-table th { color: #8da3bb; font-weight: 600; }
.results-table td { color: #d3e0ee; }
.footer { display: flex; justify-content: space-between; gap: 15px; color: #5e738d; font-size: 9px; padding: 22px 2px 0; margin-top: 24px; border-top: 1px solid var(--line); }
.hero-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 20px; min-height: 300px; align-items: center; padding: 28px; border-radius: 18px; border: 1px solid rgba(105, 170, 205, .18); background: radial-gradient(circle at 80% 30%, rgba(46, 135, 171, .17), transparent 34%), linear-gradient(135deg, #12243a, #0b192b 68%); overflow: hidden; }
.hero-copy .eyebrow { color: #72cbe7; }
.hero-copy h1 { font-size: clamp(28px, 4vw, 43px); letter-spacing: -.05em; line-height: 1.07; margin: 12px 0; }
.hero-copy h1 span { color: #88d9e8; }
.hero-copy p { color: #a4b6c9; max-width: 540px; font-size: 12px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 17px; margin-top: 22px; flex-wrap: wrap; }
.text-link { color: #91bcd1; font-size: 10px; }
.text-link:hover { color: #d8f3fb; }
.hero-visual { min-height: 230px; position: relative; display: grid; place-items: center; }
.orbit { position: absolute; width: 210px; height: 210px; border: 1px solid rgba(107, 193, 224, .3); border-radius: 50%; transform: rotateX(63deg) rotateZ(-20deg); }
.orbit-two { width: 160px; height: 160px; transform: rotateX(63deg) rotateZ(50deg); border-color: rgba(244, 162, 97, .38); }
.x-mark { position: relative; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 160, 125, .6); background: rgba(225, 110, 81, .18); color: #ffb69a; font: 22px Georgia, serif; box-shadow: 0 0 35px rgba(230, 113, 81, .24); }
.field-line { position: absolute; width: 190px; height: 70px; border: 1px solid rgba(85, 199, 231, .7); border-radius: 50%; transform: rotate(-27deg); }
.field-b { transform: rotate(27deg); border-color: rgba(244, 162, 97, .55); }
.hero-label { position: absolute; color: #6d8ca8; font-size: 8px; letter-spacing: .16em; }
.label-top { top: 16px; right: 10px; }.label-bottom { bottom: 15px; left: 10px; }
.overview-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px 0 25px; border: 1px solid var(--line); border-radius: 12px; background: rgba(13, 26, 43, .7); }
.overview-strip div { padding: 13px 16px; border-right: 1px solid var(--line); }.overview-strip div:last-child { border: 0; }
.overview-strip span { display: block; color: #7288a2; font-size: 8px; letter-spacing: .14em; margin-bottom: 6px; }.overview-strip strong { font-size: 11px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 13px; }
.section-heading h2 { font-size: 19px; margin: 0; }.section-heading p { max-width: 360px; font-size: 10px; line-height: 1.5; margin: 0; }
.module-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.module-card { min-height: 142px; padding: 15px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(20, 39, 62, .92), rgba(12, 25, 42, .96)); transition: transform .16s, border-color .16s, background .16s; }
.module-card:hover { transform: translateY(-3px); border-color: rgba(85, 199, 231, .38); background: #142a43; }
.module-card-top { display: flex; justify-content: space-between; color: #6f89a5; font-size: 9px; }.card-arrow { color: var(--cyan); }
.module-card h3 { font-size: 12px; margin: 17px 0 6px; }.module-card p { color: var(--muted); font-size: 9px; line-height: 1.5; min-height: 28px; margin: 0; }.card-group { display: inline-block; color: #79c7dc; font-size: 8px; margin-top: 9px; text-transform: uppercase; letter-spacing: .12em; }
.toast-message { position: fixed; bottom: 20px; right: 22px; z-index: 50; padding: 11px 15px; border-radius: 9px; background: #d8f3f7; color: #082031; font-size: 11px; font-weight: 700; box-shadow: 0 10px 35px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }.toast-message.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 1280px) {
  .workspace { grid-template-columns: 205px minmax(0, 1fr); }
  .main-column { padding: 0 20px 22px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; }
  .toolbar-label { display: none; }
  .module-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .workspace { grid-template-columns: 1fr; }
  .navigation { position: static; border-right: 0; border-bottom: 1px solid var(--line); padding: 9px 14px; flex-direction: row; overflow-x: auto; align-items: center; gap: 4px; }
  .nav-caption, .nav-foot { display: none; }
  .nav-link { flex: 0 0 auto; padding: 9px 10px; font-size: 10px; }
  .nav-index { display: none; }
  .main-column { padding: 0 16px 22px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .side-column { display: grid; grid-template-columns: 1.2fr .8fr; align-items: start; }
  .page-toolbar { min-height: 78px; }
}
@media (max-width: 700px) {
  .topbar { height: 58px; padding: 0 14px; }
  .version-tag { display: none; }
  .main-column { padding: 0 11px 18px; }
  .page-toolbar { display: block; padding: 14px 0; }
  .page-toolbar > div:first-child { margin-bottom: 12px; }
  .toolbar { justify-content: space-between; padding: 6px; }
  .toolbar-left { gap: 3px; }
  .toolbar .button { padding: 8px 9px; font-size: 10px; }
  .toolbar-right { gap: 4px; padding-left: 6px; }
  .run-state { display: none; }
  .side-column { grid-template-columns: 1fr; }
  .status-panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 15px; }
  .status-panel .panel-kicker { grid-column: 1 / -1; }
  .science-canvas { height: 310px; min-height: 250px; }
  .chart-canvas { height: 245px; }
  .short-chart { height: 210px; }
  .two-chart-grid, .info-grid { grid-template-columns: 1fr; }
  .preset-grid { grid-template-columns: 1fr 1fr; }
  .comparison-controls { grid-template-columns: 1fr; }
  .compare-status { grid-column: auto; }
  .equation-subgrid { grid-template-columns: 1fr; }
  .metric-equations { grid-template-columns: 1fr 1fr; }
  .challenge-readout { grid-template-columns: 1fr; }
  .report-metrics { grid-template-columns: 1fr 1fr; }
  .export-panel { display: block; }
  .export-actions { flex-direction: row; margin-top: 14px; }
  .scanner-controls { grid-template-columns: 1fr 1fr; }
  .scanner-controls .button { grid-column: 1 / -1; }
  .hero-panel { grid-template-columns: 1fr; padding: 21px; }
  .hero-visual { min-height: 175px; }
  .hero-copy h1 { font-size: 32px; }
  .overview-strip { grid-template-columns: 1fr 1fr; }
  .overview-strip div:nth-child(2) { border-right: 0; }
  .overview-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { display: block; }
  .section-heading p { margin-top: 8px; }
  .module-cards { grid-template-columns: 1fr 1fr; }
  .module-card { min-height: 135px; padding: 12px; }
  .footer { display: block; line-height: 1.8; }
  .canvas-caption { font-size: 8px; }
}
@media (max-width: 390px) {
  .module-cards { grid-template-columns: 1fr; }
  .module-card { min-height: 112px; }
  .metric-equations { grid-template-columns: 1fr; }
  .toolbar-right label { display: none; }
  .toolbar-left .button { padding: 8px 7px; }
  .toolbar { gap: 3px; }
}
.chart-subtitle { color: #8fa4bb; font-size: 9px; letter-spacing: .04em; margin: 0 0 8px 2px; }
.experiment-charts { margin-top: 0; }
.chart-subtitle { color: #8fa4bb; font-size: 9px; letter-spacing: .04em; margin: 0 0 8px 2px; }
.experiment-charts { margin-top: 0; }
