/* Autonomous Desk — the front door (/main, terminal-home.html).
   Builds on terminal.css (tokens, hero, buttons, .ht widget) and adds the tour:
   tier colours, the bento of tabs with their CSS previews, the session timeline
   and the seats. Tier colours match the homepage (cyan Pro, violet Mentorship,
   which keeps Elite's colour and its "elite" hook). Analyst is retired
   (2026-10-20): anything still tagged "analyst" shows as Pro, and the emerald
   --tier-analyst token now only colours the green "Free" tag (.tm-dk-free).
   Every preview is a mock-up: XYZ tickers, no levels, no numbers. */

:root[data-theme="dark"] {
  --tier-free: #a1a1aa;
  --tier-analyst: #6ee7b7;
  --tier-pro: #22d3ee;
  --tier-elite: #c4b5fd;
}
:root, :root[data-theme="light"] {
  --tier-free: #64748b;
  --tier-analyst: #059669;
  --tier-pro: #0891b2;
  --tier-elite: #7c3aed;
}
[data-tier="free"] { --tier: var(--tier-free); }
[data-tier="analyst"] { --tier: var(--tier-pro); }
[data-tier="pro"] { --tier: var(--tier-pro); }
[data-tier="elite"] { --tier: var(--tier-elite); }

/* hero */
.tm-free { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 9999px; padding: .1rem .45rem; }
.tm-link { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.tm-link:hover { color: var(--ink); text-decoration-color: var(--dim); }

/* The hero's Sign in (owner, 2026-10-17): the ghost button's shape, a faint accent
   wash and a slow accent trace on its border. Reduced motion: the trace stands still. */
@property --tm-signin-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.tm-signin { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: .6rem; padding: .75rem 1.15rem; border-radius: .375rem; font-size: .875rem; color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line-strong)); background: color-mix(in srgb, var(--accent) 5%, transparent); transition: background .25s, box-shadow .25s, border-color .25s; }
.tm-signin::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: conic-gradient(from var(--tm-signin-a), transparent 0 62%, var(--accent) 80%, var(--cyan) 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6; transition: opacity .3s; animation: tmSigninTrace 5s linear infinite; }
.tm-signin:hover { background: var(--accent-soft); box-shadow: 0 0 24px -8px var(--accent-glow); }
.tm-signin:hover::before, .tm-signin:focus-visible::before { opacity: 1; }
.tm-signin svg { opacity: .7; transition: transform .25s, opacity .25s; }
.tm-signin:hover svg { transform: translateX(2px); opacity: 1; }
.tm-signin-dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
@keyframes tmSigninTrace { to { --tm-signin-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .tm-signin::before { animation: none; } }
.tm-live-dot { display: inline-block; vertical-align: 1px; margin-right: .5rem; width: 6px; height: 6px; border-radius: 9999px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); animation: htBlink 1.6s ease-in-out infinite; }
.tm-clock { margin-top: .6rem; font-family: 'JetBrains Mono', monospace; font-size: 30px; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.tm-clock small { font-size: 11px; letter-spacing: .12em; color: var(--dim); margin-left: .35rem; }
.tm-phases { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .3rem; }
.tm-phases li { display: flex; align-items: center; gap: .5rem; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); transition: color .3s ease; }
.tm-phases li::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--line-strong); transition: background .3s ease, width .3s ease; }
.tm-phases li.is-now { color: var(--ink); }
.tm-phases li.is-now::before { width: 22px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.tm-phases li.is-shown:not(.is-now) { color: var(--muted); }
.tm-when { margin-top: .55rem; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tm-lock { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .12em; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 9999px; padding: .05rem .4rem; }
.tm-lock::before { content: "🔒 "; }
.tm-lock.is-free { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tm-lock.is-free::before { content: ""; }
.tm-illus { margin-left: auto; font-size: 9px; color: var(--faint); letter-spacing: .12em; }
#tm-hero-diary .ht-take { min-height: 196px; }
#tm-entry.is-in { animation: htIn .5s ease both; }

/* section 01: tab strip */
.tm-tabstrip { display: flex; flex-wrap: wrap; gap: .35rem; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.tm-tabstrip span { padding: .35rem .6rem; border: 1px solid var(--line-strong); border-radius: .35rem; }
.tm-tabstrip .is-grp { background: var(--accent-soft); color: var(--ink-2); border-color: color-mix(in srgb, var(--accent) 25%, var(--line-strong)); }

/* the bento */
.tm-bento { display: grid; grid-template-columns: 1fr; gap: 1rem; }
/* Phone: one column. Tablet: two, with the Diary, Videos (6th) and the wide
   tiles across both. Desktop: twelve, the Diary 7 wide and two rows tall beside
   Markets and Posts, then three tiles of 4, then two of 6. */
@media (min-width: 768px) {
  .tm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-bento > .tm-diary-tile, .tm-bento > .tm-wide, .tm-bento > article:nth-child(6) { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .tm-bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tm-bento > article, .tm-bento > article:nth-child(6) { grid-column: span 4; }
  .tm-bento > .tm-diary-tile { grid-column: 1 / span 7; grid-row: span 2; }
  .tm-bento > .tm-side-tile { grid-column: 8 / span 5; }
  .tm-bento > .tm-wide { grid-column: span 6; }
}

.tm-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .8rem;
  padding: 1.4rem; border-radius: .9rem; background: var(--panel); border: 1px solid var(--line);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
@media (min-width: 768px) { .tm-tile { padding: 1.6rem; } }
.tm-tile::before {
  content: ""; position: absolute; inset: auto -30% 55% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tier) 16%, transparent), transparent 70%);
  opacity: .55; pointer-events: none; transition: opacity .4s ease;
}
.tm-tile:hover { border-color: color-mix(in srgb, var(--tier) 40%, var(--line-strong)); transform: translateY(-2px); box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--tier) 40%, transparent); }
.tm-tile:hover::before { opacity: 1; }
.tm-tile > * { position: relative; }
.tm-tile-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.tm-tab { display: inline-flex; align-items: center; gap: .5rem; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.tm-tab svg { color: var(--tier); }
.tm-chip {
  display: inline-flex; align-items: center; white-space: nowrap; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tier); background: color-mix(in srgb, var(--tier) 9%, transparent); border: 1px solid color-mix(in srgb, var(--tier) 32%, transparent);
  border-radius: 9999px; padding: .15rem .55rem;
}
.tm-h3 { font-size: 1.45rem; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); font-weight: 400; }
.tm-diary-tile .tm-h3 { font-size: 1.9rem; }
.tm-p { font-size: .925rem; line-height: 1.6; color: var(--muted); font-weight: 300; max-width: 40rem; }
.tm-tile-foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); }
.tm-cadence { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding-top: .55rem; }
.tm-go { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; padding-top: .55rem; }
.tm-go span { display: inline-block; transition: transform .2s ease; }
.tm-go:hover span, .tm-tile:hover .tm-go span { transform: translateX(3px); }

.tm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; padding-top: .4rem; }
.tm-facts span { display: flex; flex-direction: column; gap: .2rem; font-size: 12.5px; line-height: 1.45; color: var(--muted); font-weight: 300; }
.tm-facts b { font-family: 'JetBrains Mono', monospace; font-weight: 400; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--tier); }
@media (max-width: 520px) { .tm-facts { grid-template-columns: 1fr; } }

/* preview: Markets rails, coloured on the heat scale (decorative) */
.tm-rails { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 4px; margin: .2rem 0; }
.tm-rails span {
  --a: 30%; min-height: 54px; border-radius: .35rem; padding: .45rem .55rem; display: flex; align-items: flex-end;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .06em; color: var(--heat-ink);
  background: color-mix(in srgb, var(--heat-up) var(--a), var(--heat-mid));
}
.tm-rails span.dn { background: color-mix(in srgb, var(--heat-down) var(--a), var(--heat-mid)); }



/* live: the book's outline and the open count (terminal-home.js fills them) */
.tm-book-live { border-radius: .6rem; border: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.tm-book-live a { display: grid; grid-template-columns: 4.5rem 1fr auto; align-items: center; gap: .6rem; padding: .55rem .8rem; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.tm-book-live a:first-of-type { border-top: 0; }
.tm-book-live a:hover { background: var(--accent-soft); }
.tm-book-live b { font-family: 'JetBrains Mono', monospace; font-weight: 400; color: var(--ink); }
.tm-book-live time, .tm-book-live .st { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.tm-book-live .st.is-open { color: var(--accent); }
.tm-book-live .tm-book-k { padding: .45rem .8rem; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); }
.tm-open-now { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tier); }
.tm-open-now::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .5rem; border-radius: 50%; background: var(--tier); vertical-align: 1px; }

/* preview: the portfolio */
.tm-book { border-radius: .6rem; border: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.tm-book-row { display: grid; grid-template-columns: 1fr 1fr 1.3fr; align-items: center; gap: .5rem; padding: .5rem .8rem; border-top: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-2); }
.tm-book-row.is-head { border-top: 0; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.tm-book-row i { display: block; height: 6px; width: var(--w); border-radius: 3px; background: var(--heat-up); opacity: .85; }
.tm-book-row i.is-down { background: var(--heat-down); }

  background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--tier) 22%, transparent), transparent 60%), linear-gradient(160deg, var(--bg-3), var(--bg)); }

