@charset "UTF-8";

:root {
  color-scheme: light;
  --page: #f5f7f5;
  --paper: #ffffff;
  --ink: #203b32;
  --muted: #7b8880;
  --line: #e5eae5;
  --accent: #277b60;
  --accent-dark: #19533e;
  --accent-soft: #e8f2eb;
  --accent-light: #addec4;
  --positive: #d57765;
  --negative: #6d8fbc;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 14px; line-height: 1.6; }
body.modal-open { overflow: hidden; }
body[data-mode="magnetic"] { --accent: #586ba1; --accent-dark: #354975; --accent-soft: #ebeff8; --accent-light: #c1cdeb; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button { border: 0; background: none; }
button:disabled { cursor: not-allowed; opacity: .4; }
a { color: inherit; text-decoration: none; }
button, a, input { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, canvas:focus-visible { outline: 3px solid #ce9e47; outline-offset: 4px; }
button, a, .toggle-track { transition: background .18s, color .18s, box-shadow .18s, transform .18s; }
button:not(:disabled):active { transform: translateY(1px); }
h1, h2, h3, p { margin: 0; }
svg { flex-shrink: 0; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 100; padding: 12px 20px; background: white; border: 2px solid var(--accent); border-radius: 10px; }
.skip-link:focus { top: 10px; }
.sidebar { width: 226px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 35px 22px 22px; border-right: 1px solid var(--line); background: #fafbf8; z-index: 10; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 0 52px 3px; }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; display: block; }
.brand-icon { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.brand strong { display: block; font-size: 17px; letter-spacing: 1px; line-height: 1.4; font-weight: 700; }
.brand small { display: block; margin-top: 4px; font-size: 9px; letter-spacing: 3.3px; color: #7b8f80; }
.nav-section-label { font-size: 10px; color: #8b958b; letter-spacing: 1px; padding: 0 13px; margin-bottom: 14px; }
.nav-section-label span { font-size: 8px; margin-left: 12px; letter-spacing: 1.3px; }
.primary-nav { display: grid; gap: 7px; }
.nav-button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-radius: 10px; min-height: 48px; color: #78847a; text-align: left; font-size: 13px; }
.nav-button .icon { width: 18px; height: 18px; }
.nav-button:hover { background: #f0f3ed; color: var(--ink); }
.nav-button.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-dot { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: currentColor; visibility: hidden; }
.active .nav-dot { visibility: visible; }
.nav-button small { margin-left: auto; color: #a5afa6; font-size: 16px; }
.nav-divider { height: 1px; background: var(--line); margin: 24px 12px 14px; }
.nav-button .record-count { margin-left: auto; }
.record-count { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 5px; font-size: 10px; font-variant-numeric: tabular-nums; border-radius: 6px; background: #edf0eb; color: #738474; }
.sidebar-bottom { margin-top: auto; padding-top: 64px; }
.simulation-note { border: 1px solid #e0e7d9; border-radius: 12px; padding: 18px 16px; background: linear-gradient(150deg, #f1f5e9, #f7f8ee); }
.note-orbit { color: #87966f; font-size: 29px; display: block; height: 42px; }
.simulation-note strong { font-size: 16px; font-weight: 550; line-height: 1.8; letter-spacing: 1px; }
.simulation-note p { margin: 10px 0 17px; color: #8b927c; font-size: 11px; line-height: 1.85; }
.small-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 5px; letter-spacing: .3px; white-space: nowrap; }
.simulation-note .small-pill { background: #e8eedc; color: #7d8b6a; font-size: 9px; }
.install-button { display: flex; align-items: center; gap: 9px; padding: 24px 2px 22px; font-size: 11px; text-align: left; width: 100%; }
.install-button > .icon { color: #819882; width: 21px; height: 24px; }
.install-button small { display: block; color: #8c988d; font-size: 9px; margin-top: 4px; }
.install-button > span:last-child { margin-left: auto; color: #8c988d; }
.version-label { padding-top: 15px; border-top: 1px solid var(--line); color: #a0a99c; font-size: 8px; letter-spacing: 1.7px; display: flex; justify-content: space-between; }
.main { margin-left: 226px; padding: 0 42px 22px; max-width: 1720px; }
.topbar { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 11px; color: #9ba398; letter-spacing: .6px; }
.desktop-breadcrumb > span:first-child { padding: 0 14px; color: #c6cdc2; }
#breadcrumb-current { color: #5e7464; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.simulation-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid #e1e7dc; border-radius: 7px; background: #f9fbf5; color: #849573; font-size: 10px; }
.simulation-badge > span { width: 5px; height: 5px; background: #90aa72; border-radius: 100%; }
.icon-button { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 10px; color: #829083; }
.icon-button:hover { background: var(--accent-soft); }
.help-button { width: 36px; }
.mobile-brand, .mobile-mode-tabs, .mobile-utility { display: none; }
.mobile-brand-name { display: grid; gap: 2px; line-height: 1.15; }
.mobile-brand-name strong { font-size: 1em; letter-spacing: .3px; }
.mobile-brand-name small { font-size: 10px; font-weight: 500; letter-spacing: 1.2px; }
.page-heading { padding: 33px 0 29px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.eyebrow { font-size: 9px; color: #889b87; letter-spacing: 1.7px; margin-bottom: 9px; }
h1 { font-size: clamp(27px, 2.6vw, 36px); font-weight: 600; letter-spacing: 1px; line-height: 1.4; }
h1 span { color: var(--accent); }
.page-heading p { font-size: 12px; color: #859085; margin-top: 10px; letter-spacing: .2px; }
.outline-button { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 9px; border: 1px solid #dce4da; background: #fcfdf9; font-size: 11px; white-space: nowrap; }
.outline-button .icon { width: 15px; height: 15px; }
.outline-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.heading-records { margin-top: 17px; }
.heading-records .record-count { height: 18px; min-width: 18px; }
.experiment-selector { display: flex; align-items: center; gap: 21px; padding-bottom: 22px; }
.selector-label { font-size: 11px; color: #8e9a8e; white-space: nowrap; }
.model-options { display: flex; gap: 8px; flex-wrap: wrap; }
.model-option { border: 1px solid transparent; min-height: 37px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 8px; font-size: 11px; color: #869486; white-space: nowrap; }
.model-option span { font-size: 10px; color: #a6b0a3; line-height: 1; width: 16px; }
.model-option.active { background: white; border-color: #dbe5d8; color: var(--accent); box-shadow: 0 2px 3px #1e3a2404; font-weight: 600; }
.model-option.active span { color: var(--accent); }
.model-option:hover { background: white; }
.ideal-model-label { font-size: 9px; color: #9ca696; margin-left: auto; white-space: nowrap; display: flex; align-items: center; gap: 6px; letter-spacing: .4px; }
.ideal-model-label > span { width: 5px; height: 5px; border: 1px solid #8eaa91; border-radius: 50%; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 22px; }
.scene-column { min-width: 0; }
.scene-card, .probe-card, .parameter-card { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); box-shadow: 0 2px 4px #243e2702; }
.scene-card { overflow: hidden; }
.scene-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; padding: 17px 23px; }
.section-kicker { color: #8ea08b; font-size: 8px; font-weight: 500; letter-spacing: 1.5px; }
.scene-header h2 { font-size: 15px; font-weight: 600; letter-spacing: .3px; margin-top: 3px; }
.scene-viewbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 14px; }
.view-switch { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid #e2e9dd; background: #f1f5ee; border-radius: 9px; flex-shrink: 0; }
.view-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 35px; padding: 6px 13px; font-size: 11px; border-radius: 6px; color: #8a9c81; }
.view-switch button.active { color: var(--accent); background: #fff; box-shadow: 0 1px 4px #203f2910; font-weight: 600; }
.view-switch .icon { width: 15px; height: 15px; }
.view-description { color: #8b9f85; font-size: 9px; }
.three-d-error { padding: 12px 18px; background: #fff3df; color: #997344; font-size: 11px; border-top: 1px solid #f0e3ca; }
.view-controls { display: flex; gap: 14px; align-items: center; }
.toggle-label { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; color: #859281; font-size: 10px; white-space: nowrap; }
.toggle-label input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; z-index: 1; }
.toggle-track { width: 25px; height: 15px; border-radius: 10px; background: #e5e9e2; position: relative; }
.toggle-track::after { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: white; top: 2px; left: 2px; box-shadow: 0 1px 2px #0001; transition: transform .2s; }
.toggle-label input:checked + .toggle-track { background: var(--accent); }
.toggle-label input:checked + .toggle-track::after { transform: translateX(10px); }
.toggle-label input:focus-visible + .toggle-track { outline: 3px solid #ce9e47; outline-offset: 4px; }
.scene-stage { position: relative; aspect-ratio: 1.27; background: #f8fbf8; border-block: 1px solid #edf0e9; min-height: 340px; isolation: isolate; }
#field-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
#field-canvas:active { cursor: grabbing; }
#volume-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#volume-canvas:active { cursor: grabbing; }
.camera-tools { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #dce7d6; border-radius: 9px; background: #ffffffee; box-shadow: 0 3px 15px #31574008; }
.camera-tools button { display: grid; place-items: center; min-width: 34px; min-height: 34px; font-size: 18px; border-radius: 6px; color: #66855f; }
.camera-tools button:hover { background: var(--accent-soft); }
.camera-tools #camera-top { font-size: 9px; padding-inline: 8px; }
.camera-tools .icon { width: 15px; height: 15px; }
.view-loading { position: absolute; inset: 0; display: grid; place-items: center; background: #f5faf1ed; font-size: 13px; color: var(--accent); z-index: 3; }
.three-d-instructions { display: flex; align-items: center; gap: 6px; padding: 10px 18px; font-size: 9px; line-height: 1.8; color: #8a9e80; background: #fbfdf8; border-bottom: 1px solid var(--line); }
.three-d-instructions .icon { width: 14px; height: 14px; }
body[data-view="3d"] .canvas-hint { bottom: 61px; }
.stage-meta { position: absolute; z-index: 1; top: 18px; inset-inline: 20px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; font-size: 9px; color: #97a48f; letter-spacing: .3px; }
.meta-separator { margin: 0 8px; color: #bec7b7; }
.stage-tag { font-size: 8px; padding: 3px 7px; border: 1px solid #dfe8d8; border-radius: 4px; background: #f5f9f0dd; color: #95a383; }
.stage-reading { display: none; pointer-events: none; }
.canvas-hint { position: absolute; bottom: 17px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; white-space: nowrap; pointer-events: none; color: #8a9a82; font-size: 9px; padding: 7px 11px; border: 1px solid #e0e8db; border-radius: 22px; background: #ffffffe6; box-shadow: 0 2px 6px #35573303; transition: opacity .3s; }
.canvas-hint .icon { width: 13px; height: 13px; }
.canvas-hint.dismissed { opacity: 0; }
.scene-footer { min-height: 57px; padding: 9px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.scene-legend { display: flex; flex-wrap: wrap; gap: 15px; }
.scene-legend > span { display: flex; gap: 6px; align-items: center; font-size: 9px; color: #8c9889; }
.legend-dot { width: 6px; height: 6px; border-radius: 100%; display: inline-block; background: var(--accent); }
.legend-dot.positive { background: var(--positive); }
.legend-dot.negative { background: var(--negative); }
.legend-dot.probe { background: #fff; border: 1.5px solid var(--accent); width: 7px; height: 7px; }
.scene-actions { display: flex; gap: 12px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 6px 2px; font-size: 10px; color: #869681; white-space: nowrap; }
.text-button .icon { width: 13px; height: 13px; }
.text-button:hover { color: var(--accent); }
.readout-column { display: grid; gap: 17px; }
.probe-card { padding: 20px 22px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-heading h2 { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.card-heading h2 .icon { width: 16px; height: 16px; color: var(--accent); }
.probe-card .small-pill { font-size: 8px; padding: 3px 6px; border-radius: 4px; }
.reading-label { font-size: 10px; color: #8b9788; margin-top: 27px; }
.primary-reading { display: flex; align-items: baseline; gap: 8px; line-height: 1.15; margin: 8px 0 8px; }
#magnitude { font-size: 45px; letter-spacing: -1.5px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#field-unit { font-size: 12px; color: #87957f; white-space: nowrap; }
.reading-status { font-size: 8px; color: #8a9986; min-height: 14px; }
.reading-status.warning { color: #b56a45; }
.component-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 17px 0; margin-top: 6px; border-bottom: 1px solid var(--line); }
.component-grid > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; }
.component-grid > div > span { width: 100%; color: #94a08c; font-size: 10px; }
.component-grid strong { font-weight: 500; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.component-unit { font-size: 8px; color: #97a18e; }
body[data-view="3d"] .component-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
body[data-view="3d"] .component-grid strong { font-size: 15px; overflow-wrap: anywhere; }
.elevation-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 10px; color: #8a9882; }
.elevation-row small { display: block; font-size: 8px; color: #a0ad96; }
.elevation-row strong { font-weight: 500; font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.direction-row { display: flex; align-items: center; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.direction-compass { position: relative; width: 51px; height: 51px; border: 1px solid #e5eade; border-radius: 50%; display: grid; place-items: center; background: #fafbf7; flex-shrink: 0; }
.compass-axis { position: absolute; background: #e7ecdf; }
.compass-axis.horizontal { width: 40px; height: 1px; }
.compass-axis.vertical { height: 40px; width: 1px; }
#direction-needle { color: var(--accent); font-size: 27px; font-weight: 400; position: absolute; display: grid; place-items: center; width: 34px; height: 34px; line-height: 1; transform-origin: center; }
.direction-compass small { position: absolute; bottom: 10px; right: 4px; font-size: 7px; color: #aab49e; }
.direction-row > div:last-child { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; flex: 1; }
.direction-row > div > span:not(.compass-axis):not(#direction-needle) { font-size: 10px; color: #8a9882; }
#direction-angle { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.direction-row > div:last-child > small { font-size: 8px; color: #9da791; grid-column: 1 / -1; margin-top: 4px; }
.probe-position { padding: 17px 0 16px; }
.position-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; font-size: 10px; color: #84917d; }
.position-heading small { color: #a0aa96; font-size: 8px; }
.coordinate-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.coordinate-control { display: flex; align-items: center; min-width: 0; border: 1px solid #e1e7d9; border-radius: 7px; background: #fcfdf9; font-size: 11px; color: #92a186; padding-left: 9px; }
.coordinate-control.axis-z { grid-column: 1 / -1; }
.probe-depth-control { padding-top: 13px; }
.probe-depth-control > label { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: #809675; }
.probe-depth-control output { font-variant-numeric: tabular-nums; color: var(--accent); }
.depth-endpoints { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: #a3af97; font-size: 9px; }
.depth-endpoints button { min-height: 32px; padding: 3px 9px; border-radius: 6px; font-size: 10px; color: var(--accent); background: var(--accent-soft); }
.coordinate-control label { cursor: text; }
.coordinate-inputs input { width: 100%; min-width: 0; min-height: 36px; border: 0; background: transparent; color: #52734e; padding: 4px 5px; font-size: 12px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.coordinate-inputs input::-webkit-inner-spin-button, .coordinate-inputs input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.coordinate-sign { min-width: 28px; min-height: 36px; align-self: stretch; padding: 0 5px; color: var(--accent); border-left: 1px solid #e7ecdf; border-radius: 0 6px 6px 0; font-size: 15px; }
.coordinate-sign:hover { background: var(--accent-soft); }
.position-tip { color: #a3ac9a; font-size: 8px; margin-top: 7px; }
.primary-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 500; }
.primary-button:hover:not(:disabled) { background: var(--accent-dark); }
.primary-button .icon { width: 15px; height: 15px; }
.probe-card .primary-button { width: 100%; justify-content: flex-start; }
.end-icon { margin-left: auto; }
.parameter-card { padding: 18px 22px 19px; }
.parameter-symbol { display: grid; place-items: center; width: 23px; height: 23px; background: #f0f3eb; color: #9aa787; border-radius: 6px; font-family: Georgia, serif; font-style: italic; font-size: 13px; }
.slider-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 10px; color: #87947e; margin-top: 20px; }
.slider-heading strong { font-weight: 600; font-size: 16px; color: var(--accent); font-variant-numeric: tabular-nums; }
.slider-heading strong small { font-size: 10px; font-weight: 400; color: #94a287; }
.range-input { display: block; width: 100%; height: 30px; margin: 5px 0 0; padding: 0; background: transparent; accent-color: var(--accent); cursor: pointer; -webkit-appearance: none; appearance: none; }
.range-input::-webkit-slider-runnable-track { height: 4px; border-radius: 10px; background: linear-gradient(to right, var(--accent) var(--range-progress, 75%), #e6ecdf var(--range-progress, 75%)); }
.range-input::-webkit-slider-thumb { -webkit-appearance: none; height: 15px; width: 15px; border: 3px solid var(--accent); background: white; border-radius: 50%; margin-top: -5.5px; box-shadow: 0 0 0 3px #fff9; }
.range-input::-moz-range-track { height: 4px; border-radius: 10px; background: #e6ecdf; }
.range-input::-moz-range-progress { height: 4px; border-radius: 10px; background: var(--accent); }
.range-input::-moz-range-thumb { height: 10px; width: 10px; border: 3px solid var(--accent); background: white; border-radius: 50%; }
.range-endpoints { display: flex; justify-content: space-between; color: #a3ad99; font-size: 8px; }
.secondary-parameter .slider-heading { margin-top: 15px; }
.reverse-button { width: 100%; min-height: 36px; border: 1px solid #e4e9dd; border-radius: 7px; background: #fcfdf9; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 10px; color: #7e9373; margin-top: 16px; }
.reverse-button .icon { width: 13px; height: 13px; }
.reverse-button:hover { background: var(--accent-soft); color: var(--accent); }
.formula-box { margin-top: 17px; padding-top: 14px; border-top: 1px dashed #e0e6d7; }
.formula-box > span { color: #9ca890; font-size: 8px; }
.formula-box > strong { display: block; font-family: "Cambria Math", "Times New Roman", serif; font-size: 18px; font-weight: 400; letter-spacing: .7px; color: #5c7651; margin-top: 3px; }
.formula-box > p { font-size: 9px; color: #a0aa94; margin-top: 5px; line-height: 1.7; }
.discovery-card { margin-top: 19px; padding: 23px; display: flex; gap: 15px; align-items: flex-start; background: #213f35; border: 1px solid #1b3c2f; border-radius: var(--radius); color: #f2f8ed; position: relative; overflow: hidden; }
.discovery-card::after { content: ""; pointer-events: none; position: absolute; right: -55px; top: -70px; width: 170px; height: 170px; border: 1px solid #a2c4a416; border-radius: 50%; box-shadow: 0 0 0 25px #a2c4a408, 0 0 0 50px #a2c4a405; }
.discovery-icon { display: grid; place-items: center; background: #365245; color: #c2dfb7; border: 1px solid #506349; width: 33px; height: 33px; border-radius: 10px; margin-top: 3px; flex-shrink: 0; }
.discovery-icon .icon { width: 19px; height: 19px; }
.discovery-copy { flex: 1; min-width: 0; }
.discovery-card .section-kicker { color: #bcceab; font-size: 9px; letter-spacing: 1px; }
.discovery-card .section-kicker > span { margin-left: 11px; color: #73967b; font-size: 8px; }
.discovery-card h2 { margin-top: 7px; font-size: 15px; font-weight: 500; letter-spacing: .3px; }
.discovery-card p { color: #a0b09b; font-size: 10px; line-height: 1.9; margin-top: 7px; }
.discovery-button { display: inline-flex; justify-content: center; align-items: center; gap: 13px; min-height: 37px; padding: 8px 11px; background: #b7d9aa; color: #284934; border-radius: 7px; white-space: nowrap; font-size: 10px; margin-top: 26px; position: relative; z-index: 1; }
.discovery-button:hover { background: #d2e9c6; }
.discovery-button .icon { width: 14px; height: 14px; }
.lesson-result { color: #dfecd6; font-size: 10px; border-top: 1px solid #ffffff1a; padding-top: 9px; margin-top: 10px; line-height: 1.8; font-variant-numeric: tabular-nums; }
.model-caveat { margin: 15px 4px 0; display: flex; gap: 7px; color: #9da793; font-size: 9px; line-height: 1.8; }
.model-caveat .icon { width: 13px; height: 13px; margin-top: 2px; }
.page-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; align-items: center; border-top: 1px solid var(--line); padding-top: 17px; margin-top: 30px; color: #a4ad9b; font-size: 9px; }
.page-footer > span { display: inline-flex; gap: 7px; align-items: center; }
.page-footer .brand-icon { width: 18px; height: 18px; }
.contributor-credit { color: #667b6c; }
.modal { width: min(640px, calc(100% - 36px)); max-height: min(88dvh, 850px); padding: 0; color: var(--ink); background: #fcfdf9; border: 1px solid #dfe6db; border-radius: 20px; box-shadow: 0 24px 90px #19372b33; }
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: #17372c66; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal-header { padding: 24px 25px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.modal-header h2 { font-size: 21px; font-weight: 550; margin-top: 4px; }
.modal-body { padding: 23px 25px; overflow-y: auto; overscroll-behavior: contain; }
.modal-footer { padding: 16px 25px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-shrink: 0; }
.modal-footer .primary-button { min-height: 43px; }
.guide-warning { display: flex; gap: 12px; background: #eff3e7; border: 1px solid #e0e7d2; border-radius: 10px; padding: 15px; color: #83916c; font-size: 12px; line-height: 1.9; }
.guide-warning > .icon { margin-top: 4px; }
.guide-warning strong { display: block; color: #607c4d; margin-bottom: 4px; }
.guide-body section { margin-top: 25px; }
.guide-body h3 { font-size: 15px; margin-bottom: 12px; font-weight: 600; }
.guide-body h3 .icon { margin-right: 7px; width: 17px; height: 17px; }
.guide-about p { color: #667b60; font-size: 12px; line-height: 1.9; }
.guide-steps { list-style: none; padding: 0; display: grid; gap: 15px; }
.guide-steps li { display: flex; gap: 13px; }
.guide-steps li > span { width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0; background: var(--accent-soft); color: var(--accent); font-size: 10px; border-radius: 7px; }
.guide-steps strong { font-size: 12px; font-weight: 600; }
.guide-steps p { font-size: 11px; color: #87947d; margin-top: 3px; line-height: 1.8; }
.guide-list, .install-steps { padding-left: 20px; color: #829075; font-size: 12px; line-height: 1.9; }
.guide-list li, .install-steps li { margin-bottom: 8px; }
.guide-footnote { padding: 12px 14px; background: #f0f3e9; color: #8b957e; font-size: 11px; border-radius: 8px; line-height: 1.8; }
.formula-reference { padding: 5px 16px; background: #f2f5eb; border-radius: 10px; }
.formula-reference p { padding: 12px 0; border-bottom: 1px solid #e1e8d8; }
.formula-reference p:last-child { border: 0; }
.formula-reference strong { display: block; font-size: 10px; color: #829571; font-weight: 500; }
.formula-reference span { display: block; font-family: "Cambria Math", Georgia, serif; font-size: 16px; margin-top: 5px; overflow-wrap: anywhere; }
.records-disclaimer { color: #98a38b; font-size: 10px; padding-bottom: 16px; }
.empty-state { text-align: center; padding: 45px 5px; }
.empty-state > .icon { width: 42px; height: 42px; color: #b0c29d; stroke-width: 1.1; }
.empty-state h3 { font-size: 17px; font-weight: 500; margin-top: 18px; }
.empty-state p { color: #91a07e; font-size: 12px; line-height: 1.9; margin-top: 10px; }
.records-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.record-item { border: 1px solid #e0e8d8; border-radius: 11px; padding: 14px 16px; background: white; }
.record-top, .record-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.record-top strong { font-size: 12px; font-weight: 500; }
.record-top time { color: #9ba78e; font-size: 9px; }
.record-value { font-size: 25px; font-variant-numeric: tabular-nums; margin: 8px 0; color: var(--accent); }
.record-value small { font-size: 11px; margin-left: 5px; }
.record-bottom { color: #91a17f; font-size: 10px; flex-wrap: wrap; gap: 4px; }
.record-components { font-size: 9px; color: #9ca992; margin-top: 5px; }
.records-footer { justify-content: space-between; }
.danger-text { color: #b47d6a; }
.danger-button { background: #b27662; }
.confirm-modal { width: min(420px, calc(100% - 36px)); }
.confirm-modal .modal-header h2 { font-size: 18px; }
.confirm-modal .modal-body p { color: #87967c; font-size: 13px; }
.toast { position: fixed; bottom: max(30px, env(safe-area-inset-bottom)); left: calc(50% + 113px); transform: translate(-50%, 15px); background: #244b3b; color: #eff8e9; padding: 13px 20px; border-radius: 11px; box-shadow: 0 6px 30px #1b43272b; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; font-size: 12px; max-width: calc(100vw - 35px); width: max-content; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.noscript-warning { position: fixed; inset: auto 0 0; padding: 20px; text-align: center; background: #f3e1c4; color: #704b1a; z-index: 200; }

@media (min-width: 1600px) {
  .main { padding-inline: 60px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .scene-stage { aspect-ratio: 1.4; }
}
@media (max-width: 1250px) {
  .sidebar { width: 200px; padding-inline: 17px; }
  .main { margin-left: 200px; padding-inline: 27px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 17px; }
  .probe-card, .parameter-card { padding-inline: 18px; }
  .scene-header { padding-inline: 17px; }
  .view-controls { gap: 8px; }
  .toggle-label { font-size: 9px; }
  .scene-footer { padding-inline: 16px; }
  .discovery-card { flex-wrap: wrap; padding: 20px; gap: 12px; }
  .discovery-copy { flex-basis: calc(100% - 48px); }
  .discovery-button { margin: 0 0 0 45px; }
  .ideal-model-label { display: none; }
  .scene-stage { aspect-ratio: 1.03; }
  .toast { left: calc(50% + 100px); }
}
@media (max-width: 1020px) {
  .scene-viewbar { flex-wrap: wrap; gap: 6px; padding-inline: 15px; }
  .view-description { display: none; }
  .sidebar { width: 180px; padding-inline: 12px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .main { margin-left: 180px; padding-inline: 22px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 238px; gap: 14px; }
  .scene-header { align-items: flex-start; flex-direction: column; gap: 1px; padding-block: 14px 8px; }
  .view-controls { align-self: flex-end; gap: 14px; }
  .toggle-label { min-height: 30px; }
  .scene-footer { flex-wrap: wrap; gap: 4px; padding-block: 11px 4px; }
  .scene-actions { margin-left: auto; }
  .experiment-selector { gap: 12px; }
  .model-option { padding-inline: 10px; }
  .model-options { gap: 3px; }
  .page-footer { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .page-heading { gap: 10px; }
  .eyebrow { font-size: 7px; }
  .heading-records { padding-inline: 9px; }
  .heading-records .record-count { display: none; }
  .toast { left: calc(50% + 90px); }
}
@media (max-width: 820px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 0 24px 24px; max-width: 850px; margin-inline: auto; }
  .topbar { min-height: 74px; padding-top: env(safe-area-inset-top, 0px); }
  .mobile-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #3b5945; letter-spacing: 1px; }
  .mobile-brand .brand-icon { width: 28px; height: 28px; }
  .desktop-breadcrumb { display: none; }
  .mobile-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #eaf0e6; border: 1px solid #e2e8de; border-radius: 11px; margin-bottom: 22px; gap: 4px; }
  .mobile-mode-tabs > button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 7px; font-size: 12px; color: #8a9981; }
  .mobile-mode-tabs .icon { width: 16px; height: 16px; }
  .mobile-mode-tabs > button.active { background: #fff; color: var(--accent); box-shadow: 0 2px 4px #203b2208; font-weight: 600; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; }
  .scene-stage { min-height: 330px; }
  .page-heading { padding-top: 26px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.3px; }
  .mobile-utility { display: flex; justify-content: center; margin-top: 15px; gap: 20px; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .mobile-utility button { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 10px; color: #809274; }
  .mobile-utility .icon { width: 15px; height: 15px; }
  .toast { left: 50%; }
}
@media (max-width: 650px) {
  .scene-viewbar { gap: 8px; flex-wrap: nowrap; padding: 0 13px 12px; }
  .view-switch button { min-height: 39px; padding-inline: 10px; font-size: 10px; }
  #plane-toggle { font-size: 8px; }
  .camera-tools { right: 10px; bottom: 11px; }
  .camera-tools button { min-width: 37px; min-height: 39px; }
  .three-d-instructions { font-size: 8px; padding: 9px 12px; align-items: flex-start; }
  .three-d-instructions .icon { margin-top: 2px; }
  .probe-depth-control > label { font-size: 11px; }
  .depth-endpoints button { min-height: 39px; }
  body[data-view="3d"] .component-grid { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
  body[data-view="3d"] .component-grid > div { flex-wrap: wrap; flex: 1; gap: 4px; }
  body[data-view="3d"] .component-grid > div > span { width: 100%; }
  body[data-view="3d"] .component-grid strong { font-size: 17px; }
  body[data-view="3d"] .direction-row { grid-row: 6; grid-column: 1; padding-bottom: 15px; }
  body[data-view="3d"] .elevation-row { grid-row: 6; grid-column: 2; border: 0; justify-content: flex-end; gap: 12px; }
  body[data-view="3d"] .direction-compass { width: 36px; height: 36px; }
  body[data-view="3d"] .compass-axis.horizontal { width: 28px; }
  body[data-view="3d"] .compass-axis.vertical { height: 28px; }
  .main { padding-inline: 18px; }
  .topbar { min-height: 66px; gap: 4px; }
  .topbar-actions { gap: 4px; }
  .simulation-badge { padding: 4px 7px; font-size: 8px; gap: 5px; }
  .simulation-badge > span { width: 4px; height: 4px; }
  .help-button { width: 32px; }
  .help-button .icon { width: 17px; height: 17px; }
  .mobile-brand { font-size: 13px; gap: 6px; }
  .mobile-brand .brand-icon { width: 26px; height: 26px; }
  .page-heading { padding-block: 27px 23px; }
  h1 { font-size: 30px; letter-spacing: .5px; }
  .eyebrow { font-size: 7px; letter-spacing: 1.1px; margin-bottom: 8px; }
  .page-heading p { font-size: 11px; margin-top: 8px; }
  .heading-records { display: none; }
  .workspace-grid { display: flex; flex-direction: column; gap: 18px; }
  .scene-column, .readout-column { width: 100%; }
  .readout-column { grid-template-columns: 1fr; gap: 18px; }
  .scene-header { flex-direction: row; align-items: center; min-height: 80px; padding: 15px; gap: 6px; }
  .scene-header h2 { font-size: 13px; margin-top: 2px; }
  .section-kicker { font-size: 7px; letter-spacing: 1px; }
  .view-controls { align-self: center; gap: 7px; }
  .toggle-label { font-size: 8px; gap: 4px; min-height: 44px; }
  .toggle-track { width: 23px; height: 14px; }
  .toggle-track::after { width: 10px; height: 10px; }
  .toggle-label input:checked + .toggle-track::after { transform: translateX(9px); }
  .experiment-selector { display: block; padding-bottom: 17px; }
  .selector-label { display: block; font-size: 9px; margin-bottom: 7px; }
  .model-options { gap: 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-option { justify-content: center; padding: 7px 4px; gap: 5px; font-size: 10px; min-height: 40px; }
  .model-option span { font-size: 9px; width: 12px; }
  .mobile-mode-tabs { margin-bottom: 17px; }
  .scene-stage { aspect-ratio: 1.04; min-height: 290px; }
  .stage-meta { top: 14px; inset-inline: 14px; font-size: 8px; }
  .stage-tag { font-size: 7px; }
  .stage-reading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; position: absolute; top: 46px; left: 14px; padding: 7px 10px; border-radius: 8px; background: #ffffffed; border: 1px solid #e2eadb; max-width: 145px; box-shadow: 0 2px 8px #23453104; }
  .stage-reading > span { flex-basis: 100%; font-size: 8px; color: #879b7c; }
  .stage-reading strong { font-size: 21px; color: var(--accent); font-weight: 500; letter-spacing: -.5px; line-height: 1.2; font-variant-numeric: tabular-nums; }
  .stage-reading small { font-size: 9px; color: #8e9e82; }
  .canvas-hint { font-size: 8px; bottom: 14px; padding: 6px 9px; }
  .canvas-hint .icon { width: 12px; height: 12px; }
  .scene-footer { padding: 9px 14px; min-height: 53px; gap: 6px; }
  .scene-legend { gap: 9px; }
  .scene-legend > span { font-size: 8px; gap: 4px; }
  .scene-actions { gap: 10px; }
  .scene-actions .text-button { font-size: 9px; min-height: 36px; }
  .scene-actions .icon { width: 12px; height: 12px; }
  .discovery-card { margin-top: 16px; padding: 18px 16px; gap: 11px; }
  .discovery-card h2 { font-size: 14px; margin-top: 6px; }
  .discovery-card p { font-size: 10px; margin-top: 6px; }
  .discovery-icon { width: 29px; height: 29px; border-radius: 9px; }
  .discovery-copy { flex-basis: calc(100% - 44px); }
  .discovery-card .section-kicker > span { font-size: 7px; margin-left: 8px; }
  .discovery-button { min-height: 39px; margin-left: 40px; padding-inline: 14px; }
  .model-caveat { margin-top: 12px; font-size: 8px; }
  .probe-card, .parameter-card { padding: 21px; }
  .probe-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 17px; }
  .probe-card > .card-heading { grid-column: 1 / -1; }
  .card-heading h2 { font-size: 14px; }
  .probe-card .small-pill { font-size: 9px; }
  .reading-label { grid-column: 1; margin-top: 22px; font-size: 10px; }
  .primary-reading { grid-column: 1 / -1; margin-top: 7px; margin-bottom: 7px; }
  #magnitude { font-size: 46px; }
  #field-unit { font-size: 14px; }
  .reading-status { grid-column: 1 / -1; font-size: 9px; }
  .component-grid { grid-column: 1; display: flex; flex-direction: column; gap: 9px; border: 0; margin: 0; padding: 19px 0 14px; }
  .component-grid > div { flex-wrap: nowrap; gap: 7px; }
  .component-grid > div > span { width: 19px; }
  .component-grid strong { font-size: 16px; }
  .direction-row { grid-column: 2; grid-row: 5; border: 0; gap: 9px; padding: 17px 0; }
  .direction-row > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
  .direction-row > div:last-child > small { font-size: 7px; margin-top: 2px; }
  .direction-compass { width: 43px; height: 43px; }
  .compass-axis.horizontal { width: 33px; }
  .compass-axis.vertical { height: 33px; }
  #direction-angle { font-size: 16px; }
  .probe-position { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; }
  .coordinate-inputs input { font-size: 16px; min-height: 44px; }
  .coordinate-sign { min-width: 38px; min-height: 44px; font-size: 17px; }
  .position-heading { font-size: 11px; }
  .position-heading small { font-size: 9px; }
  .position-tip { font-size: 9px; }
  .probe-card > .primary-button { grid-column: 1 / -1; min-height: 46px; font-size: 12px; }
  .slider-heading { font-size: 12px; }
  .slider-heading strong { font-size: 19px; }
  .slider-heading strong small { font-size: 12px; }
  .range-input { height: 40px; }
  .range-input::-webkit-slider-thumb { height: 20px; width: 20px; margin-top: -8px; }
  .range-endpoints { font-size: 10px; }
  .reverse-button { min-height: 44px; font-size: 12px; }
  .formula-box > span { font-size: 10px; }
  .formula-box > strong { font-size: 21px; }
  .formula-box > p { font-size: 11px; }
  .page-footer { font-size: 8px; margin-top: 23px; padding-top: 15px; }
  .modal { width: calc(100% - 24px); max-height: 90dvh; border-radius: 16px; }
  .modal-header { padding: 19px 18px 14px; }
  .modal-header h2 { font-size: 19px; }
  .modal-body { padding: 18px; }
  .modal-footer { padding: 14px 18px; }
  .guide-warning { padding: 12px; font-size: 11px; gap: 9px; }
  .guide-warning .icon { width: 17px; height: 17px; }
  .record-top time { font-size: 8px; }
  .toast { bottom: max(22px, env(safe-area-inset-bottom)); font-size: 11px; padding: 12px 16px; }
}
@media (max-width: 360px) {
  .main { padding-inline: 12px; }
  .mobile-brand { font-size: 12px; }
  .simulation-badge { font-size: 7px; }
  .help-button { width: 27px; }
  .scene-header { flex-wrap: wrap; padding-bottom: 9px; gap: 0; }
  .view-controls { margin-left: auto; }
  .scene-stage { min-height: 280px; }
  .probe-card { padding-inline: 17px; column-gap: 10px; }
  #magnitude { font-size: 40px; }
  .direction-row { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
