/* Manage Team below 1024px (phones and tablets): list and member details.
   ManageTeam.dc.html draws the same screen at every width below 1024px; only the
   side gutters (16px, 24px from 640px) and the room left at the end change. */

.ccp-team .ccp-team-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ccp-team :focus-visible,
.ccp-team-sheet :focus-visible {
  outline: 2px solid var(--ccp-active);
  outline-offset: 2px;
}

.ccp-team .ccp-team-title:focus,
.ccp-team .ccp-team-name:focus {
  outline: none;
}

.ccp-team button {
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}

/* List: header */

.ccp-team .ccp-team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px var(--ccp-gutter) 0;
}

.ccp-team .ccp-team-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: normal;
  white-space: nowrap;
  color: var(--ccp-text);
}

.ccp-team .ccp-team-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ccp-team .ccp-team-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ccp-brand);
  color: #000;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.836rem;
  font-weight: 700;
  letter-spacing: 0;
}

.ccp-team .ccp-team-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ccp-brand), var(--ccp-brand-2));
  color: #000;
  font-size: 1.24rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}

.ccp-team .ccp-team-add svg {
  color: var(--ccp-text);
}

.ccp-team .ccp-team-add.is-locked {
  opacity: 0.5;
}

@media (max-width: 379px) {
  .ccp-team .ccp-team-add {
    padding: 0 12px;
  }

  .ccp-team .ccp-team-add-label {
    display: none;
  }
}

/* List: sticky search and role filter */

.ccp-team .ccp-team-bar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 10px var(--ccp-gutter);
  background: rgba(249, 249, 249, 0.98);
}

.ccp-team .ccp-search input {
  padding: 0 40px 0 42px;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}

/* Above the 16px phones' inputs get from css/company-mobile.css. */
#main-container #ccp-root .ccp-team .ccp-search input {
  font-size: 17.6px;
}

.ccp-team .ccp-search input:focus,
.ccp-team .ccp-search input:focus-visible {
  outline: none;
  border-color: var(--ccp-brand);
  box-shadow: 0 0 0 3px rgba(99, 234, 113, 0.12);
}

.ccp-team .ccp-search input::-webkit-search-cancel-button,
.ccp-team .ccp-search input::-webkit-search-decoration {
  -webkit-appearance: none;
  display: none;
}

.ccp-team .ccp-search-icon {
  display: inline-flex;
  color: var(--ccp-muted);
}

.ccp-team .ccp-search-clear[hidden] {
  display: none;
}

.ccp-team .ccp-team-role {
  position: relative;
  flex-shrink: 0;
}

.ccp-team .ccp-team-role-btn {
  display: inline-flex;
  color: var(--ccp-text);
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #fff;
  font-size: 1.24rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}

.ccp-team .ccp-team-role-btn.is-filtered {
  border-color: rgba(99, 234, 113, 0.55);
  background: rgba(99, 234, 113, 0.12);
}

.ccp-team .ccp-team-chev {
  display: inline-flex;
  color: var(--ccp-text-2);
  transition: transform 0.2s ease;
}

.ccp-team .ccp-team-role-btn[aria-expanded="true"] .ccp-team-chev {
  transform: rotate(180deg);
}

.ccp-team .ccp-team-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111827;
}

.ccp-team .ccp-team-dot--owner {
  background: #a855f7;
}

.ccp-team .ccp-team-dot--superadmin {
  background: #3b82f6;
}

.ccp-team .ccp-team-dot--admin {
  background: #22c55e;
}

.ccp-team .ccp-team-dot--left {
  background: #9ca3af;
}

.ccp-team .ccp-team-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 2;
  min-width: 230px;
  max-width: calc(100vw - 2 * var(--ccp-gutter));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.28), 0 2px 8px rgba(0, 0, 0, 0.05);
  transform-origin: top right;
  animation: ccpTeamMenuIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ccpTeamMenuIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ccp-team .ccp-team-opt {
  display: flex;
  color: var(--ccp-text);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 10px;
  border: none;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.ccp-team .ccp-team-opt .ccp-team-dot {
  width: 9px;
  height: 9px;
}

.ccp-team .ccp-team-opt.is-on {
  background: rgba(99, 234, 113, 0.1);
}

.ccp-team .ccp-team-opt-label {
  flex: 1;
  min-width: 0;
  font-size: 1.045rem;
  font-weight: 500;
  color: #111827;
}

.ccp-team .ccp-team-opt.is-on .ccp-team-opt-label {
  font-weight: 700;
}

.ccp-team .ccp-team-opt-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.858rem;
  font-weight: 600;
  color: var(--ccp-muted);
}

