/* The phone page's styles (mobile.html). Its own sheet rather than a media
   query on styles.css: the desktop sheet is built around a fixed 4000px
   GridStack canvas, and nothing in it is laid out for a 390px screen.

   Same colours and conventions as the desktop — JetBrains Mono for data,
   Inter for labels, stripes at 0.07 (docs/notes/feedback_frontend_visual_conventions.md).
   Sizes run a step larger than the desktop's scale: this is read at arm's
   length and tapped with a thumb. */

:root {
  --bg: #0B0E13;
  --panel: #12161F;
  --border: #1F2531;
  --text: #E7EBF3;
  --muted: #6B7684;
  --gain: #35C488;
  --loss: #E5536B;
  --amber: #E3A23C;
  --stripe: rgba(255, 255, 255, 0.07);

  --font-label: 12px;  /* uppercase labels */
  --font-data: 15px;   /* figures in rows and stats */
  --font-title: 17px;  /* the card and row headlines */
  /* The desktop's type scale, which chart.css and analysis.css read. */
  --font-head: 13px;
  --font-body: 14px;
  --font-note: 12px;

  --top-h: 44px;
  --tk-head-h: 52px;   /* a ticker page's head; what pins under it sits this far down */
  --tab-h: 48px;
  /* How far the tab bar sits into the home-indicator strip. iOS reserves 34pt
     there; the indicator itself is a thin bar near the very bottom, so the
     tabs can take the top of the strip and stay clear of it. */
  --tab-bottom: max(calc(env(safe-area-inset-bottom) - 12px), 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  /* The bars are pinned and .m-main scrolls between them, so the page itself
     never scrolls — which is also what keeps iOS from dragging the bars off
     with a rubber-band overscroll.

     Pinned to the four edges, which in a Home Screen app is the web view
     iOS gives the page — see mobile.html on the status bar style that makes
     that view the whole screen below the status bar. */
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  /* No double-tap zoom either; see main.js for the pinch. */
  touch-action: manipulation;
}
button {
  font: inherit; color: inherit; background: none; border: none;
  text-align: inherit; cursor: pointer; touch-action: manipulation;
}
.mono { font-family: 'JetBrains Mono', monospace; }
.up { color: var(--gain); }
.down { color: var(--loss); }
[hidden] { display: none !important; }

/* --- Bars ---------------------------------------------------------------- */
.m-top {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: env(safe-area-inset-top) 6px 0;
  height: calc(var(--top-h) + env(safe-area-inset-top));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.m-top-title {
  font-family: 'Space Grotesk', sans-serif; font-size: var(--font-title); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.m-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--loss); }
.m-icon-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.m-icon-btn:active { color: var(--text); }
.m-icon-btn svg { width: 22px; height: 22px; }

.m-main {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 8px 16px;
}

.m-tabbar {
  flex: none;
  display: flex;
  height: calc(var(--tab-h) + var(--tab-bottom));
  padding-bottom: var(--tab-bottom);
  background: var(--panel);
  border-top: 1px solid var(--border);
}
.m-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--muted); font-size: 11px; font-weight: 600;
}
.m-tab svg { width: 22px; height: 22px; }
.m-tab.active { color: var(--amber); }

/* --- Sidebar ------------------------------------------------------------- */
.m-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 20; }
.m-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: 72%; max-width: 300px;
  background: var(--panel); border-right: 1px solid var(--border);
  padding: calc(env(safe-area-inset-top) + 12px) 0 env(safe-area-inset-bottom);
  transform: translateX(-100%); transition: transform 0.2s ease;
  z-index: 21;
}
.m-drawer.open { transform: none; }
.m-drawer-head {
  font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600;
  padding: 8px 20px 16px;
}
.m-drawer-item {
  display: block; width: 100%; padding: 14px 20px;
  font-size: 16px; font-weight: 600; color: var(--muted);
  border-left: 3px solid transparent;
}
.m-drawer-item.active { color: var(--text); border-left-color: var(--amber); background: var(--stripe); }
/* A page under a section (X under Investing): indented, a step smaller. */
.m-drawer-sub { padding: 10px 20px 10px 36px; font-size: 15px; }
/* The notifications switch, at the foot of the sidebar (js/mobile/push.js). */
.m-drawer { display: flex; flex-direction: column; }
.m-push { margin-top: auto; padding: 14px 20px 18px; border-top: 1px solid var(--border); }
.m-push-head { font-size: 14px; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; }
.m-push-state { font-family: 'JetBrains Mono', monospace; font-weight: 400; color: var(--muted); }
.m-push-state.on { color: var(--gain); }
.m-push-note { font-size: 12px; line-height: 1.4; color: var(--muted); margin: 6px 0 10px; }
.m-push-actions { display: flex; gap: 8px; }
.m-push-btn {
  flex: 1; padding: 9px 0; font-size: 13px; font-weight: 600; color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; background: transparent;
}
.m-push-btn:disabled { opacity: 0.5; }

/* --- Cards --------------------------------------------------------------- */
.m-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 8px;
}
.m-empty { color: var(--muted); text-align: center; padding: 32px 16px; }
.m-label {
  font-size: var(--font-label); color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600;
}

/* The value curve. The class names inside are lib/eq-curve.js's own, shared
   with the desktop's box; their look here is this sheet's. */
