/* ============================================================================
   FUNDED BEAST — TRADER TERMINAL
   The client's reference comp, matched 1:1 in the Night Hunt palette: mint
   becomes lilac (same job: the one bright hue that carries data on near-black),
   amber stays amber (the second state: still proving it).

   House rules honoured here:
   · Lightning CSS: always blur(0px), never a hand-written -webkit-backdrop-filter.
   · Everything is scoped under .tdb / t- because globals.css already owns
     .card .cards .stat .dash .dash-panel .dm .toggle .btn .wrap .block .reveal.
   · Enter = strong ease-out; state change = transition, so it can be retargeted
     mid-flight; only transform / opacity / clip-path / filter animate.
   ========================================================================== */

.tdb {
  --t-accent: #C6FF3D;
  --t-accent-deep: #8FDC12;
  --t-violet: #1E9E63;
  --t-warn: #ffb020;
  --t-pos: #C6FF3D;
  --t-neg: #ff6b8a;
  --t-on-accent: #05130a;

  --t-bg: #050c08;
  --t-card: rgba(242, 251, 246, 0.045);
  --t-card-hi: rgba(242, 251, 246, 0.07);
  --t-line: rgba(242, 251, 246, 0.085);
  --t-line-soft: rgba(242, 251, 246, 0.05);

  --t-text: #F2FBF6;
  --t-dim: rgba(242, 251, 246, 0.62);
  --t-faint: rgba(242, 251, 246, 0.56);

  --t-side: 268px;
  --t-top: 94px;
  --t-r: 22px;
  --t-r-in: 18px;
  --t-gap: 22px;

  /* stronger than the CSS built-ins — the built-ins have no punch */
  --t-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-io: cubic-bezier(0.77, 0, 0.175, 1);

  /* one family across the terminal (Operate surfaces do not need a
     display/body pairing); Geist stands in for the comp's Aeonik */
  --t-font: 'Geist','Sora',sans-serif;

  font-family: var(--t-font);
  color: var(--t-text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* the marketing aurora and film grain are tuned for a scrolling landing page;
   dial both back so dense figures stay crisp. (Both halves of this selector
   must target ::before on the SAME element — `html:has(x) html::before` can
   never match, since no <html> is a descendant of an <html>.) */
/* Held right down: the glass averages whatever is behind it, and the landing
   page's full-strength aurora lifts every tile to mid-grey. */
html:has(.tdb) { background: #050c08; }
html:has(.tdb)::before { opacity: 0.13; }
html:has(.tdb) body::before { opacity: 0.15; }
html:has(.tdb) body::after { opacity: 0.012; }
html:has(.tdb) body { overflow-x: hidden; }

.tdb h1,
.tdb h2,
.tdb h3 {
  /* one family across the terminal: globals.css puts Clash on every heading */
  font-family: var(--t-font);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.tdb ::selection { background: color-mix(in oklab, var(--t-accent) 60%, transparent); color: #fff; }
.tdb :focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; }
.tdb button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* silk: something for the glass to actually refract. One layer, page-wide,
   behind every card — restrained, because this surface is read, not admired. */
/* Deliberately faint: this is a surface you read numbers off. Enough light for
   the lens to have something to bend, not enough to lift the cards off black. */
.tdb::before {
  content: ""; position: fixed; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(32% 26% at 78% 12%, rgba(30, 158, 99, 0.12), transparent 68%),
    radial-gradient(28% 24% at 16% 78%, rgba(61, 220, 151, 0.085), transparent 66%),
    radial-gradient(22% 18% at 60% 96%, rgba(198, 255, 61, 0.07), transparent 64%);
  filter: blur(56px) saturate(1.15);
}
@media (prefers-reduced-motion: no-preference) {
  .tdb::before { animation: tSilk 34s ease-in-out infinite alternate; }
  @keyframes tSilk {
    from { transform: translate(-2%, -1.4%) scale(1); filter: blur(52px) saturate(1.2) hue-rotate(-10deg); }
    to { transform: translate(2.4%, 1.8%) scale(1.1); filter: blur(58px) saturate(1.3) hue-rotate(16deg); }
  }
}

/* ================================ rail =================================== */
.t-side {
  position: fixed; inset: 0 auto 0 0; width: var(--t-side); z-index: 40;
  display: flex; flex-direction: column; padding: 0 16px 18px;
  background: linear-gradient(180deg, rgba(9, 18, 12, 0.72), rgba(5, 12, 8, 0.86));
  backdrop-filter: blur(20px) saturate(140%);
  border-right: 1px solid var(--t-line);
  /* A rail collapse genuinely changes layout, so width/margin is the right
     tool here rather than a transform fake-out: user-initiated, infrequent,
     two elements, and the alternatives (grid-template-columns) relayout too. */
  transition: width 320ms var(--t-io), transform 320ms var(--t-io);
}
.t-brand {
  height: var(--t-top); flex: 0 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
}
.t-brand-link { display: flex; align-items: center; gap: 11px; min-width: 0; }
.t-brand-link img { flex: 0 0 auto; filter: drop-shadow(0 4px 14px rgba(30, 158, 99, 0.5)); }
.t-brand-name {
  display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap;
  font-size: 16px; font-weight: 500; letter-spacing: -0.015em;
}
.t-brand-name > span {
  font-style: normal; font-size: 9px; letter-spacing: 0.22em;
  color: var(--t-faint); margin-top: 3px;
}

.t-ghost-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 10px; color: var(--t-faint);
  transition: background 180ms ease, color 180ms ease, transform 160ms var(--t-out);
}
.t-ghost-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .t-ghost-btn:hover { background: var(--t-card-hi); color: var(--t-text); }
}

.t-nav { position: relative; display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
/* one pill, moved with translateY off a fixed 52px pitch (44 row + 8 gap) */
.t-nav-pill {
  position: absolute; left: 0; right: 0; top: 6px; height: 44px; border-radius: 14px;
  background: linear-gradient(140deg, rgba(242, 251, 246, 0.1), rgba(242, 251, 246, 0.04));
  border: 1px solid var(--t-line);
  box-shadow: 0 6px 20px rgba(1, 4, 2, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(calc(var(--t-nav-i, 0) * 52px));
  transition: transform 340ms var(--t-io);
}
.t-nav-item {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 13px;
  height: 44px; padding: 0 14px; border-radius: 14px; text-align: left;
  font-size: 14.5px; color: var(--t-dim);
  transition: color 200ms ease;
}
.t-nav-item svg { flex: 0 0 auto; opacity: 0.7; transition: opacity 200ms ease, color 200ms ease; }
.t-nav-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-nav-item[data-on] { color: #fff; }
.t-nav-item[data-on] svg { opacity: 1; color: var(--t-accent); }
@media (hover: hover) and (pointer: fine) {
  .t-nav-item:not([data-on]):hover { color: var(--t-text); }
  .t-nav-item:not([data-on]):hover svg { opacity: 1; }
}

.t-side-rule { height: 1px; background: var(--t-line); margin: 20px 2px; flex: 0 0 auto; }
.t-refer { color: var(--t-dim); }
.t-side-foot { margin-top: auto; padding-top: 18px; }
.t-lang {
  display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px;
  border-radius: 999px; width: 100%;
  background: var(--t-card); border: 1px solid var(--t-line);
  font-size: 14px; color: var(--t-text);
  transition: background 180ms ease, transform 160ms var(--t-out);
}
.t-lang:active { transform: scale(0.98); }
.t-lang svg { margin-left: auto; color: var(--t-faint); }
.t-lang-flag { display: grid; place-items: center; width: 20px; height: 15px; flex: 0 0 auto; }
.t-lang-flag img { width: 20px; height: 15px; border-radius: 3px; }

/* rail collapsed */
.tdb[data-rail] { --t-side: 84px; }
/* visually hidden, NOT display:none — the rail must keep its accessible names */
.tdb[data-rail] .t-brand-name,
.tdb[data-rail] .t-nav-item span,
.tdb[data-rail] .t-lang span {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.tdb[data-rail] .t-brand { justify-content: center; }
.tdb[data-rail] .t-rail-toggle { position: absolute; top: 54px; right: 14px; }
.tdb[data-rail] .t-nav-item { justify-content: center; padding: 0; }
.tdb[data-rail] .t-lang { justify-content: center; padding: 0; }
.tdb[data-rail] .t-lang svg { display: none; }

/* ============================== top bar ================================== */
.t-top {
  position: fixed; top: 0; left: var(--t-side); right: 0; height: var(--t-top); z-index: 35;
  display: flex; align-items: center; gap: 20px; padding: 0 30px;
  background: linear-gradient(180deg, rgba(5, 12, 8, 0.86), rgba(5, 12, 8, 0.62));
  backdrop-filter: blur(18px) saturate(130%);
  border-bottom: 1px solid var(--t-line);
  transition: left 320ms var(--t-io);
}
.t-burger { display: none; }
.t-top-title h1 { font-size: 22px; line-height: 1.2; }
.t-crumb {
  display: flex; align-items: center; gap: 7px; margin: 5px 0 0;
  font-size: 13px; color: var(--t-faint);
}
.t-crumb b { font-weight: 400; color: var(--t-dim); }
.t-crumb svg { opacity: 0.55; }

.t-top-actions { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.t-cta {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px 0 8px;
  border-radius: 999px; white-space: nowrap;
  background: var(--t-accent); color: var(--t-on-accent);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  box-shadow: 0 8px 26px rgba(198, 255, 61, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 160ms var(--t-out), box-shadow 200ms ease, filter 200ms ease;
}
.t-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .t-cta:hover { filter: brightness(1.05); box-shadow: 0 10px 32px rgba(198, 255, 61, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
}
.t-cta-plus {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--t-on-accent); color: var(--t-accent);
}

.t-user { display: flex; align-items: center; gap: 13px; padding-left: 22px; border-left: 1px solid var(--t-line); }
.t-user-text { text-align: right; line-height: 1.25; }
.t-user-text b { display: block; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.t-user-text > span { display: block; font-size: 10.5px; letter-spacing: 0.16em; color: var(--t-faint); }
.t-avatar {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--t-accent-deep), var(--t-violet));
  color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 18px rgba(1, 4, 2, 0.5);
}
.t-avatar-lg { width: 50px; height: 50px; }

/* =============================== canvas ================================== */
.t-main {
  position: relative; z-index: 1;
  margin-left: var(--t-side); padding: calc(var(--t-top) + 26px) 30px 40px;
  transition: margin-left 320ms var(--t-io);
}

.t-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--t-gap); }
.t-mid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--t-gap); margin-top: var(--t-gap); }
.t-panel { margin-top: var(--t-gap); }

/* ================================ glass ================================== */
/* Base recipe stands alone (Safari / Firefox ignore SVG filters in
   backdrop-filter); .lg-on then swaps in the real refracting lens. */
/* A real 1px border, not the padding-box/border-box "gradient border" trick the
   marketing sheet uses: that trick only works when the padding-box layer is
   opaque enough to mask it. At the near-transparent alphas a data surface wants,
   the border gradient paints straight across the tile and lifts it to mid-grey.
   The bright top hairline comes from the inset box-shadow instead.
   No noise layer either — fractal noise is a flat +18/255 on every tile. */
.t-card {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid rgba(242, 251, 246, 0.09);
  border-radius: var(--t-r); padding: 24px;
  background: linear-gradient(160deg, rgba(242, 251, 246, 0.085), rgba(242, 251, 246, 0.03));
  backdrop-filter: blur(30px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 16px 44px rgba(1, 4, 2, 0.55);
  transition: transform 240ms var(--t-out), box-shadow 240ms ease, border-color 240ms ease;
}
.lg-on .t-card { backdrop-filter: none; }
/* the displacement map is stretched to the element, so the variant has to match
   the tile's aspect ratio or the lens smears and blobs at the corners:
   #lg-panel is 220x110 (wide), #lg-card is 150x150 (square). */
.lg-on .t-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  backdrop-filter: url(#lg-panel) blur(7px) saturate(115%) brightness(0.75);
}
.lg-on .t-profile::before {
  backdrop-filter: url(#lg-card) blur(7px) saturate(115%) brightness(0.75);
}
/* specular rim — reads as the edge of a real slab */
.lg-on .t-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008) 34%, transparent 58%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    inset 2px 0 0 rgba(255, 255, 255, 0.03),
    inset -2px 0 0 rgba(255, 255, 255, 0.03);
}
/* No hover lift on the cards: nothing inside them is focusable or clickable,
   and an affordance with nothing behind it is worse than none. */

/* ================================ type =================================== */
.t-label { margin: 0; font-size: 14px; color: var(--t-dim); letter-spacing: -0.005em; }
.t-sub { margin: 0; font-size: 13px; color: var(--t-faint); }
.t-figure {
  display: block; font-size: 33px; font-weight: 500; letter-spacing: -0.035em;
  line-height: 1.05; font-variant-numeric: tabular-nums;
}
.t-figure-sm { font-size: 26px; letter-spacing: -0.03em; }
.t-figure-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.t-goal { margin-left: auto; font-size: 14px; color: var(--t-faint); font-variant-numeric: tabular-nums; }

.t-chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  background: color-mix(in oklab, var(--t-accent) 20%, transparent);
  border: 1px solid color-mix(in oklab, var(--t-accent) 34%, transparent);
  color: var(--t-accent); font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.t-chip-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; flex: 0 0 auto;
  background: color-mix(in oklab, var(--t-accent) 16%, transparent);
  border: 1px solid color-mix(in oklab, var(--t-accent) 24%, transparent);
  color: var(--t-accent);
}

/* target bar */
.t-bar { height: 5px; border-radius: 5px; margin-top: 18px; background: rgba(242, 251, 246, 0.09); overflow: hidden; }
.t-bar i {
  display: block; height: 100%; border-radius: 5px; width: var(--t-p);
  background: linear-gradient(90deg, var(--t-accent-deep), var(--t-accent));
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .t-bar i { animation: tGrow 780ms var(--t-out) 200ms both; }
  @keyframes tGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

.t-payout { display: flex; align-items: center; gap: 15px; margin-top: 14px; }
.t-payout .t-figure-sm { margin-bottom: 3px; }

/* =============================== equity ================================== */
.t-eq-card { padding: 24px 24px 18px; }
.t-eq-head { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.t-eq-title { min-width: 0; }
.t-eq-title .t-label { font-size: 13.5px; margin-bottom: 5px; }
.t-eq-head .t-seg { margin-left: auto; }

.t-seg {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 4px; border-radius: 999px; flex: 0 0 auto;
  background: rgba(242, 251, 246, 0.05); border: 1px solid var(--t-line-soft);
}
.t-seg-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / var(--t-seg-n, 3)); border-radius: 999px;
  background: var(--t-accent);
  box-shadow: 0 3px 12px rgba(198, 255, 61, 0.28);
  transform: translateX(calc(var(--t-seg-i, 0) * 100%));
  transition: transform 300ms var(--t-io);
}
.t-seg-btn {
  position: relative; z-index: 1; height: 30px; padding: 0 16px; border-radius: 999px;
  font-size: 13px; color: var(--t-dim); transition: color 220ms ease;
}
.t-seg-btn[aria-pressed="true"] { color: var(--t-on-accent); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .t-seg-btn:not([aria-pressed="true"]):hover { color: var(--t-text); }
}

.t-eq { --t-eq-h: 286px; }
.t-eq-body { display: flex; gap: 14px; align-items: flex-start; }
.t-eq-yaxis {
  display: flex; flex-direction: column; justify-content: space-between; flex: 0 0 auto;
  height: var(--t-eq-h); padding: 2px 0;
  font-size: 11.5px; color: var(--t-faint); font-variant-numeric: tabular-nums; text-align: right;
}
.t-eq-canvas {
  position: relative; flex: 1 1 auto; min-width: 0; height: var(--t-eq-h);
  transition: opacity 220ms ease, filter 220ms ease;
}
/* blur-swap: snap in (0ms), settle out (220ms) — the eye reads one morph */
.t-eq-canvas[data-swapping] { opacity: 0.45; filter: blur(3px); transition-duration: 0ms; }
.t-eq-svg { display: block; width: 100%; height: 100%; overflow: visible; touch-action: pan-y; }
.t-eq-grid { stroke: rgba(242, 251, 246, 0.055); stroke-width: 1; }
.t-eq-line {
  fill: none; stroke: var(--t-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(198, 255, 61, 0.34));
}
.t-eq-area { opacity: 1; }
.t-eq-cross {
  stroke: rgba(242, 251, 246, 0.3); stroke-width: 1; stroke-dasharray: 3 4; opacity: 1;
}
.t-eq-dot {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--t-accent);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--t-accent) 18%, transparent), 0 0 16px rgba(198, 255, 61, 0.6);
}
.t-eq-tip {
  position: absolute; transform: translate(-50%, calc(-100% - 16px)); white-space: nowrap;
  padding: 7px 12px; border-radius: 10px;
  background: rgba(18, 14, 30, 0.94); border: 1px solid var(--t-line);
  backdrop-filter: blur(10px);
  font-size: 13px; font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 26px rgba(1, 4, 2, 0.6);
}
.t-eq-plot { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.t-eq-xaxis {
  position: relative; height: 16px; margin-top: 14px;
  font-size: 11.5px; color: var(--t-faint); font-variant-numeric: tabular-nums;
}
.t-eq-xaxis span { position: absolute; top: 0; white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  /* draw the line on, then let the furniture arrive */
  .t-eq-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--t-out); }
  .t-eq-line[data-drawn] { stroke-dashoffset: 0; }
  .t-eq-area { opacity: 0; transition: opacity 700ms ease 260ms; }
  .t-eq-area[data-drawn] { opacity: 1; }
  .t-eq-cross { opacity: 0; transition: opacity 400ms ease 700ms; }
  .t-eq-cross[data-drawn] { opacity: 1; }
  .t-eq-dot, .t-eq-tip { opacity: 0; transition: opacity 320ms ease 800ms, transform 320ms var(--t-out) 800ms; }
  .t-eq-dot { transform: scale(0.6); }
  .t-eq-dot[data-drawn] { opacity: 1; transform: scale(1); }
  .t-eq-tip { transform: translate(-50%, calc(-100% - 8px)); }
  .t-eq-tip[data-drawn] { opacity: 1; transform: translate(-50%, calc(-100% - 16px)); }
  /* the crosshair follows the pointer, so it must not lag behind it */
  .t-eq-canvas:hover .t-eq-cross,
  .t-eq-canvas:hover .t-eq-dot,
  .t-eq-canvas:hover .t-eq-tip { transition-delay: 0ms; transition-duration: 90ms; }
}

