.teamSeatDock{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
.teamSeatPill{
  display:inline-flex;align-items:center;gap:8px;
  min-height:42px;
  padding:10px 14px;
  border:1px solid rgba(139,233,253,.20);
  background:linear-gradient(180deg, rgba(12,19,42,.78), rgba(7,12,28,.88));
  color:rgba(238,244,255,.92);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 12px 28px rgba(0,0,0,.22);
}
.teamSeatPill .teamDot{width:8px;height:8px;border-radius:999px;background:rgba(96,227,176,.88);box-shadow:0 0 0 4px rgba(96,227,176,.10)}
.teamSeatLine{margin-top:8px;opacity:.94}
.teamSeatLine b{color:#eef4ff}
.teamSeatLine .muted{color:#9eb2d8}

.modal.teamModal{
  z-index:10040;
  background:rgba(4,8,20,.24);
  backdrop-filter:blur(10px) saturate(122%);
  -webkit-backdrop-filter:blur(10px) saturate(122%);
}
.teamModal .modalInner{
  width:min(1080px,94vw);
  height:min(90vh, 920px);
  max-height:min(90vh, 920px);
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:28px;
  border:1px solid rgba(145,178,235,.18);
  background:linear-gradient(180deg, rgba(10,16,36,.62), rgba(7,12,28,.72));
  backdrop-filter:blur(18px);
  box-shadow:0 24px 96px rgba(0,0,0,.36), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.teamModal .modalHead{
  padding:18px 20px;
  border-bottom:1px solid rgba(145,178,235,.12);
  background:linear-gradient(180deg, rgba(10,16,36,.34), rgba(10,16,36,.08));
}
.teamModal .modalBody{
  flex:1 1 auto;
  min-height:0;
  padding:18px 20px 20px;
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(320px, .95fr);
  gap:18px;
  overflow:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  align-items:start;
  scrollbar-gutter:stable both-edges;
}
.teamModal .modalBody::-webkit-scrollbar{width:12px}
.teamModal .modalBody::-webkit-scrollbar-track{background:transparent}
.teamModal .modalBody::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, rgba(135,219,255,.44), rgba(160,139,255,.34));
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}
.teamModal .modalBody{scrollbar-color:rgba(135,219,255,.55) transparent}
.teamLead{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.teamLead .title{font-size:30px;line-height:1.04;font-weight:800}
.teamLead .tiny{max-width:58ch}
.teamWorkspacePills,.teamStatusPills,.teamMetaPills{display:flex;gap:8px;flex-wrap:wrap}
.teamStatusPills .pill,.teamMetaPills .pill{font-size:12px;padding:7px 11px}
.teamStatusPills .pill.good .teamDot,.teamMetaPills .pill.good .teamDot{background:rgba(96,227,176,.88)}
.teamShell{display:grid;gap:16px}
.teamCard{
  border:1px solid rgba(145,178,235,.14);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(12,19,42,.58), rgba(8,13,30,.72));
  box-shadow:0 16px 42px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
  padding:18px;
}
.teamCard.is-focus-next{
  border-color:rgba(102,182,255,.42);
  box-shadow:0 0 0 1px rgba(102,182,255,.18),0 0 26px rgba(102,182,255,.10), inset 0 1px 0 rgba(255,255,255,.05);
}
.teamCard .eyebrow{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#87dbff;font-weight:800}
.teamCard h4{margin:10px 0 6px;font-size:22px;line-height:1.08}
.teamCard p{margin:0;color:#b8c8ea;line-height:1.5}
.teamSummaryGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.teamMetric{
  border:1px solid rgba(145,178,235,.12);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(7,12,28,.52), rgba(7,12,28,.24));
  padding:14px;
}
.teamMetric .label{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#9eb2d8;font-weight:700}
.teamMetric .value{margin-top:8px;font-size:30px;font-weight:800;line-height:1;color:#eef4ff}
.teamMetric .note{margin-top:8px;font-size:12px;color:#9eb2d8}
.teamForm{display:grid;gap:14px;margin-top:14px}
.teamFormGrid{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:12px}
.teamFormGridWide{grid-template-columns:minmax(0,1fr) minmax(220px,1fr)}
.teamFormGridWide > .teamField:first-child{grid-column:1 / -1}
.teamField{display:grid;gap:6px}
.teamField label{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#9eb2d8;font-weight:700}
.teamField input,.teamField select,.teamField textarea{
  width:100%;background:rgba(5,11,28,.62);border:1px solid rgba(145,178,235,.18);border-radius:16px;color:#eef4ff;padding:12px 14px;
}
.teamField textarea{resize:vertical;min-height:84px;font:inherit;line-height:1.5}
.teamField input:focus,.teamField select:focus,.teamField textarea:focus{outline:none;border-color:rgba(102,182,255,.48);box-shadow:0 0 0 3px rgba(102,182,255,.12)}
.teamButtonRow{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.teamButtonRow button{min-height:44px}
.teamList{display:grid;gap:12px;margin-top:14px}
.teamListHeader{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px}
.teamListHeader h5{margin:0;font-size:15px;letter-spacing:.12em;text-transform:uppercase;color:#9eb2d8}
.teamItem{
  border:1px solid rgba(145,178,235,.12);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(8,13,30,.54), rgba(6,10,24,.70));
  padding:14px;
}
.teamItemHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.teamItemTitle{font-size:18px;font-weight:800;line-height:1.12;color:#eef4ff}
.teamItemMeta{margin-top:6px;font-size:13px;color:#9eb2d8;line-height:1.5}
.teamRolePill{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(145,178,235,.16);border-radius:999px;padding:7px 11px;background:rgba(7,12,28,.48);font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#87dbff}
.teamRolePill.is-reviewer,.teamRolePill.is-warn{color:#ffbf67;border-color:rgba(255,191,103,.24)}
.teamRolePill.is-owner,.teamRolePill.is-good{color:#60e3b0;border-color:rgba(96,227,176,.24)}
.teamRolePill.is-bad{color:#ff7b90;border-color:rgba(255,123,144,.24)}
.teamTaskPills{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.teamMiniRow{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.teamMiniRow button,.teamMiniRow select{min-height:38px;border-radius:14px}
.teamMiniRow select{background:rgba(5,11,28,.62);border:1px solid rgba(145,178,235,.18);color:#eef4ff;padding:0 12px}
.teamBanner{
  margin-top:14px;padding:12px 14px;border-radius:18px;border:1px solid rgba(145,178,235,.18);background:linear-gradient(180deg, rgba(10,16,36,.58), rgba(7,12,28,.42));color:#eef4ff;line-height:1.5;
}
.teamBanner.good{border-color:rgba(96,227,176,.24);background:linear-gradient(180deg, rgba(10,36,28,.36), rgba(7,24,20,.34))}
.teamBanner.warn{border-color:rgba(255,191,103,.24);background:linear-gradient(180deg, rgba(44,31,14,.34), rgba(25,18,9,.32))}
.teamBanner.bad{border-color:rgba(255,123,144,.24);background:linear-gradient(180deg, rgba(42,18,28,.34), rgba(20,9,13,.32))}
.teamGhost{background:transparent !important;border:1px solid rgba(145,178,235,.18) !important;color:#eef4ff !important}
.teamTight{margin-top:10px}
.teamOverlayNote{color:#9eb2d8;font-size:12px;line-height:1.5;margin-top:12px}
.teamModal .modalCloseBtn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:16px;border:1px solid rgba(145,178,235,.18);background:rgba(7,12,28,.52);color:#eef4ff;font-size:22px;line-height:1}
.teamClaimCard{position:static}
.teamBannerFull{grid-column:1 / -1}
.teamCard small{display:block;color:#9eb2d8;margin-top:8px}
body[data-theme="light"] .teamModal .modalInner{background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,247,255,.95));border-color:rgba(24,34,66,.10);box-shadow:0 28px 72px rgba(24,34,66,.18)}
body[data-theme="light"] .teamModal .modalHead{border-bottom-color:rgba(24,34,66,.08)}
body[data-theme="light"] .teamCard,
body[data-theme="light"] .teamItem,
body[data-theme="light"] .teamMetric{background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(245,248,255,.90));border-color:rgba(24,34,66,.10);box-shadow:0 18px 40px rgba(24,34,66,.08)}
body[data-theme="light"] .teamField input,
body[data-theme="light"] .teamField select,
body[data-theme="light"] .teamField textarea,
body[data-theme="light"] .teamMiniRow select{background:rgba(255,255,255,.92);border-color:rgba(24,34,66,.12);color:#09122a}
body[data-theme="light"] .teamMetric .value,
body[data-theme="light"] .teamItemTitle,
body[data-theme="light"] .teamLead .title,
body[data-theme="light"] .teamModal .modalCloseBtn,
body[data-theme="light"] .teamGhost{color:#09122a !important}
body[data-theme="light"] .teamBanner{background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,248,255,.92));border-color:rgba(24,34,66,.12);color:#182242}

@media(max-width:980px){
  .teamModal .modalInner{width:min(96vw, 760px)}
  .teamModal .modalBody{grid-template-columns:1fr}
}
@media(max-width:640px){
  .teamModal{padding:10px}
  .teamModal .modalInner{width:100%;height:min(92vh, 92dvh);max-height:min(92vh, 92dvh);border-radius:24px}
  .teamModal .modalHead{padding:16px}
  .teamModal .modalBody{padding:16px;gap:14px}
  .teamSummaryGrid,.teamFormGrid,.teamFormGridWide{grid-template-columns:1fr}
  .teamLead .title{font-size:24px}
}

.operatorHeaderMeta #teamSeatDock{margin-top:10px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.operatorHeaderMeta #teamSeatLine{margin-top:8px}

/* v0.92: desktop-safe local draft layout; keep labels from colliding in the right-column overlay. */
.teamFormGridWide .teamField label{line-height:1.15;white-space:normal;}
@media(min-width:981px){
  .teamFormGridWide{grid-template-columns:minmax(0,1fr) minmax(220px,1fr);}
  .teamFormGridWide > .teamField:first-child{grid-column:1 / -1;}
}
