/* Extraction & TLC Lab. Everything is scoped under .ex so site.css (loaded after this file) can't collide. */
.ex {
  --ex-ink: #14263a; --ex-muted: #4b6075; --ex-paper: #eef4f7; --ex-card: #ffffff; --ex-line: #cfdce4;
  --ex-accent: #0d6670; --ex-accent-ink: #ffffff; --ex-sun: #c9771a; --ex-soft: #f3f7f9; --ex-ok: #1f7a3d; --ex-no: #b3261e;
  --ex-shadow: 0 1px 2px rgba(16, 40, 60, .06), 0 8px 24px rgba(16, 40, 60, .07);
  color: var(--ex-ink); font: 16px/1.5 "Atkinson Hyperlegible", system-ui, sans-serif;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, #dcebf3, var(--ex-paper) 70%);
  padding: 0 clamp(12px, 2vw, 28px) 56px; min-height: 70vh;
}
html[data-theme="dark"] .ex {
  --ex-ink: #e6eef3; --ex-muted: #aabdca; --ex-paper: #0f1b26; --ex-card: #172633; --ex-line: #33495a;
  --ex-accent: #3fb5a3; --ex-accent-ink: #062521; --ex-sun: #ffc46b; --ex-soft: #1d3040; --ex-ok: #7fdc9a; --ex-no: #ff9b93;
  --ex-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  background: radial-gradient(ellipse 90% 60% at 50% -10%, #19324a, var(--ex-paper) 70%);
}
.ex *, .ex *::before, .ex *::after { box-sizing: border-box; }
.ex [hidden] { display: none !important; }
.ex h1, .ex h2, .ex h3 { color: var(--ex-ink); font-family: inherit; }
.ex small { font-size: 16px; }
.ex a { color: var(--ex-accent); font-weight: 700; }
.ex-eyebrow { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .08em; color: var(--ex-accent); }
.ex-muted { color: var(--ex-muted); }
.ex-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }

