/* The SAT question screen (js/sat.js `shell`, js/sat-tools.js): it fills the
   window like the test's own app. A bar on top, the question in the middle
   in one or two halves, a bar below, and windows that float over it.
   Tokens come from site-refresh.css; the question, options and grid keep
   the rules they have there. */

html[data-sat-run] { overflow: hidden; }
html[data-sat-run] body { overflow: hidden; }
/* The site's own bar would sit on top of the test's; it comes back on leaving. */
html[data-sat-run] body > :is(.nav, .nav-mobile, .skip-link, footer) { display: none !important; }
html.satx-dragging, html.satx-dragging * { cursor: grabbing !important; user-select: none !important; }

html:root body[data-page="sat"] .satx { position: fixed; inset: 0; z-index: 900; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--paper); color: var(--ink); }

/* ── top bar ────────────────────────────────────────────────────────── */
html:root body[data-page="sat"] .satx-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: center; min-height: 4rem; padding: .55rem clamp(.9rem, 2.5vw, 2rem); border-bottom: 2px dashed var(--line-strong); background: var(--mist); }
html:root body[data-page="sat"] .satx-top__left { display: flex; gap: .35rem 1.1rem; align-items: center; min-width: 0; }
html:root body[data-page="sat"] .satx-top__title { min-width: 0; }
html:root body[data-page="sat"] .satx-top__title h2 { margin: 0; overflow: hidden; color: var(--ink); font-size: 1.0625rem; font-stretch: 92%; font-weight: 750; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
html:root body[data-page="sat"] .satx-top__title p { margin: .1rem 0 0; overflow: hidden; color: var(--muted); font-size: .8125rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
html:root body[data-page="sat"] .satx-top__middle { display: flex; justify-content: center; min-width: 0; }
html:root body[data-page="sat"] .satx-top__right { display: flex; gap: .25rem; align-items: center; justify-content: flex-end; }
html:root body[data-page="sat"] .satx-textbutton { flex: none; min-height: 2.5rem; padding: .35rem .6rem; border: 0; background: none; color: var(--brand); font: inherit; font-size: .9375rem; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; white-space: nowrap; }
html:root body[data-page="sat"] .satx-tool { display: inline-grid; justify-items: center; gap: .1rem; min-width: 4.25rem; min-height: 2.75rem; padding: .3rem .5rem; border: 1px solid transparent; border-radius: var(--r-ctl); background: none; color: var(--ink); font: inherit; font-size: .75rem; font-weight: 650; cursor: pointer; }
html:root body[data-page="sat"] .satx-tool svg { width: 1.35rem; height: 1.35rem; }
html:root body[data-page="sat"] .satx-tool[aria-pressed="true"] { border-color: var(--brand); background: var(--paper); color: var(--brand); }
html:root body[data-page="sat"] :is(.satx-textbutton, .satx-tool, .satx-where, .satx-mark, .satx-cross, .satx-strike):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) {
  html:root body[data-page="sat"] .satx-tool:hover { border-color: var(--line-strong); background: var(--paper); }
  html:root body[data-page="sat"] .satx-textbutton:hover { color: var(--brand-strong, var(--brand)); text-decoration-thickness: 2px; }
}
/* The same two buttons on the overview page, beside the Math heading. */
html:root body[data-page="sat"] .sat-tools .satx-tool { border-color: var(--line-strong); background: var(--paper); }

html:root body[data-page="sat"] .satx-meter { display: flex; gap: .6rem; align-items: center; color: var(--muted); font-size: .8125rem; }
html:root body[data-page="sat"] .satx-meter__label { font-weight: 650; }
html:root body[data-page="sat"] .satx-meter__sample { margin: 0; color: var(--muted); font-size: .875rem; }

/* ── the two halves ─────────────────────────────────────────────────── */
html:root body[data-page="sat"] .satx-main { --satx-split: 50%; display: grid; min-height: 0; }
html:root body[data-page="sat"] .satx-main.is-two { grid-template-columns: minmax(0, var(--satx-split)) .875rem minmax(0, 1fr); }
html:root body[data-page="sat"] .satx-main.is-one { grid-template-columns: minmax(0, 1fr); }
html:root body[data-page="sat"] .satx-pane { min-width: 0; min-height: 0; padding: clamp(1.1rem, 2.6vw, 2.25rem) clamp(1rem, 3vw, 2.75rem) 2.5rem; overflow-y: auto; overscroll-behavior: contain; }
html:root body[data-page="sat"] .satx-pane:focus { outline: none; }
html:root body[data-page="sat"] .satx-single { max-width: 46rem; margin: 0 auto; }
html:root body[data-page="sat"] .satx-single > .sat-q__stimulus { margin-bottom: 1.25rem; }
html:root body[data-page="sat"] .satx-pane .sat-q__stimulus { font-size: 1.0625rem; line-height: 1.75; }
html:root body[data-page="sat"] .satx-divider { position: relative; display: grid; place-items: center; border-inline: 1px solid var(--line); background: var(--mist); cursor: col-resize; touch-action: none; }
html:root body[data-page="sat"] .satx-divider__grip { width: .25rem; height: 2.5rem; border-radius: 999px; background: var(--line-strong); }
html:root body[data-page="sat"] .satx-divider:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
@media (hover: hover) { html:root body[data-page="sat"] .satx-divider:hover .satx-divider__grip { background: var(--brand); } }

/* ── the question's own bar: number, mark, cross-out ────────────────── */
html:root body[data-page="sat"] .satx-qbar { display: flex; gap: .75rem; align-items: center; min-height: 2.5rem; margin: 0 0 1.1rem; padding-right: .5rem; border-bottom: 2px dashed var(--line-strong); background: var(--mist); }
html:root body[data-page="sat"] .satx-qbar__number { display: grid; place-items: center; align-self: stretch; min-width: 2.5rem; padding: 0 .5rem; background: var(--brand); color: var(--on-brand); font-size: 1rem; font-weight: 750; font-variant-numeric: tabular-nums; }
html:root body[data-page="sat"] .satx-mark { display: inline-flex; gap: .4rem; align-items: center; min-height: 2.25rem; padding: .2rem .4rem; border: 0; background: none; color: var(--ink); font: inherit; font-size: .875rem; cursor: pointer; }
html:root body[data-page="sat"] .satx-mark__flag { width: .8rem; height: 1rem; border: 1.5px solid currentColor; border-bottom: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
html:root body[data-page="sat"] .satx-mark.is-on { color: var(--danger); font-weight: 700; }
html:root body[data-page="sat"] .satx-mark.is-on .satx-mark__flag { background: var(--danger); }
html:root body[data-page="sat"] .satx-cross { margin-left: auto; padding: .2rem .45rem; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
html:root body[data-page="sat"] .satx-cross__abc { font-size: .8125rem; font-weight: 750; letter-spacing: .04em; text-decoration: line-through; text-decoration-thickness: 2px; }
html:root body[data-page="sat"] .satx-cross.is-on { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }

html:root body[data-page="sat"] .satx-optrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: center; }
html:root body[data-page="sat"] .satx-strike { display: grid; place-items: center; min-width: 2.5rem; min-height: 2.5rem; padding: 0 .4rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--muted); font: inherit; font-size: .9375rem; font-weight: 700; cursor: pointer; }
html:root body[data-page="sat"] .satx-strike__letter { text-decoration: line-through; text-decoration-thickness: 2px; }
html:root body[data-page="sat"] .satx-strike.is-on { border-color: transparent; color: var(--brand); text-decoration: underline; }
html:root body[data-page="sat"] .sat-opt.is-struck { position: relative; opacity: 1; color: var(--muted); border-style: dashed; }
html:root body[data-page="sat"] .sat-opt.is-struck::after { content: ""; position: absolute; top: 50%; right: .6rem; left: .6rem; border-top: 2px solid var(--ink); }
html:root body[data-page="sat"] .sat-opt.is-struck .sat-opt__letter { color: var(--muted); }

/* ── typed answers: preview, and the rules on the left ──────────────── */
html:root body[data-page="sat"] .satx-preview { display: flex; flex-basis: 100%; gap: .6rem; align-items: center; min-height: 2.75rem; margin: .35rem 0 0; color: var(--ink); font-size: 1rem; }
html:root body[data-page="sat"] .satx-preview__label { font-weight: 700; }
html:root body[data-page="sat"] .satx-preview__value { display: inline-flex; gap: .2rem; align-items: center; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
html:root body[data-page="sat"] .satx-frac { display: inline-grid; justify-items: center; line-height: 1.15; }
html:root body[data-page="sat"] .satx-frac__top { padding: 0 .3rem; border-bottom: 2px solid currentColor; }
html:root body[data-page="sat"] .satx-frac__bottom { padding: 0 .3rem; }
html:root body[data-page="sat"] .satx-directions { max-width: 38rem; font-size: 1rem; line-height: 1.6; }
html:root body[data-page="sat"] .satx-directions h3 { margin: 0 0 .75rem; font-size: 1.125rem; font-stretch: 92%; }
html:root body[data-page="sat"] .satx-directions p { margin: 0 0 .75rem; }
html:root body[data-page="sat"] .satx-directions ul { margin: 0 0 1.1rem; padding-left: 1.25rem; list-style: disc; }
html:root body[data-page="sat"] .satx-directions li + li { margin-top: .4rem; }
html:root body[data-page="sat"] .satx-directions__table { width: 100%; font-variant-numeric: tabular-nums; }
html:root body[data-page="sat"] .satx-directions--fold > summary { list-style: none; cursor: default; pointer-events: none; }
html:root body[data-page="sat"] .satx-directions--fold > summary::-webkit-details-marker { display: none; }

/* ── the page before the results ────────────────────────────────────── */
html:root body[data-page="sat"] .satx-check { max-width: 44rem; margin: 0 auto; }
html:root body[data-page="sat"] .satx-check h2 { margin: 0 0 .6rem; font-size: 1.5rem; font-stretch: 90%; }
html:root body[data-page="sat"] .satx-check p { margin: 0 0 1rem; line-height: 1.6; }
html:root body[data-page="sat"] .satx-check .sat-actions { margin-top: 1.5rem; }
html:root body[data-page="sat"] .sat-grid__cell.is-right { border: 1px solid var(--positive); background: var(--positive-soft); color: var(--ink); }
html:root body[data-page="sat"] .sat-grid__cell.is-wrong { border: 1px solid var(--danger); background: var(--danger-soft); color: var(--ink); }

/* ── bottom bar ─────────────────────────────────────────────────────── */
html:root body[data-page="sat"] .satx-bottom { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .75rem; align-items: center; min-height: 4rem; padding: .55rem clamp(.9rem, 2.5vw, 2rem) max(.55rem, env(safe-area-inset-bottom)); border-top: 2px dashed var(--line-strong); background: var(--mist); }
html:root body[data-page="sat"] .satx-bottom__left { display: flex; min-width: 0; }
html:root body[data-page="sat"] .satx-bottom__right { display: flex; gap: .6rem; justify-content: flex-end; }
html:root body[data-page="sat"] .satx-bottom .btn { min-width: 5.5rem; min-height: 2.75rem; }
html:root body[data-page="sat"] .satx-where { display: inline-flex; gap: .5rem; align-items: center; min-height: 2.75rem; padding: .4rem .9rem; border: 0; border-radius: var(--r-ctl); background: var(--ink); color: var(--paper); font: inherit; font-size: .9375rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; white-space: nowrap; }
html:root body[data-page="sat"] .satx-where svg { width: .9rem; height: .9rem; transition: transform .15s ease; }
html:root body[data-page="sat"] .satx-where__short { display: none; }
html:root body[data-page="sat"] .satx-where[aria-expanded="true"] svg { transform: rotate(180deg); }
html:root body[data-page="sat"] .satx-navpop { position: absolute; bottom: calc(100% + .6rem); left: 50%; z-index: 5; width: min(34rem, calc(100vw - 1.5rem)); max-height: min(60vh, 26rem); padding: 1rem 1.1rem 1.2rem; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow-float, 0 12px 32px rgba(8, 20, 43, .22)); transform: translateX(-50%); }
html:root body[data-page="sat"] .satx-navpop[hidden] { display: none; }
html:root body[data-page="sat"] .satx-navpop__title { margin: 0 0 .6rem; font-size: 1.0625rem; font-weight: 750; text-align: center; }
html:root body[data-page="sat"] .satx-navpop .sat-grid { justify-content: center; margin-top: .9rem; }
html:root body[data-page="sat"] .satx-navpop__check { display: flex; justify-content: center; margin: 1rem 0 0; }
html:root body[data-page="sat"] .satx-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; justify-content: center; margin: 0; padding: .6rem 0; border-block: 1px solid var(--line); list-style: none; color: var(--muted); font-size: .8125rem; }
html:root body[data-page="sat"] .satx-legend li { display: inline-flex; gap: .4rem; align-items: center; }
html:root body[data-page="sat"] .satx-legend__key { position: relative; width: 1rem; height: 1rem; border: 1px dashed var(--line-strong); background: var(--paper); }
html:root body[data-page="sat"] .satx-legend__key.is-answered { border: 1px solid var(--brand); background: var(--brand); }
html:root body[data-page="sat"] .satx-legend__key.is-right { border: 1px solid var(--positive); background: var(--positive-soft); }
html:root body[data-page="sat"] .satx-legend__key.is-wrong { border: 1px solid var(--danger); background: var(--danger-soft); }
html:root body[data-page="sat"] .satx-legend__key.is-marked::after { content: ""; position: absolute; top: -1px; right: -1px; border-top: .5rem solid var(--warning); border-left: .5rem solid transparent; }
@media (prefers-reduced-motion: reduce) { html:root body[data-page="sat"] .satx-where svg { transition: none; } }

