/* ════════════════════════════════════════════
   APP — the styles every current screen shares
   ════════════════════════════════════════════
   One file, loaded after shell.css (which holds the app shell and the
   design tokens --tzx-*). Sections, in cascade order:
   00-base · who · route · season · seasonwho · social · chat · legacy
*/

/* ═══ 00-base ═══ */
/* ── One app: shared bits every screen uses ── */
/* anything that opens a trader's profile card (93-profile.js data-profile) */
[data-profile] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[data-profile]:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 2px; border-radius: 10px; }

/* ═══ who ═══ */
/* ── Who: picture block · rank block · name (161-who.js), like a game's player tag ── */
.tzw, html.tz-app .tzw[role="button"] { min-height: 0; min-width: 0; padding: 0; }
.tzw { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; vertical-align: middle; color: inherit; text-decoration: none; }
.tzw-face, .tzw-rank { position: relative; flex: none; width: var(--tzw); height: var(--tzw); border-radius: calc(var(--tzw) * .28); overflow: hidden; }
.tzw-face { background: rgba(255, 255, 255, .06); }
.tzw-face > .tzpf-av, .tzw-face > i, .tzw-face img { width: 100% !important; height: 100% !important; border-radius: inherit; display: block; object-fit: cover; }
.tzw-rank { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025) 70%); box-shadow: inset 0 0 0 1px var(--tzx-line); }
.tzw-rank canvas { display: block; }
/* no league known yet (a signed-out reader never gets one): no empty tile, the face and name close up */
.tzw-rank.is-none { display: none; }
.tzw-txt { display: flex; flex-direction: column; min-width: 0; margin-left: 4px; line-height: 1.2; }
.tzw-name { font: 700 14px var(--tzx-font); color: var(--tzx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzw-txt small { font: 500 11.5px var(--tzx-font); color: var(--tzx-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzw[data-profile]:hover .tzw-name { text-decoration: underline; text-underline-offset: 2px; }
.tzw[data-profile]:active { opacity: .8; }

/* ═══ route ═══ */
/* ── Moving between screens (160-route.js) ── */
@keyframes tzr-in { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html.tz-app #app-shell > .right-col.tzr-in > * { animation: tzr-in .2s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { html.tz-app #app-shell > .right-col.tzr-in > * { animation: none; } }

/* ═══ season ═══ */
/* ── Season: the trophy road, the boards, leagues, prize, achievements,
      evolve and the session clock (103/133/145–149/155) ──
   Scoped like shell.css: html.tz-app + the screen's own id, so nothing else
   that shares a class prefix (159-imessage's .tzm-day, 95-stats' .tzm-foot)
   is touched. */

/* ── Section titles: sentence case, no letter-spaced caps ── */
html.tz-app #tzm .tzm-h span,
html.tz-app #tzlb .tzm-h span { font: 800 15px/1.25 var(--tzx-font) !important; letter-spacing: -.01em !important; text-transform: none !important; color: var(--tzx-ink) !important; }
html.tz-app #tzm .tzm-h small,
html.tz-app #tzlb .tzm-h small { font-size: 12px; color: var(--tzx-ink3); font-variant-numeric: tabular-nums; }
html.tz-app #tzm .tzm-lvno { font: 700 12.5px var(--tzx-font) !important; letter-spacing: 0 !important; text-transform: none !important; }
html.tz-app #tzm .tzm-found-h { font: 700 12.5px var(--tzx-font) !important; letter-spacing: 0 !important; text-transform: none !important; }

/* ── The trophy road's rank line: a way to your division board ── */
html.tz-app #tzm .tzm-rank { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; min-width: 0; min-height: 0; margin: 5px 0 0; padding: 0; border: 0; background: none;
  color: var(--tzx-ink3); font: 600 11.5px/1.35 var(--tzx-font); font-variant-numeric: tabular-nums; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.tz-app #tzm .tzm-rank i { flex: none; font-style: normal; font-size: 14px; line-height: 1; color: var(--tzx-ink3); }
html.tz-app #tzm .tzm-rank:hover, html.tz-app #tzm .tzm-rank:focus-visible { color: var(--tzx-ink2); }
html.tz-app #tzm .tzm-rank:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 2px; border-radius: 6px; }

/* ── The league ladder: fits 375px, every league a button ── */
html.tz-app #tzm .tzm-ladder ul.tzm-orbs100 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 5px; overscroll-behavior: contain; }
html.tz-app #tzm .tzm-orbs100 li { min-width: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease, border-color .15s ease, transform .12s ease; }
html.tz-app #tzm .tzm-orbs100 li small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
html.tz-app #tzm .tzm-orbs100 li:hover { background: rgba(255, 255, 255, .045); }
html.tz-app #tzm .tzm-orbs100 li:active { transform: scale(.96); }
html.tz-app #tzm .tzm-orbs100 li:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 1px; }
@media (max-width: 360px) { html.tz-app #tzm .tzm-ladder ul.tzm-orbs100 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }

/* a league or medal you were sent to lights up for a moment */
@keyframes tzs-flash { 0% { box-shadow: 0 0 0 0 rgba(var(--acc-rgb, 184, 245, 0), .75); } 70% { box-shadow: 0 0 0 10px rgba(var(--acc-rgb, 184, 245, 0), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--acc-rgb, 184, 245, 0), 0); } }
html.tz-app #tzm .tzm-orbs100 li.is-flash,
html.tz-app #tza-sec .tza-cell.is-flash { border-color: var(--tzx-acc) !important; background: rgba(var(--acc-rgb, 184, 245, 0), .12) !important; animation: tzs-flash 1s ease-out 2; }

/* ── The boards (#tzlb) ── */
/* names truncate, numbers line up, nothing wider than the sheet */
html.tz-app #tzlb .tzlb-box { overflow-x: hidden; }
html.tz-app #tzlb .tzlb-list { grid-template-columns: minmax(0, 1fr); }
html.tz-app #tzlb .tzlb-list li { min-width: 0; max-width: 100%; }
html.tz-app #tzlb .tzlb-list li > b { flex: none; width: auto; min-width: 26px; font-variant-numeric: tabular-nums; }
html.tz-app #tzlb .tzlb-list li > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.tz-app #tzlb .tzlb-list li > span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.tz-app #tzlb .tzlb-list li > strong { flex: none; min-width: 58px; font-variant-numeric: tabular-nums; }
html.tz-app #tzlb .tzlb-list li strong small { font: 600 11px var(--tzx-font) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--tzx-ink3); }
html.tz-app #tzlb .tzlb-list li > canvas, html.tz-app #tzlb .tzlb-list li > .tzlb-dot,
html.tz-app #tzlb .tzlb-list li > .tzlg-bdg { flex: none; }
/* every trader (and Legion) opens on tap */
html.tz-app #tzlb .tzlb-list li[data-profile],
html.tz-app #tzlb .tzlb-list li[data-who-name],
html.tz-app #tzlb .tzlb-list li[data-lgopen] { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease, transform .12s ease; }
html.tz-app #tzlb .tzlb-list li[data-profile]:hover,
html.tz-app #tzlb .tzlb-list li[data-who-name]:hover,
html.tz-app #tzlb .tzlb-list li[data-lgopen]:hover { background: rgba(255, 255, 255, .055); }
html.tz-app #tzlb .tzlb-list li.is-me:hover { background: rgba(var(--acc-rgb, 184, 245, 0), .14); }
html.tz-app #tzlb .tzlb-list li[data-profile]:active,
html.tz-app #tzlb .tzlb-list li[data-who-name]:active,
html.tz-app #tzlb .tzlb-list li[data-lgopen]:active { transform: scale(.985); }
html.tz-app #tzlb [data-who-name]:focus-visible,
html.tz-app #tzlb [data-lgopen]:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 2px; border-radius: 10px; }
/* the podium: tap a cup's trader */
html.tz-app #tzlb .tzm-pod[data-profile],
html.tz-app #tzlb .tzm-pod[data-who-name] { cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 12px; }
html.tz-app #tzlb .tzm-pod[data-profile]:active .tzm-cup,
html.tz-app #tzlb .tzm-pod[data-who-name]:active .tzm-cup { transform: scale(.94); }
html.tz-app #tzlb .tzm-pod > small { font-variant-numeric: tabular-nums; }
html.tz-app #tzlb .tzm-podium { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); }
html.tz-app #tzlb .tzm-pod[data-profile]:focus-visible,
html.tz-app #tzlb .tzm-pod[data-who-name]:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 2px; }
/* the Legions tab's Where picker stays inside the sheet (long country names) */
html.tz-app #tzlb .tzlg-where { min-width: 0; max-width: 100%; }
html.tz-app #tzlb .tzlg-where select { flex: 1 1 0; min-width: 0; width: 100%; max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 350px) { html.tz-app #tzlb .tzlb-tabs button { padding: 0 7px; } }
html.tz-app #tzlb .tzlb-cta { display: flex; justify-content: center; margin: 4px 0 6px; }
html.tz-app #tzlb .tzlb-cta .tzt-go { min-height: 42px; height: auto; padding: 0 20px; border-radius: 12px; font: 700 14px var(--tzx-font); }
html.tz-app #tzlb .tzlb-top h2 { font: 800 17px/1.2 var(--tzx-font); letter-spacing: -.02em; }
html.tz-app #tzlb .tzlb-top > div { min-width: 0; }
html.tz-app #tzlb .tzlb-top p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── The prize card: sentence case, the Pro chip and the way to Pro ── */
html.tz-app .tzlb-prize small { letter-spacing: 0 !important; text-transform: none !important; font-weight: 700 !important; }
html.tz-app .tzlb-prize > div { position: relative; z-index: 1; min-width: 0; }
html.tz-app .tzlb-prize .tzpz-pro { display: inline-block; min-width: 0; min-height: 0; margin: 0 1px; padding: 0 6px; border: 0; border-radius: 84px; background: var(--tzx-acc); color: #050505;
  font: 800 11px/16px var(--tzx-font); letter-spacing: 0; text-transform: none; vertical-align: 1px; cursor: pointer; }
html.tz-app .tzlb-prize .tzpz-pro:focus-visible { outline: 2px solid #ffe27a; outline-offset: 2px; }
html.tz-app .tzlb-prize .tzpz-cta { display: inline-flex; align-items: center; margin-top: 9px; padding: 6px 12px; border-radius: 84px; background: var(--tzx-acc); color: #050505;
  font: 700 12.5px/1.2 var(--tzx-font); font-style: normal; }
html.tz-app .tzlb-prize .tzpz-cta.is-pro { background: rgba(255, 226, 122, .12); color: #ffe27a; border: 1px solid rgba(255, 226, 122, .35); }
html.tz-app .tzlb-prize.is-tap:focus-visible { outline: 2px solid #ffe27a; outline-offset: 2px; }
html.tz-app .tzlb-prize.is-tap:hover { border-color: rgba(255, 216, 77, .65); }

/* ── Season prize: rules sheet and the daily popup ── */
html.tz-app #tzpz-rules .tzrep-box { position: relative; }
html.tz-app #tzpz-rules .tzrep-x { position: absolute; right: 12px; top: 12px; }
html.tz-app #tzpz-rules .tzpz-rtop { margin-right: 42px; }
html.tz-app #tzpz-rules .tzpz-rtop small { letter-spacing: 0 !important; text-transform: none !important; font: 700 12px var(--tzx-font) !important; }
html.tz-app #tzpz-rules .tzpz-legal { text-align: left !important; font-size: 12.5px; }
html.tz-app #tzpz-rules .tzrep-actions button { min-height: 40px; border-radius: 12px; }
html.tz-app #tzpz .tzpz-chip { letter-spacing: 0 !important; text-transform: none !important; font: 800 12.5px var(--tzx-font) !important; }
html.tz-app #tzpz .tzpz-k { letter-spacing: 0 !important; text-transform: none !important; font: 700 12px var(--tzx-font) !important; }

/* ── Home's trophy: "1,234 trophies", not shouting ── */
html.tz-app #tzm-home .tzmh-cup small { letter-spacing: 0 !important; text-transform: none !important; font: 600 10.5px var(--tzx-font) !important; }
html.tz-app #tzm-home .tzmh-cup b { font-variant-numeric: tabular-nums; }

/* ── The badge, a league up close ── */
html.tz-app #tzm-badge .tzrep-actions,
html.tz-app #tzm-league .tzrep-actions { justify-content: center; }
html.tz-app #tzm-badge .tzrep-actions button,
html.tz-app #tzm-league .tzrep-actions button { min-height: 40px; padding: 0 16px; border-radius: 12px; font: 700 13.5px var(--tzx-font); }
html.tz-app #tzm-badge .tzm-badge-next[data-nextlg] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.tz-app #tzm-badge .tzm-badge-next[data-nextlg]:hover { background: rgba(255, 255, 255, .04); }
html.tz-app #tzm-badge .tzm-badge-next[data-nextlg]:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: -2px; }
html.tz-app #tzm-league .tzm-lg-box { max-width: min(420px, 96vw); }
html.tz-app #tzm-league .tzm-lg-box .tzrep-x { position: absolute; right: 12px; top: 12px; }
html.tz-app #tzm-league .tzm-lg-box h2 { margin: 0 0 3px; font: 800 18px var(--tzx-font); letter-spacing: -.02em; }
html.tz-app #tzm-league .tzm-lg-note { margin: 4px 6px 0; font-size: 13px; line-height: 1.5; color: var(--tzx-ink2); }
html.tz-app #tzm-badge .tzm-badge-box h2 { letter-spacing: -.02em; }
html.tz-app #tzm-promo .tzm-promo-box small { letter-spacing: 0 !important; text-transform: none !important; font: 700 12.5px var(--tzx-font) !important; }

/* ── Achievements: sheet close in the corner, medals as buttons ── */
html.tz-app #tza-sheet .tza-box,
html.tz-app #tza-peek .tza-box { position: relative; }
html.tz-app #tza-sheet .tzrep-x,
html.tz-app #tza-peek .tzrep-x { position: absolute; right: 12px; top: 12px; z-index: 2; }
html.tz-app #tza-sheet .tzrep-actions,
html.tz-app #tza-peek .tzrep-actions { justify-content: center; }
html.tz-app #tza-sheet .tzrep-actions button,
html.tz-app #tza-peek .tzrep-actions button { min-height: 40px; padding: 0 16px; border-radius: 12px; font: 700 13.5px var(--tzx-font); }
/* someone's medal opens from their profile card: up close above the card (93-profile.js sits at 100170) */
html.tz-app #tza-peek { z-index: 100180; }
html.tz-app #tza-peek .tza-mine { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 9px 12px; border-radius: 14px; border: 1px solid var(--tzx-line); background: var(--tzx-card, rgba(255, 255, 255, .035)); }
html.tz-app #tza-peek .tza-mine span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
html.tz-app #tza-peek .tza-mine b { font: 700 13.5px var(--tzx-font); color: var(--tzx-ink); }
html.tz-app #tza-peek .tza-mine small { font-size: 12px; color: var(--tzx-ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.tz-app [data-ach-show] { cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 10px; transition: transform .12s ease; }
html.tz-app [data-ach-show]:active { transform: scale(.95); }
html.tz-app [data-ach-show]:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 2px; }
html.tz-app #tza-sec .tza-cardlink { display: inline; min-width: 0; min-height: 0; padding: 0; border: 0; background: none; color: var(--tzx-ink2); font: 600 12px var(--tzx-font); cursor: pointer; }
html.tz-app #tza-sec .tza-cardlink:hover { color: var(--tzx-ink); }
html.tz-app #tza-sec .tza-cardlink:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 2px; border-radius: 4px; }
/* a trader's rank card on their profile goes to the league ladder (103-missions.js) */
html.tz-app #tradzy-public-profile .tzpc-rankcard { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ── Evolve and results ── */
html.tz-app #tzevo .tzevo-k { letter-spacing: 0 !important; text-transform: none !important; font: 700 12.5px var(--tzx-font) !important; }
html.tz-app #tzevo .tzevo-link { display: block; min-width: 0; min-height: 36px; margin: 8px auto 0; padding: 0 12px; border: 0; background: none; color: var(--tzx-ink2); font: 600 13px var(--tzx-font); cursor: pointer; }
html.tz-app #tzevo .tzevo-link[hidden] { display: none; }
html.tz-app #tzevo .tzevo-link:hover { color: var(--tzx-ink); }
html.tz-app #tzevo .tzevo-res em { font-variant-numeric: tabular-nums; }

/* ── The crest maker (145-crest.js): keyboard focus on the crest and its buttons ── */
html.tz-app .tzlg-bb.is-shuffle .tzlg-bb-view:focus-visible,
html.tz-app .tzlg-shuf:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 3px; }

/* ── The session clock sheet ── */
html.tz-app #tzck-sheet .tzck-box { position: relative; }
html.tz-app #tzck-sheet .tzrep-x { position: absolute; right: 12px; top: 12px; }
html.tz-app #tzck-sheet .tzck-h { margin-right: 42px; font: 800 17px var(--tzx-font); letter-spacing: -.02em; }
html.tz-app #tzck-sheet .tzck-now b { font-variant-numeric: tabular-nums; }
html.tz-app #tzck-sheet .tzck-list small { font-variant-numeric: tabular-nums; }
html.tz-app #tzck-sheet .tzck-alerts { min-height: 44px; border-radius: 13px; font: 700 14px var(--tzx-font); }

@media (prefers-reduced-motion: reduce) {
  html.tz-app #tzm .tzm-orbs100 li.is-flash,
  html.tz-app #tza-sec .tza-cell.is-flash { animation: none; }
  html.tz-app #tzm .tzm-orbs100 li, html.tz-app #tzlb .tzlb-list li, html.tz-app [data-ach-show] { transition: none; }
}

/* ═══ seasonwho ═══ */
/* ── Season boards: every trader as the shared player tag (161-who.js, who.css):
      picture block · rank block · name, like a game's ladder (103-missions.js) ──
   Scoped like shell.css (html.tz-app + #tzlb), so the tag keeps its own look
   everywhere else. The row (or podium step) carries the tap; the tag inside
   it is plain (link: false). */

/* ── Board rows: rank · tag · score; the name gives way first at 375px ── */
html.tz-app #tzlb .tzlb-list li { gap: 8px; padding: 6px 10px 6px 8px; min-height: 46px; }
html.tz-app #tzlb .tzlb-list li > .tzw { flex: 1 1 auto; min-width: 0; max-width: none; overflow: visible; font-weight: inherit; white-space: nowrap; }   /* the name truncates, not the blocks (your ring stays whole) */
/* shell.css sizes every span in a row (flex: 1; ellipsis): the two blocks keep their square */
html.tz-app #tzlb .tzlb-list .tzw-face,
html.tz-app #tzlb .tzlb-list .tzw-rank { flex: none; min-width: 0; overflow: hidden; white-space: normal; }
html.tz-app #tzlb .tzlb-list .tzw-txt { flex: 1 1 auto; min-width: 0; overflow: hidden; margin-left: 3px; }
/* …and sizes every b in a row like the rank (22px, right-aligned, ink3): the name is a b too */
html.tz-app #tzlb .tzlb-list .tzw-name { display: block; width: auto; min-width: 0; text-align: left; color: var(--tzx-ink); font: 700 14px/1.25 var(--tzx-font); letter-spacing: -.005em; }
html.tz-app #tzlb .tzlb-list .tzw-txt small { display: block; margin-top: 1px; font: 500 11.5px/1.3 var(--tzx-font); color: var(--tzx-ink3); }
html.tz-app #tzlb .tzlb-list li > b { min-width: 24px; text-align: center; }
html.tz-app #tzlb .tzlb-list li > strong { min-width: 56px; }
/* you: your name in the accent, your picture ringed */
html.tz-app #tzlb .tzlb-list li.is-me .tzw-name { color: var(--tzx-acc); }
html.tz-app #tzlb .tzlb-list li.is-me .tzw-face { box-shadow: 0 0 0 1.5px var(--tzx-acc); }
html.tz-app #tzlb .tzlb-list li[data-profile]:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 2px; border-radius: 10px; }

/* ── The podium: each trader's two blocks on their step ── */
html.tz-app #tzlb .tzm-pod.has-who { gap: 3px; padding-top: 2px; }
html.tz-app #tzlb .tzm-pod.has-who > .tzm-cup { margin-bottom: -2px; }
html.tz-app #tzlb .tzm-pod > .tzw { flex: none; max-width: 100%; margin: 0 0 3px; gap: 5px; }
html.tz-app #tzlb .tzm-pod > .tzw .tzw-face { box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .8); }
html.tz-app #tzlb .tzm-pod.is-p1 > .tzw .tzw-face { box-shadow: 0 0 0 2px rgba(255, 216, 77, .85), 0 10px 24px -10px rgba(255, 200, 60, .7); }
html.tz-app #tzlb .tzm-pod.is-p2 > .tzw .tzw-face { box-shadow: 0 0 0 2px rgba(228, 233, 239, .7); }
html.tz-app #tzlb .tzm-pod.is-p3 > .tzw .tzw-face { box-shadow: 0 0 0 2px rgba(242, 167, 101, .7); }
html.tz-app #tzlb .tzm-pod.is-me > .tzw .tzw-face { box-shadow: 0 0 0 2px var(--tzx-acc); }
html.tz-app #tzlb .tzm-pod.has-who > b { max-width: 100%; font: 700 13.5px/1.25 var(--tzx-font); letter-spacing: -.005em; }
html.tz-app #tzlb .tzm-pod[data-profile]:active > .tzw,
html.tz-app #tzlb .tzm-pod[data-who-name]:active > .tzw { transform: scale(.96); }
html.tz-app #tzlb .tzm-pod > .tzw { transition: transform .12s ease; }
/* narrow phones: the blocks step down so three steps still fit side by side */
@media (max-width: 359px) {
  html.tz-app #tzlb .tzm-pod > .tzw { zoom: .8; }
  html.tz-app #tzlb .tzlb-list li { gap: 6px; padding-left: 6px; padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html.tz-app #tzlb .tzm-pod > .tzw { transition: none; }
}

/* ═══ social ═══ */
/* ════════════════════════════════════════════
   SOCIAL — Legion, friends, duels, rooms, invite, You, my profile
   and the profile card's layering (93-profile.js)
   ════════════════════════════════════════════
   Every trader in these lists is the shared player tag (161-who.js, who.css):
   picture block, rank block, name, caption. The row around it is the tap
   target and opens their profile card (data-profile). */

/* ── The profile card on top ──
   shell.css puts it at 100170, but the old `.modal-bg.open { z-index: 9200
   !important }` (index.html) won, so a name tapped in a room (#tzr-sheet
   100150, #tzr-space 100160) opened the card underneath. Now it's 100170 for
   real: above chat (870), the Season board, Legion and Friends (9000), You
   (9100) and the rooms; a medal peeked from it (#tza-peek 100180) still
   comes on top, and 93-profile.js lifts it over any higher sheet it opens
   from. While it shows, toasts and the app's dialogs (99990: report,
   confirm) come up over it, so "Link copied", "Liked" and the report box
   are seen. */
html.tz-app #tradzy-public-profile.tzpf.open { z-index: 100170 !important; }
html.tz-app:has(#tradzy-public-profile.open) #tzx-toasts { z-index: 100500 !important; }
html.tz-app:has(#tradzy-public-profile.open) .tzdlg-bg { z-index: 100510 !important; }

/* ── Rows: Legion members, applicants, friends, requests, found players ── */
html.tz-app .tzlg-p { gap: 10px; min-height: 50px; padding: 7px 10px; border-radius: 12px; }
html.tz-app .tzlg-p > .tzw { flex: 1; min-width: 0; }
html.tz-app .tzlg-p-n { flex: none; width: 18px; font-variant-numeric: tabular-nums; }
html.tz-app .tzlg-p > strong { flex: none; }
html.tz-app .tzlg-p > .tzlg-mini, html.tz-app .tzlg-p > .tzlg-rel, html.tz-app .tzlg-p > .tzlg-more { flex: none; }
html.tz-app .tzlg-p .tzlg-mini { min-height: 30px; padding: 0 12px; font: 700 12.5px var(--tzx-font); }
html.tz-app .tzlg-p .tzlg-more { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; }
html.tz-app .tzlg-p[data-profile] { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease; }
@media (hover: hover) { html.tz-app .tzlg-p[data-profile]:not(.is-me):hover { background: rgba(255, 255, 255, .05); } }
html.tz-app .tzlg-p[data-profile]:not(.is-me):active { background: rgba(255, 255, 255, .07); }
html.tz-app .tzlg-p[data-profile]:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 1px; }
/* the row is the target: no underline jumping on the name as the pointer crosses it */
html.tz-app .tzlg-p .tzw[data-profile]:hover .tzw-name { text-decoration: none; }
/* the Commander's rank under their name, in gold */
html.tz-app .tzlg-p.is-lead .tzw-txt small { color: #ffd84d; }
html.tz-app .tzlg-ask .tzw-txt small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* section labels in sentence case, not spaced capitals */
html.tz-app .tzlg-sub { margin: 12px 2px 6px; letter-spacing: 0; text-transform: none; font: 700 13px var(--tzx-font); color: var(--tzx-ink2); }

/* ── Duels on the Paper desk ── */
html.tz-app .tzdu-opp { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 6px; }
html.tz-app .tzdu-top.tzdu-opp { align-items: center; margin-top: 0; }
html.tz-app .tzdu-opp > .tzw { flex: 1; min-width: 0; }
html.tz-app .tzdu-opp .tzw-name { font: 700 14px var(--tzx-font); }
html.tz-app .tzdu-opp .tzw-txt small, html.tz-app .tzdu-prow .tzw-txt small { font: 500 12px var(--tzx-font); color: var(--tzx-ink3); font-variant-numeric: tabular-nums; }
html.tz-app .tzdu-top > span:last-child { flex: none; }
html.tz-app .tzdu-bar span[data-profile] { cursor: pointer; }
@media (hover: hover) { html.tz-app .tzdu-bar span[data-profile]:hover { color: var(--tzx-ink); text-decoration: underline; text-underline-offset: 2px; } }
html.tz-app .tzdu-past { display: flex; flex-direction: column; gap: 3px; margin: 4px 0 10px; }
html.tz-app .tzdu-h { display: block; margin: 0 2px 4px; font: 700 13px var(--tzx-font); color: var(--tzx-ink2); }
html.tz-app .tzdu-prow { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .025); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease; }
html.tz-app .tzdu-prow > .tzw { flex: 1; min-width: 0; }
@media (hover: hover) { html.tz-app .tzdu-prow:hover { background: rgba(255, 255, 255, .05); } }
html.tz-app .tzdu-prow:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 1px; }
html.tz-app .tzdu-prow .tzw[data-profile]:hover .tzw-name { text-decoration: none; }
html.tz-app .tzdu-res { flex: none; padding: 3px 10px; border-radius: 84px; background: rgba(255, 255, 255, .06); color: var(--tzx-ink2); font: 700 12px var(--tzx-font); }
html.tz-app .tzdu-res.is-won { background: rgba(var(--acc-rgb, 184, 245, 0), .14); color: var(--tzx-acc); }
html.tz-app .tzdu-res.is-lost { background: rgba(255, 111, 94, .12); color: #ff6f5e; }

/* ── Rooms (89-communities.js): people, requests, the feed's senders ── */
html.tz-app .tzr-h, html.tz-app .tzr-sub { letter-spacing: 0 !important; text-transform: none !important; font: 700 13px var(--tzx-font) !important; color: var(--tzx-ink2) !important; }
html.tz-app .tzr-sub { margin: 12px 0 4px !important; }
html.tz-app .tzr-person { gap: 8px; min-height: 44px; }
html.tz-app .tzr-person[data-profile] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.tz-app .tzr-person[data-profile]:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 1px; border-radius: 8px; }
html.tz-app .tzr-pwho { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; flex: 1; min-width: 0; }
html.tz-app .tzr-pwho > .tzw { min-width: 0; max-width: 100%; }
html.tz-app .tzr-pwho .tzw-name { font: 600 13.5px var(--tzx-font); }
html.tz-app .tzr-tags { display: inline-flex; flex-wrap: wrap; gap: 3px; }
html.tz-app .tzr-tags em { margin-left: 0; }
html.tz-app .tzr-person > .tzr-mini, html.tz-app .tzr-person > span:last-child:not(.tzr-pwho) { flex: none; }
html.tz-app .tzs-who { display: flex; align-items: center; gap: 6px; }
html.tz-app .tzs-who .tzw-name { font: 700 12.5px var(--tzx-font); color: var(--tzx-ink2); }
html.tz-app .tzs-who time { margin-left: 0; font: 500 11.5px var(--tzx-font); font-variant-numeric: tabular-nums; }
html.tz-app .tzr-owner[data-profile] { color: var(--tzx-ink2); cursor: pointer; }
@media (hover: hover) { html.tz-app .tzr-owner[data-profile]:hover { color: var(--tzx-ink); text-decoration: underline; text-underline-offset: 2px; } }

/* ── Invite: the hop to your friends ── */
html.tz-app .tzv-friends { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; margin: 14px 0 0; padding: 0 14px; border: 1px solid var(--tzx-line); border-radius: 12px; background: rgba(255, 255, 255, .035); color: var(--tzx-ink); font: 600 14px var(--tzx-font); text-align: left; cursor: pointer; }
html.tz-app .tzv-friends span { color: var(--tzx-ink3); font-size: 18px; line-height: 1; }
@media (hover: hover) { html.tz-app .tzv-friends:hover { background: rgba(255, 255, 255, .06); } }

/* ── You: your face and name open your card ── */
html.tz-app .tzyou-face[data-profile], html.tz-app .tzyou-id[data-profile] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.tz-app .tzyou-face[data-profile]:focus-visible, html.tz-app .tzyou-id[data-profile]:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 2px; border-radius: 12px; }

/* ── My profile editor: see your card ── */
html.tz-app .tzrep.tzpf .tzpf-cardlink { display: inline-flex; align-items: center; min-height: 32px; margin: 9px 0 2px; padding: 0 13px; border: 1px solid var(--tzx-line); border-radius: 84px; background: rgba(255, 255, 255, .04); color: var(--tzx-ink); font: 600 12.5px var(--tzx-font); cursor: pointer; }
@media (hover: hover) { html.tz-app .tzrep.tzpf .tzpf-cardlink:hover { background: rgba(255, 255, 255, .08); } }

@media (prefers-reduced-motion: reduce) {
  html.tz-app .tzlg-p, html.tz-app .tzdu-prow { transition: none !important; }
}

/* ═══ chat ═══ */
/* ════════════════════════════════════════════════════════════════════════
   Chat, iMessage style (owner, 2026-10): who's talking as a game-style
   player tag, tapbacks, rich cards, "Delivered", the jump-to-latest pill
   and the input pill.
   Loaded after shell.css; its chat block (#tradzy-chat-panel / .chat-* /
   .tzm-*) draws the bubbles and tails, this file adds the rest.
     23-supabase-init-auth.js  renderChatMessage: .tzm-who (TZWho's .tzw tag),
                               .tzim-line, .tzim-rxbtn, .tzim-dlv, .tzim-ret,
                               the trade card (.tzim-tc)
     159-imessage.js           groups (.tzm-first/.tzm-last), .tzim-newest,
                               .tzim-jump
     58-admin-bridge-v98-2.js  tapbacks: .tzrx badge, .tzrx-pick, .tzrx-sheet
     57-admin-bridge-v98.js    pinned note (.tzc-pin), team popup (.tzc-adm),
                               update bar (.tzc-upd)
   ════════════════════════════════════════════════════════════════════════ */

/* ── The old look, switched off ─────────────────────────────────────────── */
/* scanlines over the panel, the slide-in on every row, gold shimmer text */
html.tz-app #tradzy-chat-panel::before { content: none !important; display: none !important; }
html.tz-app #tradzy-chat-panel .chat-msg { animation: none !important; transition: none !important; }
html.tz-app #tradzy-chat-panel .chat-msg .chat-msg-body { background: none !important; -webkit-text-fill-color: currentColor !important; animation: none !important; text-shadow: none !important; }
/* the retired in-chat Season board: the Season leaderboard (103-missions.js) is the one board */
html.tz-app #tradzy-chat-panel .chat-messages { overflow-x: hidden !important; overscroll-behavior: contain; }

/* ── "Messages disappear after 7 days" ──────────────────────────────────── */
.tzim-ret { align-self: center; max-width: 100%; margin: 2px auto 4px; padding: 0 12px; font: 500 11.5px/1.4 var(--tzx-font); color: var(--tzx-ink3); text-align: center; }

/* ── One message: who · line (bubble, react) · meta ──────────────────────── */
.tzim-line { position: relative; display: flex; align-items: flex-end; gap: 9px; max-width: 100%; min-width: 0; }
html.tz-app #tradzy-chat-panel .chat-msg.own-msg .tzim-line { flex-direction: row-reverse; }
html.tz-app #tradzy-chat-panel .tzim-line > .tzm-bub { min-width: 0; touch-action: manipulation; -webkit-touch-callout: none; }

/* who's talking, like a game's clan chat: their player tag (picture block,
   rank block, name: 161-who.js, the who section) above the first bubble of a
   run, then their Season rank and streak. It sits on the bubbles' own left
   edge, so a group lines up under it. Your own messages have none */
html.tz-app #tradzy-chat-panel .tzm-who { gap: 7px; min-height: 24px; margin: 0 0 5px 1px; }
/* polish.css gives every [role=button] 40 px on touch screens: the tag keeps
   its 24 px look and gets a taller tap area from its padding instead */
html.tz-app #tradzy-chat-panel .tzm-who .tzw { flex: 0 1 auto; min-width: 0; min-height: 0; gap: 4px; margin: -5px 0; padding: 5px 4px 5px 0; -webkit-tap-highlight-color: transparent; }
html.tz-app #tradzy-chat-panel .tzm-who .tzw-txt { margin-left: 3px; }
html.tz-app #tradzy-chat-panel .tzm-who .tzw-name { font: 700 13px/1.2 var(--tzx-font); color: var(--tzx-ink); }
html.tz-app #tradzy-chat-panel .tzm-who .tzw:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 2px; border-radius: 8px; }
html.tz-app #tradzy-chat-panel .tzm-who .chat-rank-badge, html.tz-app #tradzy-chat-panel .tzm-who .chat-msg-streak { align-self: center; }

/* "Delivered" under your newest message only; the time beside it */
html.tz-app #tradzy-chat-panel .chat-msg.tzm-last .chat-msg-meta { display: flex; align-items: center; gap: 5px; }
html.tz-app #tradzy-chat-panel .chat-msg.own-msg .chat-msg-meta { justify-content: flex-end; margin-right: 4px; }
.tzim-dlv { display: none; order: -1; font: 600 10.5px var(--tzx-font); color: var(--tzx-ink2); }
html.tz-app #tradzy-chat-panel .chat-msg.tzim-newest .tzim-dlv { display: inline; }
html.tz-app #tradzy-chat-panel .chat-msg.tzim-newest .tzim-dlv::after { content: '·'; margin-left: 5px; color: var(--tzx-ink3); font-weight: 500; }
html.tz-app #tradzy-chat-panel .chat-msg.tzim-newest:not(.tzm-last) .chat-msg-meta { display: flex; }

/* ── Tapbacks: the hover button, the picker, the badge, who reacted ─────── */
.tzim-rxbtn { position: absolute; top: 50%; right: -34px; display: none; place-items: center; width: 28px; height: 28px; margin-top: -14px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--tzx-ink3); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
html.tz-app #tradzy-chat-panel .chat-msg.own-msg .tzim-rxbtn { right: auto; left: -34px; }
.tzim-rxbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  html.tz-app #tradzy-chat-panel.tzrx-on .tzim-rxbtn { display: grid; }
  html.tz-app #tradzy-chat-panel.tzrx-on .chat-msg:hover .tzim-rxbtn,
  html.tz-app #tradzy-chat-panel.tzrx-on .chat-msg.tzrx-sel .tzim-rxbtn,
  html.tz-app #tradzy-chat-panel.tzrx-on .tzim-rxbtn:focus-visible { opacity: 1; }
  .tzim-rxbtn:hover { background: rgba(255, 255, 255, .12); color: var(--tzx-ink); }
}

/* a bubble with a tapback leaves room above for the badge */
html.tz-app #tradzy-chat-panel .chat-msg.tzrx-has .tzim-line { margin-top: 15px; }
.tzrx { position: absolute; z-index: 2; top: -19px; right: -15px; display: inline-flex; align-items: center; gap: 1px; min-width: 28px; height: 25px; padding: 0 6px; border: 2px solid #0b0c10; border-radius: 84px; background: #2c2c31; color: var(--tzx-ink); font: 600 13px/1 var(--tzx-font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.tz-app #tradzy-chat-panel .chat-msg.own-msg .tzrx { right: auto; left: -15px; }
.tzrx i { font-style: normal; font-size: 13.5px; line-height: 1; }
.tzrx i + i { margin-left: -2px; }
.tzrx b { margin-left: 3px; font: 700 11px var(--tzx-font); color: var(--tzx-ink2); font-variant-numeric: tabular-nums; }
.tzrx.is-mine { background: #303a14; box-shadow: 0 0 0 1.5px var(--tzx-acc); }
.tzrx.is-mine b { color: var(--tzx-ink); }
.tzrx:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 2px; }
@keyframes tzrx-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: none; } }
.tzrx.is-pop { animation: tzrx-pop .32s cubic-bezier(.2, .9, .3, 1.3) both; }

/* the picker: five emoji in a dark pill above the bubble */
html.tz-app #tradzy-chat-panel .chat-msg.tzrx-sel .tzm-bub { filter: brightness(1.12); }
.tzrx-pick { position: absolute; z-index: 30; display: flex; align-items: center; gap: 1px; padding: 4px 5px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 84px; background: rgba(38, 38, 43, .97); box-shadow: 0 12px 32px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: tzrx-pick-in .18s cubic-bezier(.2, .9, .3, 1.2) both; }
.tzrx-pick button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: none; font: 400 22px/1 var(--tzx-font); cursor: pointer; transition: transform .12s, background .12s; -webkit-tap-highlight-color: transparent; }
.tzrx-pick button:hover { background: rgba(255, 255, 255, .08); transform: scale(1.12); }
.tzrx-pick button:active { transform: scale(.94); }
.tzrx-pick button.is-on { background: rgba(var(--acc-rgb, 184, 245, 0), .24); box-shadow: inset 0 0 0 1.5px rgba(var(--acc-rgb, 184, 245, 0), .7); }
.tzrx-pick button:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 1px; }
@keyframes tzrx-pick-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@media (max-width: 360px) { .tzrx-pick button { width: 34px; height: 34px; font-size: 20px; } }

/* who reacted: a small sheet inside the chat */
.tzrx-sheet { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: flex-end; font-family: var(--tzx-font); }
.tzrx-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); animation: tzrx-fade .18s ease both; }
.tzrx-box { position: relative; max-height: 72%; overflow-y: auto; padding: 8px 14px calc(12px + env(safe-area-inset-bottom, 0px)); border: 1px solid var(--tzx-line); border-bottom: 0; border-radius: 20px 20px 0 0; background: #0c0d11; box-shadow: 0 -18px 40px rgba(0, 0, 0, .45); animation: tzrx-up .24s cubic-bezier(.2, .8, .2, 1) both; }
.tzrx-box::before { content: ''; display: block; width: 36px; height: 4px; margin: 0 auto 10px; border-radius: 84px; background: rgba(255, 255, 255, .16); }
.tzrx-h { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.tzrx-h b { font: 800 15px var(--tzx-font); letter-spacing: -.01em; color: var(--tzx-ink); }
.tzrx-h span { flex: 1; min-width: 0; font: 500 12.5px var(--tzx-font); color: var(--tzx-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-spacing: 3px; }
.tzrx-x { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .07); color: var(--tzx-ink2); font: 600 13px var(--tzx-font); cursor: pointer; }
.tzrx-box ul { list-style: none; margin: 0; padding: 0; }
.tzrx-box li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 4px; border-top: 1px solid var(--tzx-line); cursor: pointer; border-radius: 0; -webkit-tap-highlight-color: transparent; }
.tzrx-box li:first-child { border-top: 0; }
.tzrx-box li:hover { background: rgba(255, 255, 255, .03); }
.tzrx-box li:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: -2px; border-radius: 10px; }
.tzrx-f { flex: none; display: flex; align-items: center; }
.tzrx-n { flex: 1; min-width: 0; font: 600 14.5px var(--tzx-font); color: var(--tzx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzrx-e { flex: none; font-size: 21px; line-height: 1; }
.tzrx-undo { display: block; width: 100%; min-height: 40px; margin-top: 8px; border: 1px solid var(--tzx-line); border-radius: 12px; background: none; color: var(--tzx-ink2); font: 600 14px var(--tzx-font); cursor: pointer; }
.tzrx-undo:hover { background: rgba(255, 255, 255, .04); color: var(--tzx-ink); }
@keyframes tzrx-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes tzrx-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── New messages while you read further up ─────────────────────────────── */
.tzim-jump { position: absolute; z-index: 20; left: 50%; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px 0 10px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 84px; background: rgba(32, 33, 38, .94); color: var(--tzx-ink); font: 600 13px var(--tzx-font); white-space: nowrap; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform: translateX(-50%); animation: tzim-jump-in .22s cubic-bezier(.2, .9, .3, 1.2) both; }
.tzim-jump[hidden] { display: none !important; }
.tzim-jump svg { width: 15px; height: 15px; fill: none; stroke: var(--tzx-acc); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tzim-jump:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 2px; }
@keyframes tzim-jump-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translateX(-50%); } }

