:root{color-scheme:light;--bg:#f2f4f4;--panel:#fff;--ink:#182027;--muted:#596570;--line:#d9dfe2;--field:#b9c4ca;--accent:#cf274c;--accent-strong:#b51f46;--accent-hover:#9c1a3c;--link:#a82243;--tint:#fbeef2;--preview:#f3f5f6;--border:#e6e9ea;--error:#a32038;--ok:#1d6b3f;--ok-bg:#e3f4e8;--gold:#8a5a00;--gold-bg:#fff6dc;--gold-line:#e0a100;--star:#d99a00;--code:#f4f5f6;--shadow:0 2px 8px rgba(19,32,40,.06);--lift:0 8px 22px rgba(19,32,40,.12)}
:root[data-theme="dark"]{color-scheme:dark;--bg:#151a1e;--panel:#22292e;--ink:#f1f3f4;--muted:#b2bec5;--line:#475158;--field:#687780;--accent:#ff8aa2;--accent-strong:#b51f46;--accent-hover:#d02a57;--link:#ff9db0;--tint:#472f38;--preview:#1b2226;--border:#364148;--error:#ff9db0;--ok:#7fd9a4;--ok-bg:#1d3a29;--gold:#ffd27a;--gold-bg:#3a3020;--gold-line:#b98a12;--star:#ffcc4d;--code:#1b2226;--shadow:none;--lift:0 8px 22px rgba(0,0,0,.35)}
@media(prefers-color-scheme:dark){:root:not([data-theme]){color-scheme:dark;--bg:#151a1e;--panel:#22292e;--ink:#f1f3f4;--muted:#b2bec5;--line:#475158;--field:#687780;--accent:#ff8aa2;--accent-hover:#d02a57;--link:#ff9db0;--tint:#472f38;--preview:#1b2226;--border:#364148;--error:#ff9db0;--ok:#7fd9a4;--ok-bg:#1d3a29;--gold:#ffd27a;--gold-bg:#3a3020;--gold-line:#b98a12;--star:#ffcc4d;--code:#1b2226;--shadow:none;--lift:0 8px 22px rgba(0,0,0,.35)}}
:root{--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace}
/* Motion: on by default, calmer with reduced motion, off with the Animations toggle */
:root{--dur:220ms;--dur-l:420ms;--ease:cubic-bezier(.2,.8,.2,1);--rise:8px;--press:scale(.96)}
@media(prefers-reduced-motion:reduce){:root{--dur:140ms;--dur-l:200ms;--rise:0px;--press:none}}
html[data-anim="off"] *,html[data-anim="off"] *::before,html[data-anim="off"] *::after{animation:none!important;transition:none!important}
@keyframes lc-in{from{opacity:0;transform:translateY(var(--rise))}to{opacity:1;transform:none}}
@keyframes lc-pop{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
@keyframes tg-bump{0%{transform:none}40%{transform:scale(1.22)}100%{transform:none}}
@keyframes tg-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){@keyframes tg-bump{from{opacity:.55}to{opacity:1}}@keyframes lc-pop{from{opacity:0}to{opacity:1}}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-wrap:break-word}
a{color:var(--link);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
button,input,select,textarea{font:inherit}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #e44c70;outline-offset:3px}
code{font-family:var(--mono);font-size:.92em;background:var(--code);border:1px solid var(--border);border-radius:5px;padding:1px 5px;overflow-wrap:anywhere}
kbd{font:600 12px/1 var(--mono);padding:2px 6px;border:1px solid var(--field);border-bottom-width:2px;border-radius:5px;background:var(--code);color:var(--ink)}
.wrap{width:min(100% - 32px,1040px);margin-inline:auto}
.skip{position:absolute;left:12px;top:-100px;padding:8px 12px;background:var(--panel);color:var(--ink);z-index:10}
.skip:focus{top:8px}
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
[hidden]{display:none!important}
.site-head{background:var(--panel);border-bottom:1px solid var(--line)}
.header-row{min-height:70px;display:flex;align-items:center;gap:36px}
.brand{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;color:var(--ink);font-weight:750;text-decoration:none}
.brand-tld{color:#d72647}
.brand-mark{width:29px;height:29px;border-radius:8px;background:#ff4757;display:flex;align-items:end;justify-content:center;gap:2px;padding-bottom:6px}
.brand-mark i{display:block;background:white;width:4px;height:8px}
.brand-mark i:nth-child(2){height:13px}
.brand-mark i:nth-child(3){height:18px}
.header-row nav{display:flex;gap:24px;overflow:auto;white-space:nowrap;min-width:0}
.header-row nav a{color:var(--muted);font-size:14px;text-decoration:none;transition:color var(--dur)}
.header-row nav a:hover{color:var(--ink)}
.header-row nav a[aria-current]{color:var(--ink);font-weight:700}
.theme-btn{margin-left:auto;flex:none;width:44px;height:44px;display:inline-grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);cursor:pointer;transition:border-color var(--dur),transform var(--dur) var(--ease)}
.theme-btn:hover{border-color:var(--accent)}
.theme-btn:active{transform:var(--press)}
.theme-btn svg{width:19px;height:19px;fill:currentColor}
.theme-btn .ic-sun{display:none}
[data-theme=dark] .theme-btn .ic-sun{display:block}
[data-theme=dark] .theme-btn .ic-moon{display:none}
.crumb{display:flex;flex-wrap:wrap;gap:4px 9px;color:var(--muted);font-size:13px;margin:24px 0 12px}
.crumb a{color:var(--muted)}
h1{font-size:clamp(1.7rem,3vw,2.35rem);line-height:1.15;margin:0 0 10px}
h2{font-size:1.23rem;line-height:1.25;margin:0 0 14px}
h3{font-size:1.05rem;margin:24px 0 6px}
.lede{max-width:760px;color:var(--muted);margin:0 0 22px}
.panel{background:var(--panel);border:1px solid var(--border);border-radius:15px;padding:25px;box-shadow:var(--shadow);margin:16px 0;min-width:0}
.tool-head{display:flex;justify-content:space-between;gap:12px;align-items:start;flex-wrap:wrap}
.tool-head h2{margin:0}
.head-side{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.eyebrow{margin:0 0 4px;color:var(--accent);font-size:12px;text-transform:uppercase;letter-spacing:.09em;font-weight:750}
:root:not([data-theme="dark"]) .eyebrow{color:var(--accent-strong)}
.badge{background:var(--tint);color:var(--accent);border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700;white-space:nowrap}
:root:not([data-theme="dark"]) .badge{color:var(--accent-strong)}
.anim-toggle{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--muted);font-size:13px;font-weight:650;cursor:pointer;transition:border-color var(--dur),color var(--dur),transform var(--dur) var(--ease)}
.anim-toggle:hover{border-color:var(--accent);color:var(--ink)}
.anim-toggle:active{transform:var(--press)}
.anim-toggle .anim-state{color:var(--ink);font-weight:750}
.anim-ico{width:10px;height:10px;border-radius:50%;background:var(--field);transition:background-color var(--dur),box-shadow var(--dur)}
.anim-toggle[aria-pressed="true"] .anim-ico{background:#2fa463;box-shadow:0 0 0 3px rgba(47,164,99,.18)}
.hint{font-size:13px;color:var(--muted);margin:8px 0}
.ctl-title{display:block;margin:0;font-size:14px;font-weight:750}

/* Setup: players on the left, split settings on the right */
.setup{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin-top:20px}
@media(min-width:860px){.setup{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:32px}}
.col{min-width:0}
.lbl-row{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px;margin:0 0 8px}
.lbl-row label{font-size:15px;font-weight:750}
.lbl-row label span{font-size:13px;font-weight:500;color:var(--muted)}
.count{margin:0;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.count b{color:var(--ink);font-size:14px}
.count.is-in b{display:inline-block;animation:tg-bump var(--dur) var(--ease)}
textarea{display:block;width:100%;min-height:200px;resize:vertical;padding:11px 13px;border:1px solid var(--field);border-radius:12px;background:var(--panel);color:var(--ink);font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;transition:border-color var(--dur),box-shadow var(--dur)}
textarea:hover{border-color:var(--muted)}
textarea:focus-visible{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(207,39,76,.25)}
.row-btns{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px}
.options{display:flex;flex-wrap:wrap;gap:0 22px;border:0;margin:4px 0 0;padding:0;min-width:0}
.check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;font-weight:600;cursor:pointer;-webkit-tap-highlight-color:transparent}
.check input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--accent-strong);cursor:pointer}
.check small{font-weight:500;color:var(--muted);font-size:12px}

/* Player list: captains and skill */
.roster-box{margin-top:12px;padding-top:14px;border-top:1px solid var(--line)}
.roster-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px;margin:0 0 8px}
.cap-note{margin:0;font-size:13px;color:var(--muted)}
.cap-note.is-error{color:var(--error);font-weight:650}
.roster{list-style:none;margin:0;padding:2px;display:flex;flex-wrap:wrap;gap:6px;max-height:252px;overflow:auto;overscroll-behavior:contain}
.pl{display:inline-flex;align-items:center;max-width:100%;min-height:44px;padding:0 4px 0 0;border:1px solid var(--line);border-radius:999px;background:var(--panel);font-size:14px;font-weight:600;transition:border-color var(--dur),background-color var(--dur)}
.pl.is-cap{border-color:var(--gold-line);background:var(--gold-bg)}
.pl-n{min-width:0;max-width:16ch;padding-right:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cap{flex:none;display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:none;color:var(--field);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:color var(--dur),transform var(--dur) var(--ease)}
.cap svg{width:20px;height:20px;fill:currentColor;transition:transform var(--dur) var(--ease)}
.cap:hover{color:var(--star)}
.cap:active svg{transform:scale(.85)}
.cap[aria-pressed="true"]{color:var(--star)}
.cap.is-hit svg{animation:tg-bump var(--dur-l) var(--ease)}
.sk{display:none;min-height:34px;margin-right:2px;padding:2px 4px;border:1px solid var(--field);border-radius:8px;background:var(--panel);color:var(--ink);font-size:14px;font-weight:700;cursor:pointer}
.roster.has-skill .sk{display:block}
.roster.has-skill .pl{padding-right:5px}

/* Settings */
.field{border:0;margin:0 0 14px;padding:0;min-width:0}
.field legend{padding:0;margin:0 0 8px;font-size:14px;font-weight:750}
.seg{display:inline-flex;max-width:100%;border:1px solid var(--field);border-radius:10px;overflow:hidden;background:var(--panel)}
.seg label{position:relative;flex:1 1 auto;margin:0;cursor:pointer;min-width:0}
.seg label+label{border-left:1px solid var(--field)}
.seg input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.seg span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:6px 16px;font-size:14px;font-weight:700;color:var(--muted);text-align:center;transition:background-color var(--dur),color var(--dur)}
.seg label:hover span{color:var(--ink)}
.seg input:checked+span{background:var(--tint);color:var(--accent-strong)}
:root[data-theme="dark"] .seg input:checked+span{color:var(--accent)}
.seg input:focus-visible+span{outline:3px solid #e44c70;outline-offset:-3px}
.name-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.stepper label{display:block;font-size:14px;font-weight:750;margin:0 0 6px}
.step-row{display:flex;align-items:stretch}
.step{width:46px;min-height:46px;border:1px solid var(--field);background:var(--panel);color:var(--ink);font-size:20px;font-weight:700;line-height:1;cursor:pointer;touch-action:manipulation;transition:border-color var(--dur),background-color var(--dur)}
.step:first-child{border-radius:10px 0 0 10px}
.step:last-child{border-radius:0 10px 10px 0}
.step:hover{border-color:var(--accent);background:var(--tint)}
.step:active{background:var(--tint)}
.step-row input{position:relative;width:72px;min-height:46px;margin:0 -1px;border:1px solid var(--field);border-radius:0;background:var(--panel);color:var(--ink);text-align:center;font-size:18px;font-weight:750;font-variant-numeric:tabular-nums;-moz-appearance:textfield;appearance:textfield}
.step-row input:focus-visible{z-index:1}
.step-row input::-webkit-outer-spin-button,.step-row input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.preview{margin:8px 0 6px;min-height:1.5em;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.preview b{color:var(--ink)}
.preview.is-warn{color:var(--error);font-weight:600}
#tg-bench-row{margin-top:6px}

.primary,.ghost{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 18px;border-radius:10px;font-weight:700;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background-color var(--dur),border-color var(--dur),color var(--dur),transform var(--dur) var(--ease),box-shadow var(--dur)}
.primary{border:0;background:var(--accent-strong);color:#fff}
.primary:hover:not(:disabled){background:var(--accent-hover);box-shadow:0 6px 18px rgba(181,31,70,.3)}
.ghost{border:1px solid var(--field);background:var(--panel);color:var(--ink)}
.ghost:hover:not(:disabled){border-color:var(--accent);background:var(--tint)}
.primary:active:not(:disabled),.ghost:active:not(:disabled){transform:var(--press)}
.primary:disabled{background:var(--line);color:var(--muted);cursor:not-allowed}
.ghost:disabled{color:var(--muted);background:var(--preview);border-color:var(--line);cursor:not-allowed}
.primary svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;transition:transform var(--dur-l) var(--ease)}
.primary:hover:not(:disabled) svg{transform:rotate(-12deg) scale(1.08)}
.primary.is-hit svg{animation:tg-spin var(--dur-l) var(--ease)}
#tg-again.is-hit svg{animation-direction:reverse}
.go{width:100%;min-height:54px;margin-top:8px;font-size:17px}
.ghost.is-done{border-color:var(--ok);background:var(--ok-bg);color:var(--ok)}
.is-done .lbl{animation:lc-pop var(--dur) var(--ease) both}
.ghost.is-fail{border-color:var(--error);color:var(--error)}
.mini{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:4px 13px;border:1px solid var(--field);border-radius:9px;background:var(--panel);color:var(--ink);font-size:14px;font-weight:650;cursor:pointer;touch-action:manipulation;transition:border-color var(--dur),background-color var(--dur),transform var(--dur) var(--ease)}
.mini:hover:not(:disabled){border-color:var(--accent);background:var(--tint)}
.mini:active:not(:disabled){transform:var(--press)}
.err{margin:8px 0 0;font-size:14px;font-weight:650;color:var(--error)}
.err:empty{display:none}
.err.is-in{animation:lc-in var(--dur) var(--ease) both}

/* Results */
.results{margin-top:24px;padding-top:20px;border-top:1px solid var(--line);scroll-margin-top:12px}
.res-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:62px}
.res-head h3{margin:0;font-size:1.1rem}
.res-meta{margin:2px 0 0;font-size:13px;color:var(--muted)}
.deal-side{display:flex;align-items:center;gap:10px;flex:none}
.deck{position:relative;width:44px;height:56px;opacity:0;transform:scale(.8);transition:opacity var(--dur),transform var(--dur) var(--ease)}
.deck.is-on{opacity:1;transform:none}
.deck i{position:absolute;inset:0;border-radius:8px;background:var(--accent-strong);border:2px solid var(--panel);box-shadow:0 1px 4px rgba(0,0,0,.25)}
.deck i:nth-child(1){transform:rotate(-9deg) translateX(-3px)}
.deck i:nth-child(2){transform:rotate(5deg) translateX(2px);background:#d0457f}
.deck b{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:15px;font-weight:800;font-variant-numeric:tabular-nums}
.stale{margin:6px 0 0;padding:8px 12px;border-radius:10px;background:var(--gold-bg);color:var(--ink);font-size:14px;box-shadow:inset 0 0 0 1px var(--gold-line)}
.stale.is-in{animation:lc-in var(--dur) var(--ease) both}
.teams{display:grid;grid-template-columns:repeat(auto-fit,minmax(212px,1fr));gap:12px;margin-top:12px}
.team{--tc:#8a959d;position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid var(--border);border-radius:14px;background:var(--panel);box-shadow:var(--shadow);overflow:hidden;transition:box-shadow var(--dur-l),border-color var(--dur-l)}
.team::before{content:"";flex:none;height:6px;background:var(--tc)}
.team.is-in{animation:lc-pop var(--dur) var(--ease) both}
.team.is-done{border-color:var(--tc);box-shadow:0 0 0 1px var(--tc),var(--lift)}
.team-head{display:flex;align-items:center;gap:4px;padding:6px 8px 6px 4px;background:var(--panel);background:color-mix(in srgb,var(--tc) 11%,var(--panel))}
.swatch{position:relative;flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;cursor:pointer}
.swatch::before{content:"";width:24px;height:24px;border-radius:50%;background:var(--tc);box-shadow:0 0 0 2px var(--panel),0 0 0 3px var(--field);transition:transform var(--dur) var(--ease)}
.swatch:hover::before{transform:scale(1.12)}
.swatch input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
.swatch:focus-within{outline:3px solid #e44c70;outline-offset:-3px}
.tname-wrap{position:relative;flex:1 1 auto;min-width:0;display:flex}
.tname-wrap svg{position:absolute;right:8px;top:50%;width:15px;height:15px;margin-top:-7.5px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;opacity:.7;transition:opacity var(--dur),stroke var(--dur)}
.tname-wrap:hover svg{opacity:1;stroke:var(--accent)}
.tname-wrap:focus-within svg{opacity:0}
.tname{flex:1 1 auto;width:0;min-width:0;min-height:42px;padding:6px 28px 6px 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);font-size:16px;font-weight:800;text-overflow:ellipsis;transition:border-color var(--dur),background-color var(--dur)}
.tname::placeholder{color:var(--ink);opacity:1}
.tname:hover{border-color:var(--field)}
.tname:focus-visible{outline:none;border-color:var(--accent);background:var(--panel);box-shadow:0 0 0 3px rgba(207,39,76,.25)}
.bench-name{flex:1 1 auto;min-width:0;padding:6px 8px;font-size:16px;font-weight:800}
.bench-ic{display:grid;place-items:center;width:44px;height:44px;flex:none;color:var(--muted)}
.bench-ic svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.tcount{flex:none;display:grid;place-items:center;min-width:30px;height:28px;padding:0 8px;border-radius:99px;border:1px solid var(--line);background:var(--panel);font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.tcount.is-bump{animation:tg-bump var(--dur) var(--ease)}
.members{list-style:none;margin:0;padding:8px 10px 10px;display:grid;gap:6px;counter-reset:m}
.m{display:flex;align-items:center;gap:8px;min-width:0;min-height:38px;padding:6px 10px;border:1px solid var(--border);border-radius:9px;background:var(--preview);font-size:15px;font-weight:650;counter-increment:m}
.m::before{content:counter(m);flex:none;min-width:1.1em;color:var(--muted);font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}
.m-n{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.m.is-cap{border-color:var(--gold-line);background:var(--gold-bg)}
.m-cap{flex:none;display:inline-flex;align-items:center;gap:3px;color:var(--gold);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.m-cap svg{width:14px;height:14px;fill:var(--star)}
.m-sk{flex:none;display:grid;place-items:center;min-width:24px;height:22px;padding:0 6px;border-radius:6px;background:var(--panel);border:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.team-empty{margin:10px;padding:16px 12px;border:2px dashed var(--line);border-radius:10px;color:var(--muted);font-size:14px;text-align:center}
.team-foot{margin:auto 0 0;padding:8px 12px;border-top:1px solid var(--border);font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.team-foot b{color:var(--ink)}
.team-foot.is-in{animation:lc-in var(--dur) var(--ease) both}
.team.is-bench{--tc:#8a959d;background:var(--preview)}
.team.is-bench .m{background:var(--panel)}
.bsum{margin:12px 0 0;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.bsum b{color:var(--ink)}
.bsum.is-in{animation:lc-in var(--dur) var(--ease) both}
.res-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.res-acts .primary{flex:1 1 170px}
.res-acts>.ghost{flex:1 1 140px}
.copy-group{display:flex;flex:2 1 230px;min-width:0}
.copy-group .ghost{flex:1 1 auto;border-radius:10px 0 0 10px}
.copy-group select{flex:none;min-height:46px;margin-left:-1px;padding:0 8px;border:1px solid var(--field);border-radius:0 10px 10px 0;background:var(--panel);color:var(--ink);font-size:14px;font-weight:650;cursor:pointer}
.copy-group select:disabled{color:var(--muted);background:var(--preview);border-color:var(--line);cursor:not-allowed}
.status{min-height:1.5em;margin:8px 0 0;font-size:14px;font-weight:600;color:var(--ok)}
.status.is-error{color:var(--error)}
.status.is-in{animation:lc-in var(--dur) var(--ease) both}
.end-note{margin:18px 0 0;padding-top:14px;border-top:1px solid var(--line)}

/* Content */
.ad{margin:24px 0;text-align:center;min-height:120px;color:var(--muted)}
.ad p{font-size:11px;text-transform:uppercase;letter-spacing:.05em;margin:0 0 6px}
.guide p,.faq p,.steps li,.tips li{color:var(--muted)}
.guide p,.faq p{margin:0 0 12px}
.guide h2:not(:first-child){margin-top:26px}
.steps{margin:0 0 4px;padding-left:1.4em}
.steps li,.tips li{margin:0 0 8px}
.tips{margin:0 0 14px;padding-left:1.2em}
.tips strong{color:var(--ink)}
.guide .source{font-size:13px}
.faq h3:first-of-type{margin-top:4px}
.more>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.more>div a{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;padding:12px;text-decoration:none;font-weight:700;transition:border-color var(--dur),transform var(--dur) var(--ease),box-shadow var(--dur)}
.more>div a:hover{border-color:var(--accent);box-shadow:var(--shadow);transform:translateY(calc(var(--rise) * -.25))}
.more>div span{font-size:13px;font-weight:400;color:var(--muted)}
.foot{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:13px;padding:25px 0 38px}
.foot p{width:100%;margin:0}
@media(hover:none) and (pointer:coarse){.kbd-tip{display:none}}
@media(max-width:680px){
  .header-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 12px;padding:13px 0}
  .header-row .brand{grid-column:1;grid-row:1}
  .theme-btn{grid-column:2;grid-row:1}
  .header-row nav{grid-column:1/-1;grid-row:2;flex-wrap:wrap;gap:4px 18px;overflow:visible}
  .panel{padding:18px}
  .more>div{grid-template-columns:1fr}
  .crumb{margin-top:18px}
  .teams{grid-template-columns:minmax(0,1fr)}
  .members{display:flex;flex-wrap:wrap}
  .m{flex:0 1 auto;max-width:100%}
  .res-acts>.ghost{flex:1 1 40%}
  .copy-group{flex:1 1 100%}
}
@media(max-width:400px){
  .panel{padding:16px 12px}
  .seg span{padding:6px 11px}
  .step-row input{width:60px}
}
