#teamWorkspaceRoot {
  --tw-text: #20253a;
  --tw-text-secondary: #505a73;
  --tw-text-muted: #657089;
  --tw-text-on-dark: #f7f9ff;
  --tw-surface: #f7f8fc;
  --tw-surface-raised: #ffffff;
  --tw-surface-soft: #eef1f8;
  --tw-border: #d5dae8;
  --tw-border-strong: #bfc7da;
  --tw-primary: #6e57df;
  --tw-primary-hover: #5d47ca;
  --tw-success: #147a62;
  --tw-success-bg: #e5f5ef;
  --tw-warning: #8a5a12;
  --tw-warning-bg: #fff3d9;
  --tw-danger: #a53a52;
  --tw-danger-bg: #fdecef;
  --tw-focus: #38c5be;
  --tw-radius-card: 16px;
  --tw-radius-control: 9px;
  --tw-radius-chip: 6px;
  --tw-elevation-low: 0 5px 18px rgba(12, 18, 45, .07);
  --tw-elevation-overlay: 0 24px 70px rgba(5, 8, 28, .3);
  --tw-space-1: 4px;
  --tw-space-2: 8px;
  --tw-space-3: 12px;
  --tw-space-4: 16px;
  --tw-space-5: 20px;
  --tw-space-6: 24px;
  --tw-space-8: 32px;
  width: min(1440px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: 24px 0 80px;
  color: var(--tw-text);
}

#teamNotificationPanel, .team-dialog {
  --tw-text: #20253a;
  --tw-text-secondary: #505a73;
  --tw-text-muted: #657089;
  --tw-surface: #f7f8fc;
  --tw-surface-raised: #ffffff;
  --tw-surface-soft: #eef1f8;
  --tw-border: #d5dae8;
  --tw-border-strong: #bfc7da;
  --tw-primary: #6e57df;
  --tw-primary-hover: #5d47ca;
  --tw-success: #147a62;
  --tw-success-bg: #e5f5ef;
  --tw-warning: #8a5a12;
  --tw-warning-bg: #fff3d9;
  --tw-danger: #a53a52;
  --tw-danger-bg: #fdecef;
  --tw-focus: #38c5be;
  --tw-radius-control: 9px;
  --tw-elevation-overlay: 0 24px 70px rgba(5, 8, 28, .3);
}

#teamWorkspaceRoot, #teamWorkspaceRoot *, #teamNotificationPanel, #teamNotificationPanel *, .team-dialog, .team-dialog * { box-sizing: border-box; }
#teamWorkspaceRoot h1, #teamWorkspaceRoot h2, #teamWorkspaceRoot h3,
#teamWorkspaceRoot h4, .team-dialog h2, .team-dialog h3, .team-dialog h4 {
  margin: 0;
  color: var(--tw-text);
  line-height: 1.2;
  letter-spacing: -.018em;
}
#teamWorkspaceRoot p, .team-dialog p { margin: 5px 0 0; color: var(--tw-text-secondary); line-height: 1.55; }

