/* Picker (team role, Socials businesses) */
.bz-picker{position:fixed;inset:0;z-index:2147482000;display:grid;place-items:center;padding:16px;background:rgba(3,7,16,.7);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-family:Inter,system-ui,sans-serif}
.bz-picker-card{display:flex;flex-direction:column;width:min(480px,100%);max-height:min(640px,calc(100dvh - 32px));padding:20px;border:1px solid rgba(255,255,255,.1);border-radius:20px;background:#0f1729;box-shadow:0 40px 80px -30px rgba(0,0,0,.8);color:#e8eef6}
.bz-picker-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.bz-picker-head h3{margin:0;font-size:18px}
.bz-picker-x{width:36px;height:36px;border:0;border-radius:10px;background:none;color:#93a2b8;font-size:22px;cursor:pointer}
.bz-picker-hint{margin:6px 0 12px;color:#93a2b8;font-size:13.5px}
.bz-picker-search{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.04)}
.bz-picker-search svg{width:18px;height:18px;fill:none;stroke:#7f8ea6;stroke-width:2}
.bz-picker-search input{flex:1;min-height:44px;border:0;background:none;color:#fff;font:inherit;font-size:15px;outline:none}
.bz-picker-chosen{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.bz-picker-chosen[hidden]{display:none}
.bz-picker-chip{padding:5px 10px;border:1px solid rgba(90,192,191,.5);border-radius:99px;background:rgba(90,192,191,.12);color:#cff5f3;font:600 12.5px Inter,sans-serif;cursor:pointer}
.bz-picker-list{flex:1;min-height:120px;margin:10px 0 0;padding:0;list-style:none;overflow-y:auto}
.bz-picker-list button{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;min-height:42px;padding:8px 12px;border:0;border-radius:10px;background:none;color:#dfe7f1;font:500 14.5px Inter,sans-serif;text-align:left;cursor:pointer}
.bz-picker-list button:hover{background:rgba(255,255,255,.05)}
.bz-picker-list button[aria-selected=true]{background:rgba(90,192,191,.15);color:#fff}
.bz-picker-list button[aria-selected=true]::after{content:'✓';color:#8fe3e1}
.bz-picker-list button:disabled{opacity:.42;cursor:not-allowed}
.bz-picker-list small{color:#7f8ea6;font-size:12px}
.bz-picker-empty{padding:14px;color:#7f8ea6;font-size:14px}
.bz-picker-status{min-height:18px;margin:8px 0 0;color:#ffc66d;font-size:13px}
.bz-picker-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}

/* Team role card on the Team page */
#appShell .team-role-card{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}
#appShell .team-role-card b{font-size:18px}
#appShell .team-role-card small{display:block;color:var(--muted,#93a2b8)}

/* Socials: businesses on the profile */
#appShell .cs-businesses{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#appShell .cs-business{padding:4px 10px;border:1px solid var(--hair);border-radius:99px;font-size:13px;color:inherit}

/* Teams dashboard: only missions + widgets you add */
#appShell #home.teams-dash .g-main>aside{display:none}
#appShell #home.teams-dash .g-main{grid-template-columns:minmax(0,1fr)}
#appShell .team-widgets{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;margin-top:16px}
#appShell .team-widget{position:relative;display:flex;flex-direction:column;min-height:220px}
#appShell .team-widget-head{display:flex;align-items:center;gap:8px;margin-bottom:12px}
#appShell .team-widget-head h3{flex:1;margin:0;font-size:16px}
.tw-icon{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:9px;background:none;color:#93a2b8;cursor:pointer}
.tw-icon:hover{background:rgba(255,255,255,.07);color:#fff}
.tw-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#appShell .tw-add-widget{display:flex;align-items:center;justify-content:center;gap:8px;min-height:220px;border:1.5px dashed rgba(255,255,255,.16);border-radius:var(--radius-lg,18px);background:none;color:#93a2b8;font:600 15px Inter,sans-serif;cursor:pointer;transition:border-color .2s,color .2s}
#appShell .tw-add-widget:hover{border-color:#5ac0bf;color:#fff}
#appShell .tw-menu{position:absolute;z-index:20;min-width:220px;padding:6px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:#111a2e;box-shadow:0 20px 50px -20px rgba(0,0,0,.8)}
#appShell .tw-menu button{display:block;width:100%;padding:10px 12px;border:0;border-radius:10px;background:none;color:#e8eef6;text-align:left;font:500 14px Inter,sans-serif;cursor:pointer}
#appShell .tw-menu button:hover{background:rgba(255,255,255,.06)}
#appShell .tw-menu button:disabled{opacity:.4;cursor:default}
.tw-empty{margin:auto 0;color:#7f8ea6;font-size:14px;text-align:center}
.tw-events{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tw-event{display:grid;grid-template-columns:4px 1fr auto;gap:10px;align-items:start;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06)}
.tw-event i{align-self:stretch;border-radius:4px}
.tw-event b{display:block;font-size:14px}
.tw-event small{display:block;color:#93a2b8;font-size:12.5px}
.tw-event.done b{text-decoration:line-through;color:#7f8ea6}
.tw-imp{padding:2px 8px;border-radius:99px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.tw-imp.high{background:rgba(255,143,126,.15);color:#ffb3a6}
.tw-imp.medium{background:rgba(255,198,109,.12);color:#ffd590}
.tw-imp.low{background:rgba(255,255,255,.06);color:#aab6c6}
#appShell .tw-todo-form{display:flex;gap:8px;margin-bottom:10px}
#appShell .tw-todo-form input{flex:1;min-height:40px;padding:0 12px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.04);color:#fff;font:inherit}
#appShell .tw-todos{list-style:none;margin:0;padding:0;display:grid;gap:4px;max-height:260px;overflow-y:auto}
#appShell .tw-todo{display:flex;align-items:center;gap:10px;padding:8px 6px;border-radius:10px}
#appShell .tw-todo:hover{background:rgba(255,255,255,.04)}
#appShell .tw-todo input{width:20px;height:20px;accent-color:#5ac0bf;flex:none;cursor:pointer}
#appShell .tw-todo span{flex:1;font-size:14px}
#appShell .tw-todo.done span{text-decoration:line-through;color:#7f8ea6}
#appShell .tw-todo .tw-icon{width:28px;height:28px;opacity:0}
#appShell .tw-todo:hover .tw-icon{opacity:1}

/* Team calendar */
.tw-cal{position:fixed;inset:0;z-index:2147481000;display:grid;place-items:center;padding:16px;background:rgba(3,7,16,.72);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-family:Inter,system-ui,sans-serif;color:#e8eef6}
.tw-cal-card{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);width:min(1100px,100%);height:min(720px,calc(100dvh - 32px));border:1px solid rgba(255,255,255,.1);border-radius:22px;background:#0d1527;overflow:hidden;box-shadow:0 40px 90px -30px rgba(0,0,0,.85)}
.tw-cal-month{display:flex;flex-direction:column;padding:18px;min-width:0}
.tw-cal-top{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.tw-cal-top h3{flex:1;margin:0;font-size:20px;text-transform:capitalize}
.tw-cal-top button{min-width:36px;height:36px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:none;color:#e8eef6;cursor:pointer}
.tw-cal-grid{flex:1;display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:auto repeat(6,minmax(0,1fr));gap:4px;min-height:0}
.tw-cal-dow{padding:4px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#7f8ea6;text-align:center}
.tw-cal-day{display:flex;flex-direction:column;gap:3px;min-width:0;padding:6px;border:1px solid rgba(255,255,255,.06);border-radius:10px;background:rgba(255,255,255,.02);color:#dfe7f1;text-align:left;cursor:pointer;overflow:hidden}
.tw-cal-day:hover{border-color:rgba(90,192,191,.5)}
.tw-cal-day.other{opacity:.38}
.tw-cal-day.today b{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#5ac0bf;color:#05101a}
.tw-cal-day.selected{border-color:#5ac0bf;background:rgba(90,192,191,.08)}
.tw-cal-day b{font-size:12.5px}
.tw-cal-day span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:1px 6px;border-radius:5px;font-size:11px;color:#05101a;font-weight:600}
.tw-cal-side{display:flex;flex-direction:column;min-height:0;padding:18px;border-left:1px solid rgba(255,255,255,.07);background:#0a1120;overflow-y:auto}
.tw-cal-side h4{margin:0 0 10px;font-size:16px;text-transform:capitalize}
.tw-cal-close{position:absolute;top:22px;right:22px}
.tw-form{display:grid;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08)}
.tw-form label{display:grid;gap:5px;font-size:12px;font-weight:600;color:#93a2b8}
.tw-form input,.tw-form select,.tw-form textarea{min-height:38px;padding:0 10px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.04);color:#fff;font:400 14px Inter,sans-serif}
.tw-form textarea{min-height:64px;padding:8px 10px;resize:vertical}
.tw-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tw-seg{display:flex;gap:4px;padding:3px;border:1px solid rgba(255,255,255,.1);border-radius:10px}
.tw-seg button{flex:1;min-height:32px;border:0;border-radius:8px;background:none;color:#93a2b8;font:600 13px Inter,sans-serif;cursor:pointer}
.tw-seg button[aria-pressed=true]{background:#5ac0bf;color:#05101a}
.tw-colors{display:flex;gap:6px}
.tw-colors button{width:26px;height:26px;border:2px solid transparent;border-radius:50%;cursor:pointer}
.tw-colors button[aria-pressed=true]{border-color:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.2)}
.tw-people{display:flex;flex-wrap:wrap;gap:6px}
.tw-people button{padding:5px 10px;border:1px solid rgba(255,255,255,.14);border-radius:99px;background:none;color:#cfd6e0;font:500 12.5px Inter,sans-serif;cursor:pointer}
.tw-people button[aria-pressed=true]{border-color:#5ac0bf;background:rgba(90,192,191,.15);color:#fff}
.tw-form-actions{display:flex;gap:8px;justify-content:flex-end}
.tw-status{min-height:16px;color:#ffc66d;font-size:12.5px}
@media(max-width:860px){.tw-cal-card{grid-template-columns:1fr;height:calc(100dvh - 32px);overflow-y:auto}.tw-cal-month{min-height:420px}.tw-cal-side{border-left:0;border-top:1px solid rgba(255,255,255,.07)}}

/* Join flow: the long role list scrolls and filters */
.team-flow-card .team-role-list{max-height:260px;overflow-y:auto;grid-template-columns:repeat(2,minmax(0,1fr))!important;margin:10px 0 14px}
.team-flow-card .team-role[hidden]{display:none}
.team-flow-card .team-role-search{margin-top:12px}

/* More dashboard widgets */
#appShell .tw-bars,#appShell .tw-stats,#appShell .tw-msgs{list-style:none;margin:0;padding:0;display:grid;gap:10px}
#appShell .tw-bars li{display:grid;grid-template-columns:minmax(0,1.2fr) 2fr auto;align-items:center;gap:10px;font-size:14px}
#appShell .tw-bars small{display:block;color:#7f8ea6;font-size:12px}
#appShell .tw-bar{height:8px;border-radius:9px;background:rgba(255,255,255,.07);overflow:hidden}
#appShell .tw-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5ac0bf,#8fe3e1)}
#appShell .tw-bars span{font-weight:700;font-variant-numeric:tabular-nums}
#appShell .tw-stats li{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:12px;align-items:center;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.03);font-size:14px}
#appShell .tw-stats span{color:#c3cedd;font-variant-numeric:tabular-nums}
#appShell .tw-foot{margin:10px 0 0;color:#7f8ea6;font-size:12.5px}
#appShell .tw-goal b{display:block;font-size:34px;letter-spacing:-.03em}
#appShell .tw-goal small{color:#93a2b8}
#appShell .tw-goal p{margin:10px 0 14px;color:#c3cedd;font-size:14px}
#appShell .tw-goal p b{display:inline;font-size:14px}
#appShell .tw-goal-open{margin-top:auto}
#appShell .tw-notes{flex:1;min-height:140px;padding:12px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.03);color:#e8eef6;font:400 14px/1.5 Inter,sans-serif;resize:vertical}
#appShell .tw-msgs li{display:grid;gap:2px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.03)}
#appShell .tw-msgs li.unread{border-left:3px solid #5ac0bf}
#appShell .tw-msgs span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#93a2b8;font-size:13px}
#appShell .tw-msgs-open{margin-top:10px}
/* Personal dashboard (no Teams): the same widgets row under the missions card. */
#appShell .team-widgets.is-personal{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
/* Revenue goal ring */
#appShell .tw-ring-wrap{display:flex;align-items:center;gap:18px;margin-bottom:14px}
#appShell .tw-ring{position:relative;flex:none;width:112px;height:112px}
#appShell .tw-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
#appShell .tw-ring circle{fill:none;stroke-width:10}
#appShell .tw-ring-track{stroke:rgba(255,255,255,.08)}
#appShell .tw-ring-fill{stroke:#5ac0bf;stroke-linecap:round;transition:stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1)}
#appShell .tw-ring.is-done .tw-ring-fill{stroke:#7ddc9a}
#appShell .tw-ring>b{position:absolute;inset:0;display:grid;place-items:center;font-size:22px;letter-spacing:-.02em}
#appShell .tw-ring-wrap .tw-goal{min-width:0}
#appShell .tw-ring-wrap .tw-goal b{font-size:28px}
#appShell .tw-ring-wrap .tw-goal p{margin:8px 0 0}
@media (prefers-reduced-motion:reduce){#appShell .tw-ring-fill{transition:none}}
/* Socials activity */
#appShell .tw-social-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}
#appShell .tw-social-stat{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 4px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.03);color:#c3cedd;font:inherit;cursor:pointer}
#appShell .tw-social-stat b{font-size:20px;color:#eef2fb}
#appShell .tw-social-stat small{font-size:11.5px;color:#93a2b8}
#appShell .tw-social-stat.is-new{border-color:rgba(90,192,191,.45);background:rgba(90,192,191,.1)}
#appShell .tw-social-stat.is-new b{color:#8fe3e2}
#appShell .tw-social-list{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:2px}
#appShell .tw-social-list button{display:block;width:100%;padding:8px 10px;border:0;border-radius:10px;background:none;color:#c3cedd;font:inherit;font-size:14px;text-align:left;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#appShell .tw-social-list button:hover{background:rgba(255,255,255,.05)}
#appShell .tw-social-list li.unread button{color:#eef2fb}
#appShell .tw-social-list li.unread button::before{content:"";display:inline-block;width:7px;height:7px;margin-right:8px;border-radius:50%;background:#5ac0bf;vertical-align:middle}
#appShell .tw-social-open{margin-top:auto}
