:root {
  color-scheme: light;
  --bg: #fcfcfb;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --line: #e2e1dc;
  --grid: #ecebe7;
  --text: #0b0b0b;
  --text-2: #52514e;
  --text-3: #7a7974;
  --ecg: #2b2b29;
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --event: rgba(227, 73, 72, 0.13);
  --event-edge: rgba(227, 73, 72, 0.55);
  --noise: rgba(120, 118, 110, 0.12);
  --focus: #2a78d6;
  --q-fair: #eda100;
  --q-poor: #e34948;
  --sel: rgba(42, 120, 214, 0.08);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #161615;
    --surface: #1a1a19;
    --surface-2: #232321;
    --line: #2f2f2c;
    --grid: #262624;
    --text: #f0efec;
    --text-2: #c3c2b7;
    --text-3: #8f8e86;
    --ecg: #b4b3ab;
    --s1: #3987e5;
    --s2: #d95926;
    --s3: #199e70;
    --event: rgba(230, 103, 103, 0.16);
    --event-edge: rgba(230, 103, 103, 0.6);
    --noise: rgba(200, 198, 190, 0.09);
    --focus: #3987e5;
    --q-fair: #c98500;
    --q-poor: #e66767;
    --sel: rgba(57, 135, 229, 0.12);
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161615;
  --surface: #1a1a19;
  --surface-2: #232321;
  --line: #2f2f2c;
  --grid: #262624;
  --text: #f0efec;
  --text-2: #c3c2b7;
  --text-3: #8f8e86;
  --ecg: #d8d7d0;
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --event: rgba(230, 103, 103, 0.16);
  --event-edge: rgba(230, 103, 103, 0.6);
  --noise: rgba(200, 198, 190, 0.09);
  --focus: #3987e5;
  --q-fair: #c98500;
  --q-poor: #e66767;
  --sel: rgba(57, 135, 229, 0.12);
  --shadow: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
a { color: var(--s1); text-underline-offset: 2px; }
h1 { font-size: clamp(1.45rem, 3.4vw, 2rem); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .6rem; font-weight: 650; }
h2 { font-size: 1.15rem; margin: 0 0 .5rem; font-weight: 630; letter-spacing: -0.005em; }
h3 { font-size: .98rem; margin: 1.3rem 0 .4rem; font-weight: 620; }
.note { color: var(--text-2); font-size: .86rem; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 12px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 630; white-space: nowrap; }
.brand svg { width: 24px; height: 24px; fill: none; stroke: var(--s1); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.top-right { display: flex; align-items: center; gap: 6px; min-width: 0; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.badge.ok .dot { background: var(--s3); }

.intro { padding: 1.8rem 0 1.2rem; max-width: 760px; }
.intro p { color: var(--text-2); margin: .4rem 0; }
.intro .caveat { color: var(--text); font-size: .92rem; }

/* controls */
select, input[type=number] {
  font: inherit; font-size: .9rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 7px 10px; min-height: 38px; min-width: 0;
}
select:focus-visible, input:focus-visible, button:focus-visible, .file-btn:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .9rem; font-weight: 560; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; min-height: 38px; cursor: pointer;
  white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--text-3); }
.btn.primary { background: var(--s1); border-color: var(--s1); color: #fff; }
.btn svg, .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.file-btn { position: relative; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); cursor: pointer; padding: 0;
}
.icon-btn.ghost { background: transparent; border-color: transparent; }
#theme svg { transition: transform .35s cubic-bezier(.3,.7,.2,1); }
#theme:active svg { transform: rotate(-30deg) scale(.9); }
.icon-btn:hover { border-color: var(--text-3); }

/* segmented control with a sliding thumb */
.seg { position: relative; display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; isolation: isolate; }
.seg .thumb {
  position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 0; border-radius: 7px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 0 0 1px var(--line); transition: transform .28s cubic-bezier(.3,.7,.2,1), width .28s cubic-bezier(.3,.7,.2,1), opacity .2s;
}
.seg .thumb.off { opacity: 0; }
.seg .thumb.instant { transition: none; }
.seg button {
  position: relative; font: inherit; font-size: .88rem; font-weight: 560; color: var(--text-2); background: transparent; border: 0; border-radius: 7px;
  padding: 6px 12px; min-height: 32px; cursor: pointer; white-space: nowrap; transition: color .2s;
}
.seg button[aria-checked=true] { color: var(--text); }
.sh { display: none; }
.foot-toggle { display: none; }
.seg-sm button { padding: 6px 10px; font-size: .84rem; }
.seg button:focus-visible { outline: 2px solid color-mix(in srgb, var(--focus) 60%, transparent); outline-offset: -2px; }

/* live playback: play/pause and speed in one group, the same height as the toggles */
.transport { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.transport .play {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 7px; cursor: pointer;
  background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 0 0 1px var(--line); transition: transform .12s;
}
.transport .play:active { transform: scale(.94); }
.transport .play svg { width: 15px; height: 15px; fill: currentColor; }
.transport .play:focus-visible { outline: 2px solid color-mix(in srgb, var(--focus) 60%, transparent); outline-offset: 1px; }
.transport .range { width: 96px; margin: 0 4px 0 10px; }
.transport output { font-size: .86rem; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 3.2em; padding-right: 6px; color: var(--text); }

/* player */
.player { min-width: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0 14px; margin-bottom: 8px; }
.rec-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 14px; }
.rec-info { display: grid; gap: 7px; }
.about { margin: 0; font-size: .92rem; color: var(--text-2); max-width: 760px; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .75rem; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.tag-ok { color: var(--s3); border-color: color-mix(in srgb, var(--s3) 35%, var(--line)); cursor: help; }
.rec-pick { display: flex; gap: 8px; align-items: center; }
.rec-pick { min-width: 0; }
.rec-pick .dd { min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.tgroup { display: flex; align-items: center; gap: 8px; }
.tgroup-end { margin-left: auto; }
.tlabel { font-size: .82rem; color: var(--text-3); }
.series-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 0 0 6px; }
.series { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.ser {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .88rem; font-weight: 560; color: var(--text);
  background: transparent; border: 0; border-radius: 8px; padding: 6px 9px; min-height: 34px; cursor: pointer; transition: color .18s, background .18s;
}
.ser:hover { background: var(--surface-2); }
.ser .ln { width: 18px; height: 3px; border-radius: 2px; display: inline-block; transition: opacity .18s; }
.ser[aria-pressed=false] { color: var(--text-3); }
.ser[aria-pressed=false] .ln { opacity: .28; }
.ser:disabled { opacity: .45; cursor: not-allowed; }
.ser:disabled[aria-pressed=true] { opacity: 1; cursor: default; }
.ser:disabled:hover { background: transparent; }
.foot-opts { display: flex; align-items: center; gap: 14px; }
.foot-opts select { font-size: .82rem; min-height: 32px; padding: 4px 8px; }
.s1 { background: var(--s1); } .s2 { background: var(--s2); } .s3 { background: var(--s3); }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--text-2); cursor: pointer; }
.check input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--s1); margin: 0; }
.check[aria-disabled=true] { opacity: .45; cursor: not-allowed; }

