/* Team-Flow onboarding v2 (2026-10-17) — graphite + purple. Works in classic/darker/glass and on phones. */
.tfo-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8,9,12,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; }
.tfo-modal.open { opacity: 1; }
.tfo-card { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: linear-gradient(180deg, #23252b 0%, #1b1d22 100%); color: #e8e9ee; border: 1px solid #34363f; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(139,92,246,.08) inset; transform: translateY(10px) scale(.98); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.tfo-modal.open .tfo-card { transform: none; }
.tfo-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, #7c3aed, #a78bfa, #7c3aed); }
.tfo-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: #9a9eab; cursor: pointer; display: grid; place-items: center; z-index: 3; }
.tfo-x:hover { background: #2c2e36; color: #fff; }
.tfo-body { padding: 26px 28px 8px; text-align: center; animation: tfoIn .28s ease both; }
.tfo-body h2 { margin: 6px 0 8px; font-size: 22px; line-height: 1.25; color: #fff; letter-spacing: -.01em; }
.tfo-body p { margin: 0 auto 12px; max-width: 420px; color: #b3b6c1; font-size: 14.5px; line-height: 1.5; }
.tfo-art { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto 6px; pointer-events: none; }
.tfo-feats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 6px 0 4px; }
.tfo-feats li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: #2a2c33; border: 1px solid #383b45; color: #d9dae0; font-size: 13px; }
.tfo-feats svg { color: #a78bfa; }
.tfo-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(139,92,246,.18); color: #c4b5fd; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.tfo-note { font-size: 13.5px !important; color: #c9cbd3 !important; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.tfo-note svg { color: #a78bfa; }
.tfo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 18px; }
.tfo-dots { display: flex; gap: 6px; } .tfo-dots i { width: 7px; height: 7px; border-radius: 99px; background: #3a3d46; transition: all .25s; } .tfo-dots i.done { background: #6d5bd0; } .tfo-dots i.on { width: 22px; background: #8b5cf6; }
.tfo-acts { display: flex; gap: 8px; }
.tfo-btn { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 11px; padding: 10px 16px; background: #8b5cf6; color: #fff; font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; transition: background .15s, transform .1s; }
.tfo-btn:hover { background: #7c4ee4; } .tfo-btn:active { transform: scale(.97); }
.tfo-btn.ghost { background: #2c2e36; color: #d0d2d9; } .tfo-btn.ghost:hover { background: #353842; }
.tfo-btn.hidden { display: none; }
.tfo-btn:focus-visible, .tfo-x:focus-visible, .tfo-av:focus-visible, .tfo-list button:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.tfo-acts-inline { margin: 4px 0 8px; }
.tfo-prof { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 14px 0 12px; text-align: left; }
.tfo-prof small { display: block; color: #8e92a0; font-size: 12px; } .tfo-prof b { display: block; font-size: 18px; color: #fff; margin: 2px 0 4px; }
.tfo-av { position: relative; width: 96px; height: 96px; border-radius: 50%; border: 2px dashed #6d5bd0; background: radial-gradient(circle at 50% 35%, #34363f, #23252b); cursor: pointer; padding: 0; overflow: hidden; }
.tfo-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tfo-av-plus { position: absolute; right: 4px; bottom: 4px; width: 28px; height: 28px; border-radius: 50%; background: #8b5cf6; color: #fff; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 3px #1d1f24; }
.tfo-link { border: 0; background: none; color: #a78bfa; padding: 0; cursor: pointer; font: inherit; font-size: 13px; } .tfo-link:hover { text-decoration: underline; }
.tfo-linkrow { display: flex; gap: 8px; margin: 6px 0 10px; }
.tfo-linkrow input { flex: 1; min-width: 0; background: #15161a; border: 1px solid #383b45; border-radius: 11px; color: #e5e6ea; padding: 10px 12px; font: 13px ui-monospace, Menlo, monospace; }
/* motion */
@keyframes tfoIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes tfoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes tfoPulse { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes tfoBar { 0%,100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes tfoTw { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes tfoDash { to { stroke-dashoffset: -22; } }
@keyframes tfoPop { 0%,100% { transform: translate(160px,44px) scale(1); } 50% { transform: translate(160px,40px) scale(1.06); } }
.tfo-float { animation: tfoFloat 3.2s ease-in-out infinite; } .tfo-float2 { animation: tfoFloat 3.6s ease-in-out .4s infinite; }
.tfo-pulse { animation: tfoPulse 3s ease-in-out infinite; }
.tfo-bar { transform-box: fill-box; transform-origin: center; animation: tfoBar 1s ease-in-out infinite; } .tfo-bar.b2 { animation-delay: .15s; } .tfo-bar.b3 { animation-delay: .3s; } .tfo-bar.b4 { animation-delay: .45s; }
.tfo-twinkle { animation: tfoTw 2.4s ease-in-out infinite; } .tfo-twinkle.t2 { animation-delay: .8s; } .tfo-twinkle.t3 { animation-delay: 1.6s; }
.tfo-dash { animation: tfoDash 1.2s linear infinite; } .tfo-pop { animation: tfoPop 2.4s ease-in-out infinite; }
.tfo-wave { animation: tfoTw 1.2s ease-in-out infinite; } .tfo-cursor { animation: tfoFloat 2s ease-in-out infinite; }
/* checklist widget (channel column) */
.tfo-list { margin: 6px 8px; padding: 9px 9px 6px; border-radius: 14px; background: linear-gradient(180deg, #24262d, #1d1f24); border: 1px solid #33363f; box-shadow: 0 6px 18px rgba(0,0,0,.25); color: #e3e4e9; position: relative; transition: opacity .35s, transform .35s; animation: tfoIn .3s ease both; }
.tfo-list.bye { opacity: 0; transform: translateY(6px) scale(.98); }
.tfo-l-h { display: flex; align-items: center; gap: 8px; position: relative; margin-bottom: 4px; }
.tfo-ring { width: 30px; height: 30px; transform: rotate(-90deg); flex: none; }
.tfo-ring circle { fill: none; stroke-width: 3.5; } .tfo-ring .bg { stroke: #34363f; } .tfo-ring .fg { stroke: #8b5cf6; stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.2,.8,.2,1); }
.tfo-ring-n { position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #c4b5fd; }
.tfo-l-t { flex: 1; min-width: 0; } .tfo-l-t b { display: block; font-size: 13px; color: #fff; } .tfo-l-t small { display: block; color: #8e92a0; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfo-l-x { border: 0; background: transparent; color: #7d8190; width: 26px; height: 26px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; } .tfo-l-x:hover { background: #2f3139; color: #fff; }
.tfo-list ul { list-style: none; margin: 0; padding: 0; }
.tfo-list li button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 5px 4px; border: 0; background: transparent; color: #d4d5db; border-radius: 8px; cursor: pointer; text-align: left; font: inherit; font-size: 12.5px; }
.tfo-list li button:hover:not([disabled]) { background: #2a2c34; }
.tfo-ck { flex: none; width: 22px; height: 22px; border-radius: 8px; display: grid; place-items: center; background: #2c2e36; color: #a78bfa; }
.tfo-tt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfo-pts { flex: none; font-size: 11px; font-weight: 700; color: #c4b5fd; background: rgba(139,92,246,.16); padding: 2px 7px; border-radius: 99px; }
.tfo-list li.done button { color: #8e92a0; cursor: default; } .tfo-list li.done .tfo-tt { text-decoration: line-through; text-decoration-color: #5b5e6a; }
.tfo-list li.done .tfo-ck { background: #8b5cf6; color: #fff; } .tfo-list li.done .tfo-pts { opacity: .45; }
.tfo-list li.just .tfo-ck { animation: tfoPopCk .5s ease; }
@keyframes tfoPopCk { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.tfo-list.all-done { border-color: rgba(139,92,246,.55); box-shadow: 0 0 0 1px rgba(139,92,246,.25), 0 8px 26px rgba(124,58,237,.25); }
.tfo-glow { box-shadow: 0 0 0 2px #8b5cf6, 0 0 22px rgba(139,92,246,.45) !important; border-radius: 10px; transition: box-shadow .3s; }
html[data-theme="glass"] .tfo-card, html[data-theme="glass"] .tfo-list { background: rgba(30,31,38,.72); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
@media (max-width: 600px) {
  .tfo-modal { align-items: flex-end; padding: 0; }
  .tfo-card { width: 100%; border-radius: 22px 22px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); transform: translateY(40px); }
  .tfo-card::before { border-radius: 22px 22px 0 0; }
  .tfo-body { padding: 22px 18px 4px; } .tfo-body h2 { font-size: 20px; }
  .tfo-foot { padding: 12px 16px 18px; } .tfo-btn { padding: 11px 14px; }
  .tfo-linkrow { flex-direction: column; } .tfo-linkrow .tfo-btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .tfo-modal *, .tfo-list, .tfo-list * { animation: none !important; transition: none !important; } }