.m-eqcurve { padding: 10px 10px 8px; display: flex; flex-direction: column; gap: 6px; }
/* Five accounts don't fit a phone's width, so the row scrolls sideways. */
.m-eqcurve-tabs {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  margin: -2px -10px 0; padding: 0 6px;
}
.m-eqcurve-tabs::-webkit-scrollbar { display: none; }
.m-eqcurve-tabs .inv-orders-tab {
  flex: none; color: var(--muted); padding: 6px 10px 7px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.m-eqcurve-tabs .inv-orders-tab.active { color: var(--text); border-bottom-color: var(--amber); }
.eqcurve-readout { white-space: nowrap; }
.eqcurve-value {
  font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 600; line-height: 1.15;
}
.eqcurve-delta {
  font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 600; line-height: 1.3;
}
.eqcurve-delta .eqcurve-when { color: var(--muted); font-size: 12px; margin-left: 6px; }
.eqcurve-flow { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.eqcurve-body { position: relative; height: 200px; }
.eqcurve-chart { position: absolute; inset: 0; }
.eqcurve-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 16px; color: var(--muted);
}
.eqcurve-ranges { display: flex; justify-content: space-between; gap: 2px; }
.eqcurve-range {
  flex: 1; border-radius: 6px; color: var(--muted); padding: 7px 0;
  font-size: 12px; font-weight: 600; font-family: 'JetBrains Mono', monospace; text-align: center;
}
.eqcurve-range.active { color: var(--bg); background: var(--amber); }

/* --- Account cards ------------------------------------------------------- */
.m-acct { overflow: hidden; }
.m-acct-head { display: block; width: 100%; padding: 12px 12px 10px; }
.m-acct-title { display: flex; align-items: center; gap: 8px; }
.m-acct-name { flex: 1; font-size: 15px; font-weight: 700; }
.m-acct-value { font-size: 20px; font-weight: 600; }
.m-chevron { width: 18px; height: 18px; color: var(--muted); transition: transform 0.15s ease; flex: none; }
.m-acct.open .m-chevron { transform: rotate(180deg); }
.m-acct-stats { display: flex; gap: 12px; margin-top: 8px; }
.m-stat { flex: 1; min-width: 0; }
.m-stat-val { font-size: var(--font-data); font-weight: 600; margin-top: 2px; white-space: nowrap; }
.m-stat-val [data-f$="Pct"] { font-size: 13px; }
.m-acct-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border);
  font-size: 14px;
}
.m-acct-extra:not(:empty) { margin-left: 10px; }

/* --- Holdings ------------------------------------------------------------ */
.m-holdings { border-top: 1px solid var(--border); }
.m-hold:nth-child(even) { background: var(--stripe); }
.m-hold-main { display: flex; align-items: stretch; min-height: 58px; }
/* Two halves, two jobs: the symbol side opens the chart, the P&L side drops
   down the details. Each is a full-height button so a thumb anywhere on its
   half lands on it. */