.chart { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; }
#main { display: block; width: 100%; height: clamp(320px, 54vh, 540px); cursor: grab; }
#main.dragging { cursor: grabbing; }
.overview { display: block; width: 100%; height: 48px; margin-top: 6px; cursor: pointer; touch-action: none; }
.progress { position: absolute; left: 44px; right: 8px; top: 0; height: 2px; overflow: hidden; opacity: 0; transition: opacity .3s; }
.progress.on { opacity: 1; }
.progress i { display: block; height: 100%; width: 0; background: var(--s1); transition: width .15s linear; }
.chart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; margin-top: 10px; padding-left: 44px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8rem; color: var(--text-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dash { width: 16px; height: 0; border-top: 2px dashed var(--text-3); display: inline-block; }
.legend .band { width: 14px; height: 12px; border-radius: 2px; background: var(--event); border: 1px solid var(--event-edge); display: inline-block; }
.legend .band.noise { background: var(--noise); border-color: var(--text-3); }
.legend .tri { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid var(--text-2); display: inline-block; }
.stats { margin: 8px 0 0 44px; font-size: .8rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.stats b { color: var(--text-2); font-weight: 600; }
.tip {
  position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
  box-shadow: 0 4px 18px rgba(0,0,0,.12); padding: 7px 10px; font-size: .8rem; line-height: 1.45; min-width: 150px; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.tip .t { color: var(--text-2); margin-bottom: 2px; }
.tip .r { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.tip .r span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }

/* text sections */
.prose { padding: 26px 0 6px; border-bottom: 1px solid var(--line); }
.prose:last-of-type { border-bottom: 0; }
.prose p, .prose li { color: var(--text-2); max-width: 780px; }
.prose b { color: var(--text); font-weight: 620; }
.prose b.c1 { color: var(--s1); } .prose b.c2 { color: var(--s2); } .prose b.c3 { color: var(--s3); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }
.sources li { font-size: .88rem; }
.sources .meta { color: var(--text-3); font-size: .82rem; }
main { padding-bottom: 40px; }

dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); padding: 0; width: min(440px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.35); }
.dlg { padding: 18px; display: grid; gap: 10px; }
.dlg label { display: grid; gap: 4px; font-size: .86rem; color: var(--text-2); }
.row { display: flex; gap: 8px; align-items: center; }
.row.end { justify-content: flex-end; margin-top: 14px; }

@media (max-width: 760px) {
  .tgroup-end { margin-left: 0; }
  .toolbar { gap: 8px; }
  .tgroup { flex-wrap: wrap; }
  .chart-foot { padding-left: 0; }
  .stats { margin-left: 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .badge span { display: none; }
  .badge { padding: 6px; }
  .intro { padding-top: 1.2rem; }
  .lg { display: none; }
  .sh { display: inline; }
  .file-btn span { display: none; }
  .about { font-size: .86rem; }
  .player { padding-top: 12px; }
  .rec-row { margin-bottom: 10px; }
  .rec-pick .dd { flex: 1; justify-content: space-between; }
  /* mode and question side by side; live playback on its own row */
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
  .toolbar .tgroup { display: contents; }
  .toolbar .seg { width: 100%; }
  .toolbar .seg button { flex: 1; padding: 6px 4px; font-size: .84rem; }
  #mode { grid-column: 1; grid-row: 1; }
  #head { grid-column: 2; grid-row: 1; }
  .transport { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .transport .range { flex: 1; width: auto; }
  .tgroup-end { margin-left: 0; }
  /* models and span */
  .series-row { flex-direction: column; align-items: stretch; gap: 2px; margin-bottom: 4px; }
  .series { flex-wrap: nowrap; gap: 0; justify-content: space-between; }
  .ser { padding: 6px 6px; gap: 6px; font-size: .84rem; }
  .ser .ln { width: 12px; }
  .scale { width: 100%; gap: 10px; padding: 0 6px; }
  .scale .range { flex: 1; width: auto; }
  .scale output { min-width: 3.6em; text-align: right; font-size: .84rem; }
  .scale .tlabel { font-size: .8rem; }
  #main { height: 330px; }
  /* legend and settings fold away */
  .foot-toggle {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font: inherit; font-size: .8rem; color: var(--text-2);
    background: none; border: 0; padding: 6px 0; cursor: pointer;
  }
  .foot-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
  .foot-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
  .chart-foot { display: none; padding: 4px 0 0; margin-top: 4px; }
  .chart-foot.open { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .foot-opts { justify-content: space-between; }
  .stats { margin: 6px 0 0; font-size: .76rem; }
  .fig { padding: 12px 10px 10px; margin-left: -4px; margin-right: -4px; }
  .fig-expect { height: 150px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* time-scale slider */
.scale { display: flex; align-items: center; gap: 8px; }
.scale .scale-end { font-size: .74rem; color: var(--text-3); }
.scale output { font-size: .86rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; min-width: 4.8em; }
.scale .range { width: 170px; }
.range { -webkit-appearance: none; appearance: none; height: 24px; background: transparent; margin: 0; cursor: pointer; --fill: 100%; }
.range:focus-visible { outline: none; }
.range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--text-2) var(--fill), var(--line) var(--fill));
}
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--text-2); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s;
}
.range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }

/* dropdowns (ui.js) */
.dd-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.dd {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; font: inherit; font-size: .9rem; font-weight: 560; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px 7px 12px; min-height: 38px;
  cursor: pointer; transition: border-color .15s, background .15s; text-align: left;
}
.dd:hover { border-color: var(--text-3); }
.dd[aria-expanded=true] { border-color: var(--text-3); background: var(--surface); }
.dd:disabled { opacity: .5; cursor: not-allowed; }
.dd .dd-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dd svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: var(--text-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.dd[aria-expanded=true] svg { transform: rotate(180deg); }
.dd.dd-lg { font-size: 1rem; font-weight: 600; padding: 8px 12px 8px 14px; }
.dd.dd-sm { font-size: .82rem; min-height: 32px; padding: 4px 8px 4px 10px; }
.dd-menu {
  position: fixed; z-index: 100; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.06); overflow-y: auto; outline: none;
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top left; transition: opacity .12s, transform .12s; pointer-events: none;
}
.dd-menu[data-side=top] { transform-origin: bottom left; transform: translateY(4px) scale(.98); }
.dd-menu.on { opacity: 1; transform: none; pointer-events: auto; }
.dd-opt {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 7px; font-size: .9rem; color: var(--text);
  cursor: pointer; white-space: nowrap; user-select: none;
}
.dd-opt.active { background: var(--surface-2); }
.dd-opt svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.dd-opt[aria-selected=true] svg { visibility: visible; }
.dlg .dd { width: 100%; justify-content: space-between; }
@media (max-width: 520px) {
  .scale { width: 100%; }
  .range { flex: 1; width: auto; }
  .rec-pick .dd { flex: 1; justify-content: space-between; }
}

