/* ════════════════════════════════════════════════════════════════════════════
   66-table.css  THE shared table page layout (.mpt-*), 2026-10-08.
   ----------------------------------------------------------------------------
   Owner 2026-10-08: one table page layout for every table page, built once,
   two modes. Spec: worktrees/table-layout-research/mockups/board.html,
   Option A (one 36px bar: title, filters, clock, actions; table flush under
   it, no card) and its pane shots (view menu + Filters N).

   Pages: Market movers, Market scanner, Earnings calendar, Economic calendar,
   Analyst targets, Competitions, Time and sales, the admin tables (users,
   action requests, alert requests). The Screener is NOT on it.

   Markup (static/js/lib/table.js, window.MPTable, writes most of it):

     .mpt                       one page (or .mpt.mpt-pane in a workspace pane)
       .mpt-bar                 the one toolbar row
         h2.mpt-title           page only: 14px semibold, same x everywhere
         controls ...           .mpt-seg / .mpt-dd / .mpt-search / .mpt-btn
         .mpt-sp                spacer: filters left, the rest right
         .mpt-clock  .mpt-btn   clock, Columns, CSV
       .mpt-body                the table (and on pages an optional side panel)
         .mpt-scroll            the scroller; table.mpt-t inside
         aside.mpt-side         324px, pages only
     table.mpt-t                thead th = column head; tbody tr.mpt-r = rows
       tr.mpt-g                 group row (+ span.mpt-gc count)
       tr.mpt-s                 sub group row (muted)
       td.mpt-n                 numbers, right aligned
     .mpt-empty                 one muted line under the visible column head

   THE RULES (board, binding): 1 head 36px, title 14px semibold. 2 one
   toolbar row, no strips, tiles or chip rows. 3 controls 24px, 12px text,
   active = filled background. 4 rows 24px page / 20px pane, 12px, one font.
   5 zebra + hover + selected on every table. 6 column head 24px, 12px grey
   sentence case, sticky, one hairline under. 7 text left, numbers right,
   colour only on direction values. 8 group rows 24px tertiary + grey count.
   9 side panel 324px pages only. 10 empty = one grey line under the head.
   11 pane: own 28px toolbar, 22px controls, 20px rows, no side panel.

   Sizes are px at the app's 1440 reference (root 14.08px), with the same
   max(px, rem) floor the 01-base tokens use, so pages grow with the app's
   fluid root. Panes are fixed px like the rest of the workspace.
   tokens.css colours only; rings are inset box shadows; no accent lines.
   APPENDED LAST: owns only .mpt-* (no other file uses it).
   ════════════════════════════════════════════════════════════════════════════ */

.mpt{
  --mpt-head:max(36px, 2.557rem);
  --mpt-title:max(14px, 0.9946rem);
  --mpt-fs:max(12px, 0.8525rem);
  --mpt-ctl:max(24px, 1.705rem);
  --mpt-row:max(24px, 1.705rem);
  --mpt-colhead:max(24px, 1.705rem);
  --mpt-side:max(324px, 23.01rem);
  --mpt-padx:max(12px, 0.8525rem);
  --mpt-cellx:max(8px, 0.5683rem);
  --mpt-gap:max(8px, 0.5683rem);
  --mpt-bg:var(--bg-primary);
  position:relative;flex:1 1 auto;display:flex;flex-direction:column;min-width:0;min-height:0;
  background:var(--mpt-bg);color:var(--text-primary);
  font-family:var(--font-sans);font-size:var(--mpt-fs);line-height:1.35;font-weight:400;
  letter-spacing:normal;font-variant-numeric:tabular-nums;text-transform:none;
}
.mpt [hidden]{display:none!important;}
.mpt button,.mpt input,.mpt select{font-family:var(--font-sans);font-size:var(--mpt-fs);letter-spacing:normal;text-transform:none;}

