.teampage {
  min-height: 100vh;
  background: linear-gradient(180deg, #fbfdfc 0%, #f4f7fb 42%, #eef3f8 100%);
}

.team-subnav {
  position: sticky;
  top: 3.25rem;
  z-index: 19;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.teampage--info .team-subnav {
  top: var(--navbar-h, 2.5rem);
}

.team-subnav-group-form,
.team-subnav-range-form {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.team-subnav-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.team-subnav-group-select {
  min-width: 13rem;
  min-height: 2rem;
  padding: 0.25rem 2rem 0.25rem 0.65rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.62rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
}

.team-subnav-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.18rem;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #fff;
}

.team-subnav-view-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.team-subnav-view-pill:hover {
  color: #047857;
  background: #f0fdf4;
}

.team-subnav-view-pill.is-active {
  background: #ecfdf5;
  color: #047857;
  box-shadow: inset 0 0 0 1px #a7f3d0;
}

.team-subnav-group-select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.team-subnav-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.9rem;
  padding: 0 0.65rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.4rem;
  background: #fff;
}

.team-subnav-date-wrap .material-symbols-outlined {
  font-size: 0.85rem;
  color: #64748b;
}

.team-subnav-date-input {
  min-width: 8.4rem;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 600;
  outline: none;
}

.team-subnav-date-arrow,
.team-subnav-sep {
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
}

.team-subnav-presets {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.team-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.9rem;
  padding: 0 0.75rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.45rem;
  background: #fff;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 700;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.team-subnav-btn:hover {
  border-color: #10b981;
  color: #047857;
  box-shadow: 0 10px 18px rgba(16, 185, 129, 0.12);
}

.team-subnav-btn .material-symbols-outlined {
  font-size: 0.9rem;
}

.team-subnav-btn.is-active,
.team-subnav-btn--primary {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}

.team-subnav-btn--export {
  text-decoration: none;
}

.teampage-content-shell,
.teampage-empty {
  padding: 1rem;
}

.teampage-mirror-section {
  margin-top: 1.25rem;
}

.teamuserpage-activity-status {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.82rem;
}

.teamuserpage-activity-status.is-error {
  color: #b91c1c;
}

.teampage-table-meta--mirror {
  border-color: rgba(16, 185, 129, 0.2);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.94), rgba(255, 255, 255, 0.94));
}

