/* market.css: the market page (market.js). Uses the app.css tokens (--bg --panel --ink --muted --line --soft --accent
   --up --down --amber), so light and dark follow them. Design rules: 8 px grid, type 24 / 16 / 14 / 12, weights 400 / 600,
   12 px card corners, quiet borders; >= 44 px touch targets on phones. */
.mp { display: grid; gap: 16px; --r: 12px; --q: color-mix(in srgb, var(--line) 70%, transparent); }
.mp-back { margin: 0; }
.mp-back a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; font-weight: 600; border-radius: 8px; }
.mp-pad { padding: 8px 0; margin: 0; font-size: 12px; }

/* my cards: one look */
.mp-listen, .mp-chartcard, .mp-words, .mp-bookcard, .mp-actcard { border-radius: var(--r); padding: 24px; border-color: var(--q); }
.mp-listen h2, .mp-chartcard h2, .mp-words h2, .mp-bookcard h2, .mp-actcard h2 { font-size: 16px; font-weight: 600; margin: 0; }
.mp .cardtitle { margin-bottom: 16px; min-height: 32px; }
.mp .stat { font-size: 12px; }

/* focus, hover, pressed for every control I draw */
:where(.mp-back, .mp-head, .mp-listen, .mp-chartcard, .mp-words, .mp-bookcard, .mp-actcard) :is(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
:where(.mp-head, .mp-listen, .mp-chartcard, .mp-words, .mp-bookcard, .mp-actcard) summary { border-radius: 6px; }

/* skeletons */
.sk { display: block; height: 14px; border-radius: 6px; background: var(--soft); animation: mpsk 1.4s ease-in-out infinite; }
@keyframes mpsk { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.sk-s { height: 12px; }
.sk-h1 { height: 32px; margin: 8px 0; border-radius: 8px; }
.sk-big { display: inline-block; width: 96px; height: 32px; vertical-align: -4px; border-radius: 8px; }
.sk-c { height: 24px; justify-self: end; }
.sk-pill { height: 40px; border-radius: 8px; }
.mp-sklines { display: grid; gap: 12px; padding: 4px 0; }
.mp-skbook { gap: 8px; }
.mp-skbook .sk { height: 16px; }
.mp-skact .sk { height: 16px; }
.mp-skchart { height: 320px; padding: 8px 48px 32px 0; }
.mp-skchart .sk { height: 100%; border-radius: 8px; opacity: .7; }
.mp-skrow { display: grid; grid-template-columns: minmax(0, 1fr) 88px 216px; gap: 16px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--q); }
.mp-skrow > .sk:first-child { height: 16px; }
.mp-skbuy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* header */
.mp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; padding: 0 0 8px; }
.mp-hl { min-width: 0; flex: 1 1 320px; }
.mp-kind { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.mp-head h1 { margin: 8px 0 4px; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.2px; }
.mp-head h1 .tag { font-size: 12px; font-weight: 400; vertical-align: 3px; margin-left: 8px; letter-spacing: .3px; }
.mp-title { color: var(--muted); font-size: 14px; }
.mp-when { margin-top: 8px; font-size: 14px; display: flex; gap: 4px 12px; flex-wrap: wrap; align-items: baseline; }
.mp-when > b { font-weight: 600; }
.mp-when > .muted { font-size: 12px; }
.mp-when .cd { font-weight: 600; }
.mp-hr { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.mp-stats { display: flex; gap: 32px; }
.mp-stats div { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.mp-stats span { font-size: 12px; color: var(--muted); }
.mp-stats b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mp-links { display: flex; gap: 8px; flex-wrap: wrap; }
.mp-links .btn { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; font-size: 12px; font-weight: 600; border-radius: 8px; }
.mp-links .btn:hover { text-decoration: none; background: var(--soft); }
.mp-links .btn:active { transform: translateY(1px); }

/* layout */
.mp-top { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 16px; align-items: start; }
.mp-top .callcard { margin: 0; padding: 24px; border-color: var(--q); }
.mp-top .callcard .cardtitle { margin-bottom: 16px; }
.mp-main { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 16px; align-items: start; }
.mp-col { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 1181px) { .mp { gap: 24px; } .mp-top, .mp-main, .mp-col { gap: 24px; } }
@media (max-width: 1180px) { .mp-top, .mp-main { grid-template-columns: minmax(0, 1fr) 384px; } }
@media (max-width: 900px) {
  .mp-top, .mp-main { grid-template-columns: minmax(0, 1fr); }
  .mp-col { display: contents; }
  .mp-chartcard { order: 1; } .mp-words { order: 2; } .mp-bookcard { order: 3; } .mp-actcard { order: 4; }
  .mp-hr { align-items: flex-start; }
  .mp-stats div { align-items: flex-start; }
}

/* how to listen: compact, number big and copyable */
.mp-note { margin: 0 0 16px; font-size: 14px; }
.mp-phones { display: grid; gap: 8px; margin-bottom: 8px; }
.mp-phone { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; background: var(--soft); border-radius: 8px; }
.mp-pl { display: flex; flex-direction: column; min-width: 0; }
.mp-num { font-size: 24px; line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .3px; user-select: all; -webkit-user-select: all; white-space: nowrap; }
.mp-plab { font-size: 12px; color: var(--muted); }
.mp-copy { font: inherit; font-size: 12px; font-weight: 600; flex: none; min-width: 64px; min-height: 32px; padding: 4px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; transition: background .12s, border-color .12s; }
.mp-copy:hover { border-color: var(--accent); color: var(--accent); }
.mp-copy:active { transform: translateY(1px); background: var(--soft); }
.mp-copy.ok { border-color: var(--up); color: var(--up); }
.mp-kv { gap: 8px 16px; margin: 8px 0 0; font-size: 14px; }
.mp-kv dt { font-size: 12px; padding-top: 2px; }
.mp-midrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mp-mid { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .4px; user-select: all; -webkit-user-select: all; }
.mp-listen dd .sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.mp-listen .more { margin-top: 8px; }
.mp-id { font-size: 12px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
:is(.mp-listen, .mp-words) summary { font-size: 12px; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding-right: 8px; }
:is(.mp-listen, .mp-words) summary::-webkit-details-marker { display: none; }
:is(.mp-listen, .mp-words) summary::before { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .15s; margin-left: 2px; }
:is(.mp-listen, .mp-words) details[open] > summary::before { transform: rotate(45deg); }
:is(.mp-listen, .mp-words) summary:hover { color: var(--ink); }

/* chart */
.mp-ch-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mp-ch-l { min-width: 0; }
.mp-ch-word { font-weight: 600; font-size: 16px; line-height: 24px; min-height: 24px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mp-pmchip { display: inline-block; font-size: 12px; font-weight: 600; color: var(--b-asked); background: color-mix(in srgb, var(--b-asked) 12%, transparent); border-radius: 999px; padding: 0 8px; line-height: 20px; }
.mp-ch-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.mp-ch-price b { font-size: 32px; line-height: 40px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.mp-ch-lbl { color: var(--accent); font-weight: 600; font-size: 16px; }
.mp-chg { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp-chg.up { color: var(--up); }
.mp-chg.down { color: var(--down); }
.mp-rng, .mp-seg { display: inline-flex; gap: 4px; padding: 0; }
.mp-rng button, .mp-seg button { font: inherit; font-size: 12px; font-weight: 600; min-width: 40px; min-height: 32px; padding: 4px 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer; transition: background .12s, color .12s; }
.mp-rng button:hover, .mp-seg button:hover { background: var(--soft); color: var(--ink); }
.mp-rng button:active, .mp-seg button:active { transform: translateY(1px); }
.mp-rng button.on, .mp-seg button.on { background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.mp-chart { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; overflow: hidden; cursor: crosshair; }
.mp-svg { min-height: 230px; }
.mp-chart svg { display: block; }
.mp-chart .g { stroke: var(--line); stroke-dasharray: 2 4; opacity: .8; }
.mp-chart .gx { opacity: .4; }
.mp-chart .ax { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.mp-chart .band { fill: var(--accent); opacity: .06; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mp-chart .band { opacity: .1; } }
:root[data-theme="dark"] .mp-chart .band { opacity: .1; }
.mp-chart .ln { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.mp-chart .pml { fill: none; stroke: var(--b-asked); stroke-width: 1.75; stroke-dasharray: 5 3; stroke-linejoin: round; }
.mp-chart .pmdot { fill: var(--b-asked); stroke: var(--panel); stroke-width: 2; }
.mp-chart .tky { stroke: var(--up); stroke-width: 1.5; opacity: .7; }
.mp-chart .tkn { stroke: var(--down); stroke-width: 1.5; opacity: .7; }
.mp-chart .now { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.mp-chart .nowpill { fill: var(--accent); }
.mp-chart .nowtxt { fill: var(--accent-ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mp-chart .msg { fill: var(--muted); font-size: 14px; }
.mp-xl { position: absolute; top: 0; left: 0; width: 1px; background: var(--muted); opacity: 0; pointer-events: none; will-change: transform; }
.mp-xd, .mp-xp { position: absolute; top: 0; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); border: 2px solid var(--panel);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); opacity: 0; pointer-events: none; will-change: transform; }
.mp-xp { background: var(--b-asked); box-shadow: none; }
.mp-tip { position: absolute; top: 0; left: 0; pointer-events: none; opacity: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  font-size: 12px; line-height: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); white-space: nowrap; will-change: transform; transition: opacity .12s; }
.mp-tip b { font-size: 14px; font-weight: 600; }
.mp-tip .mp-tt { color: var(--muted); }
.mp-tip .mp-tpm { color: var(--b-asked); font-weight: 600; }
.mp-chart.hov .mp-xl { opacity: .5; }
.mp-chart.hov .mp-xd, .mp-chart.hov .mp-xp, .mp-chart.hov .mp-tip { opacity: 1; }
.mp-legend { display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); margin-top: 8px; min-height: 32px; }
.mp-legend .k { display: inline-block; width: 16px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 8px; }
.mp-legend .kl { background: var(--accent); }
.mp-legend .kb { background: var(--accent); opacity: .25; height: 10px; }
.mp-legend .kt { width: 2px; height: 10px; background: var(--up); box-shadow: 4px 0 0 var(--down); margin-right: 12px; }
.mp-legend .kp { background: var(--b-asked); }
.mp-lz { margin-left: auto; }
.mp-pmtog { font: inherit; font-size: 12px; font-weight: 600; min-height: 32px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.mp-pmtog:hover { border-color: var(--b-asked); color: var(--ink); }
.mp-pmtog:active { transform: translateY(1px); }
.mp-pmtog.on { border-color: var(--b-asked); color: var(--ink); background: color-mix(in srgb, var(--b-asked) 8%, var(--panel)); }

/* words list: Kalshi-style rows */
.mp-wh, .mp-rowmain { display: grid; grid-template-columns: minmax(0, 1fr) 96px 216px; gap: 16px; align-items: center; }
.mp-wh { padding: 0 8px 8px; font-size: 12px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--q); }
.mp-whc { text-align: right; }
.mp-whb { text-align: center; }
.mp-row { border-bottom: 1px solid var(--q); }
.mp-row:last-child { border-bottom: 0; }
.mp-rowmain { padding: 12px 8px; min-height: 64px; cursor: pointer; border-radius: 8px; margin: 4px 0; transition: background .12s; }
.mp-rowmain:hover { background: var(--soft); }
.mp-rowmain:active { background: color-mix(in srgb, var(--soft) 60%, var(--line)); }
.mp-rowmain:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mp-row.sel .mp-rowmain { background: var(--soft); box-shadow: inset 3px 0 0 var(--accent); }
.mp-w { min-width: 0; }
.mp-wn { font-weight: 600; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.mp-wn .tag { font-weight: 400; font-size: 12px; }
.mp-ws { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.mp-pm { color: var(--b-asked); font-weight: 600; }
.mp-c { display: flex; align-items: baseline; gap: 8px; justify-content: flex-end; }
.mp-c b { font-size: 24px; line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums; border-radius: 6px; padding: 0 4px; }
.mp-buy { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-yes, .mp-no { font: inherit; font-weight: 600; font-size: 14px; min-height: 40px; border: 0; border-radius: 8px; padding: 8px 4px; font-variant-numeric: tabular-nums; cursor: pointer; white-space: nowrap; transition: background .12s, color .12s; }
.mp-yes { background: color-mix(in srgb, var(--up) 13%, transparent); color: var(--up); }
.mp-no { background: color-mix(in srgb, var(--down) 12%, transparent); color: var(--down); }
.mp-yes:hover:not(:disabled) { background: var(--up); color: var(--panel); }
.mp-no:hover:not(:disabled) { background: var(--down); color: var(--panel); }
.mp-yes:active:not(:disabled), .mp-no:active:not(:disabled) { transform: translateY(1px); }
/* off: the pills stay readable (they show the price) but say why on hover / tap */
.mp-yes:disabled, .mp-no:disabled { pointer-events: none; }
.mp-buy[data-off] { cursor: not-allowed; }
.mp-buy[data-off]:hover .mp-yes, .mp-buy[data-off]:hover .mp-no { filter: saturate(.4); }
.mp-buy[data-off]::after { content: attr(data-why); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translate(-50%, 4px); z-index: 3;
  background: var(--ink); color: var(--panel); font-size: 12px; font-weight: 600; line-height: 16px; padding: 4px 8px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; }
.mp-buy[data-off]:hover::after, .mp-buy[data-off].tip::after { opacity: 1; transform: translate(-50%, 0); }
.mp-det { padding: 0 8px 16px 12px; }
.mp-dg { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.mp-dg div { background: var(--bg); border: 1px solid var(--q); border-radius: 8px; padding: 8px 12px; }
.mp-dg span { display: block; font-size: 12px; color: var(--muted); }
.mp-dg b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mp-dg b.up { color: var(--up); }
.mp-dg b.down { color: var(--down); }
.mp-dn { margin: 8px 0 0; font-size: 12px; }
.mp-f1 { animation: mpf1 1.2s ease-out; }
.mp-f2 { animation: mpf2 1.2s ease-out; }
@keyframes mpf1 { from { background: var(--flash); } to { background: transparent; } }
@keyframes mpf2 { from { background: var(--flash); } to { background: transparent; } }
.mp-rules { margin-top: 16px; }
.mp-rules .rules { margin-top: 8px; font-size: 12px; line-height: 18px; }

/* order book */
.mp-books { display: grid; gap: 16px; }
.mp-books.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mp-booknote { grid-column: 1 / -1; font-size: 12px; margin: 0; }
.mp-lad { min-width: 0; }
.mp-ladh { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.mp-ladh b { font-weight: 600; }
.mp-ladh span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-lr { display: grid; grid-template-columns: 0.9fr 1.1fr 1fr; gap: 8px; padding: 0 8px; line-height: 24px; font-size: 12px; font-variant-numeric: tabular-nums; border-radius: 4px; }
.mp-lr span { white-space: nowrap; }
.mp-lr span:nth-child(n+2) { text-align: right; }
.mp-lr + .mp-lr { margin-top: 2px; }
.mp-lhd { color: var(--muted); font-size: 12px; }
.mp-lr.ask { background: linear-gradient(to right, color-mix(in srgb, var(--down) 14%, transparent) var(--w), transparent var(--w)); }
.mp-lr.bid { background: linear-gradient(to right, color-mix(in srgb, var(--up) 14%, transparent) var(--w), transparent var(--w)); }
.mp-lr.ask span:first-child { color: var(--down); font-weight: 600; }
.mp-lr.bid span:first-child { color: var(--up); font-weight: 600; }
.mp-none { color: var(--muted); }
.mp-spread { display: flex; justify-content: space-between; padding: 4px 8px; margin: 8px 0; border-top: 1px solid var(--q); border-bottom: 1px solid var(--q); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* activity */
.mp-act { font-size: 12px; max-height: 560px; overflow-y: auto; contain: content; overscroll-behavior: contain; }
.mp-ar { display: grid; grid-template-columns: 112px minmax(0, 1fr) 56px 72px; gap: 8px; padding: 0 4px; min-height: 32px; border-bottom: 1px solid var(--q); font-variant-numeric: tabular-nums; align-items: center; }
.mp-act.w .mp-ar { grid-template-columns: 104px minmax(0, 1fr) 40px 48px 64px; }
.mp-ah { color: var(--muted); font-size: 12px; position: sticky; top: 0; background: var(--panel); z-index: 1; }
.mp-ar .r { text-align: right; }
.mp-at { color: var(--muted); white-space: nowrap; }
.mp-aw { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-as { font-weight: 600; }
.mp-as.yes { color: var(--up); }
.mp-as.no { color: var(--down); }
.mp-more { margin-top: 16px; min-height: 32px; font-size: 12px; font-weight: 600; border-radius: 8px; padding: 4px 16px; }
.mp-more:hover { background: var(--soft); }
.mp-more:active { transform: translateY(1px); }

/* phones */
@media (max-width: 640px) {
  .mp { gap: 16px; }
  .mp-listen, .mp-chartcard, .mp-words, .mp-bookcard, .mp-actcard, .mp-top .callcard { padding: 16px; }
  .mp .cardtitle { flex-wrap: wrap; margin-bottom: 8px; }
  .mp-back a { min-height: 44px; }
  .mp-head { gap: 16px; padding: 0; }
  .mp-head h1 { margin-top: 4px; }
  .mp-when { font-size: 14px; }
  .mp-hr { width: 100%; gap: 8px; }
  .mp-stats { gap: 24px; }
  .mp-links .btn, .mp-copy, .mp-more, .mp-pmtog { min-height: 44px; }
  .mp-rng { width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); }
  .mp-rng button, .mp-seg button { min-height: 44px; font-size: 14px; }
  :is(.mp-listen, .mp-words) summary { min-height: 44px; }
  .mp-listen .more { margin-top: 8px; }
  .mp-kv a { display: inline-flex; align-items: center; min-height: 44px; }
  .mp-wh { display: none; }
  .mp-rowmain { grid-template-columns: minmax(0, 1fr) auto 136px; gap: 8px; padding: 8px 4px; }
  .mp-c b { font-size: 16px; padding: 0; }
  .mp-c .mp-chg { display: none; }
  .mp-buy { gap: 4px; }
  .mp-yes, .mp-no { font-size: 12px; min-height: 44px; padding: 8px 2px; }
  .mp-buy[data-off]::after { left: auto; right: 0; transform: translate(0, 4px); }
  .mp-buy[data-off]:hover::after, .mp-buy[data-off].tip::after { transform: translate(0, 0); }
  .mp-skrow { grid-template-columns: minmax(0, 1fr) 40px 136px; gap: 8px; padding: 12px 4px; }
  .mp-skbuy { gap: 4px; }
  .sk-pill { height: 44px; }
  .mp-skchart { height: 230px; }
  .mp-ch-price b { font-size: 32px; }
  .mp-lz { margin-left: 0; }
  .mp-det { padding: 0 4px 12px 8px; }
  .mp-dg { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .mp-dg div { padding: 4px 8px; }
  .mp-dg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mp-num { font-size: 22px; }
  .mp-phone { padding-left: 12px; }
  .mp-ar { grid-template-columns: 96px minmax(0, 1fr) 48px 64px; min-height: 36px; }
  .mp-act.w .mp-ar { grid-template-columns: 88px minmax(0, 1fr) 30px 40px 52px; gap: 4px; }
}
@media (max-width: 480px) { .mp-books.two { grid-template-columns: minmax(0, 1fr); } }

/* speed: keep each card's layout to itself (no content-visibility: it left rows blank in full-page captures) */
.mp-chartcard, .mp-words, .mp-bookcard, .mp-actcard, .mp-listen { contain: layout style; }
.mp-chart { contain: layout paint; }
