/* ═══════════════════════════════════════════════════════════════════
   presentation.css — the FTE Tracker trailer (window.DemoPresentation)

   Layout per TRAILER-DIRECTION.md §1: video box · key-point band ·
   transport, all centred on the video box's width. The video box and
   every ancestor carry NO transform on desktop — opacity, blur and
   clip-path are the only things that animate on it, so the replay
   engine's .dr-stage scale is the one scale and the cursor stays 1:1.
   (The one exception is a phone narrower than the frame: the box alone
   is shrunk by a wrapper transform the engine measures for itself.)

   Two easings only: E1 settle for anything arriving, E2 cut for anything
   leaving. Colour comes from the app's tokens and the replay's role
   tokens; light and dark both resolve because applyTheme() stamps
   [data-theme] on <html> as well as #root.

   Namespace .tr-*. Never styles .ds-*, .dt-* or the app.
   ═══════════════════════════════════════════════════════════════════ */

.tr{
  --tr-e1: cubic-bezier(.16,1,.3,1);
  --tr-e2: cubic-bezier(.4,0,.2,1);
  --tr-role: var(--accent);
  --tr-role-bg: var(--accent-bg);
  --tr-role-ink: var(--accent-ink);
  --tr-top: 16px; --tr-gap: 8px; --tr-band: 88px; --tr-transport: 32px; --tr-pt: 20px; --tr-pt-gap: 28px; --tr-act-w: 150px;
  --tr-frame-w: 1152px; --tr-frame-h: 756px;

  position: fixed; inset: 0; z-index: 4000;
  background: var(--bg); color: var(--text);
  font-family: var(--font, system-ui, sans-serif);
  overflow: hidden;
  opacity: 0; transition: opacity .3s var(--tr-e1);
}
.tr.is-open{ opacity: 1; }
.tr *, .tr *::before, .tr *::after{ box-sizing: border-box; }
.tr svg{ display: block; }

/* the role-lit frame: whose screen is on decides the colour */
.tr[data-role="employee"]  { --tr-role: var(--role-emp);   --tr-role-bg: var(--role-emp-bg);   --tr-role-ink: var(--role-emp-ink); }
.tr[data-role="supervisor"]{ --tr-role: var(--role-super); --tr-role-bg: var(--role-super-bg); --tr-role-ink: var(--role-super-ink); }
.tr[data-role="admin"]     { --tr-role: var(--role-admin); --tr-role-bg: var(--role-admin-bg); --tr-role-ink: var(--role-admin-ink); }

.tr-live{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 1. THE STACK ─────────────────────────────────────────────────── */
.tr-stack{
  width: var(--tr-frame-w); margin: 0 auto; padding-top: var(--tr-top);
  display: flex; flex-direction: column;
}
.tr-videowrap{ position: relative; width: var(--tr-frame-w); height: var(--tr-frame-h); flex: none; }
.tr-video{
  position: absolute; left: 0; top: 0;
  width: var(--tr-frame-w); height: var(--tr-frame-h);
  transform-origin: top left;
}
.tr-host{
  position: absolute; inset: 0;
  transition: filter .32s var(--tr-e2), opacity .32s var(--tr-e2);
}
.tr-host.is-dimmed{ filter: blur(8px); opacity: .3; }

/* replay layers — one frame, the mocks cross-fade inside it */
.tr-layer{ position: absolute; inset: 0; opacity: 0; transition: opacity .4s var(--tr-e1); }
.tr-layer.is-in{ opacity: 1; }
.tr-layer.is-out{ opacity: 0 !important; transition: opacity .3s var(--tr-e2); }
.tr-layer.is-out .dr-port{ filter: blur(6px); transition: filter .3s var(--tr-e2); }
.tr-layer .dr{ width: 100%; height: 100%; }
.tr-layer .dr-frame{
  transform: none !important;
  transition: opacity .4s var(--tr-e1), border-color .5s linear;
  border-color: var(--border);
  border-color: color-mix(in srgb, var(--tr-role) 55%, var(--border));
}
/* one text track: the engine's cursor caption stands down in the trailer */
.tr-nocap .dr-cap{ display: none !important; }
/* a dimmed replay is a backdrop, not a screen: non-replay beats show no tag */
/* visibility, not opacity: the engine pins the tag's opacity with a Web Animation */
.tr-layer.is-dim .dr-tag{ visibility: hidden; }

/* ── 2. CARDS over the box ────────────────────────────────────────── */
.tr-cards{ position: absolute; inset: 0; pointer-events: none; }
.tr-card{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s var(--tr-e2);
}
.tr-card.is-in{ opacity: 1; transition: opacity .3s var(--tr-e1); }
.tr-card.is-out{ opacity: 0 !important; transition: opacity .3s var(--tr-e2); }
.tr-title, .tr-chapter, .tr-solid, .tr-chooser{ background: var(--bg); }
/* the chapter card is the one hard cut in the piece */
.tr-chapter{ opacity: 1; transition: none; }

/* text arrives through a clip, rising 16px, 560ms E1 */
.tr-reveal{
  clip-path: inset(0 0 100% 0); transform: translateY(16px); opacity: 0;
  transition: clip-path .56s var(--tr-e1) var(--d, 0ms), transform .56s var(--tr-e1) var(--d, 0ms), opacity .2s linear var(--d, 0ms);
}
.tr-card.is-in .tr-reveal, .tr-chapter.is-lab .tr-reveal{ clip-path: inset(-12% 0 -22% 0); transform: none; opacity: 1; }

/* — title cards — */
.tr-title-in{ text-align: center; padding: 0 6%; max-width: 100%; }
.tr-title-big{ font-size: calc(var(--tr-frame-w) * .0833); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--text); }
.tr-title-line{ font-size: calc(var(--tr-frame-w) * .0208); font-weight: 500; color: var(--text-2); margin-top: .7em; letter-spacing: -.01em; }
.tr-title-stmt{ font-size: calc(var(--tr-frame-w) * .045); font-weight: 650; letter-spacing: -.025em; line-height: 1.1; color: var(--text); max-width: 20ch; margin: 0 auto; }
.tr-title-small{ font-size: 15px; color: var(--text-3); margin-top: 24px; font-weight: 500; }
.tr-cursor{
  position: absolute; right: 13%; bottom: 17%; width: 24px; height: 24px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  animation: tr-drift 3.2s ease-in-out infinite;
}
@keyframes tr-drift{ 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(1.5px,-1.5px); } }