/* ── Rich cards in a bubble: a shared trade, a gift ──────────────────────── */
html.tz-app #tradzy-chat-panel .tzm-bub.is-card { max-width: 100%; }
.tzim-tc { width: 264px; max-width: 100%; overflow: hidden; border: 1px solid var(--tzx-line); border-radius: 18px; background: #1c1d22; color: var(--tzx-ink); font-family: var(--tzx-font); text-align: left; }
html.tz-app #tradzy-chat-panel .chat-tradecard.tzim-tc { margin: 0 !important; padding: 0 !important; font-size: inherit !important; }
.tzim-tc-top { display: flex; align-items: center; gap: 8px; padding: 11px 12px 7px; }
.tzim-tc-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(var(--acc-rgb, 184, 245, 0), .14); color: var(--tzx-acc); }
.tzim-tc-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tzim-tc.is-loss .tzim-tc-ic { background: rgba(255, 111, 94, .14); color: #ff6f5e; }
.tzim-tc-top b { min-width: 0; font: 800 15.5px var(--tzx-font); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzim-tc-top small { flex: none; font: 600 12px var(--tzx-font); color: var(--tzx-ink3); }
.tzim-tc-top em { flex: none; margin-left: auto; padding: 3px 9px; border-radius: 84px; background: rgba(255, 255, 255, .07); color: var(--tzx-ink2); font: 700 12px var(--tzx-font); font-style: normal; }
.tzim-tc.is-win .tzim-tc-top em { background: rgba(var(--acc-rgb, 184, 245, 0), .16); color: var(--tzx-acc); }
.tzim-tc.is-loss .tzim-tc-top em { background: rgba(255, 111, 94, .15); color: #ff6f5e; }
.tzim-tc.is-be .tzim-tc-top em { background: rgba(255, 180, 74, .15); color: #ffb44a; }
.tzim-tc-row { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 12px 11px 50px; font: 600 13px var(--tzx-font); color: var(--tzx-ink2); font-variant-numeric: tabular-nums; }
.tzim-tc-row b { font-weight: 800; }
.tzim-tc .is-up { color: var(--tzx-acc); }
.tzim-tc .is-down { color: #ff6f5e; }
.tzim-tc .is-mid { color: #ffb44a; }
.tzim-tc-foot { padding: 7px 12px 8px; border-top: 1px solid var(--tzx-line); background: rgba(255, 255, 255, .025); font: 500 11.5px var(--tzx-font); color: var(--tzx-ink3); }


/* ── The input bar: a pill field with a round send button inside it ─────── */
html.tz-app #tradzy-chat-panel .chat-input-row { position: relative !important; align-items: center; }
html.tz-app #tradzy-chat-panel .chat-input { height: 38px !important; min-height: 38px !important; padding: 0 46px 0 15px !important; font: 400 15px var(--tzx-font) !important; background: rgba(255, 255, 255, .045) !important; caret-color: var(--tzx-acc); }
html.tz-app #tradzy-chat-panel .chat-input::placeholder { color: var(--tzx-ink3); opacity: 1; }
html.tz-app #tradzy-chat-panel .chat-input:disabled { opacity: .7; }
html.tz-app #tradzy-chat-panel .chat-send-btn { position: absolute !important; top: 50%; right: 14px; width: 30px !important; min-width: 30px !important; height: 30px !important; min-height: 30px !important; margin-top: calc(-15px - env(safe-area-inset-bottom, 0px) / 2); display: grid !important; place-items: center; cursor: pointer; }
html.tz-app #tradzy-chat-panel .chat-send-btn::after { content: '' !important; display: block; width: 16px; height: 16px; background: currentColor; line-height: 0 !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V5M5.5 11.5 12 5l6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V5M5.5 11.5 12 5l6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat; }
html.tz-app #tradzy-chat-panel .chat-send-btn:disabled { cursor: default; }
html.tz-app #tradzy-chat-panel .chat-send-btn:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 2px; }
/* iOS zooms into a field under 16 px */
@media (hover: none) and (pointer: coarse) { html.tz-app #tradzy-chat-panel .chat-input { font-size: 16px !important; } }
/* the cooldown: a thin accent line over the field */
html.tz-app #tradzy-chat-panel .chat-cooldown-bar { height: 2px !important; background: transparent !important; }
html.tz-app #tradzy-chat-panel .chat-cooldown-fill { background: var(--tzx-acc) !important; opacity: .7; }

/* ── The gate bar: who can post here, and the way in ─────────────────────── */
html.tz-app #tradzy-chat-panel #chat-gate-bar { margin: 8px 10px 10px !important; padding: 11px 14px !important; border: 1px solid rgba(var(--acc-rgb, 184, 245, 0), .22) !important; border-radius: 14px !important; background: rgba(var(--acc-rgb, 184, 245, 0), .06) !important; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.tz-app #tradzy-chat-panel #chat-gate-bar-text { font: 600 13.5px/1.35 var(--tzx-font) !important; color: var(--tzx-ink) !important; }
html.tz-app #tradzy-chat-panel #chat-gate-bar-cta { margin-top: 3px !important; font: 700 13px var(--tzx-font) !important; color: var(--tzx-acc) !important; text-decoration: none !important; }
html.tz-app #tradzy-chat-panel #chat-gate-bar:not(.is-age) #chat-gate-bar-cta::after { content: ' ›'; }
html.tz-app #tradzy-chat-panel #chat-gate-bar.is-age { border-color: var(--tzx-line) !important; background: var(--tzx-card) !important; cursor: default; }
html.tz-app #tradzy-chat-panel #chat-gate-bar.is-age #chat-gate-bar-cta { font-weight: 500 !important; color: var(--tzx-ink3) !important; }
html.tz-app #tradzy-chat-panel #chat-gate-bar:focus-visible { outline: 2px solid var(--tzx-acc); outline-offset: 2px; }

/* ── A note the team pins above the feed ─────────────────────────────────── */
.tzc-pin { flex: none; display: flex; align-items: flex-start; gap: 9px; margin: 8px 10px 0; padding: 9px 12px; border: 1px solid var(--tzx-line); border-radius: 14px; background: var(--tzx-card); font: 400 13px/1.4 var(--tzx-font); color: var(--tzx-ink2); }
.tzc-pin[hidden] { display: none !important; }
.tzc-pin svg { flex: none; width: 15px; height: 15px; margin-top: 2px; fill: none; stroke: var(--tzx-acc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tzc-pin span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tzc-pin b { display: block; margin-bottom: 1px; font: 700 12px var(--tzx-font); color: var(--tzx-acc); }
.tzc-pin a { flex: none; align-self: center; padding: 5px 10px; border-radius: 84px; background: rgba(255, 255, 255, .06); color: var(--tzx-ink); font: 700 12.5px var(--tzx-font); text-decoration: none; }

/* ── The team's popup and the update bar ─────────────────────────────────── */
.tzc-adm { position: fixed; inset: 0; z-index: 15000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--tzx-font); }
.tzc-adm-box { width: 100%; max-width: 380px; padding: 22px 20px 12px; border: 1px solid var(--tzx-line); border-radius: 22px; background: #0c0d11; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); animation: tzc-adm-in .24s cubic-bezier(.2, .9, .3, 1.1) both; }
.tzc-adm-box h2 { margin: 0 0 8px; font: 800 18px/1.25 var(--tzx-font); letter-spacing: -.01em; color: var(--tzx-ink); }
.tzc-adm-box p { margin: 0 0 16px; font: 400 14.5px/1.5 var(--tzx-font); color: var(--tzx-ink2); white-space: pre-line; overflow-wrap: anywhere; }
.tzc-adm-go { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-bottom: 4px; border-radius: 13px; background: var(--tzx-acc); color: #050505; font: 700 15px var(--tzx-font); text-decoration: none; }
.tzc-adm-no { width: 100%; min-height: 42px; border: 0; background: none; color: var(--tzx-ink3); font: 600 14.5px var(--tzx-font); cursor: pointer; }
.tzc-adm-no:hover { color: var(--tzx-ink2); }
@keyframes tzc-adm-in { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: none; } }
.tzc-upd { position: fixed; top: 0; left: 0; right: 0; z-index: 20000; padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px; background: #ff453a; color: #fff; font: 600 13px/1.35 var(--tzx-font); text-align: center; }

/* polish.css gives every button 40 px on touch screens; these have their own size */
html.tz-app .tzrx, html.tz-app .tzim-rxbtn, html.tz-app .tzrx-x { min-height: 0 !important; }
html.tz-app .tzim-jump { min-height: 34px !important; }
html.tz-app .tzrx-pick button { min-height: 0 !important; }

/* ── Motion: subtle, and none when asked ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .tzrx.is-pop, .tzrx-pick, .tzrx-box, .tzrx-scrim, .tzim-jump, .tzc-adm-box { animation: none !important; }
  .tzrx-pick button, .tzim-rxbtn { transition: none !important; }
  html.tz-app #tradzy-chat-panel .chat-msg.tzrx-sel .tzm-bub { filter: none; }
}

/* ═══ legacy ═══ */
/* ── Older screens in the current look ──
   Some markup from before the redesign (index.html blocks, screens JS builds at
   runtime) still names the old fonts and wide-spaced capitals inline. shell.css
   already maps the old font variables to the app font; these rules catch the
   rest wherever it appears, so every screen reads as one app. */
html.tz-app [style*="Space Mono"], html.tz-app [style*="JetBrains Mono"], html.tz-app [style*="Barlow"], html.tz-app [style*="Share Tech"] { font-family: var(--tzx-font) !important; letter-spacing: 0 !important; }
html.tz-app [style*="var(--font-mono)"], html.tz-app [style*="var(--font-big)"] { letter-spacing: 0 !important; }
html.tz-app #tradzy-auth-overlay { font-family: var(--tzx-font) !important; letter-spacing: 0 !important; }
html.tz-app [data-vis-group].card-suggested::after { content: 'Suggested by TradingView · tap to confirm'; font-family: var(--tzx-font) !important; letter-spacing: 0 !important; }

/* ═══ feel ═══
   Owner: "the whole app should react like Photoshop on the web, Canva or an
   exchange". Taps answer at once and don't flash grey, controls never get
   text-selected by a tap or a drag (messages, notes and numbers still can),
   and a sheet's own scroll never drags the page behind it. */
html.tz-app { -webkit-tap-highlight-color: transparent; }
html.tz-app button, html.tz-app [role="button"], html.tz-app [role="tab"], html.tz-app a, html.tz-app label, html.tz-app summary, html.tz-app [data-profile] { touch-action: manipulation; }
html.tz-app button, html.tz-app [role="button"], html.tz-app [role="tab"], html.tz-app .tzx-nav-btn, html.tz-app .tzc-chips, html.tz-app .tzw { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.tz-app img { -webkit-user-drag: none; }
html.tz-app .tzrep, html.tz-app .tzrep-box, html.tz-app #tradzy-chat-panel .chat-messages, html.tz-app #tzx-more, html.tz-app #tzn-panel, html.tz-app #app-shell > .right-col { overscroll-behavior: contain; }
/* no visible scrollbars anywhere on Tradzy (owner, 2026-10-10): wheel, touch, keys and trackpad still scroll */
html,body,*{scrollbar-width:none!important;-ms-overflow-style:none!important}*::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