/* ── The one toolbar row ─────────────────────────────────────────────── */
.mpt-bar{
  flex:none;display:flex;align-items:center;gap:var(--mpt-gap);min-width:0;
  height:var(--mpt-head);padding:0 var(--mpt-padx);box-sizing:border-box;
}
.mpt-title{
  flex:none;margin:0 var(--mpt-gap) 0 0;padding:0;
  font-size:var(--mpt-title);font-weight:600;line-height:1;color:var(--text-primary);white-space:nowrap;
}
.mpt-sp{flex:1 1 auto;min-width:0;}
.mpt-grp{flex:none;display:inline-flex;align-items:center;gap:var(--mpt-gap);min-width:0;}
.mpt-clock,.mpt-meta{flex:none;color:var(--text-muted);white-space:nowrap;}
.mpt-meta b{font-weight:400;color:var(--text-secondary);}

/* ── Controls: 24px, 12px text, inset ring, active = filled ───────────── */
.mpt-ctl,.mpt-dd-btn,.mpt-btn{
  flex:none;display:inline-flex;align-items:center;gap:6px;height:var(--mpt-ctl);padding:0 8px;box-sizing:border-box;
  border:0;border-radius:var(--radius);background:var(--bg-secondary);box-shadow:inset 0 0 0 1px var(--border-default);
  color:var(--text-secondary);font-weight:400;white-space:nowrap;cursor:pointer;
}
.mpt-dd-btn:hover,.mpt-btn:hover,.mpt-ctl:hover{color:var(--text-primary);background:var(--bg-hover);}
.mpt-dd-btn[aria-expanded="true"],.mpt-btn[aria-expanded="true"],.mpt-btn[aria-pressed="true"],
.mpt-dd.mpt-on .mpt-dd-btn,.mpt-btn.mpt-on{background:var(--bg-elevated);color:var(--text-primary);}
.mpt-btn:disabled,.mpt-dd-btn:disabled{opacity:.45;cursor:default;}
/* Ghost: Columns, CSV, icon buttons: no ring until hovered. */
a.mpt-btn{text-decoration:none;}
.mpt-btn.mpt-ghost{background:transparent;box-shadow:none;color:var(--text-muted);}
.mpt-btn.mpt-ghost:hover{background:var(--bg-hover);color:var(--text-primary);}
.mpt-btn.mpt-ghost[aria-expanded="true"],.mpt-btn.mpt-ghost[aria-pressed="true"]{background:var(--bg-elevated);color:var(--text-primary);}
.mpt-btn.mpt-ico{width:var(--mpt-ctl);padding:0;justify-content:center;}
.mpt-btn.mpt-pri{background:var(--accent);box-shadow:none;color:var(--on-accent);}
.mpt-btn.mpt-pri:hover{background:var(--accent);color:var(--on-accent);filter:brightness(1.08);}
.mpt-dd{position:relative;flex:none;display:inline-flex;}
.mpt-dd-l{color:var(--text-muted);}
.mpt-dd-v{color:var(--text-primary);max-width:12rem;overflow:hidden;text-overflow:ellipsis;}
.mpt-dd-v:empty{display:none;}
.mpt-car{width:8px;height:5px;flex:none;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;}
.mpt-i{width:12px;height:12px;flex:none;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;}
.mpt-badge{
  display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;box-sizing:border-box;
  border-radius:8px;background:var(--bg-elevated);color:var(--text-primary);font-size:11px;line-height:1;
}
.mpt-btn[aria-expanded="true"] .mpt-badge,.mpt-btn.mpt-on .mpt-badge{background:var(--bg-tertiary);}

/* Segmented switch: one inset ring, the active segment filled. */
.mpt-seg{
  flex:none;display:inline-flex;align-items:stretch;gap:2px;height:var(--mpt-ctl);padding:2px;box-sizing:border-box;
  border-radius:var(--radius);background:var(--bg-secondary);box-shadow:inset 0 0 0 1px var(--border-default);
}
.mpt-seg-b{
  display:inline-flex;align-items:center;padding:0 8px;border:0;border-radius:var(--radius-sm);
  background:transparent;color:var(--text-muted);white-space:nowrap;cursor:pointer;
}
.mpt-seg-b:hover{color:var(--text-primary);}
.mpt-seg-b[aria-pressed="true"],.mpt-seg-b[aria-selected="true"],.mpt-seg-b.mpt-on{background:var(--bg-elevated);color:var(--text-primary);}
.mpt-seg-b .mpt-k{margin-left:6px;color:var(--text-muted);}