.ccp-team .ccp-team-opt-check {
  display: flex;
  justify-content: center;
  width: 18px;
  color: var(--ccp-active);
}

.ccp-team .ccp-team-scrim {
  position: fixed;
  inset: 0;
  z-index: 19;
}

@media (hover: hover) {
  .ccp-team .ccp-team-opt:hover {
    background: #f3f4f6;
  }
}

/* List: member cards */

/* The list ends 88px above the screen's bottom edge on phones (the bottom bar
   and the page's own padding give the rest), 32px on tablets. */
.ccp-team .ccp-team-body {
  padding: 6px var(--ccp-gutter) 12px;
}

@media (min-width: 769px) and (max-width: 1023px) {
  .ccp-team .ccp-team-body {
    padding-bottom: 32px;
  }
}

.ccp-team .ccp-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ccp-team .ccp-team-item {
  min-width: 0;
}

.ccp-team .ccp-team-card {
  display: flex;
  color: var(--ccp-text);
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 16px 16px 18px;
  border: none;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  font-size: 16px;
  line-height: normal;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s ease;
}

.ccp-team .ccp-team-card.is-invited {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06), #fff 60%);
}

.ccp-team .ccp-team-card:active {
  transform: scale(0.985);
}

.ccp-team .ccp-team-card-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ccp-team .ccp-team-card-role {
  font-size: 0.814rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ccp-team .ccp-team-role--owner {
  color: #6d28d9;
}

.ccp-team .ccp-team-role--superadmin {
  color: #1d4ed8;
}

.ccp-team .ccp-team-role--admin {
  color: #065f46;
}

.ccp-team .ccp-team-role--left {
  color: #4b5563;
}

.ccp-team .ccp-team-card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ccp-team .ccp-team-card-name {
  min-width: 0;
  overflow: hidden;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #111827;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ccp-team .ccp-team-card.is-left .ccp-team-card-name {
  color: var(--ccp-muted);
}

.ccp-team .ccp-team-you {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.792rem;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0;
}

.ccp-team .ccp-team-card-email {
  overflow: hidden;
  font-size: 0.99rem;
  color: #4b5563;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ccp-team .ccp-team-card-side {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.ccp-team .ccp-team-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
}

.ccp-team .ccp-team-spark > span {
  width: 6px;
  border-radius: 2px;
  background: rgba(39, 176, 121, 0.35);
}

.ccp-team .ccp-team-spark > span.is-last {
  background: var(--ccp-accent);
}

.ccp-team .ccp-team-card-count {
  font-size: 0.902rem;
  font-weight: 500;
  color: var(--ccp-muted);
  white-space: nowrap;
}

.ccp-team .ccp-team-num {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: #111827;
}

/* List: empty and no-results states */

/* Full width: the design draws it outside the list's side gutters. */
.ccp-team .ccp-team-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 calc(-1 * var(--ccp-gutter));
  padding: 3rem 1.5rem;
  text-align: center;
}

.ccp-team .ccp-team-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
  border-radius: 1.25rem;
  border: 1.5px dashed rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.025);
  color: #d1d5db;
}

.ccp-team .ccp-team-empty-title {
  font-size: 1.21rem;
  font-weight: 700;
  color: #4b5563;
}

.ccp-team .ccp-team-empty-btn {
  min-height: 44px;
  color: var(--ccp-text);
  margin-top: 1rem;
  padding: 0 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.04);
  font-size: 1.24rem;
  font-weight: 600;
  cursor: pointer;
}

/* Member details */

.ccp-team .ccp-team-detail {
  padding: 4px var(--ccp-gutter) 0;
}

.ccp-team .ccp-team-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  margin: 12px 0 16px;
  padding: 0 18px 0 12px;
  border: 1px solid rgba(39, 176, 121, 0.35);
  border-radius: 999px;
  background: rgba(99, 234, 113, 0.16);
  color: var(--ccp-deep);
  font-size: 1.24rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ccp-team .ccp-team-back:active {
  transform: scale(0.97);
  background: rgba(99, 234, 113, 0.28);
}

.ccp-team .ccp-team-back svg {
  flex-shrink: 0;
}

