/* Autonomous Desk — the shared shell: tokens, header, footer, buttons.
   Used by the members' tabs (terminal-app.html) and, header only, by the Markets
   pages, where it stays white over their dark design. Every class is prefixed
   ts- and nothing here styles bare elements outside .ts-scope.

   Modeled on TheStreet Pro's Daily Diary (measured 2026-10-16): Rubik, white,
   #111827 ink, #1a6dba accent, 50px sticky header with 4px active underline,
   1400px container. The measured values are in TERMINAL-PORTAL-PLAN.md
   (section 3) at the workspace root. */

:root {
  --ts-font: 'Rubik', 'Rubik Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ts-ink: #111827;
  --ts-ink-2: #1f2937;
  --ts-row: #374151;
  --ts-body: #000000;
  --ts-muted: #6b7280;
  --ts-faint: #9ca3af;
  --ts-line: #e5e7eb;
  --ts-input: #d1d5db;
  --ts-gray: #f3f4f6;
  --ts-blue: #1a6dba;
  --ts-blue-ink: #155a9a;
  --ts-blue-soft: #eef5fb;
  --ts-green: #16a34a;
  --ts-red: #dc2626;
  --ts-navy: #243447;
  --ts-tint: rgba(22, 76, 115, 0.07);
  --ts-card: #ffffff;
  --ts-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --ts-header-h: 50px;
  --ts-tabs-h: 40px;
  /* Everything stuck to the top: the header, plus the tab row below 1360px.
     Sticky columns and anchor offsets use this, not --ts-header-h. */
  --ts-top: var(--ts-header-h);
  --ts-max: 1400px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
#ts-header { height: var(--ts-header-h); position: sticky; top: 0; z-index: 60; }
.ts-header {
  font-family: var(--ts-font); color: var(--ts-ink); background: #fff;
  height: var(--ts-header-h); box-shadow: 0 1px 0 var(--ts-line);
  -webkit-font-smoothing: antialiased;
}
.ts-header *, .ts-footer * { box-sizing: border-box; }
.ts-header a, .ts-footer a { color: inherit; text-decoration: none; }
.ts-header-inner { height: 100%; display: flex; align-items: center; gap: 16px; padding: 0 16px; }
.ts-logo { display: inline-flex; align-items: center; gap: 7px; flex: none; color: var(--ts-ink); }
.ts-logo img { width: 22px; height: 22px; filter: brightness(0); }
/* The header and footer share the robot head with its glowing dots, in colour. */
.ts-logo img.ts-logo-head { width: auto; height: 24px; filter: none; }
.ts-logo-word { font-weight: 800; font-size: 17px; letter-spacing: -0.6px; line-height: 1; }
.ts-badge {
  display: inline-block; background: var(--ts-ink); color: #fff; font-weight: 700; font-size: 9.5px;
  letter-spacing: 0.9px; line-height: 1; padding: 3px 5px 2px; border-radius: 2px; margin-left: 2px;
}
.ts-nav { flex: 1; display: flex; justify-content: center; align-self: stretch; min-width: 0; }
/* body-qualified: terminal-app.css .ta-body a { color: inherit } would otherwise win on the members' tabs only */
body .ts-nav a, .ts-nav button.ts-more {
  display: inline-flex; align-items: center; height: var(--ts-header-h); padding: 0 12px;
  font: 600 14px/21px var(--ts-font); letter-spacing: 0.35px; color: #000; text-transform: uppercase;
  border: 0; border-bottom: 4px solid transparent; border-top: 4px solid transparent; white-space: nowrap;
  background: none; cursor: pointer;
}
.ts-nav a:hover { color: var(--ts-blue); }
.ts-nav a[aria-current="page"] { border-bottom-color: #000; }
/* Daily Diary · Posts · Trade Ideas · Videos: one section, one light band, full header height. */
.ts-nav-group { display: flex; align-self: stretch; background: var(--ts-blue-soft); padding: 0 4px; margin: 0 4px; box-shadow: inset 1px 0 0 #dbe7f3, inset -1px 0 0 #dbe7f3; }
.ts-mobile .ts-nav-group { display: block; margin: 4px -16px; padding: 0 16px; box-shadow: inset 0 1px 0 #dbe7f3, inset 0 -1px 0 #dbe7f3; }
.ts-mobile .ts-nav-group a:last-child { border-bottom: 0; }
.ts-more-wrap { position: relative; display: flex; }
.ts-more-menu {
  position: absolute; top: calc(var(--ts-header-h) - 2px); right: 0; min-width: 200px; background: #fff;
  border: 1px solid var(--ts-line); border-radius: 6px; box-shadow: 0 10px 25px -5px rgba(0,0,0,.12); padding: 6px 0;
}
/* body .ts-nav a outranks a plain .ts-more-menu a, which stacked two items on a row. */
body .ts-nav .ts-more-menu a { display: block; height: auto; padding: 8px 16px; border: 0; font-weight: 500; text-transform: none; letter-spacing: 0; white-space: nowrap; }
body .ts-nav .ts-more-menu [data-ts-tab] { display: none; }
.ts-more-menu a:hover { background: var(--ts-gray); color: var(--ts-ink); }
.ts-right { display: flex; align-items: center; gap: 10px; flex: none; }
.ts-search { position: relative; display: block; }
.ts-more-menu .ts-search { display: none; margin: 6px 12px; }
.ts-search input {
  width: 218px; height: 36px; padding: 8px 8px 8px 34px; border: 0; background: var(--ts-gray); border-radius: 6px;
  font: 400 14px var(--ts-font); color: var(--ts-ink); outline: none;
}
.ts-search input:focus { box-shadow: 0 0 0 2px var(--ts-blue); background: #fff; }
.ts-search svg { position: absolute; left: 11px; top: 11px; color: var(--ts-muted); pointer-events: none; }
.ts-btn-outline, .ts-btn-solid, .ts-btn-black, .ts-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px;
  border-radius: 6px; font: 600 14px var(--ts-font); white-space: nowrap; cursor: pointer; text-decoration: none;
}
.ts-btn-outline { color: var(--ts-blue); border: 1px solid var(--ts-blue); background: #fff; }
.ts-btn-outline:hover { background: var(--ts-blue-soft); }
.ts-btn-solid { color: #fff; background: var(--ts-blue); border: 1px solid var(--ts-blue); }
.ts-btn-solid:hover { background: var(--ts-blue-ink); }
.ts-btn-black { color: #fff; background: #000; border: 1px solid #000; border-radius: 4px; font-weight: 500; }
.ts-btn-ghost { color: var(--ts-ink); background: transparent; border: 1px solid transparent; }
.ts-logout { padding: 0 8px; }
.ts-logout:hover { background: var(--ts-gray); }
.ts-logout:disabled { opacity: .6; cursor: wait; }
.ts-member {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 4px 6px; border-radius: 4px;
  font: 600 14px var(--ts-font); color: #000; background: none; border: 0; cursor: pointer;
}
.ts-member:hover { background: var(--ts-gray); }
.ts-avatar {
  width: 24px; height: 24px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center;
  background: #fde68a; color: #92400e; font: 700 11px var(--ts-font); text-transform: uppercase; flex: none;
}
.ts-menu-wrap { position: relative; }
.ts-menu {
  position: absolute; right: 0; top: 42px; width: 240px; background: #fff; border: 1px solid var(--ts-line);
  border-radius: 8px; box-shadow: 0 10px 25px -5px rgba(0,0,0,.15); padding: 6px 0; font-family: var(--ts-font);
}
.ts-menu .ts-menu-head { padding: 10px 16px 8px; border-bottom: 1px solid var(--ts-line); margin-bottom: 4px; }
.ts-menu .ts-menu-head b { display: block; font-size: 13px; color: var(--ts-ink); overflow: hidden; text-overflow: ellipsis; }
.ts-menu .ts-menu-head span { font-size: 11px; color: var(--ts-muted); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.ts-menu a, .ts-menu button { display: block; width: 100%; text-align: left; padding: 8px 16px; font: 500 14px var(--ts-font); color: var(--ts-ink); background: none; border: 0; cursor: pointer; }
.ts-menu a:hover, .ts-menu button:hover { background: var(--ts-gray); }
.ts-burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; color: var(--ts-ink); }
.ts-mobile {
  font-family: var(--ts-font); background: #fff; border-bottom: 1px solid var(--ts-line);
  padding: 8px 16px 16px; position: sticky; top: var(--ts-header-h); z-index: 59; box-shadow: 0 8px 16px -8px rgba(0,0,0,.12);
}
body .ts-mobile a { display: block; padding: 11px 0; font: 600 14px var(--ts-font); letter-spacing: .35px; text-transform: uppercase; color: #000; border-bottom: 1px solid var(--ts-line); text-decoration: none; }
.ts-mobile a[aria-current="page"] { color: var(--ts-blue); }
.ts-mobile .ts-search { margin: 8px 0 4px; }
/* A green dot on DAILY DIARY when today has an entry this browser hasn't opened
   the Diary since (owner, 2026-10-19). Absolutely placed in the link's padding,
   so the tabs' measured widths don't change; on the burger below 768px too. */
body .ts-nav a.has-new, .ts-burger.has-new { position: relative; }
body .ts-nav a.has-new::after, .ts-burger.has-new::after { content: ""; position: absolute; top: 13px; right: 2px; width: 7px; height: 7px; border-radius: 9999px; background: #16a34a; }
.ts-burger.has-new::after { top: 8px; right: 7px; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 1599px) { body .ts-nav a.has-new::after { right: -3px; } }
body .ts-mobile a.has-new::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 9999px; background: #16a34a; vertical-align: 2px; }
.ts-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The sections strip under the white header, on every Posts and Markets page
   (Markets 2026-10-19; Posts and TheStreet Pro's exact look, measured on its
   Latest page, 2026-10-20): white, 40px, a soft shadow, centred; the tab's name,
   then its sections in Rubik 500 14px, the one showing underlined 4px in black.
   It scrolls away with the page. */
.ts-subnav {
  font-family: var(--ts-font); background: #fff; color: var(--ts-ink);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); -webkit-font-smoothing: antialiased; position: relative; z-index: 2;
}
.ts-subnav-inner { display: flex; align-items: stretch; justify-content: center; gap: 4px; height: 40px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.ts-subnav-inner::-webkit-scrollbar { display: none; }
.ts-subnav-label { display: inline-flex; flex: none; align-items: center; padding: 8px 16px 8px 0; font: 500 14px var(--ts-font); letter-spacing: .35px; text-transform: uppercase; color: #000; white-space: nowrap; }
body .ts-subnav a {
  display: inline-flex; flex: none; align-items: center; padding: 0 12px; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  font: 500 14px var(--ts-font); letter-spacing: .35px; text-transform: none; color: #000; text-decoration: none; white-space: nowrap; transition: color .15s;
}
body .ts-subnav a:hover { color: var(--ts-blue); }
.ts-subnav a[aria-current="page"] { border-bottom-color: #000; }
@media (max-width: 1023px) { .ts-subnav-inner { justify-content: flex-start; } }
/* The tab's menu (TheStreet Pro's dropdown): under the tab, 200px, rounded at the foot. */
.ts-tab-drop { position: relative; display: flex; align-self: stretch; }
.ts-drop {
  position: absolute; z-index: 61; top: 100%; left: 0; min-width: 200px; padding: 8px 0; background: #fff;
  border: 1px solid #e5e7eb; border-top: 0; border-radius: 0 0 6px 6px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.ts-tab-drop:hover .ts-drop, .ts-tab-drop:focus-within .ts-drop { opacity: 1; visibility: visible; transform: none; }
.ts-tab-drop.is-shut .ts-drop { opacity: 0; visibility: hidden; }
body .ts-nav .ts-drop a { display: block; height: auto; padding: 8px 16px; border: 0; font: 500 14px/21px var(--ts-font); letter-spacing: .35px; text-transform: none; color: #000; white-space: nowrap; }
body .ts-nav .ts-drop a:hover, body .ts-nav .ts-drop a:focus-visible { color: var(--ts-blue); background: var(--ts-gray); }
body .ts-nav .ts-drop a[aria-current="page"] { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .ts-drop, body .ts-subnav a { transition: none; } }
.ts-subnav a:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: -2px; }
body .ts-mobile .ts-mobile-sub a { padding-left: 18px; font-size: 13px; font-weight: 500; }
.ts-mobile .ts-search input { width: 100%; }
[hidden] { display: none !important; }

/* The tab row (owner, 2026-10-19: "always have diary. posts. more available to
   see even in mobile mode ... i dont want to rely on hamburger"). A second white
   row under the header below 768px, where the burger takes the header's tabs:
   the reading band, then the other tabs, as many as fit (terminal-shell.js
   fitTabs) and the rest under MORE. Sticky with the header (#ts-header grows). */
.ts-tabs {
  display: none; position: relative; justify-content: center; height: var(--ts-tabs-h); padding: 0 6px;
  font-family: var(--ts-font); background: #fff; box-shadow: 0 1px 0 var(--ts-line); -webkit-font-smoothing: antialiased;
}
.ts-tabs-row { display: flex; align-items: stretch; min-width: 0; overflow: hidden; }
.ts-tabs .ts-nav-group { display: flex; background: var(--ts-blue-soft); padding: 0 2px; margin-right: 4px; box-shadow: inset 1px 0 0 #dbe7f3, inset -1px 0 0 #dbe7f3; }
body .ts-tabs a, .ts-tabs [data-ts-more] {
  display: inline-flex; align-items: center; flex: none; gap: 5px; padding: 0 11px;
  font: 600 13px/1 var(--ts-font); letter-spacing: .35px; text-transform: uppercase; color: #000; white-space: nowrap;
  background: none; border: 0; border-top: 3px solid transparent; border-bottom: 3px solid transparent; cursor: pointer; text-decoration: none;
}
body .ts-tabs a:hover, .ts-tabs [data-ts-more]:hover { color: var(--ts-blue); }
.ts-tabs a[aria-current="page"] { border-bottom-color: #000; }
.ts-tabs a:focus-visible, .ts-tabs [data-ts-more]:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: -2px; }
.ts-tabs .ts-tabs-row a.is-out { display: none; }
.ts-tabs .ts-tabs-more { display: none; flex: none; margin-left: 2px; box-shadow: inset 1px 0 0 var(--ts-line); }
.ts-tabs.has-more .ts-tabs-more { display: flex; }
.ts-tabs [data-ts-more] svg { color: var(--ts-muted); transition: transform .15s; }
.ts-tabs [data-ts-more][aria-expanded="true"] { color: var(--ts-blue); }
.ts-tabs [data-ts-more][aria-expanded="true"] svg { transform: rotate(180deg); color: var(--ts-blue); }
.ts-tabs .ts-more-menu { top: calc(var(--ts-tabs-h) - 1px); right: -6px; min-width: 220px; max-height: calc(100vh - var(--ts-top) - 16px); overflow-y: auto; z-index: 61; }
body .ts-tabs .ts-more-menu a { display: block; padding: 11px 18px; border: 0; font-size: 13px; line-height: 18px; }
body .ts-tabs .ts-more-menu a[aria-current="page"] { color: var(--ts-blue); }
body .ts-tabs .ts-more-menu .ts-tabs-sub a { padding: 8px 18px 8px 32px; font-weight: 500; color: var(--ts-row); }
.ts-tabs .ts-more-menu a:hover { background: var(--ts-gray); }
body .ts-tabs a.has-new { position: relative; }
body .ts-tabs a.has-new::after { content: ""; position: absolute; top: 8px; right: 3px; width: 6px; height: 6px; border-radius: 9999px; background: #16a34a; }
/* Small phones: Home, Daily Diary and the page's own tab must fit beside More. */
@media (max-width: 374px) { body .ts-tabs a, .ts-tabs [data-ts-more] { padding: 0 7px; font-size: 12px; } }

/* Keep the four reading tabs on desktop. Move the secondary tabs into More,
   one at a time, then compact search, account and branding before the phone
   layout. Allow for the widest right side: Free Member + Go PRO for $1 (2026-10-20;
   paid plans, Pro Member or Mentorship Member, show no button). For it the Portfolio,
   search, label and logo-word folds moved 60-84px wider (4px more for PRO in
   capitals), and 768-939px tightens the tabs and the button. Each fold is 64px wider
   than before the Home tab (2026-10-20). */
@media (max-width: 1599px) { .ts-search input { width: 140px; } body .ts-nav a, .ts-nav button.ts-more { padding: 0 8px; } }
/* "Research" (the tab named Markets until 2026-11-15) is 10px wider, which at 1440 signed out was 9.5px more than the tabs' room: it went into ···. One pixel off each side of every tab keeps it in the header there (8.5px to spare). */
@media (max-width: 1479px) { body .ts-nav a, .ts-nav button.ts-more { padding: 0 7px; } }
/* "Market Watch" (the tab's name since 2026-11-16) is 34px wider than "Research", so signed out and Pro it went into ··· at 1424-1499px and 1600-1679px (1440 and 1600 screens). The search box gives up the room there: 108px below 1500 (was 140), 176px at 1600-1679 (was 218). Signed out the tab now shows from 1436px, Pro from 1424px. */
@media (max-width: 1499px) { .ts-search input { width: 108px; } }
@media (min-width: 1600px) and (max-width: 1679px) { .ts-search input { width: 176px; } }
@media (max-width: 1423px) {
  body .ts-nav > [data-ts-tab="calendar"] { display: none; }
  body .ts-nav .ts-more-menu [data-ts-tab="calendar"] { display: block; }
}
@media (max-width: 1323px) {
  body .ts-nav > [data-ts-tab="markets"], body .ts-nav > [data-ts-wrap="markets"] { display: none; }
  body .ts-nav .ts-more-menu [data-ts-tab="markets"] { display: block; }
}
/* Methodology folds here, not Portfolio (owner, 2026-10-24: "make sure portfolio
   is always to left of methodology on tab bar"): below 1284px Portfolio used to
   go into ··· while Methodology, added later, stayed. Methodology is the wider
   label, so the bar fits wherever it did before. */
@media (max-width: 1283px) {
  body .ts-nav > [data-ts-tab="methodology"] { display: none; }
  body .ts-nav .ts-more-menu [data-ts-tab="methodology"] { display: block; }
}
@media (max-width: 1183px) {
  .ts-right .ts-search { display: none; }
  .ts-more-menu .ts-search { display: block; }
  .ts-more-menu .ts-search input { width: 100%; }
}
@media (max-width: 1039px) { .ts-member-label { display: none; } }
/* The same folds, added by terminal-shell.js fitNav when the tabs still do not fit
   (2026-11-11: Log out and the Markets menu came after the widths above were
   measured, so a Free member's tabs ran under the logo and the search). Markets
   sits in a .ts-tab-drop, hence [data-ts-wrap]. Order: markets, methodology, search,
   label, word, portfolio, logout, home. */
body .ts-header.fold-markets .ts-nav > :is([data-ts-tab="markets"], [data-ts-wrap="markets"]),
body .ts-header.fold-methodology .ts-nav > :is([data-ts-tab="methodology"], [data-ts-wrap="methodology"]),
body .ts-header.fold-portfolio .ts-nav > :is([data-ts-tab="portfolio"], [data-ts-wrap="portfolio"]),
body .ts-header.fold-home .ts-nav > :is([data-ts-tab="home"], [data-ts-wrap="home"]) { display: none; }
body .ts-header.fold-markets .ts-nav .ts-more-menu [data-ts-tab="markets"],
body .ts-header.fold-methodology .ts-nav .ts-more-menu [data-ts-tab="methodology"],
body .ts-header.fold-portfolio .ts-nav .ts-more-menu [data-ts-tab="portfolio"],
body .ts-header.fold-home .ts-nav .ts-more-menu [data-ts-tab="home"] { display: block; }
.ts-header.fold-search .ts-right .ts-search { display: none; }
.ts-header.fold-search .ts-more-menu .ts-search { display: block; }
.ts-header.fold-search .ts-more-menu .ts-search input { width: 100%; }
.ts-header.fold-label .ts-member-label { display: none; }
#ts-header .ts-header.fold-word .ts-logo-word { display: none; }
.ts-header.fold-logout .ts-right .ts-logout { display: none; }
@media (min-width: 768px) and (max-width: 939px) {
  .ts-header .ts-logo-word { display: none; }
  body .ts-nav a, .ts-nav button.ts-more { padding: 0 5px; }
  body .ts-nav a.has-new::after { right: 0; }
  .ts-right [data-ts-join] { padding: 0 8px; font-size: 13px; }
}
@media (min-width: 768px) { .ts-mobile { display: none; } }
@media (max-width: 767px) {
  :root { --ts-top: calc(var(--ts-header-h) + var(--ts-tabs-h)); }
  #ts-header { height: var(--ts-top); }
  .ts-tabs { display: flex; }
  .ts-nav, .ts-right .ts-search { display: none; }
  .ts-burger { display: inline-flex; }
  .ts-header-inner { justify-content: space-between; }
}
@media (max-width: 480px) { .ts-member-label { display: none; } .ts-right .ts-btn-outline { display: none; } }
/* Go Pro for $1 stays on phones too (owner, 2026-10-20: "if not logged in, at top
   right could have button ... i want to see how that looks on mobile"): the black
   bar above scrolls away, the header stays. A little smaller there. On phones
   (the burger's widths) the logo is the cube alone (owner: "remove desk."; since
   2026-10-20 the glowing-dot cube, was the green one): the word and DESK step out. Measured 320-767px signed out and as a free account: 10px or
   more between every part. */
@media (max-width: 480px) { .ts-right [data-ts-join] { height: 32px; padding: 0 10px; font-size: 13px; } }
@media (max-width: 767px) {
  .ts-header .ts-logo-word, .ts-header .ts-badge { display: none; }
  .ts-header .ts-logo img.ts-logo-head { height: 28px; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.ts-footer { font-family: var(--ts-font); color: var(--ts-ink); background: #fff; border-top: 1px solid var(--ts-line); -webkit-font-smoothing: antialiased; }
.ts-footer-inner { max-width: 1036px; margin: 0 auto; padding: 40px 16px 28px; }
.ts-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.ts-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.ts-footer h3 { margin: 0 0 12px; font: 800 14px/20px var(--ts-font); letter-spacing: .7px; text-transform: uppercase; color: var(--ts-ink); }
.ts-footer ul { list-style: none; margin: 0; padding: 0; }
.ts-footer li a { display: inline-block; padding: 4px 0; font: 400 13px/18px var(--ts-font); color: var(--ts-row); }
.ts-footer li a:hover { color: var(--ts-blue); }
.ts-footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--ts-line); font-size: 11px; line-height: 1.6; color: var(--ts-muted); }
.ts-footer-bottom p { margin: 0 0 8px; }
.ts-footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 11px; color: var(--ts-muted); }
@media (max-width: 760px) { .ts-footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ── Toast ──────────────────────────────────────────────────────────────── */
.ts-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 80;
  font: 500 14px var(--ts-font); color: #fff; background: var(--ts-ink); padding: 10px 16px; border-radius: 6px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,.3); transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100vw - 32px);
}
.ts-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.ts-toast button { margin-left: 12px; color: #93c5fd; background: none; border: 0; font: 600 14px var(--ts-font); cursor: pointer; }

/* The campaign page's logo lettering on every page with this header (owner,
   2026-10-21: approved for the home page at 11:06, then "why dont i see the new
   font": signed in, / goes to /main, so it has to be the header's own). Set
   data-home-logo="classic" on a page's body to get the original logo and mobile
   spacing above back; they stay as the backup. */
@font-face { font-family: 'Open Sauce One'; src: url('/fonts/open-sauce-one-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
/* Footers too (owner, 2026-10-21: "why its still the old font for autonomus at the
   bottom of the page"): the Desk's .ts-footer and the static footers on the home,
   Markets, cross-asset and baskets pages carry the same logo markup. */
body:not([data-home-logo="classic"]) #ts-header .ts-logo,
body:not([data-home-logo="classic"]) footer .ts-logo { gap: 9px; color: #0f172a; }
body:not([data-home-logo="classic"]) #ts-header .ts-logo-word,
body:not([data-home-logo="classic"]) footer .ts-logo-word { font: 700 20px/1 'Open Sauce One', Inter, sans-serif; letter-spacing: -.03em; }
body:not([data-home-logo="classic"]) #ts-header .ts-badge,
body:not([data-home-logo="classic"]) footer .ts-badge { margin-left: 0; padding: 4px 6px 3px; border-radius: 4px; background: #0f172a; color: #fff; font: 700 10px/1 Inter, sans-serif; letter-spacing: .1em; }
body:not([data-home-logo="classic"]) #ts-header .ts-logo img.ts-logo-head,
body:not([data-home-logo="classic"]) footer .ts-logo img.ts-logo-head { height: 24px; flex: none; }
/* The static footers sit on the page theme (terminal.css), so they follow its light/dark
   switch; on dark the charcoal cube gets am-logo.css's faint light edge. */
body:not([data-home-logo="classic"]) footer.t-bg .ts-logo { color: var(--ink); }
body:not([data-home-logo="classic"]) footer.t-bg .ts-badge { background: var(--ink); color: var(--bg); }
:root[data-theme="dark"] body:not([data-home-logo="classic"]) footer.t-bg .ts-logo img.ts-logo-head { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .6)) drop-shadow(0 0 8px rgba(56, 189, 248, .22)); }
@media (min-width: 768px) and (max-width: 979px) {
  body:not([data-home-logo="classic"]) #ts-header .ts-logo-word { display: none; }
}
@media (min-width: 375px) and (max-width: 767px) {
  body:not([data-home-logo="classic"]) #ts-header .ts-logo-word { display: inline; font-size: 18px; }
}
@media (max-width: 767px) {
  body #ts-header .ts-signed-in .ts-logo-word { display: none; }
}
@media (max-width: 480px) {
  .ts-signed-in .ts-right { gap: 6px; }
  .ts-signed-in .ts-logout { padding: 0 6px; font-size: 13px; }
}
/* The strip under the header: one link to the breadth scorecard (owner,
   2026-11-11, after TheStreet Pro's "Put a Wall Street research team behind your
   investing decisions 👉 Meet the Team"): a blue band, white words, a white pill
   that lifts on hover. It took the Terms notice's place (.ts-terms-update).
   Below 860px the line steps out and the pill stands alone, so the strip is
   always one row. */
.ts-promo { position: relative; z-index: 2; background: linear-gradient(90deg, #243447 0%, #155a9a 52%, #1a6dba 100%); font-family: var(--ts-font); -webkit-font-smoothing: antialiased; }
body .ts-promo a { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 8px 16px; color: #fff; text-decoration: none; }
.ts-promo-l { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ts-promo-ic { flex: none; width: 22px; height: 22px; color: #fbbf24; }
.ts-promo-t { font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: 0; }
.ts-promo-go {
  display: inline-flex; flex: none; align-items: center; gap: 6px; height: 32px; padding: 0 16px; border-radius: 9999px;
  background: #fff; color: var(--ts-blue-ink); font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: .01em; white-space: nowrap;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .2); transition: transform .15s, box-shadow .15s, background-color .15s;
}
.ts-promo a:hover .ts-promo-go { transform: translateY(-2px); background: var(--ts-blue-soft); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .24), 0 4px 6px -4px rgba(0, 0, 0, .24); }
.ts-promo a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (max-width: 859px) {
  .ts-promo-l { display: none; }
  body .ts-promo a { min-height: 44px; padding: 7px 12px; }
  .ts-promo-go { height: 30px; padding: 0 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-promo-go { transition: none; }
  .ts-promo a:hover .ts-promo-go { transform: none; }
}
@media (max-width: 480px) {
  body:not([data-home-logo="classic"]) #ts-header .ts-header-inner { gap: 8px; }
  body:not([data-home-logo="classic"]) #ts-header .ts-right { gap: 6px; }
  body:not([data-home-logo="classic"]) #ts-header .ts-right [data-ts-join] { padding: 0 8px; font-size: 12px; }
}

/* ── The notification hub (owner, 2026-11-11: "add a notification hub. it shows in
   top right all the notifications since last opened. all new posts ... can click it
   open and theres a notification hub where its segregated in chronological order").
   A bell left of the account with a red count; the hub opens under it, a full-width
   sheet on phones. Where the bell has no room on a phone (terminal-shell.js fitBell
   adds .fold-bell: signed out and Free on narrow phones, beside Go PRO for $1) it
   moves into the burger: the burger carries the count, its menu a Notifications row.
   #ts-hub rules are id-qualified: the pages under this header style bare h2, a and
   button in their own ways. */
.ts-bell {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ts-ink); cursor: pointer;
}
.ts-bell:hover { background: var(--ts-gray); }
.ts-bell[aria-expanded="true"] { background: var(--ts-blue-soft); color: var(--ts-blue); }
.ts-bell:focus-visible, .ts-mobile-bell:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: 1px; }
.ts-bell svg { display: block; transform-origin: 50% 3px; }
.ts-bell-n {
  position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9999px;
  background: var(--ts-red); color: #fff; font: 700 10.5px/17px var(--ts-font); letter-spacing: 0; text-align: center;
  box-shadow: 0 0 0 2px #fff; pointer-events: none;
}
@keyframes ts-bell-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.ts-bell.is-ringing svg { animation: ts-bell-ring .9s ease .4s 1 both; }
@media (prefers-reduced-motion: reduce) { .ts-bell.is-ringing svg { animation: none; } }
/* Folded into the burger: the count stands in for the Diary's green dot there
   (the dot is still on the Daily Diary tab in the row below). */
.ts-burger { position: relative; }
.ts-burger .ts-bell-n { display: none; top: 3px; right: 1px; }
.ts-header.fold-bell .ts-right .ts-bell { display: none; }
.ts-header.fold-bell .ts-burger .ts-bell-n { display: block; }
.ts-header.fold-bell .ts-burger.has-count::after { display: none; }
.ts-mobile-bell {
  display: none; align-items: center; gap: 10px; width: 100%; margin: 4px 0 0; padding: 11px 0; border: 0; border-bottom: 1px solid var(--ts-line);
  background: none; font: 600 14px var(--ts-font); letter-spacing: .35px; text-transform: uppercase; color: #000; text-align: left; cursor: pointer;
}
.ts-header.fold-bell ~ .ts-mobile .ts-mobile-bell { display: flex; }
.ts-mobile-bell svg { flex: none; width: 18px; height: 18px; }
.ts-mobile-bell[aria-expanded="true"] { color: var(--ts-blue); }
.ts-bell-pill { margin-left: auto; padding: 2px 9px; border-radius: 9999px; background: var(--ts-red); color: #fff; font: 700 11px/17px var(--ts-font); letter-spacing: .3px; }

#ts-hub {
  position: absolute; z-index: 62; top: calc(100% + 6px); right: 12px; display: flex; flex-direction: column;
  width: 408px; max-width: calc(100vw - 24px); max-height: min(640px, var(--ts-hub-room, 70vh));
  background: #fff; border: 1px solid var(--ts-line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 18px 40px -10px rgba(15, 23, 42, .25), 0 2px 6px rgba(15, 23, 42, .06);
  font-family: var(--ts-font); color: var(--ts-ink); text-align: left; -webkit-font-smoothing: antialiased; outline: none;
}
#ts-hub, #ts-hub * { box-sizing: border-box; }
#ts-hub .ts-hub-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 10px 12px 16px; border-bottom: 1px solid var(--ts-line); }
#ts-hub h2 { margin: 0; padding: 0; font: 700 17px/22px var(--ts-font); letter-spacing: -.2px; text-transform: none; color: var(--ts-ink); }
#ts-hub .ts-hub-head p { margin: 2px 0 0; padding: 0; font: 400 13px/18px var(--ts-font); color: var(--ts-muted); }
#ts-hub .ts-hub-x { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ts-muted); cursor: pointer; }
#ts-hub .ts-hub-x:hover { background: var(--ts-gray); color: var(--ts-ink); }
#ts-hub .ts-hub-x:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: 1px; }
#ts-hub .ts-hub-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#ts-hub .ts-hub-group {
  position: sticky; top: 0; z-index: 1; margin: 0; padding: 6px 16px 5px; background: #f8fafc; box-shadow: 0 1px 0 var(--ts-line);
  font: 700 11px/16px var(--ts-font); letter-spacing: .8px; text-transform: uppercase; color: var(--ts-muted);
}
#ts-hub .ts-hub-item { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--ts-gray); color: var(--ts-ink); text-decoration: none; }
#ts-hub .ts-hub-item:hover { background: #f8fafc; }
#ts-hub .ts-hub-item:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: -2px; }
#ts-hub .ts-hub-item.is-new { background: var(--ts-blue-soft); }
#ts-hub .ts-hub-item.is-new:hover { background: #e3eef9; }
#ts-hub .ts-hub-item.is-new::before { content: ""; position: absolute; left: 7px; top: 33px; width: 7px; height: 7px; border-radius: 9999px; background: var(--ts-blue); }
#ts-hub .ts-hub-thumb { flex: none; width: 84px; height: 44px; margin-top: 2px; border-radius: 4px; overflow: hidden; background: #0f172a; }
#ts-hub .ts-hub-thumb img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
#ts-hub .ts-hub-body { display: block; flex: 1; min-width: 0; }
#ts-hub .ts-hub-kind { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 600 11px/15px var(--ts-font); letter-spacing: .5px; text-transform: uppercase; color: var(--ts-blue); }
#ts-hub .ts-hub-kind > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ts-hub .ts-hub-lock { flex: none; color: var(--ts-muted); letter-spacing: .3px; }
#ts-hub .ts-hub-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 2px 0 3px; font: 600 14px/19px var(--ts-font); letter-spacing: 0; color: var(--ts-ink); }
#ts-hub .ts-hub-when { display: flex; align-items: center; gap: 6px; font: 400 12px/16px var(--ts-font); color: var(--ts-muted); }
#ts-hub .ts-hub-when b { padding: 0 5px; border-radius: 3px; background: var(--ts-blue); color: #fff; font: 700 9.5px/15px var(--ts-font); letter-spacing: .6px; text-transform: uppercase; }
#ts-hub .ts-hub-note { padding: 36px 20px; text-align: center; }
#ts-hub .ts-hub-note p { margin: 0; font: 400 14px/20px var(--ts-font); color: var(--ts-muted); }
#ts-hub .ts-hub-note button { height: 34px; margin-top: 12px; padding: 0 14px; border: 1px solid var(--ts-blue); border-radius: 6px; background: #fff; color: var(--ts-blue); font: 600 13px var(--ts-font); cursor: pointer; }
#ts-hub .ts-hub-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 11px 16px; border-top: 1px solid var(--ts-line); background: #fff; }
#ts-hub .ts-hub-foot a { font: 600 13px/18px var(--ts-font); color: var(--ts-blue); text-decoration: none; }
#ts-hub .ts-hub-foot a:hover { text-decoration: underline; }
@media (max-width: 767px) {
  #ts-hub {
    top: 100%; left: 0; right: 0; width: auto; max-width: none; height: var(--ts-hub-room, 70vh); max-height: none;
    border: 0; border-top: 1px solid var(--ts-line); border-radius: 0; box-shadow: 0 12px 24px -8px rgba(15, 23, 42, .25);
  }
  #ts-hub .ts-hub-foot { padding-bottom: calc(11px + env(safe-area-inset-bottom, 0px)); }
}
