/* Team setup (docs/teams-structure-setup.html is the approved design). Everything is scoped under .ts so nothing here touches the Team page. */
.ts{--ink:var(--text-strong);--mute:var(--text-muted);--line:var(--border);--bg:var(--canvas);--p:var(--primary);--soft:var(--primary-soft);--c0:#0b3d91;--c1:#0b5e57;--c2:#7c3aed;--c3:#c2410c;color:var(--text);font-size:18px;line-height:1.5}
:root[data-theme="dark"] .ts{--c0:#9fbdf5;--c1:#5fd0bf;--c2:#c4a8ff;--c3:#ffab7a}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .ts{--c0:#9fbdf5;--c1:#5fd0bf;--c2:#c4a8ff;--c3:#ffab7a}}
.ts *{box-sizing:border-box}
.ts .wrap{max-width:760px;margin:0 auto;padding:26px 18px 90px}
.ts .dots{display:flex;gap:8px;align-items:center;margin-bottom:22px;color:var(--mute);font-size:14px;font-weight:700}
.ts .dot{width:34px;height:6px;border-radius:4px;background:#d4dce6;transition:.3s}
.ts .dot.on{background:var(--p);width:54px}
.ts .dot.done{background:var(--p);opacity:.45}
.ts h1{font-size:32px;line-height:1.15;margin:0 0 8px;color:var(--ink);letter-spacing:-.02em}
.ts .sub{color:var(--mute);margin:0 0 22px;font-size:17px}
.ts .screen{animation:ts-in .4s cubic-bezier(.2,.8,.3,1) both}
@keyframes ts-in{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
.ts .screen.back{animation-name:ts-inb}
@keyframes ts-inb{from{opacity:0;transform:translateX(-24px)}to{opacity:1;transform:none}}
.ts .gh{font-size:12px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--mute);margin:20px 0 8px}
.ts .tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media(max-width:620px){
/* Phone: a step slides in from 24px to the side; without this it widened the page and the browser stayed zoomed out. */
.ts{overflow-x:clip}
.ts .tiles{grid-template-columns:repeat(2,1fr)}
}
.ts .tile{background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:14px 10px 12px;text-align:center;cursor:pointer;font:inherit;transition:.18s;color:var(--ink)}
.ts .tile:hover{border-color:var(--p);transform:translateY(-3px);box-shadow:0 14px 26px -16px var(--primary-ring)}
.ts .tile .em{font-size:32px;display:block;margin-bottom:6px}
.ts .tile b{font-size:17px}
.ts .tile small{display:block;color:var(--mute);font-size:13px;margin-top:2px}
.ts .tile.on{border-color:var(--p);background:var(--soft)}
.ts .opts{display:grid;gap:14px}
.ts .opt.big{display:block;padding:18px 20px}
.ts .opt.big .t{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.ts .opt.big .t em{font-style:normal;width:34px;height:34px;border-radius:50%;background:var(--p);color:#fff;font-weight:800;display:grid;place-items:center;flex:none}
.ts .opt.big b{font-size:20px}
.ts .opt.big .say{display:block;color:var(--text);font-size:17px;margin:0 0 10px}
.ts .pic{background:var(--surface-subtle);border:1px solid var(--line);border-radius:14px;padding:10px 12px;display:grid;gap:6px;font-size:14px}
.ts .pic .l{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ts .pic .o{font-weight:800;color:var(--c0)}
.ts .pic .pl{font-weight:800;color:var(--c1);background:#e0f1ee;border-radius:8px;padding:1px 9px}
.ts .pic .g{font-weight:700;color:#5b21b6;background:#ede7fb;border-radius:8px;padding:1px 9px}
.ts .pic .ar{color:#9aa6b6}
.ts .pic .pp{font-size:13px}
.ts .pic .in{margin-left:22px}
.ts .pick{display:block;margin-top:10px;font-size:14px;color:var(--mute)}
.ts .opt.big .pick b{font-size:14px;color:var(--ink)}
.ts .opt.unsure{background:transparent;border-style:dashed}
.ts .opt{background:var(--surface);border:2px solid var(--line);border-radius:20px;padding:16px 18px;cursor:pointer;font:inherit;text-align:left;display:grid;grid-template-columns:92px 1fr;gap:16px;align-items:center;transition:.18s;color:var(--ink)}
.ts .opt:hover{border-color:var(--p);transform:translateX(3px)}
.ts .opt.on{border-color:var(--p);background:var(--soft)}
.ts .opt b{font-size:19px;display:block}
.ts .opt span{color:var(--mute);font-size:15px}
.ts .mini{display:flex;flex-direction:column;gap:4px;align-items:center}
.ts .mini i{display:block;height:11px;border-radius:6px;background:var(--c0)}
.ts .mini .r{display:flex;gap:4px}
.ts .mini .r i{width:24px;background:var(--c1)}
.ts .mini .r.s i{width:11px;background:var(--c2)}
.ts .mini .a{width:60px}
.ts .sent{display:block;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin:0 0 10px;font-size:18px;animation:ts-in .35s both;position:relative}
.ts .sent .hint{display:block;color:var(--mute);font-size:13px;margin-top:2px}
.ts .sent input{font:inherit;font-weight:800;color:var(--p);border:0;border-bottom:3px solid var(--p);background:var(--soft);border-radius:8px 8px 0 0;padding:2px 8px;width:11ch;min-width:7ch;max-width:100%;transition:.15s}
.ts .sent input.w{width:16ch}
.ts .sent input:focus{outline:0;background:#cfe9e4}
.ts .sent .x{position:absolute;right:10px;top:10px;border:0;background:var(--surface-subtle);border-radius:50%;width:28px;height:28px;cursor:pointer;color:#586578;font-size:14px}
.ts .sent .x:hover{background:#ffe0e4;color:#b4142e}
.ts .wrap{transition:max-width .3s}
.ts .wrap.wide{max-width:1120px}
.ts .two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:20px;align-items:start}
.ts .tr{--ln:#8fa2b8}
.ts .tr .kids{margin-left:20px;padding-left:24px;border-left:2px solid var(--ln)}
.ts .tr .kids>.item::before{content:"";position:absolute;left:-26px;top:30px;width:24px;height:2px;background:var(--ln);border-radius:2px;z-index:1}
.ts .tr .kids>.item:last-child::after{content:"";position:absolute;left:-28px;top:31px;bottom:-14px;width:6px;background:var(--surface);z-index:1}
.ts .tr .kids>.item.gapi::before{top:15px;width:14px}
.ts .tr .kids>.item.gapi:last-child::after{top:16px}
.ts .tr .kids>.item.gapi.tail::before{display:none}
.ts .tr .kids>.item.gapi.tail::after{top:-8px}
.ts .tr .item{position:relative;margin:10px 0;animation:ts-in .4s both;animation-delay:calc(var(--d,0)*60ms)}
.ts .tr .item.gapi{margin:0;height:30px;display:flex;align-items:center}
.ts .tr .gapi button{border:2px dashed #aebcce;background:var(--surface);color:var(--p);font:inherit;font-weight:800;font-size:13.5px;cursor:pointer;padding:1px 12px;border-radius:999px;margin-left:12px;transition:.15s}
.ts .tr .gapi button:hover{background:var(--soft);border-color:var(--p)}
.ts .tr .st{display:flex;gap:10px;align-items:center;margin:0}
.ts .ex:not(.full) .node{display:inline-block!important;width:auto!important;padding:6px 13px 6px 7px!important}
.ts .ex:not(.full) .node .top{gap:9px}
.ts .node{display:block!important;width:min(100%,470px);padding:8px 14px 8px 8px!important}
.ts .node .top{display:flex;align-items:center;gap:9px}
.ts .why{display:block;margin-top:7px;padding-top:7px;border-top:1px dashed var(--line);font-size:13px;line-height:1.4;color:var(--text)}
.ts .why b{color:var(--ink)}
.ts .why span{display:block;color:var(--mute);font-size:12.5px;margin-top:2px}
.ts .pwrap .why{border-top:0;padding-top:0;margin-top:6px;width:min(100%,470px)}
.ts .node .nb{display:block}
.ts .node .nt{display:block;line-height:1.2}
.ts .node small{display:block}
.ts .many{font-style:normal;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:none;background:var(--surface-subtle);color:#586578;border-radius:999px;padding:0 7px;margin-left:7px}
.ts .node .am{display:block;margin-top:2px;font-size:12px;font-weight:700;color:#8a5a00}
.ts .note2{margin-top:14px;border-top:1px dashed var(--line);padding-top:10px;font-size:13.5px;color:var(--mute)}
.ts .note2 p{margin:0 0 6px}
.ts .ghost{display:inline-block;border:2px dashed #b5c2d1;border-radius:999px;padding:3px 14px;font-size:13.5px;font-weight:700;color:#6b7a8f;background:var(--surface)}
.ts .legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--mute);margin:2px 0 10px}
.ts .legend i{display:inline-block;width:22px;height:12px;border-radius:6px;vertical-align:-2px;margin-right:6px}
.ts .legend .s{background:var(--surface);border:2px solid var(--p)}
.ts .legend .d{background:var(--surface);border:2px dashed #b5c2d1}
.ts .pp.a{background:#fff7e0;color:#8a5a00;border:2px dashed #e0b55a}
.ts .pp.a.me{border-style:solid;background:#fdecc0}
.ts .st .adm{flex-basis:100%;font-size:13px;color:var(--mute);display:flex;align-items:center;gap:6px;margin-top:2px}
.ts .st .adm input{font-size:14px;width:11ch;color:#8a5a00;border-bottom-color:#e0b55a}
.ts .sw{display:flex;gap:12px;align-items:flex-start;background:#fff7e0;border:2px solid #f0d58f;border-radius:16px;padding:12px 14px;margin:10px 0;cursor:pointer;font-size:16px}
.ts .sw input{width:22px;height:22px;accent-color:#b7791f;margin-top:2px;flex:none}
.ts .sw small{display:block;color:#7a5b16;font-size:13.5px}
.ts .note{font-size:13.5px;color:#7a5b16;background:#fff7e0;border-radius:10px;padding:8px 12px;margin-top:10px}
.ts .ex.full{position:static!important}
.ts .side{position:sticky;top:14px}
.ts .cap2{font-size:12px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--mute);margin-bottom:8px}
.ts .ex.full .node{width:min(100%,430px)}
.ts .ex.full .node .nt{font-size:16px}
.ts .ex.full .why{font-size:13px;margin-top:5px;padding-top:5px}
.ts .side .who{padding:9px 14px}
.ts .side .who em{font-size:22px}
.ts .side .who b{font-size:16px}
.ts .side .who span{font-size:14px}
@media(max-width:900px){
.ts .side{position:static;margin-top:14px}
}
.ts .stairs{margin-bottom:0}
.ts .two .ex{margin-top:0;position:sticky;top:14px}
@media(max-width:900px){
.ts .two{grid-template-columns:1fr}
.ts .two .ex{position:static;margin-top:16px}
}
.ts .stairs{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px 16px 10px;margin-bottom:16px}
.ts .st{display:flex;align-items:center;gap:10px;margin-left:calc(var(--n,0)*26px);position:relative;animation:ts-in .35s both}
.ts .st .nm{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;background:var(--surface-subtle);border:2px solid var(--c);border-radius:14px;padding:8px 12px}
.ts .st input{font:inherit;font-weight:800;font-size:18px;color:var(--ink);border:0;border-bottom:2px dashed #aab6c6;background:transparent;padding:0 2px;width:13ch;max-width:100%}
.ts .st input:focus{outline:0;border-bottom:2px solid var(--c)}
.ts .st input.w{width:24ch}
.ts .st .eg{font-size:13px;color:var(--mute)}
.ts .st .cap{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--c);flex-basis:100%}
.ts .st .x{border:0;background:var(--surface-subtle);border-radius:50%;width:32px;height:32px;cursor:pointer;color:#586578;font-size:14px;flex:none;transition:.15s}
.ts .st .x:hover{background:#ffe0e4;color:#b4142e}
.ts .gap{margin-left:calc(var(--n,0)*26px + 26px);height:30px;display:flex;align-items:center}
.ts .gap button{border:0;background:none;color:var(--p);font:inherit;font-weight:800;font-size:14px;cursor:pointer;padding:3px 10px;border-radius:999px;opacity:.75;transition:.15s}
.ts .gap button:hover{opacity:1;background:var(--soft)}
.ts .end{margin-top:6px;border-top:1px dashed var(--line);padding-top:10px}
.ts .add{border:2px dashed #b5c2d1;background:transparent;color:var(--p);font:inherit;font-weight:800;border-radius:16px;padding:12px;width:100%;cursor:pointer;margin:2px 0 6px;font-size:16px;transition:.15s}
.ts .add:hover{background:var(--soft);border-color:var(--p)}
.ts .nav{display:flex;justify-content:space-between;align-items:center;margin-top:22px;gap:10px;flex-wrap:wrap}
.ts .btn{border:0;border-radius:14px;padding:14px 30px;font:inherit;font-weight:800;font-size:17px;cursor:pointer;background:var(--p);color:#fff;transition:.15s}
.ts .btn:hover{filter:brightness(1.1);transform:translateY(-1px)}
.ts .btn.g{background:transparent;color:var(--mute);padding-left:6px}
.ts .btn.g:hover{color:var(--ink);transform:none}
/* Page 1 (who is this for): the bar stays at the bottom while the tiles scroll, and Continue is big and easy to see. */
.ts .nav.sticky{position:sticky;bottom:0;z-index:3;background:var(--bg);margin:18px -18px 0;padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);flex-wrap:nowrap}
.ts .nav.sticky .btn:not(.g){flex:1;max-width:420px;padding:16px 24px;font-size:18px;box-shadow:0 6px 18px color-mix(in srgb,var(--p) 35%,transparent)}
@media(max-width:760px){.ts .nav.sticky{margin:18px 0 0;padding-left:12px;padding-right:12px}}
.ts .ex{margin-top:24px;background:var(--surface);border:1px dashed #b5c2d1;border-radius:18px;padding:14px 16px}
.ts .ex>b{display:block;font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--mute);margin-bottom:6px}
.ts .row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:7px 0;animation:ts-in .4s both;animation-delay:calc(var(--d,0)*70ms)}
.ts .row .ind{display:inline-block;width:calc(var(--n,0)*22px)}
.ts .node{display:inline-flex;align-items:center;gap:8px;border:2px solid var(--c);border-radius:12px;padding:4px 12px 4px 5px;background:var(--surface);font-weight:700;font-size:15px;color:var(--ink)}
.ts .node i{font-style:normal;width:26px;height:26px;border-radius:8px;background:var(--c);color:#fff;font-size:12px;display:grid;place-items:center}
.ts .node small{color:var(--c);font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.ts .pp{border-radius:999px;padding:3px 12px;font-size:14px;font-weight:700}
.ts .pp.m{background:#ede7fb;color:#5b21b6}
.ts .pp.t{background:#dcf5e3;color:#0b5a26}
.ts .tag{font-size:12px;color:var(--mute);margin-left:4px}
.ts .done .ok{font-size:54px;margin-bottom:4px;animation:ts-pop .6s cubic-bezier(.2,.9,.3,1.4) both}
@keyframes ts-pop{from{transform:scale(.3);opacity:0}to{transform:none;opacity:1}}
.ts .see{display:grid;gap:10px;margin:16px 0}
.ts .who{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 16px;animation:ts-in .4s both;display:flex;gap:12px;align-items:center}
.ts .who em{font-style:normal;font-size:26px}
.ts .who b{display:block;font-size:17px;color:var(--ink)}
.ts .who span{font-size:15px;color:var(--mute)}
@media(prefers-reduced-motion:reduce){
.ts *{animation:none!important;transition:none!important}
}
.ts .k{font-size:16px;line-height:1.45}
.ts .k h1{font-size:26px;line-height:1.2;margin:0 0 4px}
.ts .k .sub{font-size:16px;margin:0 0 14px}
.ts .k .nav{margin-top:14px}
.ts .k-gh{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--mute);margin:12px 0 6px}
.ts .k-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.ts .k-tile{background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:9px 10px;text-align:left;display:flex;align-items:center;gap:9px;min-height:60px;cursor:pointer;font:inherit;color:var(--ink);transition:border-color .15s,background .15s}
.ts .k-tile .em{font-size:23px;line-height:1;flex:none}
.ts .k-tile b{font-size:15px;line-height:1.2;display:block}
.ts .k-tile small{display:block;color:var(--mute);font-size:12px;line-height:1.25;margin-top:1px}
.ts .k-tile.on,.ts .k-opt.on{border-color:var(--p);background:var(--soft)}
.ts .k-other{width:100%;background:transparent;border:2px dashed #aab6c6;border-radius:14px;padding:9px 14px;min-height:48px;margin-top:12px;color:var(--text);text-align:left;font:inherit;font-size:15px;cursor:pointer;transition:border-color .15s,background .15s}
.ts .k-other b{color:var(--ink)}
.ts .k-other.on{border-style:solid;border-color:var(--p);background:var(--soft)}
.ts .k-opts{display:grid;gap:10px}
.ts .k-opt{display:grid;grid-template-columns:22px 1fr;gap:2px 12px;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:12px 14px;text-align:left;width:100%;cursor:pointer;font:inherit;color:var(--ink);transition:border-color .15s,background .15s}
.ts .k-radio{grid-row:1/4;width:20px;height:20px;border-radius:50%;border:2px solid #aab6c6;margin-top:3px;position:relative}
.ts .k-opt.on .k-radio{border-color:var(--p)}
.ts .k-opt.on .k-radio::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--p)}
.ts .k-opt b{font-size:17px;line-height:1.25}
.ts .k-say{color:var(--mute);font-size:14px}
.ts .k-chips{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:6px;font-size:13px}
.ts .k-chips+.k-chips{margin-top:4px}
.ts .k-place{font-weight:800;color:var(--ink);margin-right:2px}
.ts .k-c{border-radius:8px;padding:1px 8px;font-weight:700;background:var(--surface-subtle);border:1px solid var(--line);color:var(--text)}
.ts .k-opt.on .k-c{background:var(--surface)}
.ts .k-c.more{background:none;border-style:dashed;color:var(--mute);font-weight:600}
.ts .k-c.make{background:#ede7fb;color:#5b21b6;border-color:transparent}
.ts .k-c.take{background:#dcf5e3;color:#0b5a26;border-color:transparent}
.ts .k-unsure{display:block;width:100%;margin-top:10px;background:none;border:0;border-radius:10px;padding:8px 4px;text-align:left;color:var(--mute);font:inherit;font-size:14.5px;min-height:44px;cursor:pointer}
.ts .k-unsure b{color:var(--p);text-decoration:underline;text-underline-offset:2px}
@media(hover:hover){
.ts .k-tile:hover,.ts .k-opt:hover{border-color:var(--p)}
.ts .k-other:hover{border-color:var(--p);background:var(--soft)}
}
@media(max-width:760px){
.ts .k-tiles{grid-template-columns:repeat(2,1fr)}
.ts .k-tile small{display:none}
.ts .k-tile{min-height:52px}
}

/* Studio fit: the page already has a gutter, and the pale panels must read in the dark theme too. */
@media(max-width:900px){.ts .two{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.ts .wrap{padding:8px 0 40px}}
.ts .sw{background:var(--warning-bg);border-color:var(--warning-border)}
.ts .sw b{color:var(--ink)}
.ts .sw small,.ts .st .adm input,.ts .node .am{color:var(--warning)}
.ts .sent input{color:var(--ink)}

/* Page 1 has room for five tiles a row (Work has five, the others four), all the same height. */
.ts .wrap.roomy{max-width:1040px}
.ts .wrap.roomy .k-tiles{grid-template-columns:repeat(5,1fr)}
.ts .k-tile{min-height:64px}
.ts .k-tile>span:last-child{min-width:0}
@media(max-width:1000px){.ts .wrap.roomy .k-tiles{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.ts .wrap.roomy .k-tiles{grid-template-columns:repeat(2,1fr)}.ts .k-tile{min-height:56px}}

/* Long words: the boxes grow with the text (team-setup.js), the row wraps instead of cutting, and the picture breaks a long name. */
.ts .st .adm{flex-wrap:wrap}
.ts .st input,.ts .sent input,.ts .st .adm input{max-width:100%;text-overflow:clip}
.ts .node{max-width:100%}
.ts .node .nt,.ts .node .am,.ts .node small{overflow-wrap:anywhere}
.ts .st .nm{min-width:0}

/* The admin's name takes what is left of its row (a box wider than the card pushed the page sideways on a phone); a phone gets slightly smaller type. */
.ts .st .adm{min-width:0;max-width:100%}
.ts .st .adm input{flex:1 1 10ch;min-width:0;width:auto!important}
@media(max-width:760px){.ts .st input{font-size:16px}.ts .st .adm input{flex-basis:100%}}

/* The dots at the top are buttons for every page that can be opened; a generous tap area, and a hover or focus that shows it. */
.ts button.dot{border:0;padding:0;appearance:none;font:inherit;position:relative;cursor:pointer}
.ts .dot.go::after{content:"";position:absolute;inset:-12px -3px}
.ts .dot.go:focus-visible{outline:3px solid var(--p);outline-offset:3px}
@media(hover:hover){.ts .dot.go:hover{background:var(--p);opacity:1}}

/* ── "Watch how it works" (team-setup-guide.js) ── */
.ts .watch{display:inline-flex;align-items:center;gap:9px;border:2px solid var(--p);background:var(--soft);color:var(--p);font:inherit;font-weight:800;font-size:15px;border-radius:999px;padding:6px 18px 6px 7px;cursor:pointer;margin:0 0 14px;transition:background .15s,transform .15s;animation:ts-ring 2.4s ease-out 3}
.ts .watch:hover{background:var(--surface);transform:translateY(-1px)}
.ts .watch:focus-visible{outline:3px solid var(--p);outline-offset:3px}
.ts .watch-ico{width:26px;height:26px;border-radius:50%;background:var(--p);color:#fff;display:grid;place-items:center;font-size:11px;padding-left:2px;flex:none}
@keyframes ts-ring{0%{box-shadow:0 0 0 0 var(--primary-ring)}70%{box-shadow:0 0 0 12px transparent}100%{box-shadow:0 0 0 0 transparent}}

.dialog.tsg-dlg{width:min(1040px,100%)}
.tsg-body{display:flex;flex-direction:column;gap:var(--sp-3,12px)}
.tsg-sub{margin:0;color:var(--text-muted);font-size:var(--fs-14,14px)}
.tsg{font-size:16px}
.tsg-stage{position:relative;border:1px solid var(--border);border-radius:16px;padding:14px;background:var(--canvas);overflow:hidden}
.tsg-stage *{pointer-events:none}
.tsg-stage .two{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
.tsg-stage .two .ex{position:static}
.tsg-stage .nav{margin-top:12px}
.tsg-stage .nav .btn{padding:11px 24px;font-size:16px}
.tsg-stage .btn.pulse{animation:tsg-pulse .9s ease-in-out 2}
@keyframes tsg-pulse{0%,100%{box-shadow:0 0 0 0 var(--primary-ring)}50%{box-shadow:0 0 0 10px transparent;transform:scale(1.04)}}
.ts .st input.is-typing,.ts .sent input.is-typing{border-right:2px solid var(--ink);animation:tsg-caret .8s steps(1) infinite}
.ts .st input.is-typing{border-bottom:2px solid var(--c)}
.ts .sent input.is-typing{background:var(--primary-soft)}
@keyframes tsg-caret{50%{border-right-color:transparent}}
.tsg-hl{outline:3px solid var(--primary);outline-offset:3px;border-radius:12px}
.tsg-cur{position:absolute;left:0;top:0;width:22px;height:26px;margin:-3px 0 0 -4px;opacity:0;z-index:6;transition:transform .9s cubic-bezier(.4,0,.2,1),opacity .3s;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35));pointer-events:none}
.tsg-cur.on{opacity:1}
.tsg-cur::after{content:"";position:absolute;left:-7px;top:-8px;width:30px;height:30px;border-radius:50%;border:3px solid var(--primary);opacity:0}
.tsg-cur.tap::after{animation:tsg-tap .45s ease-out}
@keyframes tsg-tap{0%{opacity:.9;transform:scale(.3)}100%{opacity:0;transform:scale(1.3)}}
.tsg-cap{padding:2px 2px 0;min-height:92px}
.tsg-cap.is-in{animation:tsg-cap .4s ease-out both}
@keyframes tsg-cap{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.tsg-cap-n{font-size:var(--fs-12,12px);font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--primary)}
.tsg-cap-t{font-size:var(--fs-20,20px);font-weight:800;color:var(--text-strong);margin:2px 0 4px}
.tsg-cap-b{margin:0;font-size:var(--fs-16,16px);line-height:1.45;color:var(--text)}
.tsg-controls{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3,12px);flex-wrap:wrap}
.tsg-segs{display:flex;gap:6px;flex:1 1 220px;min-width:0}
.tsg-seg{flex:1 1 0;max-width:70px;height:26px;padding:0;border:0;background:none;cursor:pointer;display:flex;align-items:center}
.tsg-seg span{display:block;width:100%;height:6px;border-radius:4px;background:var(--border-strong,#cbd5e1);transition:background .3s}
.tsg-seg.is-done span{background:var(--primary);opacity:.5}
.tsg-seg.is-on span{background:var(--primary);opacity:1}
.tsg-seg:focus-visible{outline:3px solid var(--primary);outline-offset:1px;border-radius:6px}
.tsg-btns{display:flex;gap:6px;align-items:center}
@media(max-width:900px){.tsg-stage .two{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.tsg-cur{display:none}.ts .watch{animation:none}.tsg-cap.is-in{animation:none}}
.tsg-fit{position:relative}
.tsg-zoom{transform-origin:top left}
/* Compact: the long hint lines are on the real page; the guide keeps the boxes and the words that matter. */
.tsg-stage .st .eg,.tsg-stage .sw small{display:none}
.tsg-stage .stairs{padding-bottom:6px}
/* The caption and controls stay in view while the picture scrolls on a short screen. */
.tsg-bar{position:sticky;bottom:calc(-1 * var(--sp-6,24px));z-index:7;display:flex;flex-direction:column;gap:var(--sp-3,12px);background:var(--surface);padding:10px 0 4px;margin-bottom:-4px;border-top:1px solid var(--border)}
.tsg-bar .tsg-cap{min-height:84px}

/* The structure page header: the title and the Watch button share one row, so the page starts higher. */
.ts .hd{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.ts .hd h1{font-size:26px;margin:0 0 2px}
.ts .hd .sub{font-size:15px;margin:0}
.ts .hd .watch{margin:2px 0 0;flex:none;white-space:nowrap}
@media(max-width:700px){.ts .hd{flex-direction:column;gap:10px}}