.teampage-table-meta {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.teampage-table-meta-eyebrow {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.teampage-table-meta-title {
  margin: 0.1rem 0 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.teampage-table-meta-text {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
}

.teampage-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.teampage-summary-card {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.team-navbar-group-form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.team-navbar-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.team-navbar-group-select {
  min-width: 13rem;
  min-height: 2rem;
  padding: 0.25rem 2rem 0.25rem 0.65rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.62rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
}

.team-navbar-group-select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.teampage-range-card {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.teampage-range-eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.teampage-range-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.teampage-range-text {
  margin: 0.3rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
}

.teampage-summary-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #64748b;
}

.teampage-summary-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.05;
  color: #0f172a;
}

.teampage-table-card {
  margin-bottom: 1rem;
}

.teampage-range-form {
  margin: 0;
}

.teampage-range-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: end;
}

.teampage-range-presets {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.teampage-preset-btn,
.teampage-submit-btn {
  min-height: 2rem;
  border-radius: 0.62rem;
  border: 1px solid #dbe3ee;
  background: #fff;
  color: #475569;
  padding: 0 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.teampage-preset-btn:hover,
.teampage-submit-btn:hover {
  border-color: #10b981;
  color: #047857;
  box-shadow: 0 10px 18px rgba(16, 185, 129, 0.12);
}

.teampage-preset-btn.is-active,
.teampage-submit-btn {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}

.teampage-form-row {
  display: grid;
  gap: 0.2rem;
}

.teampage-form-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
}

.teampage-form-input {
  min-width: 8.5rem;
  min-height: 2rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.62rem;
  padding: 0 0.65rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.8rem;
}

.teampage-form-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.teampage-range-actions {
  display: flex;
  align-items: end;
}

.teamuserpage-content-shell {
  display: grid;
  gap: 1rem;
}

.teamuserpage-summary-card {
  display: grid;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.teamuserpage-eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.teamuserpage-title {
  margin: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1;
  color: #0f172a;
}

.teamuserpage-meta {
  margin: 0.22rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
}

.teamuserpage-meta-separator {
  margin: 0 0.35rem;
}

.teamuserpage-range-form {
  margin: 0;
}

.teamuserpage-nav-range {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
  pointer-events: none;
}

.teamuserpage-nav-range:hover {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
  box-shadow: none;
}

.teamuserpage-classification-btn {
  min-width: 2rem;
  min-height: 1.9rem;
  padding: 0 0.55rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.55rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 800;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.teamuserpage-classification-btn:hover {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.14);
}

.teamuserpage-classification-empty {
  color: #94a3b8;
  font-weight: 600;
}

.teamuserpage-leads-modal-backdrop {
  z-index: 2200;
}

.teamuserpage-leads-modal {
  width: min(100%, 38rem);
}

.teamuserpage-leads-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.teamuserpage-leads-modal-kicker {
  margin: 0 0 0.16rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.teamuserpage-leads-modal-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.6rem;
  background: #fff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.teamuserpage-leads-modal-body {
  display: grid;
  gap: 0.85rem;
}

.teamuserpage-leads-modal-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

.teamuserpage-leads-list {
  display: grid;
  gap: 0.55rem;
  max-height: 26rem;
  overflow: auto;
}

.teamuserpage-leads-item {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  background: #fff;
  text-decoration: none;
}

.teamuserpage-leads-item:hover {
  border-color: #10b981;
  background: #f8fffb;
}

.teamuserpage-leads-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: baseline;
}

.teamuserpage-leads-item-id {
  font-size: 0.7rem;
  font-weight: 800;
  color: #10b981;
}

.teamuserpage-leads-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.teamuserpage-leads-path {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.teamuserpage-leads-path-step {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
  padding: 0.22rem 0.45rem;
  border-radius: 0.55rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.teamuserpage-leads-path-date {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
}

.teamuserpage-leads-path-classification {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f172a;
}

.teamuserpage-leads-path-arrow,
.teamuserpage-leads-path-empty {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
}

.teamuserpage-leads-empty {
  padding: 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.8rem;
  color: #64748b;
  text-align: center;
}

.teamuserpage-range-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: end;
}

.teamuserpage-range-presets {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.teamuserpage-preset-btn,
.teamuserpage-submit-btn {
  min-height: 2rem;
  border-radius: 0.62rem;
  border: 1px solid #dbe3ee;
  background: #fff;
  color: #475569;
  padding: 0 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.teamuserpage-preset-btn:hover,
.teamuserpage-submit-btn:hover {
  border-color: #10b981;
  color: #047857;
  box-shadow: 0 10px 18px rgba(16, 185, 129, 0.12);
}

.teamuserpage-preset-btn.is-active,
.teamuserpage-submit-btn {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}

.teamuserpage-form-row {
  display: grid;
  gap: 0.2rem;
}

.teamuserpage-form-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
}

.teamuserpage-form-input {
  min-width: 8.5rem;
  min-height: 2rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.62rem;
  padding: 0 0.65rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.8rem;
}

.teamuserpage-form-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.teamuserpage-range-actions {
  display: flex;
  align-items: end;
}

.teampage-work-table {
  min-width: 760px;
}

.teamuserpage-work-table {
  min-width: 980px;
}

.teamuserpage-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.teamuserpage-chart-card {
  padding: 0.9rem;
}

.teamuserpage-chart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.teamuserpage-chart-kicker {
  margin: 0 0 0.16rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.teamuserpage-chart-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.teamuserpage-chart-shell {
  position: relative;
  min-height: 280px;
}

.teamuserpage-chart-shell.is-bar {
  min-height: 320px;
}

.teampage .cc-table-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.9rem;
  padding: 0 0.7rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.45rem;
  background: #fff;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.teampage .cc-table-toolbar-btn:hover {
  border-color: #10b981;
  color: #047857;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}

.teampage .cc-table-toolbar-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.teampage .cc-table-toolbar-btn[disabled]:hover {
  border-color: #dbe3ee;
  color: #475569;
}

.teampage .cc-table-toolbar-btn .material-symbols-outlined {
  font-size: 0.9rem;
}

.teampage-metric-value {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.teampage .cc-pill-count {
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 0.62rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.teampage .cc-batch-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.3rem);
  min-width: 200px;
  padding: 0.3rem;
  border-radius: 0.7rem;
  border: 1px solid #dbe3ee;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  z-index: 40;
}

.teampage .cc-batch-menu[hidden] {
  display: none;
}

.teampage .cc-batch-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #94a3b8;
  text-align: left;
  border-radius: 0.45rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: not-allowed;
}

.teampage .cc-batch-menu button.teampage-comparison-action {
  background: #ecfdf5;
  color: #047857;
  cursor: pointer;
}

.teampage .cc-batch-menu button.teampage-comparison-action:hover {
  background: #d1fae5;
  color: #065f46;
}

.teampage .cc-batch-menu-note {
  padding: 0.4rem 0.65rem 0.28rem;
  font-size: 0.7rem;
  color: #64748b;
}

.teampage .cc-batch-menu-note:empty {
  display: none;
}

.teampage .custom-checkbox {
  width: 1rem;
  height: 1rem;
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 0.3rem;
  background: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.teampage .custom-checkbox::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  transform: scale(0);
  transition: transform 0.12s ease-in-out;
  clip-path: polygon(14% 44%, 0 59%, 42% 100%, 100% 18%, 84% 4%, 41% 62%);
  background: #fff;
}

.teampage .custom-checkbox:checked {
  background: #10b981;
  border-color: #10b981;
}

.teampage .custom-checkbox:checked::before {
  transform: scale(1);
}

.teampage-groups-stack {
  display: grid;
  gap: 1rem;
}

.teampage-toolbar-note {
  max-width: 34rem;
  font-size: 0.74rem;
  color: #64748b;
}

.teampage-master-badge,
.teampage-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.68rem;
  font-weight: 700;
}

.teampage-master-badge {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.teampage-status-badge.is-active {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.teampage-status-badge.is-inactive {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.teampage-role-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.teampage-empty {
  max-width: 760px;
  margin: 1rem auto 0;
  text-align: center;
}

.teampage-empty-icon {
  font-size: 2.6rem;
  color: #10b981;
}

.teampage-empty h2 {
  margin: 0.8rem 0 0.45rem;
  font-size: 1.4rem;
  color: #0f172a;
}

.teampage-empty p {
  margin: 0;
  color: #64748b;
}

@media (max-width: 900px) {
  .teampage-summary-grid {
    grid-template-columns: 1fr;
  }

  .teamuserpage-charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .team-subnav {
    padding: 0.65rem 0.75rem;
  }

  .team-subnav-group-form,
  .team-subnav-range-form {
    width: 100%;
  }

  .team-subnav-group-select,
  .team-subnav-date-input {
    min-width: 0;
    width: 100%;
  }

  .team-subnav-date-wrap {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.55rem 0.65rem;
  }

  .team-subnav-presets {
    width: 100%;
  }

  .team-subnav-view-switch {
    width: 100%;
    justify-content: stretch;
  }

  .team-subnav-view-pill {
    flex: 1 1 0;
  }

  .team-subnav-btn {
    justify-content: center;
  }

  .team-subnav-sep {
    display: none;
  }

  .teampage-content-shell,
  .teampage-empty {
    padding: 0.75rem;
  }

  .teampage-range-toolbar {
    align-items: stretch;
  }

  .teampage-form-row,
  .teampage-range-actions {
    width: 100%;
  }

  .teampage-form-input,
  .teampage-submit-btn {
    width: 100%;
  }

  .teamuserpage-form-input {
    min-width: 0;
  }
}
