/* ironline-mobile.css — the member dashboard on phones.

   Owner rule (Tasha, Sept 28 2026): nothing about the dashboard may change visually or functionally
   in order for it to work on phones. So EVERY rule in this file sits inside the phone-only
   blocks below (screens narrower than 768px), and the tablet blocks at the end (768px to 1180px, and
   blocks from 1181px for fixes just past it, to 1439px at most); from 1440px wide this file matches nothing (bar the
   short-screen block below, under 521px tall).
   No markup, script, wording, data or behaviour changes here: only how the existing parts are
   laid out on a phone screen. Proof on every change: with this sheet on vs off, every element's
   computed style is identical at 1280, 1440 and 1920px (scratchpad mobile_check).

   The pages are built with inline styles, so these rules use !important to reach them.

   Short screens (second check, Nov 1 2026): one more block, for screens under 521px tall (phones held sideways), keeps
   the Journal's dialogs below the sticky nav, as the phone block does; it matches nothing else. It and the blocks
   past the tablet range (to 1439px at most) are the only rules that can match a window wider than 1279px; the
   short-screen block only when it is under 521px tall.

   Tablets (Tasha, Nov 1 2026: "yes=fix the tablet layout"; held sideways too: "yes"): the blocks after the phone
   blocks apply only from 768px to 1180px (iPad portrait and landscape; small laptops of those widths too), where the
   desktop layout was wider than the screen (the page scrolled sideways) or parts overlapped. They give each Research
   card the full width, stack the company card and Quick Glance, space the section tabs and let crowded rows wrap; what
   is inside each card keeps its desktop layout. Market's Signal Watch groups stack, and Settings' top menu wraps with
   its clock showing the time only ("fix Market and Settings too   only if this applys to tablets only"). Two narrower
   blocks inside that range: 768-959px (upright tablets) and 768-1079px. The tidy-up of labels cut off at tablet widths
   on member and demo pages ("yes to 2 and 3") is in the same blocks.
   Just past the tablet range (Tasha, Nov 1 2026: "yes to 2 and 3"): one last block, 1181px to 1279px only, fixes
   Settings' top menu and Market's Signal Watch there. Then "fix 1-3" (Tasha, Nov 2 2026): Watchlist in that same
   1181-1279px block, and three more blocks, 1181-1439px (Market card titles, Community's next-rank steps),
   1181-1239px and 1181-1229px (two Market cards). Nothing under 768px and nothing from 1440px matches any of these
   blocks. Proof: every element's computed layout identical with and without the changes at 360, 767, 1440 and 1600px.
   One more tablet block, 768px to 1180px only (Tasha, Nov 9 2026: "Yes, tablets too", then "Yes, to 1180px"): the
   Journal Reports score cards' verdict words wrap, as on phones; it sits just before the tablet blocks.
   Journal text fit at 360px and up (Tasha, Nov 11 2026, Q1 "Fix before launch"; audit F-tf10-01..06): rules in the phone
   block, and five blocks just before the 1181-1279px block (under 481px, 768-1279px, 768-1080px, 768-900px and
   768-799px); none matches from 1280px.
   One block under 375px, just after the under-360px block (T-119, second check of app #1523, Nov 12 2026): the Journal
   review's PLAN VS ACTUAL headings a step smaller and its columns, so they stay inside their cells at 320-374px; and one
   under 340px after it (T-311, Nov 13 2026), the same table's figures a step smaller. */