/* explanatory figures */
.fig { margin: 18px 0 22px; padding: 14px 16px 12px; background: var(--surface-2); border-radius: 12px; max-width: 780px; }
.fig-canvas { display: block; width: 100%; }
.fig-stream { height: 172px; }
.fig-alarm { height: 190px; }
.fig-expect { height: 112px; }
.fig figcaption { font-size: .84rem; color: var(--text-2); margin-top: 10px; line-height: 1.5; }
.fig figcaption b { color: var(--text); font-weight: 620; }

/* condition switch */
.cond-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.seg-cond button { font-size: .92rem; font-weight: 600; padding: 7px 16px; }
.cond-note { font-size: .82rem; color: var(--text-3); }

/* measurements of one window */
.measure { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.m-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.m-title { font-weight: 620; font-size: .95rem; }
.m-when { font-size: .8rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.m-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.m-cell { background: var(--surface-2); border-radius: 10px; padding: 9px 11px; display: grid; gap: 1px; min-width: 0; }
.m-lab { font-size: .74rem; color: var(--text-2); font-weight: 560; }
.m-val { font-size: 1.15rem; font-weight: 640; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.m-val small { font-size: .72rem; font-weight: 500; color: var(--text-2); margin-left: 3px; }
.m-sub { font-size: .7rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cell.q2 .m-val { color: var(--q-fair); }
.m-cell.q3 .m-val { color: var(--q-poor); }
.legend .qlane { width: 16px; height: 4px; border-radius: 1px; display: inline-block; background: linear-gradient(90deg, var(--q-fair) 50%, var(--q-poor) 50%); }
.prose ul.mini li { font-size: .9rem; }
@media (max-width: 760px) { .m-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .cond-row { margin-bottom: 10px; }
  .seg-cond { width: 100%; }
  .seg-cond button { flex: 1; }
  .m-val { font-size: 1.02rem; }
}