/* Search: same height and ring as the controls. */
.mpt-search{
  position:relative;flex:0 1 auto;display:inline-flex;align-items:center;gap:6px;height:var(--mpt-ctl);
  width:max(180px, 12.78rem);min-width:max(104px, 7.39rem);padding:0 8px;box-sizing:border-box;border-radius:var(--radius);
  background:var(--bg-secondary);box-shadow:inset 0 0 0 1px var(--border-default);color:var(--text-muted);cursor:text;
}
.mpt-search:focus-within{box-shadow:inset 0 0 0 1px var(--border-strong);color:var(--text-secondary);}
.mpt-q{
  flex:1 1 auto;min-width:0;height:100%;padding:0;border:0;outline:none;background:transparent;color:var(--text-primary);
}
.mpt-q::placeholder{color:var(--text-muted);opacity:1;}
.mpt-q::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;}

.mpt-ctl:focus-visible,.mpt-dd-btn:focus-visible,.mpt-btn:focus-visible,.mpt-seg-b:focus-visible,
.mpt-pop-opt:focus-visible,.mpt-scroll:focus-visible,.mpt-t tr:focus-visible{outline:1px solid var(--accent);outline-offset:-1px;}

/* ── Popover (dropdown menus, the pane's view menu and Filters sheet) ──── */
.mpt-pop{
  position:absolute;top:calc(100% + 4px);left:0;z-index:40;
  min-width:max(180px, 12.78rem);max-height:min(24rem, 70vh);overflow:auto;padding:4px;box-sizing:border-box;
  display:flex;flex-direction:column;gap:1px;
  background:var(--bg-elevated);border-radius:var(--radius-lg);
  box-shadow:inset 0 0 0 1px var(--border-strong), var(--shadow-menu);
  color:var(--text-secondary);font-size:var(--mpt-fs);text-align:left;
}
.mpt-pop.mpt-pop-r{left:auto;right:0;}
.mpt-pop-opt{
  display:flex;align-items:center;gap:8px;min-height:var(--mpt-ctl);padding:0 8px;box-sizing:border-box;
  border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-secondary);
  text-align:left;white-space:nowrap;cursor:pointer;width:100%;
}
.mpt-pop-opt:hover{background:var(--bg-hover);color:var(--text-primary);}
.mpt-pop-opt[aria-pressed="true"],.mpt-pop-opt[aria-checked="true"],.mpt-pop-opt.mpt-on{background:var(--bg-tertiary);color:var(--text-primary);}
.mpt-pop-opt input{margin:0;accent-color:var(--accent);width:13px;height:13px;flex:none;}
.mpt-pop-sub{margin-left:auto;padding-left:16px;color:var(--text-muted);}
/* An option the current choice cannot run (Ticket 5 fix 2026-10-21: a
   screen another market cannot answer, "US only"): muted, not clickable. */
.mpt-pop-opt:disabled,.mpt-pop-opt:disabled:hover{background:transparent;color:var(--text-muted);cursor:default;}
.mpt-pop-h{padding:6px 8px 2px;color:var(--text-muted);white-space:nowrap;}
.mpt-pop-h:first-child{padding-top:2px;}
.mpt-pop-sep{height:1px;margin:4px 0;background:var(--border-default);flex:none;}

/* ── Body: the table flush under the bar, side panel to its right ─────── */
.mpt-body{position:relative;flex:1 1 auto;display:flex;min-width:0;min-height:0;box-shadow:inset 0 1px 0 var(--border-default);}
/* The line ABOVE the column head (owner 2026-10-16): one hairline from the
   board's left edge, across the table and the top of the side panel, to
   the right edge under the toolbar's last button. The body's inset shadow
   paints UNDER its children, so the sticky column head (z 2), the side
   panel's background and its sticky strip (z 3) covered it; this 1px
   overlay sits above them (z 4) at the body's top, so the line is the same
   y everywhere. Popovers (z 40) and sheets still open over it. */
