/* ELU — "dusk orchid" instrument. A private medical readout that feels like a
   beautifully-made device, not a website. Deep warm charcoal, gold actions,
   luminous sage trace. Amber above range, violet below — never red (§7).
   Numerals: Spline Sans Mono (instrument). UI: Sora (geometric). */

:root {
  --bg: #141018;
  --bg-2: #191420;
  --card: #1f1929;
  --card-2: #262030;
  --line: #322a40;
  --line-2: #41374f;
  --ink: #f0ecf5;
  --ink-2: #a99fb8;
  --ink-3: #6f6580;
  --gold: #e05fae;
  --gold-2: #f27cc3;
  --gold-dim: #8a3f68;
  --above: #f0a53c;          /* amber: above range */
  --below: #8f7af5;          /* violet: below range */
  --trace: #ef9dc6;          /* in-range trace: calm sage */
  --band: rgba(239, 157, 198, 0.10);
  --band-line: rgba(239, 157, 198, 0.28);
  --blue: #6ea8fe;           /* insulin marks */
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Sora", -apple-system, "Helvetica Neue", system-ui, sans-serif;
  --kb: 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent;
    touch-action: manipulation; }   /* kills iOS double-tap zoom on rapid +/- taps */
html, body { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  max-width: 430px;
  margin: 0 auto;
  overscroll-behavior-y: none;
}
/* faint grain so the dark surface has texture, not dead flatness */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
#app, #login { position: relative; z-index: 2; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------------- login ---------------- */
.login { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 28px; }
.login-card { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.logo {
  font-family: var(--mono); font-size: 52px; font-weight: 700; letter-spacing: 0.08em;
  text-align: center; color: var(--ink);
}
.logo::after {
  content: ""; display: block; width: 74px; height: 3px; margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}
.login-sub { text-align: center; color: var(--ink-3); margin-bottom: 18px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.login input {
  font-size: 17px; padding: 15px 16px; border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--card); color: var(--ink); font-family: var(--sans);
}
.login input::placeholder { color: var(--ink-3); }
.login-err { color: var(--above); text-align: center; min-height: 1.2em; font-size: 14px; }
.login-card > * { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.login-card > *:nth-child(2) { animation-delay: 0.06s; }
.login-card > *:nth-child(3) { animation-delay: 0.12s; }
.login-card > *:nth-child(4) { animation-delay: 0.18s; }
.login-card > *:nth-child(5) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------- app frame ---------------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; padding: 8px 14px 96px; }

/* status hero: the instrument readout */
.status {
  display: flex; align-items: center; gap: 16px;
  padding: calc(env(safe-area-inset-top) + 14px) 18px 14px;
  background:
    radial-gradient(120% 180% at 85% -20%, rgba(224, 95, 174, 0.10), transparent 55%),
    linear-gradient(180deg, #1a1422, #141018);
  border-bottom: 1px solid var(--line);
}
.bg-num {
  font-family: var(--mono); font-size: 58px; font-weight: 700; line-height: 0.95;
  letter-spacing: -0.02em; color: var(--ink);
  text-shadow: 0 0 24px rgba(239, 157, 198, 0.25);
}
.bg-num.above { color: var(--above); text-shadow: 0 0 24px rgba(240, 165, 60, 0.35); }
.bg-num.below { color: var(--below); text-shadow: 0 0 24px rgba(143, 122, 245, 0.35); }
.bg-trend { font-size: 26px; margin-left: 4px; color: var(--ink-2); }
.bg-meta { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink-3); }
.bg-meta::before {
  content: "GLUCOSE · MG/DL"; font-size: 10px; letter-spacing: 0.16em; color: var(--ink-3);
}

/* her wordmark, every tab */
.brand {
  margin-left: auto; align-self: flex-start;
  font-family: var(--mono); font-weight: 700; font-size: 20px; letter-spacing: 0.1em;
  background: linear-gradient(120deg, #f27cc3 20%, #b9a5f0 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-top: 2px;
}
.brand::after {
  content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #f27cc3, #b9a5f0);
  opacity: 0.7;
}

/* flags: amber information, never alarm */
#flags { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 0; }
.flag {
  background: rgba(240, 165, 60, 0.08); border: 1px solid rgba(240, 165, 60, 0.3);
  border-left: 3px solid var(--above);
  border-radius: 12px; padding: 11px 13px; font-size: 13.5px; line-height: 1.45;
  display: flex; gap: 8px; align-items: flex-start; color: var(--ink);
}
.flag.info { background: rgba(110, 168, 254, 0.07); border-color: rgba(110, 168, 254, 0.28); border-left-color: var(--blue); }
.flag button { margin-left: auto; border: 0; background: none; color: var(--ink-3); font-size: 20px; padding: 0 2px; line-height: 1; }

/* cards: layered panels with a machined edge */
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-top: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 24px rgba(0,0,0,0.25);
}
.card.slim { padding: 12px 16px; }
.card-title { font-weight: 600; font-size: 15px; letter-spacing: 0.01em; margin-bottom: 6px; }
.card-sub { color: var(--ink-3); font-size: 12.5px; font-weight: 400; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.digest-text { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* buttons */
.btn {
  border: 1px solid var(--line-2); border-radius: 13px; font-size: 15px; font-weight: 600;
  padding: 12px 16px; background: var(--card-2); color: var(--ink); min-height: 44px;
  font-family: var(--sans);
}
.btn.primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #2b0d1e; border: 0;
  box-shadow: 0 4px 18px rgba(224, 95, 174, 0.25);
}
.btn.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2b0d1e; border: 0; }
.btn.big { width: 100%; padding: 15px; font-size: 17px; margin-top: 10px; border-radius: 15px; }
.btn.mini { padding: 8px 11px; font-size: 12.5px; min-height: 36px; margin-left: 4px; border-radius: 10px; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; box-shadow: none; }

/* steppers: the core one-handed control — big, machined, satisfying */
.stepper-row { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 8px; }
.step-btn {
  width: 66px; height: 66px; border-radius: 20px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #2d2438, #221a2c);
  font-size: 30px; color: var(--gold-2); font-weight: 500;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 4px 12px rgba(0,0,0,0.3);
}
.step-btn:active { transform: scale(0.94); }
.stepper-val { text-align: center; }
.stepper-val .mono { font-size: 52px; font-weight: 700; display: block; line-height: 1; letter-spacing: -0.02em; }
.unit-label { color: var(--ink-3); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

/* segmented control */
.seg { display: flex; background: #171221; border: 1px solid var(--line); border-radius: 13px; padding: 3px; margin: 10px 0; }
.seg button {
  flex: 1; border: 0; background: none; padding: 10px 4px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3); min-height: 40px; font-family: var(--sans);
}
.seg button.on { background: var(--card-2); color: var(--gold-2); box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.seg.tiny button { padding: 6px 2px; min-height: 30px; font-size: 12px; }

.field-row { display: flex; gap: 12px; margin: 10px 0; }
.field-row label { flex: 1; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); display: flex; flex-direction: column; gap: 6px; }
.small-input, .wide-input {
  font-size: 17px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 11px;
  background: #171221; color: var(--ink); width: 100%; font-family: var(--sans);
}
.small-input::placeholder, .wide-input::placeholder { color: var(--ink-3); }
.wide-input { margin-top: 10px; }
.toggle { flex-direction: row !important; align-items: center; gap: 10px !important; font-size: 15px !important; color: var(--ink) !important; text-transform: none !important; letter-spacing: 0 !important; }
.toggle input { width: 22px; height: 22px; accent-color: var(--gold); }
.when { margin: 8px 0; }
.when.inline { margin: 0; }
.when.inline summary {
  list-style: none; font-size: 17px; color: var(--ink); background: #171221;
  border: 1px solid var(--line-2); border-radius: 11px; padding: 11px 13px; cursor: pointer;
}
.when.inline summary::-webkit-details-marker { display: none; }
.when.inline[open] summary { display: none; }
.when.inline input { margin-top: 0; }
.when summary { color: var(--ink-3); font-size: 13px; }
.when input { margin-top: 8px; color-scheme: dark; }
select.small-input { color-scheme: dark; }

/* chips: her recent meals, one tap */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.chip {
  border: 1px solid var(--line-2); background: #1b1526; padding: 10px 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); min-height: 40px; font-family: var(--sans);
}
.chip:active { background: var(--card-2); transform: scale(0.97); }
.chip .c { color: var(--gold); font-family: var(--mono); font-size: 12px; margin-left: 2px; }

/* chart */
.chart-card { padding: 20px 16px 12px; }
.chart-card .card-row { margin-bottom: 10px; }
#band-chart { width: 100%; }
.chart-legend { display: flex; gap: 18px; font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); padding: 10px 2px 2px; border-top: 1px solid var(--line); margin-top: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dot.meal { background: var(--gold); }
.dot.dose { background: var(--blue); }
.band-key { margin-left: auto; }

/* TIR bar */
.tir-bar { display: flex; height: 20px; border-radius: 8px; overflow: hidden; margin: 12px 0 8px; background: #171221; border: 1px solid var(--line); }
#tir-below { background: var(--below); }
#tir-in { background: var(--trace); }
#tir-above { background: var(--above); }
.tir-labels { display: flex; justify-content: space-between; font-size: 14px; padding-top: 2px; font-family: var(--mono); color: var(--ink-2); }
.below-c { color: var(--below); }
.above-c { color: var(--above); }

/* lists */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: baseline; gap: 10px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.list-item:first-child { border-top: 0; }
.list-item.food, .list-item.pat { display: block; }
.food-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.food-name { font-weight: 600; font-size: 15px; text-transform: capitalize; }
.food-sub { color: var(--ink-3); font-size: 12.5px; margin-top: 5px; }
.pat-title { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 6px; }
.pat-sub { color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.badge {
  font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
}
.badge.gentle { background: rgba(239, 157, 198, 0.14); color: var(--trace); border: 1px solid rgba(239, 157, 198, 0.3); }
.badge.moderate { background: rgba(240, 165, 60, 0.12); color: var(--above); border: 1px solid rgba(240, 165, 60, 0.3); }
.badge.spiky { background: rgba(143, 122, 245, 0.12); color: var(--below); border: 1px solid rgba(143, 122, 245, 0.3); }
.badge.insufficient { background: #1a1e26; color: var(--ink-3); border: 1px solid var(--line-2); }

/* ---------------- ask bar (inside the chat sheet) ---------------- */
.askbar {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.label-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.label-row .wide-input { margin-top: 0; flex: 1; }
.icon-btn.cam { width: 46px; height: 46px; border-radius: 12px; color: var(--gold-2); display: flex; align-items: center; justify-content: center; }
.icon-btn.cam[disabled] { opacity: 0.5; }
#ask-input {
  flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 19px;
  padding: 11px 15px; font-size: 16px; font-family: var(--sans);
  max-height: 76px; background: var(--card); color: var(--ink);
}
#ask-input::placeholder { color: var(--ink-3); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink-2); font-size: 17px; flex-shrink: 0;
}
.icon-btn.send {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #2b0d1e; border: 0; font-weight: 700;
  box-shadow: 0 3px 14px rgba(224, 95, 174, 0.3);
}
.icon-btn.rec { background: var(--above); color: #2b0d1e; border: 0; }

/* ---------------- tab bar ---------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: 430px; margin: 0 auto;
  display: flex; background: rgba(20, 16, 26, 0.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); z-index: 20;
}
body.kb-open .tabbar { display: none; }
.tabbar button {
  flex: 1; border: 0; background: none; padding: 10px 0 8px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); display: flex; flex-direction: column; gap: 5px; align-items: center;
  min-height: 58px; font-family: var(--sans); position: relative;
}
.tabbar button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tabbar button.on { color: var(--gold-2); }
.tabbar button.on::before {
  content: ""; position: absolute; top: 0; width: 28px; height: 2px;
  background: var(--gold); border-radius: 0 0 2px 2px;
}

/* ---------------- sheet ---------------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(5, 6, 8, 0.55); z-index: 40; }
.sheet {
  position: fixed; left: 0; right: 0; max-width: 430px; margin: 0 auto;
  bottom: 0; top: 16dvh; background: var(--bg-2);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0;
  z-index: 50; display: flex; flex-direction: column;
  box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.5);
  padding-bottom: var(--kb);
}
.sheet-head { padding: 8px 16px 8px; border-bottom: 1px solid var(--line); }
.sheet-grip { width: 40px; height: 4px; background: var(--line-2); border-radius: 3px; margin: 4px auto 10px; }
.sheet-note { font-size: 11.5px; color: var(--ink-3); text-align: center; padding-bottom: 4px; }
.sheet-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 17px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: rgba(224, 95, 174, 0.16); border: 1px solid rgba(224, 95, 174, 0.3); color: var(--ink); border-bottom-right-radius: 6px; }
.msg.assistant { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.thinking { color: var(--ink-3); font-style: italic; }

/* dialog + toast */
.dialog {
  position: fixed; left: 16px; right: 16px; bottom: 30dvh; max-width: 398px; margin: 0 auto;
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px; z-index: 60;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.6);
}
.dialog .btn { width: 100%; margin-top: 8px; }
.toast {
  position: fixed; left: 16px; right: 16px;
  bottom: calc(86px + env(safe-area-inset-bottom)); max-width: 398px; margin: 0 auto; z-index: 80;
  background: #2d2438; color: var(--ink); border: 1px solid var(--line-2);
  border-radius: 14px; padding: 13px 16px;
  font-size: 13.5px; line-height: 1.4; z-index: 70; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: rise 0.25s ease both;
}
.toast button { margin-left: auto; background: none; border: 0; color: var(--gold-2); font-weight: 700; font-size: 13.5px; font-family: var(--sans); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }


/* ---------------- bolus tab: locked, never scrolls ---------------- */
body[data-tab="bolus"] { height: 100dvh; overflow: hidden; }
body[data-tab="bolus"] .app { height: 100dvh; }
body[data-tab="bolus"] main { overflow-y: auto; padding-bottom: 8px; min-height: 0; overscroll-behavior: contain; }
#tab-bolus { display: flex; flex-direction: column; height: 100%; min-height: 0; }
#tab-bolus .card { padding: clamp(10px, 2dvh, 18px) 16px; margin-top: clamp(6px, 1.3dvh, 12px); }
#tab-bolus .stepper-row { margin: clamp(6px, 1.4dvh, 12px) 0 clamp(4px, 1dvh, 8px); }
#tab-bolus .step-btn { width: clamp(48px, 7.5dvh, 66px); height: clamp(48px, 7.5dvh, 66px); border-radius: 16px; font-size: clamp(24px, 3.6dvh, 30px); }
#tab-bolus .stepper-val .mono { font-size: clamp(36px, 6dvh, 52px); }
#tab-bolus .seg { margin: clamp(6px, 1.2dvh, 10px) 0; }
#tab-bolus .seg button { min-height: clamp(34px, 4.6dvh, 40px); padding: clamp(6px, 1.1dvh, 10px) 4px; }
#tab-bolus .field-row { margin: clamp(5px, 1dvh, 10px) 0; }
#tab-bolus .small-input, #tab-bolus .when.inline summary { padding: clamp(8px, 1.3dvh, 11px) 13px; }
#tab-bolus .btn.big { padding: clamp(11px, 1.8dvh, 15px); margin-top: clamp(6px, 1.2dvh, 10px); }
body[data-tab="bolus"] .status { padding-top: calc(env(safe-area-inset-top) + clamp(6px, 1.4dvh, 14px)); padding-bottom: clamp(6px, 1.4dvh, 14px); }
body[data-tab="bolus"] .bg-num { font-size: clamp(38px, 6.6dvh, 58px); }
body[data-tab="bolus"] #flags { max-height: 18dvh; overflow-y: auto; }


/* two columns under Save dose: live correction + her last boluses */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: clamp(4px, 1dvh, 10px); }
.col-card { margin: 0; display: flex; flex-direction: column; }
.card-title.small { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px; }
.lastb-list { display: flex; flex-direction: column; gap: 9px; }
.lastb-item { display: flex; flex-direction: column; gap: 1px; }
.lastb-units { font-family: var(--mono); font-size: 15px; font-weight: 700; color: #b9a5f0; }
.lastb-units .lastb-purpose { font-family: var(--sans, inherit); font-size: 11px;
  font-weight: 500; color: var(--ink-2); text-transform: none; margin-left: 5px; }
.lastb-when { font-size: 11px; color: var(--ink-3); }
.lastb-empty { font-size: 12.5px; color: var(--ink-3); }

/* history feed */
.h-day { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  font-weight: 700; margin: 14px 0 4px; }
.h-day:first-child { margin-top: 2px; }
.h-row { display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line); }
.h-row:last-child { border-bottom: 0; }
.h-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.h-dot.meal { background: #ef9dc6; }
.h-dot.dose { background: #8f7af5; }
.h-dot.basal { background: var(--gold, #d4a843); }
.h-body { flex: 1; min-width: 0; }
.h-main { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.h-carbs { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-2); margin-left: 4px; }
.h-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.h-del { border: 0; background: none; color: var(--ink-3); font-size: 20px; line-height: 1;
  padding: 6px 8px; flex: none; }


/* correction helper: her endo's formula, her number, her decision */
.corr-helper { display: flex; flex-direction: column; gap: 8px; margin-bottom: clamp(8px, 1.4dvh, 12px); }
#corr-bg { text-align: center; font-size: 18px; }
.corr-result { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.corr-math { font-family: var(--mono); font-size: 19px; color: var(--ink); }
.corr-math b { color: #f27cc3; font-size: 22px; }
.corr-stack { color: var(--above); font-size: 12.5px; line-height: 1.45; text-align: center; }
.corr-none { color: var(--ink-2); font-size: 13.5px; text-align: center; }
.corr-low { color: var(--below); font-size: 13.5px; line-height: 1.45; text-align: center; font-weight: 600; }
#corr-use { background: linear-gradient(180deg, #f27cc3, #e05fae); color: #2b0d1e; border: 0; font-weight: 700; }

/* correction content sized for its half-width column */
.col-card .corr-helper { margin-bottom: 0; }
.col-card #corr-bg { font-size: 15px; padding: 8px 10px; }
.col-card .corr-result { gap: 6px; }
.col-card .corr-math { font-size: 13.5px; }
.col-card .corr-math b { font-size: 16px; display: block; }
.col-card .corr-stack, .col-card .corr-none, .col-card .corr-low { font-size: 11.5px; }
.col-card .corr-src { font-size: 10px; }

.corr-src { font-size: 10.5px; color: var(--ink-3); text-align: center; }