.ccp-team .ccp-team-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0 18px;
  text-align: center;
}

.ccp-team .ccp-team-name {
  margin-top: 4px;
  max-width: 100%;
  font-size: 1.705rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ccp-text);
  overflow-wrap: anywhere;
}

.ccp-team .ccp-team-email {
  max-width: 100%;
  font-size: 1.045rem;
  color: #4b5563;
  overflow-wrap: anywhere;
}

.ccp-team .ccp-team-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}

.ccp-team .ccp-team-pill {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.902rem;
  font-weight: 650;
}

.ccp-team .ccp-team-pill--owner {
  border-color: rgba(168, 85, 247, 0.28);
  background: rgba(168, 85, 247, 0.1);
  color: #6d28d9;
}

.ccp-team .ccp-team-pill--superadmin {
  border-color: #93c5fd;
  background: #e0e7ff;
  color: #1d4ed8;
}

.ccp-team .ccp-team-pill--admin {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #065f46;
}

.ccp-team .ccp-team-pill--left {
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #4b5563;
}

.ccp-team .ccp-team-you--pill {
  padding: 0.2rem 0.55rem;
  line-height: normal;
}

.ccp-team .ccp-team-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 12px 0 0;
  text-align: left;
}

.ccp-team .ccp-team-stat {
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.ccp-team .ccp-team-stat dt {
  font-size: 0.858rem;
  color: var(--ccp-muted);
}

.ccp-team .ccp-team-stat dd {
  margin: 3px 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ccp-text);
  overflow-wrap: anywhere;
}

.ccp-team .ccp-team-banner {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.1);
  font-size: 0.99rem;
  line-height: 1.45;
  color: #374151;
}

