/* Omnibook Markets page (the public feed), in the Trade page's language. Every colour is an --ob-* token from
   theme.css (linked first); the fallbacks keep the page readable where theme.css is not served. Black ground, cards
   (.ob-panel: #0d0d0f, hairline edge, 20px corners), one page title and a short lede, 20px section titles
   (.ob-sechead), one 14px line per market (icon and name, price, 1h change, line, Trade), 13px grey heads, numbers
   right-aligned, the market types as one row of pills. White for the chosen filter and focus, green/red only for
   up/down and won/lost. Nothing animates, including on updates. */
:root {
  --panel: var(--ob-surface, #0d0d0f);
  --line: var(--ob-line-lo, rgba(255, 255, 255, 0.05));
  --line2: var(--ob-line, rgba(255, 255, 255, 0.09));
  --up-bg: var(--ob-up-bg, rgba(31, 209, 112, 0.12));
  --down-bg: var(--ob-down-bg, rgba(255, 77, 90, 0.12));
  --hover: var(--ob-hover, rgba(255, 255, 255, 0.06));
  --track: var(--ob-track, #151518);
  --q6: rgba(255, 255, 255, 0.06);
  --focus: var(--ob-focus, rgba(255, 255, 255, 0.6));
  --pill: var(--ob-pill, 999px);
  --gap: 12px;
  --pad: 24px;      /* a panel's inner gutter */
  --gutter: 24px;   /* the page's */
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: var(--sans); font-size: 14px; line-height: 1.45; font-weight: 400; font-feature-settings: "cv01", "ss03"; font-variant-numeric: lining-nums tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
[hidden] { display: none !important; }
.num, .tn, .tbl td.r { font-variant-numeric: lining-nums tabular-nums; }
/* names: proportional, since Inter's tabular figures widen the hyphen ("trader - 1") */
.row .c2, .rq .m, .mn { font-variant-numeric: lining-nums proportional-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.dim { color: var(--fg2); }
a { color: var(--fg2); text-decoration: none; }
@media (hover: hover) { a:hover { color: var(--fg); } }
h2 { font-size: var(--ob-t-title, 20px); font-weight: 600; color: var(--fg); margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* app bar and nav: dashboard/nav.css; the feed's state is its .livebadge */

/* ---------- layout: the head over two columns (markets and quotes | the live tape) ---------- */
.wrap { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "head head" "main tape"; gap: var(--gap); max-width: none; margin: 0; padding: 0 var(--gutter) 64px; align-items: start; }
.head { grid-area: head; padding: 36px 0 16px; }
.head h1 { font-size: var(--ob-h1, 28px); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0; color: var(--fg); }
.lede { margin: 6px 0 0; color: var(--fg2); font-size: 15px; max-width: 64ch; }
.lede a { color: var(--fg); font-weight: 510; }
@media (hover: hover) { .lede a:hover { color: var(--ink2); } }
.maincol { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.tapecol { grid-area: tape; min-width: 0; position: sticky; top: calc(var(--hdr, 64px) + var(--gap)); }
.pane { padding: 22px var(--pad) 10px; min-width: 0; }
.pane .ob-sechead { margin-bottom: 16px; }
.qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.qgrid .pane { padding-bottom: 14px; }
.empty { font-size: 14px; color: var(--fg2); margin: 0; padding: 4px 0 8px; max-width: 52ch; }
/* the unboxed empty state: a 15/600 title over a 14px line */
.empty b { display: block; font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 2px; }
.empty.pad { padding: 28px var(--pad); max-width: none; }

/* ---------- filters: search in the panel's head, the market types as one row of pills under it ---------- */
.mhead { align-items: center; }
.mhead .ttl { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.msearch { flex: 0 1 260px; height: 40px; width: 260px; min-width: 0; padding: 0 16px; border-radius: var(--pill); border: 0; background: var(--track); color: var(--fg); font: inherit; font-size: 14px; }
.msearch::placeholder { color: var(--fg3); }
.msearch:focus { outline: none; box-shadow: 0 0 0 2px var(--focus); }
/* one row; past the panel's width it scrolls sideways inside itself, never the page */
.mfilt { display: flex; gap: 6px; min-width: 0; min-height: 36px; align-items: center; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)) 10px; padding: 0 var(--pad); }
.mfilt::-webkit-scrollbar { display: none; }
/* phones: the chips scroll sideways, so the right edge fades to say there is more */
@media (max-width: 760px) { .mfilt { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); } }
/* the row's end keeps the panel's gutter after the last chip (a scroller's own end padding is dropped in some browsers) */
.mfilt::after { content: ""; flex: 0 0 calc(var(--pad) - 6px); height: 1px; }
/* more chips past an edge: that edge fades out (page.js sets .fl / .fr from the scroll position; nothing animates) */
.mfilt.fr { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.mfilt.fl { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); }
.mfilt.fl.fr { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.mfilt .chip { flex: none; height: 36px; padding: 0 16px; border-radius: var(--pill); border: 0; background: var(--track); color: var(--ink2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
@media (hover: hover) { .mfilt .chip:hover { color: var(--fg); background: var(--ob-raise, #1a1a1e); } }
.mfilt .chip.on { color: var(--ob-on-brand, #000); background: var(--ob-brand, #fff); }
@media (hover: hover) { .mfilt .chip.on:hover { color: var(--ob-on-brand, #000); background: var(--ob-brand, #fff); } }

/* ---------- tables ---------- */
/* positioned, so a screen-reader-only label inside it (.sr) is clipped with the table, never widening the page */
.tablewrap { position: relative; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--raise2) transparent; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { height: 36px; font-size: var(--ob-t-small, 13px); font-weight: 400; color: var(--fg2); text-align: left; padding: 0 12px 0 0; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl td { height: 52px; padding: 0 12px 0 0; border-bottom: 1px solid var(--line); color: var(--ink2); white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td:first-child { color: var(--fg); font-weight: 600; }
.tbl .r { text-align: right; }
.tbl td.r b { color: var(--fg); font-weight: 600; }
.tbl tr > :last-child { padding-right: 0; }
.tbl td.up, .tbl td .up { color: var(--up); }
.tbl td.down, .tbl td .down { color: var(--down); }

/* the markets table: one 56px line per market, like an exchange's market list */
.tbl.mkt td { height: 60px; }
.tbl.mkt td.r b { font-size: 15px; }
@media (hover: hover) { .tbl.mkt tbody tr:not(.grp):hover td { background: var(--rowhover, rgba(255, 255, 255, 0.03)); } }
.tbl.mkt tbody tr:not(.grp) td:first-child { border-radius: 12px 0 0 12px; }
.tbl.mkt tbody tr:not(.grp) td:last-child { border-radius: 0 12px 12px 0; }
.tbl.mkt tr.grp td { height: 44px; padding-top: 18px; vertical-align: bottom; font-size: 15px; font-weight: 600; color: var(--fg); border-bottom: 1px solid var(--line2); }
.tbl.mkt tbody tr.grp:first-child td { padding-top: 6px; height: 32px; }
.tbl.mkt td.mcol { padding-left: 8px; }
.tbl.mkt th:first-child { padding-left: 8px; }
.mcell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mt { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
/* the market's icon: its glyph on its colour, as the Trade page's strip (dashboard/trade-look.css .mki, the one table) */
.mi { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #2a2a30; color: #fff; font-size: 13px; font-weight: 700; line-height: 1; font-variant-numeric: normal; }
.mi[data-m="BTC"] { background: #f7931a; } .mi[data-m="XAU"] { background: #c9a227; } .mi[data-m="WTI"], .mi[data-m="BRENT"] { background: #3b3b42; }
.mi[data-m="PJM"] { background: #e0a100; } .mi[data-m="H100"] { background: #1fae6a; }
.mi[data-m="EURUSD"], .mi[data-m="GBPUSD"], .mi[data-m="AUDUSD"], .mi[data-m="USDJPY"], .mi[data-m="USDCNH"], .mi[data-m="DXY"] { background: #2b5cd6; }
.mi[data-m="ETH"] { background: #627eea; } .mi[data-m="SOL"] { background: #9945ff; } .mi[data-m="XRP"] { background: #23292f; }
.mi[data-m="BNB"] { background: #f0b90b; color: #000; } .mi[data-m="DOGE"] { background: #c2a633; } .mi[data-m="HYPE"] { background: #3ccfb4; color: #000; }
.mi[data-m="LINK"] { background: #2a5ada; } .mi[data-m="AVAX"] { background: #e84142; } .mi[data-m="SUI"] { background: #4da2ff; } .mi[data-m="ADA"] { background: #0033ad; }
.mi[data-m="NVDA"] { background: #76b900; color: #000; } .mi[data-m="TSLA"] { background: #cc0000; } .mi[data-m="AAPL"] { background: #555; } .mi[data-m="MSFT"] { background: #00a4ef; }
.mi[data-m="AMZN"] { background: #ff9900; color: #000; } .mi[data-m="GOOGL"] { background: #4285f4; } .mi[data-m="META"] { background: #0866ff; } .mi[data-m="AMD"] { background: #1f1f1f; }
.mi[data-m="TSM"] { background: #c4161c; } .mi[data-m="PLTR"] { background: #2b2b2b; } .mi[data-m="COIN"] { background: #0052ff; } .mi[data-m="MSTR"] { background: #d9232e; }
.mi[data-m="HOOD"] { background: #ccff00; color: #000; } .mi[data-m="JPM"] { background: #6b5a45; }
.mi[data-m="US500"], .mi[data-m="US100"], .mi[data-m="US30"], .mi[data-m="US2000"] { background: #3a4a6b; } .mi[data-m="VIX"] { background: #7a3b8f; }
.mi[data-m="HSI"], .mi[data-m="NIKKEI"] { background: #8a2b3a; } .mi[data-m="XAG"], .mi[data-m="XPT"] { background: #8e9196; } .mi[data-m="COPPER"] { background: #b8733e; }
.mi[data-m="NATGAS"] { background: #3a7bd5; } .mi[data-m="WHEAT"] { background: #c8a04a; } .mi[data-m="URANIUM"] { background: #5a8f29; }
.mi[data-m="US10Y"], .mi[data-m="US2Y"], .mi[data-m="CPI"] { background: #4a5568; } .mi[data-m="HOME"], .mi[data-m="RENT"], .mi[data-m="EGGS"] { background: #8a6d3b; }
.mi[data-m="OPENAI"], .mi[data-m="SPACEX"] { background: #3a3a3f; } .mi[data-m="ANT"], .mi[data-m="ANTHROPIC"] { background: #d97757; }
.mn { color: var(--fg); font-weight: 600; font-size: 15px; }
/* the ticker: quiet 13px text after the name, no box */
.code { font-size: var(--ob-t-small, 13px); font-weight: 400; color: var(--fg2); flex: none; }
.tbl.mkt .sortb { background: none; border: 0; padding: 0; font: inherit; font-size: var(--ob-t-small, 13px); font-weight: 400; color: var(--fg2); cursor: pointer; }
.tbl.mkt .sortb.on { color: var(--fg); }
@media (hover: hover) { .tbl.mkt .sortb:hover { color: var(--fg); } }
.tbl.mkt .sortb.on { font-weight: 600; }
.tbl.mkt td.skc, .tbl.mkt th.skc { width: 96px; padding: 0 0 0 16px; }
.psk { display: block; width: 80px; height: 24px; color: var(--fg3); }
.psk.up { color: var(--up); }
.psk.down { color: var(--down); }
.tbl.mkt .pch { display: none; }
.tbl.mkt td.udc { width: 1%; padding-left: 16px; padding-right: 6px; white-space: nowrap; }
/* the next minute's prices, volume and open trades: 13px tabular numbers, Up green and Down red */
.tbl.mkt td.udp { white-space: nowrap; font-size: 13px; font-variant-numeric: tabular-nums; padding-left: 16px; }
.tbl.mkt td.udp .up { color: var(--up); } .tbl.mkt td.udp .down { color: var(--down); }
/* a price is a link to the ticket on that side: a quiet tint under the mouse, never underlined or a bordered pill */
.tbl.mkt td.udp .udl { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 52px; height: 32px; padding: 0 10px; margin-right: -10px; border-radius: var(--pill); font-weight: 600; }
@media (hover: hover) { .tbl.mkt td.udp .udl.up:hover { background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); } }
@media (hover: hover) { .tbl.mkt td.udp .udl.down:hover { background: color-mix(in srgb, var(--down) 14%, transparent); color: var(--down); } }
/* a wide screen: the last-hour line takes the spare width, so the row ends at the card's edge */
@media (min-width: 1500px) { .tbl.mkt td.skc, .tbl.mkt th.skc { width: 176px; } .tbl.mkt td.skc .psk { width: 160px; } .tbl.mkt td.udp, .tbl.mkt td.vlc, .tbl.mkt td.oic { padding-left: 32px; } }
/* the live tape fills its rail to the bottom of the screen (Kalshi's sticky right column), its rows scrolling inside */
@media (min-width: 1281px) { .tapein { height: calc(100vh - var(--hdr, 64px) - 2 * var(--gap)); } .tapein .tape { flex: 1 1 auto; } }
.tbl.mkt td.vlc, .tbl.mkt td.oic { white-space: nowrap; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--fg2); padding-left: 16px; }
.tbl.mkt.noud .udp, .tbl.mkt.novl .vlc, .tbl.mkt.nooi .oic { display: none; }
/* the whole row opens the Trade page: a pointer, and the Trade pill only on the row under the mouse (one obvious
   action at a time, never 59 pills); a touch screen shows a quiet chevron instead */
.tbl.mkt tbody tr[data-market] { cursor: pointer; }
.tbl.mkt .chv { display: none; color: var(--fg3); font-size: 18px; line-height: 1; }
@media (hover: hover) { .tbl.mkt tbody tr[data-market] .qb { opacity: 0; } .tbl.mkt tbody tr[data-market]:hover .qb, .tbl.mkt tbody tr[data-market] .qb:focus-visible { opacity: 1; } }
@media (hover: none) { .tbl.mkt .qb { display: none; } .tbl.mkt .chv { display: inline; } .tbl.mkt td.udc { width: 1%; padding-left: 4px; } }
/* Trade: one quiet filled pill (never an outline, never underlined), white on hover */
.qb { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 36px; border-radius: var(--pill); font-size: 14px; font-weight: 600; color: var(--fg); background: var(--track); }
@media (hover: hover) { .qb:hover { color: var(--fg); background: var(--ob-raise, #1a1a1e); } }

/* ---------- quotes and requests ---------- */
#books td:first-child { font-weight: 600; }
.rq { min-height: 60px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink2); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rq:first-child { border-top: 0; }
.rq .c { color: var(--fg); font-weight: 600; }
.rq .m { font-size: var(--ob-t-small, 13px); color: var(--fg2); margin-top: 2px; }
.rq .pr { text-align: right; white-space: nowrap; }
.rq .pr b { color: var(--fg); font-weight: 600; }

/* ---------- the live tape: a card of one-line rows, its own scroll past one screen ---------- */
.tapein { display: flex; flex-direction: column; max-height: calc(100vh - var(--hdr, 64px) - 2 * var(--gap)); overflow: hidden; }
.tapeh { padding: 22px var(--pad) 4px; }
.tape { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--raise2) transparent; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; align-items: center; min-height: 60px; padding: 10px var(--pad); border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .mid { min-width: 0; }
/* the time leads the quiet second line */
.row .t { color: var(--fg2); font-variant-numeric: lining-nums tabular-nums; margin-right: 8px; }
.row .c1 { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font-size: 14px; font-weight: 600; color: var(--fg); }
/* the contract is never cut: "BTC > $68,112.49 @ 1m" wraps rather than lose its time */
.row .c1 .nm { min-width: 0; overflow-wrap: break-word; }
/* who traded with whom: one quiet line, the full sentence on hover */
.row .c2 { font-size: var(--ob-t-small, 13px); color: var(--fg2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .c2 .fw { color: var(--fg3); }
.row .c2 .ob-badge { margin-left: 2px; height: 16px; font-size: 10.5px; }
/* "You" after this browser's own name: quiet text, no box */
.row .c2 .you, .rq .m .you { margin-left: 4px; color: var(--ink2); font-weight: 510; }
.row .rt { text-align: right; line-height: 1.25; }
.row .pp { display: block; font-size: 14px; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.row .ps { display: block; font-size: var(--ob-t-small, 13px); color: var(--fg2); margin-top: 2px; font-variant-numeric: tabular-nums; }
/* a new session: an info row in the flow */
.sect { display: flex; align-items: center; min-height: 36px; padding: 0 var(--pad); font-size: var(--ob-t-small, 13px); font-weight: 510; color: var(--fg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* "Bought" / "Sold" / "Above": a neutral small pill. Buying is not a profit, so never green or red here */
.dchip { display: inline-flex; align-items: center; height: 20px; font-size: 12px; font-weight: 600; line-height: 20px; padding: 0 8px; border-radius: var(--pill); flex: 0 0 auto; background: var(--q6); color: var(--ink2); }
.dchip.up, .dchip.down, .dchip.na { background: var(--q6); color: var(--ink2); }
/* the feed's data links: one quiet line under the tape */
.dl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 12px calc(var(--pad) - 8px); border-top: 1px solid var(--line2); font-size: var(--ob-t-small, 13px); }
.dl .dlh { color: var(--fg3); padding: 0 8px; }
.dl a { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: var(--pill); color: var(--ink2); font-weight: 510; }
@media (hover: hover) { .dl a:hover { color: var(--fg); background: var(--hover); } }

/* Show all / Show more under a capped list: a secondary pill, never bordered */
.more { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; margin: 8px 0 12px; border: 0; border-radius: var(--pill); background: var(--track); color: var(--ink2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
@media (hover: hover) { .more:hover { color: var(--fg); background: var(--ob-raise, #1a1a1e); } }
.more.tmore { width: auto; margin: 8px var(--pad) 12px; }
/* wider screens: the market list's cap and its Show all (page.js cap()); the tape scrolls in its own column there */
@media (min-width: 901px) { .more.tmore { display: none; } .tbl.mkt tr.xtra { display: none; } }
/* the segmented control that picks one section on a phone */
.seg { grid-area: seg; display: none; }

/* ---------- the room the markets keep while they load (no layout shift) ---------- */
#forecast:has(> .empty) { min-height: max(640px, 100vh); }
#mfilt:empty { min-height: 36px; }

/* ---------- widths ---------- */
/* under 1280px the table needs the width: the live tape moves below the quotes */
@media (max-width: 1280px) {
  .tbl.mkt .oic { display: none; }
  .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "main" "tape"; }
  .tapecol { position: static; }
  .tapein { max-height: none; }
  .tape { max-height: 480px; }
}
@media (max-width: 360px) {
  .tbl.mkt td.skc, .tbl.mkt th.skc { display: none; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .qgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tbl .s-hide { display: none; }
}
@media (max-width: 480px) {
  .s-hide { display: none; }
}
/* phones and tablets: one section at a time behind a segmented control (pills on a #151518 track, the chosen one
   white), the first 12 markets and 8 tape rows with Show all under them, so the page is a screen or two, not ten */
@media (max-width: 900px) {
  .wrap { grid-template-areas: "head" "seg" "main" "tape"; padding-bottom: 32px; }
  .seg { display: flex; gap: 2px; padding: 4px; border-radius: var(--pill); background: var(--track); }
  .seg button { flex: 1 1 0; min-width: 0; height: 36px; padding: 0 8px; border: 0; border-radius: var(--pill); background: transparent; color: var(--fg2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  @media (hover: hover) { .seg button:hover { color: var(--fg); } }
  .seg button.on { color: var(--ob-on-brand, #000); background: var(--ob-brand, #fff); }
@media (hover: hover) { .seg button.on:hover { color: var(--ob-on-brand, #000); background: var(--ob-brand, #fff); } }
  .wrap[data-view="mk"] .qgrid, .wrap[data-view="mk"] .tapecol { display: none; }
  .wrap[data-view="q"] .mkts, .wrap[data-view="q"] .tapecol { display: none; }
  .wrap[data-view="tape"] .maincol { display: none; }
  .tbl.mkt tr.xtra { display: none; }
  .tapecol:not(.all) .tape > :nth-child(n+9 of :not(.vtail)) { display: none; }
  .tape { max-height: none; }
}
/* phones: a dense row (name, price over its hour's change, Up and Down at 44px) */
@media (max-width: 640px) {
  :root { --gutter: 16px; --pad: 16px; }
  .wrap { padding-bottom: 32px; }
  .head { padding: 24px 0 4px; }
  .head h1 { font-size: 26px; }
  .lede { font-size: 14px; margin-top: 4px; }
  .pane { padding-top: 16px; border-radius: 16px; }
  .tapein { border-radius: 16px; }
  .ob-sechead h2, h2 { font-size: 18px; }
  .tbl.mkt .code { display: none; }
  .tbl.mkt tr.grp td { height: 36px; padding-top: 12px; font-size: 14px; }
  .mhead { flex-wrap: wrap; row-gap: 12px; }
  .msearch { flex: 1 1 100%; width: 100%; height: 44px; font-size: 16px; }
  .mfilt .chip { height: 36px; padding: 0 14px; }
  .tbl.mkt .chc, .tbl.mkt .vlc, .tbl.mkt .oic, .tbl.mkt .udp { display: none; }
  .tbl.mkt .pch { display: block; font-size: var(--ob-t-small, 13px); font-weight: 400; margin-top: 1px; }
  .tbl.mkt td { height: 64px; padding-right: 8px; }
  .tbl.mkt td.mcol { padding-left: 0; }
  .tbl.mkt th:first-child { padding-left: 0; }
  .mn { font-size: 14px; }
  .mt { flex-direction: column; align-items: flex-start; gap: 1px; white-space: normal; }
  .tbl.mkt td.udc { padding-left: 4px; }
  .tbl.mkt td.skc, .tbl.mkt th.skc { width: 64px; padding-left: 8px; }
  .psk { width: 56px; }
  .mcell { gap: 10px; }
  .qb { width: 64px; height: 44px; }
  .tbl td { height: 52px; }
  .row .c2 { white-space: normal; }
  .dl a { height: 44px; }
}
/* phones: every row fits the card (no sideways scroll, no Trade button under its edge): fixed columns, the price and
   its change right-aligned, the market's name cut with an ellipsis when it is long; the hour's line from 481px */
@media (max-width: 640px) {
  .mkts .tablewrap { overflow-x: visible; margin: 0; padding: 0; }
  .tbl.mkt th.pc, .tbl.mkt td.pc { width: 1%; }
  .tbl.mkt th.udc, .tbl.mkt td.udc { width: 1%; padding-right: 0; }
  .tbl.mkt td.mcol, .tbl.mkt th.mcol { width: 100%; max-width: 0; overflow: hidden; }
  .tbl.mkt .mt { min-width: 0; max-width: 100%; }
  .tbl.mkt .mn { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tbl.mkt tbody tr:not(.grp) td:last-child { border-radius: 0; }
}
@media (max-width: 480px) {
  .tbl.mkt td.skc, .tbl.mkt th.skc { display: none; }
}
.tbl.mkt.nohr .chc { display: none; }
@media (max-width: 380px) {
  .qb { width: 56px; font-size: 13px; }
  .mi { width: 24px; height: 24px; font-size: 12px; }
  .mcell { gap: 8px; }
  .tbl.mkt td { padding-right: 6px; }
  .tbl.mkt td.r b { font-size: 14px; }
  .mn { font-size: 13px; }
}

/* desktop: a terminal's market list, 40px rows and 13px tabular numbers (Deribit / Hyperliquid density), the market
   types wrapped onto a second line instead of cut at the card's edge; phones keep their own rows (above) */
@media (min-width: 641px) {
  .tbl.mkt { font-size: 13px; }
  .tbl.mkt td { height: 40px; }
  .tbl.mkt td.r b, .mn { font-size: 13px; font-variant-numeric: lining-nums tabular-nums; }
  .tbl.mkt .code { font-size: 12px; }
  .mi { width: 22px; height: 22px; font-size: 11px; }
  .mcell { gap: 10px; }
  .qb { width: 64px; height: 28px; font-size: 13px; }
  .tbl.mkt tbody tr:not(.grp) td:first-child { border-radius: 8px 0 0 8px; }
  .tbl.mkt tbody tr:not(.grp) td:last-child { border-radius: 0 8px 8px 0; }
  .tbl.mkt tr.grp td { height: 32px; padding-top: 12px; font-size: 13px; }
  .psk { height: 20px; }
}
/* a desktop keeps the one scrolling row too (critic r1: "Private companies" wrapped alone onto a second row) */
@media (min-width: 901px) {
  .mfilt .chip { height: 32px; padding: 0 14px; font-size: 13px; }
}
/* touch: a 44px tap on each chip, its look unchanged */
@media (pointer: coarse) { .mfilt { padding-top: 4px; padding-bottom: 4px; } .mfilt .chip { position: relative; } .mfilt .chip::after { content: ""; position: absolute; inset: -4px -3px; } }
/* the live tape: every row one height, the contract on one line (cut with an ellipsis, whole on hover) */
.row { min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.row .c1 { align-items: center; }
.row .c1 .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.row .c1 .dchip { flex: none; }
.row .rt { white-space: nowrap; }
@media (max-width: 640px) { .row .c2 { white-space: nowrap; } }

/* the tape: a result in the right column is money, green or red; a void says Refunded, quietly */
.row .pp.up { color: var(--up); }
.row .pp.down { color: var(--down); }
.row .pp.dim { color: var(--fg3); font-weight: 510; }
/* a run of voids in a row is one line (page.js collapseVoids) */
.ltr.void .many { display: none; }
.ltr.void.vhead .one { display: none; }
.ltr.void.vhead .many { display: inline; }
.ltr.void.vtail { display: none; }

/* the list is the hero: no title block over it (the card's own heading is the page's h1), the rows start under the
   nav; the head row only holds the live note when there is one */
.head { padding: 20px 0 0; }
.head:has(> .livenote[hidden]) { padding: 0; margin-bottom: calc(-1 * var(--gap) + 20px); }
.mhead h1 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--fg); }
/* wide screens: the tape takes more of the width, so the markets list is not stretched into holes */
/* wide screens: the page column is capped, so the tape keeps a fixed width and the table gets the rest (critic r2: a 28vw
   tape squeezed the table to 626px at 1920 and it ran under Live trades, Down and Volume hidden) */
@media (min-width: 1500px) { .wrap { grid-template-columns: minmax(0, 1fr) 380px; } }
/* the numbers sit in evenly spaced columns: the market's name takes a fixed share, the rest spreads evenly */
@media (min-width: 901px) {
  .tbl.mkt th.mcol, .tbl.mkt td.mcol { width: 28%; }
  .tbl.mkt th.pc, .tbl.mkt td.pc { width: 16%; }
  .tbl.mkt th.chc, .tbl.mkt td.chc { width: 10%; }
  .tbl.mkt th.skc, .tbl.mkt td.skc { width: 16%; padding-left: 32px; }
  .tbl.mkt th.udp, .tbl.mkt td.udp { width: 12%; padding-left: 16px; }
  .tbl.mkt th.vlc, .tbl.mkt td.vlc, .tbl.mkt th.oic, .tbl.mkt td.oic { width: 12%; }
  .tbl.mkt th.udc, .tbl.mkt td.udc { width: 12%; }
}
/* phones: the switch above already says Markets, so the card's heading is for screen readers only, and the search
   and the type chips sit tight over the list */
@media (max-width: 640px) {
  .mhead .ttl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mkts.pane { padding-top: 12px; }
  .mhead { margin-bottom: 8px; }
  .mfilt { margin-bottom: 4px; }
}

/* ---- Robinhood pass: star to watch, Featured cards with odds bars, a tradable price on every phone row ---- */
.star { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0 2px 0 -6px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #3f3f46; cursor: pointer; flex: none; }
@media (hover: hover) { .star:hover { color: var(--fg2, #a1a1aa); } }
.star.on { color: #f4f4f5; }
.star:focus-visible { outline: 2px solid var(--fg, #fff); outline-offset: 1px; }
.mfeat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 16px; }
.mfeat[hidden] { display: none; }
.fcard { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: #0c0c0e; cursor: pointer; min-width: 0; }
@media (hover: hover) { .fcard:hover { border-color: rgba(255, 255, 255, .16); } }
.fc-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fc-h .mt { flex: 1 1 auto; min-width: 0; }
.fc-h .star { margin: 0 -6px 0 0; }
.fc-p { display: flex; align-items: baseline; gap: 8px; }
.fc-p b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.fc-p .pch { font-size: 13px; }
.fc-q { font-size: 13px; color: var(--fg2, #a1a1aa); margin-top: 2px; }
.odds { position: relative; height: 6px; border-radius: 999px; background: var(--ob-down, #ff5a4f); overflow: hidden; opacity: .9; }
.odds .ou { position: absolute; inset: 0 auto 0 0; background: var(--ob-up, #2fd27a); border-right: 2px solid #0c0c0e; }
.fc-l { display: flex; justify-content: space-between; font-size: 12px; font-variant-numeric: tabular-nums; }
.fc-b { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 4px; }
.fc-b .udl.fb { display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 999px; background: #121214; font-weight: 600; font-size: 14px; text-decoration: none; }
@media (hover: hover) { .fc-b .udl.fb:hover { background: #18181b; } }
@media (max-width: 900px) { .mfeat { grid-template-columns: minmax(0, 1fr); } .mfeat .fcard:nth-child(n+2) { display: none; } }
/* phones: the Up price is the row's right column (a tap opens the ticket on Up), not an empty chevron column */
@media (max-width: 640px) {
  .tbl.mkt:not(.noud) td.udu, .tbl.mkt:not(.noud) th.udu { display: table-cell; width: 1%; padding-left: 8px; }
  .tbl.mkt:not(.noud) td.udu .udl { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 36px; padding: 0 10px; margin-right: 0; border-radius: 999px; background: #121214; font-weight: 600; text-decoration: none; }
  .tbl.mkt:not(.noud) td.udu .udl::before { content: 'Up\00a0'; font-weight: 500; }
  .tbl.mkt:not(.noud) td.udc { display: none; }
  .star { width: 24px; height: 44px; margin-left: 0; }
  /* both sides on a phone, as on Home (critic r4: only the Up column showed) */
  .tbl.mkt:not(.noud) td.udd, .tbl.mkt:not(.noud) th.udd { display: table-cell; width: 1%; padding-left: 6px; }
  .tbl.mkt:not(.noud) td.udd .udl { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 36px; padding: 0 10px; margin-right: 0; border-radius: 999px; background: #121214; font-weight: 600; text-decoration: none; }
  .tbl.mkt:not(.noud) td.udd .udl::before { content: 'Down\00a0'; font-weight: 500; }
}
/* touch: the Up / Down pills are real 44px taps (critic r4: 66x36) */
@media (pointer: coarse) { .tbl.mkt td.udp .udl { min-height: 44px; height: 44px; } .fc-b .udl.fb { height: 44px; } }
@media (max-width: 380px) { .tbl.mkt:not(.noud) td.udu .udl { min-width: 56px; padding: 0 8px; } .star { display: none; } }

/* touch screens: the star is a 44px tap, its look unchanged (critic r1) */
/* touch: the star a 44px tap in a table row (its icon as it was), the row's name starts after it */
@media (pointer: coarse) { .tbl.mkt .star { width: 44px; height: 44px; margin: 0 -8px 0 -14px; } }
/* small phones: the pill is just the price (the column says "Up · 1 min"), so "Up $0.52" never runs off the screen */
@media (max-width: 420px) { .tbl.mkt:not(.noud) td.udu .udl::before, .tbl.mkt:not(.noud) td.udd .udl::before { content: none; } }
@media (max-width: 380px) { .tbl.mkt:not(.noud) td.udd .udl { min-width: 56px; padding: 0 8px; } }
/* one badge width in Live trades (Bought, Sold, Won, Lost), so the titles line up (critic r2) */
.row .c1 .dchip { min-width: 60px; justify-content: center; box-sizing: border-box; }
/* a narrow tablet column (641-760px): the table drops the sparkline so it fits, never scrolls sideways */
@media (min-width: 641px) and (max-width: 760px) { .tbl.mkt td.skc, .tbl.mkt th.skc { display: none; } }
/* the smallest phones: a market's name wraps rather than cut to "Crud…" (critic r2) */
/* the smallest phones: a market's name wraps between words only, never inside one (critic r3: "Avalan / che"), and the
   panel's inner gutter is smaller there so the name column has the room */
@media (max-width: 380px) { .tbl.mkt .mn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; word-break: normal; hyphens: none; } .tbl.mkt td.r b { font-size: 13px; } .tbl.mkt .mi { width: 20px; height: 20px; font-size: 11px; } .tbl.mkt .mcell { gap: 6px; } .qb, .tbl.mkt .udl { min-width: 0; } }
@media (max-width: 420px) { :root { --pad: 10px; } .tbl.mkt td.pc { padding-left: 4px; } }

/* Live trades: the line under a trade wraps between words and never cuts a price in half (critic r3: "bought at
   $0.…", "ended at $68,1…"); at most two lines */
.row .c2 { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* touch screens of every width: the search box and the column sort buttons are 44px taps */
@media (pointer: coarse) { .msearch { min-height: 44px; } .tbl.mkt .sortb { min-height: 44px; } }

/* the star: an outline when not watched, filled when watched (critic r4: a filled grey star meant "not watched") */
.star svg path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.star { color: #71717a; }
.star.on svg path { fill: currentColor; }
.star.on { color: #f4f4f5; }
/* the category chips: real 44px taps on touch (critic r4: 36px, the scroll row clipping their ::after) */
@media (pointer: coarse) { .mfilt { min-height: 52px; padding-top: 4px; padding-bottom: 4px; } .mfilt .chip { height: 44px; } .mfilt .chip::after { content: none; } }
/* touch: the Markets / Live trades switch, the star and the sort buttons are real 44px taps (critic r4) */
@media (pointer: coarse) { .seg button { height: 44px; } .tbl.mkt .star { width: 44px; min-width: 44px; } .tbl.mkt .sortb { min-width: 44px; } }
@media (pointer: coarse) { .fc-h .star { width: 44px; height: 44px; margin: -10px -12px -10px 0; } }

/* a phone: the column heads are just "Up" and "Down" (the length is in the Featured card), so the table fits at 320 */
@media (max-width: 640px) { .tbl.mkt .thl { display: none; } }

/* ---- round 5: the list is the one market row (dashboard/market-row.css), the tape the one live-trade row ---- */
.tape.ltrs { --mr-pad: var(--pad); }
.mkts .mrows { border-top: 0; }
.mkts .mrow { cursor: pointer; }
.mhead { gap: 12px; }
.mhead .mr-len { margin-left: auto; }
@media (max-width: 640px) { .mhead .mr-len { order: 3; } }

/* ---------- final-pass r5 ---------- */
/* the chip row inside its scroll-arrow wrapper (shell.js edges): no bleed past the wrapper, so the fade ends where the
   arrow starts and no chip shows under it ("Why is the arrow sitting on top of the word?") */
.srow > .mfilt { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.srow > .mfilt::after { content: none; }
.srow > .mfilt.fr::after, .srow > .mfilt.fl::after { content: ""; flex: 0 0 48px; height: 1px; }
.srow:has(> .mfilt) { margin-bottom: 10px; }
.srow > .mfilt { margin-bottom: 0; }
/* the list and the Live trades panel: a real gutter between them, not 12px */
.wrap { column-gap: 32px; }

/* final-pass r5: the view switch is Robinhood's underline tabs, as Portfolio's Running / Finished and Home's categories,
   never a full-width white pill louder than any price ("Why is the biggest thing on the page a white toggle?") */
@media (max-width: 900px) {
  .seg { gap: 24px; padding: 0; border-radius: 0; background: transparent; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .seg button { flex: 0 0 auto; height: 40px; padding: 0; margin-bottom: -1px; border-radius: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ob-label, #8a8d95); font-size: 15px; font-weight: 600; overflow: visible; }
  @media (hover: hover) { .seg button:hover { color: var(--ob-ink-2, #d4d4d8); background: transparent; } }
  .seg button.on { color: var(--ob-ink, #fff); background: transparent; border-bottom-color: var(--ob-ink, #fff); }
@media (hover: hover) { .seg button.on:hover { color: var(--ob-ink, #fff); background: transparent; border-bottom-color: var(--ob-ink, #fff); } }
}
@media (max-width: 900px) and (pointer: coarse) { .seg button { height: 44px; } }
/* round 6: the watch star is a 44x44 tap on every touch size, the glyph small inside it */
@media (pointer: coarse), (max-width: 900px) {
  .mrow .star { width: 44px; height: 44px; margin: 0 -10px; }
  .fc-h .star { width: 44px; height: 44px; margin: -8px -12px -8px 0; }
}

/* ---------- round 6 ---------- */
/* phones and tablets: the Markets / Live trades tabs already say Markets, so the heading under them is for screen
   readers only; "59 markets" stays as small text (critic r6: "Why does it say Markets twice?") */
@media (max-width: 900px) {
  .mhead .ttl { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .mhead .ttl h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mhead .ttl .ob-sub { font-size: 13px; }
}
/* phones: the search and the 5 min / 15 min switch on one row, and the list on the page itself, not in a bordered card */
@media (max-width: 640px) {
  .mhead { flex-wrap: wrap; row-gap: 8px; }
  .mhead .ttl { flex: 1 1 100%; order: 0; }
  .msearch { flex: 1 1 0; width: auto; order: 1; }
  .mhead .mr-len { order: 2; margin-left: 0; }
  .mkts.pane { padding: 4px 0 0; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
}
/* one selected-chip style: a quiet filled pill, never a white slab (critic r6) */
.mfilt .chip.on { color: #fff; background: #26262b; }
@media (hover: hover) { .mfilt .chip.on:hover { color: #fff; background: #26262b; } }
.mfeat .fc-rule { grid-column: 1 / -1; margin: 0 0 -4px; font-size: 12px; color: var(--fg3, #8a8d95); }
@media (max-width: 900px) { .mfeat .fcard:nth-child(n+3) { display: none; } .mfeat .fcard:nth-child(2) { display: flex; } }
.fc-p .pchw { font-size: 13px; color: var(--fg3, #8a8d95); }
/* the change and its window never split ("· 5 / min", 18 Nov): each stays on one line; the row wraps whole pieces */
.fc-p { flex-wrap: wrap; row-gap: 0; }
.fc-p .pch, .fc-p .pchw { white-space: nowrap; }
.fc-p .pchw { margin-left: -6px; }

/* round 7: the featured card's line (feeds/page.js featSparks), in place of the 50/50 odds bar */
.fc-sp { display: block; width: 100%; height: 40px; margin: 2px 0; overflow: visible; }
.fc-sp .ln { fill: none; stroke: var(--fg3, #8a8d95); stroke-width: 1.5; stroke-linejoin: round; }
.fc-sp.up .ln { stroke: var(--ob-up, #2fd27a); } .fc-sp.down .ln { stroke: var(--ob-down, #ff5a4f); }
/* round 7 (critic r1: "Home uses tabs for categories and Markets uses chunky pills for the same thing"): the market types
   are Home's text tabs with the underline (dashboard/home.css .tabs), one control on both pages */
.mfilt { gap: 4px; min-height: 36px; }
.mfilt .chip { height: 36px; padding: 0 10px; border-radius: 0; background: transparent; border-bottom: 2px solid transparent; color: var(--fg3, #8a8d95); font-size: 14px; font-weight: 500; }
@media (hover: hover) { .mfilt .chip:hover { height: 36px; padding: 0 10px; border-radius: 0; background: transparent; border-bottom: 2px solid transparent; color: var(--fg3, #8a8d95); font-size: 14px; font-weight: 500; } }
@media (hover: hover) { .mfilt .chip:hover { color: var(--fg, #f4f4f5); } }
.mfilt .chip.on { background: transparent; color: var(--fg, #f4f4f5); font-weight: 600; border-bottom-color: var(--fg, #f4f4f5); }
@media (hover: hover) { .mfilt .chip.on:hover { background: transparent; color: var(--fg, #f4f4f5); font-weight: 600; border-bottom-color: var(--fg, #f4f4f5); } }
@media (pointer: coarse) { .mfilt .chip { height: 44px; }
@media (hover: hover) { .mfilt .chip:hover { height: 44px; } } }
/* round 7 (critic r1: "I opened Markets on my phone sideways and there isn't a single market on screen"): on a short or
   narrow screen the count, length and search row and the type tabs sit tight, and the "Most traded" caption steps out
   (the cards' order is in their tooltip), so the first market is in the first view */
@media (max-height: 500px), (max-width: 900px) {
  .mkts.pane { padding-top: 6px; }
  .mhead { margin-bottom: 0; }
  .srow { margin-top: 4px; }
  .mfeat .fc-rule { display: none; }
  .mfeat { margin-top: 2px; }
}
@media (max-height: 500px) {
  #mseg { margin-bottom: 0; }
  .maincol { margin-top: 4px; }
  .msearch { height: 36px; }
  .mhead .mr-len button { height: 44px; }
  .mfeat:not([hidden]) { display: none; } /* a phone on its side: the list's rows (each with Up / Down) start in the first view */
}

/* ---------- round 8 ---------- */
/* Live trades: every row one meta line, as Home's rail ("10:39:13 AM · Trader C02E · ended $67,739.50"), cut with an
   ellipsis at the row's edge, never a third line (critic r8); the rail fades at its foot so no half row reads as broken */
.tape .ltr .c2 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; }
.tape .ltr .c1 { min-width: 0; }
.tape .ltr .c1 .nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) { .tapein .tape { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); padding-bottom: 24px; } }
/* a laptop (1024-1280px): the Live trades rail stays beside the list, as on Home, so a row never stretches into a hole
   between the name and Up / Down (critic r8) */
@media (min-width: 1024px) and (max-width: 1280px) {
  .wrap { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "head head" "main tape"; column-gap: 24px; }
  .tapecol { position: sticky; }
  .tapein { height: calc(100vh - var(--hdr, 64px) - 2 * var(--gap)); max-height: calc(100vh - var(--hdr, 64px) - 2 * var(--gap)); }
  .tapein .tape { flex: 1 1 auto; max-height: none; }
  .mfeat .fcard:nth-child(3) { display: none; }
  .mfeat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* a short screen (a phone on its side): the count steps out, the length switch and search share one row with no
   heading under the tabs, so whole markets are in the first view (critic r8: half of one row showed) */
@media (max-height: 500px) {
  .mhead .ttl { display: none; }
  .mhead { flex-wrap: nowrap; gap: 8px; }
  .msearch { flex: 1 1 0; width: auto; min-width: 0; }
  .mlist > .mgrp:first-child, .mlist > .mrhead + .mgrp { display: none; }
  #mseg button { height: 44px; }
  .srow { margin-top: 0; }
}
/* the smallest phones: the search reads "Search", never a word cut in half (critic r8) */
/* the Most traded cards' Up / Down: the site's one tinted button, the label left and the price right, as every market row
   and the Trade card (critic r8: flat dark pills with centred text) */
.fc-b .udl.fb { justify-content: space-between; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.fc-b .udl.fb.up { background: var(--ob-up-bg, rgba(31, 209, 112, 0.12)); color: var(--ob-up, #1fd170); }
.fc-b .udl.fb.down { background: var(--ob-down-bg, rgba(255, 77, 90, 0.12)); color: var(--ob-down, #ff4d5a); }
@media (hover: hover) { .fc-b .udl.fb.up:hover { background: rgba(31, 209, 112, 0.2); } } @media (hover: hover) { .fc-b .udl.fb.down:hover { background: rgba(255, 77, 90, 0.2); } }
.fc-b .udl.fb > span, .fc-b .udl.fb > b { font-weight: 600; white-space: nowrap; }
@media (pointer: coarse), (max-width: 1024px) { .fc-b .udl.fb { height: 44px; } }
@media (pointer: coarse), (max-width: 1024px), (max-height: 500px) { .mfilt .chip { min-width: 44px; justify-content: center; } }

/* ---------- round 9 ---------- */
/* Live trades: never an ellipsis on a price or a trade name at any width (1024: "ended $..." and "Bitcoin Down · 1 ..."
   were cut). The name wraps between words before anything is cut ("1 min" stays together); the meta line is one line
   whose last pieces (the end price, the fill price, "sold before the end") step out whole when they do not fit: each is
   one unbreakable box, and a box that wraps lands on a second line the row does not show. The row's hover keeps them. */
.tape .ltr .c1 .nm { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; }
.tape .ltr .c2 { display: block; white-space: normal; height: 18px; overflow: hidden; text-overflow: clip; }
.tape .ltr .c2 .t, .tape .ltr .c2 .wn { white-space: nowrap; }
.tape .ltr .c2 .fin, .tape .ltr .c2 .at { display: inline-block; white-space: nowrap; }
.tape .ltr .rt { white-space: nowrap; }
/* the 1 / 5 / 15 min switch is wider than the old two (round 9): "59 markets" stays on one line beside the heading; the
   search gives up the width */
.mhead .ttl, .mhead .ttl .ob-sub { white-space: nowrap; }
@media (min-width: 641px) { .mhead .ttl { flex: none; } } /* a phone keeps the count on its own row above the search */
/* a phone: the count and the 1 / 5 / 15 min switch share the top row, the search takes the full width under them, so
   its placeholder is never cut by the wider switch (round 9) */
@media (max-width: 640px) {
  .mhead .ttl { flex: 1 1 auto; order: 0; }
  .mhead .mr-len { order: 1; margin-left: auto; }
  .msearch { flex: 1 1 100%; order: 2; }
}

/* ---------- round 9: the 1-tap switch on Markets (critic r9: 1-tap placed trades here with no switch on the page) ----------
   Home's switch (dashboard/home.css .sw / .ot-amt), the same look: a track and knob, then the amount per tap */
.mot { position: relative; display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; }
.mot[hidden] { display: none; }
.mhead .mot + .mr-len { margin-left: 0; }
.mot-sw { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 6px; border: 0; border-radius: 999px; background: transparent; color: #b3b5bb; font: 600 13px/1 var(--ob-sans, inherit); cursor: pointer; white-space: nowrap; }
@media (hover: hover) { .mot-sw:hover { color: #f4f4f5; background: #111113; } }
.mot-t { position: relative; width: 32px; height: 18px; border-radius: 999px; background: #19191c; transition: background-color 160ms; }
.mot-k { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 999px; background: #b3b5bb; transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 160ms; }
.mot-sw[aria-checked="true"] { color: #f4f4f5; }
.mot-sw[aria-checked="true"] .mot-t { background: var(--ob-up, #1fd170); }
.mot-sw[aria-checked="true"] .mot-k { transform: translateX(14px); background: #000; }
.mot-amt { height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: #111113; color: #f4f4f5; font: 600 13px/1 var(--ob-sans, inherit); cursor: pointer; white-space: nowrap; }
.mot-amt::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border-right: 1.5px solid #8a8d95; border-bottom: 1.5px solid #8a8d95; transform: rotate(45deg); }
@media (hover: hover) { .mot-amt:hover { background: #19191c; } }
.mot-sw:focus-visible, .mot-amt:focus-visible { outline: 2px solid rgba(244, 244, 245, 0.75); outline-offset: 2px; }
.mot-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 140px; padding: 6px; border-radius: 12px; background: #111113; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }
.mot-menu[hidden] { display: none; }
.mot-menu p { margin: 4px 8px 6px; font-size: 12px; color: #8a8d95; }
.mot-menu button { display: flex; width: 100%; justify-content: space-between; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #b3b5bb; font: 500 14px/34px var(--ob-sans, inherit); cursor: pointer; text-align: left; }
@media (hover: hover) { .mot-menu button:hover { background: #19191c; color: #f4f4f5; } }
.mot-menu button.on { color: #f4f4f5; font-weight: 600; }
.mot-menu button.on::after { content: "\2713"; color: var(--ob-up, #1fd170); }
@media (pointer: coarse), (max-width: 1024px), (max-height: 500px) { .mot-sw, .mot-amt { height: 44px; } .mot-menu button { height: 44px; line-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .mot-t, .mot-k { transition: none; } }
/* phones: its own line under the search and the length switch, at the left, right above the rows it acts on */
@media (max-width: 640px) {
  .mhead .mot { order: 3; flex: 1 1 100%; margin-left: 0; }
  .mot-sw { padding-left: 0; }
  .mot-menu { left: 0; right: auto; }
}
.mot .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* round 9 (critic r9: "Up$0.514" with no space on the three Most traded cards): the two buttons share the card's width
   by what they hold, each with a real gap between the word and the price */
.fc-b { display: flex; gap: 8px; }
.fc-b .udl.fb { flex: 1 1 auto; min-width: 0; gap: 8px; }
@media (min-width: 1281px) { .fc-b .udl.fb { padding: 0 10px; font-size: 13px; gap: 6px; } }
body.ot-on .fc-b .udl.fb { gap: 3px; }
/* round 9 (critic r9: "Private c" cut under the arrow at 1440): with a mouse the type row fades out before the arrow and
   is clear under it, as Home's row (nav.css .srow-el); the 48px fades above stay for touch, which has no arrow */
@media (hover: hover) and (pointer: fine) {
  .srow > .mfilt.fr { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 96px), transparent calc(100% - 40px)); mask-image: linear-gradient(to right, #000 calc(100% - 96px), transparent calc(100% - 40px)); }
  .srow > .mfilt.fl { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 96px), transparent calc(100% - 40px)); mask-image: linear-gradient(to left, #000 calc(100% - 96px), transparent calc(100% - 40px)); }
  .srow > .mfilt.fl.fr { -webkit-mask-image: linear-gradient(to right, transparent 40px, #000 96px, #000 calc(100% - 96px), transparent calc(100% - 40px)); mask-image: linear-gradient(to right, transparent 40px, #000 96px, #000 calc(100% - 96px), transparent calc(100% - 40px)); }
}
/* round 10: on a desktop every category tab shows (a second row if it must), never "Private c…" and an arrow beside
   1,000px of empty margin (critic r9 at 1440, 1920 and 2560); a phone keeps the one scrolling row */
@media (min-width: 1100px) and (pointer: fine) { .mfilt { flex-wrap: wrap; overflow: visible; row-gap: 4px; -webkit-mask-image: none; mask-image: none; } .mfilt::after { display: none; } }
/* round 11 (critic r9: a lone "5" over the switch, and five rows of controls before the first market on a phone): a phone
   drops the count (the list's group headings say what is there) and puts 1-tap, its amount and the 1 / 5 / 15 min switch
   on one row, the search under it: two rows of controls over the categories, never four */
@media (max-width: 640px) {
  .mhead .ttl { display: none; }
  .mhead { flex-wrap: wrap; column-gap: 8px; row-gap: 8px; }
  .mhead .mot { order: 1; flex: 0 0 auto; margin-left: 0; }
  .mhead .mr-len, .mhead .mot + .mr-len { order: 2; margin-left: auto; }
  .msearch { order: 3; flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .mot-sw { gap: 6px; padding-right: 6px; }
  .mot-amt { padding: 0 8px; }
  .mhead .mr-len button { min-width: 44px; padding: 0 6px; }
  .mhead { column-gap: 4px; }
  .mhead .mot { gap: 2px; }
}
/* round 12 (final-pass r9 critic: a lone "5" at the left of the controls on a tablet, the title clipped from 660 to
   900px): wherever the Markets / Live trades tabs show, the tab is the title, so the heading and its count step out
   together, as on a phone, and the controls start the row */
@media (max-width: 900px) {
  .mhead .ttl { display: none; }
  .mhead .mot { margin-left: 0; }
  .mot-menu { left: 0; right: auto; } /* r24 phone pass: the controls start the row here, so the menu opens rightward (it ran 6px off the screen's left edge at 641-900px) */
}
/* round 12 (critic: at 1440-2560 the Live trades card ran twice the height of the five markets, so the hero of
   Markets was a log): on a wide screen the tape is a quiet column of the 8 newest trades under a small heading, with
   See all; the list leads. See all lets it scroll inside the rail. */
@media (min-width: 901px) {
  .tapein, .tapein .tape { height: auto !important; }
  .tapein { max-height: none; }
  .tapecol:not(.all) .tape > :nth-child(n+9 of :not(.vtail)) { display: none; }
  .tapecol:not(.all) .tapein .tape { -webkit-mask-image: none; mask-image: none; padding-bottom: 0; }
  .tapecol.all .tapein { max-height: calc(100vh - var(--hdr, 64px) - 2 * var(--gap)); }
  .tapecol.all .tapein .tape { flex: 1 1 auto; }
  .more.tmore { display: flex; }
  .more.tmore[hidden] { display: none; }
  .tapeh { padding-top: 16px; }
  .tapeh #htape { font-size: 15px; font-weight: 600; color: var(--fg2, #b3b5bb); }
  .tapecol .tapein.ob-panel { background: transparent; border-color: transparent; box-shadow: none; }
}

/* the 1-tap switch is cyan blue when on (vihan, 18 Nov), so it never reads as an Up/P&L green */
.mot-sw[aria-checked="true"] .mot-t { background: var(--ob-onetap, #22b8f0); }

/* the search box: a magnifier at its start and one quiet clear (x) at its end once there is text, the same on every
   browser that draws one (UX-50: Chrome's default blue x, none on iOS) */
.msearch { padding-left: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.5' fill='none' stroke='%238b8b94' stroke-width='1.6'/%3E%3Cpath d='M10.5 10.5 14 14' stroke='%238b8b94' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 14px 50%; background-size: 16px 16px; }
.msearch::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-right: -4px; border-radius: 50%; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%2352525b'/%3E%3Cpath d='M6 6l6 6M12 6l-6 6' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat; }
/* nothing matches: what was searched, then the ways out as plain text buttons */
.mempty { padding: 24px 0 8px; }
.mempty .empty { margin: 0; }
.mempty-a { margin: 8px 0 0; font-size: 14px; color: var(--fg3); }
.mempty-b { display: inline; padding: 0; border: 0; background: none; color: var(--fg); font: inherit; font-weight: 510; text-decoration: none; cursor: pointer; }
@media (hover: hover) { .mempty-b:hover { color: #fff; text-decoration: none; opacity: 0.85; } }
@media (pointer: coarse) { .mempty-b { display: inline-flex; align-items: center; min-height: 44px; } }
/* final pass r9 (critic: "at this width the whole market list is suddenly inside a big rounded box", 641-760px): the list
   sits flat on the page at every width, as at 390, 768 and 1440 */
.mkts.pane { border: 0; background: transparent; box-shadow: none; border-radius: 0; padding-left: 0; padding-right: 0; }