.mpt-body::before{
  content:"";position:absolute;top:0;left:0;right:0;height:1px;z-index:4;pointer-events:none;
  background:var(--border-default);
}
.mpt-scroll{
  position:relative;flex:1 1 auto;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent;
}
.mpt-scroll::-webkit-scrollbar,.mpt-side::-webkit-scrollbar,.mpt-pop::-webkit-scrollbar{width:8px;height:8px;}
.mpt-scroll::-webkit-scrollbar-track,.mpt-scroll::-webkit-scrollbar-corner,
.mpt-side::-webkit-scrollbar-track,.mpt-pop::-webkit-scrollbar-track{background:transparent;}
.mpt-scroll::-webkit-scrollbar-thumb,.mpt-side::-webkit-scrollbar-thumb,.mpt-pop::-webkit-scrollbar-thumb{
  background:var(--border-default);border-radius:99px;border:2px solid transparent;background-clip:padding-box;
}
.mpt-side{
  --mpt-side-pad:var(--mpt-padx);
  flex:none;width:var(--mpt-side);min-height:0;overflow:auto;box-sizing:border-box;padding:var(--mpt-side-pad);
  background:var(--bg-secondary);box-shadow:inset 1px 0 0 var(--border-default);
  scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent;
}
/* ONE header line across the page (owner 2026-10-16): the hairline under
   the column head runs on over the side panel. When the scroller opens with
   a table head (its first child, or its first child's first child), the panel opens with a sticky strip as tall as the column
   head (--mpt-colhead), with the same hairline under it and the panel's
   left divider running through it, so the two meet in one corner. A page
   may name the strip (data-head on the aside, drawn like a column head);
   most leave it empty. Pages whose panel padding is not the default set
   --mpt-side-pad with it so the strip stays full bleed. The body's own
   line at the same height shows through the scroller's scrollbar gutter,
   so the line has no gap there either. Phone: the panel is a sheet. */
:root:not([class~="phone"]) .mpt:not(.mpt-pane) > .mpt-body:has(> .mpt-scroll > table:first-child > thead, > .mpt-scroll > :first-child > table:first-child > thead){
  background-image:linear-gradient(var(--border-default), var(--border-default));
  background-repeat:no-repeat;background-size:100% 1px;
  background-position:0 calc(var(--mpt-colhead) - 1px);
}
:root:not([class~="phone"]) .mpt:not(.mpt-pane) > .mpt-body:has(> .mpt-scroll > table:first-child > thead, > .mpt-scroll > :first-child > table:first-child > thead) > .mpt-side{padding-top:0;}
:root:not([class~="phone"]) .mpt:not(.mpt-pane) > .mpt-body:has(> .mpt-scroll > table:first-child > thead, > .mpt-scroll > :first-child > table:first-child > thead) > .mpt-side::before{
  content:attr(data-head);flex:none;display:flex;align-items:center;
  position:sticky;top:0;z-index:3;height:var(--mpt-colhead);box-sizing:border-box;
  margin:0 calc(-1 * var(--mpt-side-pad)) var(--mpt-side-pad);padding:0 var(--mpt-padx);
  background:var(--bg-secondary);color:var(--text-muted);font-weight:400;white-space:nowrap;overflow:hidden;
  box-shadow:inset 1px 0 0 var(--border-default), inset 0 -1px 0 var(--border-default);
}
.mpt-side-h{margin:0;font-size:var(--mpt-title);font-weight:600;color:var(--text-primary);}
.mpt-side-s{margin:2px 0 12px;color:var(--text-secondary);}
.mpt-side-l{margin:0 0 6px;color:var(--text-muted);}