.ccp-team .ccp-team-banner.is-invited {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.ccp-team .ccp-team-banner strong {
  color: #111827;
}

.ccp-team .ccp-team-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.ccp-team .ccp-team-section {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 0 16px;
  border: 1.5px solid;
  border-radius: 16px;
  font-size: 16px;
  line-height: normal;
  text-align: left;
  color: #111827;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s ease;
}

.ccp-team .ccp-team-section:active {
  transform: scale(0.99);
}

.ccp-team .ccp-team-section-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.ccp-team .ccp-team-section-label {
  flex: 1;
  min-width: 0;
  font-size: 1.12rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.ccp-team .ccp-team-section-sum {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 650;
  white-space: nowrap;
}

.ccp-team .ccp-team-section-chev {
  flex-shrink: 0;
}

.ccp-team .ccp-team-section--access {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 6px 14px -12px #16a34a;
}

.ccp-team .ccp-team-section--access .ccp-team-section-icon,
.ccp-team .ccp-team-section--access .ccp-team-section-chev {
  color: #16a34a;
}

.ccp-team .ccp-team-section--access .ccp-team-section-sum {
  color: #15803d;
}

.ccp-team .ccp-team-section--activity {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 6px 14px -12px #2563eb;
}

.ccp-team .ccp-team-section--activity .ccp-team-section-icon,
.ccp-team .ccp-team-section--activity .ccp-team-section-chev {
  color: #2563eb;
}

.ccp-team .ccp-team-section--activity .ccp-team-section-sum {
  color: #1d4ed8;
}

.ccp-team .ccp-team-section--sessions {
  border-color: rgba(124, 58, 237, 0.28);
  background: rgba(124, 58, 237, 0.09);
  box-shadow: 0 6px 14px -12px #7c3aed;
}

.ccp-team .ccp-team-section--sessions .ccp-team-section-icon,
.ccp-team .ccp-team-section--sessions .ccp-team-section-chev {
  color: #7c3aed;
}

.ccp-team .ccp-team-section--sessions .ccp-team-section-sum {
  color: #6d28d9;
}

.ccp-team .ccp-team-note {
  margin-top: 14px;
  font-size: 0.946rem;
  line-height: 1.45;
  color: var(--ccp-muted);
  text-align: center;
}

/* Member details end 96px above the screen's bottom edge, clear of the Manage bar. */
.ccp-team .ccp-team-end {
  height: calc(96px + var(--ccp-safe-b));
}

.ccp-team .ccp-team-managebar {
  padding: 10px calc(16px + var(--ccp-safe-r)) calc(12px + var(--ccp-safe-b)) calc(16px + var(--ccp-safe-l));
  border-top-color: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ccp-team .ccp-team-manage {
  flex: 1 1 auto;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.04);
  color: var(--ccp-text);
  font-size: 1.24rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.ccp-team .ccp-team-manage:active {
  background: rgba(0, 0, 0, 0.08);
}

/* Sheets: ManageTeam.dc.html's own head (title, the member's name under it on
   Manage member and Change role, a plain Close) and green-tinted top. */

.ccp-team-sheet .v-bs-sheet {
  max-height: 92dvh;
  background: linear-gradient(180deg, rgba(99, 234, 113, 0.1), rgba(99, 234, 113, 0) 150px), #fff;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2);
}

.ccp-team-sheet--plain .v-bs-sheet {
  background: #fff;
}

.ccp-team-sheet .v-bs-handle-wrap {
  padding: 10px 0 6px;
}

.ccp-team-sheet .v-bs-body {
  padding-top: 4px;
}

.ccp-team-sheet .v-bs-body > .ccp-sheet-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 0 60px 0 16px;
}

.ccp-team-sheet .ccp-sheet-title {
  font-size: 1.43rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: normal;
}

.ccp-team-sheet .ccp-sheet-sub {
  margin-top: 2px;
  overflow: hidden;
  font-size: 0.902rem;
  line-height: normal;
  color: var(--ccp-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ccp-team-sheet .v-bs-close.v-action-btn {
  top: 24px;
  right: 6px;
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--ccp-muted);
}

.ccp-team-sheet:has(.ccp-sheet-sub) .v-bs-close.v-action-btn {
  top: 26.5px;
}

.ccp-team-sheet .v-bs-close.v-action-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
}

.ccp-team-sheet .ccp-sheet-content {
  padding-bottom: calc(20px + var(--ccp-safe-b));
}

.ccp-team-sheet button {
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}

.ccp-team-sheet .ccp-team-lock {
  margin-top: 4px;
  font-size: 0.946rem;
  line-height: 1.45;
  color: var(--ccp-muted);
}

.ccp-team-sheet .ccp-team-switches {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

/* The design's empty lock line (the Owner's access) still takes its 4px. */
.ccp-team-sheet .ccp-team-switches.is-quiet {
  margin-top: 10px;
}

.ccp-team-sheet .ccp-team-switch-row {
  display: flex;
  color: var(--ccp-text);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid #f1f2f4;
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.ccp-team-sheet .ccp-team-switch-row:focus-visible {
  border-radius: 10px;
}

.ccp-team-sheet .ccp-team-switch-row.is-locked {
  cursor: not-allowed;
}

.ccp-team-sheet .ccp-team-switch-label {
  flex: 1;
  min-width: 0;
  font-size: 1.078rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
}

.ccp-team-sheet .ccp-team-switch {
  display: flex;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  padding: 3px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.2s ease;
}

.ccp-team-sheet .ccp-team-switch > span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.ccp-team-sheet .ccp-team-switch-row.is-on .ccp-team-switch {
  background: var(--ccp-accent);
}

.ccp-team-sheet .ccp-team-switch-row.is-on .ccp-team-switch > span {
  transform: translateX(20px);
}

.ccp-team-sheet .ccp-team-switch-row.is-locked .ccp-team-switch {
  opacity: 0.55;
}

.ccp-team-sheet .ccp-team-warn {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.06);
  font-size: 0.924rem;
  line-height: 1.45;
  color: #7f1d1d;
}

.ccp-team-sheet .ccp-team-warn[hidden] {
  display: none;
}

.ccp-team-sheet .ccp-team-rows {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ccp-team-sheet .ccp-team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f2f4;
}

.ccp-team-sheet .ccp-team-row-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ccp-muted);
}

.ccp-team-sheet .ccp-team-tone--jobs {
  background: rgba(39, 176, 121, 0.1);
  color: var(--ccp-accent);
}

.ccp-team-sheet .ccp-team-tone--profile {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}

.ccp-team-sheet .ccp-team-tone--analytics {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.ccp-team-sheet .ccp-team-tone--added {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.ccp-team-sheet .ccp-team-tone--removed {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

.ccp-team-sheet .ccp-team-tone--role {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.ccp-team-sheet .ccp-team-tone--device {
  background: rgba(0, 0, 0, 0.04);
  color: #4b5563;
}

.ccp-team-sheet .ccp-team-row-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.ccp-team-sheet .ccp-team-row-title {
  font-size: 1.045rem;
  font-weight: 650;
  color: var(--ccp-text);
  overflow-wrap: anywhere;
}

.ccp-team-sheet .ccp-team-row-sub {
  overflow: hidden;
  font-size: 0.924rem;
  color: #4b5563;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ccp-team-sheet .ccp-team-row-sub--wrap {
  font-size: 0.902rem;
  white-space: normal;
}

.ccp-team-sheet .ccp-team-row-when {
  flex-shrink: 0;
  font-size: 0.88rem;
  color: var(--ccp-muted);
  white-space: nowrap;
}

.ccp-team-sheet .ccp-team-status {
  display: inline-flex;
  flex-shrink: 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.836rem;
  font-weight: 650;
}

.ccp-team-sheet .ccp-team-status.is-live {
  background: #ecfdf3;
  color: #065f46;
}

.ccp-team-sheet .ccp-team-none {
  padding: 8px 0;
  font-size: 0.99rem;
  color: var(--ccp-muted);
}

.ccp-team-sheet .ccp-team-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ccp-team-sheet .ccp-team-action {
  display: flex;
  color: var(--ccp-text);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: #fff;
  font-size: 16px;
  line-height: normal;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s ease;
}

.ccp-team-sheet .ccp-team-action:active {
  transform: scale(0.985);
}

.ccp-team-sheet .ccp-team-action.is-danger {
  border-color: rgba(244, 63, 94, 0.25);
  background: rgba(244, 63, 94, 0.05);
}

.ccp-team-sheet .ccp-team-action-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(99, 234, 113, 0.12);
  color: var(--ccp-accent);
}

.ccp-team-sheet .ccp-team-action.is-danger .ccp-team-action-icon {
  background: rgba(244, 63, 94, 0.08);
  color: #be123c;
}

.ccp-team-sheet .ccp-team-action-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ccp-team-sheet .ccp-team-action-label {
  font-size: 1.045rem;
  font-weight: 600;
  color: var(--ccp-text);
  overflow-wrap: anywhere;
}

.ccp-team-sheet .ccp-team-action.is-danger .ccp-team-action-label {
  color: #be123c;
}

.ccp-team-sheet .ccp-team-action-desc {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ccp-muted);
  overflow-wrap: anywhere;
}

/* The desktop pop-ups Manage opens (Remove, Cancel Invite, Delete, Transfer,
   Exit), drawn as the design's confirm sheet while the Team screen has them open
   (team.js adds .ccp-team-confirm and takes it off when they close). */
@media (max-width: 1023px) {
  /* The design's sheet: no border, its upward shadow, the grabber 10px from the
     top and the content 18px down, the footer 2px above the edge. */
  body[data-mobile-nav="company"] .v-modal-overlay.ccp-team-confirm .v-modal-box {
    border: none;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2);
    padding-bottom: calc(2px + var(--ccp-safe-b));
  }

  body[data-mobile-nav="company"] .v-modal-overlay.ccp-team-confirm .v-modal-box::before {
    margin: 10px auto 4px;
  }

  /* Once done, the design's done card: no grabber, its bar along the top edge,
     16px corners, a 1px border and its upward shadow. */
  body[data-mobile-nav="company"] .v-modal-overlay.ccp-team-confirm .v-modal-box:has(> .v-modal-success-layer) {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: none;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -25px 60px -12px rgba(0, 0, 0, 0.18);
    padding-bottom: var(--ccp-safe-b);
  }

  body[data-mobile-nav="company"] .v-modal-overlay.ccp-team-confirm .v-modal-box:has(> .v-modal-success-layer)::before {
    display: none;
  }

  .v-modal-overlay.ccp-team-confirm .v-modal-body-center {
    padding: 1.85rem 1.5rem 1.5rem;
  }

  .v-modal-overlay.ccp-team-confirm .v-modal-icon-box {
    margin: 0 auto 1.1rem;
  }

  .v-modal-overlay.ccp-team-confirm .v-modal-title {
    margin: 0 0 0.55rem;
    font-size: 1.54rem;
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.25;
    color: #1a1a2e;
    overflow-wrap: anywhere;
  }

  .v-modal-overlay.ccp-team-confirm .v-modal-desc {
    max-width: 32rem;
    margin: 0 auto;
    font-size: 1.045rem;
    line-height: 1.6;
    color: #6b7280;
    overflow-wrap: anywhere;
  }

  body[data-mobile-nav="company"] .v-modal-overlay.ccp-team-confirm .v-modal-footer {
    gap: 0.75rem;
    padding: 0.875rem 1.5rem 1.1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.6);
  }

  body[data-mobile-nav="company"] .v-modal-overlay.ccp-team-confirm .v-modal-footer .v-action-btn {
    flex: 1 1 0;
    min-height: 48px;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.6rem;
    background: rgba(0, 0, 0, 0.04);
    box-shadow: none;
    color: #1a1a2e;
    font-size: 1.24rem;
    font-weight: 600;
    white-space: nowrap;
  }

  body[data-mobile-nav="company"] .v-modal-overlay.ccp-team-confirm .v-modal-footer:not(.v-modal-success-footer) .v-action-btn:last-child {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
  }

  body[data-mobile-nav="company"] .v-modal-overlay.ccp-team-confirm.is-ok .v-modal-footer:not(.v-modal-success-footer) .v-action-btn:last-child,
  body[data-mobile-nav="company"] .v-modal-overlay.ccp-team-confirm .v-modal-success-footer .v-action-btn {
    border-color: rgba(99, 234, 113, 0.35);
    background: rgba(99, 234, 113, 0.15);
  }

  body[data-mobile-nav="company"] .v-modal-overlay.ccp-team-confirm .v-modal-success-footer .v-action-btn {
    width: 100%;
    min-height: 50px;
    padding: 0.65rem 1.4rem;
  }
}

/* The done card after Save role, Resend Invite and Send Invite starts right
   under its top edge, as the design's does (the shared sheet body adds 4px). */
body[data-phone-screen="team"] .ccp-sheet--success .v-bs-body {
  padding-top: 0;
}

/* Change role */

.ccp-team-sheet .ccp-team-roles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ccp-team-sheet .ccp-team-role-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: #fff;
  color: var(--ccp-text);
  font-size: 16px;
  line-height: normal;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.ccp-team-sheet .ccp-team-role-opt.is-on {
  border-color: rgba(39, 176, 121, 0.6);
  background: rgba(99, 234, 113, 0.08);
}

.ccp-team-sheet .ccp-team-radio {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
}

.ccp-team-sheet .ccp-team-radio > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ccp-team-sheet .ccp-team-role-opt.is-on .ccp-team-radio {
  border-color: var(--ccp-accent);
}

.ccp-team-sheet .ccp-team-role-opt.is-on .ccp-team-radio > span {
  background: var(--ccp-accent);
}

.ccp-team-sheet .ccp-team-role-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ccp-team-sheet .ccp-team-role-name {
  font-size: 1.045rem;
  font-weight: 700;
  color: #000;
}

.ccp-team-sheet .ccp-team-role-desc {
  font-size: 0.902rem;
  line-height: 1.45;
  color: #4b5563;
}

.ccp-team-sheet .ccp-team-role-note {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ccp-muted);
}