/* title bar */
.ex-bar { max-width: 1500px; margin: 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 10px 0 8px; }
.ex-titles { flex: 1 1 260px; }
.ex-bar h1 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; }
.ex-level { padding: 4px 12px; border-radius: 999px; background: var(--ex-soft); border: 1px solid var(--ex-line); font-weight: 700; }
.ex-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* buttons and fields */
.ex .ex-btn { appearance: none; font: 700 16px/1.2 "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--ex-line); background: var(--ex-card); color: var(--ex-ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ex .ex-btn:hover { border-color: var(--ex-accent); }
.ex .ex-btn:disabled { opacity: .5; cursor: not-allowed; }
.ex .ex-btn--pri { background: var(--ex-accent); border-color: var(--ex-accent); color: var(--ex-accent-ink); }
.ex .ex-btn--ghost { background: transparent; }
.ex button:focus-visible, .ex a:focus-visible, .ex input:focus-visible, .ex select:focus-visible, .ex textarea:focus-visible, .ex summary:focus-visible, .ex-table:focus-visible { outline: 3px solid #eaa33d; outline-offset: 2px; }
.ex select, .ex input[type=text] { font: 600 16px "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 44px; border-radius: 8px; border: 1px solid var(--ex-line); background: var(--ex-card); color: var(--ex-ink); padding: 6px 10px; max-width: 100%; }
.ex input[type=range] { width: 100%; min-height: 44px; margin: 0; accent-color: var(--ex-accent); }

/* start card */
.ex-gate { max-width: 1500px; margin: 8px auto 0; padding: clamp(14px, 3vw, 36px); border-radius: 22px; background: linear-gradient(140deg, #12324a, #0d6670 55%, #c9477a); }
.ex-gate-card { max-width: 980px; margin: 0 auto; padding: clamp(18px, 3vw, 34px); border-radius: 18px; background: var(--ex-card); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.ex-gate-card h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 6px 0; line-height: 1.15; }
.ex-gate-lede { font-size: 18px; color: var(--ex-muted); margin: 6px 0 0; }
.ex-gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 12px; }
.ex-gate-grid button { appearance: none; text-align: left; font: inherit; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 2px solid var(--ex-line); border-radius: 14px; cursor: pointer; background: var(--ex-soft); color: var(--ex-ink); min-height: 44px; }
.ex-gate-grid button:hover { border-color: var(--ex-accent); }
.ex-gate-grid b { font-size: 19px; }
.ex-gate-grid span { color: var(--ex-muted); }

/* modes and tabs */
#workspace { max-width: 1500px; margin: 0 auto; }
.ex-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 0 8px; }
.ex-modes-label { font-weight: 800; margin-right: 4px; }
.ex-modes button { appearance: none; font: 700 16px/1.2 "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 2px solid var(--ex-line); background: var(--ex-card); color: var(--ex-ink); cursor: pointer; }
.ex-modes button.is-on { border-color: var(--ex-accent); background: var(--ex-accent); color: var(--ex-accent-ink); }
.ex-modes-note { color: var(--ex-muted); }
.ex-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 10px; }
.ex-tabs button { appearance: none; font: 700 16px/1.2 "Atkinson Hyperlegible", system-ui, sans-serif; white-space: nowrap; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ex-line); background: var(--ex-card); color: var(--ex-ink); cursor: pointer; }
.ex-tabs button.is-on { background: var(--ex-ink); color: var(--ex-card); border-color: var(--ex-ink); }

/* bench */
.ex-stage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.ex-stage--solo { grid-template-columns: minmax(0, 1fr); }
.ex-bench { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; background: var(--ex-card); border: 1px solid var(--ex-line); border-radius: 16px; padding: 12px; box-shadow: var(--ex-shadow); }
.ex-app { min-width: 0; display: grid; grid-template-columns: 380px 104px; gap: 8px; align-items: start; }
.ex-canvas-wrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--ex-line); line-height: 0; background: var(--ex-soft); }
#scene { display: block; margin: 0 auto; }
.ex-plot { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ex-sw { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ex-muted); vertical-align: -2px; background: transparent; }
.ex-graph h3 { margin: 0 0 4px; font-size: 16px; }
.ex-graph canvas, #bigCurve, #slopeChart { display: block; width: 100%; border-radius: 8px; }
.ex-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin-top: 4px; }
.ex-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ex-dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: var(--ex-no); }
.ex-dot--rec { background: var(--ex-card); border: 2px solid var(--ex-accent); }
.ex-reader label { font-weight: 800; display: block; }
.ex-readout { margin: 0; padding: 6px 10px; border-left: 4px solid var(--ex-sun); background: var(--ex-soft); border-radius: 8px; min-height: 2.6em; }
.ex-record { margin: 0; }
.ex-controls { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 18px; padding-top: 10px; border-top: 1px solid var(--ex-line); }
.ex-ctl { display: flex; flex-direction: column; gap: 2px; font-weight: 700; min-width: 0; }
.ex-ctl output { font-weight: 800; color: var(--ex-accent); }
.ex-caption { grid-column: 1 / -1; margin: 0; color: var(--ex-muted); }
.ex-flash { animation: exFlash 2.4s ease-out; border-radius: 10px; }
@keyframes exFlash { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0); } 15%, 55% { box-shadow: 0 0 0 5px #ffb800; } }

/* coach */
.ex-coach { background: var(--ex-card); border: 1px solid var(--ex-line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--ex-shadow); min-width: 0; }
.ex-coach h2 { font-size: 19px; margin: 2px 0 4px; line-height: 1.25; }
.ex-coach h3 { font-size: 17px; margin: 12px 0 6px; }
.ex-goal { margin: 0 0 8px; }
.ex-next { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--ex-soft); border-left: 4px solid var(--ex-sun); }
.ex-next > b { color: var(--ex-sun); letter-spacing: .04em; text-transform: uppercase; }
.ex-next > #nextStep { font-weight: 800; font-size: 17px; }
.ex-next--done { border-left-color: var(--ex-ok); } .ex-next--done > b { color: var(--ex-ok); }
.ex-ask { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.ex-ask label { font-weight: 700; }
.ex-ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ex-ask-row input { width: 110px; } .ex-ask-row select { flex: 1 1 160px; min-width: 0; }
.ex-msg { min-height: 1.5em; margin: 8px 0; font-weight: 700; color: var(--ex-accent); }
.ex-steps { list-style: none; margin: 10px 0 0; padding: 0; }
.ex-steps li { padding: 3px 0; color: var(--ex-muted); }
.ex-steps li.done { color: var(--ex-ok); font-weight: 700; }
.ex-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ex-cards li { border: 1px dashed var(--ex-line); border-radius: 10px; padding: 8px 10px; }
.ex-cards li span { display: block; color: var(--ex-muted); }
.ex-cards li.done { border-style: solid; border-color: var(--ex-ok); }

/* panels: pre-lab, notebook, CER, test */
.ex-panel { background: var(--ex-card); border: 1px solid var(--ex-line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--ex-shadow); }
.ex-panel h2 { margin: 4px 0 8px; font-size: 22px; line-height: 1.2; }
.ex-panel h3 { margin: 14px 0 6px; font-size: 18px; }
.ex-pre-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 8px 28px; }
.ex-pre-grid p { margin: 0 0 8px; }
.ex-term { color: var(--ex-accent); }
.ex-vocab { margin: 0; } .ex-vocab dt { font-weight: 800; } .ex-vocab dd { margin: 0 0 6px; color: var(--ex-muted); }
.ex-pred { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--ex-line); border-radius: 12px; padding: 12px; background: var(--ex-soft); }
.ex-pred label { font-weight: 700; }
.ex-pred .ex-msg { margin: 2px 0 0; }
.ex-safety { margin: 0; padding-left: 20px; }
.ex-links { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--ex-line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ex-links b { white-space: nowrap; }
.ex-dialog .ex-links { display: block; }
.ex-data-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ex-data-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 22px; }
.ex-data-grid > div:last-child { max-width: 820px; }
.ex-table { overflow: auto; max-height: 360px; border: 1px solid var(--ex-line); border-radius: 10px; }
.ex table { width: 100%; border-collapse: collapse; font-size: 16px; }
.ex th, .ex td { padding: 7px 10px; border-bottom: 1px solid var(--ex-line); text-align: left; color: var(--ex-ink); vertical-align: top; }
.ex th { background: var(--ex-soft); font-weight: 800; }
.ex td.ex-empty { text-align: center; color: var(--ex-muted); }
.ex-cer-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ex-cer-head > div { flex: 1 1 320px; }
.ex-checklist { list-style: none; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--ex-soft); flex: 1 1 320px; }
.ex-checklist li { padding: 2px 0; color: var(--ex-muted); }
.ex-checklist li.done { color: var(--ex-ok); font-weight: 700; }
.ex-pick { margin-top: 10px; }
.ex-pick summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
.ex-pick label { display: flex; gap: 8px; align-items: flex-start; padding: 10px 0; min-height: 44px; }
.ex-pick input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--ex-accent); }
.ex-pick .ex-msg { margin: 0; }
.ex-cer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.ex-cer-grid label { display: flex; flex-direction: column; font-weight: 800; }
.ex-cer-grid small { font-weight: 500; color: var(--ex-muted); }
.ex-cer-grid textarea { font: 16px/1.45 "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 150px; padding: 10px; margin-top: 4px; border: 1px solid var(--ex-line); border-radius: 10px; background: var(--ex-card); color: var(--ex-ink); resize: vertical; }
.ex-turnin { margin-top: 12px; }
.ex-done { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--ex-ok); background: var(--ex-soft); }
.ex-done h3 { margin-top: 0; }
.ex-test { margin-top: 14px; max-width: 980px; }
.ex-test-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ex-test-head h2 small { font-size: 18px; color: var(--ex-muted); }
.ex-progress { flex: 0 1 260px; height: 10px; background: var(--ex-soft); border-radius: 999px; overflow: hidden; border: 1px solid var(--ex-line); }
.ex-progress i { display: block; height: 100%; background: var(--ex-accent); }
.ex-tag { display: inline-block; margin: 8px 0 0; padding: 3px 10px; border-radius: 999px; background: #fff1d6; color: #6b4300; font-weight: 700; }
html[data-theme="dark"] .ex-tag { background: #4a3510; color: #ffe2a8; }
.ex-q { font-size: 19px; font-weight: 700; margin: 12px 0; }
.ex-q b { color: var(--ex-accent); }
.ex-run { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; }
.ex-choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.ex-choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 48px; border: 2px solid var(--ex-line); border-radius: 12px; cursor: pointer; background: var(--ex-card); position: relative; }
.ex-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ex-choice:focus-within { outline: 3px solid #eaa33d; outline-offset: 2px; }
.ex-choice.is-picked { border-color: var(--ex-accent); background: var(--ex-soft); }
.ex-choice.ok { border-color: var(--ex-ok); } .ex-choice.no { border-color: var(--ex-no); }
.ex-choice em { margin-left: auto; font-style: normal; font-weight: 900; font-size: 20px; }
.ex-choice.ok em { color: var(--ex-ok); } .ex-choice.no em { color: var(--ex-no); }
.ex-letter { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--ex-soft); border: 1px solid var(--ex-line); }
.ex-choices:disabled .ex-choice { cursor: default; }
.ex-numrow { display: flex; flex-wrap: wrap; gap: 12px; }
.ex-numrow label { display: flex; flex-direction: column; font-weight: 700; gap: 2px; }
.ex-numrow input { width: 160px; }
.ex-explain { padding: 10px 12px; border-radius: 10px; background: var(--ex-soft); margin: 12px 0 0; }
.ex-explain.ok { border-left: 4px solid var(--ex-ok); } .ex-explain.no { border-left: 4px solid var(--ex-no); } .ex-explain--need { border-left: 4px solid var(--ex-sun); font-weight: 700; }
.ex-test-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }
.ex-test-nav .ex-btn--pri { margin-left: auto; }
.ex-review { padding-left: 26px; }
.ex-review li { margin: 10px 0; }
.ex-review li.ok > b { color: var(--ex-ok); } .ex-review li.no > b { color: var(--ex-no); }

