/* ================= v2-dashboard.css =================
   New v2 pieces: /api/me driven UI, plan upsells, guided tour, People/Plan.
   Every new class is prefixed v2- so nothing collides with the prototype's own CSS. */

/* an <a class="btn"> (used for upsell links that must be real hrefs, not buttons) should look
   exactly like a <button class="btn"> — the browser's link defaults would otherwise win */
a.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:inherit}

/* ---- plan upsell banner (shown instead of a feature's page content when it is not in the plan) ---- */
.v2-upsell{display:flex;align-items:flex-start;gap:14px;padding:18px 20px;border-radius:18px;background:var(--soft);margin:0 0 18px;max-width:640px}
.v2-upsell .v2-up-ic{width:38px;height:38px;border-radius:11px;background:var(--tealsoft);color:var(--teal);display:grid;place-items:center;flex:none}
.v2-upsell .v2-up-ic svg{width:19px;height:19px}
.v2-upsell b{display:block;font-size:15px;margin-bottom:3px}
.v2-upsell p{margin:0;font-size:13.5px;color:var(--ink2);line-height:1.5}
.v2-upsell .btn{margin-top:10px}

/* "Coming soon" (B16): a locked page shows only its panel; the menu item keeps a small tag */
[data-v2soon]>:not(.v2-soon){display:none!important}
.v2-soon-tag{margin-left:8px;padding:1px 7px;border-radius:999px;background:var(--soft);color:var(--ink2);font-size:10.5px;font-weight:600;white-space:nowrap}

/* small upsell strip, used inline on a widget or settings row instead of the full banner */
.v2-upsell-sm{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:var(--soft);font-size:13px;color:var(--ink2)}
.v2-upsell-sm b{color:var(--ink)}
.v2-upsell-sm .btn{margin-left:auto;flex:none}

/* ---- nav hidden for a role ---- */
.nav [data-v2hide]{display:none !important}

.st-busy{opacity:.6;cursor:default}

/* "what now" chips under an Ask your team answer (home card and corner chat) */
.ans-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ans-chips .btn{height:32px;padding:0 13px;font-size:13px;border:1px solid var(--line);background:var(--card)}
.ans-chips .btn:hover{background:var(--soft)}

/* ---- settings > people, wired to /api/members ---- */
.v2-copylink{display:flex;gap:8px;align-items:center;margin-top:4px}
.v2-copylink input{flex:1;height:38px;border-radius:10px;border:1px solid var(--line);padding:0 10px;font-size:13px;background:var(--soft);color:var(--ink2)}
.v2-pending{font-size:12px;color:var(--ink3);margin-top:2px}
.v2-err{font-size:13px;color:#b42318;margin-top:8px}
html[data-theme=dark] .v2-err{color:#f08a8a}
.v2-loading{font-size:13.5px;color:var(--ink3);padding:10px 0}

/* ---- plan section top-ups ---- */
.v2-topups{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.v2-topup{display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:14px;border:1px solid var(--line);min-width:160px}
.v2-topup b{font-size:14px}
.v2-topup span{font-size:12.5px;color:var(--ink3)}

/* ---- notice toast already exists (#toast); nothing new needed there ---- */

/* ================= guided tour ================= */
.v2-tour-scrim{position:fixed;inset:0;z-index:90;background:rgba(20,26,24,.55);opacity:0;transition:opacity .25s var(--ease);pointer-events:none}
.v2-tour-scrim.on{opacity:1;pointer-events:auto}
.v2-tour-hole{position:fixed;z-index:91;border-radius:14px;box-shadow:0 0 0 4px var(--card),0 0 0 9999px rgba(20,26,24,.55);transition:all .35s var(--ease);pointer-events:none}
.v2-tour-card{position:fixed;z-index:92;width:300px;background:var(--card);border-radius:18px;padding:18px 20px;box-shadow:0 30px 60px -24px rgba(12,37,41,.55);transition:top .35s var(--ease),left .35s var(--ease)}
.v2-tour-card b{display:block;font-size:15.5px;margin-bottom:6px}
.v2-tour-card p{margin:0;font-size:13.5px;color:var(--ink2);line-height:1.5}
.v2-tour-dots{display:flex;gap:6px;margin-top:14px}
.v2-tour-dots i{width:6px;height:6px;border-radius:50%;background:var(--line)}
.v2-tour-dots i.on{background:var(--teal);width:16px;border-radius:3px}
.v2-tour-foot{display:flex;align-items:center;margin-top:16px;gap:8px}
.v2-tour-foot .v2-skip{font-size:13px;color:var(--ink3);background:none;border:0;padding:6px 2px;cursor:pointer}
.v2-tour-foot .v2-skip:hover{color:var(--ink2)}
.v2-tour-foot .v2-nav{margin-left:auto;display:flex;gap:8px}
@media (prefers-reduced-motion:reduce){.v2-tour-scrim,.v2-tour-hole,.v2-tour-card{transition:none}}

/* avatar menu: business + role line (added to account.js's ac-menu) */
.ac-who .v2-biz{display:block;font-size:12px;color:var(--ink3);margin-top:1px}
.ac-menu button[data-ac="tour"]{color:var(--teal)}