@media (max-width: 767px) {
  /* Journal · Rules Simulator · BUILD A RULE on phones (T-1395, T-219 fourth pass, Nov 24 2026): the builder and its
     explanation sit side by side; under 768px the builder's column was 50-84px wide inside, so its WHICH TRADES field,
     comparison and value ran 56-90px past it, under the explanation, and the field read "Risk per tra". On phones the two
     stack, as the page's other two-column grids do; 768px and up unchanged. Member and demo. */
  [style^="display: grid; grid-template-columns: minmax(0px, 1fr) minmax(0px, 1.1fr); gap: 14px"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* Journal › Reviews › Rules Simulator, the section headings (Your Live Rules, Recommended Rules, Rules Library, Results &
     Equity Curve) on phones (T-1291, Nov 22 2026; FAILURE-CHECKLIST 9.10/9.11): each heading block keeps a 280 px minimum
     so it wraps under the section's chevron on a wide card, but a phone's card is narrower inside (227 px at 320 px), so the
     heading ran 36 px past its card and the page scrolled 15 px sideways while the section was open (seen on loaded CI
     runners as the Journal drew, CI test journal-review-tags-landing-t653). The minimum is now never wider than the card;
     where the card is wider than 280 px nothing changes. */
  [style*="min-width: 280px; flex: 1 1 0%"] { min-width: min(280px, 100%) !important; }

  /* ---- ATTACH SCREENSHOT window (Journal, member and demo; Tasha, Nov 10 2026, Preview A: "Approve + wrap tools
     (Recommended)" — "make the phone tool row wrap onto two lines so nothing scrolls sideways"): the drawing tools
     wrap, a little tighter, so the row is two lines inside the window. Desktop unchanged (this block is phones only). ---- */
  [data-shot-tools] { flex-wrap: wrap !important; gap: 6px 4px !important; }
  [data-shot-tools] [data-shot-btn] { padding-left: 5px !important; padding-right: 5px !important; }
  [data-shot-tools] select { padding: 4px 15px 4px 6px !important; font-size: 11.5px !important; background-position: right 4px center !important; }

  /* ---- page edges: the desktop 48px side padding leaves too little room on a phone ---- */
  body { padding: 10px 8px !important; min-width: 0 !important; }

  /* ---- top navigation (the same markup on every member page) ----
     row 1: logo, clock and the round buttons; row 2: every page link in one row that swipes
     sideways. Nothing is hidden and every link works as it does on desktop. */
  nav.ilprodnav { flex-wrap: wrap !important; gap: 8px 6px !important; padding: 8px 8px !important; }
  nav.ilprodnav > span:nth-child(1) { order: 1; }
  nav.ilprodnav > span:nth-child(2) { order: 2; }
  nav.ilprodnav > span:nth-child(n+4) { order: 3; }
  nav.ilprodnav > span:nth-child(4) { margin-left: auto !important; }
  nav.ilprodnav > span:nth-child(3) {
    order: 4; flex: 1 0 100% !important; justify-content: flex-start !important; flex-wrap: nowrap !important;
    overflow-x: auto !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
  }
  nav.ilprodnav > span:nth-child(3)::-webkit-scrollbar { display: none; }
  nav.ilprodnav > span:nth-child(3) > * { flex: 0 0 auto !important; }

  /* ---- the page and account settings panels (372px wide on desktop): the screen's width less 8px each side ---- */
  /* (and the Community page's own gear panel, the same 372px: it ran 74px off the left edge at 320px; T-440 follow-up) */
  /* (and the Journal page's own gear panel, the same 372px: it ran 89px off the left edge at 320px; found Nov 23 2026) */
  #il-navset-page, #il-navset-acct, #il-community-pageset, #il-journal-pageset { left: 8px !important; right: 8px !important; width: auto !important; }
  /* its footer: the UNDO button keeps its whole label and the account hint moves under it when they don't fit side by
     side (at 320px the hint squeezed UNDO to "N…"; second check of #1879) */
  #il-community-pageset [data-il-pageset-foot] { flex-wrap: wrap !important; row-gap: 6px !important; }
  #il-community-pageset [data-il-pageset-foot] > span:first-child { max-width: 100% !important; overflow: visible !important; text-overflow: clip !important; }

  /* ---- the page's cards: keep the look, give the content the width ---- */
  #dc-root > .sc-host > div > * { padding-left: 12px !important; padding-right: 12px !important; }

  /* ---- rows of many equal tiles (e.g. the Action Center's 8 counts): 4 to a row ---- */
  [style*="grid-template-columns: repeat(5,"], [style*="grid-template-columns: repeat(6,"],
  [style*="grid-template-columns: repeat(7,"], [style*="grid-template-columns: repeat(8,"],
  [style*="grid-template-columns: repeat(9,"], [style*="grid-template-columns: repeat(10,"],
  [style*="grid-template-columns: repeat(12,"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  /* the Action Center count tiles: smaller label so each page name fits its tile */
  [style*="grid-template-columns: repeat(8,"] { gap: 6px !important; }
  [style*="grid-template-columns: repeat(8,"] > a { padding: 9px 6px 10px !important; }
  [style*="grid-template-columns: repeat(8,"] > a > div:first-child { font-size: 10px !important; letter-spacing: 0 !important; height: 26px !important; }

  /* the "refresh cadence" line beside the header's Refresh button may wrap */
  #ilFreshCad { white-space: normal !important; min-width: 0; flex: 1 1 auto; text-align: right; }

  /* ================= Trades ================= */
  /* Trades · Compact rows (≡; T-1385, fixer-3's finding on #2741): a compact row (Open Trades and Planned Trades) and its
     R / P&L / PLAN → group carry onto further lines, with the row's own gap between lines, from the first frame. They
     were one line until ironline-nav-fit.js wrapped them, so just after ≡ every row ran 300-500px past its edge and the
     page scrolled 677-747px sideways at 320-390px for up to about 1s on a slow phone. This is the same wrapping the fitter
     ends up applying (flex-wrap and a row gap equal to the column gap), so the settled rows look as before. Phones only;
     768px and up unchanged. Member and demo. */
  [data-il-trade][style^="display: flex; align-items: center; gap: 12px;"] { flex-wrap: wrap !important; row-gap: 12px !important; }
  [data-il-trade][style^="display: flex; align-items: center; gap: 12px;"] > [style^="display: flex; align-items: center; gap: 10px"] { flex-wrap: wrap !important; row-gap: 10px !important; }
  /* Trades · a saved plan's "PLAN OLDER THAN YOUR LIMIT — saved N trading days ago, past your Plan older than setting of
     N trading days …" strip (T-1372; T-1248 / T-1355 wording): on phones its sentence takes the strip's whole width and
     UPDATE / DELETE move under it, at the right, instead of the sentence being squeezed into the space left of the two
     buttons (69px wide and 16 lines tall at 320px on the demo). 768px and up unchanged. Member and demo. */
  [data-il-stale-strip] { flex-wrap: wrap; row-gap: 6px; }
  [data-il-stale-strip] > :first-child { flex: 1 1 100% !important; min-width: 0; }
  [data-il-stale-strip] > :nth-child(2) { margin-left: auto; }
  /* order log (5 fixed columns): the table swipes sideways inside its box, every column intact */
  :has(> [style*="grid-template-columns: 112px"]) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  [style*="grid-template-columns: 112px"] { min-width: 560px; }
  /* Trades · order log on phones (audit F-acct35-b4-14, Nov 10 2026): each order is two lines inside the card instead of
     a table swiping past the screen (PRICE was cut mid-figure, STATUS and SOURCE off the card): the order's name and size
     on the first line, its price, status and source on the second. Phones only; wider screens keep the one-line table. */
  [style*="grid-template-columns: 112px minmax(0px, 1fr) 92px 78px 104px"] { min-width: 0 !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; row-gap: 3px !important; }
  [style*="grid-template-columns: 112px minmax(0px, 1fr) 92px 78px 104px"] > :nth-child(2) { grid-column: 2 / -1; text-align: right; }
  [style*="grid-template-columns: 112px minmax(0px, 1fr) 92px 78px 104px"] > :nth-child(3) { text-align: left !important; }
  [style*="grid-template-columns: 112px minmax(0px, 1fr) 92px 78px 104px"] > :nth-child(4) { transform: none !important; justify-self: center !important; }
  [style*="grid-template-columns: 112px minmax(0px, 1fr) 92px 78px 104px"] > :nth-child(5) { text-align: right; }
  /* Trades · an open trade's card line, "N shares · held N trading days · time stop in N trading days" beside its setup
     (T-1378, with the T-1248 "trading days" wording): on phones, when the sentence and the setup don't fit side by side,
     the setup moves under the sentence, at the right (its own margin-left:auto), and the sentence takes the line's whole
     width, instead of being squeezed into the space left of the setup (QVEK's was 58px wide at 320px on the demo, 4 lines
     before the wording and 8 after). When both fit on one line they stay side by side. The same idea as the stale-plan
     strip (T-1372, data-il-stale-strip). The line's own gap:10px would also set 10px between the two rows, hence the
     row-gap. 768px and up unchanged. Member and demo. */
  [data-il-trade-meta] { flex-wrap: wrap; row-gap: 2px !important; }
  [data-il-trade-meta] > :first-child { flex: 1 1 auto; min-width: 0; }
  /* "Watch for" / "Keep doing": label, title and figure on one row, the message full width beneath */
  a[href$="#sec-focus"] { flex-wrap: wrap !important; row-gap: 4px !important; padding: 9px 11px !important; }
  a[href$="#sec-focus"] > span:nth-child(3) { order: 5; flex: 1 0 100% !important; }
  /* each card's 5 stat boxes (Open R, Risk left, Plan, Rules, Ladder): tighter so every label and value fits */
  [style*="160deg"][style*="min-height: 44px"] { padding: 6px 5px !important; }
  [style*="160deg"][style*="min-height: 44px"] > :first-child { font-size: 9.5px !important; letter-spacing: 0.2px !important; }
  [style*="160deg"][style*="min-height: 44px"] > :nth-child(2) { font-size: 12px !important; }
  [title="Price ladder from the trade plan"] { flex: 0 0 58px !important; }
  /* LADDER panel rungs (tag, price, role, note, confluences in five columns on desktop): on a phone the note drops to
     its own line under the rung's label and runs the width of the price, role and count columns, so the plan's
     STOP ↑ and TP1 notes read in full instead of in a one-word column cut off at the edge (trades cards check, round 4) */
  [style*="grid-template-columns: 56px 108px 104px 1fr 72px"] { grid-template-columns: 56px minmax(0, 1fr) 72px !important; row-gap: 2px !important; }
  [style*="grid-template-columns: 56px 108px 104px 1fr 72px"] > :nth-child(1) { grid-column: 1; grid-row: 1; }
  [style*="grid-template-columns: 56px 108px 104px 1fr 72px"] > :nth-child(2) { grid-column: 2; grid-row: 1; }
  [style*="grid-template-columns: 56px 108px 104px 1fr 72px"] > :nth-child(3) { grid-column: 2; grid-row: 2; }
  [style*="grid-template-columns: 56px 108px 104px 1fr 72px"] > :nth-child(4) { grid-column: 2 / -1; grid-row: 3; }
  [style*="grid-template-columns: 56px 108px 104px 1fr 72px"] > :nth-child(5) { grid-column: 3; grid-row: 1 / span 2; }
  /* card header: the Long / Swing chips sit after the ticker instead of centred, clear of the P&L figure */
  [style*="flex-wrap: wrap"][style*="padding: 10px 12px"] > span[style*="left: 50%"] { position: static !important; transform: none !important; }
  /* open and planned trade cards: one to a row */
  [style*="grid-template-columns: repeat(2,"][style*="gap: 18px 20px"] { grid-template-columns: minmax(0, 1fr) !important; }

  /* ================= Market Dashboard ================= */
  /* index strip (4 index funds + the VIX): two to a row, the VIX across the full width */
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .overview > :last-child { grid-column: 1 / -1; }
  .overview .index-card { border-bottom: 1px solid var(--line-soft); min-height: 150px; }
  /* card headers: the tools (Filter, Sort, Academy, bell) drop to their own line under the title */
  .card-header { flex-wrap: wrap !important; }
  .card-header .right { flex: 1 0 100% !important; justify-content: flex-start !important; align-self: auto !important;
    grid-column: 1 / -1 !important; grid-row: 3 !important; justify-self: start !important; margin-top: 6px !important; }
  /* Gap Up / Gap Down: the two lists one under the other, so each headline has room */
  .gap-cols { grid-template-columns: minmax(0, 1fr) !important; row-gap: 14px !important; }
  /* Volatility Monitor columns and the sector grid */
  .vol-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .sector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  /* Market Overview title row: the Today / 1W / 1M tabs and Academy wrap under the title */
  .section-titlebar { flex-wrap: wrap !important; row-gap: 8px !important; }
  .section-titlebar .il-overview-tools { flex-wrap: wrap !important; }
  /* Signal Watch: the three signal groups one under another */
  .signal-grid { grid-template-columns: minmax(0, 1fr) !important; }
  /* Short interest / borrow tiles: two to a row */
  .short-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* five-day radar rings: tighter spacing so the five days fit */
  .radar-rings { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 6px !important; }
  /* catalyst radar: each day's events on its own full-width row (the five day circles above stay as a summary) */
  .radar-days { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  /* card footers ("Source … · View All →") may wrap */
  .card-foot { flex-wrap: wrap !important; row-gap: 4px !important; }
  .card-foot.il-foot-stack { grid-template-columns: minmax(0, 1fr) auto !important; }
  .card-foot.il-foot-stack > * { min-width: 0; white-space: normal !important; }
  /* wide tables keep every column and swipe sideways: Movers Now, and Picks That Fit Your Edge
     (its heading row and its scrolling rows move together) */
  .il-mn-row { min-width: 590px; }
  #edgeScans :has(> .pkhead) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  #edgeScans :has(> .pkhead) > * { min-width: 540px; }

  /* ================= Research / Watchlist section menu ================= */
  /* the section tabs (Overview, Factor Analysis …) swipe sideways, each with room around its label */
  .sidenav { overflow-x: auto !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sidenav::-webkit-scrollbar { display: none; }
  .sidenav a { flex: 0 0 auto !important; padding: 10px 14px !important; }

  /* page headers: the refresh button and the cadence line may sit on two lines */
  :has(> span > #ilFreshBtn) { flex-wrap: wrap !important; row-gap: 6px !important; }
  span:has(> #ilFreshCad) { flex: 1 1 100% !important; flex-wrap: wrap !important; white-space: normal !important; min-width: 0 !important; justify-content: flex-end; }
  span:has(> #ilFreshCad) > span { white-space: normal !important; margin-left: 0 !important; }

  /* status boxes at the end of a header row (e.g. "Streak · Fresh start") stay inside the screen */
  [style^="margin-left: auto; display: flex; align-items: center; background: linear-gradient"] { flex-wrap: wrap !important; max-width: 100% !important; row-gap: 4px !important; }

  /* ================= Academy ================= */
  /* the header's stats line ("243 hr 36 min of guided lessons …") wraps */
  [style^="display: flex; align-items: center; gap: 16px; font-size: 11px; color: rgb(139, 157, 184);"] { flex-wrap: wrap !important; row-gap: 6px !important; }
  [style^="display: flex; align-items: center; gap: 16px; font-size: 11px; color: rgb(139, 157, 184);"] > span { white-space: normal !important; min-width: 0 !important; }
  /* "Recommended by your journal" (ironline-academy-settings.js): each lesson row keeps its title beside the mistake and
     OPEN → only while the title has at least 200px; narrower, those two move to a line under the title (OPEN → at the
     right edge, as on desktop), so the title keeps the row's width. The title's lines, and the mistake line's when a
     long tag wraps on a small phone, are balanced so no word sits alone (audit F-demo-academy-03, Nov 10 2026: at
     390px the title was squeezed to one word per line). Phones only. */
  #il-academy-recommended [data-il-rec] { flex-wrap: wrap !important; row-gap: 6px !important; }
  #il-academy-recommended [data-il-rec] > span:first-child { flex: 1 1 200px !important; text-wrap: balance; }
  #il-academy-recommended [data-il-rec] > span:last-child { margin-left: auto !important; }
  #il-academy-recommended [data-il-rec] > span:nth-child(2) { text-wrap: balance; }
  /* the Academy page itself, the same phone layout the demo's Academy already has (_demo-mobile.css); text inside its border
     (Tasha, Nov 4 2026: "I want all this fixed"). The paper panel gets phone margins; the wide blocks (Where you are, Since
     you started) may shrink and take the full width; the START HERE card puts its counts under the text; each section row
     keeps its code and title on the first line and its course count and progress under them. Matches the Academy only. */
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] { padding: 18px 12px 24px !important; }
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] [style*="min-width: 420px"],
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] [style*="min-width: 300px"] { min-width: 0 !important; }
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] [style*="min-width: 420px"],
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] [style^="flex: 0 0 306px"] { flex: 1 1 100% !important; }
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] [style^="position: relative; flex: 1 1 0%; min-width: 300px;"] { flex: 1 1 100% !important; }
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] [style^="display: flex; gap: 0px; background: rgb(253, 250, 243)"] { flex-direction: column !important; }
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] [style^="display: flex; gap: 0px; background: rgb(253, 250, 243)"] > [style^="flex: 0 0 176px"] { flex: 1 1 auto !important; border-left: 0 !important; border-top: 1px solid rgba(154, 116, 42, .25) !important; }
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] button[style^="display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;"] { flex-wrap: wrap !important; row-gap: 8px !important; padding: 12px 12px !important; }
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] button[style^="display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;"] > span:nth-child(2) { flex: 1 1 calc(100% - 92px) !important; }
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] button[style^="display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;"] > span:nth-child(3) { flex: 1 1 auto !important; }

  /* Trades · Armed alerts (Nov 4 2026, text inside its border): the seven-column rows swipe sideways inside their list,
     every column intact, each row wide enough for all its columns (as on the demo) */
  [style^="display: flex; flex-direction: column; gap: 6px;"]:has(> div > [style^="display: grid; grid-template-columns: 96px minmax(190px, 1fr) 108px"]) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  [style^="display: grid; grid-template-columns: 96px minmax(190px, 1fr) 108px"] { min-width: 1032px; }

  /* Community: Live now and Following one above the other, each the full width, as on the demo (side by side on a phone,
     Following took the whole width and Live now was squeezed to nothing; Nov 4 2026, text inside its border) */
  [style^="display: grid; grid-template-columns: minmax(0px, 1fr) minmax(0px, 400px)"] { grid-template-columns: minmax(0, 1fr) !important; }

  /* ================= The demo's phone layouts, on the member pages too (Nov 4 2026) =================
     Tasha: "I want all this fixed" (text inside its border). These layouts show on the member pages only with a member's own
     data, so they had phone fixes on the demo (_demo-mobile.css) but not here: with real data the member rows ran past
     their boxes or were squeezed. The same rules as the demo's, so member and demo match on phones. */
  /* ---- Action Center (Home and Journal): each group's label tile sits above its rows (the demo opens
     every group; side by side, the 214px / 192px tile left the rows too little room to read) ---- */
  [style="display: flex; align-items: stretch; gap: 8px;"]:has(> [style^="display: flex; align-items: center; gap: 9px; width: "]) { flex-direction: column !important; gap: 4px !important; }
  [style="display: flex; align-items: stretch; gap: 8px;"] > [style^="display: flex; align-items: center; gap: 9px; width: "] { width: auto !important; min-width: 0 !important; }
  /* ---- Action Center on Market, Watchlist, Research and Trades (ironline-notifications.js; audit F-acct35-d-alerts-01,
     Nov 10 2026): the same layout as the Home rule above. That module writes its rows as text ("width:214px", no space),
     so the rule above, which reads the page's own style attributes ("width: 214px"), never matched it: the 214px tile
     stayed beside the rows and each alert's words were squeezed to nothing. Here the tile sits above its rows, the group's
     heading keeps its arrow and words on one line with the source under them, and each row's time goes under
     its words. Each row starts with its tick box (Select all and Delete selected, as on Home; Tasha, Nov 12 2026): the
     box, dot, ticker and arrow share the first line, the words take the full width under the ticker (beside it they got
     about 81px at 360px), and the time goes under the words. ---- */
  #ilActionCenter div:has(> [data-il-cat][style*="width:214px"]) { flex-direction: column !important; gap: 4px !important; }
  #ilActionCenter [data-il-cat][style*="width:214px"] { width: auto !important; min-width: 0 !important; }
  #ilActionCenter [data-il-cat]:not([style*="width:214px"]) { flex-wrap: wrap !important; row-gap: 4px !important; }
  #ilActionCenter [data-il-cat]:not([style*="width:214px"]) > span:first-of-type { flex: 1 1 calc(100% - 40px) !important; min-width: 0 !important; }
  #ilActionCenter [data-il-item] { grid-template-columns: 14px 6px minmax(0, 1fr) 12px !important; column-gap: 10px !important; row-gap: 2px !important; padding-left: 12px !important; padding-right: 12px !important; }
  #ilActionCenter [data-il-item] > :nth-child(3) { grid-column: 3; grid-row: 1; }
  #ilActionCenter [data-il-item] > :nth-child(4) { grid-column: 3 / 5; grid-row: 2; }
  #ilActionCenter [data-il-item] > :nth-child(5) { grid-column: 3 / 5; grid-row: 3; white-space: normal !important; }
  #ilActionCenter [data-il-item] > :nth-child(6) { grid-column: 4; grid-row: 1; }
  #ilActionCenter [data-il-item] + div { flex-wrap: wrap !important; row-gap: 6px !important; padding-left: 12px !important; padding-right: 12px !important; }
  /* ---- Home's own Action Center (and the Journal's, which has the same line): an opened row's ACTIONS line wraps, as the
     page rows' line above does (T-620; T-219 audit finding F-AL1-01, Nov 16 2026: the line never wrapped, so at 320 and
     390 px "ACTIONS" was cut off at the card's left edge and the first button ran past it). Only the wrap; nothing else
     on the line changes, and nothing at 768 px or wider. ---- */
  [style^="display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 1px 18px 11px"] { flex-wrap: wrap !important; row-gap: 6px !important; }
  /* ---- The Journal's own Action Center rows (Nov 12 2026): the same phone layout as the page rows above. Each row starts
     with its tick box (Select all and Delete selected, as on Home), which left the words about 97px at 390px beside the
     ticker; the box, dot, ticker and arrow share the first line, the words take the full width under the ticker, and the
     time goes under the words. Only rows under the Journal's Select all bar (data-il-acbulk="journal"). ---- */
  [data-il-acbulk="journal"] ~ div [style*="gap: 12px; padding: 7.5px 18px; cursor: pointer"] { display: grid !important; grid-template-columns: 14px 6px minmax(0, 1fr) 12px !important; column-gap: 10px !important; row-gap: 2px !important; padding-left: 12px !important; padding-right: 12px !important; }
  [data-il-acbulk="journal"] ~ div [style*="gap: 12px; padding: 7.5px 18px; cursor: pointer"] > :nth-child(3) { grid-column: 3; grid-row: 1; }
  [data-il-acbulk="journal"] ~ div [style*="gap: 12px; padding: 7.5px 18px; cursor: pointer"] > :nth-child(4) { grid-column: 3 / 5; grid-row: 2; min-width: 0 !important; }
  [data-il-acbulk="journal"] ~ div [style*="gap: 12px; padding: 7.5px 18px; cursor: pointer"] > :nth-child(5) { grid-column: 3 / 5; grid-row: 3; white-space: normal !important; }
  [data-il-acbulk="journal"] ~ div [style*="gap: 12px; padding: 7.5px 18px; cursor: pointer"] > :nth-child(6) { grid-column: 4; grid-row: 1; }
  /* START HERE: the label and OPEN on the first line, the row's message full width under them */
  a:has(> span[style*="animation: 1.15s ease-in-out 0s infinite normal none running startChip"]) { flex-wrap: wrap !important; row-gap: 6px !important; }
  a:has(> span[style*="animation: 1.15s ease-in-out 0s infinite normal none running startChip"]) > span:nth-child(2) { order: 3; flex: 1 1 100% !important; }

  /* ---- Market · Economic Conditions: the three status tiles fit the screen ---- */
  .econ-status .small-card { padding: 8px 9px !important; min-width: 0; }
  .econ-status .small-card .v { font-size: 12px !important; letter-spacing: 0 !important; }

  /* ---- Research · company overview: one fact per row ---- */
  div:has(> .ovc-row) { grid-template-columns: minmax(0, 1fr) !important; }
  /* Research · Risk Status Board: one check per row */
  #riskBoardCard .matrix { grid-template-columns: minmax(0, 1fr) !important; }
  /* Research · Financial Health: the score ring goes under the text and its three ratings */
  [style*="display:flex;gap:28px;margin:10px 0 14px;flex:1"] { flex-direction: column !important; gap: 16px !important; }
  [style*="display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:auto 0"] > div { padding: 10px 6px !important; }
  /* Research · Signal Matrix: the group names wrap above their description instead of running into the cells */
  .hm td.rowlab { white-space: normal !important; font-size: 13px !important; }
  .hm td.cell { min-width: 0 !important; font-size: 11.5px !important; }
  /* its drill-down's signal names wrap in their own column instead of running under the marks (Nov 9 2026 audit NEW-07) */
  .hm-sub .slab { white-space: normal !important; overflow-wrap: anywhere; line-height: 1.3; }

  /* ---- Community: the four ways to start (join, browse, start, solo) two to a row; the leaderboards two to a row ---- */
  [style^="display: grid; grid-template-columns: repeat(4, minmax(0px, 1fr)); gap: 10px;"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  [style^="display: grid; grid-template-columns: repeat(6, minmax(0px, 1fr)); gap: 10px;"]:has(> [style*="padding: 11px 12px 10px"]) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* Community · Live now: kind, avatar, message and time on one line; the team or room under the message */
  [style^="display: grid; grid-template-columns: 52px 22px minmax(0px, 1fr) minmax(0px, 220px) 44px;"] { grid-template-columns: 52px 22px minmax(0, 1fr) 40px !important; row-gap: 2px !important; }
  [style^="display: grid; grid-template-columns: 52px 22px minmax(0px, 1fr) minmax(0px, 220px) 44px;"] > :nth-child(4) { grid-column: 3 / 5; grid-row: 2; text-align: left !important; }
  /* ---- Community · browse teams: one team card to a row ---- */
  [style^="display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 10px;"]:has(> [style*="padding: 13px 15px 14px"]) { grid-template-columns: minmax(0, 1fr) !important; }

  /* ================= Upgrade ================= */
  /* the three plan cards stack */
  [style^="display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 12px; margin: 0px 0px 12px;"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* four-across button grids: two to a row */
  [style^="display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  /* ================= Rules of Participation (and similar small rows anywhere) ================= */
  /* simple label rows may wrap when they don't fit (no effect when they do) */
  [style="display: flex; align-items: center; gap: 7px;"], [style="display: flex; align-items: center; gap: 9px;"],
  [style="display: flex; align-items: center; gap: 12px;"], [style="display: flex; align-items: baseline; gap: 8px;"],
  [style="display: flex; align-items: baseline; gap: 5px;"] { flex-wrap: wrap !important; row-gap: 4px !important; }
  /* heading bars in this style let their text wrap */
  [style^="background: linear-gradient(135deg, rgb(51, 65, 85), rgb(15, 23, 42))"] { flex-wrap: wrap !important; }
  [style^="background: linear-gradient(135deg, rgb(51, 65, 85), rgb(15, 23, 42))"] > span { white-space: normal !important; min-width: 0 !important; }

  /* ================= Lessons ================= */
  /* the lesson pages' own top menu (logo · links · buttons): two rows, links swipe */
  nav[style^="display: flex; align-items: center; gap: 16px; background: transparent;"] { flex-wrap: wrap !important; gap: 8px 8px !important; padding: 8px 10px !important; }
  nav[style^="display: flex; align-items: center; gap: 16px; background: transparent;"] > span:nth-child(2) {
    order: 5; flex: 1 0 100% !important; justify-content: flex-start !important; flex-wrap: nowrap !important;
    overflow-x: auto !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav[style^="display: flex; align-items: center; gap: 16px; background: transparent;"] > span:nth-child(2) > * { flex: 0 0 auto !important; }
  nav[style^="display: flex; align-items: center; gap: 16px; background: transparent;"] > span:nth-child(3) { margin-left: auto !important; }
  /* lesson body: the step list (280px, sticky) goes above the lesson content and stops sticking */
  [style^="display: grid; grid-template-columns: 280px minmax(0px, 1fr);"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style^="display: grid; grid-template-columns: 280px minmax(0px, 1fr);"] > aside { position: static !important; }
  /* lesson sections: the reading text first, the "Words used here" glossary under it */
  article [style^="padding: 18px 24px"][style*="display: flex; gap: 22px;"] { flex-direction: column !important; padding: 16px 14px !important; gap: 14px !important; }
  article [style^="padding: 18px 24px"][style*="display: flex; gap: 22px;"] > [style^="flex: 0 0 "] { flex: 1 1 auto !important; }
  /* the lesson test: the question and its answers first, the 272px answer panel under them, so every answer is full
     width and can be tapped (it sat beside the panel, about 34px wide and under it; as the Section Exam on a phone) */
  main#step-4 article [style^="padding: 22px 24px; display: flex; gap: 20px;"] { flex-direction: column !important; padding: 16px 14px !important; }
  main#step-4 article [style^="padding: 22px 24px; display: flex; gap: 20px;"] > [style^="flex: 0 0 272px"] { flex: 0 0 auto !important; }
  /* step 1 flashcards (audit F-acct35-b3-01, Nov 10 2026): the term and its three buttons ("I already know this one",
     "Keep it and test me later", "Add to my study guide") take the full width above the card, so every button can be
     tapped and step 1 can be finished on a phone (the 218px button column sat beside the card, squeezed to a few px).
     The step's body puts the card first and its 268px deck panel under it, as the reading sections do */
  article [style^="padding: 20px 24px 24px; display: flex; gap: 22px;"] { flex-direction: column !important; padding: 16px 14px !important; gap: 14px !important; }
  article [style^="padding: 20px 24px 24px; display: flex; gap: 22px;"] > [style^="flex: 0 0 268px"] { flex: 0 0 auto !important; }
  [style^="display: flex; background: rgb(243, 237, 224); border: 1px solid rgb(192, 180, 156);"] { flex-direction: column !important; width: 100% !important; min-width: 0 !important; align-self: stretch !important; }
  [style^="display: flex; background: rgb(243, 237, 224); border: 1px solid rgb(192, 180, 156);"] > [style^="flex: 0 0 218px"] { flex: 0 0 auto !important; border-right: 0 !important; border-bottom: 3px solid rgb(154, 116, 42) !important; }
  /* review questions: one per row */
  [style^="display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch;"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* lesson header: the progress panel moves under the title */
  section[style^="display: flex; align-items: stretch; background: linear-gradient(120deg, rgb(16, 26, 46)"] { flex-direction: column !important; }
  section[style^="display: flex; align-items: stretch; background: linear-gradient(120deg, rgb(16, 26, 46)"] > [style^="flex: 0 0 268px"] { flex: 1 1 auto !important; border-left: 0 !important; }
  /* the study guide's header (Tasha, Nov 10 2026, AQ-147: PRINT and RETURN TO COURSE CURRICULUM): with both buttons
     the title keeps the first row beside its icon and the buttons take the row under it, so neither covers the title */
  article > header[style^="display: flex; align-items: center; gap: 12px;"]:has(> button + button) { flex-wrap: wrap !important; row-gap: 10px !important; }
  article > header[style^="display: flex; align-items: center; gap: 12px;"]:has(> button + button) > span:nth-child(2) { flex: 1 1 calc(100% - 46px) !important; }
  /* the step bar (← Previous step · progress · Next step →) wraps */
  [style^="display: flex; align-items: center; gap: 10px; background: linear-gradient(rgb(16, 26, 46), rgb(10,"] { flex-wrap: wrap !important; row-gap: 8px !important; }
  [style^="display: flex; align-items: center; gap: 10px; background: linear-gradient(rgb(16, 26, 46), rgb(10,"] > * { min-width: 0 !important; }
  [style^="display: flex; align-items: center; gap: 10px; background: linear-gradient(rgb(16, 26, 46), rgb(10,"] * { white-space: normal !important; }

  /* the lesson test's PROGRESS row (audit F-H5b-02, Nov 15 2026): START AGAIN takes the line under the numbered boxes when
     it doesn't fit beside them (it ran 8-78px past the test card at 390-320px); the row's side padding matches the
     question under it */
  main#step-4 article [style^="display: flex; align-items: center; gap: 10px; padding: 13px 24px; border-bottom: 1px solid rgb(221, 211, 191);"] { flex-wrap: wrap !important; row-gap: 8px !important; padding: 13px 14px !important; }
  main#step-4 article [style^="display: flex; align-items: center; gap: 10px; padding: 13px 24px; border-bottom: 1px solid rgb(221, 211, 191);"] > button:last-child { margin-left: auto !important; }
  /* the study guide's "Your own additions" (audit F-H5b-01, Nov 15 2026): OPEN THE FLASHCARDS goes under the empty line when
     it doesn't fit beside it, and a term, answer or note card is never wider than the guide (the cards' 300px minimum ran
     8-48px past it at 360-320px); where two cards fit side by side they still do */
  main#step-4 article [style^="display: flex; align-items: center; gap: 13px; background: rgb(255, 255, 255); border: 1px dashed rgb(199, 188, 166);"] { flex-wrap: wrap !important; row-gap: 10px !important; }
  main#step-4 article [style^="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));"] { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)) !important; }

  /* Free Lesson: the three membership stages stack */
  [style^="display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; align-items: stretch;"] { grid-template-columns: minmax(0, 1fr) !important; }

  /* ================= Journal ================= */
  /* The Journal's dialogs (Log a Trade, note, screenshot, trade details, plan, position alerts): the page nav is sticky
     and sits above everything, so on a phone the dialog opens below it and scrolls inside the room that is left, with
     its title, close and tabs always in reach (the page writes the nav's bottom edge to --il-nav-bottom while a dialog
     is open, and again on resize or turning the phone; second check, Nov 1 2026). The same two rules apply to short
     screens (phones held sideways) in the block below. At other widths the dialog shell itself keeps clear of the
     nav (its height is capped with the same variable). */
  [role="dialog"][aria-modal="true"][style*="background: rgba(4, 10, 26, 0.72)"][style*="z-index: 200"] { align-items: flex-start !important; padding: calc(var(--il-nav-bottom, 0px) + 8px) 8px 8px !important; }
  [role="dialog"][aria-modal="true"][style*="background: rgba(4, 10, 26, 0.72)"][style*="z-index: 200"] > div { max-width: 100% !important; max-height: calc(100vh - var(--il-nav-bottom, 0px) - 16px) !important; max-height: calc(100dvh - var(--il-nav-bottom, 0px) - 16px) !important; }
  /* The Journal's message line (the toast at the foot of the screen) wraps on a phone instead of running off both
     edges, so a longer message (e.g. Log a Trade's add-shares checks) can be read in full (second check, Nov 1 2026). */
  [style*="position: fixed"][style*="bottom: 26px"][style*="z-index: 300"][style*="white-space: nowrap"] { white-space: normal !important; width: max-content; max-width: calc(100vw - 32px) !important; text-align: center; border-radius: 14px !important; line-height: 1.4; }
  /* Log a Trade's tabs (FILL · STOP MOVE · PARTIAL EXIT · CLOSE) wrap onto a second line on a narrow phone instead of
     running past the dialog's edge */
  [role="dialog"][aria-modal="true"][style*="background: rgba(4, 10, 26, 0.72)"][style*="z-index: 200"] [style="display: flex; gap: 6px;"] { flex-wrap: wrap !important; column-gap: 4px !important; row-gap: 6px !important; }
  /* a little less room either side of each tab, so all four stay on one line down to a 360px phone (second check,
     Nov 2 2026); the wrap above is only for narrower screens */
  [role="dialog"][aria-modal="true"][style*="background: rgba(4, 10, 26, 0.72)"][style*="z-index: 200"] [style="display: flex; gap: 6px;"] > * { padding-left: 8px !important; padding-right: 8px !important; }
  /* Edit Trade Plan, Pre-Trade Read: each line's name and reading on one row, its note full width under them (the
     three columns left the note a few pixels wide, so it ran out of the dialog) */
  [style*="grid-template-columns: minmax(0px, 190px) 92px minmax(0px, 1fr)"] { grid-template-columns: minmax(0, 1fr) fit-content(50%) !important; row-gap: 2px !important; }
  [style*="grid-template-columns: minmax(0px, 190px) 92px minmax(0px, 1fr)"] > :nth-child(3) { grid-column: 1 / -1 !important; }
  /* … and a reading's name wraps instead of being cut with "…" when its reading is long, and a long reading wraps at
     half the row (fit-content(50%); it was `auto`, which let "under 0.5% of the account" squeeze the name to a few pixels)
     (T-245, Nov 12 2026: "WHAT SIZE THE EDGE CARRIES" beside "$1,993 and over") */
  [style*="grid-template-columns: minmax(0px, 190px) 92px minmax(0px, 1fr)"] > :first-child { white-space: normal !important; }
  /* the Journal's section tabs (Overview, History, Analytics …) swipe sideways with room around each label.
     (Matched by their own style, not by the runtime's generated scp… class names, which are unstable.) */
  :has(> [style^="flex: 1 1 0%; text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: 1.3px"]) { overflow-x: auto !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  :has(> [style^="flex: 1 1 0%; text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: 1.3px"])::-webkit-scrollbar { display: none; }
  [style^="flex: 1 1 0%; text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: 1.3px"] { flex: 0 0 auto !important; padding-left: 12px !important; padding-right: 12px !important; }
  /* Live Metrics Snapshot: the period picker (Today … Custom) wraps onto its own line under the title */
  [style*="gap: 12px; padding: 8px 16px; margin: 10px;"] { flex-wrap: wrap !important; row-gap: 8px !important; }
  [style*="gap: 12px; padding: 8px 16px; margin: 10px;"] > div { flex: 1 1 100% !important; flex-wrap: wrap !important; min-width: 0 !important; row-gap: 6px !important; }
  [style*="gap: 12px; padding: 8px 16px; margin: 10px;"] > div > span { flex-wrap: wrap !important; min-width: 0 !important; row-gap: 6px !important; }
  /* ... and under it the period names' small print (Tasha, Nov 1 2026), which sits with the pills in one column:
     on a phone the column starts at the left and the pills inside it wrap as before */
  [style*="gap: 12px; padding: 8px 16px; margin: 10px;"] > div[style*="flex-direction: column"] { align-items: flex-start !important; }
  [style*="gap: 12px; padding: 8px 16px; margin: 10px;"] > div > div { flex-wrap: wrap !important; min-width: 0 !important; row-gap: 6px !important; }
  [style*="gap: 12px; padding: 8px 16px; margin: 10px;"] > div > div > span { flex-wrap: wrap !important; min-width: 0 !important; row-gap: 6px !important; }
  /* the snapshot tiles' labels ("Plan adherence · 3 MONTHS") take a second line instead of being cut short */
  [style^="font-size: 9.5px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: rgb(147, 164, 194); white-space: nowrap; overflow: hidden; text-overflow: ellipsis"] { white-space: normal !important; }
  /* "needs entry price" style rows: ticker and tag, then the message on its own line, then the buttons */
  div:has(> span[style^="margin-left: auto; display: flex; gap: 7px;"]) { flex-wrap: wrap !important; row-gap: 6px !important; }
  div:has(> span[style^="margin-left: auto; display: flex; gap: 7px;"]) > span:nth-of-type(2) { flex: 1 1 100% !important; order: 3; }
  div:has(> span[style^="margin-left: auto; display: flex; gap: 7px;"]) > span[style^="margin-left: auto; display: flex; gap: 7px;"] { order: 4; }
  /* Broker Sync, Connection heading: its buttons (Sync now / Refresh demo · + Connect a broker · Sync history) wrap
     onto a second line instead of running off the right edge */
  [style^="margin-left: auto; display: flex; align-items: center; gap: 7px"] { flex-wrap: wrap !important; row-gap: 6px !important; min-width: 0 !important; }
  /* History: the 17-column trade table swipes sideways; its heading row and its scrolling rows move together */
  :has(> [data-il-hist="head"]) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  /* the member's own column widths are kept (T-357), so the table is found by its mark and is as wide as its columns
     (--il-hist-w: 1210px at the default widths) */
  [data-il-hist] { min-width: var(--il-hist-w, 1210px); }
  /* Journal, the sub-tab pills under the section tabs (Analytics: Long vs Short, Top 10, Calendar; Reviews: Your
     Directions Library; Broker Sync: Setup Guide, Troubleshooting): the row swipes sideways like the section tabs above
     it, so every pill can be reached; they were cut off at the bar's edge (audit F-tf10-04, Nov 11 2026) */
  [style^="display: flex; align-items: center; gap: 6px; border-top: 1px solid rgba(201, 165, 110, 0.14); padding: 7px 14px"] { overflow-x: auto !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  [style^="display: flex; align-items: center; gap: 6px; border-top: 1px solid rgba(201, 165, 110, 0.14); padding: 7px 14px"]::-webkit-scrollbar { display: none; }
  /* Journal Reviews, Rules Simulator: the equity-curve column shrinks with its card, so EQUITY CURVE and "Chronological,
     oldest first …" stay inside the chart box (audit F-tf10-06, 375-380px; Nov 11 2026) */
  [style^="flex: 1 1 420px; min-width: 320px;"] { min-width: 0 !important; }
  /* History, stop check (preview #53): the tight-stop chip sits in a column off screen on a phone, so a small
     marker shows beside the ticker instead (hidden on wider screens by its own inline style) */
  .il-stp-mk { display: inline !important; margin-left: 4px; color: #E6B84A; font-size: 11px; }
  /* archived-trade rows (ticker · details · Restore / Delete forever…) wrap so the buttons stay on screen */
  [style^="display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin-bottom: 5px;"] { flex-wrap: wrap !important; row-gap: 6px !important; }
  /* Analytics: the "Find Your Edge" stat strip three to a row; the highlight cards one per row; pill rows wrap */
  :has(> [style^="flex: 1 1 0%; display: flex; flex-direction: column; align-items: center; gap: 4px;"]) { flex-wrap: wrap !important; row-gap: 12px !important; }
  [style^="flex: 1 1 0%; display: flex; flex-direction: column; align-items: center; gap: 4px;"] { flex: 1 1 30% !important; }
  [style*="grid-template-columns: repeat(4, 1fr)"]:has(> [style^="background: linear-gradient(135deg, rgb(15, 23, 42) 0%, rgb(36, 50, 72) 50%"]) { grid-template-columns: minmax(0, 1fr) !important; }
  [style^="display: flex; gap: 8px; background: rgb(30, 41, 59); border-radius: 8px;"],
  [style^="display: flex; align-items: center; gap: 8px; background: rgb(30, 41, 59); border-radius: 8px;"] { flex-wrap: wrap !important; }
  /* Analytics + Reports score cards (12-column grid, cards span 6 or 12): the grid has 4 columns on a phone, so a
     span-6 card made extra columns and squeezed every other card to a sliver; each card takes the full width */
  [style*="grid-template-columns: repeat(12,"] > [style*="grid-column: span"] { grid-column: 1 / -1 !important; }
  /* section headings (title · description · Academy · caret): the description gets its own line */
  [style^="display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgb(51, 65, 85), rgb(15, 23, 42)); border: 1px solid rgb(100, 116, 139); border-radius: 10px;"] { flex-wrap: wrap !important; row-gap: 6px !important; }
  [style^="display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgb(51, 65, 85), rgb(15, 23, 42)); border: 1px solid rgb(100, 116, 139); border-radius: 10px;"] > [style^="flex: 1 1 0%; min-width: 0px; font-size: 10.5px"] { flex: 1 1 100% !important; order: 1; }
  [style^="display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgb(51, 65, 85), rgb(15, 23, 42)); border: 1px solid rgb(100, 116, 139); border-radius: 10px;"] > a,
  [style^="display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgb(51, 65, 85), rgb(15, 23, 42)); border: 1px solid rgb(100, 116, 139); border-radius: 10px;"] > a ~ span { order: 2; }
  /* silver collapsible rows (dot · title · summary · caret): the summary gets its own line and wraps */
  [style^="display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, rgb(182, 192, 207), rgb(133, 147, 168));"] { flex-wrap: wrap !important; row-gap: 4px !important; }
  [style^="display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, rgb(182, 192, 207), rgb(133, 147, 168));"] > [style^="flex: 1 1 0%; min-width: 0px; font-size: 12px"] { flex: 1 1 100% !important; order: 5; white-space: normal !important; text-align: left !important; }
  [style^="display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, rgb(182, 192, 207), rgb(133, 147, 168));"] > span[style^="font-size: 13px; font-weight: 800;"] { white-space: normal !important; min-width: 0 !important; flex: 1 1 0 !important; }
  /* Reviews: the saved-reports library table (Kind · Ticker · Scope · Saved · Trades · Outcome · …) swipes sideways as one */
  [style^="background: rgb(15, 23, 42); border: 1px solid rgb(34, 51, 94); border-radius: 12px; padding: 16px 18px;"]:has([style^="display: grid; grid-template-columns: minmax(0px, 0.8fr) 62px minmax(0px, 1fr) 80px"]) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  [style^="display: grid; grid-template-columns: minmax(0px, 0.8fr) 62px minmax(0px, 1fr) 80px"],
  div:has(> [style^="display: grid; grid-template-columns: minmax(0px, 0.8fr) 62px minmax(0px, 1fr) 80px"]):not([style^="background: rgb(15, 23, 42); border: 1px solid rgb(34, 51, 94); border-radius: 12px; padding: 16px 18px;"]) { min-width: 820px; }
  /* Reviews: the three side-by-side panels (Trade Progress Chart · Trade Element Adherence / Every Order ·
     Mistake Logger) stack, one per row */
  [style="display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 12px;"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* Reviews: "warnings you traded through" rows (# · time · what printed · read on · warning it gave you):
     read on and the warning's lead time go under what printed, in the same column, and may wrap */
  [style^="display: grid; grid-template-columns: 22px 62px minmax(0px, 1fr) 130px 180px"] { grid-template-columns: 22px 62px minmax(0, 1fr) !important; row-gap: 3px !important; }
  [style^="display: grid; grid-template-columns: 22px 62px minmax(0px, 1fr) 130px 180px"] > :nth-child(n+4) { grid-column: 3 !important; min-width: 0 !important; }
  [style^="display: grid; grid-template-columns: 22px 62px minmax(0px, 1fr) 130px 180px"] > :nth-child(5) { white-space: normal !important; text-align: left !important; }
  /* Reviews, Your Live Rules: each rule's three silver tiles (All trades, worth · Trades blocked · Worst drawdown)
     stack, so no label is cut off or runs off the screen */
  [style="display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 8px; margin-top: 2px;"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* Reviews: fills rows (time · Entry · Buy · shares · price) on narrower columns */
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] { grid-template-columns: 50px minmax(0, 1fr) 30px 44px 58px !important; gap: 4px !important;
    padding-left: 8px !important; padding-right: 8px !important; }
  /* Reviews: Plan vs Actual rows (item · planned · actual · difference) on a narrower label column */
  [style*="grid-template-columns: 74px repeat(3, minmax(0px, 1fr))"] { grid-template-columns: 46px repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; }
  /* label · value rows with a wide gap */
  [style^="display: flex; align-items: baseline; gap: 20px;"] { gap: 10px !important; flex-wrap: wrap !important; }
  /* the other cards in that style (rules, library actions) stack into one column */
  [style^="background: rgb(20, 29, 51); border-width: 1px 1px 1px 3px;"]:not([style*="grid-template-columns: 62px minmax(0px, 1fr) 40px"]),
  [style^="background: rgba(20, 29, 51, 0.45); border-width: 1px 1px 1px 3px;"]:not([style*="grid-template-columns: 62px minmax(0px, 1fr) 40px"]) { grid-template-columns: minmax(0, 1fr) !important; }
  [style^="background: rgb(20, 29, 51); border-width: 1px 1px 1px 3px;"] > * { min-width: 0 !important; white-space: normal !important; place-self: auto !important; }
  /* the review's sticky header (P&L · ticker · grade): wraps */
  [style^="position: sticky; top: 104px; z-index: 20; display: flex; align-items: center; gap: 22px;"] { flex-wrap: wrap !important; gap: 10px 14px !important; }
  [style^="position: sticky; top: 104px; z-index: 20; display: flex; align-items: center; gap: 22px;"] > div:nth-child(3) { flex: 1 1 auto !important; min-width: 130px !important; }
  /* silver stat cards, two-column splits and side-by-side panels stack */
  [style^="background: linear-gradient(135deg, rgb(173, 185, 205), rgb(71, 85, 105));"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* "What the set changed": seven silver metric tiles, three to a row */
  :has(> [style^="flex: 1 1 0%; background: linear-gradient(135deg, rgb(173, 185, 205), rgb(71, 85, 105))"]) { flex-wrap: wrap !important; gap: 6px !important; }
  [style^="flex: 1 1 0%; background: linear-gradient(135deg, rgb(173, 185, 205), rgb(71, 85, 105))"] { flex: 1 1 30% !important; }
  [style*="grid-template-columns: 2fr 1fr"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style="display: flex; gap: 14px; align-items: flex-start;"] { flex-direction: column !important; align-items: stretch !important; }
  /* Reports: the report list (360px) and the white report page fit the screen, one above the other */
  [style^="display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;"] > [style^="width: 360px; flex: 0 0 auto;"] { width: 100% !important; }
  [style^="display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;"] > [style^="flex: 1 1 0%; min-width: 320px; background: rgb(255, 255, 255);"] { min-width: 0 !important; flex-basis: 100% !important; }
  [style^="font-size: 10px; font-weight: 700; color: rgb(11, 17, 32);"][style*="padding: 9px 8px"] { white-space: normal !important; }
  /* Reports: the scorecard heading's description gets its own line under the title (it was squeezed to one word a line) */
  [style^="display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: linear-gradient(135deg, rgb(51, 65, 85), rgb(15, 23, 42));"] > [style*="flex: 1 1 0%; min-width: 0px"] { flex: 1 1 100% !important; order: 1; }
  /* Recent Journal Activity rows: date · ticker · type on one line, the description on the next */
  [style*="gap: 10px; padding: 7px 12px; margin-bottom: 5px;"] { flex-wrap: wrap !important; row-gap: 3px !important; }
  [style*="gap: 10px; padding: 7px 12px; margin-bottom: 5px;"] > span:nth-child(4) { flex: 1 1 100% !important; order: 6; }
  /* Focus Areas cards: one per row */
  :has(> [style^="background: linear-gradient(135deg, rgb(15, 23, 42) 0%, rgb(37, 50, 66) 50%, rgb(15, 23, 42) 100%); border-width: 1px 1px 1px 4px;"]) { grid-template-columns: minmax(0, 1fr) !important; }
  /* its metric tiles: two to a row, labels wrap */
  :has(> [style^="position: relative; display: flex; flex-direction: column; padding: 8px 16px 9px;"]) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  [style^="position: relative; display: flex; flex-direction: column; padding: 8px 16px 9px;"] { padding: 8px 10px 9px !important; }
  [style^="position: relative; display: flex; flex-direction: column; padding: 8px 16px 9px;"] > div:first-child { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }

  /* ================= Settings ================= */
  /* Every rule here sits inside the Settings screen ([data-screen-label="Settings"]), so no other page is touched. */
  /* top navigation: this page's nav is the older markup without the ilprodnav class; the same two rows as every
     other page (logo, clock and account button / every page link in one row that swipes sideways) */
  [data-screen-label="Settings"] > nav { flex-wrap: wrap !important; gap: 8px 6px !important; padding: 8px 8px !important; }
  [data-screen-label="Settings"] > nav > span:nth-child(1) { order: 1; }
  [data-screen-label="Settings"] > nav > span:nth-child(2) { order: 2; font-size: 12.5px !important; padding-right: 9px !important; }
  [data-screen-label="Settings"] > nav > span:nth-child(n+4) { order: 3; }
  [data-screen-label="Settings"] > nav > span:nth-child(4) { margin-left: auto !important; }
  [data-screen-label="Settings"] > nav > span:nth-child(3) {
    order: 4; flex: 1 0 100% !important; justify-content: flex-start !important; flex-wrap: nowrap !important;
    overflow-x: auto !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
  }
  [data-screen-label="Settings"] > nav > span:nth-child(3)::-webkit-scrollbar { display: none; }
  [data-screen-label="Settings"] > nav > span:nth-child(3) > * { flex: 0 0 auto !important; }
  /* header counts (Sections open … Alerts to text): three to a row so each label fits its tile */
  [data-screen-label="Settings"] [style*="grid-template-columns: repeat(5,"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  [data-screen-label="Settings"] [style*="grid-template-columns: repeat(5,"] > div { padding: 9px 10px !important; }
  /* card rows: the membership / email / mobile cards, the security / data / identity cards, the three
     "Where your alerts go" channel cards and each page's setting groups: one card per row */
  [data-screen-label="Settings"] [style*="grid-template-columns: repeat(3,"],
  [data-screen-label="Settings"] [style*="grid-template-columns: repeat(2,"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* the Dash / Email / Text switches beside each alert: closer together, so the alert's name has room, and each
     switch (and its column heading) 4px wider so "LOCKED" fits inside its pill */
  [data-screen-label="Settings"] [style*="display: flex; gap: 24px;"] { gap: 8px !important; }
  [data-screen-label="Settings"] [style*="display: flex; gap: 24px;"] > span[style*="width: 42px;"] { width: 46px !important; }
  /* a channel's alert list: the page name on its own line above the alert and its switches */
  [data-screen-label="Settings"] div:has(> span[style^="flex-shrink: 0; width: 78px;"]) { flex-wrap: wrap !important; row-gap: 2px !important; }
  [data-screen-label="Settings"] span[style^="flex-shrink: 0; width: 78px;"] { flex: 1 0 100% !important; width: auto !important; }
  /* quiet hours (Hold texts and emails from … to … Eastern Time): wraps inside its box */
  [data-screen-label="Settings"] span[style^="display: flex; align-items: center; gap: 9px; background: linear-gradient(165deg"] { flex-wrap: wrap !important; row-gap: 6px !important; max-width: 100% !important; }

  /* ================= Watchlist ================= */
  /* the watchlist table keeps every column and swipes sideways; ticker, price and change come first */
  .wlpage .wlscroll { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  /* Biggest expected movers · next 7 sessions: two tiles a row on a phone */
  #wlMovers { padding: 10px 10px !important; }
  #wlMovers .wlmv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  #wlMovers .wlmv-t { padding: 8px 9px !important; }
  #wlMovers .wlmv-v { font-size: 17px !important; }
  /* the drawer's Expected Move line wraps inside the drawer */
  .wldrawer > div[style*="grid-column:1/-1;display:flex;flex-wrap:wrap"] { padding: 2px 4px 0 !important; }

  /* ================= Research ================= */
  /* every card full width (the page's 12-column card grid) */
  .grid > * { grid-column: 1 / -1 !important; }
  /* company overview + quick glance: one above the other */
  .hud-row { flex-direction: column !important; }
  .ovc-cols { flex-direction: column !important; }
  .tkhead { flex-wrap: wrap !important; }
  .qg2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .qg2-cell:not(:nth-child(4n+1)) { border-left: 0 !important; }
  .qg2-cell:nth-child(2n) { border-left: 1px solid rgba(194,158,103,.15) !important; }
  .qg2-cell:nth-child(-n+4) { border-top: 1px solid rgba(194,158,103,.15) !important; }
  .qg2-cell:nth-child(-n+2) { border-top: none !important; }
  .qg2-cell .k, .qg2-cell .v { white-space: normal !important; }
  /* card title rows: Academy and the bell drop under the title */
  .card h3 .hbtns { grid-column: 1 / -1 !important; grid-row: auto !important; justify-self: start !important; margin-top: 6px; }
  /* card heading subtitles (e.g. the chart's "Ironline real-time chart — …") get their own line */
  .card h3 .sub { grid-column: 1 / -1 !important; grid-row: auto !important; text-align: left !important; align-self: start !important; }
  /* inner layouts: one or two columns */
  .tfrow, .calc-wrap, .factor-grid, .tfa2 .metrics-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .fgrid, .kpi-inline, .tsum-grid, .tfa2 .gauges-row, .slib-grid, .detail-grid, .fingrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* Earnings Watch & Segment Heat: the EPS chart and the Segment Growth bars one above the other, and each bar's track
     (with its axis) leaves 40px at its right for the bar's %, so the % stays inside the card. Side by side the % ran past
     the card and the page scrolled sideways at 320-767px (demo Research, e.g. BRLX and TQNA; the member page the same
     with a full-scale bar). Phones only; tablets and desktop unchanged. */
  .card:has(#beats) > div[style*="grid-template-columns:1fr 1fr;gap:16px"], #earnBody > div[style*="grid-template-columns:1fr 1fr;gap:16px"] { grid-template-columns: minmax(0, 1fr) !important; }
  .card:has(#beats) [style*="grid-template-columns:74px 1fr"] > div[style^="position:relative;height:1"], #earnBody [style*="grid-template-columns:96px 1fr"] > div[style^="position:relative;height:16px"] { width: calc(100% - 40px) !important; }
  #earnBody [style*="grid-template-columns:96px 1fr"] > div[style^="position:relative;height:14px"] { width: calc((100% - 40px) * .8) !important; }
  /* Analyst Consensus: the "Now $… · …% to avg" line sits centred under the bar instead of running past the card (and
     the screen) from its point on the bar. The member page has had this in its own phone rule since Nov 10 (audit
     F-acct35-b2-13 and b3-11); the demo had not (at 320px it ran past the screen on 30 sample tickers). */
  .trange .tb { left: 0 !important; right: 0; text-align: center; }
  /* Price Level Map: its badges ("NEAREST LEVEL ABOVE +0.3% · NORMAL ACTIVITY", "✓ GOLDEN CROSS CONFIRMED", …) wrap
     inside the card from the first paint. Kept on one line (white-space:nowrap), the longest ran past the card and the
     screen at 320px until the page's text fit wrapped it 0.5-2.5s later (CI caught it on GLD: 40px of sideways scroll
     with the system font). The settled look is the one text fit already gave; tablets and desktop unchanged. */
  #plmCard .plm-badge { white-space: normal; max-width: 100%; }
  .ovperf { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; row-gap: 8px; }
  .lvlgrid.f5 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lvl-row { grid-template-columns: 40px 66px minmax(0, 1fr) !important; }
  .lvl-row > :nth-child(4) { grid-column: 1 / -1; }
  /* Short Data & Pressure signal rows (#shortCard .sqrow): the label column may give up width when the card is narrower
     than the row's fixed columns (150 + 52 + 84 px and gaps). In a 360-374px window with a classic (always-shown)
     scrollbar the page is 345-359px inside, the under-360px row rule doesn't apply, and the pills ran 4px past the
     screen (found Nov 23 2026). Where the row fits, the label column is its 150px as before; under 360px the existing
     .sqrow rule (with !important) still decides. Phones only; tablets and desktop unchanged. */
  #shortCard .sqrow { grid-template-columns: minmax(0, 150px) 52px minmax(0, 1fr) 84px; }
  /* Price Level Map rows (ironline-levels.js): the desktop row's fixed columns (Activity 62px, label 132px, volume 58px,
     price 76px, percent 54px) are wider than a phone's card, so the price and percent were cut off at the right edge
     (Tasha, Nov 3 2026: "fix it, preview first"). On a phone the label takes what is left, the other columns fit their
     text, and the zone and row padding tighten. A label too long for what is left wraps onto a second line instead of
     being cut short with "…" (between words), and where the label and its tags (FIB, CONF…) don't fit side by side the
     tags go on the line below, so nothing is cut and no price moves (Tasha, Nov 3 2026: "let a label wrap onto two
     lines"). */
  #plmCard .plm-zone { padding: 7px 6px !important; }
  #plmCard .plm-row { padding: 5px 4px !important; }
  #plmCard .plm-row.golden-cross, #plmCard .plm-row.death-cross, #plmCard .plm-row.mine { margin: 0 !important; }
  #plmCard .plm-act { width: 54px !important; margin-right: 6px !important; letter-spacing: .02em !important; }
  #plmCard .plm-lgrp { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; }
  #plmCard .plm-lgrp { flex-wrap: wrap !important; row-gap: 1px !important; }
  #plmCard .plm-ltext { min-width: 0 !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: break-word !important; line-height: 1.2 !important; }
  #plmCard .plm-hvol { width: auto !important; margin-right: 0 !important; padding-left: 6px !important; }
  #plmCard .plm-price { flex: 0 0 auto !important; min-width: 0 !important; padding-left: 8px !important; }
  #plmCard .plm-pct { flex: 0 0 auto !important; width: auto !important; min-width: 44px !important; padding-left: 4px !important; }
  #maStackChips { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .tfa2 .t2-header { flex-wrap: wrap !important; row-gap: 10px !important; }
  .tfa2 .t2-filters { flex-wrap: wrap !important; max-width: 100%; flex: 1 0 100% !important; row-gap: 8px !important; }
  .tfa2 .filter-group + .filter-group { margin-left: 8px !important; }
  /* factor column headers: the "21/25 scored · 89%" count moves under the column title */
  .col-header { flex-wrap: wrap !important; row-gap: 2px !important; }
  .col-header .col-count { flex: 1 0 100% !important; }
  /* gauge status pills ("Moderate setup", "No comparable edge yet"): wrap instead of being cut short */
  .tfa2 .status-label { white-space: normal !important; overflow: visible !important; text-overflow: clip !important;
    max-width: 100% !important; width: auto !important; font-size: 10.5px !important; letter-spacing: .2px !important; line-height: 1.25 !important; padding: 5px 7px !important; }
  .tfa2 .t2-filters > * { min-width: 0; flex-wrap: wrap !important; }
  /* headline cards (Direction, Duration, Strategy, Risk, Your Edge): two to a row in the same order,
     with the dial sized to fit the card; the fifth (Your Edge) across the full width */
  .tfa2 .gauges-row > .gauge-card { padding: 16px 10px !important; }
  .tfa2 .gauges-row > .gauge-card:last-child { grid-column: 1 / -1; }
  .tfa2 .gauge-wrapper, .tfa2 .gauge-svg { width: 112px !important; height: 112px !important; }
  /* ... and never wider than its card: at 320-374px the card leaves 89-109px, and the 112px dial ran 3-23px past it
     (the Journal Risk card at 320px made the member page scroll 16px sideways; T-219, checker-o3 on #2608). The dial
     shrinks to the card, round; 112px wherever the card has room (390px and up), so nothing else changes. */
  .tfa2 .gauge-wrapper { width: min(112px, 100%) !important; height: auto !important; aspect-ratio: 1 / 1; }
  .tfa2 .gauge-wrapper .gauge-svg { display: block; width: 100% !important; height: 100% !important; }
  /* ... and the number in it shrinks with the dial, never below 80% of its 26px (Tasha, Nov 4 2026 "Shrink to fit");
     26px wherever the dial is 112px (checker-o6 on #2655: "±11.4%" ran 5.9px past an 89px dial at 320) */
  .tfa2 .gauge-wrapper { container-type: inline-size; }
  .tfa2 .gauge-wrapper .gauge-value { font-size: clamp(20.8px, 23.22cqw, 26px) !important; }
  /* the dial's two rings: 6px and 14px at 112px, scaled with a smaller dial (#2655), so its inner disc shrinks with it */
  .tfa2 .gauge-wrapper::before { inset: min(6px, 5.36cqw) !important; }
  .tfa2 .gauge-wrapper::after { inset: min(14px, 12.5cqw) !important; }
  .tfa2 .gauge-value { font-size: 26px !important; }   /* one small step down (Tasha, Nov 4 2026) */
  /* ticker header (logo · name · price): wraps; the price block drops its divider when it moves under */
  .hud-row [style*="align-items:center;gap:18px"] { flex-wrap: wrap !important; row-gap: 10px !important; }
  .hud-row [style*="border-left:1px solid rgba(201,165,110,.3);padding-left:16px"] { border-left: 0 !important; padding-left: 0 !important; }
  #ovGrid { grid-template-columns: minmax(0, 1fr) !important; }
  /* small stat boxes (current position, glance rows): two to a row, labels may wrap */
  .glance .gt { flex: 1 1 40% !important; }
  .glance .gt .k { white-space: normal !important; }
  #posCard .gt { padding: 4px 10px !important; }
  /* page header: tighter gap and a smaller logo beside the title */
  [style*="display:flex;gap:30px;align-items:center"] { gap: 14px !important; }
  [style*="display:flex;gap:30px;align-items:center"] img { width: 84px !important; height: auto !important; }
  /* catalyst calendar rows wrap; two-column sections stack */
  .catrow { flex-wrap: wrap !important; row-gap: 4px !important; }
  .catrow > .ct2 { flex: 1 1 150px !important; min-width: 150px !important; }
  [style*="grid-template-columns:1.15fr 1fr"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* the Trade Plan document keeps its full document layout and swipes sideways, like a PDF */
  .tpdoc { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .tpdoc > * { min-width: 720px; }
  /* Full financials: the Key Ratios and Quarterly Income Statement tables keep every column and swipe sideways inside
     their box, as the other wide tables do on a phone (T-343: at 320 and 390px two "Not available" cells sat off the
     screen and the page scrolled sideways). The table scrolls; its body still fills the box when there is room. */
  .finwide > table.data { display: block !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .finwide > table.data > tbody { display: table; width: 100%; }
  .wlrow { min-width: 1100px; }

  /* ---- Community: Your rank (ranks release, Sept 30) — the next-rank checklist and the
     points ledger stack one tile per row on a phone ---- */
  .ilrank-next, .ilrank-ledger { grid-template-columns: minmax(0, 1fr) !important; }

  /* ---- Home: Your Rank and your Achievements, the line under the title ("Trading milestones, education progress and
     what you have just earned") wraps instead of being cut short with "…" (it needs about 443px on one line; audit
     T-219, found on the member Home at 320 and 390 by the #2262 live check). As Community's "Earned from milestones …"
     line (#your-rank small, Tasha Nov 2 2026 "fix 1-3"). Phones only; 768px and wider unchanged. ---- */
  [data-il-rank-sub] { white-space: normal !important; }

  /* ---- Home: Latest from Ironline (welcome message, Oct 1) — each message row keeps its tag,
     date and arrow on one line with the subject full width under them; an opened message uses
     the full width (not the desktop 161px indent) and its buttons wrap ---- */
  [style*="gap: 13px; padding: 10px 15px; cursor: pointer"] { flex-wrap: wrap !important; row-gap: 7px !important; }
  [style*="gap: 13px; padding: 10px 15px; cursor: pointer"] > span:nth-of-type(2) { order: 5; flex: 1 0 100% !important; }
  [style*="gap: 13px; padding: 10px 15px; cursor: pointer"] > span:nth-of-type(3) { margin-left: auto !important; }
  [style*="padding: 4px 15px 14px 161px"] { padding-left: 15px !important; }
  [style*="padding: 4px 15px 14px 161px"] > div:last-child { flex-wrap: wrap !important; row-gap: 7px !important; }

  /* ---- Home: Action Center with Select all (Oct 30 2026). Only Home has the Select all bar ([data-il-bulk]), so
     these reach no other page. Each group's label tile sits above its rows (as the demo already does), and in a
     row the tick box, ticker and message share the line: the message narrows to fit instead of running past the
     edge, and the time/status line wraps under it ---- */
  [data-il-bulk] ~ [style="display: flex; align-items: stretch; gap: 8px;"] { flex-direction: column !important; gap: 4px !important; }
  [data-il-bulk] ~ [style="display: flex; align-items: stretch; gap: 8px;"] > [style^="display: flex; align-items: center; gap: 9px; width: "] { width: auto !important; min-width: 0 !important; }
  [data-il-bulk] ~ div [style*="gap: 12px; padding: 7.5px 18px; cursor: pointer"] { flex-wrap: wrap !important; gap: 6px 10px !important; padding-left: 12px !important; padding-right: 12px !important; }
  [data-il-bulk] ~ div [style*="gap: 12px; padding: 7.5px 18px; cursor: pointer"] > span[style*="min-width: 180px"] { min-width: 0 !important; flex: 1 1 0% !important; }
  [data-il-bulk] ~ div [style*="gap: 12px; padding: 7.5px 18px; cursor: pointer"] > span:nth-of-type(2) { order: 5; flex: 1 0 100% !important; white-space: normal !important; padding-left: 24px; }

  /* ---- site footer (the same footer on most member pages): its text column has a 320px minimum
     width, wider than a 320px phone once the page edges are taken off. On a phone the column
     takes its own full-width row (as it already does at 360px and wider) and may narrow ---- */
  footer > [style*="min-width: 320px"], footer > [style*="min-width:320px"] { min-width: 0 !important; flex-basis: 100% !important; }
  /* the page footer in the Market layout (Oct 29 2026) on a phone: its three parts take a row each, with less
     space between them; the text keeps the full width (no divider indent); the legal links, a right-aligned
     column on desktop, sit under the text, left-aligned and wrapping */
  footer[data-il-pagefoot] { gap: 14px !important; padding: 18px 18px 16px !important; }
  footer[data-il-pagefoot] > [data-il-foot-text] { border-left: 0 !important; padding-left: 0 !important; }
  footer[data-il-pagefoot] > [data-il-foot-links] { flex: 1 1 100% !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; justify-content: flex-start !important; gap: 8px 18px !important; text-align: left !important; }

  /* ---- Journal Reports, How These Scores Are Built: the score-band tables (band · N · win % ·
     95% interval · avg R · net R). The five number columns are narrower on a phone (every value
     still fits) so the band name has room; it may take a second line instead of being cut to
     its first letter ---- */
  [style*="grid-template-columns: minmax(0px, 1fr) 44px 54px 92px 62px 62px"] { grid-template-columns: minmax(0, 1fr) 32px 40px 58px 50px 56px !important; }
  [style*="grid-template-columns: minmax(0px, 1fr) 44px 54px 92px 62px 62px"] > * { padding-left: 4px !important; padding-right: 4px !important; }
  [style*="grid-template-columns: minmax(0px, 1fr) 44px 54px 92px 62px 62px"] > :first-child { padding-left: 8px !important; white-space: normal !important; }

  /* ---- Journal Reports, Planning Numbers, "Does The Edge Survive Size?" (risk per trade · avg $ · N · avg R · net R):
     the four number columns are narrower on a phone (every value still fits) so the risk band's name has room; it may
     take a second line instead of being cut with "…" (T-245, Nov 12 2026: the top band now reads "$450 and over") ---- */
  [style*="grid-template-columns: minmax(0px, 1fr) 62px 40px 62px 62px"] { grid-template-columns: minmax(0, 1fr) 54px 30px 56px 54px !important; }
  [style*="grid-template-columns: minmax(0px, 1fr) 62px 40px 62px 62px"] > * { padding-left: 4px !important; padding-right: 4px !important; }
  [style*="grid-template-columns: minmax(0px, 1fr) 62px 40px 62px 62px"] > :first-child { padding-left: 8px !important; }

  /* ---- Market, Squeeze Confluence: the six ticker stats (last · RVOL · ATR · float · avg vol ·
     next earnings) were squeezed into an 80px strip beside the ticker box; on a phone they take
     the full width under it, three to a row ---- */
  .sq-topbar { flex-wrap: wrap !important; }
  .sq-tickerstats { flex: 1 1 100% !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  /* Market, Economic Conditions (Rates · Inflation · Labor): the three tiles stay in one row when
     they fit and wrap (the last one full width) when they don't, instead of running off the screen */
  .econ-status { display: flex !important; flex-wrap: wrap !important; }
  .econ-status > * { flex: 1 1 0% !important; }
  /* Market, Economic Conditions calendar: a line can now break between the release time and the event name, so the
     name drops under the time when the two don't fit side by side, instead of pushing the Prior, Fcst and Impact
     columns (and the impact badges) past the card and the screen with View All open (audit F-tf10-12, Nov 11 2026).
     The zero-width break point draws nothing; a row that already fits keeps its one line. */
  .event-row .name::before { content: "\200B"; }

  /* ---- Trades, a trade's adherence tiles: the "rule breaks on this trade" note (250px wide) was
     centred on its narrow tile and ran past the right edge; on a phone it lines up with the right
     end of the tile row instead ---- */
  [style^="display: flex; gap: 6px;"] > :nth-child(4) > .adh-tip { left: auto !important; right: -88px !important; transform: none !important; }
  /* Journal, Broker Sync, Unmatched trades (Tasha, Oct 6 2026): the three boxes at the top of each row
     (From your broker / the match / What is different) sit one under another at full width instead of
     squeezing into each other; the arrow between the first two points down */
  [style*="auto) 30px minmax("] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="auto) 30px minmax("] > :nth-child(2) > span { transform: rotate(90deg); }
  /* Phase 4 (Oct 2026), new parts only, phone only: Portfolio heat tiles two to a row (Trades and the Journal
     snapshot), their lines may wrap; a short's hold-past-plan table three to a row */
  [data-il-heat-tiles] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  [data-il-heat-tiles] > div > div { white-space: normal !important; }
  #il-heat > div:nth-child(2) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #il-heat > div:nth-child(2) > div > div { white-space: normal !important; }
  [data-il-hpp] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  /* Journal score cards (Analytics: Expected Move, Strategy Match, Risk & Size, Management), phone only (Nov 9 2026;
     Tasha's Sept 28 mobile rule: previewed for her). The card's header keeps the title and the arrow on its first line, the
     WORTH figure on the next and the description under it (the title no longer runs into WORTH); each band row puts the
     band name on its own line above its five figures, so no figure is cut off at 360-390px. Nothing here matches above
     767px, and the selectors match only these cards (their header group and band rows are written nowhere else). */
  [style^="display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, rgb(182, 192, 207), rgb(133, 147, 168));"] > span[style^="margin-left: auto; display: flex; align-items: baseline; gap: 10px; white-space: nowrap;"] { order: 4; flex: 1 1 100% !important; flex-wrap: wrap !important; row-gap: 2px !important; }
  [style*="grid-template-columns: minmax(0px, 1fr) 44px 52px 88px 60px 60px"] { grid-template-columns: minmax(0, .7fr) minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1.1fr) !important; column-gap: 6px !important; row-gap: 1px !important; }
  [style*="grid-template-columns: minmax(0px, 1fr) 44px 52px 88px 60px 60px"] > :first-child { grid-column: 1 / -1; }
  /* Journal Reports score cards, phone only (Tasha, Nov 9 2026, AQ-74: "Wrap on phones"; audit F-m1216-03): the four
     tiles' verdict words (WORTH and its line, the closed-trade count and its line, AVAILABLE, EVIDENCE STATUS) wrap onto a
     second line instead of being cut with "…". The tile labels and everything above 767px are unchanged; the attribute is
     written only on those four tiles. */
  [data-il-sc4v] > :not(:first-child) { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: break-word; }
  /* Journal Analytics, Calendar (audit F-tf10-17, Nov 11 2026): the three tiles beside the month (THIS MONTH, UP / DOWN
     DAYS, BEST & WORST) were held at least 420px wide, so on phones they ran past the card and the page scrolled sideways
     (51-121px at 320-390px). They take the card's full width on their own line under the month, still three side by side,
     and a tile's two figures may carry onto a second line. */
  [style^="flex: 1 1 0%; min-width: 420px; display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr))"] { min-width: 0 !important; flex: 1 1 100% !important; }
  [style^="flex: 1 1 0%; min-width: 420px; display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr))"] > span > [style="display: flex; align-items: baseline; gap: 9px;"] { flex-wrap: wrap !important; row-gap: 0 !important; }
  /* Journal Analytics, Long vs Short (Nov 11 2026): each card's six figures (WIN RATE … AVG LOSER) four to a row, as
     before, but as tiles that wrap, the way #1547 did it at 768-1079px: a figure (or a label word) wider than its quarter
     widens its own tile and the tiles after it carry onto the next line, so no figure runs into the next tile or past the
     box (the demo's NET P&L "+$20,150" ran 4-21px into PROFIT FACTOR at 320-390px, and six- or seven-figure amounts up to
     35px). Where the figures fit their quarter nothing moves. Phone only. */
  #ana-lvs [style^="display: grid; grid-template-columns: repeat(6, 1fr)"] { display: flex !important; flex-wrap: wrap !important; }
  #ana-lvs [style^="display: grid; grid-template-columns: repeat(6, 1fr)"] > * { flex: 0 0 calc((100% - 24px) / 4); min-width: min-content; }
  /* ---- Journal Analytics, Top 10 (Nov 8 2026; the demo's fix of Nov 7, PR #1144, brought to the member page): the
     cards sit one to a row instead of two (side by side they ran ~240px past a 390px screen), each factor list swipes
     sideways with its desktop columns, and a Top 10 factor's name gets its own line above its figures. The same
     two-column markup (Long vs Short, the scoreboard's section cards) follows the same rule, as on the demo. Phone only:
     nothing here matches a screen 768px or wider. ---- */
  [style^="display: grid; grid-template-columns: 1fr 1fr; gap: 10px"]:has(> [style^="background: linear-gradient(to right, rgb(15, 23, 42) 0%, rgb(23, 32, 56) 50%"]) { grid-template-columns: minmax(0, 1fr) !important; }
  [style^="display: grid; grid-template-columns: 1fr 1fr; gap: 10px"] > [style^="background: linear-gradient(to right, rgb(15, 23, 42) 0%, rgb(23, 32, 56) 50%"] { min-width: 0 !important; }
  [style^="display: flex; flex-direction: column; gap: 6px;"]:has(> div > [style^="display: grid; grid-template-columns: 96px minmax(0px, 1fr) 50px 96px 72px 54px"]),
  [style^="display: flex; flex-direction: column; gap: 6px;"]:has(> [style^="display: grid; grid-template-columns: 96px minmax(0px, 1fr) 50px 96px 72px 54px"]) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  div:has(> [style^="display: grid; grid-template-columns: 96px minmax(0px, 1fr) 50px 96px 72px 54px"]):not([style^="display: flex; flex-direction: column; gap: 6px;"]),
  [style^="display: flex; flex-direction: column; gap: 6px;"] > [style^="display: grid; grid-template-columns: 96px minmax(0px, 1fr) 50px 96px 72px 54px"] { min-width: 520px; }
  [style^="display: grid; grid-template-columns: 26px minmax(0px, 1fr) 62px 54px 50px"] { row-gap: 2px !important; }
  [style^="display: grid; grid-template-columns: 26px minmax(0px, 1fr) 62px 54px 50px"] > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  [style^="display: grid; grid-template-columns: 26px minmax(0px, 1fr) 62px 54px 50px"] > :nth-child(2) { grid-column: 2 / -1; grid-row: 1; white-space: normal !important; overflow: visible !important; }
  [style^="display: grid; grid-template-columns: 26px minmax(0px, 1fr) 62px 54px 50px"] > :nth-child(3) { grid-column: 3; grid-row: 2; }
  [style^="display: grid; grid-template-columns: 26px minmax(0px, 1fr) 62px 54px 50px"] > :nth-child(4) { grid-column: 4; grid-row: 2; }
  [style^="display: grid; grid-template-columns: 26px minmax(0px, 1fr) 62px 54px 50px"] > :nth-child(5) { grid-column: 5; grid-row: 2; }
}

/* Short screens (phones held sideways, e.g. 844x390): the Journal's dialogs open below the sticky nav and scroll
   inside the room that is left, as on a phone held upright (second check, Nov 1 2026). Only screens under 521px
   tall match. */
@media (max-height: 520px) {
  [role="dialog"][aria-modal="true"][style*="background: rgba(4, 10, 26, 0.72)"][style*="z-index: 200"] { align-items: flex-start !important; padding: calc(var(--il-nav-bottom, 0px) + 8px) 8px 8px !important; }
  [role="dialog"][aria-modal="true"][style*="background: rgba(4, 10, 26, 0.72)"][style*="z-index: 200"] > div { max-width: 100% !important; max-height: calc(100vh - var(--il-nav-bottom, 0px) - 16px) !important; max-height: calc(100dvh - var(--il-nav-bottom, 0px) - 16px) !important; }
}

/* ---- the smallest phones (under 360px wide, e.g. 320px): a few rows that fit at 360px but not
   at 320px. Every rule here only lets an existing row wrap or stack; nothing is hidden. ---- */
@media (max-width: 359px) {
  /* Community, Leaderboards: one board to a row under 360px, so each name has the board's full width (Tasha, Nov 20 2026,
     needs-tasha #2423, option A, "One per row <360px": "Below 360 px wide only, leaderboards go one per row so each name
     has the full width. Wider screens unchanged."; at 320px two to a row cut "Sample Trader A." 14px). Member and demo. */
  [style^="display: grid; grid-template-columns: repeat(6, minmax(0px, 1fr)); gap: 10px;"]:has(> [style*="padding: 11px 12px 10px"]) { grid-template-columns: minmax(0, 1fr) !important; }
  /* Home, Action Center rows: each message takes its own full-width line under the tick box and the ticker, above the
     time line, instead of a 62-68px column beside them (Tasha, Nov 16 2026, app #2092, "Own line, under 360
     (Recommended)"; T-709; member and demo). 360px and up unchanged. */
  [data-il-bulk] ~ div [style*="gap: 12px; padding: 7.5px 18px; cursor: pointer"] > span[style*="min-width: 180px"] { order: 4; flex: 1 0 100% !important; padding-left: 24px; }
  [data-il-bulk] ~ div [style*="gap: 12px; padding: 7.5px 18px; cursor: pointer"] > span:nth-of-type(3) { margin-left: auto; }
  /* Home, Action Center group headings: the subtitle ("Alerts you route to the dashboard in Settings") takes the line
     beside its arrow and the source goes under it, instead of the subtitle squeezed to 79-112px over 3-4 lines beside
     the source (audit D-home-NEW-2, Nov 18 2026; the same heading layout as the other pages' Action Center on phones,
     _demo-mobile.css). Member and demo; 360px and up unchanged. */
  [data-il-bulk] ~ div [style^="display: flex; align-items: center; gap: 11px; padding: 5px 12px; margin: 4px 8px; cursor: pointer"] { flex-wrap: wrap !important; row-gap: 2px !important; }
  [data-il-bulk] ~ div [style^="display: flex; align-items: center; gap: 11px; padding: 5px 12px; margin: 4px 8px; cursor: pointer"] > span:first-of-type { flex: 1 1 calc(100% - 30px) !important; min-width: 0 !important; }
  [data-il-bulk] ~ div [style^="display: flex; align-items: center; gap: 11px; padding: 5px 12px; margin: 4px 8px; cursor: pointer"] > span:nth-of-type(2) { margin-left: 26px !important; }
  /* Community gear, HOW IT OPENS: each label on its own line above its choices (T-440 follow-up: at 320px "Leaderboards
     show" ran past its box beside MEMBERS / TEAMS) */
  [data-il-howopens] { flex-wrap: wrap !important; row-gap: 6px !important; }
  [data-il-howopens] > span:first-child { flex: 1 0 100% !important; }
  /* Journal Reports: score-band tables, the band name on its own line above its five numbers */
  [style*="grid-template-columns: minmax(0px, 1fr) 44px 54px 92px 62px 62px"] { grid-template-columns: 32fr 40fr 58fr 50fr 56fr !important; }
  [style*="grid-template-columns: minmax(0px, 1fr) 44px 54px 92px 62px 62px"] > :first-child { grid-column: 1 / -1 !important; }
  /* Journal Analytics, Find Your Edge: the Scope / Show / Sort labels sit above their buttons */
  [style^="display: grid; grid-template-columns: 56px minmax(0px, 1fr); column-gap: 16px"] { grid-template-columns: minmax(0, 1fr) !important; row-gap: 8px !important; }
  /* gold section headings ("The Numbers Behind Your Edge", the Reports scorecard title) may wrap */
  [style*="-webkit-text-fill-color: transparent"][style*="white-space: nowrap"] { white-space: normal !important; }
  /* Journal Analytics score cards: "worth" and the evidence label may take two lines */
  [style^="margin-left: auto; display: flex; align-items: baseline; gap: 10px; white-space: nowrap"] { flex-wrap: wrap !important; row-gap: 2px !important; }
  /* Journal Reviews: "Include my live rules in the results" may wrap */
  [style^="align-self: center; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;"][style*="white-space: nowrap"] { white-space: normal !important; }
  /* Trades and Research page headers: a smaller logo beside the title; Research's header card
     uses the same 12px phone edges as the other pages */
  [style*="padding: 16px 34px 10px"] > [style^="display: flex; gap: 30px; align-items: center;"] { gap: 14px !important; }
  [style*="padding: 16px 34px 10px"] > [style^="display: flex; gap: 30px; align-items: center;"] img,
  [style*="padding:16px 34px 10px"] > [style*="display:flex;gap:30px;align-items:center"] img { width: 64px !important; height: auto !important; }
  [style*="padding:16px 34px 10px"] { padding-left: 12px !important; padding-right: 12px !important; }
  /* Research, signal rows (technicals, squeeze): the label column narrows and the pill keeps its
     width; the four price chips above the chart go two to a row */
  .sqrow { grid-template-columns: minmax(0, 1fr) 40px minmax(6px, 18px) auto !important; column-gap: 8px !important; }
  [style*="display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:8px"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* Market, Short Data: the column headings let their badge drop under the title */
  .short-col-head { flex-wrap: wrap !important; }
  /* Community: the leaderboard's Mine/Everyone and Solo/Teams switches may wrap; on a team card
     the Peek / Join buttons may drop under the "live now" line */
  [style^="margin-left: auto; display: flex; align-items: center; gap: 14px"] { flex-wrap: wrap !important; row-gap: 8px !important; }
  [style^="display: flex; align-items: center; gap: 10px; padding-top: 2px; min-width: 0px"] { flex-wrap: wrap !important; row-gap: 8px !important; }
  /* Academy header: the "hours of guided material" chip may wrap */
  [style^="margin-left: auto; display: flex; align-items: center; background: linear-gradient(rgba(16, 25, 44, 0.9)"],
  [style^="margin-left: auto; display: flex; align-items: center; background: linear-gradient(rgba(16, 25, 44, 0.9)"] > b { white-space: normal !important; }
  /* Journal Reviews, Trade Review, PLAN VS ACTUAL (T-311, live check of app #1694 and second check of app #1795, Nov 13
     2026): the figures a step smaller (12px to 10.5px, DIFFERENCE 11px to 10px), so four-digit prices and differences
     ("$2,214.00", "−$1,044.00", "+24,000 sh") fit their columns at 340-359px; the columns and the card's sides are in
     the under-375px block below, one more step under 340px. Words unchanged. */
  [style*="grid-template-columns: 74px repeat(3, minmax(0px, 1fr))"] > [style^="font-size: 12px;"] { font-size: 10.5px !important; }
  [style*="grid-template-columns: 74px repeat(3, minmax(0px, 1fr))"] > [style^="font-size: 11px;"] { font-size: 10px !important; }
  /* ---- Very small phones, audit Q-tf10-01 (Tasha, Nov 10 2026, "Fix them before launch (Recommended)": "Fix all four in
     the existing style, for screens under 360px only; nothing changes at 360px and up or on desktop."): findings
     F-tf10-09 and -13 and the 320-340px parts of -06 and -12 (F-tf10-11, a tile label too long for its tile, is in
     ironline-nav-fit.js). Each rule only lets an existing row wrap or stack, narrows a column or steps a figure down. ---- */
  /* Academy, Member Path card (F-tf10-09): its text column shrinks with the card instead of keeping 260px */
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] [style*="min-width: 260px"] { min-width: 0 !important; }
  /* Academy, each stage card's SECTIONS · COURSES · LESSONS · TIME (F-tf10-09): two to a row, so the labels don't run together */
  [style*="width: 100%; border-top: 1px solid"][style*="padding-top: 10px; margin-top: auto;"]:has(> [style^="flex: 1 1 0%; display: flex; flex-direction: column; gap: 2px"]) { flex-wrap: wrap !important; row-gap: 8px !important; }
  [style*="width: 100%; border-top: 1px solid"][style*="padding-top: 10px; margin-top: auto;"] > [style^="flex: 1 1 0%; display: flex; flex-direction: column; gap: 2px"] { flex: 1 1 50% !important; }
  /* Trades, a card's five silver tiles (OPEN R, RISK LEFT, PLAN, RULES, LADDER) (F-tf10-13): three to a row */
  [style="display: flex; gap: 6px;"]:has(> [style^="flex: 1 1 0%; min-width: 0px; background: linear-gradient(160deg, rgb(91, 107, 128) 0%"]) { flex-wrap: wrap !important; }
  [style="display: flex; gap: 6px;"] > [style^="flex: 1 1 0%; min-width: 0px; background: linear-gradient(160deg, rgb(91, 107, 128) 0%"] { flex: 1 1 calc(33.333% - 4px) !important; }
  /* ... and PLAN's note (250px wide), now at the right end of the first row, lines up with that tile's right edge */
  [style^="display: flex; gap: 6px;"] > :nth-child(3) > .adh-tip { left: auto !important; right: 0 !important; transform: none !important; }
  /* Journal Reviews, Trade Review: the plan's three columns (thesis, trigger, INVALIDATION) one under the other (F-tf10-06) */
  [style^="display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 0px; border-top: 2px solid rgba(148, 163, 184, 0.16)"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style^="display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 0px; border-top: 2px solid rgba(148, 163, 184, 0.16)"] > * { padding: 0 !important; border-left: 0 !important; }
  [style^="display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 0px; border-top: 2px solid rgba(148, 163, 184, 0.16)"] > * + * { margin-top: 10px; padding-top: 10px !important; border-top: 1px solid rgba(148, 163, 184, 0.16) !important; }
  /* Journal Reviews, Every order: narrower columns and a slightly smaller fill price, so $552.10 stays in its row (F-tf10-06);
     the order type (ENTRY, its column squeezed to nothing here) goes on a second line under the time, heading included */
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] { grid-template-columns: 46px minmax(0, 1fr) 30px 42px 52px !important; gap: 3px !important; }
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] > :nth-child(2) { grid-column: 1 / -1 !important; grid-row: 2 !important; }
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] > :nth-child(n+3) { grid-row: 1 !important; }
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] > :nth-child(3) { grid-column: 3 !important; }
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] > :nth-child(4) { grid-column: 4 !important; }
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] > :nth-child(5) { grid-column: 5 !important; }
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] > b { font-size: 12px !important; }
  /* Journal Reviews, Rules Simulator: the baseline tiles (NET R +265.4R, EXPECTANCY, R PER TRADE) two to a row (F-tf10-06) */
  [style="display: flex; gap: 2px; padding-top: 0px;"]:has(> [style^="flex: 1 1 0%; background: linear-gradient(135deg, rgb(173, 185, 205), rgb(71, 85, 105))"]) { flex-wrap: wrap !important; }
  [style="display: flex; gap: 2px; padding-top: 0px;"] > [style^="flex: 1 1 0%; background: linear-gradient(135deg, rgb(173, 185, 205), rgb(71, 85, 105))"] { flex: 1 1 40% !important; }
  /* Market, Economic Conditions: each status tile as wide as its word (MODERATING), carrying onto a second line (F-tf10-13);
     the calendar's rows on narrower figure columns, so the impact badges stay on the screen with View All open (F-tf10-12) */
  .econ-status > * { flex: 1 1 auto !important; }
  .event-row { grid-template-columns: minmax(0, 1fr) 40px 40px 60px !important; gap: 4px !important; }
  /* Market, Dark Pool: narrower ticker, amount and badge columns, so each bar is wide enough for its % (F-tf10-13) */
  .dp-row { grid-template-columns: 42px minmax(0, 1fr) 50px 66px !important; gap: 6px !important; }
  /* Market, news: a story's chips keep their words on one line and the time may drop under them (F-tf10-13) */
  .news-top { flex-wrap: wrap !important; row-gap: 4px !important; }
  .news-top .chip { white-space: nowrap !important; }
  /* Market, SEC Risk with View All open: narrower side columns; the form (8-K) may go under the ticker and the filing type
     wraps inside its tag */
  .sec-row { grid-template-columns: 76px minmax(0, 1fr) 84px !important; gap: 8px !important; }
  .sec-row .sec-id { flex-wrap: wrap !important; row-gap: 4px !important; min-width: 0 !important; }
  .sec-right .type-tag { height: auto !important; min-height: 18px; padding: 2px 6px !important; line-height: 1.25 !important; white-space: normal !important; max-width: 100% !important; box-sizing: border-box; }
  /* Research, Macro Conditions: RATES, INFLATION and LABOR one under the other (F-tf10-13) */
  .econ3 { grid-template-columns: minmax(0, 1fr) !important; }
  .econ3 .e { border-left: 0 !important; }
  .econ3 .e + .e { border-top: 1px solid rgba(148, 163, 184, .18) !important; }
  /* Research, EMA stack by timeframe (INTERLEAVED) and the MA readings (−0.30 → narrowing): two to a row (F-tf10-13) */
  #maStackChips { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #maResult > .chip[style*="span 3"] { grid-column: span 6 !important; }
  /* Research, Chart Patterns: a narrower match bar, so the % stays in the card; Signal Matrix: "100%" a step smaller, with
     no side padding and a hair tighter, so it also fits in a wider fallback font when Inter doesn't load (F-tf10-13) */
  #patternCard .sbar { min-width: 84px !important; }
  #heatmapCard table.hm td.cell { font-size: 9px !important; padding-left: 0 !important; padding-right: 0 !important; letter-spacing: -0.2px; }
}

/* Journal Reviews, Trade Review, PLAN VS ACTUAL, under 375px only (T-119; second check of app #1523, Nov 12 2026): the
   PLANNED / ACTUAL / DIFFERENCE headings a step smaller (9px to 8px) and less spaced, so DIFFERENCE (and PLANNED at 320px)
   stays inside its cell (it ran up to 14.5px past it at 320px and up to 4px at 360-370px). Words unchanged; nothing here
   matches from 375px.
   The columns and the card's sides (T-311, live check of app #1694 and second check of app #1795, Nov 13 2026: a
   three-digit PLANNED price ran 6px past its cell at 320px, four-digit prices and differences up to 16.5px at 320-374px):
   the card keeps 8px at each side instead of 16px, a 44px label column and 3px gaps, and the three figure columns stay
   equal, each wider than before at every width here. */
@media (max-width: 374px) {
  [style*="grid-template-columns: 74px repeat(3, minmax(0px, 1fr))"] > [style^="font-size: 9px; font-weight: 800; letter-spacing: 0.7px;"] { font-size: 8px !important; letter-spacing: 0.1px !important; }
  [style*="grid-template-columns: 74px repeat(3, minmax(0px, 1fr))"] { grid-template-columns: 44px repeat(3, minmax(0, 1fr)) !important; gap: 3px !important; }
  div:has(> [style*="grid-template-columns: 74px repeat(3, minmax(0px, 1fr))"]) { padding-left: 8px !important; padding-right: 8px !important; }
}

/* ... and under 340px only (T-311): the figures one more step smaller (10px, DIFFERENCE 9px), so four-digit prices and
   differences fit at 320px too. Nothing here matches from 340px. */
@media (max-width: 339px) {
  [style*="grid-template-columns: 74px repeat(3, minmax(0px, 1fr))"] > [style^="font-size: 12px;"] { font-size: 10px !important; }
  [style*="grid-template-columns: 74px repeat(3, minmax(0px, 1fr))"] > [style^="font-size: 11px;"] { font-size: 9px !important; }
  /* ... and under 340px the builder's field list's longest names ("Position size (shares)", "Strategy Match (%)") are
     still wider than the list box, which can't wrap: its text steps down to 11px (88%), her "Shrink to fit" (Nov 4 2026,
     #1091: "Any label that can't wrap may shrink a little (80% at most) to fit"). T-1395, member and demo. */
  [style^="display: grid; grid-template-columns: minmax(0px, 1fr) minmax(0px, 1.1fr); gap: 14px"] select[style*="min-width: 140px"] { font-size: 11px !important; }
}

/* Journal Reports, Factor Scoreboard, DETAILED, on phones and tablets up to 1079px (T-219 audit row M-journal-34.1004,
   Nov 22 2026): each subsection's factor table (FACTOR · N · WIN % · AVG R · NET R · EDGE vs 0 · SAMPLE) has six fixed
   columns (354px) after the name, so at 320 and 390px the name column was a letter or two wide ("Br", "Ri", "C") and the
   SAMPLE column ran 77px past the card, which hides its overflow. The table now keeps its columns, with room for the
   names, and swipes sideways inside its subsection, as the other wide report tables do: the same two rules the demo's
   sheet has carried since T-607 (#2101). Where the table fits its card nothing moves; above 1079px nothing here matches. */
@media (max-width: 1079px) {
  [id^="rp-s"] div:has(> [style*="display: grid;"][style*="grid-template-columns: "][style*="38px 48px 52px 56px minmax(80px, 1fr) 80px"]) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  [id^="rp-s"] [style*="display: grid;"][style*="grid-template-columns: "][style*="38px 48px 52px 56px minmax(80px, 1fr) 80px"] { min-width: 540px; }
}

/* Journal Reports score cards on tablets, 768px to 1180px only (Tasha, Nov 9 2026, AQ-74 follow-up: "Yes, tablets too";
   then AQ-142, iPads held sideways: "Yes, to 1180px (Recommended)"; audit F-m1216-03): the four tiles' verdict words wrap
   onto a second line instead of being cut with "…", the same rule as in the phone block. The tile labels are unchanged,
   and above 1180px (desktop) nothing here matches. The demo's sheet carries the same block in the same place, for the
   demo Journal's tiles. */
@media (min-width: 768px) and (max-width: 1180px) {
  [data-il-sc4v] > :not(:first-child) { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: break-word; }
}

/* Tablets, 768px to 1180px only (Tasha, Nov 1 2026: "yes=fix the tablet layout"; tablets held sideways, iPad
   landscape 1024-1180px, count too: "yes", small laptops of those widths included). */
@media (min-width: 768px) and (max-width: 1180px) {
  /* Trades · Armed alerts (audit F-acct35-b4-13, Nov 10 2026; replaces the Nov 4 sideways swipe here, which left KEEP and
     DELETE past the card's edge with no cue): each row fits the card. The six columns share the width and their words
     wrap, and EDIT, KEEP and DELETE sit on a second line under the alert. Phones keep the swipe. */
  [style^="display: grid; grid-template-columns: 96px minmax(190px, 1fr) 108px"] { grid-template-columns: 96px minmax(0, 1.6fr) minmax(0, .9fr) minmax(min-content, 1.1fr) minmax(0, 1fr) minmax(0, .7fr) !important; row-gap: 8px !important; }
  [style^="display: grid; grid-template-columns: 96px minmax(190px, 1fr) 108px"] > :nth-child(7) { grid-column: 2 / -1; }
  [style^="display: grid; grid-template-columns: 96px minmax(190px, 1fr) 108px"] > :nth-child(n+3):nth-child(-n+6) > * { white-space: normal !important; overflow-wrap: anywhere; max-width: 100%; }
  /* The distance cell ("+28025.2% away", "closest +2.8%"): a number is never broken. Its words wrap, and the column is at
     least as wide as its longest word (audit F-H1b-3, Nov 16 2026: "+28025.2%" broke mid-number at 768px; Tasha, Nov 4
     2026: words kept whole). */
  [style^="display: grid; grid-template-columns: 96px minmax(190px, 1fr) 108px"] > :nth-child(4) > * { overflow-wrap: normal !important; }
  /* Research: the company card and Quick Glance one above the other (side by side they overlapped) */
  .hud-row { flex-direction: column !important; }
  .tkhead { flex-wrap: wrap !important; }
  /* Current Positions: the stat labels may wrap instead of running into each other */
  .glance .gt .k { white-space: normal !important; }
  /* the page header's "Prices live …" line may wrap (Research and the other pages with a Refresh button); then the
     Research quote strip's price boxes */
  #ilFreshCad { white-space: normal !important; min-width: 0; text-align: right; }
  span:has(> #ilFreshCad) { flex-shrink: 1 !important; min-width: 0 !important; }
  .qg2-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .qg2-cell { min-width: 0; }
  .qg2-cell .k, .qg2-cell .v { white-space: normal !important; overflow-wrap: anywhere; }
  /* Trade Fit filters (side and duration buttons) */
  .tfa2 .t2-header { flex-wrap: wrap !important; row-gap: 10px !important; }
  .tfa2 .t2-filters { flex-wrap: wrap !important; max-width: 100%; row-gap: 8px !important; }
  .tfa2 .t2-filters > * { min-width: 0; flex-wrap: wrap !important; }
  /* Research cards: each card full width (side by side, the narrower ones squeezed their titles, buttons and rows
     out of the card); what is inside each card keeps its desktop layout */
  /* Research's card grids (written without :has(): ".grid:has(> .card)" made the browser re-check every grid on each change,
     so the demo Market froze about every quarter-second on tablets; Tasha, Nov 4 2026: "go ahead an dfix the demo market") */
  .wrap > .grid > * { grid-column: 1 / -1 !important; }
  /* Catalysts ahead: the "in 19D" tag wraps with its row */
  .catrow { flex-wrap: wrap !important; row-gap: 4px !important; }
  /* Market, Signal Watch (Tasha, Nov 1 2026: "yes=fix Market and Settings too   only if this applys to tablets only"):
     the three columns one above the other, as on a phone; side by side they pushed the page past the screen, and
     squeezed to fit they were too narrow for their rows */
  .signal-grid { grid-template-columns: minmax(0, 1fr) !important; }
  /* Settings' top menu (its own markup; the menu-fitting script runs there but leaves its links on one line, which
     ran off the screen): the links wrap to a second line, as the other pages' menu does at this width */
  nav:not(.ilprodnav) > span[style*="justify-content: center"][style*="flex-wrap: nowrap"] {
    flex-wrap: wrap !important; min-width: 0 !important; row-gap: 4px !important; }
  /* (the same for Settings' menu, which has the ilprodnav class since its gold C and Team Chat key: #2086, Nov 16 2026) */
  [data-screen-label="Settings"] > nav > span[style*="justify-content: center"][style*="flex-wrap: nowrap"] {
    flex-wrap: wrap !important; min-width: 0 !important; row-gap: 4px !important; }
  /* …and its clock shows the time only, as the other pages' clocks do at this width */
  nav:not(.ilprodnav) #ilNavClock .ilclockdate { display: none !important; }
  [data-screen-label="Settings"] > nav #ilNavClock .ilclockdate { display: none !important; }
  /* Settings' account boxes (Security, Your data …): a row whose chips don't fit beside its label (the signed-out
     notice's EMAIL / TEXT) wraps them under it instead of running past the box */
  [style^="display: flex; align-items: center; gap: 10px; cursor: "][style$="padding: 3px 0px;"] {
    flex-wrap: wrap !important; row-gap: 4px !important; }
  /* Watchlist (member and demo): the list scrolls sideways inside its card, as it does on desktop (the standalone
     Watchlist page turns that scrolling off, so on a tablet the table ran out of its card and the page scrolled sideways) */
  .wlpage .wlscroll { overflow-x: auto !important; }
  /* Research, Current Positions: a figure may wrap ("$187.44 / basis") instead of running past its box */
  .glance .gt .v { white-space: normal !important; }
  /* Community: Live now and Following one above the other, each the full width (side by side, Live now's buttons ran
     out of its header into Following and its feed squeezed to a word per line) */
  [style^="display: grid; grid-template-columns: minmax(0px, 1fr) minmax(0px, 400px)"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* Community, team cards: the Peek inside / Join team buttons drop under the "active …" line when they don't fit beside
     it (they sat on top of it) */
  [style^="display: flex; align-items: center; gap: 10px; padding-top: 2px; min-width: 0px"] { flex-wrap: wrap !important; row-gap: 8px !important; }
  /* Community, Your rank: the next-rank checklist two to a row, so each step's name fits */
  .ilrank-next { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* ... and a step's name, and Your rank's "Earned from milestones …" line, wrap instead of being cut short with "…"
     (Tasha, Nov 2 2026: "fix 1-3") */
  .ilrank-next span > span:first-child { white-space: normal !important; }
  #your-rank > div:first-child small { white-space: normal !important; }
  /* Community · How Ranks Work · Rules of Participation, the five ranks: a rank's "Earned" / "Your rank" tag drops under
     its name when they don't fit side by side (it ran into the next card) */
  .ilr-ladder > div > [style^="display: flex; align-items: center; gap: 9px;"] { flex-wrap: wrap !important; row-gap: 2px !important; }
  /* Trades and Journal, Portfolio heat: a tile's lines may wrap instead of being cut off */
  [data-il-heat-tiles] > div > div, #il-heat > div:nth-child(2) > div > div { white-space: normal !important; }
  /* Journal Reports, How These Scores Are Built: the band tables' first column, its heading (EXPECTED MOVE, MATCH, SCORE
     BAND) and each band's name ("Larger expected moves · ±6.0–8.2%", "Higher matches · 76–91%", "80–100"), wraps onto
     another line instead of being cut with "…" (audit F-tab-bands-01; part of the tablet label tidy-up Tasha asked for on
     Nov 1 2026, "yes to 2 and 3": labels cut off at 768-1180px on the member and demo pages, and a bug fix under her
     Oct 10 2026 visual rule). Where a name fits on one line nothing changes; on upright tablets the five number columns
     also take their phone widths (the 768-959px block below) */
  [style*="grid-template-columns: minmax(0px, 1fr) 44px 54px 92px 62px 62px"] > :first-child { white-space: normal !important; overflow-wrap: break-word; }
  /* Journal Analytics, the score cards' band tables (Expected Move, Strategy Match, Risk & Size, Management; two cards to a
     row here): the five number columns take the phone widths with the phone's 6px spacing (every figure still fits, up to
     "1234", "99–100%", "−10.25R" and "−123.4R"), and the first column, its heading and each band's name, wraps onto another
     line instead of being cut with "…" (audit F-tab-bands-02; the same Nov 1 2026 tidy-up and Oct 10 bug-fix rule). At
     768-1079px the name sits on its own line above its figures, as on a phone (the 768-1079px block below) */
  [style*="grid-template-columns: minmax(0px, 1fr) 44px 52px 88px 60px 60px"] { grid-template-columns: minmax(0, 1fr) 32px 40px 58px 54px 56px !important; column-gap: 6px !important; }
  [style*="grid-template-columns: minmax(0px, 1fr) 44px 52px 88px 60px 60px"] > :first-child { white-space: normal !important; overflow-wrap: break-word; }
  /* Journal, Focus Areas: a card's figure ("62% MFE") drops under its label when they don't fit side by side */
  [style^="background: linear-gradient(135deg, rgb(15, 23, 42) 0%, rgb(37, 50, 66) 50%, rgb(15, 23, 42) 100%); border-width: 1px 1px 1px 4px;"] > [style^="display: flex; align-items: center; justify-content: space-between; gap: 8px;"] { flex-wrap: wrap !important; row-gap: 2px !important; }
  /* Journal, Focus Areas: the cards sit as many to a row as fit (170px or wider), as the demo's do (_demo-mobile.css,
     the same Nov 1 tablet layout), instead of five 74-80px columns at 768px (audit F-DKJN-1, row M-journal-05.057) */
  :has(> [style^="background: linear-gradient(135deg, rgb(15, 23, 42) 0%, rgb(37, 50, 66) 50%, rgb(15, 23, 42) 100%); border-width: 1px 1px 1px 4px;"]) { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important; }
  /* Trades: one trade card to a row (two to a row, the tags sat on the hidden P&L, the stat tiles wrapped and the order
     log's Source column was cut off); inside, each card keeps its desktop layout */
  [style*="grid-template-columns: repeat(2,"][style*="gap: 18px 20px"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* Home, Action Center: a little less space inside each count tile, so every page name fits its tile */
  [style*="grid-template-columns: repeat(8,"] > a { padding-left: 6px !important; padding-right: 6px !important; }
  /* Journal, Live Metrics Snapshot: the period picker and the Real money / Paper / All switch wrap under the title
     when they don't fit beside it (they ran off the card, out of reach) */
  [style*="gap: 12px; padding: 8px 16px; margin: 10px;"] { flex-wrap: wrap !important; row-gap: 8px !important; }
  [style*="gap: 12px; padding: 8px 16px; margin: 10px;"] > div { flex-wrap: wrap !important; min-width: 0 !important; row-gap: 6px !important; }
  /* Market, index tiles: the change badge drops under the index name when they don't fit side by side */
  .index-head { flex-wrap: wrap !important; row-gap: 4px !important; }
  /* Market, 1101px to 1180px: the cards sit as the Market page itself lays them out up to 1100px (one card to a row;
     the same inner grids), instead of the desktop columns, where titles ran into their buttons. (Up to 1100px the page's
     own rules already do this. "row" is a class name the Journal uses too, so it is matched on the Market page only.) */
  .mega-region, .dp-ins { grid-template-columns: 1fr !important; }
  /* its own rule, so a browser without :has() still applies the line above (a selector list is dropped whole) */
  body:has(.mega-region) .row { grid-template-columns: 1fr !important; }
  .mega-rt { display: contents !important; }
  .vol-grid { grid-template-columns: 1fr 1fr !important; }
  .vol-col { border-right: 0 !important; border-bottom: 1px solid rgba(203, 167, 111, .18) !important; padding: 12px 0 !important; }
  .sector-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .candle-grid, .cp-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .ma-grid, .sq-grid { grid-template-columns: 1fr !important; }
  .short-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stamp-grid { grid-template-columns: repeat(3, 1fr) !important; }
  /* Lesson, Flashcards step: the flashcard and its "three choices" panel one above the other (side by side the card was
     squeezed until NEXT CARD and ← BACK vanished; second check, Nov 2 2026) */
  [style^="padding: 20px 24px 24px; display: flex; gap: 22px;"] { flex-direction: column !important; }
  /* Journal Analytics, Long vs Short (audit F-tf10-16, Nov 11 2026): the LONG and SHORT cards stay side by side, but each
     may now shrink to its half of the row, and the side's summary ("selective only — 35 of 110 trades") may take two lines
     beside its name and SORT buttons. Before, the SHORT card ran past the page and it scrolled sideways (258px at 768px,
     2px at 1024px). Each factor row (BEST STRATEGY, WORST STRATEGY, BEST WINDOW / BEST TIME OF DAY) fits inside its card
     with no sideways swipe (Tasha, Nov 11 2026, "Make the rows fit too (Recommended)": "Same as your #1444/#1507 choice:
     the strategy and window rows wrap onto two lines inside the card, with no sideways swipe."): the label and the
     strategy or window name on the first line, the four figures (R, total, win %, n) on the second, in the same order as
     before, and the row's note under them at the row's full width. A name too long for its space carries onto a second
     line beside the label instead of being cut with "…" (second check, Nov 11 2026). (Each card's six figures go four to a
     row up to 1079px, in the block below.) */
  #ana-lvs [style^="display: grid; grid-template-columns: 1fr 1fr; gap: 10px"] > [style^="background: linear-gradient(to right, rgb(15, 23, 42) 0%, rgb(23, 32, 56) 50%"] { min-width: 0 !important; }
  #ana-lvs [style^="display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, rgb(182, 192, 207), rgb(133, 147, 168));"] > span[style^="margin-left: auto; font-size: 11px; font-weight: 600;"] { white-space: normal !important; min-width: 0; text-align: right; }
  #ana-lvs [style^="display: grid; grid-template-columns: 96px minmax(0px, 1fr) 50px 96px 72px 54px"] { grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, .7fr) !important; column-gap: 8px !important; row-gap: 4px !important; }
  #ana-lvs [style^="display: grid; grid-template-columns: 96px minmax(0px, 1fr) 50px 96px 72px 54px"] > :nth-child(1) { grid-column: 1 / 3; grid-row: 1; align-self: start; }
  #ana-lvs [style^="display: grid; grid-template-columns: 96px minmax(0px, 1fr) 50px 96px 72px 54px"] > :nth-child(2) { grid-column: 3 / -1; grid-row: 1; white-space: normal !important; }
  #ana-lvs [style^="display: grid; grid-template-columns: 96px minmax(0px, 1fr) 50px 96px 72px 54px"] > :nth-child(n+3) { grid-row: 2; }
  #ana-lvs [style^="display: grid; grid-template-columns: 96px minmax(0px, 1fr) 50px 96px 72px 54px"] + [style*="margin: 4px 0px 0px 106px"] { margin-left: 0 !important; }
  /* ... and each card's six figures: a figure wider than its share of the row (a six- or seven-figure amount) widens its
     own tile and the tiles after it carry onto the next line, so no figure runs into the next tile or past the card
     (second check, Nov 11 2026). Where the six fit on one line they share it exactly as before (a wider figure takes the
     room it needs and the others share the rest); four to a row up to 1079px, in the block below. */
  #ana-lvs [style^="display: grid; grid-template-columns: repeat(6, 1fr)"] { display: flex !important; flex-wrap: wrap !important; }
  #ana-lvs [style^="display: grid; grid-template-columns: repeat(6, 1fr)"] > * { flex: 1 1 0; min-width: min-content; }
}

/* Tablets upright, 768px to 959px only: the Research / Watchlist section tabs (Overview, Factor Analysis …) get room
   around each label and the row swipes sideways when it doesn't fit, as on a phone. From 960px the desktop tabs fit
   the row as they are, so they are left alone (second check, Nov 1 2026). The tidy-up of Nov 1 2026 ("yes to 2 and 3")
   adds the few layouts that only run short of room on an upright tablet. */
@media (min-width: 768px) and (max-width: 959px) {
  .sidenav { overflow-x: auto !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sidenav::-webkit-scrollbar { display: none; }
  .sidenav a { flex: 0 0 auto !important; padding: 10px 14px !important; }
  /* Lesson pages: the step list sits above the lesson (as on a phone) and stops sticking, so the lesson gets the full
     width; beside it, the reading text squeezed to a word or two per line and the step bar overlapped */
  [style^="display: grid; grid-template-columns: 280px minmax(0px, 1fr);"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style^="display: grid; grid-template-columns: 280px minmax(0px, 1fr);"] > aside { position: static !important; }
  /* Market, Squeeze Confluence: the ticker's figures (Last, RVOL …) take their own full-width row under the ticker, so
     none is cut off */
  .sq-topbar { flex-wrap: wrap !important; }
  .sq-tickerstats { flex: 1 1 100% !important; }
  /* Home, Action Center: each group's label tile sits above its rows (as on a phone), so a row's time or status line
     is not cut off at the right (Home's label tiles are the 214px ones; the Journal's 192px ones fit and are left alone) */
  [style="display: flex; align-items: stretch; gap: 8px;"]:has(> [style^="display: flex; align-items: center; gap: 9px; width: 214px"]) { flex-direction: column !important; gap: 4px !important; }
  [style="display: flex; align-items: stretch; gap: 8px;"] > [style^="display: flex; align-items: center; gap: 9px; width: 214px"] { width: auto !important; min-width: 0 !important; }
  /* Community, Browse teams: the team cards two to a row, so each team's name fits */
  [style^="display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 10px;"]:has(> [style*="padding: 13px 15px 14px"]) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* Journal Reports, How These Scores Are Built: the band tables' five number columns take the phone block's widths (every
     value still fits), so a band's name has room to wrap instead of being cut to its first letter (audit F-tab-bands-01;
     the name's wrap is in the tablet block above) */
  [style*="grid-template-columns: minmax(0px, 1fr) 44px 54px 92px 62px 62px"] { grid-template-columns: minmax(0, 1fr) 32px 40px 58px 54px 56px !important; }
  [style*="grid-template-columns: minmax(0px, 1fr) 44px 54px 92px 62px 62px"] > * { padding-left: 4px !important; padding-right: 4px !important; }
  [style*="grid-template-columns: minmax(0px, 1fr) 44px 54px 92px 62px 62px"] > :first-child { padding-left: 8px !important; }
  /* Journal Analytics, Find Your Edge headline cards (BIGGEST CONTRIBUTOR, BEST SESSION WINDOW …): a card's figure drops
     under its heading when the two can't sit side by side, so the four cards fit their row (up to 900px the row ran past
     its box, and at 768px the fourth card ran past the page and it scrolled sideways; audit F-tab-bands-02, the Nov 1 2026
     tidy-up). The heading keeps taking the rest of its line, so where both fit they stay side by side */
  [style*="grid-template-columns: repeat(4, 1fr)"] > [style^="background: linear-gradient(135deg, rgb(15, 23, 42) 0%, rgb(36, 50, 72) 50%"] > [style^="display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;"] { flex-wrap: wrap !important; row-gap: 2px !important; }
  [style*="grid-template-columns: repeat(4, 1fr)"] > [style^="background: linear-gradient(135deg, rgb(15, 23, 42) 0%, rgb(36, 50, 72) 50%"] > [style^="display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;"] > :first-child { flex: 1 1 0% !important; }
  /* Journal Reports, Planning Numbers, "Does The Edge Survive Size?" (T-245, Nov 12 2026; the top band now reads "$450 and
     over"): the card is about 210-270px wide here, so the risk band's name takes its own line above its four figures, as
     the band tables do on the smallest phones (side by side it was cut with "…", at 768px to its first letter). #rp-s10
     makes these two rules outrank the narrower columns in the 768-1079px block below */
  #rp-s10 [style*="grid-template-columns: minmax(0px, 1fr) 62px 40px 62px 62px"] { grid-template-columns: 54fr 30fr 56fr 54fr !important; }
  #rp-s10 [style*="grid-template-columns: minmax(0px, 1fr) 62px 40px 62px 62px"] > :first-child { grid-column: 1 / -1 !important; }
}

/* Tablets narrower than 1080px, 768px to 1079px only (Tasha, Nov 1 2026: "yes to 2 and 3"). Free Lesson: the page is
   built never narrower than 1080px, so below that it scrolled sideways; here it fits the screen instead, and the three
   membership-stage cards sit one above the other (three across is too tight below 1080px; the phone block uses the
   same rule, which also stacks the Academy's three stage cards). No other member page sets a minimum width on the
   page, so the first rule changes nothing elsewhere. Then the rows of many tiles that only fit from about 1080px. */
@media (min-width: 768px) and (max-width: 1079px) {
  body { min-width: 0 !important; }
  [style^="display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; align-items: stretch;"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* Home, Action Center: the eight count tiles four to a row (as on a phone); eight across, the page names were cut off */
  [style*="grid-template-columns: repeat(8,"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  /* Journal, Live Metrics Snapshot: the seven figures four to a row (seven across ran past the card and were cut off);
     a figure's label may wrap */
  [style^="display: grid; grid-template-columns: repeat(7, 1fr); border-bottom"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  /* (first-of-type: each figure starts with its gold bar, an <i>, so "first-child" never matched and "PLAN ADHERENCE ·
     MONTH" stayed cut short; Tasha, Nov 2 2026: "fix 1-3") */
  [style^="display: grid; grid-template-columns: repeat(7, 1fr); border-bottom"] > div > div:first-of-type { white-space: normal !important; }
  /* Community, Leaderboards: the boards three to a row; six across, their headings ran out of the boards and the names
     were cut to initials */
  [style^="display: grid; grid-template-columns: repeat(6, minmax(0px, 1fr)); gap: 10px;"]:has(> [style*="padding: 11px 12px 10px"]) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  /* Community, how Ironline Points are earned: two to a row, so each way's name fits */
  .ilrank-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* Journal Analytics, the score cards' band tables: a band's name on its own line above its five figures (the phone
     block's two rules), as the half-width cards leave the name little or no room beside them (it was 0px wide up to
     958px, and the AVG R and NET R figures ran out of their row; audit F-tab-bands-02, the Nov 1 2026 tidy-up) */
  [style*="grid-template-columns: minmax(0px, 1fr) 44px 52px 88px 60px 60px"] { grid-template-columns: minmax(0, .7fr) minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1.1fr) !important; column-gap: 6px !important; row-gap: 1px !important; }
  [style*="grid-template-columns: minmax(0px, 1fr) 44px 52px 88px 60px 60px"] > :first-child { grid-column: 1 / -1; }
  /* Journal Analytics, Long vs Short: each card's six figures (WIN RATE … AVG LOSER) four to a row, as on phones, now that
     the card may shrink to half the row (audit F-tf10-16, Nov 11 2026; AVG WINNER and AVG LOSER ran past the card). A
     figure wider than its quarter (the demo's NET P&L "+$20,150" at 768-820px, or a six- or seven-figure amount) widens
     its own tile and the tiles after it carry onto the next line (the tiles wrap, as set in the 768-1180px block above),
     so no figure runs into the next tile (second check, Nov 11 2026) */
  #ana-lvs [style^="display: grid; grid-template-columns: repeat(6, 1fr)"] > * { flex: 0 0 calc((100% - 24px) / 4); }
  /* Journal Reports, Planning Numbers, "Does The Edge Survive Size?" (T-245, Nov 12 2026; the top band now reads "$450 and
     over"): the table is one of three cards side by side, so its band name was cut with "…"; its four number columns
     take the phone block's widths (every value still fits), so the name has room (at 768-959px it takes its own line,
     in the upright-tablet block above). From 1080px the columns are as before */
  [style*="grid-template-columns: minmax(0px, 1fr) 62px 40px 62px 62px"] { grid-template-columns: minmax(0, 1fr) 54px 30px 56px 54px !important; }
  [style*="grid-template-columns: minmax(0px, 1fr) 62px 40px 62px 62px"] > * { padding-left: 4px !important; padding-right: 4px !important; }
  [style*="grid-template-columns: minmax(0px, 1fr) 62px 40px 62px 62px"] > :first-child { padding-left: 8px !important; }
}

/* ---- Journal text fit at 360px and up (audit F-tf10-01..06, findings/textfit-2b-acct10.md; Tasha, Nov 11 2026, Q1: "Fix
   before launch (Recommended)": "Each problem is fixed in the existing style. Anything new or drastically different, such
   as the Academy cards going to one column on phones or the Rules Simulator rows stacking, comes to you as a preview
   first."). Member and demo sheets, the same lines. The phone parts (F-tf10-04, and F-tf10-06 at 375-380px) are in the
   phone block above. Nothing here matches from 1280px. ---- */
/* Journal Analytics, "Fold quiet rows": under 481px the note ("Dimmed rows read inside the noise …") takes the full width
   under the button instead of a one-word-wide column running past the card (F-tf10-05). The stop-check row is left as it is. */
@media (max-width: 480px) {
  [style^="display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; background: rgb(11, 18, 32)"]:not([data-stop-check]) > [style^="flex: 1 1 0%; min-width: 0px; font-size: 10.5px; color: rgb(139, 152, 176)"] { flex-basis: 100% !important; }
}
/* Journal History, All Trades: from 768px to 1279px the 17-column table swipes sideways inside its card, as on phones
   (its heading row and its rows move together), instead of running past the card and making the page scroll sideways by
   up to 495px (F-tf10-01). From 1280px it fits and nothing changes. */
@media (min-width: 768px) and (max-width: 1279px) {
  :has(> [data-il-hist="head"]) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  /* the member's own column widths are kept (T-357), so the table is found by its mark and is as wide as its columns
     (--il-hist-w: 1210px at the default widths) */
  [data-il-hist] { min-width: var(--il-hist-w, 1210px); }
}
/* Journal Reviews, Trade Review, "Every order": from 768px to 1080px its five columns were wider than the card, so TIME and
   TYPE overlapped and QTY and the fill prices ran past the card (F-tf10-03). Tasha, Nov 11 2026: "Make it fit like #1444
   (Recommended)" ("Narrower columns, with the order type on its own line if needed, so the whole table fits inside the
   card with no swipe."). As #1444 did for Armed alerts: narrower columns, and each row, the heading row too, carries onto a
   second line, so the whole table fits inside its card with no swipe. The time and the order type sit on the first line
   (the order type has the rest of that line), the side, quantity and fill price on the second, in the same order as
   before. The time, side, quantity and fill price together are wider than the card at 768-900px (about 174px of text in
   135px), so the order type is the item that shares the time's line. Phones keep their own rule. */
@media (min-width: 768px) and (max-width: 1080px) {
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] { grid-template-columns: 32px 24px minmax(0, 1fr) 54px !important; gap: 4px !important; }
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] > :nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] > :nth-child(2) { grid-column: 3 / -1; grid-row: 1; }
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] > :nth-child(3) { grid-column: 1; grid-row: 2; }
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] > :nth-child(4) { grid-column: 2 / 4; grid-row: 2; }
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] > :nth-child(5) { grid-column: 4; grid-row: 2; }
}
/* Journal Reviews, Trade Review, "Every order", 1081px to 1259px: the TYPE heading ran into SIDE (and at 1081-1099px the
   fill prices ran past the card), so the rows take the same two-line layout as at 768-1080px above (Tasha, Nov 11 2026,
   item 10 "10=A": "fix it the same way"). Same rules, same order; nothing from 1260px and nothing under 768px. */
@media (min-width: 1081px) and (max-width: 1259px) {
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] { grid-template-columns: 32px 24px minmax(0, 1fr) 54px !important; gap: 4px !important; }
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] > :nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] > :nth-child(2) { grid-column: 3 / -1; grid-row: 1; }
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] > :nth-child(3) { grid-column: 1; grid-row: 2; }
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] > :nth-child(4) { grid-column: 2 / 4; grid-row: 2; }
  [style*="grid-template-columns: 62px minmax(0px, 1fr) 40px 52px 66px"] > :nth-child(5) { grid-column: 4; grid-row: 2; }
}
/* Journal Reviews, the rule rows (Your Live Rules, Recommended Rules, the library): from 768px to 900px each row keeps its
   name and description side by side, its state chip and figures go on a second line under them, and its buttons (LIVE ·
   TURN OFF, MAKE LIVE →) on a line of their own at the right, inside the card (F-tf10-02; Tasha approved the preview,
   Nov 11 2026). The same rows in Trade Review's two rule lists, "Your live rules that fired on this trade" and "Rules that
   would have helped", take the same layout (Tasha, Nov 11 2026, "Include them (Recommended)": "Both Trade Review rule
   lists use the same 2-column layout at 768-900px, matching the Rules Simulator. Nothing changes at other widths."). Up to
   1180px since Nov 19 2026: the BEST PAIR rows (Rules Simulator, Combined Best) and the other rows with this grid keep this
   layout to 1180px, where at 1024px a pair's sentence had a 47px column and the BEST PAIR chip sat on it (Tasha, #2267,
   "A: 2-column up to 1180 (Recommended)": "The BEST PAIR rows (and other rows with that same layout) keep your Nov 11
   2-column layout from 768px up to 1180px, member and demo. Nothing changes on phones or above 1180px. You see
   before/after pictures at 1024px before it merges."; audit rows M-journal-18.486, 18.490). Up to 1300px since Nov 20
   2026 (Tasha, #2425, "A. 2-column to 1300px": "BEST PAIR rows (and rows with that same layout) keep 2 columns from 768 to
   1300 px, member and demo. Nothing changes on phones or above 1300. You see before/after at 1230 px before it merges.";
   at 1181-1300px the sentence column was 61-180px). */
@media (min-width: 768px) and (max-width: 1300px) {
  [style*="grid-template-columns: minmax(0px, 200px) minmax(0px, 1fr) 104px 312px 172px"] { grid-template-columns: minmax(0, 200px) minmax(0, 1fr) !important; row-gap: 10px !important; }
  [style*="grid-template-columns: minmax(0px, 200px) minmax(0px, 1fr) 104px 312px 172px"] > :nth-child(3) { grid-column: 1; }
  [style*="grid-template-columns: minmax(0px, 200px) minmax(0px, 1fr) 104px 312px 172px"] > :nth-child(4) { grid-column: 2; }
  [style*="grid-template-columns: minmax(0px, 200px) minmax(0px, 1fr) 104px 312px 172px"] > :nth-child(5) { grid-column: 1 / -1; }
}
/* Journal Reviews, "What the set changed": from 768px to 799px the seven silver tiles carry onto a second row (four, then
   three), as they wrap on phones, so NET R (+265.4R) and NET P&L stay inside their tiles (F-tf10-06; a preview for Tasha) */
@media (min-width: 768px) and (max-width: 799px) {
  [style="display: flex; gap: 2px; padding-top: 0px;"]:has(> [style^="flex: 1 1 0%; background: linear-gradient(135deg, rgb(173, 185, 205), rgb(71, 85, 105))"]) { flex-wrap: wrap !important; gap: 6px !important; }
  [style="display: flex; gap: 2px; padding-top: 0px;"] > [style^="flex: 1 1 0%; background: linear-gradient(135deg, rgb(173, 185, 205), rgb(71, 85, 105))"] { flex: 1 1 22% !important; }
}

/* Just past the tablet range, 1181px to 1279px only (Tasha, Nov 1 2026: "yes to 2 and 3"). Settings: "COMMUNITY" ran
   under the settings button, so its clock shows the time only, as at tablet widths. Market: Signal Watch ran past its
   card, so its three columns share the card's width and each row's label, bar and count fit their column. Watchlist
   (Tasha, Nov 2 2026: "fix 1-3"): the page scrolled sideways (up to 1273px), so the list scrolls inside its own box,
   as at tablet widths. From 1280px nothing here matches. */
@media (min-width: 1181px) and (max-width: 1279px) {
  /* Trades · Armed alerts (audit F-acct35-b4-13, Nov 10 2026): one row, the middle columns share the width and their
     words wrap, so "Checked …" no longer runs under the source chip and EDIT, KEEP and DELETE stay inside the card */
  [style^="display: grid; grid-template-columns: 96px minmax(190px, 1fr) 108px"] { grid-template-columns: 96px minmax(0, 2fr) minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .75fr) auto !important; }
  [style^="display: grid; grid-template-columns: 96px minmax(190px, 1fr) 108px"] > :nth-child(n+3):nth-child(-n+6) > * { white-space: normal !important; overflow-wrap: anywhere; max-width: 100%; }
  nav:not(.ilprodnav) #ilNavClock .ilclockdate { display: none !important; }
  [data-screen-label="Settings"] > nav #ilNavClock .ilclockdate { display: none !important; }
  .signal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .signal-grid .signal-line { grid-template-columns: minmax(0, 130px) minmax(24px, 1fr) auto !important; gap: 8px !important; }
  .signal-col-head { flex-wrap: wrap !important; row-gap: 4px !important; }
  .wlpage .wlscroll { overflow-x: auto !important; }
}

/* 1280px and wider: Trades · Armed alerts only (audit F-a5-01, Nov 11 2026, the desktop part of F-acct35-b4-13 that #1444
   left for later; Tasha, Nov 4 2026: "make sure text wraps rather than extends beyond its designated border", words
   kept whole). The words in the price, status, source and age cells wrap inside their own column, as from 1181px to
   1279px, so "Checked live, every minute" and "Checked after each market scan" no longer run under the source chip.
   The columns keep their desktop widths, and a cell whose words already fit is unchanged. Nothing else here matches
   from 1280px. */
@media (min-width: 1280px) {
  [style^="display: grid; grid-template-columns: 96px minmax(190px, 1fr) 108px"] > :nth-child(n+3):nth-child(-n+6) > * { white-space: normal !important; max-width: 100%; }
}

/* 1181px to 1439px only (Tasha, Nov 2 2026: "fix 1-3"); from 1440px nothing here matches. Market: a card's title keeps
   at least the width of its longest word (its column could shrink to nothing, so "INSIDER ACTIVITY" and "COMMODITIES
   HEAT" ran into their Filter and Academy buttons up to 1392px); the card's buttons wrap under each other when
   they don't fit beside it. Community, Your rank: a next-rank step's name wraps instead of being cut short with "…". */
@media (min-width: 1181px) and (max-width: 1439px) {
  body:has(.mega-region) .card-header { grid-template-columns: auto minmax(min-content, 1fr) auto !important; }
  .ilrank-next span > span:first-child { white-space: normal !important; }
  /* Text inside its border on laptops (Tasha, Nov 4 2026: "I want all this fixed"). Market's cards sit three to a row here,
     so with real data their text ran past their boxes: Market Volatility's three tiles go two to a row (ELEVATED / BEARISH
     / NORMAL were cut off), Analyst grade stamps two to a row ("GRADE" ran out of its card), Congress Trades puts the
     amount under the name (as on phones), the Support/Resistance steps line carries onto a second line; Research's Level
     Map gives the percentage its full width (the label, already shortened with "…", takes what is left) and the Market
     regime boxes tighten their spacing so "YES" fits. */
  .risk-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .stamp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cg-row { grid-template-columns: minmax(0, 1fr) 54px 62px !important; }
  .cg-row .rng { grid-column: 1 / -1 !important; text-align: left !important; }
  .sr-steps { flex-wrap: wrap !important; column-gap: 8px !important; row-gap: 2px !important; }
  #plmCard .plm-lgrp { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; }
  #plmCard .plm-price { flex: 0 0 auto !important; min-width: 0 !important; }
  #plmCard .plm-pct { flex: 0 0 auto !important; width: auto !important; min-width: 44px !important; }
  .grid > .card.c6 > .regime .reg { gap: 6px !important; padding-left: 9px !important; padding-right: 9px !important; }
  /* Journal Analytics, the score cards' band tables: a band's name wraps onto another line instead of being cut with "…"
     (text inside its border on laptops, Tasha, Nov 4 2026: "I want all this fixed"; on the demo "Larger expected moves ·
     ±6.0–8.2%" was cut up to 1338px; audit F-tab-bands-02, a bug fix under her Oct 10 2026 visual rule). Where it fits on
     one line nothing changes */
  [style*="grid-template-columns: minmax(0px, 1fr) 44px 52px 88px 60px 60px"] > :first-child { white-space: normal !important; overflow-wrap: break-word; }
  /* Trades, an open trade's order log (T-219, Nov 20 2026, tracker row 1083; same rule as above, a bug fix under her Oct 10
     2026 visual rule): the order's details (the middle column) wrap onto another line instead of being cut with "…" when
     they are too long for it ("partial exit · 50 sh · 11-05" was cut by 41px at 1280px); the narrower columns that
     give them room from 1181px to 1365px are in the block below. Where they fit on one line nothing changes. */
  [style*="grid-template-columns: 112px minmax(0px, 1fr) 92px 78px 104px"] > :nth-child(2) { white-space: normal !important; }
}

/* Trades, an open trade's order log, 1181px to 1365px only (T-219, Nov 20 2026, tracker row 1083; text inside its border on
   laptops, Tasha, Nov 4 2026: "I want all this fixed"; a bug fix under her Oct 10 2026 visual rule). Here the trade cards
   sit two to a row and the order log's middle column (the order's details) was squeezed to 39-108px, so its words were
   cut with "…" ("partial exit · 50 sh · 11-05", "moved 1× · 60 sh", "limit · in plan", "1 execution"). The name, price
   and source columns are narrower (each still fits what it shows; the price column is 70px so a $100,000+ price such
   as BRK.A's, 70px wide, fits; second check c-7039519807) and the gaps 2px smaller, which gives the details
   116-186px. From 1366px the columns are as before (the details have 131px or more there). */
@media (min-width: 1181px) and (max-width: 1365px) {
  [style*="grid-template-columns: 112px minmax(0px, 1fr) 92px 78px 104px"] { grid-template-columns: 84px minmax(0, 1fr) 70px 78px 84px !important; column-gap: 8px !important; }
}

/* Market, 1181px to 1239px only (Tasha, Nov 2 2026: "fix 1-3"). "ANALYST UPGRADES/DOWNGRADES" may break after the
   "/" (it ran past its card's inner edge, into its padding): the page holds a line-break point there that is off at
   every other width. */
@media (min-width: 1181px) and (max-width: 1239px) {
  .card-title wbr.il-brk { display: inline !important; }
}

/* Market, 1181px to 1229px only (Tasha, Nov 2 2026: "fix 1-3"). Commodities Heat: "COMMODITIES" and the Academy
   button don't fit side by side, so the card's buttons sit on their own row under its title and description. Analyst
   Upgrades/Downgrades: its four buttons ran past the card's left inner edge, into its padding, so the bell drops to a
   second row under the other three. */
@media (min-width: 1181px) and (max-width: 1229px) {
  #tour-commodities-heat .card-header .right { grid-column: 2 / -1 !important; grid-row: 3 !important; justify-self: end !important; margin-top: 6px !important; }
  #tour-analyst-upgrades-downgrades .card-header .right { flex-wrap: wrap !important; row-gap: 6px !important; }
}

/* Academy, text inside its border on phones (Tasha, Nov 11 2026, "Fix before launch (Recommended)": "Each problem is
   fixed in the existing style. Anything new or drastically different, such as the Academy cards going to one column on
   phones or the Rules Simulator rows stacking, comes to you as a preview first."; under 360px also her Nov 10 Q-tf10-01,
   "Fix them before launch (Recommended)"; audit findings F-tf10-07, -08, -10). Member and demo alike, phones only (under
   768px); from 768px (tablets and desktop) nothing here matches.
   - Browse All (F-tf10-07): under 580px the three course-card columns were wider than the panel and the second and third
     were cut off (to 539px with the page's fonts, to 569px if a font doesn't load); each card now takes the full width,
     one under the other. PREVIEW FOR TASHA before merge (her words). From 580px to 767px the three columns stay and share
     the panel's width, so the third can't be pushed past it (after a resize it was, by up to 24px, to 610px).
   - Glossary (F-tf10-08): the term may wrap onto a second line, so its category tag and ▾ stay inside the row. Under
     480px (where the one-line description already has no room and shows nothing) the term takes the room the tag leaves
     and wraps between words; when a single word is too wide for that room ("At Support/Resistance" at 320-375px) the
     words stay whole and the tag and ▾ go together onto the line under it, at the right where the other rows' tags are,
     in that row only. (The tag keeps room for the ▾ after it, which takes that room back, so the two never split.)
   - Study Guides (F-tf10-10): the two guide columns share the panel's width instead of pushing the second card past it. */
@media (max-width: 579px) {
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] [style^="display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; align-items: start;"] { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (min-width: 580px) and (max-width: 767px) {
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] [style^="display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; align-items: start;"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 479px) {
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] button[style^="display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left;"] { flex-wrap: wrap !important; row-gap: 4px !important; }
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] button[style^="display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left;"] > b[style^="flex: 0 0 220px"] { flex: 1 1 auto !important; width: min-content !important; }
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] button[style^="display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left;"] > span[style^="flex: 0 0 82px"] { margin-left: auto !important; margin-right: 24px !important; }
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] button[style^="display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left;"] > span[style^="flex: 1 1 0%; min-width: 0px;"] { flex: 0 1 0% !important; margin-left: -12px !important; }
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] button[style^="display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left;"] > span[style^="flex: 0 0 auto"] { margin-left: -24px !important; }
}
@media (min-width: 480px) and (max-width: 767px) {
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] button[style^="display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left;"] > b[style^="flex: 0 0 220px"] { flex: 0 1 220px !important; min-width: 0 !important; }
}
@media (max-width: 767px) {
  main[style^="background: linear-gradient(rgb(251, 248, 241) 0%, rgb(244, 238, 226) 100%)"] [style^="display: grid; grid-template-columns: 1fr 1fr; gap: 10px;"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
}

/* Smallest phones (Tasha, Nov 4 2026: "Stack them"): under 431px each Market Congress Trades row puts its amount on its
   own line under the name, and up to 600px ("Stack up to 600px") Research's three Market regime boxes stack one per line,
   so no text runs past its border (the columns were too tight for the screen). Tablets and desktop unchanged. */
@media (max-width: 600px) {
  .grid > .card.c6 > .regime { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 430px) {
  .cg-row { grid-template-columns: minmax(0, 1fr) 54px 62px !important; }
  .cg-row .rng { grid-column: 1 / -1 !important; text-align: left !important; }
  /* "I want all this fixed" (Nov 4 2026): Market, At Support/Resistance, the steps line ("FIRST TEST ✓ … RECLAIMED ✓")
     carries onto a second line; Research, Signal Matrix, "100%" and "mixed" fit their cells (slimmer side padding and
     a slightly smaller size, "Shrink to fit") */
  .sr-steps { flex-wrap: wrap !important; column-gap: 8px !important; row-gap: 2px !important; }
  #heatmapCard .hm td.cell { padding-left: 1px !important; padding-right: 1px !important; font-size: 10px !important; }
}

/* The menu bar clock carries its zone mark (Tasha, Nov 6 2026, "yes to both"). Where the menu is tight the clock is tightened so it is
   never wider than it was for the same date and time, in any zone, and no page gains a row. At 1120px and below it shows the time
   alone. Up to the width where the menu has room for the wider clock (measured Nov 7 2026 with the widest real date, "Wed, May 19 ·
   12:39 AM MT": a row was gained up to 1150px, or 1203px when the menu holds the administrator's Admin link) it keeps its date.
   Above that nothing here matches. */
@media (max-width: 1120px) {
  #ilNavClock:has(.ilclockdate) { font-size: 10px !important; letter-spacing: 0 !important; padding-right: 3px !important; }
  /* The 24-hour clock (data-il-clock24, ironline-page-settings.js): at 10px "00:39 MT" was 51.2px against the 24-hour "00:39"
     at 12.5px it replaced, 46.7px, and the menu gained a row (Nov 7 2026: with the Admin link at 1024 and 1063-1066px; Journal,
     member and demo, at 775-779 and 1010-1012px). At 9.5px with -0.2px letter spacing and 2px padding it is 46.3px with MT,
     the widest mark. The 12-hour clock is unchanged. */
  #ilNavClock[data-il-clock24]:has(.ilclockdate) { font-size: 9.5px !important; letter-spacing: -.2px !important; padding-right: 2px !important; }
}
/* (not Settings: its menu keeps its own larger clock; it has the ilprodnav class since #2086, Nov 16 2026) */
@media (min-width: 1121px) and (max-width: 1152px) {
  :not([data-screen-label="Settings"]) > nav.ilprodnav #ilNavClock:has(.ilclockdate) { font-size: 11px !important; letter-spacing: 0 !important; padding-right: 6px !important; }
}
@media (min-width: 1153px) and (max-width: 1206px) {
  :not([data-screen-label="Settings"]) > nav.ilprodnav:has([data-il-admin-nav]) #ilNavClock:has(.ilclockdate) { font-size: 11px !important; letter-spacing: 0 !important; padding-right: 6px !important; }
}
/* Settings' menu on narrow phones (Tasha, Nov 16 2026, #2086: the gold C and the Team Chat key, as on Home). Its clock keeps the
   date on phones (dates are hidden on tablets only: Tasha, Nov 1 2026), so up to 400px the gold C, the chat key and your initial
   don't all fit beside it (measured: 394px with the widest date and time, "Wed, Sep 30 · 12:39 AM MT"). Instead of one or two of
   them wrapping alone, the three go together onto the line under the logo and clock, at the right, where the initial alone went
   before at 320px. The empty ::before is that line break; it is a line of its own, so the menu's 8px row gap is set as a top margin
   on the lines under it instead, and the menu is as tall as it was at 320px. From 401px they sit at the right of the first line. */
@media (max-width: 400px) {
  [data-screen-label="Settings"] > nav.ilprodnav { row-gap: 0 !important; }
  [data-screen-label="Settings"] > nav::before { content: ""; order: 3; flex: 0 0 100%; height: 0; }
  [data-screen-label="Settings"] > nav > span:nth-child(n+3) { margin-top: 8px; }
}

/* Journal History, All Trades: once a member has widened its columns (T-357: kept on their account, so they come back
   on any device) the table can be wider than its card on a desktop too. Then it swipes sideways inside its card, as it
   does under 1280px, instead of making the page scroll sideways. At the default widths nothing changes. */
:has(> [data-il-hist="head"][data-il-hist-wide="1"]) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
[data-il-hist][data-il-hist-wide="1"] { min-width: var(--il-hist-w, 1210px); }

/* DELETE SELECTED (Home, the Journal and every page strip, member and demo): a hover change and a visible keyboard focus ring in the
   button's own red (T-914; Tasha, Nov 17 2026, #2189, "Fix both now"). Nothing changes while it is disabled. */
.il-delsel:not(:disabled):hover { background: rgba(239,68,68,.14) !important; border-color: rgba(239,68,68,.85) !important; }
.il-delsel:focus-visible { outline: 2px solid #fca5a5 !important; outline-offset: 2px !important; }
/* Home inbox REMOVE SELECTED FROM DASHBOARD (T-219 audit, M-home-02.056, member and demo): the same hover as DELETE SELECTED
   while enabled, and nothing else; its keyboard focus is left as it was (keyboard work is deferred by her #2232). */
.il-delsel-hov:not(:disabled):hover { background: rgba(239,68,68,.14) !important; border-color: rgba(239,68,68,.85) !important; }