/* calendar and search tiles */
.tm-cal { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; }
.tm-cal-date { width: 74px; border-radius: .6rem; overflow: hidden; text-align: center; border: 1px solid color-mix(in srgb, var(--tier) 40%, var(--line)); background: var(--bg-2); }
.tm-cal-date span { display: block; padding: .25rem 0; background: color-mix(in srgb, var(--tier) 18%, transparent); font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--tier); }
.tm-cal-date b { display: block; font-weight: 400; font-size: 1.9rem; line-height: 1.1; padding-top: .25rem; color: var(--ink); }
.tm-cal-date small { display: block; padding-bottom: .4rem; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .1em; color: var(--dim); }
.tm-search { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .tm-search { grid-template-columns: 1fr 1fr; align-items: center; } }
.tm-search-mock { display: grid; gap: .35rem; }
.tm-search-box { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border-radius: 9999px; border: 1px solid var(--line-strong); background: var(--bg-2); font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink); }
.tm-search-box svg { color: var(--dim); }
.tm-search-box::after { content: ""; width: 1px; height: 14px; background: var(--accent); animation: htBlink 1s steps(1) infinite; }
.tm-search-row { display: flex; align-items: center; gap: .6rem; padding: .4rem .2rem; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.tm-search-row b { flex: none; font-family: 'JetBrains Mono', monospace; font-weight: 400; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line-strong); border-radius: 3px; padding: .05rem .35rem; }
.tm-search-row span { overflow: hidden; text-overflow: ellipsis; }

/* section 02: what you get (owner, 2026-10-20). The Daily Diary bar, then eight
   boxes, four shown and four behind "Show 4 more"; each box is tagged Daily or
   Ad hoc. The drawn pictures sit on a dark "screen" in both themes, like a video
   frame; the Desk's pages show as white browser windows, like the hero's. */
#session {
  --scr: #07090b; --scr-2: #10151a; --scr-line: rgba(255, 255, 255, .08); --scr-ink: #f4f4f5; --scr-dim: #8b8f98;
  --scr-acc: #00FF41; --scr-up: #22c55e; --scr-dn: #ef4444; --scr-warn: #f5b740;
}
.tm-d-tag { display: inline-flex; align-items: center; gap: .4rem; flex: none; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; border-radius: 9999px; padding: .2rem .55rem .2rem .5rem; }
.tm-d-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; box-sizing: border-box; }
.tm-d-tag.is-daily { color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.tm-d-tag.is-daily::before { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }
.tm-d-tag.is-adhoc { color: var(--ink-2); border: 1px solid var(--line-strong); }
.tm-d-tag.is-adhoc::before { border: 1.5px solid var(--muted); }
.tm-d-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1099px) { .tm-d-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tm-d-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: var(--panel); }
html.js .tm-d-card.tm-rv { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), border-color .25s ease; }
.tm-d-card:hover { border-color: color-mix(in srgb, var(--tier) 45%, var(--line-strong)); }
html.js .tm-d:not(.is-open) .tm-d-grid.is-more { display: none; }
.tm-d-grid + .tm-d-grid { margin-top: 1rem; }
.tm-d-vis { position: relative; display: block; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; background: var(--scr); border-bottom: 1px solid var(--line); }
.tm-d-illus { position: absolute; right: .5rem; bottom: .4rem; font-family: 'JetBrains Mono', monospace; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--scr-dim); }
.tm-d-win { display: flex; flex-direction: column; background: #fff; }
.tm-d-bar { flex: none; display: flex; align-items: center; gap: .28rem; height: 1.45rem; padding: 0 .55rem; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; }
.tm-d-bar i { width: .42rem; height: .42rem; border-radius: 50%; background: #dadde2; }
.tm-d-bar span { margin: 0 auto; transform: translateX(-.7rem); max-width: 78%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .1rem .8rem; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px #e5e7eb; font: 400 9.5px/1.35 Inter, system-ui, sans-serif; color: #6b7280; }
.tm-d-bar b { font-weight: 400; color: #111827; }
.tm-d-shot { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.tm-d-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.tm-d-win.is-chart img { object-position: 50% 72%; }
.tm-d-shot::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.tm-d-win:hover img, .tm-d-win:focus-visible img { transform: scale(1.03); }
.tm-d-tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
.tm-d-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; padding: .95rem 1rem 1rem; }
.tm-d-body h3 { font-size: 1.08rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
.tm-d-body p { font-size: .875rem; line-height: 1.5; font-weight: 300; color: var(--muted); }
.tm-d-sub { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.6; color: var(--dim); }
.tm-d-foot { align-self: stretch; margin-top: auto; padding-top: .55rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; }
.tm-d-plan { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--tier); }
.tm-d-links { display: flex; flex-wrap: wrap; gap: .35rem; }

/* the drawings (terminal-home.js "02 What you get") */
.tm-d-svg { display: block; width: 100%; height: 100%; }
.tm-d-svg .d-bg { fill: var(--scr); }
.tm-d-svg text { font-family: 'JetBrains Mono', monospace; font-size: 8px; letter-spacing: .08em; fill: var(--scr-dim); }
.tm-d-svg text.is-acc { fill: var(--scr-acc); }
.tm-d-svg text.d-h { font-family: Inter, system-ui, sans-serif; font-size: 19px; font-weight: 500; letter-spacing: -.02em; fill: var(--scr-ink); }
.tm-d-svg text.d-chip { font-size: 7.5px; fill: var(--scr-ink); }
.tm-d-svg .d-grid { stroke: var(--scr-line); }
.tm-d-svg .d-cell { fill: var(--scr-2); stroke: var(--scr-line); }
.tm-d-svg .d-px { fill: none; stroke: var(--scr-ink); stroke-width: 1.5; stroke-linejoin: round; }
.tm-d-svg .d-ln { fill: none; stroke-width: 1.2; stroke-linejoin: round; }
.tm-d-svg .d-ln.is-up, .tm-d-svg .d-lv.is-s { stroke: var(--scr-up); }
.tm-d-svg .d-ln.is-dn, .tm-d-svg .d-lv.is-r { stroke: var(--scr-dn); }
.tm-d-svg .d-lv { stroke-dasharray: 3 3; stroke-opacity: .75; }
.tm-d-svg .d-lv.is-p { stroke: var(--scr-warn); }
.tm-d-svg .d-zero { stroke: var(--scr-dim); stroke-dasharray: 3 3; }
.tm-d-svg text.is-r { fill: var(--scr-dn); }
.tm-d-svg text.is-p { fill: var(--scr-warn); }
.tm-d-svg text.is-s { fill: var(--scr-up); }
.tm-d-svg .is-upf { fill: var(--scr-up); }
.tm-d-svg .is-dnf { fill: var(--scr-dn); }
.tm-d-svg .d-c.is-up { stroke: var(--scr-up); fill: var(--scr-up); }
.tm-d-svg .d-c.is-dn { stroke: var(--scr-dn); fill: var(--scr-dn); }
.tm-d-svg .d-vol { fill-opacity: .28; }
.tm-d-svg .d-pf { fill-opacity: .3; }
.tm-d-svg .d-glow { stop-color: var(--scr-acc); }
.tm-d-svg .d-fade { stop-color: var(--scr); }
.tm-d-svg .d-play { fill: var(--scr-acc); }
.tm-d-svg .d-play-i { fill: var(--scr); }

/* Show 4 more: a pill between two hairlines; without the script all eight show. */
.tm-d-morebar { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.tm-d-morebar::before, .tm-d-morebar::after { content: ""; flex: 1; height: 1px; background: var(--line); }
html:not(.js) .tm-d-morebar { display: none; }
.tm-d-toggle { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.15rem; border-radius: 9999px; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--ink-2); font-size: .875rem; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.tm-d-toggle:hover, .tm-d-toggle:focus-visible { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 50%, var(--line-strong)); background: var(--accent-soft); }
.tm-d-toggle svg { color: var(--accent); transition: transform .25s ease; }
.tm-d.is-open .tm-d-toggle svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .tm-d-shot img, .tm-d-toggle svg { transition: none; }
  .tm-d-win:hover img, .tm-d-win:focus-visible img { transform: none; }
}
/* Phones: each row of four swipes sideways, the next box peeking in (as the
   Desk's Pinned band does), so the pictures stay big and the section short. */
@media (max-width: 600px) {
  .tm-d-grid { display: flex; gap: .75rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin: 0 -1.5rem; padding: 0 1.5rem .25rem; scroll-padding: 0 1.5rem; scrollbar-width: none; }
  .tm-d-grid::-webkit-scrollbar { display: none; }
  .tm-d-card { flex: 0 0 84%; scroll-snap-align: start; }
  .tm-d-body { padding: .85rem .9rem .9rem; }
  .tm-d-toggle { padding: .6rem 1.4rem; }
}
/* "Find it in": the pages themselves, as links with each tab's icon (owner,
   2026-10-20: the tier chips "look too generic. make it clearer they are actual
   pages"). The icon keeps the plan's colour. */
.tm-pg { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .5rem .25rem .45rem; border-radius: .45rem; border: 1px solid var(--line-strong); background: var(--bg-2); font-size: .75rem; line-height: 1.25; color: var(--ink-2); white-space: nowrap; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.tm-pg svg { flex: none; color: var(--tier); }
.tm-pg i { font-style: normal; color: var(--dim); transition: transform .2s ease, color .2s ease; }
.tm-pg:hover, .tm-pg:focus-visible { color: var(--ink); border-color: color-mix(in srgb, var(--tier) 55%, var(--line-strong)); background: color-mix(in srgb, var(--tier) 8%, var(--bg-2)); }
.tm-pg:hover i, .tm-pg:focus-visible i { color: var(--tier); transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .tm-pg i { transition: none; } .tm-pg:hover i { transform: none; } }

/* section 03: the seats */
.tm-seats { display: grid; gap: 1rem; grid-template-columns: 1fr; }
/* Three seats (2026-10-20): two across from 640px with the third centred under
   them at one column's width, three across from 1024px. */
@media (min-width: 640px) { .tm-seats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 1023.98px) { .tm-seats > .tm-seat:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .5rem); } }
@media (min-width: 1024px) { .tm-seats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tm-seat { position: relative; display: flex; flex-direction: column; padding: 1.4rem; border-radius: .9rem; border: 1px solid color-mix(in srgb, var(--tier) 22%, var(--line)); background: linear-gradient(170deg, color-mix(in srgb, var(--tier) 7%, var(--panel)), var(--panel) 55%); transition: border-color .3s ease, transform .3s ease; }
.tm-seat:hover { border-color: color-mix(in srgb, var(--tier) 50%, var(--line-strong)); transform: translateY(-2px); }
.tm-seat-q { font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--tier); min-height: 3em; }
.tm-seat h3 { margin-top: .6rem; font-size: 1.5rem; letter-spacing: -.02em; color: var(--tier); font-weight: 400; }
.tm-seat-price { margin-top: .2rem; font-size: 2.6rem; letter-spacing: -.04em; font-weight: 300; color: var(--ink); line-height: 1.1; }
.tm-seat-price small { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-left: .35rem; }
.tm-seat ul { list-style: none; margin: 1rem 0 1.4rem; padding: 0; display: grid; gap: .5rem; }
.tm-seat li { position: relative; padding-left: 1.1rem; font-size: .9rem; line-height: 1.45; color: var(--ink-2); font-weight: 300; }
.tm-seat li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--tier); }
.tm-seat-cta { margin-top: auto; display: inline-flex; justify-content: center; padding: .7rem 1rem; border-radius: .4rem; font-size: .875rem; color: var(--ink); border: 1px solid color-mix(in srgb, var(--tier) 45%, var(--line-strong)); background: color-mix(in srgb, var(--tier) 10%, transparent); transition: background .2s ease; }
.tm-seat-cta:hover { background: color-mix(in srgb, var(--tier) 20%, transparent); }

