/* Living Atlas V2: presentation-only layer over the preserved research UI. */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #1d1d1f;
  --muted: #626266;
  --paper: #f5f5f7;
  --surface: #fff;
  --forest: #1d1d1f;
  --accent: #333336;
  --line: #e2e2e5;
  --danger: #a74335;
  --ease-atlas: cubic-bezier(.28,.11,.32,1);
}

html { scroll-padding-top: 112px; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv05", "cv11";
  -webkit-font-smoothing: antialiased;
  background: var(--paper);
  line-height: 1.6;
}
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-weight: 550; letter-spacing: -.045em; }
h3 { letter-spacing: -.025em; }
::selection { background: #d9d9de; color: #1d1d1f; }
a { text-underline-offset: 4px; }
button, input, select, summary, a { -webkit-tap-highlight-color: transparent; }
button, select, input:not([type="checkbox"]):not([type="range"]) { min-height: 44px; }
button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: #eeeef0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
  padding: 10px 16px;
  line-height: 1.3;
  transition: background 160ms var(--ease-atlas), transform 160ms var(--ease-atlas), box-shadow 160ms var(--ease-atlas);
}
button:hover { background: #e2e2e6; }
button:active:not(:disabled) { transform: scale(.98); }
button:disabled { opacity: .48; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #77777f;
  outline-offset: 4px;
}
.primary { background: var(--forest); color: #fff; border-color: transparent; }
.primary:hover { background: #38383b; }
input:not([type="checkbox"]):not([type="range"]), select {
  border: 1px solid #d9d9df;
  border-radius: 12px;
  padding: 11px 12px;
  background: #fafafa;
  font-size: 13px;
}
input:focus, select:focus { background: #fff; }
input[type="range"] { accent-color: var(--forest); min-height: 36px; }
label { font-size: 12px; font-weight: 550; }
summary { min-height: 36px; font-size: 13px; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .13em; }
.hint { font-size: 12px; line-height: 1.6; }
.skip-link { position: fixed; top: -80px; left: 24px; z-index: 2000; padding: 12px 20px; background: var(--forest); color: #fff; border-radius: 30px; }
.skip-link:focus { top: 16px; }

/* Translucency is reserved for navigation and map controls. */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1560px;
  min-height: 68px;
  margin: 14px auto 0;
  padding: 10px 20px;
  gap: 24px;
  border: 1px solid #ffffffb3;
  border-radius: 999px;
  background: #fafafae8;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 5px 24px #00000008, inset 0 1px 0 #fff;
}
.brand { gap: 10px; color: var(--ink); font-size: 15px; letter-spacing: -.03em; font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; padding: 5px; border-radius: 50%; color: var(--forest); background: transparent; }
.brand-mark svg { width: 25px; height: 25px; }
.brand small { margin-top: -2px; font-size: 10px; letter-spacing: .035em; }
.topbar nav { gap: 2px; align-items: center; }
.topbar nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 13px; border-radius: 30px; color: #55555b; font-size: 12px; white-space: nowrap; transition: background 160ms; }
.topbar nav a:hover { background: #e9e9ed; color: var(--ink); }
.topbar nav a[aria-current="page"] { background: #e5e5ea; color: #1d1d1f; }
.status { max-width: 180px; flex-shrink: 0; padding-left: 18px; font-size: 11px; }

.workbench-intro {
  max-width: 1560px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 0 auto;
  padding: 64px 36px 40px;
}
.workbench-intro .eyebrow { margin-bottom: 18px; }
.workbench-intro h1 { margin: 0; font-size: clamp(36px, 4vw, 62px); line-height: 1.06; }
.workbench-intro h1 span { color: #77777c; }
.workbench-intro > p { margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* A generous canvas, with compact controls where research needs them. */
.workspace {
  grid-template-columns: 280px minmax(300px,1fr) 310px;
  max-width: 1608px;
  padding: 0 24px 56px;
  gap: 14px;
  align-items: start;
}
.controls, .evidence { padding: 26px 20px; border: 1px solid #e7e7eb; border-radius: 22px; background: #fff; }
.controls h2 { font-size: 25px; line-height: 1.12; margin-bottom: 14px; }
.controls .eyebrow { font-size: 9px; letter-spacing: .1em; }
.intro { font-size: 13px; line-height: 1.65; }
.correction { border-left: 2px solid #b6b6bd; padding-left: 10px; font-size: 11px; margin-bottom: 22px; }
.button-row { gap: 6px; }
.presets { gap: 6px; }
.presets button { min-height: 36px; font-size: 11px; padding: 8px 11px; }
#loadPilot { width: 100%; margin-bottom: 8px; }
.refine { min-height: 46px; }
.control-section { margin-top: 22px; padding-top: 22px; }
.check { font-size: 12px; line-height: 1.5; }
.check input { flex-shrink: 0; }
.button-stack a { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 10px 12px; border-radius: 12px; font-size: 12px; background: #f5f5f7; border-color: transparent; }
.button-stack a:hover { background: #e9e9ed; }
.text-link { font-size: 12px; }
.message { border: 0; border-radius: 12px; padding: 12px; background: #f0f0f3; font-size: 12px; }
.message.error { background: #fff1ee; color: #913e31; }
.map-column { padding: 0; background: transparent; }
.map-toolbar { min-height: 48px; margin: 0 0 12px; gap: 8px; }
.map-toolbar button { min-height: 40px; padding: 9px 12px; font-size: 11px; }
.map-toolbar #pickCell { font-weight: 550; }
.segmented { padding: 4px; border-radius: 30px; background: #e6e6eb; }
.segmented button, .segmented button:first-child, .segmented button:last-child { min-height: 34px; border: 0; border-radius: 30px; background: transparent; }
.segmented button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px #0000000c; }
#pickCell.active, #pickLocation.active { background: #e5e5ea; border-color: transparent; color: #1d1d1f; }
.cell-pick-controls { padding: 12px 16px; margin: 0 0 12px; border: 0; border-radius: 16px; background: #fff; }
.cell-pick-controls p { font-size: 12px; color: var(--muted); }
.cell-pick-controls label { font-size: 10px; letter-spacing: .08em; }
.cell-pick-controls input { font-size: 12px; min-height: 38px !important; }
.cell-pick-controls button { min-height: 38px; }
.map-frame { height: clamp(500px, 65vh, 820px); border: 0; border-radius: 20px; overflow: hidden; background: #e2e2e7; box-shadow: 0 0 0 1px #00000012; }
#map { background: #e8e8ec; }
.map-loading { background: #ededf1; font-size: 13px; }
.map-legend { border: 1px solid #ffffff70; border-radius: 14px; padding: 12px 14px; background: #fffffff0; box-shadow: 0 4px 24px #0000000b; }
.north { top: 14px; right: 14px; padding: 8px 10px; border-radius: 20px; background: #fffffff0; }
.leaflet-bar { border: 0 !important; border-radius: 14px !important; box-shadow: 0 2px 12px #00000020 !important; overflow: hidden; }
.leaflet-bar a { width: 36px !important; height: 36px !important; line-height: 36px !important; color: var(--ink) !important; }
.leaflet-container { font-family: "Inter", sans-serif; }
.leaflet-control-scale-line { border-color: #626266; color: var(--ink); }
.map-caption { margin-top: 10px; gap: 8px; font-size: 10px; }
.map-caption button { min-height: 36px; padding: 8px 12px; font-size: 10px; }
.metrics { border: 0; border-radius: 16px; margin-top: 16px; overflow: hidden; }
.metrics > div { padding: 16px 12px; border-color: #ededf0; }
.metrics dt { font-size: 10px; }
.metrics dd { font-size: 29px; letter-spacing: -.05em; font-weight: 550; line-height: 1.3; }
.candidate-bar { padding: 14px 4px 0; font-size: 11px; }
.candidate-bar button { width: 36px; min-height: 36px; padding: 0; background: #fff; }
.evidence { top: 98px; max-height: calc(100dvh - 116px); scrollbar-width: thin; scrollbar-color: #bdbdc5 transparent; }
.evidence.is-open { box-shadow: 0 0 0 1px #ccccd4; }
.evidence-heading { top: -26px; margin-top: -4px; margin-bottom: 20px; padding: 8px 0; background: #fff; border: 0; }
.evidence-heading button { width: 34px; min-width: 34px; min-height: 34px; background: #f0f0f3; }
.evidence h2 { font-size: 23px; line-height: 1.2; }
.evidence .muted { font-size: 13px; }
.evidence .mono { font-size: 11px; }
.boundary-note { font-size: 11px; line-height: 1.7; }
.cell-status { border-radius: 8px; padding: 5px 8px; font-size: 10px; background: #eeeef1; }
.score-summary > span { font-size: 48px; font-weight: 500; }
.family-bar, .family-bar i { border-radius: 8px; }
.family-bar { background: #e5e5eb; }
/* The status and data colors still encode research meaning. */
.status.live, .rule-list .pass { color: #297258; }
.date-support { gap: 6px; }
.date-support > span { font-size: 10px; border-bottom-width: 2px; }
.cell-metadata dt, .cell-metadata dd { font-size: 11px; }
.cell-data-scroll table { font-size: 11px; }
.cell-data-scroll th { background: #f2f2f5; }
.evidence-text, .rule-list { font-size: 12px; }
.chart-heading h3 { font-size: 15px; }
.chart-heading select { min-height: 36px; border-radius: 10px; }

.research-lab, .outputs, .methods { max-width: 1488px; padding: 72px 48px; border: 0; }
.research-lab { border-radius: 32px; margin-bottom: 32px; background: #fff; }
.section-heading { align-items: flex-end; margin-bottom: 32px; }
.section-heading h2 { font-size: clamp(30px,3.3vw,48px); max-width: 720px; line-height: 1.12; }
#labTitle:focus { outline: none; }
.section-heading .eyebrow { margin-bottom: 18px; font-size: 10px; }
.section-heading p.muted { max-width: 690px; font-size: 15px; line-height: 1.7; }
.section-heading > button, .section-heading > a { flex-shrink: 0; }
.research-findings { gap: 36px; border: 0; border-bottom: 1px solid var(--line); padding: 28px 0 36px; margin-bottom: 32px; }
.research-findings strong { font-size: 44px; font-weight: 550; letter-spacing: -.05em; line-height: 1.2; margin-bottom: 10px; }
.research-findings span { display: block; max-width: 330px; font-size: 13px; line-height: 1.7; }
.lab-tabs { gap: 6px; border: 0; border-radius: 32px; background: #f1f1f4; padding: 6px; width: fit-content; margin-bottom: 22px; }
.lab-tabs button { min-height: 44px; padding: 12px 20px; background: transparent; font-size: 12px; }
.lab-tabs [aria-selected="true"] { background: #1d1d1f; color: #fff; box-shadow: 0 2px 6px #00000012; border-color: transparent; }
.lab-selection { padding: 22px 0; }
.lab-step { padding: 30px 0; }
.lab-step h3 { font-size: 23px; line-height: 1.3; font-weight: 550; }
.lab-step h4 { font-size: 15px; font-weight: 600; }
.lab-step p { font-size: 14px; line-height: 1.8; }
.lab-controls { padding: 24px; gap: 20px; margin: 16px 0; border-radius: 18px; background: #f6f6f8; }
.lab-controls > div { min-width: 180px; }
.lab-controls select { background: #fff; }
.research-lab td, .research-lab th { padding: 13px 16px; font-size: 12px; border-color: #e8e8ed; }
.research-lab th { background: #f2f2f5; }
.research-lab svg text { font-family: "Inter", sans-serif; fill: #4b4b52; }
.table-scroll { border-radius: 12px; }
.calculation-line { padding: 20px 24px; border: 0; border-radius: 16px; background: #f2f2f5; font-size: 13px; }
.paper-grid article { border-color: #9999a2; }
.warning-note { padding: 20px 24px; border-left-width: 2px; border-radius: 0 14px 14px 0; line-height: 1.8; }
.reference-heading { margin: 32px 0 16px; }
.reference-heading h3 { font-size: 24px; }
.report-download { border-radius: 30px; padding: 12px 20px; border: 0; background: #eeeef2; font-size: 12px; }
.reference-list li { padding: 22px 0; font-size: 14px; }
.reference-list strong { margin-bottom: 8px; }
.reference-list p { font-size: 13px; }
.research-lab .button-row { gap: 16px; }
.research-lab .button-row a { font-size: 12px; min-width: 140px; }
.outputs { padding-top: 56px; }
.figure-gallery { gap: 18px; }
.figure-card { border: 0; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #e5e5ea4d; }
.figure-card > button { border-radius: 0; }
.figure-card figcaption { padding: 18px; font-size: 13px; }
.figure-card figcaption b { font-weight: 550; }
.figure-card figcaption a { font-size: 11px; }
.methods { border-top: 1px solid var(--line); }
.method-grid { gap: 32px; margin: 36px 0; }
.method-grid h3 { font-size: 18px; }
.method-grid p { font-size: 13px; line-height: 1.8; }
.validation-summary { padding: 28px; border: 0; border-radius: 20px; gap: 32px; font-size: 13px; }
.validation-summary strong { font-size: 32px; letter-spacing: -.04em; }
#dataCorrection { padding-top: 36px; padding-bottom: 64px; }
#dataCorrection h2 { font-size: 26px; }
footer { padding: 28px; border-color: var(--line); font-size: 11px; }
dialog { padding: 20px; border-radius: 24px; }
dialog::backdrop { background: #18181bb8; backdrop-filter: blur(10px); }

/* Evidence is an editorial reading view with the full original controls. */
.confidence { max-width: 1300px; padding-top: 76px; margin-top: 0; background: transparent; }
.confidence > .eyebrow { margin-bottom: 24px; }
.confidence h1 { max-width: 850px; font-size: clamp(38px,5vw,68px); line-height: 1.08; margin-bottom: 28px; }
.confidence > p:not(.eyebrow) { max-width: 700px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.confidence #loadStatus { font-size: 13px; color: var(--muted); }
.confidence .research-findings { margin: 40px 0; padding: 30px 0 38px; }
.confidence .lab-step { margin: 20px 0; padding: 36px; border: 0; border-radius: 24px; background: #fff; }
.confidence h2 { font-size: 30px; margin-bottom: 18px; line-height: 1.2; }
.confidence .warning-note { font-size: 14px; }
.confidence .scope-note { border-color: #9797a0; }
.confidence .interval-chart { margin: 24px 0; }
.confidence .lab-controls { padding: 20px; }
.confidence .lab-controls > div { min-width: 155px; }
.confidence .table-scroll { margin-bottom: 18px; }
.confidence td, .confidence th { font-size: 12px; }
.confidence #candidate { margin: 8px 0; }
.confidence .button-row { gap: 8px 24px; }
.confidence .button-row a { flex-basis: 28%; padding: 10px 0; }

@media (min-width: 1700px) {
  .workspace { grid-template-columns: 286px minmax(540px,1fr) 320px; }
}

@media (max-width: 1350px) {
  .topbar { gap: 12px; }
  .topbar nav a { padding: 9px 10px; font-size: 11px; }
  .status { max-width: 140px; font-size: 10px; padding-left: 12px; }
  .workspace { grid-template-columns: 250px minmax(280px,1fr) 285px; gap: 12px; padding-left: 18px; padding-right: 18px; }
  .controls, .evidence { padding: 22px 16px; }
  .research-lab, .outputs, .methods { margin-left: 24px; margin-right: 24px; padding-left: 36px; padding-right: 36px; }
  .confidence { margin-left: auto; margin-right: auto; }
  .evidence-heading { top: -22px; }
}

@media (max-width: 1200px) {
  .workspace { grid-template-columns: 270px minmax(0,1fr); }
  .evidence { display: none; position: fixed; z-index: 1100; top: 16px; right: 16px; bottom: 16px; width: min(400px,90vw); max-height: none; border-radius: 24px; border: 1px solid #dbdbe3; }
  .evidence.is-open { display: block; box-shadow: 0 16px 80px #00000030; }
  .status { display: none; }
  .workbench-intro { padding-top: 52px; }
  .workbench-intro > p { max-width: 320px; font-size: 13px; }
  .section-heading { gap: 28px; }
  .section-heading h2 { font-size: 38px; }
  .figure-gallery { grid-template-columns: repeat(3,1fr); }
  .lab-tabs button { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 900px) {
  .topbar { width: calc(100% - 32px); padding: 10px 16px; flex-wrap: wrap; gap: 6px; border-radius: 24px; top: 8px; margin-top: 8px; }
  .topbar .brand { flex: 1 0 100%; }
  .brand-mark { width: 28px; height: 28px; }
  .brand small { display: none; }
  .topbar nav { width: 100%; margin: 0; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { padding: 8px 12px; min-height: 36px; font-size: 11px; }
  html { scroll-padding-top: 126px; }
  .workbench-intro { padding: 44px 26px 32px; }
  .workbench-intro > p { display: none; }
  .workspace { grid-template-columns: 240px minmax(0,1fr); }
  .controls { padding: 22px 16px; }
  .controls h2 { font-size: 23px; }
  .controls .button-row { flex-wrap: wrap; }
  .controls .button-row > button { flex-basis: 100%; }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .metrics > div { border-bottom: 1px solid #ededf0; }
  .metrics > div:nth-child(even) { border-right: 0; }
  .metrics > div:nth-child(n+3) { border-bottom: 0; }
  .research-lab, .outputs, .methods { margin-left: 16px; margin-right: 16px; padding: 48px 28px; }
  .section-heading { display: block; }
  .section-heading > button { margin-top: 24px; }
  .section-heading h2 { font-size: 34px; }
  .lab-tabs { border-radius: 20px; }
  .lab-tabs button { font-size: 11px; padding: 10px 14px; }
  .confidence { margin: 0; padding-top: 54px; }
  .confidence .lab-step { padding: 28px; }
}

@media (max-width: 760px) {
  .topbar { gap: 2px; }
  .topbar nav { margin-top: 4px; }
  .topbar nav a { padding: 9px 11px; }
  .workbench-intro { padding: 40px 22px 28px; }
  .workbench-intro h1 { font-size: 39px; }
  .workbench-intro .eyebrow { font-size: 9px; margin-bottom: 16px; }
  .workspace { display: flex; flex-direction: column; gap: 18px; padding: 0 16px 36px; }
  .controls, .map-column, .evidence { width: 100%; }
  .controls { padding: 24px; }
  .controls h2 { font-size: 27px; }
  .controls .button-row { flex-wrap: nowrap; }
  .controls .button-row > button { flex-basis: auto; }
  .presets button { min-height: 40px; font-size: 12px; }
  .controls .eyebrow { font-size: 10px; }
  .map-frame { height: 490px; border-radius: 18px; }
  .map-column { padding: 0; }
  .map-toolbar { gap: 8px; }
  .map-toolbar #pickCell { margin-left: auto; }
  .map-toolbar button { font-size: 11px; }
  .cell-pick-controls { padding: 14px; }
  .cell-pick-controls form { gap: 8px; }
  .cell-pick-controls label { flex-basis: 100%; }
  .cell-pick-controls input { min-width: 0; }
  .map-caption { align-items: center; }
  .map-caption > span { max-width: 230px; }
  .metrics { grid-template-columns: repeat(4,1fr); }
  .metrics > div { padding: 14px 9px; border-bottom: 0; border-right: 1px solid #ededf0; }
  .metrics > div:nth-child(even) { border-right: 1px solid #ededf0; }
  .metrics > div:last-child { border-right: 0; }
  .metrics dt { font-size: 9px; line-height: 1.5; }
  .metrics dd { font-size: 25px; }
  .evidence { width: min(400px,calc(100vw - 24px)); right: 12px; top: 12px; bottom: 12px; padding: 24px; }
  .evidence-heading { top: -24px; }
  .evidence h2 { font-size: 24px; }
  .evidence .mono { font-size: 12px; }
  .research-lab, .outputs, .methods { margin: 0 16px 24px; padding: 38px 22px; border-radius: 24px; }
  .section-heading h2 { font-size: 31px; }
  .section-heading p.muted { font-size: 14px; }
  .research-findings { grid-template-columns: 1fr; gap: 24px; padding: 16px 0 30px; }
  .research-findings > div { gap: 20px; }
  .research-findings strong { min-width: 120px; margin: 0; font-size: 30px; white-space: nowrap; }
  .research-findings span { font-size: 12px; }
  .lab-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; padding: 6px; gap: 4px; }
  .lab-tabs button { white-space: normal; padding: 10px 9px; border-radius: 14px; }
  .lab-tabs button:last-child { grid-column: 1 / -1; }
  .lab-controls { padding: 18px; margin: 16px 0; }
  .lab-controls > div { min-width: 0; margin: 12px 0; }
  .lab-step h3 { font-size: 22px; }
  .lab-step p { font-size: 13px; }
  .research-lab td, .research-lab th { padding: 12px; }
  .research-lab .lab-step { overflow-x: auto; }
  .calculation-line, .warning-note { padding: 16px; }
  .reference-list li { padding: 20px 0; }
  .reference-list a { font-size: 13px; }
  .reference-heading h3 { font-size: 23px; }
  .figure-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .figure-card { border-radius: 14px; }
  .figure-card figcaption { padding: 12px; font-size: 12px; }
  .method-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .validation-summary { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .validation-summary strong { font-size: 28px; }
  .confidence { margin: 0; padding: 48px 18px; }
  .confidence h1 { font-size: 42px; margin-bottom: 24px; }
  .confidence > p:not(.eyebrow) { font-size: 15px; }
  .confidence .research-findings { margin: 32px 4px; }
  .confidence .research-findings strong { font-size: 30px; }
  .confidence .lab-step { padding: 24px 18px; margin: 18px 0; border-radius: 20px; overflow: hidden; }
  .confidence h2 { font-size: 27px; }
  .confidence .lab-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 16px; }
  .confidence .lab-controls > div { min-width: 0; margin: 0; }
  .confidence .lab-controls select { font-size: 12px; padding-left: 8px; padding-right: 4px; }
  .confidence .interval-chart svg { min-width: 630px; }
  .confidence .button-row a { min-width: 130px; flex-basis: 40%; font-size: 12px; }
  .confidence .scope-note, .confidence .warning-note { font-size: 13px; }
  .confidence .table-scroll { max-width: 100%; }
  .confidence td, .confidence th { min-width: 96px; padding: 10px; }
}

@media (max-width: 390px) {
  .topbar { width: calc(100% - 20px); }
  .topbar nav a { font-size: 10px; padding-left: 9px; padding-right: 9px; }
  .workbench-intro h1 { font-size: 34px; }
  .workspace { padding-left: 10px; padding-right: 10px; }
  .controls { padding: 20px; }
  .map-toolbar .segmented { width: 100%; }
  .map-toolbar .segmented button { flex: 1; }
  .map-toolbar #pickCell { margin-left: 0; }
  .research-lab, .outputs, .methods { margin-left: 10px; margin-right: 10px; padding-left: 18px; padding-right: 18px; }
  .confidence { margin: 0; padding-left: 14px; padding-right: 14px; }
  .confidence h1 { font-size: 36px; }
  .confidence .lab-controls { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button, a { transition: none !important; }
  button:active:not(:disabled) { transform: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: #424246; --line: #a8a8b0; }
  .topbar { background: #fff; }
  button, select, input { border-color: #8a8a94; }
}