/* ── floating windows ───────────────────────────────────────────────── */
html:root body .satx-float { position: fixed; top: 4.5rem; right: 1.5rem; z-index: 1000; display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(27rem, calc(100vw - 1rem)); max-height: calc(100vh - 5.5rem); border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--paper); color: var(--ink); box-shadow: 0 16px 44px rgba(8, 20, 43, .28); overflow: hidden; }
html:root body .satx-float[hidden] { display: none; }
html:root body .satx-float__bar { display: flex; align-items: center; background: var(--ink); color: var(--paper); }
html:root body .satx-float__handle { display: flex; flex: 1; gap: .5rem; align-items: center; min-width: 0; min-height: 2.75rem; padding: 0 .75rem; cursor: grab; touch-action: none; }
html:root body .satx-float__handle:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
html:root body .satx-float.is-dragging .satx-float__handle { cursor: grabbing; }
html:root body .satx-float__grip { display: grid; flex: none; opacity: .7; }
html:root body .satx-float__grip svg { width: 1rem; height: 1rem; }
html:root body .satx-float__title { margin: 0; overflow: hidden; color: inherit; font-size: .9375rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
html:root body .satx-float__button { display: grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
html:root body .satx-float__button svg { width: 1rem; height: 1rem; }
html:root body .satx-float__button:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
html:root body .satx-float__button[aria-pressed="true"] { background: rgba(255, 255, 255, .18); }
@media (hover: hover) { html:root body .satx-float__button:hover { background: rgba(255, 255, 255, .18); } }
html:root body .satx-float__body { min-height: 0; padding: 1rem 1.1rem 1.25rem; overflow: auto; overscroll-behavior: contain; }
/* While a window or the bar is dragged, a framed page must not swallow the pointer. */
html.satx-dragging .satx-float iframe { pointer-events: none; }

html:root body .satx-float--reference { width: min(40rem, calc(100vw - 1rem)); }
html:root body .satx-reference { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr)); gap: 1rem .75rem; margin: 0; padding: 0; list-style: none; }
html:root body .satx-reference li { display: grid; gap: .15rem; justify-items: center; align-content: start; text-align: center; }
html:root body .satx-reference__figure { display: block; width: 100%; max-width: 9rem; }
html:root body .satx-reference__figure svg { display: block; width: 100%; height: auto; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
html:root body .satx-reference__figure .dash { stroke-dasharray: 4 3; stroke-width: 1.2; }
html:root body .satx-reference__figure .dot { fill: var(--ink); stroke: none; }
html:root body .satx-reference__figure text { fill: var(--ink); stroke: none; font-family: "Times New Roman", Times, serif; font-size: 11.5px; font-style: italic; text-anchor: middle; }
html:root body .satx-reference__figure text.deg { font-size: 9px; font-style: normal; }
html:root body .satx-reference__name { color: var(--muted); font-size: .8125rem; line-height: 1.3; }
html:root body .satx-reference__formula { display: grid; gap: .1rem; font-size: .9375rem; }
html:root body .satx-reference__notes { margin: 1rem 0 0; padding: .75rem 0 0 1.1rem; border-top: 1px solid var(--line); list-style: disc; color: var(--ink); font-size: .875rem; line-height: 1.55; }
html:root body .satx-float .satx-directions { font-size: .9375rem; line-height: 1.6; }
html:root body .satx-float .satx-directions p { margin: 0 0 .7rem; }
html:root body .satx-float .satx-directions ul { margin: 0 0 .8rem; padding-left: 1.2rem; list-style: disc; }

/* Desmos keeps its list of expressions 320 pixels wide beside the graph, so
   the window is wider than tall: the graph gets the larger share. (Under
   about 450 pixels Desmos stacks the two instead, graph on top.) */
html:root body .satx-float--calculator { width: min(50rem, calc(100vw - 1rem)); height: min(35rem, calc(100vh - 5.5rem)); }
html:root body .satx-float--calculator.is-large { width: min(72rem, calc(100vw - 1rem)); height: calc(100vh - 5.5rem); }
html:root body .satx-float--calculator .satx-float__body { display: grid; padding: 0; overflow: hidden; }
html:root body .satx-calc__frame { width: 100%; height: 100%; border: 0; background: #fff; }
html:root body .satx-calc__note { margin: 0; padding: 1rem 1.1rem; color: var(--muted); }
html:root body .satx-calc__note + .satx-calc__frame { grid-area: 1 / 1; }
html:root body .satx-calc__fallback { display: grid; gap: .9rem; align-content: start; justify-items: start; padding: 1.1rem; line-height: 1.6; }
html:root body .satx-calc__fallback p { margin: 0; }

/* ── English only ───────────────────────────────────────────────────── */
/* The test is in English, so its screen is too, whatever language the site
   is read in: the bars, the question's tools, the rules for typed answers,
   the checking page and the windows. What explains an answer afterwards
   stays in the reader's language. */
html:root body .sat-english [data-lang]:not([data-lang="en"]) { display: none !important; }
html:root body .sat-english [data-lang="en"] { display: revert !important; }

/* ── narrower windows ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
  html:root body[data-page="sat"] .satx-meter__label, html:root body[data-page="sat"] .satx-meter .sat-strip { display: none; }
}
@media (max-width: 820px) {
  /* One column: the text, then the question, in a single scroll. */
  html:root body[data-page="sat"] .satx-main.is-two { display: block; overflow-y: auto; overscroll-behavior: contain; }
  html:root body[data-page="sat"] .satx-main.is-two .satx-pane { overflow: visible; padding-bottom: 1.25rem; }
  html:root body[data-page="sat"] .satx-main.is-two .satx-pane--left { border-bottom: 2px dashed var(--line-strong); }
  html:root body[data-page="sat"] .satx-main.is-two .satx-pane--right { padding-bottom: 2.5rem; }
  html:root body[data-page="sat"] .satx-divider { display: none; }
  html:root body[data-page="sat"] .satx-directions--fold > summary { display: flex; gap: .5rem; align-items: center; min-height: 2.75rem; cursor: pointer; pointer-events: auto; }
  html:root body[data-page="sat"] .satx-directions--fold > summary::before { content: ""; flex: none; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
  html:root body[data-page="sat"] .satx-directions--fold[open] > summary::before { transform: rotate(45deg); }
  html:root body[data-page="sat"] .satx-directions--fold > summary h3 { margin: 0; text-decoration: underline; text-underline-offset: .2em; }
  html:root body[data-page="sat"] .satx-directions--fold:not([open]) { margin-bottom: -1rem; }
  html:root body[data-page="sat"] .satx-directions--fold[open] > summary { margin-bottom: .5rem; }
  html:root body[data-page="sat"] .satx-top { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .6rem; min-height: 3.5rem; }
  html:root body[data-page="sat"] .satx-top__middle { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; }
  html:root body[data-page="sat"] .satx--drill .satx-top__middle { display: none; }
  html:root body[data-page="sat"] .satx-top__left { flex-wrap: wrap; }
  html:root body[data-page="sat"] .satx-top__left .satx-textbutton { min-height: 2rem; padding: 0; font-size: .875rem; }
  html:root body[data-page="sat"] .satx-tool { min-width: 2.75rem; }
  html:root body[data-page="sat"] .satx-tool__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html:root body[data-page="sat"] .satx-bottom { grid-template-columns: auto minmax(0, 1fr) auto; gap: .4rem; }
  html:root body[data-page="sat"] .satx-bottom__middle { display: flex; justify-content: center; min-width: 0; }
  html:root body[data-page="sat"] .satx-bottom .btn { min-width: 4.25rem; padding-inline: .7rem; }
  html:root body[data-page="sat"] .satx-where { padding-inline: .6rem; font-size: .875rem; }
  html:root body[data-page="sat"] .satx-where__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html:root body[data-page="sat"] .satx-where__short { display: inline; }
  html:root body[data-page="sat"] .satx-bottom__left .satx-textbutton { padding-inline: .2rem; font-size: .875rem; }
  html:root body[data-page="sat"] .satx-navpop { position: fixed; right: .75rem; bottom: calc(4.5rem + env(safe-area-inset-bottom)); left: .75rem; width: auto; transform: none; }
}
@media (max-width: 720px) {
  /* No room to drag a window about: it sits at the foot of the screen. */
  html:root body .satx-float, html:root body .satx-float--calculator, html:root body .satx-float--calculator.is-large { top: auto !important; right: 0; bottom: 0; left: 0 !important; width: 100%; max-height: 78vh; border-radius: var(--r-card) var(--r-card) 0 0; }
  html:root body .satx-float--calculator, html:root body .satx-float--calculator.is-large { height: 78vh; }
  html:root body .satx-float--calculator .satx-float__body { background: #fff; }
  html:root body .satx-float__handle { cursor: default; }
  html:root body .satx-float__grip { display: none; }
  html:root body .satx-float__body { padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); }
}
/* Between a phone and a small tablet the sheet is too narrow for Desmos's
   side-by-side layout to leave room for the graph, so the calculator is held
   to the width at which it stacks graph over list. */
@media (min-width: 450px) and (max-width: 640px) {
  html:root body .satx-calc__frame { justify-self: center; max-width: 440px; }
}