.team-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--tw-radius-control);
  padding: 9px 13px;
  font: 700 13px/1.2 inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.team-btn-primary { background: var(--tw-primary); color: #fff; }
.team-btn-primary:hover { background: var(--tw-primary-hover); }
.team-btn-secondary { border-color: var(--tw-border-strong); background: var(--tw-surface-raised); color: #39355f; }
.team-btn-secondary:hover { border-color: #988ce0; background: #f2f0ff; }
.team-btn-danger { border-color: #efb5c2; background: #fff; color: var(--tw-danger); }
.team-btn-link { min-height: 36px; padding: 6px 8px; background: transparent; color: #5142ae; }
.team-btn-icon { width: 40px; padding: 0; }
.team-btn:disabled { opacity: .55; cursor: wait; }
.team-btn:focus-visible, .team-field:focus-visible, .team-tab:focus-visible,
.team-list-row:focus-visible, .team-segment:focus-visible, .team-notification-item:focus-visible,
.team-dialog [tabindex="-1"]:focus-visible, summary:focus-visible {
  outline: 3px solid var(--tw-focus);
  outline-offset: 2px;
}

.team-field {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--tw-border-strong);
  border-radius: var(--tw-radius-control);
  padding: 9px 11px;
  background: var(--tw-surface-raised);
  color: var(--tw-text);
  font: 500 14px/1.4 inherit;
}
textarea.team-field { min-height: 96px; resize: vertical; }
.team-label { display: grid; gap: 6px; margin: 0; color: #343b54; font-size: 13px; font-weight: 700; }
.team-help { color: var(--tw-text-muted); font-size: 12px; line-height: 1.5; }

.team-card {
  min-width: 0;
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius-card);
  padding: var(--tw-space-6);
  background: var(--tw-surface);
  box-shadow: var(--tw-elevation-low);
}
.team-card-flat { box-shadow: none; }
.team-card-head, .team-section-head, .team-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--tw-space-5);
}
.team-card-head h2, .team-section-head h2, .team-toolbar h2 { font-size: 21px; }
.team-section-copy { max-width: 680px; font-size: 14px; }

.team-hero {
  margin-bottom: 20px;
  border: 1px solid rgba(74, 205, 196, .24);
  border-radius: 18px;
  padding: 26px 28px;
  background: linear-gradient(112deg, #10203d 5%, #153454 65%, #17646c 125%);
  box-shadow: 0 12px 30px rgba(7, 13, 37, .16);
  color: var(--tw-text-on-dark);
}
.team-hero-row { display: flex; align-items: center; justify-content: space-between; gap: var(--tw-space-6); }
.team-hero h1 { color: var(--tw-text-on-dark) !important; font-size: 31px; }
.team-hero p { color: #d6e2ef !important; font-size: 14px; }
.team-eyebrow { margin-bottom: 7px; color: #74ded7; font-size: 12px; font-weight: 800; }
.team-hero-context { display: flex; align-items: stretch; gap: 8px; }
.team-hero-stat {
  display: grid;
  min-width: 116px;
  gap: 2px;
  border: 1px solid rgba(204, 240, 239, .22);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(5, 27, 48, .38);
}
.team-hero-stat strong { color: #fff; font-size: 16px; }
.team-hero-stat span { color: #c6d8e5; font-size: 12px; }

.team-nav {
  position: sticky;
  top: 76px;
  z-index: 8;
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
  border: 1px solid var(--tw-border);
  border-radius: 12px;
  padding: 5px;
  background: rgba(247, 248, 252, .96);
  box-shadow: 0 5px 16px rgba(11, 14, 38, .07);
  overflow-x: auto;
}
.team-tab {
  display: inline-flex;
  min-width: max-content;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: transparent;
  color: #575e77;
  font: 700 13px/1.2 inherit;
  cursor: pointer;
}
.team-tab:hover { background: #eceef6; }
.team-tab[aria-selected="true"] { background: #f0eefe; color: #5142cb; box-shadow: inset 0 0 0 1px #dedaf9; }
.team-tab[aria-selected="true"] .team-chip { background: #e5e0fd; color: #5142cb; }
.team-view { display: grid; gap: 20px; animation: team-view-enter 160ms cubic-bezier(.16,1,.3,1) both; }
@keyframes team-view-enter { from { opacity: .72; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.team-section { display: grid; gap: 14px; }
.team-heading-on-dark, .team-heading-on-dark h2, .team-heading-on-dark h3 { color: #f5f7ff !important; }
.team-heading-on-dark p { color: #cdd3e2 !important; }
.team-heading-on-light, .team-heading-on-light h2, .team-heading-on-light h3 { color: #171a24 !important; }
.team-heading-on-light p, p.team-heading-on-light { color: #474e5e !important; }

.team-attention-grid, .team-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.team-attention-grid[data-compact="true"] { grid-template-columns: minmax(220px, 330px); }
.team-attention-card, .team-metric-card {
  min-width: 0;
  border: 1px solid var(--tw-border);
  border-radius: 13px;
  padding: 16px;
  background: var(--tw-surface);
  color: var(--tw-text);
  text-align: left;
  box-shadow: none;
}
button.team-attention-card { cursor: pointer; }
button.team-attention-card:hover { border-color: #9e94d7; background: #f4f2fd; }
.team-attention-card strong, .team-metric-card strong { display: block; margin-top: 10px; font-size: 28px; line-height: 1; }
.team-attention-card span, .team-metric-card span { color: var(--tw-text-secondary); font-size: 13px; font-weight: 700; }
.team-caught-up { border: 1px solid #b9ded4; border-radius: 13px; padding: 18px; background: #edf8f4; color: #176c5a; }
.team-attention-card-compact { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 14px; }
.team-attention-card-compact strong { margin-top: 0; font-size: 22px; }
.team-attention-card-compact span { text-align: left; }

.team-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.team-list { display: grid; margin-top: 14px; }
.team-list-row { position: relative; min-width: 0; border-top: 1px solid var(--tw-border); background: transparent; }
.team-list-row:first-child { border-top: 0; }
.team-compact-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) minmax(125px, .9fr) minmax(115px, .75fr) 22px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 11px 8px;
  border-radius: 10px;
  cursor: pointer;
}
.team-compact-row:hover { background: #f1f2f8; }
.team-compact-row .team-row-chevron { justify-self: end; }
.team-person { min-width: 0; }
.team-person strong, .team-identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-role, .team-company, .team-meta { color: var(--tw-text-secondary); font-size: 12px; }
.team-role { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-company { display: block; margin-top: 2px; font-weight: 650; }
.team-cell { display: grid; min-width: 0; gap: 4px; }
.team-cell-label { color: var(--tw-text-muted); font-size: 11px; font-weight: 700; }
.team-empty { border: 1px dashed var(--tw-border-strong); border-radius: 12px; padding: 24px 18px; color: var(--tw-text-muted); text-align: center; }

.team-chip {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: var(--tw-radius-chip);
  min-height: 27px;
  padding: 5px 10px;
  background: #e8e8f5;
  color: #4f5470;
  font-size: 12px;
  font-weight: 700;
}
.team-chip-success, .team-chip-approved { background: var(--tw-success-bg); color: var(--tw-success); }
.team-chip-warning, .team-chip-changes_requested { background: var(--tw-warning-bg); color: var(--tw-warning); }
.team-chip-submitted { background: #e9e5fb; color: #5542b4; }
.team-materials { display: flex; min-width: 0; gap: 5px; flex-wrap: wrap; }
.team-materials .team-chip { background: #e8f3f2; color: #196d6a; }

.team-filterbar { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(125px, .8fr)); gap: 10px; margin: 18px 0; }
.team-table-head, .team-prospect-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(125px, .76fr) minmax(130px, .76fr) minmax(175px, 1fr) minmax(125px, .75fr) 36px;
  align-items: center;
  gap: 13px;
}
.team-table-head { padding: 7px 12px; color: var(--tw-text-muted); font-size: 12px; font-weight: 750; }
.team-prospect-row { min-height: 82px; border-top: 1px solid var(--tw-border); padding: 12px; cursor: pointer; }
.team-prospect-row:hover { background: #f1f2f8; }
.team-prospect-row[aria-current="true"] { background: #efedfb; }
.team-row-chevron { color: #6252bd; font-size: 19px; }
.team-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.team-loading-row { height: 72px; border-top: 1px solid var(--tw-border); background: linear-gradient(90deg, transparent, rgba(110,87,223,.07), transparent); background-size: 180% 100%; animation: team-shimmer 1.2s infinite; }
@keyframes team-shimmer { to { background-position: -180% 0; } }

.team-segments { display: flex; gap: 4px; margin-top: 18px; border-bottom: 1px solid var(--tw-border); padding-bottom: 8px; overflow-x: auto; }
.team-segment { min-width: max-content; min-height: 40px; border: 0; border-radius: 8px; padding: 8px 12px; background: #eceef5; color: var(--tw-text-secondary); font: 700 13px/1.2 inherit; cursor: pointer; }
.team-segment[aria-selected="true"] { background: var(--tw-primary); color: #fff; }
.team-approval-row { display: grid; grid-template-columns: minmax(220px, 1.25fr) minmax(150px, .8fr) minmax(145px, .75fr) auto; align-items: center; gap: 16px; min-height: 84px; padding: 13px 2px; }
.team-approval-title { min-width: 0; }
.team-approval-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-feedback { margin-top: 8px; border: 1px solid #ead5a5; border-radius: 9px; padding: 10px; background: var(--tw-warning-bg); color: #6e4b17; font-size: 12px; }

.team-member-row { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(120px, .7fr)) auto; align-items: center; gap: 16px; min-height: 76px; padding: 11px 2px; }
.team-member-identity, .team-comment-author { display: flex; min-width: 0; align-items: center; gap: 12px; }
.team-member-identity > div { min-width: 0; }
.team-member-identity strong, .team-member-identity .team-meta { display: block; }
.team-member-identity .team-meta { margin-top: 3px; }
.team-member-avatar, .team-comment-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #cbd0df;
  border-radius: 50%;
  background: #e6e8f1;
  color: #4b5270;
  object-fit: cover;
}
.team-avatar-fallback { display: inline-grid; place-items: center; font-weight: 800; }
.team-join-compact { margin-bottom: 16px; }
.team-join-compact summary { min-height: 40px; cursor: pointer; color: #403779; font-weight: 750; }

.team-insights-toolbar { align-items: flex-end; }
.team-range-controls { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.team-preset-group { display: flex; gap: 4px; border: 1px solid var(--tw-border); border-radius: 10px; padding: 3px; background: var(--tw-surface); }
.team-preset { min-height: 34px; border: 0; border-radius: 7px; padding: 6px 9px; background: transparent; color: #535b73; font: 700 12px/1 inherit; cursor: pointer; }
.team-preset[aria-pressed="true"] { background: #f0eefe; color: #5142cb; box-shadow: inset 0 0 0 1px #dedaf9; }
.team-metric-section { display: grid; gap: 12px; }
.team-metric-section h3 { color: #171a24 !important; font-size: 15px; }
.team-metric-definition { display: inline-flex; margin-left: 5px; color: #6b7190; cursor: help; }
.team-workload { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 13px; }
.team-workload th, .team-workload td { border-bottom: 1px solid var(--tw-border); padding: 12px 10px; text-align: left; }
.team-workload th { color: #4e5872; font-size: 12px; }

.team-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.team-settings-wide { grid-column: 1 / -1; }
.team-settings-grid > .team-card { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.team-settings-grid > .team-card > * { margin: 0; }
.team-settings-grid > .team-card > .team-btn { align-self: flex-start; }
.team-settings-grid > .team-card > .team-advanced { margin: 0; border-top: 0; padding-top: 0; }
.team-settings-grid .team-advanced[open] > :not(summary) { margin-top: 16px; }
.team-callout > .team-actions { margin-top: 16px; }
.team-form { display: grid; gap: 12px; margin-top: 14px; }
.team-form-row { display: grid; grid-template-columns: minmax(230px, 1fr) auto; align-items: end; gap: 12px; margin-top: 14px; }
.team-callout { border: 1px solid #d7d3ed; border-radius: 10px; padding: 12px; background: #f0eef9; color: #4b4768; font-size: 13px; }
.team-code { margin: 12px 0; border: 1px dashed #9d92db; border-radius: 9px; padding: 13px; background: #f0eefb; font: 800 18px/1 monospace; letter-spacing: .08em; }
.team-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.team-advanced { margin-top: 16px; border-top: 1px solid var(--tw-border); padding-top: 14px; }
.team-advanced summary { min-height: 42px; cursor: pointer; font-weight: 800; }
.team-audit-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; min-height: 62px; border-top: 1px solid var(--tw-border); padding: 11px 2px; }
.team-audit-row:first-child { border-top: 0; }

.team-notification-button { position: relative; }
.topbar-actions .team-notification-button { border-color: rgba(222,226,244,.28); background: rgba(255,255,255,.08); color: #f5f7ff; }
.team-notification-button .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.team-notification-badge { position: absolute; top: -5px; right: -5px; display: grid; min-width: 20px; height: 20px; place-items: center; border: 2px solid #211b43; border-radius: 10px; padding: 0 4px; background: #43d4c9; color: #122b31; font-size: 10px; font-weight: 900; }
.team-notification-panel {
  position: fixed;
  z-index: 1200;
  width: min(390px, calc(100vw - 32px));
  max-height: min(620px, calc(100dvh - 96px));
  border: 1px solid var(--tw-border);
  border-radius: 16px;
  background: var(--tw-surface-raised);
  color: var(--tw-text);
  box-shadow: var(--tw-elevation-overlay);
}
.team-notification-header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--tw-border); padding: 10px 12px 10px 18px; }
.team-notification-header h2 { margin: 0; font-size: 18px; color: var(--tw-text); }
.team-notification-header-actions { display: flex; align-items: center; gap: 4px; }
.team-notification-text-action { border: 0; padding: 7px 8px; background: transparent; color: #5142ae; font: 700 12px/1.2 inherit; cursor: pointer; }
.team-notification-text-action:disabled { opacity: .48; cursor: not-allowed; }
.team-notification-list { display: grid; max-height: min(510px, calc(100dvh - 168px)); overflow: auto; overscroll-behavior: contain; }
.team-notification-item { position: relative; display: grid; gap: 5px; border: 0; border-top: 1px solid var(--tw-border); padding: 13px 30px 13px 18px; background: transparent; color: var(--tw-text); text-align: left; cursor: pointer; }
.team-notification-item:first-child { border-top: 0; }
.team-notification-item:hover { background: #f5f5fa; }
.team-notification-item[data-read="false"]::after { content: ""; position: absolute; top: 18px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--tw-primary); }
.team-notification-item span { color: var(--tw-text-muted); font-size: 12px; }
.team-notification-footer { border-top: 1px solid var(--tw-border); padding: 8px 12px; }

.team-dialog { position: fixed; z-index: 1300; inset: 0; display: flex; justify-content: flex-end; background: rgba(7, 9, 28, .58); }
.team-dialog-panel { width: min(1080px, calc(100vw - 48px)); height: 100%; padding: 0 30px 70px; background: #f5f6fa; color: var(--tw-text); box-shadow: var(--tw-elevation-overlay); overflow: auto; }
.team-dialog-header { position: sticky; top: 0; z-index: 4; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 0 -30px; border-bottom: 1px solid var(--tw-border); padding: 22px 30px 18px; background: rgba(245,246,250,.97); backdrop-filter: blur(8px); }
.team-dialog-header h2 { font-size: 28px; }
.team-dialog-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.team-detail-controls { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(160px, .65fr) minmax(420px, 1.8fr); align-items: end; gap: 14px; margin-top: 18px; border: 1px solid var(--tw-border); border-radius: 14px; padding: 16px; background: var(--tw-surface-raised); }
.team-next-action-form { display: grid; grid-template-columns: minmax(190px, 1fr) 150px auto; align-items: end; gap: 10px; }
.team-detail-card { margin-top: 18px; border: 1px solid var(--tw-border); border-radius: 14px; padding: 19px; background: var(--tw-surface-raised); }
.team-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; align-items: start; gap: 12px; margin-top: 14px; }
.team-detail-section { min-width: 0; align-self: start; border: 1px solid #e0e3ed; border-radius: 10px; padding: 13px; background: #f8f9fc; }
.team-detail-section[data-long="true"] { grid-column: 1 / -1; }
.team-detail-section h4 { margin-bottom: 8px; font-size: 13px; }
.team-detail-copy, .team-detail-list { margin: 0; color: #454e66; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.team-detail-list { padding-left: 18px; }
.team-material-card { border-top: 1px solid var(--tw-border); padding: 16px 0; scroll-margin-top: 24px; }
.team-material-card:first-child { border-top: 0; }
.team-material-card[data-target="true"] { border-radius: 10px; padding: 16px 12px; background: #f0edfc; box-shadow: 0 0 0 2px #9a8de0; }
.team-material-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.team-review-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 9px; margin-top: 14px; border-top: 1px solid var(--tw-border); padding-top: 14px; }
.team-review-actions { display: grid; gap: 9px; }
.team-review-assign { display: flex; max-width: 270px; align-items: flex-start; gap: 7px; color: var(--tw-text-secondary); font-size: 12px; font-weight: 650; }
.team-review-assign input { width: auto; margin-top: 2px; }
.team-detail-columns { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.team-comment { scroll-margin-top: 24px; border-top: 1px solid var(--tw-border); padding: 12px 0; }
.team-comment:first-child { border-top: 0; }
.team-comment[data-target="true"] { border-radius: 10px; padding: 12px; background: #f0edfc; box-shadow: 0 0 0 2px #9a8de0; }
.team-comment-body { margin: 8px 0 0; color: #3f485f; white-space: pre-wrap; }
.team-mention-list { display: flex; gap: 7px; flex-wrap: wrap; border: 0; padding: 0; }
.team-mention-list label { display: flex; align-items: center; gap: 5px; border: 1px solid var(--tw-border); border-radius: 8px; padding: 6px 8px; background: #fff; font-size: 12px; }
.team-mention-list input { width: auto; }
.team-timeline article { display: grid; grid-template-columns: 14px 1fr; gap: 9px; border-top: 1px solid var(--tw-border); padding: 11px 0; }
.team-timeline article:first-child { border-top: 0; }
.team-timeline-dot { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: #43a9a2; }
.team-owner-readonly { min-height: 42px; border: 1px solid var(--tw-border); border-radius: 9px; padding: 9px 11px; background: var(--tw-surface-soft); }
.team-status-message { margin-top: 12px; border-radius: 9px; padding: 10px 12px; font-size: 13px; }
.team-status-message[data-tone="error"] { background: var(--tw-danger-bg); color: #8d2941; }
.team-status-message[data-tone="success"] { background: var(--tw-success-bg); color: #136650; }

.team-vendor-profile-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  border: 1px solid #9fd9cf;
  border-radius: 13px;
  padding: 14px 16px;
  background: #e9f8f4;
  color: #125f52;
  box-shadow: var(--tw-elevation-low);
}
.team-vendor-profile-notice[hidden] { display: none; }
.team-vendor-profile-notice strong { color: #0f5147; }
.team-vendor-profile-notice p { margin: 4px 0 0; color: #285f59; line-height: 1.45; }
.team-vendor-profile-notice-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: #c9eee6; }
.team-vendor-sync-success { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; border: 1px solid #76cbb8; border-radius: 11px; padding: 11px 14px; background: #dff5ee; color: #0f5d4d; font-weight: 750; box-shadow: var(--tw-elevation-low); }
.team-vendor-sync-success[hidden] { display: none; }
.team-vendor-managed-field { border-color: #cdd2de !important; background: #eef0f5 !important; color: #424b61 !important; opacity: 1 !important; cursor: not-allowed; }
.team-vendor-field-lock { display: inline-flex; margin-left: 6px; align-items: center; gap: 4px; color: #59637a; font-size: 11px; font-weight: 700; }

.team-loading-shell { min-height: 300px; }
.team-loading-line { height: 13px; margin-top: 16px; border-radius: 7px; background: #e0e3ed; animation: team-pulse 1.15s infinite; }
.team-loading-line-title { width: 38%; height: 24px; }
.team-loading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.team-loading-grid span { height: 96px; border-radius: 12px; background: #e4e6ef; animation: team-pulse 1.15s infinite; }
@keyframes team-pulse { 50% { opacity: .55; } }

@media (max-width: 1080px) {
  #teamWorkspaceRoot { width: calc(100% - 32px); padding: 20px 0 70px; }
  .team-insights-toolbar { align-items: flex-start; flex-direction: column; }
  .team-insights-toolbar .team-range-controls { width: 100%; }
  .team-filterbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-filterbar .team-search { grid-column: span 2; }
  .team-table-head { display: none; }
  .team-prospect-row { grid-template-columns: minmax(180px, 1fr) minmax(120px, .7fr) 36px; }
  .team-prospect-row .team-next-cell, .team-prospect-row .team-material-cell { grid-column: span 1; }
  .team-prospect-row .team-owner-cell { grid-column: 2; grid-row: 1; }
  .team-prospect-row .team-status-cell { grid-column: 1; }
  .team-member-row { grid-template-columns: minmax(220px, 1.3fr) repeat(2, minmax(120px, .7fr)); }
  .team-member-actions { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  #teamWorkspaceRoot { width: calc(100% - 32px); padding: 16px 0 70px; }
  .team-hero-row, .team-toolbar { align-items: flex-start; flex-direction: column; }
  .team-hero-context { width: 100%; }
  .team-hero-stat { min-width: 0; flex: 1; }
  .team-nav { top: 58px; }
  .team-attention-grid, .team-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-columns, .team-settings-grid, .team-detail-columns { grid-template-columns: 1fr; }
  .team-settings-wide { grid-column: auto; }
  .team-compact-row { grid-template-columns: minmax(160px, 1fr) auto; }
  .team-compact-row .team-compact-middle, .team-compact-row .team-materials { grid-column: 1 / -1; }
  .team-approval-row { grid-template-columns: 1fr auto; }
  .team-approval-row .team-approval-people { grid-column: 1 / -1; }
  .team-member-row { grid-template-columns: 1fr 1fr; }
  .team-member-identity { grid-column: 1 / -1; }
  .team-prospect-row .team-material-cell { grid-column: 1 / -2; }
  .team-range-controls { width: 100%; align-items: stretch; flex-direction: column; }
  .team-preset-group { overflow-x: auto; }
  .team-workload { display: block; overflow-x: auto; white-space: nowrap; }
  .team-detail-controls { grid-template-columns: 1fr 1fr; }
  .team-next-action-form { grid-column: 1 / -1; }
  .team-notification-panel { right: 16px !important; left: auto !important; }
}

@media (max-width: 520px) {
  #teamWorkspaceRoot { width: calc(100% - 32px); padding: 12px 0 64px; }
  .team-card { padding: 18px 15px; }
  .team-hero { padding: 22px 18px; }
  .team-hero h1 { font-size: 25px; }
  .team-hero-context { flex-direction: column; }
  .team-attention-grid, .team-metric-grid, .team-filterbar, .team-detail-grid, .team-material-content { grid-template-columns: 1fr; }
  .team-filterbar .team-search { grid-column: auto; }
  .team-prospect-row { grid-template-columns: minmax(0, 1fr) 36px; }
  .team-prospect-row > :not(.team-identity):not(.team-row-chevron) { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .team-pagination { align-items: flex-start; flex-direction: column; }
  .team-approval-row { grid-template-columns: 1fr; }
  .team-member-row { grid-template-columns: 1fr; }
  .team-member-identity { grid-column: auto; }
  .team-form-row, .team-next-action-form, .team-review-form { grid-template-columns: 1fr; }
  .team-dialog-panel { width: 100%; padding: 0 14px 60px; }
  .team-dialog-header { margin: 0 -14px; padding: 18px 14px 14px; }
  .team-dialog-header { flex-direction: column; }
  .team-detail-controls { grid-template-columns: 1fr; }
  .team-notification-panel { inset: auto 0 0 !important; width: 100%; max-height: min(82dvh, 680px); border-radius: 18px 18px 0 0; }
  .team-notification-list { max-height: calc(min(82dvh, 680px) - 59px); }
}

@media (prefers-reduced-motion: reduce) {
  #teamWorkspaceRoot *, #teamNotificationPanel *, .team-dialog * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