.m-hold-sym, .m-hold-pnl {
  flex: 1 1 50%; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 8px 12px;
}
.m-hold-sym:active, .m-hold-pnl:active { background: var(--stripe); }
.m-hold-pnl { align-items: flex-end; gap: 4px; }
.m-hold-ticker { font-size: var(--font-title); font-weight: 700; }
.m-hold-sub { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Webull's price pill: the last price on the day's colour. */
.m-pill {
  min-width: 84px; padding: 3px 9px; border-radius: 5px; text-align: right;
  font-size: var(--font-data); font-weight: 600; color: #fff;
}
.m-pill.up { background: #2E9E6E; color: #fff; }
.m-pill.down { background: #D0435B; color: #fff; }
.m-hold-day { font-size: 12px; font-weight: 600; white-space: nowrap; }

.m-hold-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: 0 12px 10px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  background: var(--bg);
}
.m-detail-cell {
  display: flex; justify-content: space-between; align-items: baseline; gap: 6px;
  padding: 5px 8px; font-size: 13px; white-space: nowrap;
}
.m-detail-cell .m-label { font-size: 10px; }
/* Striped by row of two, like the desktop's Key Stats grid. */
.m-detail-cell:nth-child(4n+3), .m-detail-cell:nth-child(4n+4) { background: var(--stripe); }

/* --- Sheets: the full-screen chart and the watchlist editor ------------- */
.m-sheet {
  position: fixed; inset: 0; z-index: 30; background: var(--bg);
  padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
  display: flex; flex-direction: column;
}
.m-sheet-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  height: var(--top-h); padding: 0 6px 0 12px; border-bottom: 1px solid var(--border);
}
.m-sheet-title { font-family: 'Space Grotesk', sans-serif; font-size: var(--font-title); font-weight: 600; }
.m-text-btn { color: var(--muted); font-size: 16px; font-weight: 600; padding: 8px 10px; }
.m-text-btn:active { color: var(--text); }
.m-text-btn-strong { color: var(--amber); }

/* The widget, whole, filling the sheet below its head. Its own controls row
   and timeframe bar are the desktop's; a thumb needs them a little bigger. */
.m-chart-panel { flex: 1 1 auto; min-height: 0; padding: 6px 6px 4px; }
.m-chart-panel .chart-ctl-btn, .m-chart-panel .pos-chart-tf-btn { min-height: 34px; min-width: 34px; }
.m-chart-panel .chart-footer { flex-wrap: wrap; }

/* --- Watchlist ------------------------------------------------------------- */
.m-wl-bar {
  display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
.m-wl-timeframes { flex: 1; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.m-wl-timeframes::-webkit-scrollbar { display: none; }
.m-chip {
  flex: none; padding: 6px 11px; border-radius: 16px; background: var(--panel);
  border: 1px solid var(--border); color: var(--muted);
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600;
}
.m-chip.active { color: var(--bg); background: var(--amber); border-color: var(--amber); }

/* The tiles are the widget's own panes (js/mobile/charts.js' tilesGroup),
   restyled here: two across and scrolling with the page instead of a grid
   filling a box, the widget's controls and readouts put away, and room made
   at the top of each for the ticker and its quote. */
.m-wl-panel .pos-chart-controls-row, .m-wl-panel .chart-footer { display: none; }
.m-wl-panel .chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: none; grid-auto-rows: 190px; gap: 8px;
}
.m-wl-panel .candle-chart-container {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.m-wl-panel .candle-chart-container.pane-selected { outline: none; }
.m-wl-panel .chart-symbol-form, .m-wl-panel .chart-watermark, .m-wl-panel .chart-ohlc,
.m-wl-panel .chart-ind-values, .m-wl-panel .chart-scroll-live, .m-wl-panel .chart-draw-capture {
  display: none !important;
}
/* Every layer the widget stacks in a pane moves down together, so the
   shading and overlays stay registered with the candles. */
.m-wl-panel .chart-lwc, .m-wl-panel .chart-bg, .m-wl-panel .chart-overlay,
.m-wl-panel .candle-chart-hint {
  position: absolute; top: var(--tile-head); left: 0; right: 0; bottom: 0; width: auto; height: auto;
}
.m-wl-panel { --tile-head: 42px; }
.m-wl-panel .candle-chart-hint { font-size: 12px; }
.m-tile-head {
  position: absolute; top: 0; left: 0; right: 0; height: var(--tile-head);
  padding: 5px 8px 0; overflow: hidden; pointer-events: none;
}
.m-tile-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.m-tile-sym { font-size: 15px; font-weight: 700; line-height: 1.2; }
.m-tile-ext { font-size: 11px; color: var(--muted); white-space: nowrap; }
.m-tile-quote { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; line-height: 1.4; }

/* --- Watchlist editor ------------------------------------------------------ */
.m-edit-add { flex: none; display: flex; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.m-edit-add input, .m-edit-sym input {
  flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 16px; padding: 8px 10px; text-transform: uppercase;
}
.m-edit-add input:focus, .m-edit-sym input:focus { outline: none; border-color: var(--amber); }
.m-edit-error { flex: none; color: var(--loss); padding: 8px 14px 0; }
.m-edit-list { flex: 1 1 auto; overflow-y: auto; list-style: none; padding: 6px 0 20px; }
.m-edit-row { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: var(--bg); }
.m-edit-row:nth-child(even) { background: var(--stripe); }
.m-edit-row.dragging { position: relative; z-index: 2; background: var(--panel); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.m-edit-sym { flex: 1; display: flex; min-width: 0; }
.m-edit-sym input { background: transparent; border-color: transparent; font-weight: 700; }
.m-edit-handle, .m-edit-remove {
  flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
/* The handle takes the finger for itself: without this, iOS would scroll the
   list instead of letting the row be dragged. */
.m-edit-handle { touch-action: none; cursor: grab; }
.m-edit-handle svg, .m-edit-remove svg { width: 20px; height: 20px; }
.m-edit-remove:active { color: var(--loss); }

/* --- Analysis --------------------------------------------------------------- */
/* The section tabs and the breakdown's part tabs are the desktop's tab style
   (.inv-orders-tab), which analysis.css doesn't carry; drawn here. */
.m-an-sections, .m-an-parts, .m-algo-accounts {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.m-an-sections { padding: 2px 6px 0; }
.m-an-sections .inv-orders-tab, .m-an-parts .inv-orders-tab, .m-algo-accounts .inv-orders-tab {
  flex: none; color: var(--muted); padding: 9px 12px 8px; font-size: 14px; font-weight: 600;
  white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.m-an-sections .inv-orders-tab.active, .m-an-parts .inv-orders-tab.active, .m-algo-accounts .inv-orders-tab.active {
  color: var(--text); border-bottom-color: var(--amber);
}
.m-an-count { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); margin-left: 5px; }

.m-an-row {
  /* The last column is the plan's word and score (2026-10-02); it was the
     range position, which fitted in 44px. */
  display: grid; grid-template-columns: 30px minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1fr) 80px;
  align-items: center; gap: 6px; width: 100%; padding: 9px 10px; min-height: 44px;
  font-size: 14px;
}
.m-an-range .analysis-badge { margin-right: 3px; }
.m-an-row:nth-child(odd):not(.m-an-head) { background: var(--stripe); }
.m-an-row.selected { box-shadow: inset 3px 0 0 var(--amber); background: rgba(227, 162, 60, 0.10); }
.m-an-head {
  min-height: 0; padding-top: 7px; padding-bottom: 5px;
  font-size: var(--font-label); color: var(--muted); text-transform: uppercase; font-weight: 600;
}
.m-an-lights { display: flex; gap: 4px; align-items: center; }
.m-an-lights .analysis-light { flex: none; margin: 0; }
.m-an-sym { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-an-trend { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-an-price, .m-an-range { text-align: right; white-space: nowrap; }
.m-an-head .m-an-price, .m-an-head .m-an-range { font-family: inherit; }
.m-an-price .analysis-day { display: block; margin-left: 0; font-size: 12px; }

.m-an-chart-card { margin-bottom: 8px; }
.m-an-panel .chart-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 300px; }

.m-an-breakdown { padding: 10px 12px 12px; }
.m-an-breakdown .analysis-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.m-an-meta { font-size: var(--font-note); margin-top: 2px; }
.m-an-parts { margin: 10px -12px 8px; padding: 0 6px; }
.m-an-part .analysis-story { font-size: 14px; line-height: 1.55; }
.m-an-part .analysis-table { width: 100%; font-size: 13px; }
.m-an-breakdown .analysis-mini { padding: 6px 10px; font-size: 13px; }
.m-an-breakdown .analysis-head .analysis-mini { white-space: nowrap; flex: none; }
/* The levels table is the desktop's (analysis-read.js' levelRowHtml), laid
   out for a narrow screen: the four numbers across, and each level's "why"
   on a line of its own beneath them rather than squeezed into a fifth
   column. */
.m-an-part .analysis-levels thead tr, .m-an-part .analysis-levels tbody tr {
  display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr; column-gap: 6px; padding: 4px 2px;
}
.m-an-part .analysis-levels th, .m-an-part .analysis-levels td { padding: 1px 0; border: none; }
.m-an-part .analysis-levels th:last-child { display: none; }
.m-an-part .analysis-levels td.analysis-why { grid-column: 1 / -1; padding-top: 2px; line-height: 1.4; }

/* The thin bar of a view's own sub-tabs, docked on the tab bar: Analysis'
   Tape and Watchlist. */
.m-subbar {
  flex: none; display: flex; height: 34px;
  background: var(--panel); border-top: 1px solid var(--border);
}
.m-subtab {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; font-weight: 600;
  border-bottom: 2px solid transparent;
}
.m-subtab.active { color: var(--text); border-bottom-color: var(--amber); }

/* The Analysis chart pans and pinches, so it carries the widget's >> button
   back to the newest candle, which the watchlist's tiles leave out. */
.m-wl-panel.m-an-panel .chart-scroll-live { display: flex !important; }

/* --- The tape --------------------------------------------------------------- */
.m-an-tape-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.m-an-tape-head { padding: 8px 12px 4px; font-size: var(--font-note); }
.m-an-tape-event {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 4px 8px; align-items: baseline;
  padding: 7px 12px; font-size: 14px;
}
.m-an-tape-event:nth-child(even) { background: var(--stripe); }
.m-an-tape-time { font-size: 12px; white-space: nowrap; }
.m-an-tape-sym { font-weight: 700; color: var(--text); padding: 2px 0; }
.m-an-tape-text .analysis-sev { margin-right: 6px; }

/* The tiles' indicator menu, moved onto the watchlist bar (watchlist.js).
   Only the indicators: the drawings and levels menus beside it in the
   widget's row are for charts that draw them. It opens down and leftward,
   from the right-hand end of the bar, and its EMA and SMA panels open below
   rather than out past the screen's edge. */
.m-wl-bar .pos-chart-indicators { flex: none; }
.m-wl-bar [data-root="drawings"], .m-wl-bar [data-root="ta"] { display: none; }
.m-wl-bar .chart-ctl-btn { min-height: 32px; min-width: 40px; }
.m-wl-bar .chart-ctl-menu { left: auto; right: 0; z-index: 25; }
.m-wl-bar .pos-chart-indicator-dropdown.expand-right > .pos-chart-indicator-menu {
  left: auto; right: 0; top: 100%;
}

/* --- Ticker page -------------------------------------------------------------- */
/* The page's head — back, the ticker, its price — stays at the top while the page scrolls under it (2026-10-05). Both
   ticker pages use it: Home's and the Analysis tab's. Out to the edges of the scroll area, gutters included, so nothing
   shows beside it, and up past the area's top padding (top: -8px), so nothing shows above it. */
.m-tk-head {
  display: flex; align-items: center; gap: 4px;
  position: sticky; top: -8px; z-index: 5; background: var(--bg);
  height: var(--tk-head-h); margin: -8px -8px 8px; padding: 4px;
}
.m-tk-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-tk-sym { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tk-kind { font-size: var(--font-note); color: var(--muted); }
.m-tk-kind:empty { display: none; }
.m-tk-price { display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; font-weight: 600; }
.m-tk-chart-card { padding: 8px 8px 6px; }
.m-tk-card { padding: 10px 12px 12px; }
.m-card-title {
  font-size: var(--font-label); color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.03em; font-weight: 600; margin-bottom: 8px;
}
/* The summed figures, three across. */
.m-tk-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
.m-tk-stat { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.m-tk-stat .mono { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tk-stat .m-label { font-size: 10px; }
.m-tk-accounts { margin-top: 10px; border-top: 1px solid var(--border); }
.m-tk-acct { padding: 8px 0; border-bottom: 1px solid var(--border); }
.m-tk-acct:last-child { border-bottom: none; }
.m-tk-acct-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-tk-acct-name { font-weight: 700; font-size: 14px; }
.m-tk-acct-actions { display: flex; gap: 6px; }
.m-tk-side {
  min-width: 56px; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--border);
}
.m-tk-side.buy { color: var(--gain); border-color: rgba(53, 196, 136, 0.5); }
.m-tk-side.sell { color: var(--loss); border-color: rgba(229, 83, 107, 0.5); }
.m-tk-acct-figs { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Order entry: the shared box (order-entry.css), sized for a thumb. */
.m-tk-oe-form { display: flex; gap: 6px; margin-bottom: 8px; }
.m-tk-oe-form input {
  flex: 1; min-width: 0; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 10px; font-size: 16px;
}
.m-tk-oe-form input:focus { outline: none; border-color: var(--amber); }
.m-tk-card .inv-oe-stage { margin-bottom: 8px; }
.m-tk-card .inv-oe-summary { flex-basis: 100%; }
.m-tk-card .inv-oe-hint { display: none; }
.m-tk-card .inv-oe-actions { margin-left: 0; width: 100%; }
.m-tk-card .inv-oe-btn { flex: 1; padding: 10px 14px; font-size: 15px; }
.m-tk-card .inv-oe-row { flex-wrap: wrap; font-size: 13px; }


/* --- The algo book's light (js/mobile/algo-light.js) -----------------------
   A pill beside the title, on every view, and a dot on the Analysis tab:
   amber and pulsing while something is waiting on him, red while a holding
   trades under its stop, steady blue while sent orders are working. */
.m-algo-light {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
  color: var(--amber); background: rgba(227, 162, 60, 0.12); border: 1px solid rgba(227, 162, 60, 0.6);
  animation: stream-dot-pulse 1.6s ease-in-out infinite;
}
.m-algo-light.working {
  color: #5B9BD5; background: rgba(91, 155, 213, 0.12); border-color: rgba(91, 155, 213, 0.6); animation: none;
}
.m-tab { position: relative; }
.m-tab.algo-lit::after, .m-tab.algo-working::after {
  content: ''; position: absolute; top: 8px; left: calc(50% + 10px);
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  animation: stream-dot-pulse 1.6s ease-in-out infinite;
}
.m-tab.algo-working::after { background: #5B9BD5; animation: none; }
/* Red while a holding is trading under its stop. */
.m-algo-light.alert { color: var(--loss); background: rgba(239, 83, 80, 0.12); border-color: rgba(239, 83, 80, 0.6); }
.m-tab.algo-lit.algo-alert::after { background: var(--loss); }
@keyframes stream-dot-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .m-algo-light, .m-tab.algo-lit::after { animation: none; } }
.m-algo-card {
  position: fixed; z-index: 15; left: 8px; right: 8px;
  top: calc(var(--top-h) + env(safe-area-inset-top) + 6px);
  max-height: 60vh; overflow-y: auto; padding: 10px 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.m-algo-head { font-weight: 600; margin-bottom: 4px; }
.m-books-now { font-weight: 400; }
.m-algo-section {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  margin: 8px 0 4px;
}
.m-algo-section.lit { color: var(--amber); }
.m-algo-order { padding: 4px 0; border-top: 1px solid var(--border); }
.m-algo-order .mono { font-family: 'JetBrains Mono', monospace; }
.m-algo-why, .m-algo-note { color: var(--muted); font-size: 12px; line-height: 1.4; }
/* The X view (js/mobile/x.js): the board's panes, a little in from the edges. */
.m-x-pane { padding: 10px 14px 24px; }
.m-x-pane[hidden] { display: none; }
.m-algo-note { margin-top: 8px; }

/* The Algo book pane (js/mobile/algo-pane.js). */
.m-algo-accounts { margin: -2px -2px 10px; }
.m-algo-stats { display: flex; gap: 18px; margin-bottom: 6px; }
.m-algo-stats > div { display: flex; flex-direction: column; }
.m-algo-k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.m-algo-size { color: var(--muted); }
.m-algo-table { width: 100%; margin-top: 4px; }
.m-algo-table td, .m-algo-table th { padding: 4px 6px; }
.m-algo-pane .up:not(.m-pill) { color: var(--gain); }
.m-algo-pane .down:not(.m-pill) { color: var(--loss); }

.m-algo-table tr[data-open] { cursor: pointer; }

/* The Algo book's holdings: Home's rows (.m-hold), in the pane's card. */
.m-algo-holds { margin: 0 -12px; }
.m-algo-holds .m-hold-detail { margin: 0 12px 10px; }
.m-detail-why { grid-column: 1 / -1; white-space: normal; justify-content: flex-start; align-items: flex-start; }
.m-detail-why span:last-child { color: var(--muted); font-size: 12px; line-height: 1.4; }
.m-algo-stats { flex-wrap: wrap; row-gap: 6px; }
.m-algo-holds .m-detail-cell { min-width: 0; }
.m-algo-holds .m-detail-cell > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* The pane's inner gutter; the holding rows run edge to edge inside it, exactly (2026-10-05: they ran 3px past the
   screen and the page slid sideways). */
.m-algo-pane { padding: 10px 12px; overflow-x: clip; }   /* clip, not hidden: hidden would unpin its tabs */
.m-algo-pct { font-size: 12px; }

/* --- Pinned headers (2026-10-05) ---------------------------------------------
   Every page's head, tabs and column labels stay at the top while what is under
   them scrolls. .m-main is the scroller, with 8px of top padding: top: -8px puts
   a pinned bar flush with its top edge. Each takes a solid background so rows
   don't show through. Nothing they sit in may be overflow: hidden, which
   unpins them; overflow-x: clip does not. */
.m-an-pin {                              /* the Analysis watchlist: section tabs + column labels */
  position: sticky; top: -8px; z-index: 4; background: var(--panel);
  border-radius: 10px 10px 0 0;
}
.m-an-pin .m-an-head { border-bottom: 1px solid var(--border); }
.m-an-tape-filters {                     /* the tape's filters */
  position: sticky; top: -8px; z-index: 4; background: var(--bg);
  margin: -8px -8px 0; padding: 8px 8px 8px;
}
.m-algo-accounts {                       /* the Algo book's account tabs */
  position: sticky; top: -8px; z-index: 4; background: var(--panel);
}
[data-wl-pane="charts"] > .m-wl-bar {  /* the chart watchlist: timeframes, indicators, Edit */
  position: sticky; top: -8px; z-index: 4; background: var(--bg);
  margin: -8px -8px 0; padding: 8px;
}
.m-an-breakdown .m-an-parts {            /* a ticker's breakdown tabs, under the page's head */
  position: sticky; top: calc(var(--tk-head-h) - 8px); z-index: 4; background: var(--panel);
  margin: 0 -12px; padding: 0 12px;
}

/* The tape's two filter boxes: the desktop's menus (analysis.css), sized for a thumb. Each menu places against the
   pinned bar, so it opens from the bar's left edge and stays on screen. */
.m-tape-menu { position: static; }
.m-tape-menu summary { padding: 7px 12px; border-radius: 16px; background: var(--panel); font-size: 14px; }
.m-tape-menu .analysis-tape-menu-body { left: 8px; gap: 2px; padding: 8px 10px; width: min(330px, calc(100vw - 32px)); }
.m-tape-menu .analysis-tape-menu-body label { padding: 6px 0; font-size: 14px; white-space: normal; }
.m-tape-menu input { margin-right: 6px; accent-color: var(--amber); width: 16px; height: 16px; vertical-align: -2px; }
.m-tape-menu .analysis-tape-note { margin-left: 24px; max-width: none; font-size: 12px; }

/* A ticker's own tape, on a long press: the desktop's right-click menu as a sheet above the tab bars. The rows it is
   pressed on keep iOS's text selection and callout out of the way. */
.m-an-row, .m-an-tape-event { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* A long press anywhere drafts a post (js/mobile/x.js): iOS's own press menu and text selection would
   open over it. Fields keep both. */
.m-main { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.m-main input, .m-main textarea { -webkit-touch-callout: default; -webkit-user-select: text; user-select: text; }
.m-tape-sheet {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(110px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; font-size: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
.m-tape-sheet[hidden] { display: none; }
.m-tape-sheet .analysis-row-menu-title { font-size: 17px; color: var(--text); }
.m-tape-sheet label { display: flex; align-items: center; gap: 8px; }
.m-tape-sheet input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--amber); }
.m-tape-sheet .analysis-row-menu-field { flex-direction: column; align-items: stretch; gap: 4px; }
.m-tape-sheet select { font-size: 16px; padding: 8px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; }
.m-tape-sheet [data-tape-sheet-done] { align-self: flex-end; }
.m-an-sym .analysis-notape, .m-an-sym .analysis-tapeset { margin-left: 5px; font-size: 10px; font-family: Inter, sans-serif; font-weight: 500; }

/* A holding's row (js/mobile/hold-row.js, 2026-10-06): the left half takes what the price does not need. Top line:
   ticker, name, shares @ cost, the name giving way first; below it, the day and the open. */
.m-hold-sym { flex: 1 1 auto; align-items: stretch; }
.m-hold-pnl { flex: 0 0 auto; }
.m-hold-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.m-hold-top .m-hold-ticker { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-hold-name { flex: 1 1 0; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; text-align: left; }
.m-hold-qty { flex: none; font-size: 12px; color: var(--muted); }
.m-hold-sub { text-align: left; margin-top: 3px; font-size: 12px; }
.m-hold-k { color: var(--muted); font-family: Inter, sans-serif; font-size: 11px; margin-right: 3px; }
.m-hold-gap { display: inline-block; width: 7px; }
.m-hold-pnl .m-pill { min-width: 74px; }

/* The change per share and in %, under the price (2026-10-06): 12px, so a double-digit open % still fits beside it. */
.m-hold-pnl .m-hold-day { font-size: 12px; }
/* The two halves meet with little padding between them: the room goes to the figures. */
.m-hold-main .m-hold-sym { padding-right: 4px; }
.m-hold-main .m-hold-pnl { padding-left: 4px; }

/* --- The Breakdown tab (js/mobile/breakdown.js, 2026-10-12): one card, a book or the activity at a time. ---------- */
.m-bd { padding: 10px 12px 12px; }
.m-bd-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: var(--font-title); font-weight: 700; }
.m-bd-title .magnum-rule, .m-bd-title .analysis-badge { font-size: 12px; font-weight: 600; }
.m-bd-meta { font-size: var(--font-note); color: var(--muted); margin-top: 3px; }
.m-bd p { font-size: 14px; line-height: 1.5; margin: 6px 0; }
.m-bd .magnum-section { margin-top: 14px; }
.m-bd .magnum-table { width: 100%; }
.m-bd .magnum-table th { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 3px 6px; text-align: left; font-weight: 600; }
.m-bd .magnum-table td { font-size: 13px; white-space: nowrap; padding: 4px 6px; }
.m-bd .magnum-table td.num { font-size: 13px; }
.m-bd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 14px; }
.m-bd-row span:first-child { flex: none; }
.m-bd-row span:last-child { font-family: 'JetBrains Mono', monospace; font-size: 13px; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.m-bd .magnum-table td.m-bd-half { white-space: normal; }
.m-bd .magnum-table td.m-bd-half .mono { display: block; font-size: 11px; color: var(--muted); }
.m-bd-rows { margin-top: 2px; }

/* Activity: a line an add, a withdrawal or a close's trades; tap for the fills; a line the light was tapped for glows. */
.m-act-list { margin: 8px -12px 0; }
/* By day (2026-10-13): a day a dropdown, inside it each account and its trades. */
.m-act-day { border-top: 1px solid var(--border); margin: 0 -12px; }
.m-act-day-head { display: flex; width: 100%; justify-content: space-between; align-items: baseline; padding: 11px 12px;
  background: none; border: none; color: inherit; font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.m-act-day-n { font-size: 11px; font-weight: 400; color: var(--muted); }
.m-act-day-body { padding: 0 12px 8px; }
.m-act-account { margin: 6px 0 0; }
.m-act { border-top: 1px solid var(--border); }
.m-act:nth-child(even) { background: var(--stripe); }
.m-act-line { display: block; width: 100%; padding: 9px 12px; }
.m-act-line:active { background: var(--stripe); }
.m-act-top { display: flex; align-items: baseline; gap: 8px; }
.m-act-top .analysis-badge { flex: none; }
.m-act-head { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.m-act-when { flex: none; font-size: 11px; color: var(--muted); }
.m-act-what { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.m-act-what:empty { display: none; }
.m-act-fills { padding: 0 12px 10px 12px; }
.m-act-fill { font-size: 12px; line-height: 1.5; color: var(--text); padding: 2px 0; }
.m-act-book { display: inline-block; min-width: 26px; margin-right: 6px; color: var(--muted); }
/* What is queued at today's close (2026-10-14): a line a book on the Activity, the book's name in amber, and on the
   book's Breakdown a box in amber at the top until the 06:00 decision, the settled reading under it in grey. */
.m-queued { margin: 10px 0 4px; }
.m-queued-line { display: block; width: 100%; text-align: left; margin-top: 6px; padding: 10px 12px; border: 1px solid rgba(227, 162, 60, 0.55);
  border-radius: 8px; background: rgba(227, 162, 60, 0.08); color: var(--text); }
.m-queued-line:active { background: rgba(227, 162, 60, 0.16); }
.m-queued-top { font-size: 14px; font-weight: 600; }
.m-queued-book { color: var(--amber); }
.m-queued-what { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.m-queued-more { font-size: 11px; color: var(--amber); margin-top: 5px; }
.m-queued-box { margin: 10px 0 4px; padding: 4px 12px 10px; border: 1px solid var(--amber); border-radius: 8px; background: rgba(227, 162, 60, 0.08); }
.m-queued-label { font-size: var(--font-label); text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber); margin-top: 8px; }
.m-queued-trade { margin-top: 8px; }
.m-queued-name { font-size: 15px; font-weight: 700; }
.m-queued-where { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.m-queued-trade p { margin: 4px 0 0; }
.m-queued-cond { color: var(--amber); }
.m-queued-when { font-size: var(--font-note); color: var(--muted); margin: 8px 0 0; }
.m-bd-worked { font-family: 'JetBrains Mono', monospace; font-size: 13px; }   /* the leverage formula on the day's halves */
.m-settled { opacity: 0.5; filter: grayscale(1); }
.m-settled-label { font-size: var(--font-label); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 14px; }
.m-act-new { box-shadow: inset 3px 0 0 var(--amber), 0 0 0 1px rgba(227, 162, 60, 0.55); animation: m-act-glow 1.6s ease-in-out infinite; }
@keyframes m-act-glow { 50% { box-shadow: inset 3px 0 0 var(--amber), 0 0 0 1px rgba(227, 162, 60, 0.15); } }
@media (prefers-reduced-motion: reduce) { .m-act-new { animation: none; } }

/* Back by a swipe in from the left edge (js/mobile/edge-back.js): a chevron that follows the finger, lit once letting go is back. */
.m-edge-back {
  position: fixed; left: 0; top: -22px; z-index: 1000; pointer-events: none;
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--border); color: var(--muted);
}
.m-edge-back svg { width: 22px; height: 22px; }
.m-edge-back.ready { color: var(--text); border-color: var(--amber); }

/* A row on the algo light's card that names a ticker opens its page on the Analysis tab. */
.m-algo-order[data-symbol] { cursor: pointer; position: relative; padding-right: 18px; }
.m-algo-order[data-symbol]::after {
  content: '\203A'; position: absolute; right: 2px; top: 4px; color: var(--muted); font-size: 18px; line-height: 1;
}
.m-algo-order[data-symbol]:active { background: var(--stripe); }

/* --- News: the "what's driving QQQ" updates (js/mobile/news.js) ------------- */
.m-news-card { padding: 10px 12px; }
.m-news-card.glow { animation: m-act-glow 1.6s ease-in-out 3; box-shadow: inset 3px 0 0 var(--amber); }
.m-news-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.m-news-when { font-size: 12px; color: var(--muted); }
.m-news-headline { font-size: var(--font-title); font-weight: 600; line-height: 1.3; margin: 6px 0 8px; }
.m-news-movers { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; margin-bottom: 4px; }
.m-news-mover.up { color: var(--gain); }
.m-news-mover.down { color: var(--loss); }
.m-news-mover b { color: var(--text); font-weight: 600; }
.m-news-section { margin-top: 10px; }
.m-news-section ul { margin: 4px 0 0; padding-left: 18px; }
.m-news-section li { font-size: 14px; line-height: 1.4; margin: 3px 0; }
.m-news-prints { margin: 4px -12px 0; }
.m-news-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
/* Folded cards (2026-10-13): only the newest is open; a tap on a head opens or folds it. Grouped by day, the summary
   cards under them. */
.m-news-toggle { display: block; width: 100%; background: none; border: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.m-news-card.folded .m-news-headline { margin-bottom: 0; font-size: 15px; font-weight: 500; }
.m-news-chev { margin-left: 6px; color: var(--muted); }
.m-news-group { margin: 14px 4px 6px; }
.m-news-summary { box-shadow: inset 3px 0 0 var(--amber); }

/* The sidebar switch's own kinds (js/mobile/push.js): "What's driving QQQ", on or off for this phone. */
.m-push-kinds { margin-top: 10px; border-top: 1px solid var(--border); }
.m-push-kind { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.m-push-kind input { width: 20px; height: 20px; accent-color: var(--amber); flex: none; }

/* The News pane's settings (js/mobile/news.js): names, and how often. */
.m-news-set { padding: 0 12px; }
.m-news-set summary { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 0; cursor: pointer; }
.m-news-set-sum { font-size: 13px; color: var(--muted); }
.m-news-set-body { padding-bottom: 8px; }
.m-news-set-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; border-top: 1px solid var(--border); }
.m-news-set-col { flex-direction: column; align-items: stretch; }
.m-news-set-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--amber); flex: none; }
.m-news-names { display: flex; flex-wrap: wrap; gap: 6px; }
.m-news-name { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 9px; border-radius: 14px; background: var(--stripe); font-size: 13px; }
.m-news-name button { color: var(--muted); font-size: 16px; padding: 0 5px; }
.m-news-add { display: flex; gap: 8px; }
.m-news-add input { flex: 1; min-width: 0; font-size: 16px; padding: 7px 9px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; }


/* A PIN reset to approve (js/mobile/lock.js): a page of its own over everything, opened from its notification. */
.m-approve {
  position: fixed; inset: 0; z-index: 2000; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: max(env(safe-area-inset-top), 16px) 16px max(env(safe-area-inset-bottom), 16px);
}
.m-approve[hidden] { display: none; }
.m-approve-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.m-approve-head { font-size: 22px; font-weight: 600; }
.m-approve-rows {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
}
.m-approve-rows dt { color: var(--muted); font-size: var(--font-label); text-transform: uppercase; align-self: center; }
.m-approve-rows dd { margin: 0; font-size: var(--font-data); }
.m-approve-said { margin: 0; font-size: var(--font-body); line-height: 1.5; }
.m-approve-actions { display: flex; gap: 12px; }
.m-approve-btn, .m-approve-close {
  flex: 1 1 0; min-height: 48px; border-radius: 10px; font: inherit; font-size: var(--font-title); text-align: center;
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.m-approve-yes { background: var(--amber); color: var(--bg); border-color: var(--amber); font-weight: 600; }
/* A pill a kind (lib/light-pills.js, 2026-10-21), as the board's header has them. */
.m-algo-pills { display: inline-flex; gap: 4px; min-width: 0; max-width: calc(100vw - 150px); overflow-x: auto; scrollbar-width: none; }
.m-algo-pills::-webkit-scrollbar { display: none; }
.m-algo-pills .m-algo-light { flex: none; white-space: nowrap; }
.m-algo-pills .m-algo-light { animation: none; }

/* --- Algo Trader (js/mobile/algo-trader.js): the algo trader's notes ----------- */
.m-da { padding: 10px 14px 24px; }
.m-da-note { padding: 10px 12px; }
.m-da-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.m-da-title { font-weight: 600; }
.m-da-at { font-size: var(--font-note); color: var(--muted); white-space: nowrap; }
.m-da-body { font-size: 13px; line-height: 1.4; }
.m-da-link { display: flex; flex-direction: column; gap: 8px; }
.m-da-link .m-da-top { margin-bottom: 0; }
.m-da-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; font-size: var(--font-data); }
.m-da-said { color: var(--amber); }