.ccp-team-sheet .ccp-team-role-btns {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.ccp-team-sheet .ccp-team-role-cancel,
.ccp-team-sheet .ccp-team-role-save {
  min-height: 48px;
  border-radius: 0.75rem;
  font-size: 1.24rem;
  cursor: pointer;
  touch-action: manipulation;
}

.ccp-team-sheet .ccp-team-role-cancel {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.04);
  color: var(--ccp-text-2);
  font-weight: 600;
}

.ccp-team-sheet .ccp-team-role-save {
  flex: 1.4;
  border: none;
  background: linear-gradient(135deg, var(--ccp-brand), var(--ccp-brand-2));
  color: #000;
  font-weight: 700;
}

/* Invite New Team Member */

/* The design's 6px spacer under the bar, added to (not merged with) the
   fields' 16px and the intro's 14px below it. */
.ccp-team-sheet .ccp-team-add-steps {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-bottom: 6px;
}

.ccp-team-sheet .ccp-team-add-steps > span {
  flex: 1 1 0;
  height: 5px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: background 0.3s ease;
}

.ccp-team-sheet .ccp-team-add-steps > span.is-on {
  background: var(--ccp-accent);
}

.ccp-team-sheet .ccp-team-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.ccp-team-sheet .ccp-team-field {
  padding: 0;
  border: 0 dashed transparent;
  border-radius: 14px;
  background: transparent;
  transition: padding 0.2s ease, background 0.2s ease;
}