/* =============================== profile ================================= */
.t-profile { padding: 0; overflow: hidden; }
.t-profile-glow {
  position: absolute; inset: -30% -20% 40% -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(52% 60% at 78% 6%, color-mix(in oklab, var(--t-accent) 52%, transparent), transparent 68%),
    radial-gradient(46% 54% at 30% 0%, color-mix(in oklab, var(--t-violet) 46%, transparent), transparent 70%);
  filter: blur(26px);
}
@media (prefers-reduced-motion: no-preference) {
  .t-profile-glow { animation: tGlow 18s ease-in-out infinite alternate; }
  @keyframes tGlow {
    from { transform: translate(-3%, -2%) scale(1); }
    to { transform: translate(4%, 3%) scale(1.14); }
  }
}
.t-profile-body { position: relative; z-index: 1; padding: 24px; }
.t-profile-id { display: flex; align-items: center; gap: 14px; }
.t-profile-name {
  display: flex; align-items: center; gap: 9px; margin: 0 0 3px;
  font-size: 18px; font-weight: 500; letter-spacing: -0.02em;
}
.t-flag { border-radius: 3px; }
.t-profile-label { margin-top: 26px; }
.t-profile .t-figure { margin-top: 6px; }

/* month bars */
.t-mbars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 38px; }
.t-mbar-col { display: flex; flex-direction: column; align-items: center; gap: 11px; }
.t-mbar-slot { position: relative; width: 100%; height: 122px; display: flex; align-items: flex-end; }
/* wrapper holds the final height and clips; the fill translates up inside it */
.t-mbar {
  position: relative; display: block; width: 100%; height: var(--t-h);
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--t-line);
}
.t-mbar-fill {
  position: absolute; inset: 0; display: block;
  background: linear-gradient(180deg, rgba(242, 251, 246, 0.22), rgba(242, 251, 246, 0.1));
  transform: translateY(100%);
  transition: transform 700ms var(--t-out);
}
.t-mbars[data-armed] .t-mbar-fill { transform: none; transition-delay: calc(var(--t-i, 0) * 70ms); }
.t-mbar[data-hatched] { border-color: color-mix(in oklab, var(--t-accent) 30%, transparent); }
.t-mbar[data-hatched] .t-mbar-fill {
  background-color: color-mix(in oklab, var(--t-accent) 12%, transparent);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(242, 251, 246, 0.42) 0 2px,
    transparent 2px 7px
  );
}
.t-mbar-pill {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px;
  background: rgba(18, 14, 30, 0.92); border: 1px solid var(--t-line);
  color: var(--t-accent); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(1, 4, 2, 0.5);
}
.t-mbar-lab { font-size: 12px; color: var(--t-faint); }

