#teamsView{max-width:1100px;margin:0 auto;padding-bottom:40px}
#teamsView .team-intro{margin:20px 0 28px}
#teamsView h1{font-size:32px;letter-spacing:-.035em;margin:8px 0}
#teamsView h2{font-size:21px;margin:0 0 12px}
#teamsView h3{font-size:16px;margin:0 0 10px}
#teamsView p{line-height:1.65;overflow-wrap:anywhere}
.team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.team-panel,.team-item{border:1px solid #e2e4e7;border-radius:12px;padding:22px;background:#fff;margin-bottom:16px;min-width:0}
.team-form{display:grid;gap:12px;align-content:start}.team-form label{font-size:13px;font-weight:600;display:grid;gap:7px}
#teamsView input:not([type=checkbox]),#teamsView textarea,#teamsView select{width:100%;min-width:0;box-sizing:border-box;font:inherit}
#teamsView textarea{resize:vertical;line-height:1.6}#teamsView input[type=checkbox]{width:18px;height:18px;flex:none}
.team-actions,.team-tabs,.team-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.team-heading{justify-content:space-between;align-items:flex-start}.team-heading>div{min-width:0}
.team-actions{margin-top:12px}.team-tabs{margin:20px 0;border-bottom:1px solid #e2e4e7;padding-bottom:12px}
.team-tabs button[aria-pressed=true]{background:#111;color:#fff;border-color:#111}
.team-badge{display:inline-block;font-size:12px;padding:3px 9px;border:1px solid #e1e3e6;border-radius:20px;background:#f7f8f9;color:#555;white-space:nowrap}
.team-badge.pending{background:#fcf8ed;color:#806327;border-color:#eadfbd}.team-badge.approved{background:#f0f7f2;color:#356746;border-color:#d4e7da}
.team-prose{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7;margin:12px 0;max-height:360px;overflow:auto}
.team-meta{color:#72757c;font-size:12px;overflow-wrap:anywhere}.team-empty{padding:24px 0;color:#72757c}
.team-status{padding:12px 16px;border:1px solid #dce5dd;border-radius:8px;background:#f4f8f4;margin:16px 0;overflow-wrap:anywhere}
.team-status.error{color:#8c3232;border-color:#e7cdcd;background:#fcf5f5}
.team-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:12px 0}.team-compare>div{background:#f7f8fa;padding:16px;border-radius:8px;min-width:0}
.team-check{display:flex!important;align-items:center;gap:10px!important}.team-note{font-size:13px;color:#666}
#teamsView button{min-height:44px}#teamsView .team-link{font-size:12px;word-break:break-all}
@media(max-width:640px){.team-grid,.team-compare{grid-template-columns:1fr}.team-panel,.team-item{padding:16px}.team-heading h1{font-size:26px}.team-tabs{gap:6px}.team-tabs button{padding:9px 11px}.team-actions button{flex:1 1 auto}.team-form .row{display:grid;gap:10px}.team-actions{align-items:stretch}}
/* The extra Team destination must remain reachable with the English labels. */
@media(max-width:680px){body:not(.auth-page) .workspace-topbar .topbar-actions-scroll{flex-wrap:wrap;overflow-x:visible;gap:8px}body:not(.auth-page) .workspace-topbar .topbar-nav{flex:1 1 100%;gap:18px}body:not(.auth-page) .workspace-topbar .topbar-actions{align-items:flex-end}}