.ccp-team-sheet .ccp-team-field.is-bad {
  padding: 14px;
  border: 2px dashed #ef4444;
  background: rgba(239, 68, 68, 0.04);
}

.ccp-team-sheet .ccp-team-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.858rem;
  font-weight: 650;
  line-height: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ccp-muted);
}

.ccp-team-sheet .ccp-team-field input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.75rem;
  background: #f8f9fa;
  color: var(--ccp-text);
  font-family: "Outfit", sans-serif;
  font-size: 17.6px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.ccp-team-sheet .ccp-team-field input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.ccp-team-sheet .ccp-team-field input:focus,
.ccp-team-sheet .ccp-team-field input:focus-visible {
  outline: none;
  border-color: var(--ccp-brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 234, 113, 0.12);
}

.ccp-team-sheet .ccp-team-field-err {
  margin-top: 10px;
  font-size: 0.946rem;
  font-weight: 600;
  color: #dc2626;
}

.ccp-team-sheet .ccp-team-add-intro {
  margin-top: 14px;
  font-size: 0.968rem;
  line-height: 1.5;
  color: #4b5563;
}

.ccp-team-sheet .ccp-team-add-intro strong {
  color: #111827;
}

.ccp-team-sheet .ccp-team-add-perms {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.ccp-team-sheet .ccp-team-add-perm {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.ccp-team-sheet .ccp-team-add-perm.is-warn {
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.025);
}

.ccp-team-sheet .ccp-team-add-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--ccp-text);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.ccp-team-sheet .ccp-team-add-switch:focus-visible {
  outline-offset: -2px;
  border-radius: 14px;
}