/* dialogs */
.ex-dialog { max-width: 720px; width: calc(100vw - 32px); border: 0; border-radius: 16px; padding: 22px 26px; color: #14263a; background: #fff; box-shadow: 0 20px 70px rgba(0, 0, 0, .4); font: 16px/1.55 "Atkinson Hyperlegible", system-ui, sans-serif; }
html[data-theme="dark"] .ex-dialog { background: #172633; color: #e6eef3; }
html[data-theme="dark"] .ex-dialog a { color: #8fd6f0; }
.ex-dialog::backdrop { background: rgba(6, 21, 37, .7); }
.ex-dialog h2 { margin-top: 0; overflow: hidden; min-height: 44px; }
.ex-dialog .ex-links a { display: block; padding: 4px 0; }
.ex-dialog a { font-weight: 700; }
.ex-x { float: right; font-size: 28px; line-height: 1; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; }

/* responsive */
@media (max-width: 1180px) {
  .ex-stage { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .ex-bench { grid-template-columns: minmax(0, 1fr); }
  .ex-app { grid-template-columns: minmax(0, 420px) 104px; justify-content: center; }
  .ex-gate-grid, .ex-cer-grid, .ex-pre-grid, .ex-data-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ex-app { grid-template-columns: minmax(0, 1fr); }
  .ex-tabs button { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .ex * { transition: none !important; animation: none !important; } }
@media print { .ex-bench, .ex-tabs, .ex-modes, .ex-actions, .ex-turnin { display: none !important; } }

/* the site's "Sign in to save your progress" chip docks here, in the page flow, so it never floats over the bench */
.ex-signin:empty { display: none; }
.ex-signin .tlg-signin-note { margin: 0; }

/* short labels on phones so the bench starts higher up the page */
.ex-narrow { display: none; }
@media (max-width: 560px) {
  .ex-wide { display: none; }
  .ex-narrow { display: inline; }
  .ex-modes-note { display: none; }
  .ex-bar { gap: 6px 8px; padding-top: 6px; }
  .ex .ex-actions .ex-btn { padding: 10px 12px; }
}


/* ── Extraction & TLC Lab layout ── */
.ex-gate { background: linear-gradient(140deg, #1d2a10, #7a6206 40%, #0d6670 75%, #145a35); }
.ex-gate-top { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; }
.ex-gate-swatches { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.ex-gate-swatches span { display: block; width: 46px; height: 26px; border-radius: 6px; border: 2px solid rgba(80,100,120,.45); }
.ex-bench { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "st" "app" "now" "side"; gap: 10px 16px; align-items: start; }
.ex-stations { grid-area: st; display: flex; flex-wrap: wrap; gap: 6px; }
.ex-stations button { appearance: none; font: 700 16px/1.2 "Atkinson Hyperlegible", system-ui, sans-serif; min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 2px solid var(--ex-line); background: var(--ex-card); color: var(--ex-ink); cursor: pointer; }
.ex-stations button.is-on { border-color: var(--ex-accent); background: var(--ex-accent); color: var(--ex-accent-ink); }
.ex-app { grid-area: app; min-width: 0; display: grid; grid-template-columns: minmax(0, 600px) 236px; gap: 10px; align-items: start; }
.ex-canvas-wrap { min-width: 0; }
.ex-ctl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ex .ex-ctl .ex-btn { justify-content: flex-start; text-align: left; white-space: normal; line-height: 1.2; }
.ex .ex-ctl .ex-btn:disabled { opacity: .45; }
.ex-field { display: flex; flex-direction: column; gap: 2px; font-weight: 700; min-width: 0; }
.ex-field output { font-weight: 800; color: var(--ex-accent); }
.ex-field select { width: 100%; }
.ex-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ex-acid { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px dashed var(--ex-line); border-radius: 10px; }
.ex-acid > span { font-weight: 800; }
.ex-now { grid-area: now; margin: 0; padding: 8px 12px; border-left: 4px solid #c99a07; background: var(--ex-soft); border-radius: 8px; min-height: 2.6em; display: flex; flex-direction: column; gap: 2px; }
.ex-side { grid-area: side; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; align-items: start; }
.ex-side .ex-nextmini { grid-column: 1 / -1; }
.ex-side h3 { margin: 0 0 6px; font-size: 17px; }
.ex-side h3 small { font-weight: 500; color: var(--ex-muted); }
.ex-molview, .ex-lanekey { padding: 10px 12px; border-radius: 12px; background: var(--ex-soft); border: 1px solid var(--ex-line); }
.ex-molview .ex-muted { margin: 6px 0 0; }
.ex-layer { border-radius: 10px; padding: 6px 8px; margin-bottom: 6px; border: 2px solid var(--ex-line); background: var(--ex-card); }
.ex-layer--org { border-color: #d6a90c; background: linear-gradient(#fff7d2, #fff2bb); }
.ex-layer--aq { border-color: #7fb2d6; background: linear-gradient(#eef7fd, #e1eff9); }
html[data-theme="dark"] .ex-layer--org { background: #3d3410; }
html[data-theme="dark"] .ex-layer--aq { background: #15324a; }
.ex-layer-name { margin: 0 0 2px; font-weight: 800; }
.ex-layer-items { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; color: var(--ex-ink); }
.ex-mol { display: block; overflow: visible; }
.ex-mol-fl path { stroke: #9a6f00; }
html[data-theme="dark"] .ex-mol-fl path { stroke: #ffd65a; }
.ex-mol-na { fill: #d9ecff; stroke: #2f6fa8; stroke-width: 1.5; }
html[data-theme="dark"] .ex-mol-na { fill: #1f4a73; stroke: #8fc3f0; }
.ex-mol-neg { fill: #b3261e; }
html[data-theme="dark"] .ex-mol-neg { fill: #ff9b93; }
.ex-lanekey ul { margin: 0; padding-left: 0; list-style: none; }
.ex-lanekey li { padding: 2px 0; }
.ex-lanekey b { display: inline-block; min-width: 1.4em; }
.ex-mini h3, .ex-data h3 { margin: 0 0 4px; font-size: 17px; }
.ex-mini canvas, #bigGraph { display: block; width: 100%; max-width: 100%; border-radius: 8px; border: 1px solid var(--ex-line); }
.ex-eqbox { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--ex-soft); border-left: 4px solid #c99a07; font-weight: 700; }
.ex-ask-label { font-weight: 700; }
.ex-pickset { display: grid; gap: 6px; margin: 4px 0; }
.ex-opt { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; min-height: 44px; border: 2px solid var(--ex-line); border-radius: 10px; background: var(--ex-card); cursor: pointer; font-weight: 600; }
.ex-opt input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--ex-accent); }
.ex-opt:has(input:checked) { border-color: var(--ex-accent); }
.ex-opt:focus-within { outline: 3px solid #eaa33d; outline-offset: 2px; }
.ex-fig { margin: 8px 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ex-fig canvas { border-radius: 10px; border: 1px solid var(--ex-line); }
.ex-fig figcaption { color: var(--ex-muted); flex: 1 1 200px; }
.ex-data-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ex-mini, .ex-data-grid > div { min-width: 0; }
.ex-nextmini { display: none; margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--ex-soft); border-left: 4px solid var(--ex-sun); flex-direction: column; gap: 2px; }
.ex-nextmini b { color: var(--ex-sun); }
.ex-nextmini > * { display: block; }
.ex-nextmini a { align-self: flex-start; min-height: 44px; display: flex; align-items: center; }
@media (max-width: 1240px) { .ex-stage { grid-template-columns: minmax(0, 1fr); } .ex-nextmini { display: flex; } }
@media (max-width: 1180px) { .ex-data-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .ex-app { grid-template-columns: minmax(0, 1fr); } .ex-ctl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .ex-ctl > .ex-field, .ex-ctl > .ex-two, .ex-ctl > .ex-acid { grid-column: 1 / -1; } .ex-acid { display: grid; grid-template-columns: 1fr 1fr; } .ex-acid > span { grid-column: 1 / -1; } .ex-side { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ex-gate-swatches { display: none; } .ex .ex-ctl .ex-btn { padding: 10px 10px; } }
