/* Teams: the workspace switcher, Settings → Team and the role note. Uses the dashboard's tokens (public/dashboard.html). */
.role-hidden{display:none!important}

/* the switcher, under the logo */
.ws-switch{position:relative;margin:-10px 0 14px}
.ws-btn{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--wash);color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background var(--t),border-color var(--t)}
.ws-btn:hover{background:var(--surface);border-color:var(--line2)}
.ws-btn .ic{margin-left:auto;flex:none;stroke:var(--mute)}
.ws-av{flex:none;width:32px;height:32px;border-radius:9px;background:var(--ink);color:#fff;display:grid;place-items:center;font:760 15px/1 var(--display)}
.ws-av.sm{width:28px;height:28px;font-size:13px;border-radius:8px;background:var(--ink2)}
.ws-txt{display:flex;flex-direction:column;min-width:0}
.ws-txt b{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ws-txt small{font-size:12.5px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ws-menu{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);padding:6px;max-height:340px;overflow:auto}
.ws-opt{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:7px 8px;border:0;border-radius:9px;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.ws-opt:hover,.ws-opt:focus-visible{background:var(--wash)}
.ws-opt.on{background:var(--sunk)}
.ws-opt .ic{margin-left:auto;flex:none;stroke:var(--wire)}

/* the note at the top when the role limits what this person can do */
.role-note{margin:0 0 16px;padding:12px 16px;border-radius:var(--r-md);background:var(--surface);border:1px solid var(--line);border-left:5px solid var(--wire);font-size:14.5px;color:var(--ink2)}
.role-note a{color:var(--wire);font-weight:650}

/* Settings → Team */
.team-card .sub{margin:4px 0 14px}
.team-seats{margin:0 0 16px}
.team-seats .row-sb{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:14px;margin-bottom:6px}
.team-seats .bar{height:8px}
.team-name .row,.team-danger .row,.team-link .row{display:flex;gap:8px;align-items:center}
.team-name input,.team-link input{flex:1;min-width:0}
.team-name label{margin-top:4px}
.team-invite{margin:6px 0 4px}
.ti-row{display:grid;grid-template-columns:minmax(0,1fr) 150px auto auto;gap:8px;align-items:start}
.ti-row input{min-width:0}
.ti-row .team-role{width:100%}
.team-role{width:auto;min-height:0;height:44px;border-radius:10px;border:1.5px solid var(--line);background-color:var(--wash);color:var(--ink);font:600 14px/1 var(--text);padding:0 34px 0 12px;min-width:0}
.team-brands{position:relative}
.team-brands summary{list-style:none;cursor:pointer;height:44px;display:flex;align-items:center;gap:6px;padding:0 12px;border:1.5px solid var(--line);border-radius:10px;background:var(--wash);font:600 14px/1 var(--text);color:var(--ink);white-space:nowrap}
.team-brands summary::-webkit-details-marker{display:none}
.team-brands summary::after{content:"";width:7px;height:7px;border-right:2px solid var(--mute);border-bottom:2px solid var(--mute);transform:rotate(45deg) translateY(-2px);margin-left:4px}
.team-brands[open] summary{border-color:var(--wire)}
.tb-list{position:absolute;z-index:25;right:0;top:calc(100% + 4px);min-width:230px;max-height:280px;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);padding:10px 12px}
.tb-list p{margin:0 0 6px}
.tb-opt{display:flex;align-items:center;gap:8px;margin:0;padding:7px 2px;font-weight:550;font-size:14px;cursor:pointer}
.team-link{margin-top:10px;padding:12px;border-radius:10px;background:var(--wash);border:1px dashed var(--line2)}
.team-link .row{margin-top:6px}
.team-h{margin:20px 0 6px;font:700 13px/1 var(--text);text-transform:uppercase;letter-spacing:.05em;color:var(--mute)}
.team-list{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:12px;overflow:visible}
.team-m{display:flex;align-items:center;gap:12px;padding:10px 12px;border-top:1px solid var(--line)}
.team-m:first-child{border-top:0}
.tm-av{flex:none;width:34px;height:34px;border-radius:50%;background:var(--sunk);color:var(--ink);display:grid;place-items:center;font-weight:750}
.tm-av.ghost{background:transparent;border:1.5px dashed var(--line2);color:var(--mute)}
.tm-who{display:flex;flex-direction:column;min-width:0;flex:1}
.tm-who b{font-size:14.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-line{display:flex;align-items:center;min-width:0}
.tm-line b{min-width:0}
.tm-who small{color:var(--mute);font-size:13px}
.tm-tag{flex:none;display:inline-block;margin-left:6px;padding:1px 7px;border-radius:99px;background:var(--sunk);color:var(--ink2);font-size:11.5px;font-weight:700;vertical-align:1px}
.tm-tag.warn{background:var(--warn-soft);color:var(--warn)}
.tm-ctl{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.tm-ctl .team-role{height:38px;min-width:140px}
.tm-ctl .team-brands summary{height:38px}
.tm-ctl .btn.sm{min-height:38px}
.team-roles{margin-top:16px}
.team-roles summary,.team-danger summary{cursor:pointer;font-weight:650;color:var(--ink2)}
.team-roles dl{display:grid;grid-template-columns:120px minmax(0,1fr);gap:6px 12px;margin:10px 0 0;font-size:14px}
.team-roles dt{font-weight:700}.team-roles dd{margin:0;color:var(--mute)}
.team-danger{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.team-danger .row{margin-top:8px;flex-wrap:wrap}
.team-danger select,.team-danger input{flex:1;min-width:160px}
.team-leave{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}

@media (max-width:720px){
  .ti-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .ti-row input{grid-column:1 / -1}
  .ti-row .btn{grid-column:1 / -1}
  .tb-list{left:0;right:auto}
  .team-m{flex-wrap:wrap}
  .tm-ctl{width:100%;justify-content:flex-start;padding-left:46px}
  .tm-ctl .team-role{flex:1 1 100%}
  .team-roles dl{grid-template-columns:minmax(0,1fr)}
  .team-roles dd{margin-bottom:6px}
}