.ccp-team-sheet .ccp-team-add-perm-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.ccp-team-sheet .ccp-team-add-perm-label {
  flex: 1;
  min-width: 0;
  font-size: 0.946rem;
  font-weight: 650;
  line-height: 1.3;
  color: #111827;
}

.ccp-team-sheet .ccp-team-add-switch .ccp-team-switch {
  width: 46px;
}

.ccp-team-sheet .ccp-team-add-switch.is-on .ccp-team-switch {
  background: var(--ccp-accent);
}

.ccp-team-sheet .ccp-team-add-switch.is-on .ccp-team-switch > span {
  transform: translateX(18px);
}

.ccp-team-sheet .ccp-team-add-warn {
  margin: 0 12px 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.06);
  font-size: 0.836rem;
  line-height: 1.45;
  color: #7f1d1d;
}

.ccp-team-sheet--add .ccp-sheet-content {
  padding-bottom: 0;
}

/* The design's footer ends 40px above the sheet's edge (its own 20px and the
   sheet's); pinned while the sheet scrolls (a phone turned sideways), 20px. */
.ccp-team-sheet--add .ccp-sheet-foot {
  bottom: -20px;
  margin-top: 18px;
  padding: 10px 16px calc(40px + var(--ccp-safe-b));
  border-top-color: rgba(0, 0, 0, 0.06);
}

.ccp-team-sheet .ccp-team-add-foot {
  display: flex;
  gap: 10px;
}

.ccp-team-sheet .ccp-team-add-back,
.ccp-team-sheet .ccp-team-add-next {
  min-height: 50px;
  border-radius: 0.85rem;
  font-size: 1.24rem;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}

.ccp-team-sheet .ccp-team-add-back {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: var(--ccp-text);
  font-weight: 650;
}

.ccp-team-sheet .ccp-team-add-next {
  flex: 1.4;
  border: none;
  background: linear-gradient(135deg, var(--ccp-brand), var(--ccp-brand-2));
  color: #000;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .ccp-team-sheet .ccp-team-field,
  .ccp-team-sheet .ccp-team-add-steps > span {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ccp-team .ccp-team-menu {
    animation: none;
  }

  .ccp-team .ccp-team-chev,
  .ccp-team .ccp-team-card,
  .ccp-team .ccp-team-back,
  .ccp-team .ccp-team-section,
  .ccp-team-sheet .ccp-team-action,
  .ccp-team-sheet .ccp-team-switch,
  .ccp-team-sheet .ccp-team-switch > span {
    transition: none;
  }

  .ccp-team .ccp-team-card:active,
  .ccp-team .ccp-team-back:active,
  .ccp-team .ccp-team-section:active,
  .ccp-team-sheet .ccp-team-action:active {
    transform: none;
  }
}