/* — chapter cards: numeral alone (The Breath), then the hairline and the words — */
.tr-ch-in{ text-align: center; }
.tr-ch-num{
  font-size: calc(var(--tr-frame-w) * .139); font-weight: 700; letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.tr-ch-rule{
  width: 72px; height: 1px; margin: 22px auto 22px; background: var(--tr-role);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--tr-e1);
}
.tr-chapter.is-lab .tr-ch-rule{ transform: scaleX(1); }
.tr-ch-lab{ font-size: calc(var(--tr-frame-w) * .0278); font-weight: 600; letter-spacing: -.02em; color: var(--text-2); }

/* — data moments: one figure, one flip, one checklist — */
.tr-data{ padding: 0 6%; }
.tr-moment{
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl, 16px);
  box-shadow: var(--shadow-3);
  padding: 40px 48px; min-width: 46%; max-width: 80%;
  transform: translateY(24px); opacity: 0;
  transition: transform .48s var(--tr-e1), opacity .48s var(--tr-e1);
}
.tr-card.is-in .tr-moment{ transform: none; opacity: 1; }
.tr-solid .tr-moment{ background: transparent; border: 0; box-shadow: none; max-width: 90%; }
.tr-m-eyebrow{ font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.tr-m-fig{
  position: relative; display: inline-block; margin: 10px 0 24px;
  font-size: 58px; font-weight: 700; letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; color: var(--text);
}
.tr-count{ display: inline-block; min-width: 2.1ch; text-align: right; }
.tr-m-of{ font-size: .5em; font-weight: 600; color: var(--text-2); margin-left: .12em; }
.tr-m-ul{
  position: absolute; left: 0; bottom: -8px; height: 3px; width: 100%; border-radius: 2px;
  background: var(--tr-role); transform: scaleX(0); transform-origin: left;
}
.is-landed .tr-m-ul{ transform: scaleX(1); transition: transform .22s var(--tr-e2); }
.tr-m-foot{ margin-top: 22px; font-size: 14px; color: var(--text-3); opacity: 0; transition: opacity .3s var(--tr-e1); }
.is-foot .tr-m-foot{ opacity: 1; }

/* B04 — the day bar */
.tr-daybar-track{ display: flex; gap: 2px; height: 30px; border-radius: 8px; overflow: hidden; background: var(--surface-3); }
.tr-daybar-seg{
  display: block; width: var(--w); background: var(--c);
  transform: scaleX(0); transform-origin: left;
  transition: transform .78s var(--tr-e1) calc(var(--i) * 70ms);
}
.is-bars .tr-daybar-seg{ transform: scaleX(1); }
.tr-legend{ display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 20px; font-size: 15px; color: var(--text-2); }
.tr-leg{ display: inline-flex; align-items: center; gap: 10px; }
.tr-leg b{ color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.tr-leg.is-muted{ opacity: .62; }
.tr-leg-swatch{ width: 14px; height: 14px; border-radius: 4px; background: var(--c); opacity: .55; }

/* B08 — the history trail, the app's own rows at trailer size */
.tr-trail{ min-width: 52%; }
.tr-trail .ap-trail{ gap: 0; margin: 0; }
.tr-trail .ap-trail-row{
  font-size: 18px; color: var(--text-2); padding: 14px 0; gap: 18px; align-items: center;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(8px);
  transition: opacity .36s var(--tr-e1), transform .36s var(--tr-e1);
}
.tr-trail .ap-trail-row:last-child{ border-bottom: 0; }
.tr-trail .ap-trail-row.is-in{ opacity: 1; transform: none; }
.tr-trail .ap-trail-act{ display: inline-flex; min-width: 128px; }
.tr-trail .ui-pill{ height: 26px; font-size: 13px; padding: 0 10px; gap: 6px; }
.tr-trail .ui-pill svg{ width: 13px; height: 13px; }
.tr-trail-who{ color: var(--text); font-weight: 600; }
.tr-trail .ap-trail-at{ font-size: 15px; color: var(--text-3); }

/* B20 — how access works: a composed page. Title, four rows (icon, full
   label, one line), each landing in step with its key point. Reads as a
   settled page, not a tile grid. */
.tr-secpage{ width: 64%; max-width: 780px; min-width: 0; padding: 40px 48px 34px; }
.tr-secpage-head{ padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.tr-secpage-title{ font-size: 34px; font-weight: 700; letter-spacing: -.028em; line-height: 1.1; color: var(--text); margin-top: 8px; }
.tr-secrows{ list-style: none; margin: 0; padding: 0; }
.tr-secrow{
  display: grid; grid-template-columns: 52px 1fr 24px; align-items: center; gap: 20px;
  padding: 17px 0; border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(10px);
  transition: opacity .44s var(--tr-e1), transform .44s var(--tr-e1);
}
.tr-secrow.is-on{ opacity: 1; transform: none; }
.tr-secrow-ic{
  width: 52px; height: 52px; border-radius: var(--radius-lg, 12px);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tr-role-bg); color: var(--tr-role-ink); border: 1px solid color-mix(in srgb, var(--tr-role) 28%, var(--border));
}
.tr-secrow-txt{ display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tr-secrow-t{ font-size: 20px; font-weight: 650; letter-spacing: -.015em; color: var(--text); line-height: 1.2; }
.tr-secrow-l{ font-size: 15px; color: var(--text-2); line-height: 1.35; }
.tr-secrow-ck{
  width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-br);
  transform: scale(.7); opacity: 0; transition: opacity .24s var(--tr-e1) .26s, transform .24s var(--tr-e1) .26s;
}
.tr-secrow.is-on .tr-secrow-ck{ transform: none; opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════
   ACT 5 · OTHER FEATURES — three composed pages (B23–B25) and one
   deck-built frame (B22). Same grammar as B20: a page, not a tile grid;
   one thing lands at a time; tokens only, so light and dark both resolve.
   ═══════════════════════════════════════════════════════════════════ */

/* B23 — leave follows the split. An eight-hour block lands, divides in
   the person's own proportions, and the three shares drop into the funds. */
.tr-leavepage{ width: 62%; max-width: 780px; min-width: 0; padding: 36px 44px 30px; }
.tr-leave-h{ font-size: 32px; font-weight: 700; letter-spacing: -.028em; line-height: 1.12; color: var(--text); }
.tr-leave-drop{ margin-top: 26px; }
.tr-leave-blk{
  position: relative; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px 6px;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid color-mix(in srgb, var(--tr-role) 30%, var(--border));
  background: var(--tr-role-bg); color: var(--tr-role-ink); overflow: hidden;
  opacity: 0; transform: translateY(-18px);
  transition: opacity .5s var(--tr-e1), transform .5s var(--tr-e1);
}
.tr-leavepage[data-p="1"] .tr-leave-blk,
.tr-leavepage[data-p="2"] .tr-leave-blk,
.tr-leavepage[data-p="3"] .tr-leave-blk,
.tr-leavepage[data-p="4"] .tr-leave-blk{ opacity: 1; transform: none; }
.tr-leave-blk-ic{ display: inline-flex; opacity: .8; }
.tr-leave-blk-l{ font-size: 15px; font-weight: 650; }
.tr-leave-blk-h{ margin-left: auto; font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tr-leave-slices{ position: absolute; left: 0; right: 0; bottom: 0; height: 6px; display: flex; }
.tr-leave-slices i{
  display: block; width: var(--w); background: var(--c);
  transform: scaleX(0); transform-origin: left;
  transition: transform .52s var(--tr-e1) calc(var(--i) * 90ms);
}
.tr-leavepage[data-p="2"] .tr-leave-slices i,
.tr-leavepage[data-p="3"] .tr-leave-slices i,
.tr-leavepage[data-p="4"] .tr-leave-slices i{ transform: none; }
.tr-leave-rows{ list-style: none; margin: 18px 0 0; padding: 0; }
.tr-leave-row{
  display: grid; grid-template-columns: 42px 1fr 48px 34% 78px; align-items: center; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  opacity: .3; transition: opacity .42s var(--tr-e1) calc(var(--i) * 80ms);
}
.tr-leave-row:last-child{ border-bottom: 0; }
.tr-leavepage[data-p="3"] .tr-leave-row, .tr-leavepage[data-p="4"] .tr-leave-row{ opacity: 1; }
.tr-leave-n{ font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-leave-p{ font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
.tr-leave-bar{ position: relative; display: block; height: 10px; border-radius: 5px; background: var(--surface-3); }
.tr-leave-fill{
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 5px; background: var(--c);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--tr-e1) calc(var(--i) * 90ms);
}
.tr-leavepage[data-p="3"] .tr-leave-fill, .tr-leavepage[data-p="4"] .tr-leave-fill{ transform: none; }
.tr-leave-add{
  justify-self: end; font-size: 15px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .3s var(--tr-e1) calc(var(--i) * 90ms + .24s), transform .3s var(--tr-e1) calc(var(--i) * 90ms + .24s);
}
.tr-leavepage[data-p="3"] .tr-leave-add, .tr-leavepage[data-p="4"] .tr-leave-add{ opacity: 1; transform: none; }

/* B24 — the request list: five things the system holds, ticking over one
   by one, and the honest note about the two it does not hold. */
.tr-auditpage{ width: 58%; max-width: 720px; min-width: 0; padding: 34px 44px 28px; }
.tr-audit-head{ display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.tr-audit-ic{
  width: 44px; height: 44px; flex: none; border-radius: var(--radius-lg, 12px);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tr-role-bg); color: var(--tr-role-ink);
  border: 1px solid color-mix(in srgb, var(--tr-role) 28%, var(--border));
}
.tr-audit-h{ font-size: 30px; font-weight: 700; letter-spacing: -.026em; color: var(--text); line-height: 1.1; }
.tr-audit-rows{ list-style: none; margin: 0; padding: 0; }
.tr-audit-row{ display: grid; grid-template-columns: 26px 1fr 88px; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.tr-audit-row:last-child{ border-bottom: 0; }
.tr-audit-box{
  width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1.5px solid var(--border-2); color: transparent;
  transition: background .26s var(--tr-e1), border-color .26s var(--tr-e1), color .26s var(--tr-e1);
}
.tr-audit-row.is-on .tr-audit-box{ background: var(--ok-bg); border-color: var(--ok-br); color: var(--ok); }
.tr-audit-t{ font-size: 19px; font-weight: 600; color: var(--text-3); transition: color .3s var(--tr-e1); }
.tr-audit-row.is-on .tr-audit-t{ color: var(--text); }
.tr-audit-rule{
  justify-self: end; width: 88px; height: 2px; border-radius: 1px; background: var(--border-2);
  transform: scaleX(0); transform-origin: left; transition: transform .46s var(--tr-e1), background .3s linear;
}
.tr-audit-row.is-on .tr-audit-rule{ transform: none; background: var(--tr-role); }

/* B25 — nothing changes quietly: a bulk approval, the undo taken while it
   is still offered, and the log line writing itself underneath. */
.tr-safepage{ width: 64%; max-width: 800px; min-width: 0; padding: 32px 42px 26px; }
.tr-safe-h{ font-size: 30px; font-weight: 700; letter-spacing: -.026em; line-height: 1.12; color: var(--text); }
.tr-safe-rows{ margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); overflow: hidden; background: var(--surface-2); }
.tr-safe-row{
  display: grid; grid-template-columns: 58px 38px 1fr 60px 106px; align-items: center; gap: 12px;
  padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.tr-safe-row:last-child{ border-bottom: 0; }
.tr-safe-d{ color: var(--text-2); font-variant-numeric: tabular-nums; }
.tr-safe-f{ color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-safe-hrs{ text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tr-safe-st{
  justify-self: end; display: inline-flex; opacity: 0; transform: translateY(-4px) scale(.94);
  transition: opacity .3s var(--tr-e1) calc(var(--i) * 70ms), transform .3s var(--tr-e1) calc(var(--i) * 70ms);
}
.tr-safepage[data-p="1"] .tr-safe-st,
.tr-safepage[data-p="2"] .tr-safe-st,
.tr-safepage[data-p="3"] .tr-safe-st{ opacity: 1; transform: none; }
.tr-safe-st .ui-pill{ height: 22px; font-size: 11px; padding: 0 9px; gap: 5px; }
.tr-safe-st .ui-pill svg{ width: 11px; height: 11px; }
.tr-safe-toast{
  display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 11px 14px;
  border-radius: var(--radius-lg, 12px); background: var(--nav); color: var(--nav-fg); box-shadow: var(--shadow-3);
  opacity: 0; transform: translateY(10px);
  transition: opacity .32s var(--tr-e1), transform .32s var(--tr-e1);
}
.tr-safepage[data-p="2"] .tr-safe-toast, .tr-safepage[data-p="3"] .tr-safe-toast{ opacity: 1; transform: none; }
.tr-safe-toast-t{ font-size: 15px; font-weight: 650; }
.tr-safe-undo{
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px;
  border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--nav-fg) 40%, transparent);
  font-size: 13px; font-weight: 650;
  transition: transform .14s var(--tr-e2), background .2s linear;
}
.tr-safepage[data-p="3"] .tr-safe-undo{ transform: scale(.95); background: color-mix(in srgb, var(--nav-fg) 18%, transparent); }
.tr-safe-log{
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 14px;
  border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap;
  opacity: 0; clip-path: inset(0 100% 0 0);
  transition: clip-path .72s var(--tr-e1), opacity .18s linear;
}
.tr-safepage[data-p="5"] .tr-safe-log{ opacity: 1; clip-path: inset(0 0 0 0); }
.tr-safe-log-ev{ font-weight: 700; color: var(--text); letter-spacing: -.005em; }
.tr-safe-log-x::before{ content: '·'; margin-right: 10px; color: var(--text-3); }
.tr-safe-log-r{
  margin-left: auto; padding: 3px 10px; border-radius: 999px; font-size: 12.5px;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border);
}

/* ── 3. THE DECK-BUILT FRAME (fallbacks) ──────────────────────────── */
.tr-fb{
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.28);
  border-color: color-mix(in srgb, var(--tr-role) 55%, var(--border));
  transition: border-color .5s linear;
}
.tr-fb-chrome{ height: 34px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.tr-fb-chrome i{ width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); display: block; flex: none; }
.tr-fb-chrome span{ margin-left: 8px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.tr-fb-body{ flex: 1; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.tr-fb-title{ font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: var(--text-2); }

/* B13 fallback — the five-person review cycle */
.tr-rv{ flex: 1; min-height: 0; display: grid; grid-template-columns: 27% 1fr; background: var(--bg); }
.tr-rv-rail{ background: var(--surface); border-right: 1px solid var(--border); padding: 18px 14px; }
.tr-rv-rail-h{ font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 0 10px 12px; }
.tr-rv-row{
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 10px; border-radius: var(--radius); font-size: 15px; font-weight: 500; color: var(--text);
  transition: background .2s;
}
.tr-rv-row.is-cur{ background: var(--surface-2); }
.tr-rv-row.is-pkg{ margin-top: 12px; border-top: 1px solid var(--border); padding-top: 18px; border-radius: 0 0 var(--radius) var(--radius); }
.tr-rv-row .ui-pill{ height: 20px; font-size: 11px; }
.tr-rv-main{ padding: 36px 44px; display: flex; align-items: center; transition: opacity .26s var(--tr-e2), filter .26s var(--tr-e2); }
.tr-review.is-seam .tr-rv-main{ opacity: 0; filter: blur(5px); }
.tr-rv-card.fund-card{ width: 100%; margin: 0; padding: 28px 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.tr-rv-title{ font-size: 20px; letter-spacing: -.01em; }
.tr-rv-title b{ font-weight: 700; }
.tr-rv-count{ font-size: 13px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tr-rv-sub{ font-size: 14px; margin-bottom: 22px; }
.tr-rv-funds{ display: flex; flex-direction: column; gap: 4px; }
.tr-rv-fund{
  display: grid; grid-template-columns: 118px 118px 1fr 136px; align-items: center; gap: 18px;
  padding: 10px 10px; margin: 0 -10px; border-radius: var(--radius);
  transition: background .3s;
}
.tr-rv-fund.off{ background: var(--warn-bg); }
.tr-rv-fname{ font-size: 15px; font-weight: 600; color: var(--text); }
.tr-rv-nums{ font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; transition: opacity .3s linear calc(var(--i) * 70ms + 120ms); }
.tr-rv-bar{ position: relative; display: block; height: 10px; border-radius: 5px; background: var(--surface-3); }
.tr-rv-fill{
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 5px;
  background: var(--tr-role); transform: scaleX(1); transform-origin: left;
  transition: transform .78s var(--tr-e1) calc(var(--i) * 70ms);
}
.tr-rv-fund.off .tr-rv-fill{ background: var(--warn); }
.tr-rv-tick{
  position: absolute; top: -4px; bottom: -4px; left: var(--t); width: 2px; border-radius: 1px;
  background: var(--text); transform: scaleY(1);
  transition: transform .4s var(--tr-e1) calc(.78s + var(--i) * 70ms);
}
.tr-rv-chip{ justify-self: end; transform: scale(1); transition: opacity .24s var(--tr-e1) calc(.98s + var(--i) * 70ms), transform .24s var(--tr-e1) calc(.98s + var(--i) * 70ms); }
.tr-rv-chip .ui-diff{ font-size: 14px; }
.tr-review[data-p="0"] .tr-rv-fill{ transform: scaleX(0); transition-duration: .001s; transition-delay: 0s; }
.tr-review[data-p="0"] .tr-rv-tick{ transform: scaleY(0); transition: none; }
.tr-review[data-p="0"] .tr-rv-nums{ opacity: 0; transition: none; }
.tr-review[data-p="0"] .tr-rv-chip{ opacity: 0; transform: scale(.9); transition: none; }
.tr-rv-verdict{ display: flex; align-items: center; gap: 14px; margin-top: 26px; min-height: 34px; }
.tr-rv-verdict .ui-pill{ height: 28px; font-size: 13px; padding: 0 12px; gap: 6px; }
.tr-rv-pill{ display: inline-flex; transform: scale(.92); transition: opacity .24s var(--tr-e1), transform .24s var(--tr-e1); }
.tr-rv-vline{ font-size: 15px; font-weight: 500; color: var(--text-2); transition: opacity .24s var(--tr-e1) .06s; }
.tr-rv-send{ flex: none; padding: 9px 16px; font-size: 13px; display: none; }
.tr-rv-stamp{
  display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius);
  background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-br); font-size: 14px; font-weight: 600;
}
.tr-review[data-v="pk"] .tr-rv-send{ display: inline-block; }
.tr-review[data-v="pk"][data-p="3"] .tr-rv-send{ display: none; }
.tr-review[data-v="pk"][data-p="3"] .tr-rv-stamp{ display: inline-flex; }
.tr-review[data-p="0"] .tr-rv-pill, .tr-review[data-p="1"] .tr-rv-pill,
.tr-review[data-p="0"] .tr-rv-vline, .tr-review[data-p="1"] .tr-rv-vline,
.tr-review[data-p="0"] .tr-rv-send, .tr-review[data-p="1"] .tr-rv-send{ opacity: 0; visibility: hidden; }
.tr-review[data-p="2"] .tr-rv-pill, .tr-review[data-p="3"] .tr-rv-pill{ transform: none; }

/* B10 fallback — the allocation change (Manage · user · Funds tab) */
.tr-al{ flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.tr-al-head{ padding: 22px 44px 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.tr-al-crumb{ font-size: 15px; color: var(--text-2); padding-bottom: 14px; }
.tr-al-crumb b{ color: var(--text); font-weight: 650; }
.tr-al-tabs{ display: flex; gap: 22px; }
.tr-al-tabs span{ font-size: 14px; font-weight: 600; color: var(--text-3); padding: 0 2px 12px; border-bottom: 2px solid transparent; }
.tr-al-tabs span.is-cur{ color: var(--text); border-bottom-color: var(--tr-role); }
.tr-al-body{ flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 34%; gap: 26px; padding: 30px 44px; align-content: start; }
.tr-al-card.fund-card{ margin: 0; padding: 24px 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.tr-al-total{
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border);
  transition: background .25s, color .25s, border-color .25s;
}
.tr-al-total b{ font-size: 18px; font-weight: 700; color: var(--text); }
.tr-al-total.is-off{ background: var(--danger-bg, var(--warn-bg)); border-color: var(--danger, var(--warn)); color: var(--danger); }
.tr-al-total.is-off b{ color: var(--danger); }
.tr .tr-al-total-ck{ display: none; color: var(--ok); }   /* outranks .tr svg{display:block} */
.tr-alloc[data-p="2"] .tr-al-total.is-ok{ background: var(--ok-bg); border-color: var(--ok-br); color: var(--ok); }
.tr-alloc[data-p="2"] .tr-al-total.is-ok b{ color: var(--ok); }
.tr-alloc[data-p="2"] .tr-al-total.is-ok .tr-al-total-ck{ display: block; }
.tr-al-rows{ display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.tr-al-row{
  display: grid; grid-template-columns: 44px 1fr 220px 92px; align-items: center; gap: 16px;
  padding: 9px 10px; margin: 0 -10px; border-radius: var(--radius); transition: background .25s;
}
.tr-al-row.is-cur{ background: var(--surface-2); }
.tr-al-row .fund-chip{ justify-self: start; }
.tr-al-fname{ font-size: 15px; font-weight: 600; color: var(--text); }
.tr-al-bar{ position: relative; display: block; height: 8px; border-radius: 4px; background: var(--surface-3); }
.tr-al-fill{ position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); border-radius: 4px; background: var(--c); transition: width .5s var(--tr-e1); }
.tr-al-input{
  justify-self: end; display: inline-flex; align-items: baseline; gap: 3px; min-width: 76px; height: 34px; padding: 0 10px;
  border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); font-variant-numeric: tabular-nums;
  align-items: center; justify-content: flex-end; color: var(--text-2); font-size: 14px; transition: border-color .2s, box-shadow .2s;
}
.tr-al-input b{ font-size: 17px; font-weight: 650; color: var(--text); }
.tr-al-row.is-cur .tr-al-input{ border-color: var(--tr-role); box-shadow: 0 0 0 3px var(--tr-role-bg); }
.tr-al-eff{ display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.tr-al-eff-l{ font-size: 14px; font-weight: 600; color: var(--text); }
.tr-al-date{
  position: relative; display: inline-flex; align-items: center; min-width: 150px; height: 34px; padding: 0 12px;
  border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface);
  font-size: 15px; font-variant-numeric: tabular-nums; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.tr-al-date.is-cur{ border-color: var(--tr-role); box-shadow: 0 0 0 3px var(--tr-role-bg); }
.tr-al-date-v:empty::before{ content: 'YYYY-MM-DD'; color: var(--text-3); }
.tr-al-caret{ width: 1px; height: 18px; margin-left: 2px; background: var(--text); opacity: 0; }
.tr-al-date.is-cur .tr-al-caret{ opacity: 1; animation: tr-caret 1s steps(2, start) infinite; }
@keyframes tr-caret{ to{ opacity: 0; } }
.tr-al-eff-hint{ font-size: 13px; color: var(--text-3); }
.tr-al-actions{ display: flex; align-items: center; gap: 14px; margin-top: 22px; min-height: 36px; }
.tr-al-save{ flex: none; padding: 9px 16px; font-size: 13px; transition: transform .12s var(--tr-e2), opacity .2s; }
.tr-al-save.is-press{ transform: scale(.96); }
.tr-alloc[data-p="2"] .tr-al-save{ opacity: .45; }
.tr-al-saved{
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--radius);
  background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-br); font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(4px); transition: opacity .3s var(--tr-e1), transform .3s var(--tr-e1);
}
.tr-alloc[data-p="2"] .tr-al-saved{ opacity: 1; transform: none; }
.tr-al-hist{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-1, none); }
.tr-al-hist-h{ font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.tr-al-hrow{
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "date split" "who split"; column-gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(8px); transition: opacity .36s var(--tr-e1), transform .36s var(--tr-e1);
}
.tr-al-hrow:last-child{ border-bottom: 0; }
.tr-al-hrow.is-in{ opacity: 1; transform: none; }
.tr-al-hdate{ grid-area: date; font-size: 15px; font-weight: 600; color: var(--text); }
.tr-al-hsplit{ grid-area: split; align-self: center; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text-2); padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.tr-al-hwho{ grid-area: who; font-size: 13px; color: var(--text-3); margin-top: 2px; }
.tr-alloc .tr-al{ transition: opacity .26s var(--tr-e2), filter .26s var(--tr-e2); }
.tr-alloc.is-seam .tr-al{ opacity: 0; filter: blur(5px); }

/* B11 fallback — the split report: two periods, one page */
.tr-sp{ flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 28px 44px; }
.tr-sp-paper{
  width: 100%; max-width: 1080px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2); padding: 28px 36px 24px;
  transition: opacity .26s var(--tr-e2), filter .26s var(--tr-e2);
}
.tr-split.is-seam .tr-sp-paper{ opacity: 0; filter: blur(5px); }
.tr-sp-h{ font-size: 20px; font-weight: 700; letter-spacing: -.015em; color: var(--text); }
.tr-sp-sub{ font-size: 13.5px; color: var(--text-2); margin-top: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.tr-sp-cols{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 18px; }
.tr-sp-col{ opacity: 0; transform: translateY(10px); transition: opacity .44s var(--tr-e1), transform .44s var(--tr-e1); }
.tr-sp-col[data-c="0"]{ padding-right: 28px; border-right: 1px solid var(--border); }
.tr-split[data-p="1"] .tr-sp-col[data-c="0"], .tr-split[data-p="2"] .tr-sp-col, .tr-split[data-p="3"] .tr-sp-col{ opacity: 1; transform: none; }
.tr-sp-col-h{ font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.tr-sp-col-t{ font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; margin-top: 2px; }
.tr-sp-rows{ display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.tr-sp-row{ display: grid; grid-template-columns: 1fr 62px 92px 118px 104px; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.tr-sp-row:last-child{ border-bottom: 0; }
.tr-sp-fname{ font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-sp-hours{ font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; }
.tr-sp-nums{ font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
.tr-sp-nums b{ color: var(--text); font-weight: 650; }
.tr-sp-bar{ position: relative; display: block; height: 8px; border-radius: 4px; background: var(--surface-3); }
.tr-sp-fill{ position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 4px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .78s var(--tr-e1) calc(var(--i) * 70ms + .2s); }
.tr-sp-tick{ position: absolute; top: -3px; bottom: -3px; left: var(--t); width: 2px; border-radius: 1px; background: var(--text); transform: scaleY(0); transition: transform .4s var(--tr-e1) calc(.98s + var(--i) * 70ms); }
.tr-split[data-p="1"] .tr-sp-col[data-c="0"] .tr-sp-fill, .tr-split[data-p="2"] .tr-sp-fill, .tr-split[data-p="3"] .tr-sp-fill{ transform: scaleX(1); }
.tr-split[data-p="1"] .tr-sp-col[data-c="0"] .tr-sp-tick, .tr-split[data-p="2"] .tr-sp-tick, .tr-split[data-p="3"] .tr-sp-tick{ transform: scaleY(1); }
.tr-sp-chip{ justify-self: end; opacity: 0; transform: scale(.9); transition: opacity .24s var(--tr-e1) calc(var(--i) * 70ms), transform .24s var(--tr-e1) calc(var(--i) * 70ms); }
.tr-sp-chip .ui-diff{ font-size: 13px; }
.tr-split[data-p="3"] .tr-sp-chip{ opacity: 1; transform: none; }
.tr-sp-foot{ margin-top: 12px; font-size: 12.5px; color: var(--text-3); }

/* B22 fallback — open as another user. Top bar, picker, acting banner.
   The banner is unmissable but calm: role tint, no alarm colour. */
.tr-aa{ flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; background: var(--bg); }
.tr-actas .tr-aa{ transition: opacity .26s var(--tr-e2), filter .26s var(--tr-e2); }
.tr-actas.is-seam .tr-aa{ opacity: 0; filter: blur(5px); }
.tr-aa-top{ display: flex; align-items: center; gap: 24px; height: 58px; flex: none; padding: 0 26px; background: var(--nav); color: var(--nav-fg); }
.tr-aa-brand{ font-size: 15px; font-weight: 700; letter-spacing: -.012em; }
.tr-aa-nav{ display: flex; gap: 18px; font-size: 13px; font-weight: 600; color: var(--nav-fg-2); }
.tr-aa-nav .is-cur{ color: var(--nav-fg); }
.tr-aa-open{
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px;
  border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--nav-fg) 34%, transparent);
  font-size: 13px; font-weight: 650; transition: background .2s linear, border-color .2s linear;
}
.tr-actas[data-p="1"] .tr-aa-open{ background: color-mix(in srgb, var(--nav-fg) 16%, transparent); border-color: var(--nav-fg); }
.tr-aa-who{ display: flex; flex-direction: column; text-align: right; line-height: 1.2; }
.tr-aa-who-n{ font-size: 13px; font-weight: 700; }
.tr-aa-who-r{ font-size: 11px; color: var(--nav-fg-2); }
.tr-aa-banner{
  display: flex; align-items: center; gap: 12px; flex: none; overflow: hidden;
  padding: 0 26px; max-height: 0; opacity: 0;
  background: var(--tr-role-bg); color: var(--text);
  border-bottom: 1px solid color-mix(in srgb, var(--tr-role) 45%, var(--border));
  transition: max-height .34s var(--tr-e1), opacity .28s var(--tr-e1), padding .34s var(--tr-e1);
}
.tr-actas[data-p="2"] .tr-aa-banner{ max-height: 68px; padding: 13px 26px; opacity: 1; }
.tr-aa-banner-ic{ display: inline-flex; color: var(--tr-role-ink); }
.tr-aa-banner-t{ font-size: 14px; line-height: 1.35; }
.tr-aa-banner-t b{ font-weight: 700; color: var(--text); }
.tr-aa-exit{
  margin-left: auto; flex: none; padding: 6px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border-2); color: var(--text);
  font-size: 13px; font-weight: 650; transition: transform .14s var(--tr-e2), background .2s linear;
}
.tr-actas.is-exit .tr-aa-exit{ transform: scale(.95); background: var(--surface-3); }
.tr-aa-body{ flex: 1; min-height: 0; padding: 26px; }
.tr-aa-ghost{ display: flex; flex-direction: column; gap: 14px; }
.tr-aa-ghost i{ display: block; height: 36px; width: var(--w); border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.tr-aa-pick{
  position: absolute; top: 66px; right: 26px; width: 390px; z-index: 2;
  padding: 10px; border-radius: var(--radius-lg, 12px);
  background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow-3);
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right; pointer-events: none;
  transition: opacity .26s var(--tr-e1), transform .26s var(--tr-e1);
}
.tr-actas[data-p="1"] .tr-aa-pick{ opacity: 1; transform: none; }
.tr-aa-pick-s{
  display: flex; align-items: center; gap: 9px; margin-bottom: 8px; padding: 9px 11px;
  border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text-3);
}
.tr-aa-pick-q{ font-size: 14px; color: var(--text); font-weight: 600; }
.tr-aa-caret{ width: 1px; height: 16px; background: var(--text); animation: tr-caret 1s steps(2, start) infinite; }
.tr-aa-pick-rows{ display: flex; flex-direction: column; gap: 2px; }
.tr-aa-pick-row{
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n r" "s r";
  column-gap: 12px; padding: 9px 11px; border-radius: var(--radius);
  transition: background .2s linear, opacity .24s var(--tr-e1);
}
.tr-aa-pick-row.is-cur{ background: var(--tr-role-bg); }
.tr-aa-pick-row.is-hid{ opacity: .24; }
.tr-aa-pick-n{ grid-area: n; font-size: 14px; font-weight: 650; color: var(--text); }
.tr-aa-pick-s2{ grid-area: s; font-size: 12px; color: var(--text-3); }
.tr-aa-pick-r{ grid-area: r; align-self: center; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }

/* ── 4. THE CLOSING CHOOSER ───────────────────────────────────────── */
.tr-chooser{ pointer-events: auto; }
.tr-ch-tiles{
  display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: 20px;
  width: 100%; padding: 0 5%; justify-content: center; align-items: stretch;
}
.tr-tile-cta{
  --i: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
  padding: 20px 20px 18px; min-height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl, 16px);
  box-shadow: var(--shadow-2); color: var(--text); font: inherit; cursor: pointer; text-decoration: none;
  opacity: 0; transform: translateY(24px);
  transition: opacity .48s var(--tr-e1) calc(var(--i) * 90ms), transform .48s var(--tr-e1) calc(var(--i) * 90ms), border-color .2s, box-shadow .2s;
}
.tr-tile-cta:nth-child(2){ --i: 1; }
.tr-tile-cta:nth-child(3){ --i: 2; }
.tr-card.is-in .tr-tile-cta{ opacity: 1; transform: none; }
.tr-tile-cta:hover{ border-color: var(--border-2); box-shadow: var(--shadow-3); }
.tr-tile-cta.is-primary{ background: var(--nav); color: var(--nav-fg); border-color: var(--nav); box-shadow: var(--shadow-3); }
.tr-card.is-in .tr-tile-cta.is-primary{ transform: translateY(-8px); }
.tr-tile-thumb{ width: 100%; border-radius: var(--radius); overflow: hidden; margin-bottom: 6px; }
.tr-tile-thumb svg{ width: 100%; height: auto; display: block; }
.tr-tile-t{ font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.tr-tile-l{ font-size: 14px; color: var(--text-2); }
.tr-tile-cta.is-primary .tr-tile-l{ color: var(--nav-fg-2); }
.tr-tile-cta-line{ display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.tr-tile-cta.is-primary .tr-tile-cta-line{ color: var(--nav-fg); }

/* ── 5. THE KEY-POINT BAND ────────────────────────────────────────── */
.tr-band{
  position: relative; height: var(--tr-band); margin-top: var(--tr-gap); flex: none;
  border-top: 1px solid var(--border); background: var(--bg);
}
.tr-band-in{
  position: absolute; inset: 0; display: flex; align-items: center; gap: 36px; padding: 0 4px;
  opacity: 0; transform: translateY(2px);
  transition: opacity .16s linear, transform .16s var(--tr-e1);
}
.tr-band-in.is-in{ opacity: 1; transform: none; }
.tr-band-in.is-out{ opacity: 0 !important; transition: opacity .2s var(--tr-e2); }
.tr-act{
  display: flex; align-items: center; gap: 10px; flex: none; min-width: var(--tr-act-w);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2);   /* text-3 measured 4.33:1 on the light ground */
}
.tr-act-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--tr-role); transition: background .5s linear; }
.tr-points{ list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px var(--tr-pt-gap); }
.tr-pt{
  position: relative; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: var(--tr-pt); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--text);
  opacity: .32; transition: opacity .36s var(--tr-e1);
}
.tr-pt-dot{
  width: 6px; height: 6px; border-radius: 50%; background: var(--tr-role);
  opacity: 0; transform: translateY(10px);
  transition: opacity .36s var(--tr-e1), transform .36s var(--tr-e1), background .5s linear;
}
.tr-pt-ul{
  position: absolute; left: 16px; right: 0; bottom: -7px; height: 2px; border-radius: 1px;
  background: var(--tr-role); transform: scaleX(0); transform-origin: left;
}
.tr-pt.is-on{ opacity: 1; }
.tr-pt.is-on .tr-pt-dot{ opacity: 1; transform: none; }
.tr-pt.is-on .tr-pt-ul{ transform: scaleX(1); transition: transform var(--ul-dur, 4000ms) linear; }
.tr-pt.is-past{ opacity: .68; }   /* .6 measured 4.49:1 on the light ground at the 16px tier */
.tr-pt.is-past .tr-pt-dot{ opacity: 1; transform: none; }
.tr-pt.is-past .tr-pt-ul{ transform: scaleX(1); transition: none; }
/* the Sent-Back Hold: the band collapses to the one point */
.tr-band-in.is-hold .tr-pt:not(.is-on){ opacity: .12; }

/* ── 6. THE TRANSPORT ─────────────────────────────────────────────── */
.tr-transport{
  height: var(--tr-transport); flex: none; display: flex; align-items: center; gap: 18px;
  font-size: 12px; color: var(--text-2); opacity: 1; transition: opacity .3s linear;
}
.tr.is-playing:not(.is-awake) .tr-transport{ opacity: .55; }
.tr-transport:hover, .tr-transport:focus-within{ opacity: 1; }
.tr-tp-left, .tr-tp-right{ display: flex; align-items: center; gap: 4px; flex: none; }
.tr-btn{
  width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--text);
  border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font: inherit;
}
.tr-btn:hover{ background: var(--surface-3); }
.tr-btn-sm{ color: var(--text-2); }
.tr-btn:focus-visible, .tr-link:focus-visible, .tr-seg:focus-visible, .tr-tile-cta:focus-visible{
  outline: 2px solid var(--ring, var(--accent)); outline-offset: 2px;
}
.tr-time{ margin-left: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.tr-rail{ flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; gap: 8px; }
.tr-seg{
  position: relative; height: 100%; min-width: 20px; padding: 0; border: 0; background: transparent;
  display: flex; align-items: center; cursor: pointer;
}
.tr-seg-track{ position: relative; display: block; width: 100%; height: 2px; border-radius: 1px; background: var(--border-2); transition: height .15s; }
.tr-seg:hover .tr-seg-track{ height: 4px; }
.tr-seg-fill{
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 1px;
  background: var(--text-3); transform: scaleX(0); transform-origin: left; transition: background .5s linear;
}
.tr-seg.is-cur .tr-seg-fill{ background: var(--tr-role); }
.tr-rail-tick{ position: absolute; top: -2px; width: 1px; height: 6px; background: var(--border-2); }
.tr-seg-tip{
  position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%);
  padding: 3px 8px; border-radius: 999px; background: var(--nav); color: var(--nav-fg);
  font-size: 11px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.tr-seg:hover .tr-seg-tip, .tr-seg:focus-visible .tr-seg-tip{ opacity: 1; }
.tr-tp-act{ white-space: nowrap; color: var(--text-2); margin-right: 10px; }
.tr-link{
  border: 0; background: transparent; color: var(--accent-ink); font: inherit; font-weight: 600;
  padding: 4px 7px; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.tr-link:hover{ background: var(--accent-bg); }

/* ── 7. NARROW VIEWPORTS (phones) ─────────────────────────────────── */
.tr.is-narrow .tr-stack{ width: 100%; padding: 8px 12px 0; }
.tr.is-narrow .tr-band{ height: auto; min-height: var(--tr-band); padding: 10px 0; }
.tr.is-narrow .tr-band-in{ position: relative; flex-wrap: wrap; gap: 8px 16px; }
.tr.is-narrow .tr-act{ min-width: 0; width: 100%; }
.tr.is-narrow .tr-pt{ font-size: 15px; white-space: normal; }
.tr.is-narrow .tr-transport{ height: auto; flex-wrap: wrap; gap: 8px 12px; padding-bottom: 8px; }
.tr.is-narrow .tr-rail{ order: 3; width: 100%; flex: none; height: 24px; }
.tr.is-narrow .tr-tp-act{ display: none; }
@media (max-width: 1023px){
  .tr-ch-tiles{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 3%; }
  .tr-tile-t{ font-size: 16px; }
  .tr-tile-l{ font-size: 12.5px; }
}

/* ── 8. REDUCED MOTION — every frame readable at rest ─────────────── */
@media (prefers-reduced-motion: reduce){
  .tr, .tr *, .tr *::before, .tr *::after{ transition-duration: .2s !important; transition-delay: 0s !important; animation: none !important; }
  .tr-reveal{ clip-path: none; transform: none; }
  .tr-host.is-dimmed{ filter: none; }
  .tr-layer.is-out .dr-port{ filter: none; }
  .tr-pt-ul, .tr-m-ul, .tr-ch-rule, .tr-daybar-seg, .tr-rv-fill, .tr-rv-tick, .tr-sp-fill, .tr-sp-tick, .tr-al-fill,
  .tr-leave-slices i, .tr-leave-fill, .tr-audit-rule{ transition: none !important; }
  .tr-pt.is-on .tr-pt-ul, .tr-pt.is-past .tr-pt-ul, .tr-m-ul, .tr-ch-rule, .tr-daybar-seg, .tr-sp-fill, .tr-sp-tick{ transform: none; }
  .tr-cursor{ animation: none !important; }
  .tr-secrow, .tr-sp-col, .tr-al-hrow, .tr-leave-blk, .tr-leave-add, .tr-safe-st, .tr-safe-toast, .tr-aa-pick{ transform: none; }
  .tr-safe-log{ clip-path: none; }
  .tr-al-caret, .tr-aa-caret{ animation: none !important; }
  .tr-moment{ transform: none; }
}
.tr.is-reduced .tr-leave-slices i, .tr.is-reduced .tr-leave-fill{ transition: none !important; }
.tr.is-reduced .tr-safe-log{ clip-path: none; }
.tr.is-reduced .tr-aa-caret{ animation: none; }
.tr.is-reduced .tr-reveal{ clip-path: none; transform: none; }
.tr.is-reduced .tr-pt-ul, .tr.is-reduced .tr-m-ul, .tr.is-reduced .tr-ch-rule, .tr.is-reduced .tr-daybar-seg{ transition: none !important; transform: none; }
.tr.is-reduced .tr-host.is-dimmed{ filter: none; }
.tr.is-reduced .tr-cursor{ animation: none; }