/* ── The table ───────────────────────────────────────────────────────── */
.mpt-t{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:var(--mpt-fs);}
.mpt-t th,.mpt-t td{
  height:var(--mpt-row);padding:0 var(--mpt-cellx);box-sizing:border-box;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;vertical-align:middle;
  font-weight:400;border:0;
}
.mpt-t th:first-child,.mpt-t td:first-child{padding-left:var(--mpt-padx);}
.mpt-t th:last-child,.mpt-t td:last-child{padding-right:var(--mpt-padx);}
.mpt-t thead th{
  position:sticky;top:0;z-index:2;height:var(--mpt-colhead);
  background:var(--mpt-bg);color:var(--text-muted);box-shadow:inset 0 -1px 0 var(--border-default);
}
.mpt-t thead th[data-sort],.mpt-t thead th.mpt-sortable{cursor:pointer;user-select:none;}
.mpt-t thead th[data-sort]:hover,.mpt-t thead th.mpt-sortable:hover{color:var(--text-primary);}
.mpt-t thead th.mpt-sorted{color:var(--text-secondary);}
.mpt-arr{margin-left:3px;font-size:10px;}
.mpt-t .mpt-n{text-align:right;}
.mpt-t .mpt-c{text-align:center;}
/* Zebra: every second row; a grouped table restarts it under each group
   (MPTable.zebra stamps .mpt-z), so the stripe never sits on a group row.
   Row colours are three tokens (tokens.css): --bg-stripe < --bg-row-hover <
   --bg-row-sel. The stripe sits inside :where() so it weighs one element
   (0,0,1): hover, selected and every page's own row state always beat it.
   (Before 2026-10-21 the stripe out-ranked hover, so a striped row never
   changed under the pointer.) tests/core/test_table_row_hover_tokens.py. */
:where(.mpt-t:not(.mpt-grouped) > tbody > tr.mpt-r:nth-child(even)) > td,
:where(.mpt-t.mpt-grouped > tbody > tr.mpt-r.mpt-z) > td{background:var(--bg-stripe);}
.mpt-t > tbody > tr.mpt-r{cursor:pointer;}
.mpt-t > tbody > tr.mpt-r.mpt-static{cursor:default;}
.mpt-t > tbody > tr.mpt-r:hover > td{background:var(--bg-row-hover);}
.mpt-t > tbody > tr.mpt-r.mpt-sel > td,.mpt-t > tbody > tr.mpt-r[aria-selected="true"] > td,
.mpt-t > tbody > tr.mpt-r.is-sel > td{
  background:var(--bg-row-sel);box-shadow:inset 0 1px 0 var(--border-strong),inset 0 -1px 0 var(--border-strong);
}
.mpt-t .mpt-sym{font-weight:600;color:var(--text-primary);}
.mpt-t .mpt-nm{color:var(--text-secondary);}
.mpt-mu{color:var(--text-muted);}
.mpt-up{color:var(--green);}
.mpt-dn{color:var(--red);}
/* Group rows: 24px on tertiary, 12px semibold, a grey count; sticky under
   the column head. */
.mpt-t > tbody > tr.mpt-g > td{
  position:sticky;top:var(--mpt-colhead);z-index:1;
  background:var(--bg-tertiary);font-weight:600;color:var(--text-secondary);cursor:default;
}
.mpt-gc{margin-left:10px;font-weight:400;color:var(--text-muted);}
.mpt-t > tbody > tr.mpt-s > td{color:var(--text-muted);background:var(--mpt-bg);cursor:default;}
/* Row dots (MPRowActions): quiet until the row is hovered or selected. */
.mpt-t td.mpt-dt{padding:0 4px;text-align:center;overflow:visible;}
.mpt-t td.mpt-dt:last-child{padding-right:4px;}
.mpt-t tr.mpt-r .mra-dots{color:var(--text-xmuted);}
.mpt-t tr.mpt-r:hover .mra-dots,.mpt-t tr.mpt-r.mra-open .mra-dots{color:var(--text-secondary);}