/* ============================= challenges ================================ */
.t-panel { padding: 24px; }
.t-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.t-panel-head h2 { font-size: 18px; }
.t-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--t-dim);
  transition: color 180ms ease;
}
.t-link svg { transition: transform 180ms var(--t-out); }
@media (hover: hover) and (pointer: fine) {
  .t-link:hover { color: var(--t-text); }
  .t-link:hover svg { transform: translateX(3px); }
}

.t-challenges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.t-ch {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--t-r-in); border: 1px solid var(--t-line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  transition: transform 240ms var(--t-out), border-color 240ms ease;
}
.t-ch-glow {
  position: absolute; inset: 30% -14% -46% -14%; z-index: 0; pointer-events: none;
  background: radial-gradient(58% 70% at 50% 100%, var(--t-ch-hue), transparent 70%);
  filter: blur(22px);
}
.t-ch[data-tone="accent"] { --t-ch-hue: color-mix(in oklab, var(--t-accent) 34%, transparent); }
.t-ch[data-tone="warn"] { --t-ch-hue: color-mix(in oklab, var(--t-warn) 26%, transparent); }
.t-ch-body { position: relative; z-index: 1; padding: 22px; }
.t-ch-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.t-ch-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.t-id { font-size: 12px; color: var(--t-faint); font-variant-numeric: tabular-nums; }
.t-status {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; white-space: nowrap;
}
.t-ch[data-tone="accent"] .t-status {
  background: color-mix(in oklab, var(--t-accent) 20%, transparent);
  border: 1px solid color-mix(in oklab, var(--t-accent) 34%, transparent);
  color: var(--t-accent);
}
.t-ch[data-tone="warn"] .t-status {
  background: color-mix(in oklab, var(--t-warn) 18%, transparent);
  border: 1px solid color-mix(in oklab, var(--t-warn) 32%, transparent);
  color: var(--t-warn);
}
.t-ch-dates { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.t-ch-dates svg { opacity: 0.65; flex: 0 0 auto; }

.t-ch-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 22px; }
.t-ch-metrics dt { font-size: 13px; color: var(--t-dim); margin-bottom: 7px; }
.t-ch-metrics dd {
  margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.t-pos { color: var(--t-pos); }
.t-neg { color: var(--t-neg); }

.t-ch-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.t-ch-foot .t-label { font-size: 13px; }
.t-ch-pct { font-size: 13.5px; font-variant-numeric: tabular-nums; }

/* ticked meter: two identical tick fields, the top one revealed with clip-path */
.t-tick { position: relative; height: 30px; }
.t-tick-track,
.t-tick-fill {
  position: absolute; inset: 0; border-radius: 3px;
  background-image: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 6px);
}
.t-tick-track { color: rgba(242, 251, 246, 0.13); }
.t-tick-fill { clip-path: inset(0 100% 0 0); transition: clip-path 1000ms var(--t-out); }
.t-tick-fill[data-armed] { clip-path: inset(0 calc(100% - var(--t-p)) 0 0); }
.t-tick[data-tone="accent"] .t-tick-fill { color: var(--t-accent); filter: drop-shadow(0 0 6px rgba(198, 255, 61, 0.5)); }
.t-tick[data-tone="warn"] .t-tick-fill { color: var(--t-warn); filter: drop-shadow(0 0 6px rgba(255, 176, 32, 0.42)); }