/* reveal on scroll: hidden only once the script has run, visible without it */
html.js .tm-rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
html.js .tm-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .tm-rv { opacity: 1; transform: none; transition: none; }
  .tm-live-dot, .tm-search-box::after { animation: none; }
  .tm-tile, .tm-seat { transition: none; }
}

/* "Screenshots" of the members' pages (2026-10-17): a trade idea and the
   Portfolio, drawn in the members' own white design (Rubik, navy, blue) so a
   visitor sees the real product. Dummy XYZ data, labelled illustrative. Style
   tags use the site's colours (.hz-tag in terminal-app.css). */
.tm-shot { margin: .2rem 0; border-radius: .6rem; overflow: hidden; background: #fff; color: #111827; font-family: 'Rubik', 'Inter', sans-serif; border: 1px solid rgba(148, 163, 184, .35); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); padding: .9rem .95rem 1rem; }
.tm-shot-top { display: flex; justify-content: space-between; align-items: center; }
.tm-shot-cat { padding: 2px 6px; border-radius: 2px; background: #1a6dba; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tm-shot-tier { padding: 1px 6px; border-radius: 4px; background: #fef3c7; color: #92400e; font-size: 10.5px; font-weight: 600; }
.tm-shot-h { margin-top: .55rem; font-size: 16px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: #111827; }
.tm-shot-up { text-transform: uppercase; font-size: 17px; margin-top: .45rem; }
.tm-shot-by { margin-top: .3rem; font-size: 11.5px; color: #1a6dba; }
.tm-shot-by b { font-weight: 600; }
.tm-shot-box { margin-top: .7rem; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.tm-shot-boxhead { display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; background: #243447; color: #fff; }
.tm-shot-boxhead b { font-size: 12.5px; font-weight: 800; letter-spacing: .02em; margin-right: auto; }
.tm-shot-st { padding: 1px 6px; border-radius: 3px; background: #16a34a; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tm-shot-box dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.tm-shot-box dl > div { padding: .45rem .7rem; border-right: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.tm-shot-box dl > div:nth-child(3n) { border-right: 0; }
.tm-shot-box dl > div:nth-last-child(-n+3) { border-bottom: 0; }
.tm-shot-box dt { font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
.tm-shot-box dd { margin: .15rem 0 0; font-size: 12px; font-weight: 600; color: #111827; }
.tm-shot-p { margin-top: .65rem; font-size: 12.5px; line-height: 1.55; color: #374151; }
.tm-hz { display: inline-block; padding: 0 6px; border-radius: 3px; font-family: 'Rubik', 'Inter', sans-serif; font-style: normal; font-size: 9.5px; font-weight: 700; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.tm-hz.is-secular { background: #ccfbf1; color: #0f5f57; }
.tm-hz.is-swing { background: #dbeafe; color: #1e40af; }
.tm-hz.is-minorlong { background: #f0fdfa; color: #0f766e; box-shadow: inset 0 0 0 1px #99f6e4; }
.tm-hz.is-minor { background: #eff6ff; color: #1d4ed8; box-shadow: inset 0 0 0 1px #bfdbfe; }
.tm-hz.is-0dte { background: #ffe4e6; color: #9f1239; }
.tm-shot-tabs { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid #e5e7eb; border-radius: 6px; background: #f9fafb; }
.tm-shot-tabs span { padding: 2px 8px; border-radius: 4px; font-size: 10.5px; font-weight: 600; color: #4b5563; }
.tm-shot-tabs .is-on { background: #fff; color: #111827; box-shadow: 0 1px 2px rgba(17, 24, 39, .12); }
.tm-shot-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; margin-top: .6rem; }
.tm-shot-tiles .tm-hz { font-size: 8.5px; padding: 0 4px; }
.tm-shot-tiles div { display: flex; flex-direction: column; gap: .2rem; padding: .45rem .55rem; border: 1px solid #e5e7eb; border-radius: 6px; }
.tm-shot-tiles b { font-size: 16px; font-weight: 700; color: #111827; line-height: 1.1; }
.tm-shot-tiles .tm-hz { align-self: flex-start; }
.tm-shot-rows { margin-top: .6rem; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.tm-shot-rows > div { display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: center; gap: .4rem; padding: .4rem .6rem; border-top: 1px solid #e5e7eb; font-size: 11.5px; font-weight: 600; color: #111827; }
.tm-shot-rows > .is-head { border-top: 0; background: #f9fafb; font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
.tm-shot-rows em { display: block; height: 6px; width: var(--w); border-radius: 3px; background: #16a34a; }
.tm-shot-rows em.is-down { background: #dc2626; }
.tm-em { color: var(--ink-2); font-weight: 500; }
.tm-foot-links { display: inline-flex; gap: 1rem; }
@media (max-width: 520px) { .tm-shot-box dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tm-shot-box dl > div:nth-child(3n) { border-right: 1px solid #e5e7eb; } .tm-shot-box dl > div:nth-child(2n) { border-right: 0; } }

/* Today on the desk (hero corner, 2026-10-17): session counts on the left, the
   latest real entries on the right, or a ticker search when the desk is quiet. */
.tm-desk-day, .tm-desk-entry { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.tm-desk-day:hover .tm-phases li.has-entries span { color: var(--ink); }
.tm-phases li { gap: .45rem; }
.tm-phases li span { flex: 1; }
.tm-phases li b { font-weight: 400; letter-spacing: .06em; color: var(--faint); text-transform: none; }
.tm-phases li.has-entries b { color: var(--ink-2); }
.tm-phases li.has-entries { color: var(--muted); }
.tm-desk-entry .ht-title { min-height: 2.5em; }
.tm-desk-find { display: flex; flex-direction: column; gap: .55rem; margin-top: .6rem; }
.tm-desk-find label { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.tm-desk-find div { display: flex; gap: .4rem; }
.tm-desk-find input { flex: 1; min-width: 0; padding: .5rem .65rem; border-radius: .4rem; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--ink); font-family: 'JetBrains Mono', monospace; font-size: 13px; text-transform: uppercase; }
.tm-desk-find input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tm-desk-find button { padding: .5rem .8rem; border-radius: .4rem; background: var(--accent); color: var(--accent-ink); font-size: 13px; }

/* Trade Ideas tile: the three style tags, plainly (2026-10-17). */
.tm-styles { display: grid; gap: .55rem; padding: .95rem 1rem; border-radius: .6rem; border: 1px solid var(--line); background: var(--bg-2); }
.tm-styles-k { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.tm-styles > div { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: .75rem; }
.tm-styles .tm-hz { justify-self: start; font-size: 11px; line-height: 20px; padding: 0 8px; }
.tm-styles p { font-size: .9rem; color: var(--ink-2); font-weight: 300; }

/* Get notified (owner, 2026-10-19): under the bio and as wide as it, in the same
   glass and with Ask the desk's anatomy (eyebrow, line, field, small print). The
   field is one capsule with the button set inside it, in the accent like Go;
   Subscribe goes straight on to Stripe's $1 trial checkout (2026-10-21). */
.tm-notify-card { border-radius: 1rem; padding: .85rem 1.15rem 1rem; }
.tm-notify-card [hidden] { display: none !important; }
.tm-notify-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tm-notify-bell { display: inline-block; vertical-align: -2px; margin-right: .5rem; color: var(--accent); filter: drop-shadow(0 0 6px var(--accent-glow)); }
.tm-notify-label { display: block; margin-top: .6rem; font-size: 15px; line-height: 1.4; color: var(--ink); text-wrap: balance; }
.tm-notify-field { position: relative; display: flex; align-items: center; height: 3rem; margin-top: .7rem; padding: .3rem .3rem .3rem 2.75rem; border-radius: 9999px; border: 1px solid var(--line-strong); background: var(--bg-2); transition: border-color .2s, box-shadow .2s; }
.tm-notify-field:focus-within { border-color: color-mix(in srgb, var(--accent) 65%, var(--line-strong)); box-shadow: 0 0 0 4px var(--accent-soft); }
.tm-notify-at { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; transition: color .2s; }
.tm-notify-field:focus-within .tm-notify-at { color: var(--accent); }
.tm-notify-field input { flex: 1; min-width: 0; height: 100%; padding: 0 .6rem 0 0; border: 0; background: transparent; color: var(--ink); font-size: 14.5px; letter-spacing: -.005em; outline: none; }
.tm-notify-field input::placeholder { color: var(--dim); }
.tm-notify-field input[aria-invalid="true"] { caret-color: var(--bad); }
.tm-notify-field:has(input[aria-invalid="true"]) { border-color: color-mix(in srgb, var(--bad) 70%, var(--line-strong)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 14%, transparent); }
.tm-notify-go { flex: none; display: inline-flex; align-items: center; gap: .45rem; height: 100%; padding: 0 1rem 0 1.15rem; border-radius: 9999px; background: var(--accent); color: var(--accent-ink); font-size: 13.5px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 14px -6px var(--accent-glow); transition: filter .2s, box-shadow .3s; }
.tm-notify-go:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 22px -6px var(--accent-glow); }
.tm-notify-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tm-notify-go svg { transition: transform .25s; }
.tm-notify-go:hover svg { transform: translateX(2px); }
.tm-notify-card.is-busy .tm-notify-go { cursor: progress; filter: saturate(.6); }
.tm-notify-card.is-busy .tm-notify-go svg { animation: tmNotifyGo .9s ease-in-out infinite; }
@keyframes tmNotifyGo { 50% { transform: translateX(4px); opacity: .4; } }
.tm-notify-msg { margin: .65rem 0 0 1.05rem; font: 400 10px/1.5 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.tm-notify-msg.is-err { font: 400 13px/1.45 Inter, sans-serif; letter-spacing: 0; text-transform: none; color: var(--bad); }
.tm-notify-confirmation { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 1.25rem; background: rgba(15, 23, 42, .35); pointer-events: none; }
.tm-notify-confirmation[hidden] { display: none; }
.tm-notify-confirmation-panel { box-sizing: border-box; width: min(100%, 26rem); padding: 2rem 1.5rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--panel-solid); color: var(--ink); box-shadow: var(--shadow); text-align: center; }
.tm-notify-confirmation-check { display: none; margin: 0 auto 1rem; color: var(--tier-analyst); }
.tm-notify-confirmation.is-success .tm-notify-confirmation-check { display: block; }
.tm-notify-confirmation h2 { margin: 0; font: 600 1.5rem/1.25 Inter, sans-serif; letter-spacing: -.025em; }
.tm-notify-confirmation p { margin: .75rem 0 0; font: 400 .9375rem/1.5 Inter, sans-serif; color: var(--muted); }
.tm-notify-confirmation .tm-notify-confirmation-next { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-2); }
/* Small phones: the button keeps "Notify me", without its arrow. */
@media (max-width: 380px) {
  .tm-notify-field { padding-left: 2.4rem; }
  .tm-notify-at { left: .85rem; }
  .tm-notify-go { padding: 0 .85rem; }
  .tm-notify-go svg { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tm-notify-card.is-busy .tm-notify-go svg { animation: none; } .tm-notify-go svg { transition: none; } }

/* 03 Pricing: plan cards with the same paid benefits as /pro. */
.tm-seat-badge { position: absolute; top: 1rem; right: 1rem; padding: .2rem .55rem; border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--tier) 45%, transparent); font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--tier); }
.tm-seat-sub { margin-top: .15rem; font-size: .85rem; color: var(--muted); }
.tm-seat-blurb { margin-top: .7rem; font-size: .9rem; line-height: 1.5; color: var(--ink-2); font-weight: 300; }
.tm-seat .tm-seat-cta { margin-top: 1.1rem; }
.tm-seat-label { margin-top: 1.3rem; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--tier); }
.tm-seat ul { margin: .7rem 0 0; }
.tm-seat li strong { font-weight: 700; color: var(--ink); }
/* Pro's annual price (2026-10-20): a line under the big monthly price, and a
   quieter link under Join Pro. Mentorship's list carries the owner's line as a
   short quote under it, in the card's colour. */
.tm-seat-badge + .tm-seat-q { padding-right: 6.75rem; }
.tm-seat-price .tm-seat-annual { display: block; margin-top: .35rem; font-size: .8rem; line-height: 1.4; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.tm-seat-ctas { display: flex; flex-direction: column; }
.tm-seat-alt { margin-top: .55rem; align-self: center; font-size: .78rem; line-height: 1.4; text-align: center; color: var(--muted); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--tier) 45%, transparent); text-underline-offset: 3px; transition: color .2s ease, text-decoration-color .2s ease; }
.tm-seat-alt:hover, .tm-seat-alt:focus-visible { color: var(--ink); text-decoration-color: var(--tier); }
/* The $1 trial (2026-10-20): the one-line terms under "Start your $1 trial", then
   the yearly link. Both sit in .tm-seat-ctas, one row of the shared grid, so the
   buttons still line up across the row. */
.tm-seat-terms { margin-top: .55rem; font-size: .78rem; line-height: 1.4; text-align: center; text-wrap: balance; color: var(--ink-2); }
.tm-seat-terms + .tm-seat-alt { margin-top: .4rem; }
.tm-seat-fit { display: block; margin-top: 14px; font-size: .78rem; line-height: 1.4; font-style: italic; text-align: center; color: var(--muted); }
.tm-seat-quote { margin: 1.1rem 0 0; padding: .1rem 0 .1rem .85rem; border-left: 2px solid color-mix(in srgb, var(--tier) 60%, transparent); }
.tm-seat-quote p { font-size: .88rem; line-height: 1.5; font-style: italic; font-weight: 300; color: var(--ink-2); }
/* Shared heading, price and benefit rows keep the buttons aligned below the lists.
   The Recommended badge is out of flow and takes no row. */
@media (min-width: 640px) {
  @supports (grid-template-rows: subgrid) {
    .tm-seat { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .tm-seat > .tm-seat-cta, .tm-seat > .tm-seat-ctas { grid-row: 7; align-self: start; }
    .tm-seat > ul, .tm-seat > .tm-seat-list { align-self: start; }
  }
}
.tm-styles { display: grid; gap: .35rem; margin-top: .55rem; }
.tm-compare { margin-top: 2.5rem; overflow-x: auto; border: 1px solid var(--line); border-radius: .9rem; background: var(--panel-solid); }
.tm-compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .875rem; }
.tm-compare th, .tm-compare td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: center; }
.tm-compare tbody:last-child tr:last-child th, .tm-compare tbody:last-child tr:last-child td { border-bottom: 0; }
.tm-compare thead th { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--tier, var(--dim)); font-weight: 500; }
.tm-compare tbody th { text-align: left; font-weight: 300; color: var(--ink-2); }
.tm-yes { color: var(--accent); }
.tm-no { color: var(--dim); }
/* The comparison in blocks (owner, 2026-10-19: "highlight the actual trades. the
   full access and coaching and all research and analysis ... it blends in too much";
   three plans since 2026-10-20: Free, Pro, Mentorship in columns 2-4).
   Each block opens with a band in its plan's colour naming what that plan adds, a
   spine of the same colour runs down its rows, the plan's own column is filled from
   there down (so the blocks step across the table: Pro, then Mentorship), and the
   rows that are the selling point (.is-key) read in full ink. Checks take their
   column's colour. The band's price cell (.is-from) sits in the plan's own column. */
.tm-compare .tm-cmp-band > * { background: color-mix(in srgb, var(--tier) 11%, var(--panel-solid)); border-bottom-color: color-mix(in srgb, var(--tier) 25%, var(--line)); }
.tm-compare .tm-cmp-band th { padding: 1.05rem 1rem .9rem 1.15rem; box-shadow: inset 3px 0 0 var(--tier); }
.tm-cmp-k { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--tier); }
.tm-cmp-h { display: block; margin-top: .2rem; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 500; color: var(--ink); }
.tm-cmp-p { display: inline-block; padding: .2rem .55rem; border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--tier) 50%, transparent); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--tier); }
.tm-compare tbody[data-tier] tr:not(.tm-cmp-band) th { padding-left: 1.15rem; box-shadow: inset 3px 0 0 color-mix(in srgb, var(--tier) 40%, transparent); }
.tm-compare tbody[data-tier]:not([data-tier="free"]) tr:not(.tm-cmp-band) { background: color-mix(in srgb, var(--tier) 3.5%, transparent); }
.tm-compare tr.is-key th { color: var(--ink); font-weight: 500; }
.tm-compare tbody tr:not(.tm-cmp-band) th { font-weight: 300; }
.tm-compare tbody tr:nth-child(even):not(.tm-cmp-band) th { font-weight: 700; }
.tm-compare tbody:not([data-tier="free"]) .tm-cmp-band .is-from,
.tm-compare tbody[data-tier="pro"] tr:not(.tm-cmp-band) > td:nth-child(3),
.tm-compare tbody[data-tier="elite"] tr:not(.tm-cmp-band) > td:nth-child(4) { background: color-mix(in srgb, var(--tier) 15%, var(--panel-solid)); }
.tm-compare tbody:not([data-tier="free"]) .tm-cmp-band .is-from { background: color-mix(in srgb, var(--tier) 24%, var(--panel-solid)); }
.tm-compare tbody[data-tier="pro"] td:nth-child(3) .tm-yes,
.tm-compare tbody[data-tier="elite"] td:nth-child(4) .tm-yes { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--tier); color: var(--panel-solid); font-size: .8rem; font-weight: 700; }
.tm-compare td:nth-child(2) .tm-yes { color: var(--tier-free); }
.tm-compare td:nth-child(3) .tm-yes { color: var(--tier-pro); }
.tm-compare td:nth-child(4) .tm-yes { color: var(--tier-elite); }
@media (max-width: 640px) { .tm-cmp-h { font-size: 1rem; } }
/* Phones (2026-10-20): with three plan columns the table fits the screen, so all
   three plans show without scrolling sideways: tighter cells and smaller caps. */
@media (max-width: 640px) {
  .tm-compare table { min-width: 0; font-size: .8rem; }
  .tm-compare th, .tm-compare td { padding: .6rem .4rem; }
  .tm-compare thead th { font-size: 9px; letter-spacing: .06em; }
  .tm-compare tbody[data-tier] tr:not(.tm-cmp-band) th { padding-left: .8rem; }
  .tm-compare .tm-cmp-band th { padding: .85rem .5rem .75rem .8rem; }
  .tm-cmp-k { font-size: 9px; letter-spacing: .1em; }
  .tm-cmp-p { padding: .15rem .35rem; font-size: 9px; letter-spacing: .03em; }
}

/* Breaking (2026-10-20): a Diary entry he marked Breaking, in red where NEW sits. */
.fp-new.is-breaking { background: #fee4e2; color: #b42318; }
.fp-new.is-breaking::before { background: #d92d20; }

/* ── The window hero (owner, 2026-10-20: "Go with C") ─────────────────────────
   One headline block and one row of buttons on the left with Ask the desk under
   them; on the right the Desk in a browser window, white in both themes, with the
   particle ball (terminal-hero.js, data-centre) rising behind its top edge. Green
   is for reading, ink for joining; Discord is a link (a button on phones). */
:root, :root[data-theme="dark"] { --read: #22e05a; --read-ink: #03140a; --read-glow: rgba(34, 224, 90, .38); }
:root[data-theme="light"] { --read: #15803d; --read-ink: #fff; --read-glow: rgba(21, 128, 61, .32); }
.tm-hero { isolation: isolate; }
.tm-hero-grid { opacity: .75; -webkit-mask-image: radial-gradient(90% 70% at 72% 28%, #000 25%, transparent 75%); mask-image: radial-gradient(90% 70% at 72% 28%, #000 25%, transparent 75%); }
.tm-theme { position: absolute; z-index: 5; top: 1rem; right: 1rem; }
.tm-hero-in { position: relative; z-index: 2; max-width: 80rem; margin: 0 auto; padding: 3.75rem 1.5rem 3rem; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage"; gap: 2.25rem; }
.tm-hero-copy { grid-area: copy; min-width: 0; }
.tm-stage { grid-area: stage; min-width: 0; }
@media (min-width: 768px) { .tm-hero-in { padding: 3.5rem 3rem 3.75rem; } .tm-theme { top: 1.25rem; right: 1.5rem; } }
@media (min-width: 1024px) {
  .tm-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-areas: "copy stage"; column-gap: clamp(2.5rem, 5vw, 5rem); row-gap: 2rem; padding-top: clamp(2.75rem, 7vh, 4.75rem); padding-bottom: clamp(2.75rem, 6vh, 4.25rem); }
  .tm-hero-copy { align-self: center; }
}
/* 1024–1199px: even columns and slightly smaller buttons, so Read and Join share a row. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .tm-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tm-ask-row .tm-btn:not(.tm-btn-discord) { padding: 0 1.1rem; font-size: .9rem; }
}

.tm-eye { display: flex; align-items: center; gap: .75rem; font: 500 11px/1 'JetBrains Mono', monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.tm-eye span { width: 2rem; height: 1px; background: currentColor; opacity: .8; }
@media (max-width: 400px) { .tm-eye { gap: .6rem; letter-spacing: .13em; } .tm-eye span { width: 1.4rem; } }
.tm-title { margin: 1.35rem 0 0; font-size: clamp(3.25rem, 6.1vw, 6.25rem); font-weight: 400; line-height: .95; letter-spacing: -.045em; color: var(--ink); }
.tm-title span { display: block; color: var(--dim); }
.tm-sub { margin-top: 1.4rem; max-width: 30rem; font-size: clamp(1.02rem, 1.2vw, 1.14rem); line-height: 1.6; font-weight: 300; color: var(--muted); text-wrap: pretty; }
/* The ask */
.tm-ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 2rem; }
.tm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; height: 3rem; padding: 0 1.35rem; border-radius: 9999px; font-size: .95rem; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, background .2s, color .2s; }
.tm-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tm-btn svg { flex: none; }
.tm-btn-read { background: var(--read); color: var(--read-ink); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 30px -14px var(--read-glow); }
.tm-btn-read:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 34px -12px var(--read-glow); }
.tm-btn-read svg { transition: transform .25s; }
.tm-btn-read:hover svg { transform: translateX(3px); }
.tm-btn-join { background: var(--ink); color: var(--bg); }
.tm-btn-join:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -16px color-mix(in srgb, var(--ink) 60%, transparent); }
.tm-btn-discord { flex-basis: 100%; justify-content: flex-start; height: auto; padding: .4rem 0 0; border-radius: 0; font-size: .9rem; font-weight: 400; color: var(--muted); }
.tm-btn-discord svg { color: #8b93ff; }
.tm-btn-discord > span { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.tm-btn-discord:hover { color: var(--ink); }
.tm-btn-discord:hover > span { text-decoration-color: currentColor; }
.tm-jn { display: none; }
.tm-fine { margin-top: .9rem; font-size: 12.5px; color: var(--dim); }
/* Phones: three stacked buttons (owner, 2026-10-19: "3 big buttons"), Read on top. */
@media (max-width: 767px) {
  .tm-ask-row { flex-direction: column; align-items: stretch; max-width: 28rem; gap: .6rem; }
  .tm-btn { height: 3.25rem; }
  .tm-btn-discord { flex-basis: auto; justify-content: center; height: 3.25rem; padding: 0 1.35rem; border-radius: 9999px; border: 1px solid var(--line-strong); color: var(--ink-2); }
  .tm-btn-discord > span { text-decoration: none; }
  .tm-or { display: none; }
  .tm-jn { display: inline; }
  .tm-fine { max-width: 28rem; text-align: center; }
}

/* The stage: room above the window for the ball's crown. */
.tm-stage { --lift: clamp(3.5rem, 11vh, 7rem); position: relative; padding-top: var(--lift); }
.tm-stage::before { content: ""; position: absolute; z-index: 0; inset: -8% -12% -6% -8%; pointer-events: none; background: radial-gradient(48% 38% at 68% 32%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%); }
.tm-ball { position: absolute; z-index: 0; left: 70%; top: calc(var(--lift) + 2rem); width: 100%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
/* Under 1024px the window would stack under the buttons, so it goes (owner,
   2026-10-20: "no need to have this window in the mobile version ... only in the
   web version does it show cus it can fit"): the buttons alone. The ball stays
   as a quiet backdrop (owner, 2026-10-24: "even on mobile the ball was slightly
   in background"): the stage leaves the grid and fills the hero behind the copy,
   and the ball rises off the top right, cropped by the hero's edge, dimmed and
   feathered so the title and the buttons stay the read. */
@media (max-width: 1023px) {
  .tm-stage { position: absolute; z-index: 0; inset: 0; grid-area: auto; padding: 0; pointer-events: none; }
  .tm-stage > .dw, .tm-stage > .dw-cap { display: none; }
  .tm-stage::before { inset: 0; background: radial-gradient(75% 42% at 96% 16%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 72%); }
  .tm-ball { left: 90%; top: 11.5rem; width: min(112vw, 44rem); opacity: .45; -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent); mask-image: radial-gradient(closest-side, #000 52%, transparent); }
  .tm-ball canvas { animation: tm-ball-in 2.2s cubic-bezier(.2, .8, .2, 1) both; }
  .tm-hero-copy { position: relative; z-index: 1; }
}
@keyframes tm-ball-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* The window (Rubik and the Desk's own blue, like the pages it shows). Its base
   rules are scoped to the stage (at their old weight, :where): the main hub's Wire entries are .dw too. */
:where(.tm-stage) .dw { position: relative; z-index: 1; container-type: inline-size; display: flex; flex-direction: column; height: clamp(28rem, 62vh, 38rem); border-radius: 14px; overflow: hidden; background: #fff; color: var(--ts-ink); font-family: var(--ts-font);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 120px -30px color-mix(in srgb, var(--accent) 45%, transparent); }
:root[data-theme="light"] :where(.tm-stage) .dw { box-shadow: 0 0 0 1px #e2e8f0, 0 40px 80px -40px rgba(15, 23, 42, .35); }
:where(.tm-stage) .dw a { color: inherit; }
.dw-chrome { flex: none; display: flex; align-items: center; gap: .4rem; height: 2.25rem; padding: 0 .85rem; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; }
.dw-chrome i { width: .62rem; height: .62rem; border-radius: 50%; background: #dadde2; }
.dw-url { display: inline-flex; align-items: center; gap: .35rem; max-width: 72%; margin: 0 auto; padding: .3rem 1.4rem; transform: translateX(-1.2rem); overflow: hidden; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #e5e7eb; font: 400 11.5px/1 Inter, system-ui, sans-serif; color: #6b7280; white-space: nowrap; }
.dw-url svg { flex: none; color: #9ca3af; }
.dw-url b { font-weight: 400; color: #111827; }
.dw-bar { flex: none; display: flex; align-items: stretch; height: 2.75rem; padding: 0 .9rem; background: #fff; border-bottom: 1px solid #e5e7eb; }
.dw-logo { display: flex; align-items: center; gap: .4rem; color: #111827; }
.dw-logo img { width: 16px; height: 16px; }
.dw-logo b { font-weight: 700; font-size: 13.5px; letter-spacing: -.01em; }
.dw-logo i { padding: 2px 4px; border-radius: 2px; background: #111827; color: #fff; font: normal 700 8px/1 var(--ts-font); letter-spacing: .06em; text-transform: uppercase; }
.dw-logo:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: 2px; border-radius: 4px; }
.dw-tabs { display: flex; margin-left: 1.25rem; padding: 0 .25rem; background: var(--ts-blue-soft); }
.dw-tab { position: relative; display: flex; align-items: center; padding: 0 .65rem; border: 0; background: none; font: 600 11px/1 var(--ts-font); letter-spacing: .03em; text-transform: uppercase; color: #111827; white-space: nowrap; cursor: pointer; transition: color .2s, box-shadow .2s; }
.dw-tab:hover { color: var(--ts-blue); }
.dw-tab.is-on { color: var(--ts-blue); box-shadow: inset 0 -2px 0 var(--ts-blue); }
/* While the window turns (terminal-home.js), the line under the tab that's up fills
   over 6 s and its end turns the tab; held while pointed at or focused, gone once a
   tab is chosen. */
.dw.is-turning:not(.is-manual) .dw-tab.is-on { box-shadow: inset 0 -2px 0 rgba(26, 109, 186, .18); }
.dw.is-turning:not(.is-manual) .dw-tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ts-blue); transform-origin: left; transform: scaleX(0); animation: dwFill 6s linear forwards; }
.dw.is-turning.is-held:not(.is-manual) .dw-tab.is-on::after { animation-play-state: paused; }
@keyframes dwFill { to { transform: scaleX(1); } }
.dw-tab:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: -5px; border-radius: 4px; }
.dw-short { display: none; }
@container (max-width: 540px) {
  .dw-long { display: none; }
  .dw-short { display: inline; }
  .dw-tabs { margin-left: auto; }
  .dw-tab { padding: 0 .5rem; }
}
@container (max-width: 380px) { .dw-logo b { display: none; } .dw-url { max-width: 82%; padding: .3rem .8rem; font-size: 10.5px; } }
/* The smallest phones: the tabs take the whole bar. */
@container (max-width: 320px) { .dw-logo { display: none; } .dw-tabs { flex: 1; justify-content: space-between; margin-left: 0; } .dw-tab { padding: 0 .4rem; font-size: 10.5px; } .dw-bar { padding: 0 .5rem; } .dw-live { display: none; } .dw-url { font-size: 10px; } }

/* The page inside: the Desk's tint, its heading, then the latest. */
.dw-body { position: relative; flex: 1; min-height: 0; overflow: hidden; background: rgba(22, 76, 115, .07); }
.dw-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6rem; pointer-events: none; background: linear-gradient(to bottom, rgba(239, 243, 245, 0), #eff3f5 72%); }
.dw-panel { height: 100%; padding: 1.1rem 1.25rem 0; }
.dw-panel[hidden] { display: none; }
.dw-panel.is-in { animation: dwIn .35s ease both; }
@keyframes dwIn { from { opacity: 0; transform: translateY(4px); } }
.dw-head h2 { display: flex; align-items: center; gap: .6rem; margin: 0; font: 800 1.35rem/1.1 var(--ts-font); letter-spacing: -.01em; text-transform: uppercase; color: #111827; }
.dw-head h2 a { transition: color .2s; }
.dw-head h2 a:hover { color: var(--ts-blue); }
.dw-head h2 em { padding: 4px 6px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1px #dbe3ec; font: normal 600 9.5px/1 var(--ts-font); letter-spacing: .08em; color: #475569; white-space: nowrap; }
.dw-head p { margin-top: .3rem; font: 400 12.5px/1.45 var(--ts-font); color: #6b7280; }
.dw-author { display: flex; align-items: center; gap: .45rem; margin-top: .75rem; font: 600 12px/1 var(--ts-font); color: #111827; }
.dw-author img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.dw-live { position: relative; padding: 3px 5px 3px 13px; border-radius: 3px; background: #dcfce7; color: #15803d; font: 700 9px/1 var(--ts-font); letter-spacing: .08em; text-transform: uppercase; }
.dw-live::before { content: ""; position: absolute; left: 5px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #16a34a; animation: dwPulse 2.4s ease-out infinite; }
@keyframes dwPulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); } 70% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.dw-count { margin-left: auto; white-space: nowrap; padding: 4px 8px; border-radius: 9999px; background: #dcfce7; color: #15803d; font: 600 10.5px/1 var(--ts-font); }
.dw-count[hidden] { display: none; }
.dw-list { margin-top: .9rem; padding-bottom: 6rem; }
.dw-empty { padding: .9rem 1rem; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(17, 24, 39, .06); font: 400 13px/1.5 var(--ts-font); color: #4b5563; }
/* The Diary's timeline: a line down the left, a navy dot at each session, a
   ringed blue dot by each entry (red when he marked it Breaking). */
.dw-tl { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; margin-left: .3rem; padding-left: 1.3rem; border-left: 2px solid #d5dee8; }
.dw-se { position: relative; margin-top: .2rem; font: 700 9.5px/1 var(--ts-font); letter-spacing: .1em; text-transform: uppercase; color: #243447; }
.dw-se::before { content: ""; position: absolute; left: calc(-1.3rem - 6px); top: -1px; width: 10px; height: 10px; border-radius: 50%; background: #243447; }
.dw-card { position: relative; display: block; padding: .7rem .85rem .65rem; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(17, 24, 39, .07), 0 6px 14px -8px rgba(17, 24, 39, .14); transition: transform .2s, box-shadow .2s; }
.dw-card::before { content: ""; position: absolute; left: calc(-1.3rem - 6px); top: .9rem; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 2px solid var(--ts-blue); }
.dw-card.is-bk { box-shadow: inset 0 3px 0 #d92d20, 0 1px 2px rgba(17, 24, 39, .07), 0 6px 14px -8px rgba(17, 24, 39, .14); }
.dw-card.is-bk::before { background: #d92d20; border-color: #d92d20; box-shadow: 0 0 0 3px rgba(217, 45, 32, .18); }
.dw-when { display: flex; align-items: baseline; gap: .4rem; min-width: 0; font: 400 10.5px/1.2 var(--ts-font); color: #6b7280; }
.dw-when b { flex: none; font: 700 12.5px/1 var(--ts-font); color: var(--ts-blue); font-variant-numeric: tabular-nums; }
.dw-when small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: inherit; }
.dw-card.is-bk .dw-when b { color: #d92d20; }
.dw-tag { flex: none; margin-left: auto; padding: 3px 5px; border-radius: 3px; background: #eef2f6; color: #475569; font: normal 700 9px/1 var(--ts-font); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.dw-tag.is-bk { background: #d92d20; color: #fff; }
.dw-ttl { display: -webkit-box; margin-top: .35rem; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font: 600 14px/1.3 var(--ts-font); color: #111827; transition: color .2s; }
.dw-by { display: flex; align-items: center; gap: .35rem; margin-top: .4rem; font: 400 10.5px/1 var(--ts-font); color: #9ca3af; }
.dw-by i { font-style: normal; }
.dw-lock, .dw-free { margin-left: auto; padding: 3px 6px; border-radius: 4px; font: 600 10px/1 var(--ts-font); white-space: nowrap; }
.dw-lock { display: inline-flex; align-items: center; gap: .25rem; background: #fef3c7; color: #92400e; }
.dw-free { background: #dcfce7; color: #15803d; }
/* Posts, videos and trades: the tile, then what it is, the title and when. */
.dw-list:not(.dw-tl) { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.dw-row { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr); gap: .85rem; align-items: center; padding: .55rem; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(17, 24, 39, .07), 0 6px 14px -8px rgba(17, 24, 39, .14); transition: transform .2s, box-shadow .2s; }
.dw-tile { border-radius: 5px; }
.dw-k { display: block; font: 700 9.5px/1.2 var(--ts-font); letter-spacing: .08em; text-transform: uppercase; color: var(--ts-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-row .dw-ttl { margin-top: .3rem; font-size: 13.5px; }
.dw-meta { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; font: 400 10.5px/1.2 var(--ts-font); color: #6b7280; }
.dw-meta .fp-new { margin-right: .35rem; }
.dw-card:hover, .dw-row:hover { transform: translateY(-1px); box-shadow: 0 1px 2px rgba(17, 24, 39, .07), 0 12px 22px -12px rgba(17, 24, 39, .28); }
.dw-card.is-bk:hover { box-shadow: inset 0 3px 0 #d92d20, 0 1px 2px rgba(17, 24, 39, .07), 0 12px 22px -12px rgba(17, 24, 39, .28); }
.dw-card:hover .dw-ttl, .dw-row:hover .dw-ttl { color: var(--ts-blue); }
.dw-card:focus-visible, .dw-row:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: 2px; }
@container (max-width: 420px) { .dw-row { grid-template-columns: 6.6rem minmax(0, 1fr); gap: .7rem; } .dw-panel { padding: 1rem .9rem 0; } .dw-head h2 { font-size: 1.15rem; } }
.dw-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: center; padding: 0 1rem 1rem; pointer-events: none; }
.dw-open { display: inline-flex; align-items: center; gap: .45rem; height: 2.4rem; padding: 0 1.1rem; border-radius: 9999px; background: #111827; color: #fff; font: 600 12.5px/1 var(--ts-font); pointer-events: auto; box-shadow: 0 10px 24px -10px rgba(17, 24, 39, .6); transition: transform .25s, background .2s; }
.dw .dw-open { color: #fff; }
.dw-open:hover { background: var(--ts-blue); transform: translateY(-1px); }
.dw-open:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: 3px; }
.dw-cap { position: relative; z-index: 1; margin-top: .9rem; text-align: center; font-size: 11.5px; color: var(--dim); }
/* Beside the copy the caption hangs under the window, so Ask the desk lines up with the window's foot. */
@media (min-width: 1024px) { .dw-cap { position: absolute; left: 0; right: 0; top: 100%; } }

/* A tile in the window: its time, ticker, PDF or play (desk-thumbs.js draws the art). */
.fp-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; isolation: isolate; color: #fff; background: radial-gradient(120% 100% at 90% -10%, rgba(0, 255, 65, .22), transparent 60%), linear-gradient(160deg, #0b1322 0%, #18263b 60%, #243447 100%); }
.fp-thumb::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 16px 16px; }
.fp-thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #00ff41, #38bdf8); }
.fp-thumb > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.fp-thumb b { font: 700 1rem/1 var(--ts-font); letter-spacing: -.01em; text-align: center; }
.fp-thumb b small { display: block; margin-top: 5px; font: 500 9px/1 'JetBrains Mono', monospace; letter-spacing: .14em; color: rgba(255, 255, 255, .65); }
.fp-play { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 9999px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.fp-new { display: inline-flex; align-items: center; gap: .3rem; margin-right: .5rem; padding: 3px 7px 3px 6px; border-radius: 9999px; background: #dcfce7; color: #15803d; font: 700 9.5px/1 var(--ts-font); letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }
.fp-new::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; background: #16a34a; }

/* Behind the desk and Never miss a post, side by side under the first screen.
   Thinner (owner, 2026-10-20: "a bit thinner, take up a bit less room, while
   maintaining beautiful aesthetic and info"): the portrait (60px, was 112) sits
   beside the name, so the paragraph runs the column's full width with Read my
   story at its end; less padding and smaller type on the name and the sign-up. */
.tm-meet { background: var(--bg-2); }
.tm-meet-in { max-width: 80rem; margin: 0 auto; padding: 2.25rem 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
@media (min-width: 768px) { .tm-meet-in { padding: 2.75rem 3rem; } }
@media (min-width: 1024px) {
  .tm-meet-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
  .tm-meet-notify { padding-left: 3.5rem; border-left: 1px solid var(--line); }
}
.tm-meet-bio { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.tm-meet-head { display: flex; align-items: center; gap: 1rem; }
.tm-meet-head img { flex: none; width: 60px; height: 60px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 14px 28px -16px rgba(0, 0, 0, .8); }
.tm-meet-k { display: flex; align-items: center; font: 500 10.5px/1 'JetBrains Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.tm-meet-name { margin-top: .45rem; font-size: 1.4rem; font-weight: 400; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.tm-meet-name small { margin-left: .45rem; font-size: .8rem; letter-spacing: 0; color: var(--dim); }
.tm-meet-p { max-width: 42rem; font-size: 15px; line-height: 1.6; font-weight: 300; color: var(--ink-2); }
.tm-meet-more { display: inline-flex; align-items: center; gap: .35rem; margin-left: .2rem; padding-bottom: 1px; border-bottom: 1px solid var(--line-strong); font-size: 14px; font-weight: 400; color: var(--ink); white-space: nowrap; transition: border-color .2s; }
.tm-meet-more:hover { border-color: var(--ink); }
.tm-meet-more svg { transition: transform .2s; }
.tm-meet-more:hover svg { transform: translateX(3px); }
.tm-meet .tm-notify-card { padding: 0; }
.tm-meet .tm-notify-label { margin-top: .6rem; font-size: 1.15rem; font-weight: 400; letter-spacing: -.015em; }
@media (max-width: 480px) { .tm-meet-head img { width: 52px; height: 52px; } .tm-meet-name { font-size: 1.3rem; } }
/* The same sign-up at the foot of the page (2026-10-20), centred under the
   band's two buttons, a short hairline above it. */
.tm-notify-band { width: min(100%, 28rem); margin-top: 3rem; padding: 2.25rem 0 0; border-radius: 0; border-top: 1px solid var(--line); text-align: center; }
.tm-notify-band .tm-meet-k { justify-content: center; }
.tm-notify-band .tm-notify-label { margin-top: .7rem; font-size: 1.05rem; font-weight: 300; color: var(--ink-2); }
.tm-notify-band .tm-notify-field { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
/* The band's column is as wide as its content: without this the input's own
   width would widen it past a phone's gutter. */
.tm-notify-band .tm-notify-field input { width: 0; }
.tm-notify-band .tm-notify-msg { margin-left: 0; }

/* The main hub (2026-10-20): /main/main-hub's view under Behind the desk, white
   in both themes like the Desk, its type and widths from terminal-app.css. A
   signed-in reader sees only the hub: everything marked data-guest goes. */
html.is-member [data-guest]:not([data-guest~="free"]), html.is-member:not(.is-free) [data-guest~="free"] { display: none !important; }
/* The Desk's pages keep the browser's line height; Tailwind's 1.5 here would
   heighten every inline row. */
.tm-hub { line-height: normal; }
.tm-hub .ta-bg { min-height: 0; }
.tm-hub .ta-loading { margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .tm-btn, .dw-card, .dw-row, .dw-open { transition: none; }
  .tm-btn:hover, .dw-card:hover, .dw-row:hover, .dw-open:hover { transform: none; }
  .dw-live::before, .dw-panel.is-in { animation: none; }
}


/* ── The tour's live tiles and the bio's three facts (owner, 2026-10-20, from the
   other session's mockup https://claude.ai/artifact/AVJztDH6uUjok8334o5uFd) ── */
/* Under the bio: 10 years · Bulge-bracket bank + hedge fund · Multi-asset, split
   by hairlines. The middle one is the long one (owner, same day: "investment bank
   + hedge fund institutional trading desks (buy-side and sell-side)", then, as a
   pro would word it, "Bulge-bracket bank + hedge fund / sell-side and buy-side
   trading desks"), so it takes what the two short ones leave, its headline on one
   line, "trading desks" kept whole. The bio stops growing at 611px (from 1280px),
   where the headline has ~12px to spare with .85rem beside the hairlines; where the
   bio is under 610px (1024-1279px, tablets, phones up to ~657px) the two short
   ones share the first row and it runs full width under them. */
.tm-meet-bio { container: tm-bio / inline-size; }
.tm-proof { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; border-top: 1px solid var(--line); }
.tm-proof > div { min-width: 0; padding: .75rem .85rem 0 0; }
.tm-proof > div + div { padding-left: .85rem; border-left: 1px solid var(--line); }
.tm-proof b { display: block; font-size: 1rem; font-weight: 500; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); white-space: nowrap; }
.tm-proof span { display: block; margin-top: .1rem; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.tm-proof i { font-style: normal; white-space: nowrap; }
@container tm-bio (max-width: 609px) {
  .tm-proof { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tm-proof > div:nth-child(1) { grid-area: 1 / 1; }
  .tm-proof > div:nth-child(3) { grid-area: 1 / 2; }
  .tm-proof > div:nth-child(2) { grid-area: 2 / 1 / 3 / 3; margin-top: .75rem; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .tm-proof b { white-space: normal; }
}
@media (max-width: 480px) {
  .tm-proof > div { padding-right: .7rem; }
  .tm-proof > div:nth-child(3) { padding-left: .7rem; }
  .tm-proof b { font-size: .95rem; }
  .tm-proof span { font-size: 12px; }
}

/* The Daily Diary tile: the latest entries by day, in the members' white design. */
.tm-te { margin-top: .4rem; overflow: hidden; border-radius: .75rem; background: #fff; color: #111827; font-family: var(--ts-font); border: 1px solid rgba(148, 163, 184, .3); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.tm-te-h { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; background: #243447; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tm-te-h span + span { font-weight: 500; letter-spacing: 0; text-transform: none; color: #c7d2df; }
.tm-te-day { padding: .6rem 1rem .4rem; background: #f7f9fb; border-bottom: 1px solid #e6eaf0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #636b78; }
.tm-te ul { list-style: none; margin: 0; padding: 0 1rem; }
.tm-te li { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr) auto; gap: .75rem; align-items: start; padding: .7rem 0; border-bottom: 1px solid #e6eaf0; }
.tm-te li:last-child { border-bottom: 0; }
.tm-te time { padding-top: 1px; font-size: 13px; color: #4b5563; font-variant-numeric: tabular-nums; }
.tm-te li > a { min-width: 0; }
.tm-te-s { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1a6dba; }
.tm-te-s.is-quote { color: #8a6a3d; }
.tm-te-t { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 500; line-height: 1.35; color: #111827; transition: color .2s; }
.tm-te li > a:hover .tm-te-t { color: #1a6dba; }
.tm-te li > a:focus-visible { outline: 2px solid #1a6dba; outline-offset: 2px; border-radius: 3px; }
.tm-lb { padding: 1px 6px; border-radius: 3px; background: #e7e5e4; color: #44403c; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.tm-lb.is-bk { background: #fee2e2; color: #b91c1c; }
.tm-lb.is-quick { background: #dcfce7; color: #166534; }
.tm-lb.is-color { background: #ccfbf1; color: #115e59; }
.tm-lb.is-headline { background: #fee2e2; color: #991b1b; }
.tm-lb.is-street { background: #ede9fe; color: #5b21b6; }
.tm-lb.is-data { background: #e2e8f0; color: #334155; }
.tm-lb.is-earnings { background: #ffedd5; color: #9a3412; }
.tm-lb.is-flow { background: #fae8ff; color: #86198f; }
.tm-lb.is-levels { background: #dbeafe; color: #1e40af; }
.tm-lb.is-chart { background: #ecfccb; color: #3f6212; }
.tm-lb.is-thesis { background: #ffe4e6; color: #9f1239; }
.tm-lb.is-breakdown { background: #e0e7ff; color: #3730a3; }
.tm-lb.is-clip { background: #cffafe; color: #155e75; }
.tm-lb.is-recap { background: #fef9c3; color: #854d0e; }
.tm-lb.is-plan { background: #e0e7ff; color: #3730a3; }
.tm-lb.is-fed { background: #cffafe; color: #155e75; }
.tm-lb.is-position { background: #d1fae5; color: #065f46; }
.tm-chip-free, .tm-chip-lock { display: inline-flex; align-items: center; gap: .25rem; padding: 2px 7px; border-radius: 4px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.tm-chip-free { background: #dcfce7; color: #166534; }
.tm-chip-lock { background: #fdf3d6; color: #8a4b06; }
.tm-te-sub { display: block; padding: .75rem 1rem; background: #f3f7fc; border-top: 1px solid #e6eaf0; text-align: center; font-size: 13.5px; color: #4b5563; }
.tm-te-sub b { font-weight: 600; color: #1a6dba; }
.tm-te-sub:hover b { text-decoration: underline; }
.tm-te-empty { padding: .9rem 1rem; font-size: 13.5px; line-height: 1.5; color: #4b5563; }
.tm-te-empty a { font-weight: 600; color: #1a6dba; }
@media (max-width: 520px) { .tm-te li { grid-template-columns: 3.9rem minmax(0, 1fr); } .tm-te li > span:last-child { grid-column: 2; justify-self: start; } }

/* Trade Ideas: the latest trade, its tile, title, ticker and theme, and its plan. */
.tm-latest { display: grid; grid-template-columns: 8.25rem minmax(0, 1fr); gap: .9rem; align-items: center; padding: .75rem; border-radius: .75rem; border: 1px solid var(--line); background: var(--bg-2); transition: border-color .2s; }
.tm-latest:hover { border-color: var(--line-strong); }
.tm-latest[hidden] { display: none; }
.tm-latest .fp-thumb, .tm-prow .fp-thumb { border-radius: 7px; }
.tm-latest b, .tm-prow b { display: block; font-weight: 500; letter-spacing: -.01em; color: var(--ink); transition: color .2s; }
.tm-latest b { font-size: 16px; line-height: 1.3; }
.tm-latest small, .tm-prow small { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .3rem; font-size: 12.5px; color: var(--dim); }
.tm-latest:hover b, .tm-prow:hover b { color: var(--accent); }
.tm-dk-lock { display: inline-flex; align-items: center; gap: .25rem; font-size: 12px; color: var(--warn); }
.tm-dk-free { font-size: 12px; color: var(--tier-analyst); }

/* Posts & Research: the latest three, picture first. */
.tm-plist { display: flex; flex-direction: column; gap: .7rem; }
.tm-prow { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .9rem; align-items: center; }
.tm-prow b { font-size: 15px; line-height: 1.32; }
.tm-prow .fp-thumb > img { filter: saturate(.85) brightness(.9); }
.tm-plist-empty { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* Videos: a player with a chart line on it. */
.tm-vid { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .75rem; border: 1px solid var(--line); background: radial-gradient(circle at 75% 25%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 50%), linear-gradient(180deg, var(--bg-3), var(--bg)); }
.tm-vid-line { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; }
.tm-vid-line .a { fill: color-mix(in srgb, var(--accent) 7%, transparent); }
.tm-vid-line .l { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.tm-vid-play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #050505; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); transition: transform .3s ease; }
.tm-tile:hover .tm-vid-play { transform: scale(1.06); }
.tm-vid-bar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.tm-vid-bar i { display: block; width: 36%; height: 100%; border-radius: inherit; background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .tm-vid-play { transition: none; } .tm-tile:hover .tm-vid-play { transform: none; } }

/* ── 02's timeline: the last 48 hours on the Desk, drawn to the clock (owner,
   2026-10-20, mockup B). terminal-home.js draws the SVG to the plot's width. ── */
.tm-48 { margin: 0; padding: 1.15rem 1.35rem .6rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--bg); }
.tm-48[hidden], .tm-48-lead[hidden] { display: none; }
/* Its lead-in, under the session cards (owner, same day: "markets dont sleep"). */
.tm-48-lead { margin: 4.5rem 0 1.5rem; max-width: 48rem; }
.tm-48-lead h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 400; color: var(--ink); text-wrap: balance; }
.tm-48-lead p { margin-top: .6rem; font-size: 1rem; line-height: 1.6; font-weight: 300; color: var(--muted); }
@media (max-width: 767px) { .tm-48-lead { margin-top: 3.5rem; } }
.tm-48-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
.tm-48-h b { font-size: 15px; font-weight: 500; color: var(--ink); }
.tm-48-n, .tm-48-leg { font: 400 10.5px 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.tm-48-leg { margin-left: auto; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.tm-48-leg i, .tm-48-list li::before { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .45rem; vertical-align: 0; }
.tm-48 .is-diary { --c: var(--accent); }
.tm-48 .is-aside { --c: var(--accent); }
.tm-48 .is-post { --c: var(--ink-2); }
.tm-48 .is-trade { --c: var(--warn); }
.tm-48 .is-bk { --c: #ff5a5f; }
.tm-48-leg i { background: var(--c); }
.tm-48-plot { margin-top: .5rem; overflow: hidden; }
.tm-48-plot svg { display: block; overflow: visible; }
.tm-48-s1 { fill: color-mix(in srgb, var(--ink) 3%, transparent); }
.tm-48-s2 { fill: color-mix(in srgb, var(--ink) 7%, transparent); }
.tm-48-mid { stroke: color-mix(in srgb, var(--ink) 14%, transparent); stroke-dasharray: 2 4; }
.tm-48-axis { stroke: color-mix(in srgb, var(--ink) 26%, transparent); }
.tm-48-tick { stroke: color-mix(in srgb, var(--ink) 30%, transparent); }
.tm-48-lead { stroke: color-mix(in srgb, var(--ink) 28%, transparent); }
.tm-48-now { stroke: var(--accent); stroke-width: 1.25; }
.tm-48-ax { font: 400 9.5px 'JetBrains Mono', monospace; letter-spacing: .1em; fill: var(--dim); }
.tm-48-dy { font: 500 10px 'JetBrains Mono', monospace; letter-spacing: .12em; fill: var(--muted); }
.tm-48-m { font: 400 9.5px 'JetBrains Mono', monospace; letter-spacing: .1em; fill: var(--dim); }
.tm-48-m.is-now { fill: var(--accent); }
.tm-48-m .is-bk { fill: #ff5a5f; }
.tm-48-m .is-lk { fill: var(--warn); }
.tm-48-t { font: 500 13px Inter, system-ui, sans-serif; fill: var(--ink); transition: fill .2s; }
.tm-48-lab:hover .tm-48-t { fill: var(--accent); }
.tm-48-lab:focus-visible, .tm-48-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tm-48-dot circle { fill: var(--c); stroke: var(--bg); stroke-width: 2.5; transition: r .15s; }
.tm-48-dot circle.is-aside { fill: var(--bg); stroke: var(--c); stroke-width: 1.6; }
.tm-48-dot:hover circle { r: 6.5; }
/* Phones: the same pieces as a list down a rail. */
.tm-48-list { display: none; list-style: none; margin: 1rem 0 .4rem; padding: 0 0 0 1.25rem; border-left: 1px solid var(--line-strong); }
.tm-48-list li { position: relative; display: grid; gap: .2rem; padding-bottom: .9rem; }
.tm-48-list li::before { content: ""; position: absolute; left: calc(-1.25rem - 5px); top: 3px; width: 9px; height: 9px; margin: 0; background: var(--c); box-shadow: 0 0 0 3px var(--bg); }
.tm-48-list li.is-aside::before { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--c), 0 0 0 3px var(--bg); }
.tm-48-list small { font: 400 10px 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.tm-48-list a { font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.tm-48-list a:hover { color: var(--accent); }
@media (max-width: 767px) {
  .tm-48 { padding: 1rem 1rem .4rem; }
  .tm-48-plot, .tm-48-leg { display: none; }
  .tm-48-list { display: block; }
}
@media (prefers-reduced-motion: reduce) { .tm-48-t, .tm-48-dot circle { transition: none; } }

/* How every trade is labelled (owner, 2026-10-20: "i dont want it to take up 2 lines.
   1 line like the rest"): every description on one line. Beside its tag where the
   box is wide enough; under it, scaled to fit, where it is not. */
#inside .tm-styles { container-type: inline-size; }
#inside .tm-styles > div { grid-template-columns: 6.1rem minmax(0, 1fr); gap: .7rem; }
#inside .tm-styles p { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 385px) {
  #inside .tm-styles > div { display: block; }
  #inside .tm-styles p { margin-top: .3rem; font-size: min(13.5px, 4.6cqi); }
}
/* The smallest phones: one line would need text under 11px, so it wraps instead. */
@container (max-width: 239px) { #inside .tm-styles p { font-size: 12.5px; white-space: normal; } }
