[hidden], html:not([data-team-role="admin"]) [data-admin] { display: none !important; }
html:not([data-team-ready]) body { padding: 0 !important; }
#team-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(ellipse at 25% 0%, #264c52, #101c29 68%); color: #eef6f7;
  font: 15px/1.5 "Segoe UI", system-ui, sans-serif; }
.gate-card { width: min(100%, 435px); padding: clamp(24px,6vw,42px); border: 1px solid #486670;
  border-radius: 15px; background: #192a37; box-shadow: 0 24px 72px #0005; }
.gate-card img { display: block; width: min(260px,100%); height: auto; margin-bottom: 22px; }
.gate-card h1 { font-size: 26px; margin: 0 0 6px; }
.gate-card p { color: #c8d7dd; margin: 0 0 18px; }
.gate-card button { padding: 10px 14px; border: 1px solid #8adbd0; border-radius: 8px;
  background: #91dcd3; color: #102a36; font: inherit; font-weight: 650; cursor: pointer; }
.gate-card button:disabled { opacity: .65; cursor: wait; }
.team-role { align-self: center; padding: 4px 8px; border: 1px solid #6ea9a6; border-radius: 5px; font-weight: 650; }
.team-sync { align-self: center; font-size: 12px; opacity: .85; }
.team-empty { margin: 16px auto; max-width: 850px; padding: 20px; }
#team-members { width: min(560px, calc(100% - 24px)); max-height: min(88dvh,750px); padding: 20px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
#team-members::backdrop { background: #0b1420a8; }
#team-members :is(h2,h3) { margin: 0; }
#team-members p, .member-row small { color: var(--muted); }
.team-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
#team-invite { margin-bottom: 20px; }
#team-invite label { display:block; margin-bottom:4px; font-weight:650; }
#team-email { flex:1; min-width:0; padding:7px 8px; border:1px solid var(--line); border-radius:6px;
  color:var(--ink); background:var(--bg); font:inherit; }
#team-members-list { list-style:none; padding:0; margin:0; }
.member-row { padding:8px 0; border-bottom:1px solid var(--line); }
.member-row span { display:block; overflow-wrap:anywhere; }
.team-row button { flex-shrink:0; }