/* Empty: one 12px muted line under the visible column head. */
.mpt-empty{
  height:var(--mpt-row);line-height:var(--mpt-row);padding:0 var(--mpt-padx);
  color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.mpt-empty .mpt-btn{margin-left:8px;vertical-align:middle;}

/* ── Div grid rows (a page that draws rows as divs keeps the same look) ── */
.mpt-hr{
  position:sticky;top:0;z-index:2;height:var(--mpt-colhead);align-items:center;
  background:var(--mpt-bg);color:var(--text-muted);box-shadow:inset 0 -1px 0 var(--border-default);
}
.mpt-tr{height:var(--mpt-row);align-items:center;cursor:pointer;}
.mpt-tr:where(:nth-child(even of .mpt-tr)){background:var(--bg-stripe);}
.mpt-tr:hover{background:var(--bg-row-hover);}
.mpt-tr.mpt-sel,.mpt-tr[aria-selected="true"],.mpt-tr.is-sel,.mpt-tr.is-open{background:var(--bg-row-sel);box-shadow:inset 0 1px 0 var(--border-strong),inset 0 -1px 0 var(--border-strong);}

/* ════ PANE MODE: its own compact design for a small box ════════════════
   Own 28px toolbar (a view menu, Filters N, search, more), 22px controls,
   20px rows, tickers only, no title (the pane bar names it), no side
   panel, the pane's own background. */
.mpt.mpt-pane{
  --mpt-head:28px;--mpt-fs:12px;--mpt-ctl:22px;--mpt-row:20px;--mpt-colhead:20px;
  --mpt-padx:8px;--mpt-cellx:6px;--mpt-gap:4px;--mpt-bg:var(--chart-bg);
  position:absolute;inset:0;
}
.mpt-pane .mpt-bar{padding:0 6px;}
.mpt-pane .mpt-title,.mpt-pane .mpt-side,.mpt-pane .mpt-clock{display:none!important;}
.mpt-pane .mpt-ctl,.mpt-pane .mpt-dd-btn,.mpt-pane .mpt-btn{padding:0 6px;}
.mpt-pane .mpt-btn.mpt-ico{padding:0;}
.mpt-pane .mpt-seg-b{padding:0 6px;}
.mpt-pane .mpt-search{width:auto;flex:1 1 auto;max-width:180px;min-width:80px;}
.mpt-pane .mpt-pop{min-width:180px;max-height:min(260px, 80vh);}
.mpt-pane .mpt-pop-opt{min-height:24px;}
/* A pane narrower than its toolbar drops the words, keeps the controls. */
.mpt-pane{container-type:inline-size;container-name:mptpane;}
@container mptpane (max-width:300px){
  .mpt-pane .mpt-fl-w{display:none;}
}
/* Column priority (lib/table.js fitPane, 2026-10-19): a column the pane
   has no room for leaves whole, so symbols and numbers are never cut. */
.mpt-pane .mpt-x{display:none !important;}

/* ── Page extras ─────────────────────────────────────────────────────── */
/* Bottom room so the last rows (and the right hand numbers) scroll clear of
   the floating chat button (44-research-chat.css: a 46px circle, 1rem from
   the viewport bottom). Pages only; the button is untouched. */
.mpt:not(.mpt-pane) .mpt-scroll::after{content:"";display:block;height:calc(46px + 1rem);}
/* Narrow pages: the one bar never wraps; the search narrows, then the
   clock and the labels of set dropdowns give way (the values stay). */
.mpt:not(.mpt-pane){container-type:inline-size;container-name:mptpage;}
@container mptpage (max-width:1180px){
  .mpt-search{width:max(140px, 9.94rem);}
}
@container mptpage (max-width:1040px){
  .mpt-clock{display:none;}
  .mpt-dd.mpt-on .mpt-dd-l{display:none;}
  .mpt-search{width:max(116px, 8.24rem);}
}
@container mptpage (max-width:880px){
  .mpt-dd-l:has(+ .mpt-dd-v:not(:empty)){display:none;}
}
/* Day grouped calendars (Earnings, Economic): the day bands do the grouping,
   so rows get hairlines instead of stripes. */
.mpt-t.mpt-grouped.mpt-days > tbody > tr.mpt-r > td{background:transparent;box-shadow:inset 0 -1px 0 var(--border-subtle);}
.mpt-t.mpt-grouped.mpt-days > tbody > tr.mpt-r:hover > td{background:var(--bg-row-hover);}
.mpt-t.mpt-grouped.mpt-days > tbody > tr.mpt-r.mpt-sel > td,
.mpt-t.mpt-grouped.mpt-days > tbody > tr.mpt-r.is-sel > td,
.mpt-t.mpt-grouped.mpt-days > tbody > tr.mpt-r[aria-selected="true"] > td{
  background:var(--bg-row-sel);box-shadow:inset 0 1px 0 var(--border-strong),inset 0 -1px 0 var(--border-strong);
}

/* ── Coverage line (Ticket 2 W4, 2026-10-18; static/js/lib/coverage-line.js)
   ONE slim row under a market tool's table or map: the update time, then
   per exchange "TSX 694 of 726", an uncovered exchange named, a market with
   no current data "n/a". Muted, one line, ellipsis; the hover (title) holds
   the detail. A gap counts in secondary ink, an uncovered one muted; no
   colour, no stripe. It sits in its page's panel set (the set's gap above
   it, its own panel surface), so no margin of its own. */
.mpt-cov{
  flex:none;display:flex;align-items:center;gap:0;min-width:0;overflow:hidden;
  height:var(--mpt-row, 24px);padding:0 var(--mpt-padx, 12px);box-sizing:border-box;
  background:var(--mpt-bg, var(--bg-primary));color:var(--text-muted);
  font-size:var(--mpt-fs, 12px);white-space:nowrap;font-variant-numeric:tabular-nums;cursor:default;
}
.mpt-cov-t,.mpt-cov-s{flex:none;}
.mpt-cov-s:last-child{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;}
.mpt-cov-t + .mpt-cov-s::before,.mpt-cov-s + .mpt-cov-s::before{content:"\00b7";padding:0 8px;color:var(--text-muted);}
.mpt-cov-t{color:var(--text-secondary);}
.mpt-cov-gap{color:var(--text-secondary);}
.mpt-cov-ok{color:var(--text-muted);}
.mpt-cov-off{color:var(--text-muted);}
.mpt-pane .mpt-cov{height:20px;padding:0 8px;font-size:11px;}
/* The small (i) (lib/coverage-line.js infoHtml, 2026-10-20): a hover with the
   update time and the rate; the coverage line itself is no longer painted. */
.mpt-info{flex:none;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;
  border-radius:50%;color:var(--text-muted);cursor:help;outline:none;}
.mpt-info[hidden]{display:none;}
.mpt-info:hover,.mpt-info:focus-visible{color:var(--text-primary);background:var(--bg-tertiary);}
.mpt-info svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;}
.mpt-info .mpt-info-dot{fill:currentColor;stroke:none;}
.mpt-pane .mpt-info{width:16px;height:16px;}

