/* ═══════════════════════════════════════════════════════════════════
   TRENSLI — FEATURE VIGNETTES  v3
   Six components, six different shapes, built from real product screens:
   01 recipe standard  ·  02 training path + video  ·  03 role fan-out
   04 location branch  ·  05 Ask conversation      ·  06 change pipeline
   Transparent background, uniform 580px band, animated on scroll.
   Paste this <style> once, then drop a .tv-frame into each slot.
   All names, locations and people are fictional demo data.
   ═══════════════════════════════════════════════════════════════════ */
.tv-frame{
  --ink:#111827; --g700:#374151; --g600:#4B5563; --g500:#6B7280; --g400:#9CA3AF; --g300:#D1D5DB; --g200:#E5E7EB; --g100:#F3F4F6;
  --bd:#EAEAE8; --ln:#F0F0EE;
  --grn:#10B981; --grnh:#059669; --grnp:#ECFDF5; --grnm:#D1FAE5;
  --blu:#2563EB; --blup:#EFF6FF; --blum:#DBEAFE;
  --wrn:#D97706; --wrnp:#FFFBEB; --wrnm:#FDE68A;
  --red:#DC2626; --redp:#FEF2F2; --redm:#FECACA;
  --pur:#7C3AED; --purp:#F5F3FF;
  --card:0 1px 2px rgba(17,24,39,.03),0 8px 26px rgba(17,24,39,.06);
  font-family:Inter,system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased;
  background:transparent;color:var(--ink);container-type:inline-size;
  box-sizing:border-box;height:580px;display:flex;flex-direction:column;justify-content:center;
}
.tv-frame *{box-sizing:border-box;margin:0;padding:0}
.tv-frame img{display:block;max-width:100%}
/* plain-English line above every scene */
.tv-cap{flex:0 0 auto;font-size:12px;line-height:1.5;color:var(--g500);padding:0 2px;margin-bottom:12px}
.tv-cap b{color:var(--ink);font-weight:650}
.tv-stage{position:relative;flex:0 0 auto}
/* who this screen belongs to — shown on every scene so the role is obvious */
.tv-role{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--bd);border-radius:999px;padding:4px 10px 4px 4px;font-size:10px;font-weight:700;color:var(--g600);box-shadow:var(--card);margin-bottom:9px}
.tv-role i{font-style:normal;width:19px;height:19px;border-radius:50%;background:var(--ink);color:#fff;font-size:9.5px;font-weight:800;display:grid;place-items:center}
.tv-role em{font-style:normal;color:var(--g400);font-weight:600}
.tv-chat .ask-hd{display:flex;align-items:center;gap:7px;padding-bottom:9px;margin-bottom:2px;border-bottom:1px solid var(--ln)}
.tv-chat .ask-hd .av{width:22px;height:22px;border-radius:50%;background:var(--ink);color:#fff;font-size:9.5px;font-weight:800;display:grid;place-items:center}
.tv-chat .ask-hd b{font-size:11px;font-weight:700;display:block}
.tv-chat .ask-hd small{font-size:9.5px;color:var(--g400);display:block}
.tv-chat .ask-hd .tv-pill{margin-left:auto}
/* who this screen belongs to — shown on every scene so the role is obvious */
.tv-role{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--bd);border-radius:999px;padding:4px 10px 4px 4px;font-size:10px;font-weight:700;color:var(--g600);box-shadow:var(--card);margin-bottom:9px}
.tv-role i{font-style:normal;width:19px;height:19px;border-radius:50%;background:var(--ink);color:#fff;font-size:9.5px;font-weight:800;display:grid;place-items:center}
.tv-role em{font-style:normal;color:var(--g400);font-weight:600}
.tv-chat .ask-hd{display:flex;align-items:center;gap:7px;padding-bottom:9px;margin-bottom:2px;border-bottom:1px solid var(--ln)}
.tv-chat .ask-hd .av{width:22px;height:22px;border-radius:50%;background:var(--ink);color:#fff;font-size:9.5px;font-weight:800;display:grid;place-items:center}
.tv-chat .ask-hd b{font-size:11px;font-weight:700;display:block}
.tv-chat .ask-hd small{font-size:9.5px;color:var(--g400);display:block}
.tv-chat .ask-hd .tv-pill{margin-left:auto}

/* ══ shared atoms ══ */
.tv-pill{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font-size:9.5px;font-weight:700;border:1px solid transparent;white-space:nowrap}
.pg{background:var(--grnp);color:var(--grnh);border-color:var(--grnm)}
.pb{background:var(--blup);color:var(--blu);border-color:var(--blum)}
.pw{background:var(--wrnp);color:var(--wrn);border-color:var(--wrnm)}
.pr{background:var(--redp);color:var(--red);border-color:var(--redm)}
.pn{background:var(--g100);color:var(--g500);border-color:var(--bd)}
.tv-eyebrow{font-size:9.5px;font-weight:800;letter-spacing:.085em;text-transform:uppercase;color:var(--g400)}
.tv-tag{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:600;color:var(--g600);background:#fff;border:1px solid var(--bd);border-radius:7px;padding:4px 8px}
.tv-tag i{font-style:normal;font-size:9.5px;width:14px;height:14px;border-radius:4px;display:grid;place-items:center;flex:0 0 auto}
.i-p{background:var(--purp);color:var(--pur)}.i-g{background:var(--grnp);color:var(--grnh)}
.i-b{background:var(--blup);color:var(--blu)}.i-d{background:var(--ink);color:#fff}
/* video thumbnail — the pattern used all through the product */
.tv-vid{position:relative;border-radius:10px;overflow:hidden;background:#111827;display:block;width:100%}
.tv-vid img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.72}
.tv-vid:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(17,24,39,.1),rgba(17,24,39,.68))}
.tv-vid .play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:34px;height:34px;border-radius:50%;background:#fff;color:#111827;display:grid;place-items:center;font-size:12px;z-index:2;box-shadow:0 4px 14px rgba(0,0,0,.3)}
.tv-vid .dur{position:absolute;right:8px;top:8px;z-index:2;background:rgba(17,24,39,.72);color:#fff;padding:3px 6px;border-radius:5px;font-size:9.5px;font-weight:700}
.tv-vid .vt{position:absolute;left:10px;bottom:9px;z-index:2;color:#fff;font-size:10.5px;font-weight:700;line-height:1.3}
.tv-vid .vt small{display:block;font-weight:500;font-size:9.5px;color:#D1D5DB;margin-top:2px}
/* short video cards: smaller play button, raised, so it never sits on the title */
.tv-col .tv-vid .play{width:28px;height:28px;font-size:10px;top:38%}

/* spec rows — how a build reads in the app */
.tv-spec .sr{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6.5px 0;border-bottom:1px solid var(--ln);font-size:11px;color:var(--g600)}
.tv-spec .sr:last-child{border-bottom:none}
.tv-spec .sr strong{font-weight:650;color:var(--ink);display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.tv-spec .sr.changed strong{color:var(--grnh)}
/* numbered method steps */
.tv-mstep{display:flex;gap:8px;font-size:10.5px;color:var(--g600);line-height:1.45;margin-top:7px}
.tv-mstep .n{width:17px;height:17px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:9.5px;font-weight:800;flex:0 0 auto}

/* ══ 01 · RECIPE STANDARD ══ */
.tv-record{background:#fff;border:1px solid var(--bd);border-radius:13px;box-shadow:var(--card);overflow:hidden}
.tv-record .top{display:grid;grid-template-columns:172px minmax(0,1fr)}
.tv-record .media{padding:13px;display:grid;gap:9px;align-content:start;background:#FCFCFB;border-right:1px solid var(--ln)}
.tv-record .photo{height:172px;border-radius:10px;overflow:hidden;background:#111827}
.tv-record .photo img{width:100%;height:100%;object-fit:cover}
.tv-record .media .tv-vid{height:126px}
.tv-record .info{padding:11px 15px}
.tv-record .ttl{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.tv-record .ttl h4{font-size:15.5px;font-weight:750;letter-spacing:-.02em;line-height:1.2}
.tv-record .ttl .sub{font-size:10px;color:var(--g400);margin-top:3px}
.tv-record .stamp{flex:0 0 auto;text-align:center;border:1px solid var(--grnm);background:var(--grnp);border-radius:8px;padding:5px 9px}
.tv-record .stamp b{display:block;font-size:14px;font-weight:800;color:var(--grnh);line-height:1}
.tv-record .stamp span{display:block;font-size:9.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--grnh);opacity:.8;margin-top:2px}
.tv-record .blk{margin-top:9px}
.tv-record .blk .tv-eyebrow{display:block;margin-bottom:4px}
.tv-record .two{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:9px}
.tv-record .kv{background:#FCFCFB;border:1px solid var(--ln);border-radius:8px;padding:7px 9px}
.tv-record .kv label{display:block;font-size:9.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--g400)}
.tv-record .kv div{font-size:11px;font-weight:650;margin-top:2px}
.tv-record .ft{padding:8px 15px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;background:#FCFCFB;border-top:1px solid var(--ln)}
.tv-record .ft .lb{font-size:9.5px;color:var(--g500);font-weight:600;margin-right:2px}

/* ══ 02 · TRAINING PATH ══ */
.tv-path{background:#fff;border:1px solid var(--bd);border-radius:13px;box-shadow:var(--card);padding:14px 15px}
.tv-path .ph{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:11px}
.tv-path .ph b{font-size:13px;font-weight:750}
.tv-path .ph .who{font-size:9.5px;color:var(--g400);margin-top:2px;font-weight:500;display:block}
.tv-path .ph .pct{font-size:11px;color:var(--grnh);font-weight:800;text-align:right;white-space:nowrap}
.tv-path .ph .pct small{display:block;color:var(--g400);font-weight:600;font-size:9.5px}
.tv-lesson{display:grid;grid-template-columns:128px minmax(0,1fr);gap:11px;border:1px solid var(--grnm);background:var(--grnp);border-radius:11px;padding:10px;margin-bottom:11px}
.tv-lesson .tv-vid{height:80px}
.tv-lesson .lt{font-size:11.5px;font-weight:750;line-height:1.3}
.tv-lesson .ls{font-size:10px;color:var(--g600);line-height:1.45;margin-top:4px}
.tv-lesson .lm{display:flex;gap:5px;margin-top:7px;flex-wrap:wrap}
.tv-lesson .lm span{font-size:9.5px;font-weight:700;background:#fff;border:1px solid var(--grnm);color:var(--grnh);border-radius:5px;padding:3px 6px}
.tv-steps{position:relative;padding-left:24px}
.tv-steps:before{content:'';position:absolute;left:7px;top:6px;bottom:10px;width:2px;background:var(--g100);border-radius:2px}
.tv-steps .fill{position:absolute;left:7px;top:6px;width:2px;height:46%;background:var(--grn);border-radius:2px}
.tv-step{position:relative;padding:0 0 10px}
.tv-step:last-child{padding-bottom:0}
.tv-step .nd{position:absolute;left:-24px;top:0;width:17px;height:17px;border-radius:50%;background:#fff;border:2px solid var(--g200);display:grid;place-items:center;font-size:9.5px;font-weight:800;color:#fff}
.tv-step.done .nd{background:var(--grn);border-color:var(--grn)}
.tv-step.now .nd{border-color:var(--grn);color:var(--grnh);background:#fff;box-shadow:0 0 0 3px var(--grnp)}
.tv-step.lock .nd{background:var(--g100);border-color:var(--g200);color:var(--g400);font-size:9.5px}
.tv-step .t{font-size:11.5px;font-weight:650;line-height:1.3;display:flex;justify-content:space-between;gap:10px}
.tv-step .t em{font-style:normal;font-size:10px;color:var(--g400);font-weight:600;white-space:nowrap}
.tv-step .d{font-size:10px;color:var(--g400);margin-top:2px;line-height:1.4}
.tv-step.lock .t,.tv-step.lock .d{color:var(--g400)}
.tv-checkin{display:flex;align-items:center;gap:9px;margin-top:11px;padding:9px 11px;border:1px solid var(--blum);background:var(--blup);border-radius:10px}
.tv-checkin .ic{width:26px;height:26px;border-radius:8px;background:#fff;border:1px solid var(--blum);color:var(--blu);display:grid;place-items:center;font-size:12px;flex:0 0 auto}
.tv-checkin b{display:block;font-size:11px;color:#1E3A8A}
.tv-checkin span{display:block;font-size:9.5px;color:var(--blu);margin-top:2px}

/* ══ 03 · ROLE FAN-OUT ══ */
.tv-fan .src{background:var(--ink);color:#fff;border-radius:11px;padding:9px 12px;display:flex;align-items:center;gap:11px}
.tv-fan .src .th{width:44px;height:36px;border-radius:8px;overflow:hidden;flex:0 0 auto}
.tv-fan .src .th img{width:100%;height:100%;object-fit:cover}
.tv-fan .src b{font-size:13px;font-weight:700;display:block}
.tv-fan .src small{font-size:9.5px;opacity:.62;display:block;margin-top:2px}
.tv-fan .src .tv-pill{margin-left:auto;background:rgba(255,255,255,.13);color:#fff;border-color:rgba(255,255,255,.2)}
.tv-split{display:flex;align-items:center;justify-content:center;height:16px;position:relative}
.tv-split:before{content:'';position:absolute;top:0;height:8px;width:2px;background:var(--g200)}
.tv-split:after{content:'';position:absolute;top:8px;height:2px;left:16.6%;right:16.6%;background:var(--g200)}
.tv-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tv-col{background:#fff;border:1px solid var(--bd);border-radius:11px;box-shadow:var(--card);position:relative}
.tv-col:before{content:'';position:absolute;top:-8px;left:50%;width:2px;height:8px;background:var(--g200)}
.tv-col .ch{padding:8px 10px;border-bottom:1px solid var(--ln);display:flex;align-items:center;gap:6px;background:#FCFCFB;border-radius:11px 11px 0 0}
.tv-col .av{width:19px;height:19px;border-radius:6px;background:var(--ink);color:#fff;font-size:9.5px;font-weight:800;display:grid;place-items:center;flex:0 0 auto}
.tv-col .ch b{font-size:10.5px;font-weight:750;display:block}
.tv-col .ch small{font-size:9.5px;color:var(--g400);display:block;margin-top:1px}
.tv-col .cb{padding:9px 10px}
.tv-col .cb .tv-eyebrow{display:block;margin-bottom:4px}
.tv-col .cb p{font-size:10px;color:var(--g600);line-height:1.5}
.tv-col .tv-vid{height:56px;margin-bottom:8px}
.tv-col .tv-vid .vt{font-size:9.5px;left:8px;bottom:6px}
.tv-col .chips{display:flex;gap:4px;flex-wrap:wrap;margin-top:7px}
.tv-col ul{list-style:none;margin-top:8px}
.tv-col li{font-size:9.5px;color:var(--g600);line-height:1.45;padding-left:11px;position:relative;margin-bottom:3px}
.tv-col li:before{content:'';position:absolute;left:0;top:5px;width:4px;height:4px;border-radius:50%;background:var(--grn)}
.tv-col li.no{color:var(--g400)}.tv-col li.no:before{background:var(--g300)}
.tv-col .bar{height:4px;border-radius:3px;background:var(--g100);overflow:hidden;margin-top:6px}
.tv-col .bar i{display:block;height:100%;background:var(--grn);border-radius:3px}

/* ══ 04 · LOCATION BRANCH ══ */
.tv-tree .base{background:var(--ink);color:#fff;border-radius:11px;padding:11px 13px;display:flex;gap:11px;align-items:center}
.tv-tree .base .th{width:46px;height:40px;border-radius:8px;overflow:hidden;flex:0 0 auto}
.tv-tree .base .th img{width:100%;height:100%;object-fit:cover;opacity:.85}
.tv-tree .base b{font-size:12.5px;font-weight:700;display:block}
.tv-tree .base p{font-size:10px;line-height:1.5;opacity:.72;margin-top:4px}
.tv-tree .base .tv-pill{background:rgba(255,255,255,.13);color:#fff;border-color:rgba(255,255,255,.2);flex:0 0 auto}
.tv-branch{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px;position:relative}
.tv-branch:before{content:'';position:absolute;top:-16px;left:25%;right:25%;height:2px;background:var(--g200)}
.tv-leaf{background:#fff;border:1px solid var(--bd);border-radius:11px;box-shadow:var(--card);padding:11px 12px;position:relative}
.tv-leaf:before{content:'';position:absolute;top:-8px;left:50%;width:2px;height:8px;background:var(--g200)}
.tv-leaf .lt{display:flex;justify-content:space-between;align-items:center;gap:8px}
.tv-leaf .lt b{font-size:11.5px;font-weight:750}
.tv-leaf .li{font-size:9.5px;color:var(--g400);margin-top:2px}
.tv-leaf p{font-size:10px;line-height:1.5;color:var(--g600);margin-top:7px}
.tv-leaf.same{background:#FCFCFB}.tv-leaf.same p{color:var(--g400)}
.tv-leaf.var{border-color:var(--blum);background:var(--blup)}.tv-leaf.var p{color:#1E40AF}
.tv-leaf .who{font-size:9.5px;color:var(--g400);margin-top:8px;padding-top:7px;border-top:1px solid var(--ln)}
.tv-leaf.var .who{border-color:var(--blum);color:var(--blu)}

/* ══ 05 · ASK CONVERSATION ══ */
.tv-chat{background:#fff;border:1px solid var(--bd);border-radius:13px;box-shadow:var(--card);padding:13px 14px;display:flex;flex-direction:column;gap:9px}
.tv-q{align-self:flex-end;max-width:82%;background:var(--ink);color:#fff;font-size:11px;line-height:1.45;padding:8px 11px;border-radius:12px 12px 3px 12px}
.tv-a{align-self:flex-start;width:96%;background:var(--g100);font-size:11px;line-height:1.5;padding:10px 11px;border-radius:12px 12px 12px 3px;color:var(--g700)}
.tv-a>b:first-child{color:var(--ink)}
.tv-acard{background:#fff;border:1px solid var(--bd);border-radius:9px;padding:9px 10px;margin-top:8px;display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;align-items:center}
.tv-acard .th{width:52px;height:48px;border-radius:7px;overflow:hidden}
.tv-acard .th img{width:100%;height:100%;object-fit:cover}
.tv-acard .tv-spec .sr{padding:4px 0;font-size:10.5px}
.tv-src{margin-top:8px;padding-top:7px;border-top:1px solid var(--g200);font-size:9.5px;color:var(--g500);display:flex;gap:10px;flex-wrap:wrap}
.tv-src b{color:var(--ink);font-weight:700}
.tv-mini{display:flex;gap:5px;margin-top:8px;flex-wrap:wrap}
.tv-mini span{font-size:9.5px;font-weight:650;padding:4px 7px;border-radius:6px;border:1px solid var(--bd);background:#fff;color:var(--g600)}
.tv-a.gap{background:var(--wrnp);border:1px solid var(--wrnm);color:#92400E}
.tv-a.gap>b:first-child{color:#78350F}
.tv-a.gap .tv-mini span{border-color:var(--wrnm);color:var(--wrn);background:#fff}

/* ══ 06 · CHANGE PIPELINE ══ */
.tv-pipe{background:#fff;border:1px solid var(--bd);border-radius:13px;box-shadow:var(--card);overflow:hidden}
.tv-pipe .track{display:flex;align-items:center;padding:13px 15px 11px;border-bottom:1px solid var(--ln);background:#FCFCFB}
.tv-pipe .stg{display:flex;flex-direction:column;align-items:center;gap:4px;flex:0 0 auto}
.tv-pipe .stg .d{width:15px;height:15px;border-radius:50%;background:var(--grn);color:#fff;display:grid;place-items:center;font-size:9.5px;font-weight:800}
.tv-pipe .stg.on .d{background:var(--ink);box-shadow:0 0 0 3px var(--g100)}
.tv-pipe .stg em{font-style:normal;font-size:9.5px;font-weight:750;color:var(--grnh);white-space:nowrap}
.tv-pipe .stg.on em{color:var(--ink)}
.tv-pipe .sp{flex:1;height:2px;background:var(--grnm);margin:0 3px 15px}
.tv-pipe .body{padding:12px 15px}
.tv-pipe .chg{display:grid;grid-template-columns:60px minmax(0,1fr);gap:11px;align-items:center}
.tv-pipe .chg .th{width:60px;height:58px;border-radius:9px;overflow:hidden}
.tv-pipe .chg .th img{width:100%;height:100%;object-fit:cover}
.tv-pipe .ba{display:flex;align-items:center;gap:9px}
.tv-pipe .ba .box{flex:1;border-radius:8px;padding:7px 10px;border:1px solid}
.tv-pipe .ba .was{background:var(--redp);border-color:var(--redm)}
.tv-pipe .ba .was .t{text-decoration:line-through;color:#B91C1C}
.tv-pipe .ba .now{background:var(--grnp);border-color:var(--grnm)}
.tv-pipe .ba .now .t{color:var(--grnh)}
.tv-pipe .ba .l{font-size:9.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--g400)}
.tv-pipe .ba .t{font-size:12px;font-weight:750;margin-top:2px}
.tv-pipe .ba .ar{color:var(--g300);font-size:14px;flex:0 0 auto}
.tv-pipe .cline{font-size:10px;color:var(--g500);margin-top:7px}
.tv-pipe .cline b{color:var(--ink);font-weight:650}
.tv-pipe .who{display:flex;margin-top:11px;border:1px solid var(--ln);border-radius:9px;overflow:hidden}
.tv-pipe .who div{flex:1;padding:8px 10px}
.tv-pipe .who div+div{border-left:1px solid var(--ln)}
.tv-pipe .who .k{font-size:9.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--g400)}
.tv-pipe .who .v{font-size:10.5px;font-weight:650;margin-top:3px;line-height:1.3}
.tv-pipe .who .v .tr{color:var(--grnh)}
.tv-pipe .out{padding:10px 15px;background:#FCFCFB;border-top:1px solid var(--ln);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tv-pipe .out .lb{font-size:9.5px;color:var(--g500);font-weight:600;margin-right:2px}

/* ══ shared sub-panels ══ */
.tv-sub{margin-top:9px;background:#fff;border:1px solid var(--bd);border-radius:12px;box-shadow:var(--card);overflow:hidden}
.tv-sub .sh{padding:8px 13px 7px;border-bottom:1px solid var(--ln);display:flex;justify-content:space-between;align-items:baseline;gap:10px;background:#FCFCFB}
.tv-sub .sh b{font-size:10.5px;font-weight:750}
.tv-sub .sh em{font-style:normal;font-size:9.5px;color:var(--g400)}
.tv-vr{display:flex;align-items:center;gap:9px;padding:8px 13px;border-bottom:1px solid var(--ln)}
.tv-vr:last-child{border-bottom:none}
.tv-vr .vt{flex:1;font-size:10.5px;color:var(--g600);line-height:1.35}
.tv-vr .vw{font-size:9.5px;color:var(--g400);white-space:nowrap}
.tv-imp{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--ln);border-top:1px solid var(--ln)}
.tv-imp div{background:#fff;padding:8px 13px;font-size:10px;color:var(--g600);display:flex;align-items:center;gap:7px}
.tv-imp i{font-style:normal;width:14px;height:14px;border-radius:4px;background:var(--grnp);color:var(--grnh);font-size:9.5px;display:grid;place-items:center;flex:0 0 auto}

/* ═══════════════ MOTION ═══════════════ */
@keyframes tvUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes tvDown{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:none}}
@keyframes tvIn{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:none}}
@keyframes tvPop{0%{opacity:0;transform:scale(.8)}62%{opacity:1;transform:scale(1.06)}100%{opacity:1;transform:scale(1)}}
@keyframes tvTick{0%{opacity:0;transform:scale(.3)}70%{opacity:1;transform:scale(1.18)}100%{opacity:1;transform:scale(1)}}
@keyframes tvBubble{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
@keyframes tvDrawY{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes tvDrawX{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes tvFade{from{opacity:0}to{opacity:1}}
@keyframes tvFill{from{height:0}to{height:46%}}
@keyframes tvBar{from{width:0}}
@keyframes tvPulse{0%,100%{box-shadow:0 0 0 3px var(--grnp)}50%{box-shadow:0 0 0 7px rgba(16,185,129,.14)}}
@keyframes tvGlow{0%,100%{box-shadow:0 0 0 3px var(--g100)}50%{box-shadow:0 0 0 8px rgba(17,24,39,.07)}}
@keyframes tvPlay{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(1.1)}}

/* start state — applied only once the script opts the frame in */
.tv-anim .tv-cap,.tv-anim .tv-record,.tv-anim .tv-path,.tv-anim .tv-chat,.tv-anim .tv-pipe,
.tv-anim .tv-fan .src,.tv-anim .tv-tree .base,.tv-anim .tv-col,.tv-anim .tv-leaf,
.tv-anim .tv-sub,.tv-anim .tv-role{opacity:0}
.tv-anim .tv-record .media>*,.tv-anim .tv-record .stamp,.tv-anim .tv-record .blk,
.tv-anim .tv-record .kv,.tv-anim .tv-record .ft .tv-tag,.tv-anim .tv-lesson,
.tv-anim .tv-step,.tv-anim .tv-checkin,.tv-anim .tv-col .cb>*,.tv-anim .tv-col li,
.tv-anim .tv-chat>*,.tv-anim .tv-pipe .stg,.tv-anim .tv-pipe .chg>*,
.tv-anim .tv-pipe .who div,.tv-anim .tv-pipe .out .tv-tag,
.tv-anim .tv-vr,.tv-anim .tv-imp div{opacity:0}
.tv-anim .tv-steps .fill{height:0}
.tv-anim .tv-col .bar i{width:0}
.tv-anim .tv-split:before,.tv-anim .tv-col:before,.tv-anim .tv-leaf:before{transform:scaleY(0);transform-origin:top}
.tv-anim .tv-split:after,.tv-anim .tv-branch:before,.tv-anim .tv-pipe .sp{transform:scaleX(0);transform-origin:left}

.tv-anim.in .tv-cap{animation:tvFade .5s ease both}
.tv-anim.in .tv-role{animation:tvFade .5s ease .12s both}
.tv-anim.in .tv-role{animation:tvFade .5s ease .12s both}
/* ambient — every play button breathes so the videos read as playable */
.tv-anim.in .tv-vid .play{animation:tvPlay 2.8s ease-in-out 1.4s infinite}

/* 01 — the card builds itself: photo, video, amounts, method, then history */
.tv-anim.in .tv-record{animation:tvUp .55s cubic-bezier(.22,.9,.28,1) both}
.tv-anim.in .tv-record .media>*{animation:tvUp .42s ease-out both}
.tv-anim.in .tv-record .media>*:nth-child(1){animation-delay:.24s}
.tv-anim.in .tv-record .media>*:nth-child(2){animation-delay:.36s}
.tv-anim.in .tv-record .stamp{animation:tvPop .45s cubic-bezier(.3,1.4,.5,1) .40s both}
.tv-anim.in .tv-record .blk{animation:tvUp .4s ease-out both}
.tv-anim.in .tv-record .blk:nth-of-type(1){animation-delay:.46s}
.tv-anim.in .tv-record .blk:nth-of-type(2){animation-delay:.64s}
.tv-anim.in .tv-record .kv{animation:tvUp .38s ease-out both}
.tv-anim.in .tv-record .kv:nth-child(1){animation-delay:.80s}
.tv-anim.in .tv-record .kv:nth-child(2){animation-delay:.88s}
.tv-anim.in .tv-record .ft .tv-tag{animation:tvPop .34s ease-out both}
.tv-anim.in .tv-record .ft .tv-tag:nth-child(2){animation-delay:.96s}
.tv-anim.in .tv-record .ft .tv-tag:nth-child(3){animation-delay:1.04s}
.tv-anim.in .tv-record .ft .tv-tag:nth-child(4){animation-delay:1.12s}
.tv-anim.in .tv-record .ft .tv-tag:nth-child(5){animation-delay:1.20s}

/* 02 — lesson first, then the path fills upward, then the check-in */
.tv-anim.in .tv-path{animation:tvUp .55s cubic-bezier(.22,.9,.28,1) both}
.tv-anim.in .tv-lesson{animation:tvUp .45s cubic-bezier(.22,.9,.28,1) .26s both}
.tv-anim.in .tv-steps .fill{animation:tvFill 1.1s cubic-bezier(.4,0,.2,1) .6s both}
.tv-anim.in .tv-step{animation:tvIn .4s ease-out both}
.tv-anim.in .tv-step:nth-child(2){animation-delay:.52s}
.tv-anim.in .tv-step:nth-child(3){animation-delay:.66s}
.tv-anim.in .tv-step:nth-child(4){animation-delay:.82s}
.tv-anim.in .tv-step:nth-child(5){animation-delay:.98s}
.tv-anim.in .tv-step:nth-child(6){animation-delay:1.12s}
.tv-anim.in .tv-step.now .nd{animation:tvPulse 2.6s ease-in-out 1.7s infinite}
.tv-anim.in .tv-checkin{animation:tvUp .45s ease-out 1.3s both}

/* 03 — one item drops, connectors draw, three role views fill in */
.tv-anim.in .tv-fan .src{animation:tvDown .5s cubic-bezier(.22,.9,.28,1) both}
.tv-anim.in .tv-split:before{animation:tvDrawY .2s ease-out .36s both}
.tv-anim.in .tv-split:after{animation:tvDrawX .32s ease-out .54s both}
.tv-anim.in .tv-col:before{animation:tvDrawY .18s ease-out .84s both}
.tv-anim.in .tv-col{animation:tvUp .45s cubic-bezier(.22,.9,.28,1) both}
.tv-anim.in .tv-col:nth-child(1){animation-delay:.80s}
.tv-anim.in .tv-col:nth-child(2){animation-delay:.92s}
.tv-anim.in .tv-col:nth-child(3){animation-delay:1.04s}
.tv-anim.in .tv-col .cb>*{animation:tvFade .38s ease-out both}
.tv-anim.in .tv-col .cb>*:nth-child(1){animation-delay:1.14s}
.tv-anim.in .tv-col .cb>*:nth-child(2){animation-delay:1.22s}
.tv-anim.in .tv-col .cb>*:nth-child(3){animation-delay:1.30s}
.tv-anim.in .tv-col .cb>*:nth-child(4){animation-delay:1.38s}
.tv-anim.in .tv-col li{animation:tvIn .3s ease-out both}
.tv-anim.in .tv-col li:nth-child(1){animation-delay:1.40s}
.tv-anim.in .tv-col li:nth-child(2){animation-delay:1.46s}
.tv-anim.in .tv-col li:nth-child(3){animation-delay:1.52s}
.tv-anim.in .tv-col .bar i{animation:tvBar .85s cubic-bezier(.4,0,.2,1) 1.42s both}

/* 04 — the standard lands, then branches to the locations */
.tv-anim.in .tv-tree .base{animation:tvDown .5s cubic-bezier(.22,.9,.28,1) both}
.tv-anim.in .tv-branch:before{animation:tvDrawX .38s ease-out .42s both}
.tv-anim.in .tv-leaf:before{animation:tvDrawY .18s ease-out .78s both}
.tv-anim.in .tv-leaf{animation:tvUp .46s cubic-bezier(.22,.9,.28,1) both}
.tv-anim.in .tv-leaf:nth-child(1){animation-delay:.74s}
.tv-anim.in .tv-leaf:nth-child(2){animation-delay:.88s}

/* 05 — the conversation types itself out */
.tv-anim.in .tv-chat{animation:tvUp .5s cubic-bezier(.22,.9,.28,1) both}
.tv-anim.in .tv-chat>*{animation:tvBubble .42s cubic-bezier(.22,.9,.28,1) both}
.tv-anim.in .tv-chat>*:nth-child(1){animation-delay:.22s}
.tv-anim.in .tv-chat>*:nth-child(2){animation-delay:.40s}
.tv-anim.in .tv-chat>*:nth-child(3){animation-delay:1.00s}
.tv-anim.in .tv-chat>*:nth-child(4){animation-delay:2.00s}
.tv-anim.in .tv-chat>*:nth-child(5){animation-delay:2.60s}

/* 06 — the pipeline advances, then everything downstream ticks over */
.tv-anim.in .tv-pipe{animation:tvUp .55s cubic-bezier(.22,.9,.28,1) both}
.tv-anim.in .tv-pipe .stg{animation:tvPop .36s cubic-bezier(.3,1.4,.5,1) both}
.tv-anim.in .tv-pipe .stg:nth-child(1){animation-delay:.26s}
.tv-anim.in .tv-pipe .stg:nth-child(3){animation-delay:.44s}
.tv-anim.in .tv-pipe .stg:nth-child(5){animation-delay:.62s}
.tv-anim.in .tv-pipe .stg:nth-child(7){animation-delay:.80s}
.tv-anim.in .tv-pipe .stg:nth-child(9){animation-delay:.98s}
.tv-anim.in .tv-pipe .sp{animation:tvDrawX .18s linear both}
.tv-anim.in .tv-pipe .sp:nth-child(2){animation-delay:.35s}
.tv-anim.in .tv-pipe .sp:nth-child(4){animation-delay:.53s}
.tv-anim.in .tv-pipe .sp:nth-child(6){animation-delay:.71s}
.tv-anim.in .tv-pipe .sp:nth-child(8){animation-delay:.89s}
.tv-anim.in .tv-pipe .stg.on .d{animation:tvGlow 2.6s ease-in-out 1.3s infinite}
.tv-anim.in .tv-pipe .chg>*{animation:tvUp .4s ease-out both}
.tv-anim.in .tv-pipe .chg>*:nth-child(1){animation-delay:1.10s}
.tv-anim.in .tv-pipe .chg>*:nth-child(2){animation-delay:1.20s}
.tv-anim.in .tv-pipe .who div{animation:tvUp .4s ease-out both}
.tv-anim.in .tv-pipe .who div:nth-child(1){animation-delay:1.42s}
.tv-anim.in .tv-pipe .who div:nth-child(2){animation-delay:1.52s}
.tv-anim.in .tv-pipe .who div:nth-child(3){animation-delay:1.62s}
.tv-anim.in .tv-pipe .out .tv-tag{animation:tvPop .32s ease-out both}
.tv-anim.in .tv-pipe .out .tv-tag:nth-child(2){animation-delay:1.74s}
.tv-anim.in .tv-pipe .out .tv-tag:nth-child(3){animation-delay:1.82s}
.tv-anim.in .tv-pipe .out .tv-tag:nth-child(4){animation-delay:1.90s}
.tv-anim.in .tv-pipe .out .tv-tag:nth-child(5){animation-delay:1.98s}

/* shared sub-panels roll in last */
.tv-anim.in .tv-sub{animation:tvUp .45s cubic-bezier(.22,.9,.28,1) both;animation-delay:var(--sd,1s)}
.tv-anim.in .tv-vr{animation:tvIn .32s ease-out both}
.tv-anim.in .tv-vr:nth-child(2){animation-delay:calc(var(--sd,1s) + .12s)}
.tv-anim.in .tv-vr:nth-child(3){animation-delay:calc(var(--sd,1s) + .20s)}
.tv-anim.in .tv-vr:nth-child(4){animation-delay:calc(var(--sd,1s) + .28s)}
.tv-anim.in .tv-vr:nth-child(5){animation-delay:calc(var(--sd,1s) + .36s)}
.tv-anim.in .tv-imp div{animation:tvFade .32s ease-out both;animation-delay:var(--id,1.4s)}
.tv-anim.in .tv-imp div:nth-child(2){animation-delay:calc(var(--id,1.4s) + .09s)}
.tv-anim.in .tv-imp div:nth-child(3){animation-delay:calc(var(--id,1.4s) + .18s)}
.tv-anim.in .tv-imp div:nth-child(4){animation-delay:calc(var(--id,1.4s) + .27s)}
.tv-anim.in .tv-imp i{animation:tvTick .3s cubic-bezier(.3,1.5,.5,1) both;animation-delay:inherit}
.tv-record + .tv-sub{--sd:1.24s}
.tv-path + .tv-sub{--sd:1.45s}
.tv-fan .tv-sub{--sd:1.62s}
.tv-tree + .tv-sub{--sd:1.10s}
.tv-pipe + .tv-sub{--sd:2.10s}
.tv-pipe .tv-imp{--id:2.05s}
.tv-sub .tv-imp{--id:1.55s}

@media (prefers-reduced-motion:reduce){
  .tv-anim *,.tv-anim *:before,.tv-anim *:after{animation:none!important;opacity:1!important;transform:none!important}
  .tv-anim .tv-steps .fill{height:46%!important}
  .tv-anim .tv-col .bar i{width:86%!important}
}

@container (max-width:470px){
  .tv-record .top{grid-template-columns:1fr}
  .tv-record .media{border-right:none;border-bottom:1px solid var(--ln);grid-template-columns:1fr 1fr;grid-template-rows:auto}
  .tv-record .photo{height:120px}
  .tv-record .media .tv-vid{height:120px}
  .tv-cols{grid-template-columns:1fr}
  .tv-col:before,.tv-split:after{display:none}
  .tv-branch{grid-template-columns:1fr}
  .tv-branch:before{display:none}
  .tv-lesson{grid-template-columns:1fr}
  .tv-imp{grid-template-columns:1fr}
  .tv-pipe .stg em{display:none}
}

/* ── preview page only (do not copy) ── */
@media(max-width:820px){.row6{grid-template-columns:1fr;gap:20px}}