/* ============================== entrance ================================= */
/* Default is already visible; motion is added only where it is welcome.
   Total choreography lands inside ~700ms — a terminal loads into a task, so
   this is one short authored moment, not a sequence to sit through. */
.t-rv { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .t-rv {
    /* `backwards`, not `forwards`: fill the FROM state during the delay, then
       hand every property back to the cascade when the run ends. With
       `forwards` the final keyframe (transform: none) outranks :hover for ever. */
    animation: tRise 460ms var(--t-out) backwards;
    animation-delay: calc(var(--t-rv-i, 0) * 45ms);
  }
  @keyframes tRise {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
  }
}
/* Reduced motion means less motion, not none: keep the fade that explains the
   page assembling, drop every position change. */
@media (prefers-reduced-motion: reduce) {
  .t-rv {
    animation: tFade 200ms ease backwards;
    animation-delay: calc(var(--t-rv-i, 0) * 24ms);
  }
  @keyframes tFade { from { opacity: 0; } }
}

.t-scrim {
  position: fixed; inset: 0; z-index: 38; border: 0; cursor: default;
  background: rgba(3, 2, 8, 0.6); backdrop-filter: blur(3px);
}

/* ============================= responsive ================================ */
@media (max-width: 1240px) {
  .t-mid { grid-template-columns: minmax(0, 1fr); }
  .t-eq { --t-eq-h: 260px; }
}
@media (max-width: 1024px) {
  .t-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-kpis > :last-child { grid-column: span 2; }
}
@media (max-width: 900px) {
  .t-side {
    transform: translateX(-100%); z-index: 45; visibility: hidden;
    transition: width 320ms var(--t-io), transform 320ms var(--t-io), visibility 0s 320ms;
  }
  .tdb[data-nav] .t-side { transform: none; visibility: visible; transition-delay: 0s; }
  .t-top { left: 0; padding: 0 18px; gap: 14px; }
  .t-main { margin-left: 0; padding: calc(var(--t-top) + 20px) 18px 34px; }
  .t-burger { display: inline-grid; }
  .t-user-text { display: none; }
  .t-cta { height: 42px; padding: 0 18px 0 7px; font-size: 14px; }
  .t-challenges { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  /* give the title its line back — the plus alone still reads as "add" */
  .t-cta { padding: 0; width: 42px; justify-content: center; }
  .t-cta-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 640px) {
  .tdb { --t-top: 82px; }
  .t-kpis, .t-kpis > :last-child { grid-template-columns: minmax(0, 1fr); grid-column: auto; }
  .t-figure { font-size: 29px; }
  .t-top-title h1 { font-size: 19px; }
  .t-eq { --t-eq-h: 220px; }
  .t-eq-yaxis { font-size: 10.5px; }
  .t-ch-metrics { gap: 8px; }
  .t-ch-metrics dd { font-size: 17px; }
}

/* ==========================================================================
   SECTION VOCABULARY
   One set of primitives every section composes from, so Challenges, Payouts,
   Leaderboard, Rewards and Stats cannot drift into five dialects.
   ========================================================================== */

.t-sec { margin-bottom: 30px; }
.t-sec:last-child { margin-bottom: 0; }
.t-sec-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.t-sec-h h2 { font-size: 24px; letter-spacing: -0.025em; }
.t-sec-h p { margin: 5px 0 0; font-size: 13.5px; color: var(--t-faint); }
.t-sec-h-r { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.t-grid { display: grid; gap: var(--t-gap); grid-template-columns: repeat(var(--c, 2), minmax(0, 1fr)); }
.t-grid.c3 { --c: 3; }
.t-grid.c4 { --c: 4; }
.t-grid > .span2 { grid-column: span 2; }

/* ------------------------------------------------------------- buttons --- */
.t-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 42px; padding: 0 18px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  background: var(--t-card-hi); border: 1px solid var(--t-line); color: var(--t-text);
  transition: transform 160ms var(--t-out), background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}
.t-btn:active:not(:disabled) { transform: scale(0.97); }
.t-btn:disabled { opacity: 0.42; cursor: not-allowed; }
.t-btn.primary {
  background: var(--t-accent); border-color: transparent; color: var(--t-on-accent);
  box-shadow: 0 6px 22px rgba(198, 255, 61, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.t-btn.quiet { background: transparent; border-color: var(--t-line); color: var(--t-dim); }
.t-btn.block { width: 100%; }
.t-btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
@media (hover: hover) and (pointer: fine) {
  .t-btn:hover:not(:disabled) { background: rgba(242, 251, 246, 0.12); }
  .t-btn.primary:hover:not(:disabled) { background: var(--t-accent); filter: brightness(1.06); }
}

/* ------------------------------------------------------------- toolbar --- */
.t-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px; border-bottom: 1px solid var(--t-line-soft); }
.t-toolbar-r { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }
.t-search {
  position: relative; display: flex; align-items: center; gap: 9px; height: 38px;
  padding: 0 13px; border-radius: 999px; flex: 1 1 200px; max-width: 300px;
  background: rgba(242, 251, 246, 0.05); border: 1px solid var(--t-line-soft);
  color: var(--t-faint); transition: border-color 180ms ease;
}
.t-search:focus-within { border-color: color-mix(in oklab, var(--t-accent) 55%, transparent); }
.t-search input {
  flex: 1 1 auto; min-width: 0; background: none; border: 0; outline: none;
  color: var(--t-text); font: inherit; font-size: 13.5px;
}
.t-search input::placeholder { color: var(--t-faint); }
.t-select {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px;
  border-radius: 999px; background: rgba(242, 251, 246, 0.05);
  border: 1px solid var(--t-line-soft); color: var(--t-dim); font-size: 13.5px;
}
.t-select select {
  appearance: none; background: none; border: 0; color: var(--t-text); font: inherit;
  font-size: 13.5px; outline: none; cursor: pointer; padding-right: 2px;
}
.t-select select option { background: #100d1c; }

/* --------------------------------------------------------------- table --- */
.t-table-wrap { overflow-x: auto; }
.t-table { width: 100%; border-collapse: collapse; font-size: 13.8px; }
.t-table thead th {
  position: sticky; top: 0; z-index: 1; text-align: left; white-space: nowrap;
  padding: 13px 18px; background: rgba(10, 8, 18, 0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--t-line); font-size: 12.5px; font-weight: 400; color: var(--t-faint);
}
.t-table tbody td {
  padding: 15px 18px; border-bottom: 1px solid var(--t-line-soft);
  color: var(--t-dim); white-space: nowrap; vertical-align: middle;
}
.t-table tbody tr:last-child td { border-bottom: 0; }
.t-table .num { font-variant-numeric: tabular-nums; color: var(--t-text); }
.t-table .strong { color: var(--t-text); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .t-table tbody tr:hover td { background: rgba(242, 251, 246, 0.03); }
}
.t-cell-acc { display: flex; align-items: center; gap: 11px; }
.t-acc-dot {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--t-accent-deep), var(--t-violet)); color: #fff;
}

/* generic status pill, tone via data-tone */
.t-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px;
  border-radius: 999px; font-size: 12.5px; white-space: nowrap; border: 1px solid transparent;
}
.t-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.t-pill[data-tone="ok"] { background: color-mix(in oklab, var(--t-accent) 18%, transparent); border-color: color-mix(in oklab, var(--t-accent) 32%, transparent); color: var(--t-accent); }
.t-pill[data-tone="warn"] { background: color-mix(in oklab, var(--t-warn) 16%, transparent); border-color: color-mix(in oklab, var(--t-warn) 30%, transparent); color: #ffca62; }
.t-pill[data-tone="bad"] { background: color-mix(in oklab, var(--t-neg) 16%, transparent); border-color: color-mix(in oklab, var(--t-neg) 32%, transparent); color: #ff9db0; }
.t-pill[data-tone="mute"] { background: rgba(242, 251, 246, 0.07); border-color: var(--t-line); color: var(--t-faint); }

/* -------------------------------------------------------------- pager --- */
.t-pager {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 16px; border-top: 1px solid var(--t-line-soft); flex-wrap: wrap;
}
.t-pager button {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px;
  color: var(--t-dim); font-size: 13.5px; font-variant-numeric: tabular-nums;
  transition: background 160ms ease, color 160ms ease;
}
.t-pager button[data-on] { background: var(--t-card-hi); color: var(--t-text); border: 1px solid var(--t-line); }
.t-pager button:disabled { opacity: 0.3; cursor: not-allowed; }
.t-pager span { color: var(--t-faint); padding: 0 2px; }
@media (hover: hover) and (pointer: fine) { .t-pager button:hover:not(:disabled):not([data-on]) { background: rgba(242, 251, 246, 0.06); color: var(--t-text); } }

/* --------------------------------------------------------- small stats --- */
.t-stat { padding: 18px; border-radius: var(--t-r-in); border: 1px solid var(--t-line); background: linear-gradient(160deg, rgba(242, 251, 246, 0.05), rgba(242, 251, 246, 0.012)); }
.t-stat-lab { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--t-dim); }
.t-stat-lab svg { opacity: 0.6; }
.t-stat-val { display: block; margin-top: 10px; font-size: 25px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.t-stat-foot { display: block; margin-top: 6px; font-size: 12px; color: var(--t-faint); }
.t-kv { display: flex; flex-direction: column; gap: 1px; border-radius: var(--t-r-in); overflow: hidden; background: var(--t-line-soft); }
.t-kv-r { display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: rgba(242, 251, 246, 0.032); font-size: 13.8px; }
.t-kv-r b { font-weight: 500; color: var(--t-text); }
.t-kv-r span.sub { font-size: 12px; color: var(--t-faint); display: block; margin-top: 2px; }
.t-kv-r .num { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--t-text); }

/* ------------------------------------------------------------ row card --- */
.t-row {
  display: grid; grid-template-columns: 260px minmax(0, 1fr) 260px; gap: 24px;
  align-items: center; padding: 18px;
  border-radius: var(--t-r); border: 1px solid var(--t-line);
  background: linear-gradient(160deg, rgba(242, 251, 246, 0.05), rgba(242, 251, 246, 0.012));
  transition: border-color 220ms ease, transform 220ms var(--t-out);
}
.t-row + .t-row { margin-top: 16px; }
@media (hover: hover) and (pointer: fine) {
  .t-row:hover { border-color: color-mix(in oklab, var(--t-accent) 28%, transparent); }
}
.t-row-art {
  position: relative; overflow: hidden; display: grid; place-content: center; gap: 4px;
  aspect-ratio: 16 / 10; border-radius: var(--t-r-in); text-align: center;
  border: 1px solid color-mix(in oklab, var(--t-accent) 24%, transparent);
  background:
    radial-gradient(70% 90% at 50% 8%, color-mix(in oklab, var(--t-accent) 26%, transparent), transparent 70%),
    linear-gradient(165deg, rgba(242, 251, 246, 0.08), rgba(242, 251, 246, 0.02));
}
.t-row-art b { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.t-row-art em {
  font-style: normal; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: color-mix(in oklab, var(--t-accent) 70%, #fff);
}
.t-row-art .t-row-tag {
  position: absolute; top: 10px; left: 10px; height: 22px; padding: 0 9px; border-radius: 999px;
  display: inline-flex; align-items: center; font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; background: rgba(8, 6, 16, 0.68); color: var(--t-accent);
  border: 1px solid color-mix(in oklab, var(--t-accent) 26%, transparent);
}
.t-row-body h3 { font-size: 17px; line-height: 1.35; letter-spacing: -0.015em; }
.t-row-body p { margin: 9px 0 0; font-size: 13.5px; color: var(--t-dim); line-height: 1.55; max-width: 68ch; }
.t-row-points { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--t-faint); }
.t-row-points b { display: inline-flex; align-items: center; gap: 6px; color: var(--t-accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.t-row-side {
  display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--t-r-in);
  background: rgba(242, 251, 246, 0.04); border: 1px solid var(--t-line-soft);
}
.t-row-until { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.t-row-until svg { color: var(--t-accent); opacity: 0.8; flex: 0 0 auto; margin-top: 1px; }
.t-row-until span { display: block; color: var(--t-faint); font-size: 12px; }
.t-row-until b { display: block; font-weight: 500; color: var(--t-text); margin-top: 2px; }

/* ---------------------------------------------------------- leaderboard --- */
.t-lb-hero { position: relative; overflow: hidden; padding: 26px; }
.t-lb-hero-glow {
  position: absolute; inset: -60% -10% -10% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 22% 100%, color-mix(in oklab, var(--t-violet) 62%, transparent), transparent 70%),
    radial-gradient(46% 56% at 78% 96%, color-mix(in oklab, var(--t-accent) 44%, transparent), transparent 72%);
  filter: blur(34px);
}
@media (prefers-reduced-motion: no-preference) {
  .t-lb-hero-glow { animation: tGlow 22s ease-in-out infinite alternate; }
}
.t-lb-hero-in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.t-lb-season { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--t-accent); }
.t-lb-hero h2 { font-size: 30px; letter-spacing: -0.03em; margin-top: 8px; }
.t-lb-hero p { margin: 8px 0 0; font-size: 13.5px; color: var(--t-dim); }
.t-lb-facts { display: flex; gap: 26px; flex-wrap: wrap; }
.t-lb-fact span { display: block; font-size: 12px; color: var(--t-faint); }
.t-lb-fact b { display: block; margin-top: 5px; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.t-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.t-pod {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: 24px 18px; border-radius: var(--t-r); border: 1px solid var(--t-line);
  background: linear-gradient(170deg, rgba(242, 251, 246, 0.08), rgba(242, 251, 246, 0.02));
}
.lg-on .t-pod::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  backdrop-filter: url(#lg-card) blur(7px) saturate(120%) brightness(0.8);
}
.t-pod[data-place="1"] { padding-top: 34px; border-color: color-mix(in oklab, var(--t-accent) 40%, transparent); }
.t-pod-glow {
  position: absolute; inset: -40% -20% 50% -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 0%, var(--t-pod-hue), transparent 72%); filter: blur(24px);
}
.t-pod[data-place="1"] { --t-pod-hue: color-mix(in oklab, var(--t-accent) 55%, transparent); }
.t-pod[data-place="2"] { --t-pod-hue: color-mix(in oklab, var(--t-accent-deep) 40%, transparent); }
.t-pod[data-place="3"] { --t-pod-hue: color-mix(in oklab, var(--t-violet) 40%, transparent); }
.t-pod-rank {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px;
  border-radius: 999px; font-size: 12.5px; font-variant-numeric: tabular-nums;
  background: rgba(8, 6, 16, 0.6); border: 1px solid var(--t-line); color: var(--t-accent);
}
.t-pod-av { margin: 16px auto 12px; }
.t-pod h3 { font-size: 17px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; justify-content: center; }
.t-pod-handle { font-size: 12.5px; color: var(--t-faint); margin-top: 4px; }
.t-pod-gain { display: block; margin-top: 16px; font-size: 30px; font-weight: 500; letter-spacing: -0.035em; color: var(--t-accent); font-variant-numeric: tabular-nums; }
.t-pod-gain-lab { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-faint); }
.t-pod-foot { display: flex; justify-content: center; gap: 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--t-line-soft); }
.t-pod-foot div span { display: block; font-size: 11.5px; color: var(--t-faint); }
.t-pod-foot div b { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }

.t-rank { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.t-delta { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-variant-numeric: tabular-nums; }
.t-delta[data-dir="up"] { color: var(--t-accent); }
.t-delta[data-dir="down"] { color: var(--t-neg); }
.t-delta[data-dir="flat"] { color: var(--t-faint); }
.t-table tbody tr[data-you] td {
  background: color-mix(in oklab, var(--t-accent) 12%, transparent);
  border-color: color-mix(in oklab, var(--t-accent) 22%, transparent);
}
.t-table tbody tr[data-you] td:first-child { box-shadow: inset 3px 0 0 var(--t-accent); }

/* ------------------------------------------------------------ challenges --- */
.t-acct { position: relative; isolation: isolate; overflow: hidden; padding: 20px; border-radius: var(--t-r); border: 1px solid var(--t-line); background: linear-gradient(160deg, rgba(242, 251, 246, 0.05), rgba(242, 251, 246, 0.012)); }
.t-acct-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 4px; }
.t-acct-size { font-size: 25px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.t-acct-meta { font-size: 12.5px; color: var(--t-faint); margin-top: 5px; }
.t-acct-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0 18px; }
.t-acct-grid dt { font-size: 12.5px; color: var(--t-dim); margin-bottom: 6px; }
.t-acct-grid dd { margin: 0; font-size: 16.5px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.t-bars { display: flex; flex-direction: column; gap: 13px; }
.t-bar-lab { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--t-dim); margin-bottom: 6px; }
.t-bar-lab b { color: var(--t-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.t-bar-track { height: 6px; border-radius: 6px; background: rgba(242, 251, 246, 0.09); overflow: hidden; }
.t-bar-fill { display: block; height: 100%; border-radius: 6px; transform-origin: left; background: linear-gradient(90deg, var(--t-accent-deep), var(--t-accent)); }
.t-bar-fill[data-tone="warn"] { background: linear-gradient(90deg, #b8791a, var(--t-warn)); }
.t-bar-fill[data-tone="bad"] { background: linear-gradient(90deg, #a32544, var(--t-neg)); }
@media (prefers-reduced-motion: no-preference) {
  .t-bar-fill { animation: tGrow 760ms var(--t-out) 180ms both; }
}

/* ---------------------------------------------------------------- sheet --- */
.t-sheet-scrim { position: fixed; inset: 0; z-index: 60; border: 0; background: rgba(3, 2, 8, 0.62); backdrop-filter: blur(4px); animation: tFadeIn 200ms ease; }
@keyframes tFadeIn { from { opacity: 0; } }
.t-sheet {
  position: fixed; inset: 0 0 0 auto; z-index: 62; width: min(480px, 100vw);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(17, 13, 29, 0.97), rgba(8, 6, 16, 0.98));
  backdrop-filter: blur(26px) saturate(150%); border-left: 1px solid var(--t-line);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.6);
  animation: tSheet 300ms var(--t-out);
}
@keyframes tSheet { from { transform: translateX(26px); opacity: 0.5; } }
.t-sheet-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px; border-bottom: 1px solid var(--t-line-soft); }
.t-sheet-h h2 { font-size: 19px; }
.t-sheet-h p { margin: 6px 0 0; font-size: 13px; color: var(--t-faint); }
.t-sheet-b { flex: 1 1 auto; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.t-sheet-f { padding: 18px 20px; border-top: 1px solid var(--t-line-soft); background: rgba(0, 0, 0, 0.26); display: flex; flex-direction: column; gap: 12px; }

.t-field { display: flex; flex-direction: column; gap: 8px; }
.t-field > span { font-size: 12.5px; color: var(--t-dim); }
.t-field input, .t-field select, .t-field textarea {
  height: 46px; padding: 0 14px; border-radius: 12px; font: inherit; font-size: 14px;
  background: rgba(242, 251, 246, 0.05); border: 1px solid var(--t-line); color: var(--t-text); outline: none;
  transition: border-color 180ms ease;
}
.t-field textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.t-field input::placeholder { color: var(--t-faint); }
.t-field input:focus, .t-field select:focus, .t-field textarea:focus { border-color: color-mix(in oklab, var(--t-accent) 58%, transparent); }
.t-field select option { background: #100d1c; }
.t-field-hint { font-size: 12px; color: var(--t-faint); line-height: 1.5; }
.t-field-err { font-size: 12.5px; color: #ff9db0; display: flex; align-items: center; gap: 6px; }
.t-field input[aria-invalid="true"] { border-color: color-mix(in oklab, var(--t-neg) 60%, transparent); }
.t-field.mono input { font-family: var(--mono); font-size: 13px; letter-spacing: -0.01em; }

.t-check { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; color: var(--t-dim); line-height: 1.5; cursor: pointer; }
.t-check input {
  appearance: none; width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; border-radius: 5px;
  border: 1px solid rgba(242, 251, 246, 0.3); background: rgba(242, 251, 246, 0.05);
  display: grid; place-items: center; cursor: pointer;
}
.t-check input:checked { background: var(--t-accent); border-color: var(--t-accent); }
.t-check input:checked::after {
  content: ""; width: 9px; height: 5px; border-left: 2px solid var(--t-on-accent);
  border-bottom: 2px solid var(--t-on-accent); transform: rotate(-45deg) translateY(-1px);
}

.t-note {
  display: flex; gap: 11px; padding: 14px; border-radius: 14px; font-size: 13px;
  color: var(--t-dim); line-height: 1.55;
  background: color-mix(in oklab, var(--t-accent) 9%, transparent);
  border: 1px solid color-mix(in oklab, var(--t-accent) 22%, transparent);
}
.t-note svg { flex: 0 0 auto; margin-top: 1px; color: var(--t-accent); }
.t-note b { color: var(--t-text); }
.t-note[data-tone="warn"] { background: color-mix(in oklab, var(--t-warn) 9%, transparent); border-color: color-mix(in oklab, var(--t-warn) 26%, transparent); }
.t-note[data-tone="warn"] svg { color: var(--t-warn); }

.t-empty { display: grid; place-items: center; gap: 9px; padding: 54px 24px; text-align: center; }
.t-empty svg { color: var(--t-faint); }
.t-empty b { font-size: 15px; }
.t-empty p { margin: 0; font-size: 13.5px; color: var(--t-faint); max-width: 46ch; line-height: 1.55; }

.t-ok-mark {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 4px;
  background: color-mix(in oklab, var(--t-accent) 20%, transparent);
  border: 1px solid color-mix(in oklab, var(--t-accent) 40%, transparent); color: var(--t-accent);
}
@media (prefers-reduced-motion: no-preference) {
  .t-ok-mark { animation: tPop 420ms var(--t-out) both; }
  @keyframes tPop { from { transform: scale(0.86); opacity: 0; } }
}

/* --------------------------------------------------------------- charts --- */
.t-dbars { display: flex; align-items: flex-end; gap: 3px; height: 150px; }
.t-dbar { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.t-dbar i {
  display: block; border-radius: 3px; transform-origin: bottom; height: var(--t-h);
  background: linear-gradient(180deg, var(--t-accent), color-mix(in oklab, var(--t-accent) 45%, transparent));
}
.t-dbar[data-neg] { justify-content: flex-start; }
.t-dbar[data-neg] i { background: linear-gradient(180deg, color-mix(in oklab, var(--t-neg) 45%, transparent), var(--t-neg)); }
@media (prefers-reduced-motion: no-preference) {
  .t-dbar i { animation: tGrowY 620ms var(--t-out) both; animation-delay: calc(var(--t-i, 0) * 16ms); }
  @keyframes tGrowY { from { transform: scaleY(0); } }
}
.t-dbars-axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--t-faint); }
.t-zero { height: 1px; background: var(--t-line); margin: 0; }

/* ----------------------------------------------------------- responsive --- */
@media (max-width: 1240px) {
  .t-row { grid-template-columns: 200px minmax(0, 1fr); }
  .t-row-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .t-acct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .t-grid.c4 { --c: 2; }
  .t-grid.c3 { --c: 1; }
}
@media (max-width: 900px) {
  .t-grid, .t-grid.c3, .t-grid.c4 { --c: 1; }
  .t-grid > .span2 { grid-column: span 1; }
  .t-podium { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .t-pod[data-place="1"] { order: -1; }
  .t-sheet { width: 100vw; }
}
@media (max-width: 640px) {
  .t-row { grid-template-columns: minmax(0, 1fr); }
  .t-row-art { aspect-ratio: 21 / 9; }
  .t-sec-h h2 { font-size: 21px; }
  .t-lb-hero h2 { font-size: 24px; }
}

/* audit fix: the 4-option segmented filter was 113px wider than a 390px screen;
   header controls now wrap and long segments scroll inside their own row */
@media (max-width: 640px) {
  .t-sec-h-r { width: 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .t-sec-h-r::-webkit-scrollbar { display: none; }
  .t-sec-h-r .t-seg { flex: 0 0 auto; }
  .t-seg-btn { padding: 0 12px; white-space: nowrap; }
  .t-top { gap: 10px; padding: 0 14px; }
  .t-crumb { display: none; }
}

/* ---- user menu ----------------------------------------------------------- */
.um { position: relative; }
.um-trigger {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  padding: 6px 6px 6px 12px; border-radius: 999px;
  border: 1px solid var(--t-line); background: transparent;
}
@media (hover: hover) { .um-trigger:hover { background: var(--t-hover, rgba(255,255,255,0.04)); } }
.um-trigger:focus-visible { outline: 2px solid var(--t-accent, #8FDC12); outline-offset: 2px; }
.um-text { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.um-text b { font-size: 13.5px; font-weight: 500; }
.um-text span { font-size: 11.5px; color: var(--t-dim); max-width: 168px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  background: linear-gradient(135deg, #8FDC12, #1E9E63); color: #fbfaff;
}
.um-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 232px; z-index: 80;
  border-radius: 14px; border: 1px solid var(--t-line); padding: 6px;
  background: var(--t-panel-solid, rgba(16, 10, 28, 0.97));
  backdrop-filter: blur(20px); box-shadow: 0 20px 54px rgba(0,0,0,0.5);
}
.um-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--t-line); margin-bottom: 6px; display: grid; gap: 2px; }
.um-head b { font-size: 13.5px; }
.um-head span { font-size: 12px; color: var(--t-dim); overflow: hidden; text-overflow: ellipsis; }
.um-item {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border-radius: 9px; border: 0; background: transparent;
  font-size: 13.5px; color: var(--t-text); cursor: pointer; text-align: left;
}
@media (hover: hover) { .um-item:hover { background: var(--t-hover, rgba(255,255,255,0.05)); } }
.um-item:disabled { opacity: .6; cursor: default; }
@media (max-width: 720px) { .um-text { display: none; } .um-trigger { padding: 5px; } }

/* ---- unverified-email banner --------------------------------------------- */
.vb {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 22px; padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid color-mix(in srgb, var(--t-warn, #ffb020) 30%, transparent);
  background: color-mix(in srgb, var(--t-warn, #ffb020) 10%, transparent);
  color: var(--t-text);
}
.vb > svg { flex: 0 0 auto; color: var(--t-warn, #ffb020); }
.vb-text { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.vb-text b { font-size: 14px; font-weight: 600; }
.vb-text span { font-size: 13px; line-height: 1.5; color: var(--t-dim); }
.vb-action {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 9px; cursor: pointer;
  font-size: 13px; font-weight: 500;
  border: 1px solid color-mix(in srgb, var(--t-warn, #ffb020) 42%, transparent);
  background: transparent; color: var(--t-text);
}
@media (hover: hover) { .vb-action:hover:not(:disabled) { background: color-mix(in srgb, var(--t-warn, #ffb020) 16%, transparent); } }
.vb-action:disabled { opacity: .6; cursor: default; }
.vb-close { flex: 0 0 auto; background: transparent; border: 0; color: var(--t-dim); cursor: pointer; padding: 4px; }
@media (max-width: 640px) { .vb { flex-wrap: wrap; } .vb-text { flex-basis: 100%; order: 2; } }

/* ═══ ZZL bridge — adapt the FB shell to this site's chrome ═══ */
.tdb .t-side{top:34px}                                   /* offers bar height */
.tdb .t-nav-pill{top:6px}
.t-nav-item.active{color:#fff}
.t-nav-item.active svg{opacity:1;color:var(--t-accent)}
.t-nav-item .zcomp-navnew{display:none}                  /* FB nav carries no badges */
.tdb .topbar{background:linear-gradient(180deg,rgba(5,12,8,.86),rgba(5,12,8,.62));backdrop-filter:blur(18px) saturate(130%);-webkit-backdrop-filter:blur(18px) saturate(130%);border-bottom:1px solid var(--t-line)}
.tdb .side-close{display:none}
@media(max-width:1024px){.tdb .side-close{display:inline-grid}}
.tdb .t-brand-link{color:var(--t-text);text-decoration:none}
.tdb .t-brand-link:hover{color:var(--t-text)}

/* FB typography + section chrome on this site's own headers (verbatim rules) */
.tdb h1,.tdb h2,.tdb h3{font-family:'Geist','Sora',sans-serif;font-weight:500;letter-spacing:-0.02em}
.tdb .page-h{font-size:26px;font-weight:500;letter-spacing:-0.02em;margin-bottom:4px}
.tdb .page-sub{color:var(--t-dim);font-size:14.5px;margin-bottom:22px}
.tdb .gft-welc h2 em,.tdb .page-h em{color:var(--t-accent);font-style:normal}
.tdb .imm-ticker{display:none}   /* FB topbar carries no inline price ticker — frees the row, no wrap */

/* ═══ ZZL minimal scroller — the theme scrollbar, everywhere (owner 2026-09-04) ═══ */
*{scrollbar-width:thin;scrollbar-color:rgba(93,214,44,.45) transparent}
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(93,214,44,.4);border-radius:99px}
::-webkit-scrollbar-thumb:hover{background:rgba(93,214,44,.7)}

/* ═══ PALETTE PLAY — Withdrawal + Buy Challenge (owner 2026-09-04) ═══
   The Oscillate ladder on the dashboard's two money surfaces: the payout
   request is the flagship solid-mint card (dark ink), payout setup sits on
   deep green (paper text), and the buy configurator's result card becomes
   the white paper purchase panel with green-ladder plan chips. */

/* — Withdrawal · card 1: Payout Setup — deep green, paper text — */
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(1){
  background:linear-gradient(165deg,#3B851D,#337418 60%,#2A5F13)!important;
  border-color:rgba(248,248,248,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 24px 54px -28px rgba(0,0,0,.7)!important}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(1) h3{color:#F8F8F8!important}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(1) div{color:rgba(248,248,248,.78)}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(1) b{color:#F8F8F8!important}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(1) .zz-lbl{color:rgba(232,255,214,.85)!important}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(1) .zz-in{
  background:rgba(6,20,10,.4)!important;border-color:rgba(248,248,248,.28)!important;color:#F8F8F8!important}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(1) .zz-in:focus{border-color:#CFFFB0!important}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(1) .zz-btn{
  background:#F8F8F8!important;color:#1e5210!important;box-shadow:0 10px 26px -12px rgba(0,0,0,.5)!important}
/* — Withdrawal · card 2: Request Trading Payout — FLAGSHIP solid mint, dark ink — */
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(2){
  background:linear-gradient(165deg,#6FE93B,#5DD62C 55%,#46B31E)!important;
  border-color:rgba(255,255,255,.3)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.42),0 28px 60px -26px rgba(93,214,44,.55)!important}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(2) h3{color:#0F0F0F!important}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(2) div{color:rgba(6,20,10,.72)}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(2) b{color:#0F0F0F!important}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(2) .zz-avail{color:rgba(6,20,10,.72)!important}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(2) .zz-in{
  background:rgba(255,255,255,.85)!important;border-color:rgba(6,20,10,.22)!important;color:#0F0F0F!important}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(2) .zz-in::placeholder{color:#5a655a}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(2) .zz-in:focus{border-color:#0F0F0F!important}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(2) .zz-btn{
  background:#0F0F0F!important;color:#5DD62C!important;box-shadow:0 12px 30px -12px rgba(0,0,0,.6)!important}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(2) #wFeeRefund{
  background:rgba(255,255,255,.5)!important;border-color:rgba(6,20,10,.2)!important;color:rgba(6,20,10,.8)!important}
[data-tab-content="withdrawal"] .zz-2col .chart-card:nth-child(2) #wFeeRefund b{color:#0F0F0F!important}

/* — Buy Challenge · green-ladder plan chips — */
#bcTypeStd button:nth-child(1).on{background:#B6F09C!important;border-color:#B6F09C!important;color:#12290a!important}
#bcTypeStd button:nth-child(2).on{background:#5DD62C!important;border-color:#5DD62C!important;color:#06140a!important}
#bcTypeStd button:nth-child(3).on{background:#468C20!important;border-color:#468C20!important;color:#F8F8F8!important}
#bcTypeStd button:nth-child(4).on{background:#3CC780!important;border-color:#3CC780!important;color:#06140a!important}
#bcTypeNew button:nth-child(1).on{background:#7CEB3E!important;border-color:#7CEB3E!important;color:#06140a!important}
#bcTypeNew button:nth-child(2).on{background:linear-gradient(160deg,#6FE93B,#46B31E)!important;border-color:#6FE93B!important;color:#0F0F0F!important}
#bcTypeNew button:nth-child(3).on{background:#9BE55F!important;border-color:#9BE55F!important;color:#12290a!important}
/* — size chips: Apple frosted glass — */
#bcSizeRow button{background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.035))!important;
  border-color:rgba(255,255,255,.16)!important;
  backdrop-filter:blur(20px) saturate(1.4);-webkit-backdrop-filter:blur(20px) saturate(1.4);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26)!important}
#bcSizeRow button.on{background:linear-gradient(180deg,rgba(93,214,44,.2),rgba(255,255,255,.06))!important;
  border-color:#5DD62C!important;color:#CFFFB0!important;
  box-shadow:inset 0 0 0 1px #5DD62C,inset 0 1px 0 rgba(255,255,255,.3),0 0 32px -10px rgba(93,214,44,.5)!important}
/* — result card: WHITE paper purchase panel — */
#buyConfig .bc-card{background:linear-gradient(170deg,#FFFFFF,#F8F8F8 55%,#EEF2EA)!important;
  border-color:rgba(15,15,15,.08)!important;
  box-shadow:0 26px 60px -30px rgba(0,0,0,.55)!important}
#buyConfig .bc-card::before{background:linear-gradient(90deg,transparent,#5DD62C,transparent)!important;opacity:.8!important}
#buyConfig .bc-card .bc-tier{color:#7a8578!important}
#buyConfig .bc-card .bc-nm{color:#0F0F0F!important}
#buyConfig .bc-card .bc-nm.accent{color:#2b6314!important}
#buyConfig .bc-card .bc-tag{color:#5a655a!important}
#buyConfig .bc-card .bc-price .cur{color:#9aa39a!important}
#buyConfig .bc-card .bc-price .amt{color:#2b6314!important}
#buyConfig .bc-card .bc-price-sub{color:#7a8578!important}
#buyConfig .bc-card .bc-price-sub b{color:#1e5210!important}
#buyConfig .bc-card .bc-rules{border-top-color:rgba(15,15,15,.1)!important}
#buyConfig .bc-card .bc-rules li .k{color:#5a655a!important}
#buyConfig .bc-card .bc-rules li .k svg{stroke:#337418!important}
#buyConfig .bc-card .bc-rules li .v{color:#0F0F0F!important}
#buyConfig .bc-card .bc-rules li .v.g,#buyConfig .bc-card .bc-rules li .v.n{color:#1e5210!important}
#buyConfig .bc-card .bc-rules li .v.m{color:#8a938a!important}
#buyConfig .bc-card .bc-foot{color:#7a8578!important}
#buyConfig .bc-card .bc-cta{box-shadow:0 14px 34px -12px rgba(93,214,44,.55)!important}