/* Pane bar fit (Ticket 6 DoD, moved from 05-chart-panels.css): view, market,
   window, Symbol, status, CSV on one row that never clips CSV: the search
   gives way first, then the segments tighten. :where(.mpt-bar) keeps the
   specificity these rules had in 05 relative to this file's base pane rules
   and to every board's own (0,3,0) pane overrides (earnings, econ, analysts,
   the cev tighten steps), which must keep winning. */
.mpt-pane :where(.mpt-bar) > .mpt-search{flex:0 1 120px;min-width:64px;}
.mpt-pane :where(.mpt-bar) > .mpt-btn{flex:none;}
@container mptpane (max-width:440px){
  /* T10 presets (2026-10-24): the Filters word gives way here, not only
     under 300px (the icon and its count stay): MOV clipped CSV at ~400px. */
  .mpt-pane .mpt-fl-w{display:none;}
  .mpt-pane .mpt-seg-b{padding:0 4px;}
  .mpt-pane .mpt-dd-btn{padding:0 4px;}
  .mpt-pane :where(.mpt-bar) > .mpt-search{padding:0 6px;}
  .mpt-pane :where(.mpt-bar) > .mpt-search .mpt-i{display:none;}
}

/* SEC plan stock view switcher (app.html, sec_only; B-4 2026-11-18): an
   .mpt-bar that sits OUTSIDE an .mpt, above the Capital structure / Fails to
   deliver page, so it carries the page sizes itself. The current view is a
   link (aria-current), filled like a pressed segment. */
.mpt-secnav{
  --mpt-head:max(36px, 2.557rem);
  --mpt-fs:max(12px, 0.8525rem);
  --mpt-ctl:max(24px, 1.705rem);
  --mpt-padx:max(12px, 0.8525rem);
  --mpt-gap:max(8px, 0.5683rem);
  background:var(--bg-primary);color:var(--text-primary);
  font-family:var(--font-sans);font-size:var(--mpt-fs);line-height:1.35;
  box-shadow:inset 0 -1px 0 var(--border-default);
}
.mpt-secnav .mpt-btn.mpt-ghost[aria-current="page"]{background:var(--bg-elevated);color:var(--text-primary);}
.mpt-secnav[hidden]{display:none;}
