.team-collaboration-shell {
  min-height: auto;
  padding: 0;
  overflow: hidden;
}

.team-collaboration-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.team-collaboration-header .card-note {
  margin-top: 4px;
}

.team-collaboration-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(10, 54, 99, 0.12);
  border-radius: 999px;
  background: rgba(10, 54, 99, 0.045);
  box-shadow: inset 0 1px 2px rgba(5, 30, 56, 0.035);
}

.team-collaboration-tab {
  min-height: 36px;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    color var(--motion-fast),
    background var(--motion-fast),
    box-shadow var(--motion-fast);
}

.team-collaboration-tab:hover {
  background: rgba(10, 54, 99, 0.075);
  color: var(--bodhi-blue);
}

.team-collaboration-tab.is-active {
  background: var(--bodhi-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 54, 99, 0.19);
}

.team-collaboration-tab.is-active:hover {
  background: var(--bodhi-blue-dark);
  color: #fff;
}

.team-collaboration-panel {
  padding: 18px 26px 26px;
}

.team-collaboration-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.team-member-search {
  margin-left: auto;
}

.team-member-search .input {
  width: 150px;
}

.team-collaboration-shell .member-summary {
  margin-bottom: 18px;
}

.team-collaboration-shell .member-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.team-collaboration-shell .member-summary-item {
  min-height: 92px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.68);
}

.team-collaboration-shell .member-summary-item--interactive {
  color: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.team-collaboration-shell .member-summary-item--interactive:hover,
.team-collaboration-shell .member-summary-item--interactive:focus-visible {
  border-color: rgba(178, 75, 70, 0.42);
  box-shadow: 0 8px 22px rgba(73, 51, 43, 0.08);
  outline: 0;
  transform: translateY(-1px);
}

.team-collaboration-shell .member-summary-item--interactive.is-active {
  border-color: rgba(178, 75, 70, 0.5);
  box-shadow:
    0 0 0 2px rgba(178, 75, 70, 0.08),
    0 8px 22px rgba(73, 51, 43, 0.08);
}

.team-collaboration-shell .member-summary-item--people.member-summary-item--interactive:hover,
.team-collaboration-shell .member-summary-item--people.member-summary-item--interactive:focus-visible,
.team-collaboration-shell .member-summary-item--people.member-summary-item--interactive.is-active {
  border-color: rgba(50, 80, 109, 0.46);
}

.team-collaboration-shell .member-summary-item--active.member-summary-item--interactive:hover,
.team-collaboration-shell .member-summary-item--active.member-summary-item--interactive:focus-visible,
.team-collaboration-shell .member-summary-item--active.member-summary-item--interactive.is-active {
  border-color: rgba(55, 112, 139, 0.48);
}

.team-collaboration-shell .member-summary-item--weekly.member-summary-item--interactive:hover,
.team-collaboration-shell .member-summary-item--weekly.member-summary-item--interactive:focus-visible,
.team-collaboration-shell .member-summary-item--weekly.member-summary-item--interactive.is-active {
  border-color: rgba(69, 113, 89, 0.5);
}

.team-collaboration-shell .member-summary-label--action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.team-collaboration-shell .member-summary-open-hint {
  flex: 0 0 auto;
  color: #a4514b;
  font-size: 10px;
  font-weight: 600;
}

.team-collaboration-shell .member-summary-label {
  font-size: 12px;
}

.team-collaboration-shell .member-summary-value {
  margin-top: 4px;
  font-size: 24px;
}

.team-collaboration-shell .member-summary-item--help {
  border-color: rgba(190, 111, 61, 0.26);
  background: rgba(255, 246, 236, 0.82);
}

.team-collaboration-shell .member-summary-item--people {
  border-color: rgba(50, 80, 109, 0.2);
  background: rgba(241, 246, 251, 0.82);
}

.team-collaboration-shell .member-summary-item--active {
  border-color: rgba(55, 112, 139, 0.22);
  background: rgba(239, 249, 251, 0.82);
}

.team-collaboration-shell .member-summary-item--risk {
  border-color: rgba(178, 75, 70, 0.22);
  background: rgba(255, 242, 241, 0.74);
}

.team-collaboration-shell .member-summary-item--weekly {
  border-color: rgba(69, 113, 89, 0.24);
  background: rgba(240, 249, 243, 0.78);
}

.team-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.team-section-heading h3,
.team-panel-title {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}

.team-section-heading p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.team-attention-section {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid rgba(178, 75, 70, 0.2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 246, 243, 0.92), rgba(255, 251, 246, 0.72));
}

.team-attention-list {
  display: grid;
  gap: 8px;
}

.team-attention-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(112px, 0.68fr) minmax(280px, 2fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 13px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.team-attention-item::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #b24b46;
  content: '';
}

.team-attention-item:hover,
.team-attention-item:focus-visible {
  border-color: rgba(178, 75, 70, 0.36);
  box-shadow: 0 8px 22px rgba(73, 51, 43, 0.08);
  outline: 0;
  transform: translateY(-1px);
}

.team-attention-rank {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(178, 75, 70, 0.1);
  color: #9d3d39;
  font-size: 11px;
  font-weight: 700;
}

.team-attention-severity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.team-attention-severity > span {
  color: #9d3d39;
  font-size: 12px;
  font-weight: 700;
}

.team-attention-severity > strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.team-attention-content {
  min-width: 0;
}

.team-attention-context {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.team-attention-context span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-attention-member {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-weight: 700;
}

.team-attention-title {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-attention-next {
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-attention-next.is-missing {
  color: #a46b35;
}

.team-attention-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.team-attention-tag {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(178, 75, 70, 0.08);
  color: #98524d;
  font-size: 10px;
}

.team-attention-item.team-attention-severity--help::before {
  background: #bb6d35;
}

.team-attention-item.team-attention-severity--help .team-attention-rank {
  background: rgba(187, 109, 53, 0.12);
  color: #9a5425;
}

.team-attention-item.team-attention-severity--help .team-attention-severity > span {
  color: #9a5425;
}

.team-attention-item.team-attention-severity--due-soon::before {
  background: #bd8a22;
}

.team-attention-item.team-attention-severity--review::before {
  background: #56779a;
}

.team-attention-item.team-attention-severity--stale::before {
  background: #777d83;
}

.team-attention-section[data-summary-panel='members'] {
  border-color: rgba(50, 80, 109, 0.2);
  background:
    linear-gradient(135deg, rgba(241, 246, 251, 0.92), rgba(248, 251, 253, 0.72));
}

.team-attention-section[data-summary-panel='active'] {
  border-color: rgba(55, 112, 139, 0.22);
  background:
    linear-gradient(135deg, rgba(239, 249, 251, 0.92), rgba(248, 252, 252, 0.72));
}

.team-attention-section[data-summary-panel='completed'] {
  border-color: rgba(69, 113, 89, 0.24);
  background:
    linear-gradient(135deg, rgba(240, 249, 243, 0.94), rgba(249, 252, 250, 0.74));
}

.team-summary-detail-item--members::before {
  background: #416887;
}

.team-summary-detail-item--members .team-attention-rank {
  background: rgba(50, 80, 109, 0.11);
  color: #34546f;
}

.team-summary-detail-item--members .team-attention-severity > span {
  color: #34546f;
}

.team-summary-detail-item--active::before {
  background: #37708b;
}

.team-summary-detail-item--active .team-attention-rank {
  background: rgba(55, 112, 139, 0.11);
  color: #2d667f;
}

.team-summary-detail-item--active .team-attention-severity > span {
  color: #2d667f;
}

.team-summary-detail-item--completed::before {
  background: #46725a;
}

.team-summary-detail-item--completed .team-attention-rank {
  background: rgba(69, 113, 89, 0.11);
  color: #3d654e;
}

.team-summary-detail-item--completed .team-attention-severity > span {
  color: #3d654e;
}

.team-help-section {
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid rgba(190, 111, 61, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 249, 241, 0.62);
}

.team-help-list {
  display: grid;
  gap: 8px;
}

.team-help-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) minmax(180px, 1.4fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.team-help-person {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}

.team-help-copy {
  min-width: 0;
}

.team-help-title {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-help-description {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.team-help-action {
  white-space: nowrap;
}

.team-member-section {
  min-width: 0;
}

.team-member-list {
  display: grid;
  gap: 8px;
}

.team-work-matrix-legend {
  display: grid;
  grid-template-columns:
    minmax(132px, 0.72fr)
    minmax(420px, 2.3fr)
    minmax(125px, 0.72fr)
    minmax(125px, 0.72fr)
    minmax(92px, 0.5fr)
    78px;
  gap: 12px;
  padding: 0 12px 7px;
  color: var(--text-muted);
  font-size: 10px;
}

.team-member-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) minmax(92px, 0.58fr) minmax(180px, 1.35fr) minmax(160px, 1.25fr) minmax(92px, 0.62fr) minmax(90px, 0.56fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.team-member-row--portfolio {
  grid-template-columns:
    minmax(132px, 0.72fr)
    minmax(420px, 2.3fr)
    minmax(125px, 0.72fr)
    minmax(125px, 0.72fr)
    minmax(92px, 0.5fr)
    78px;
  align-items: start;
  min-height: 92px;
  padding: 12px;
}

.team-member-row--portfolio .team-member-identity {
  padding-top: 3px;
}

.team-member-portfolio {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.team-portfolio-project {
  display: grid;
  grid-template-columns: minmax(105px, 0.34fr) minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--border-subtle);
}

.team-portfolio-project:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.team-portfolio-project-name {
  padding-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
}

.team-portfolio-project-items {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.team-portfolio-item {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(50, 80, 109, 0.1);
  border-radius: 8px;
  background: var(--bg-elevated-soft);
}

.team-portfolio-item-main {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.team-portfolio-item-title {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-portfolio-status,
.team-portfolio-progress,
.team-portfolio-due {
  flex: 0 0 auto;
  font-size: 9px;
  white-space: nowrap;
}

.team-portfolio-status {
  padding: 2px 5px;
  border-radius: 999px;
  background: #edf4ef;
  color: #3f7452;
}

.team-portfolio-status.is-priority {
  background: #fff5d8;
  color: #8c6a18;
}

.team-portfolio-status.is-help {
  background: #fff0de;
  color: #9a5c22;
}

.team-portfolio-status.is-risk {
  background: #fdebea;
  color: var(--danger);
}

.team-portfolio-status.is-review {
  background: #eef0fa;
  color: #575f96;
}

.team-portfolio-status.is-completed {
  background: #eaf6ee;
  color: #3f7452;
}

.team-portfolio-status.is-scheduled {
  background: #eef3f7;
  color: #5e6b77;
}

.team-portfolio-progress,
.team-portfolio-due {
  color: var(--text-muted);
}

.team-portfolio-next {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-portfolio-empty {
  padding: 10px 12px;
  border: 1px dashed var(--border-subtle);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 11px;
}

.team-portfolio-more {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.team-member-work-summary {
  display: grid;
  gap: 7px;
  padding-top: 2px;
}

.team-work-counts {
  display: grid;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10px;
}

.team-member-attention {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex-wrap: wrap;
  padding-top: 3px;
}

.team-attention-chip {
  padding: 3px 6px;
  border-radius: 999px;
  background: #fff0de;
  color: #9a5c22;
  font-size: 9px;
  white-space: nowrap;
}

.team-attention-clear {
  color: #3f7452;
  font-size: 10px;
}

.team-attention-more {
  color: var(--text-muted);
  font-size: 9px;
}

.team-member-row--portfolio .team-member-update-cell {
  padding-top: 6px;
}

.team-member-row--portfolio .team-member-actions {
  padding-top: 2px;
}

.team-member-row:hover {
  border-color: rgba(50, 80, 109, 0.24);
  box-shadow: 0 10px 24px rgba(46, 56, 66, 0.08);
  transform: translateY(-1px);
}

.team-member-row--attention {
  border-left: 2px solid rgba(47, 100, 142, 0.48);
}

.team-member-row--risk {
  border-left-color: rgba(166, 61, 61, 0.68);
}

.team-member-row--inactive {
  opacity: 0.72;
  background: var(--bg-elevated-soft);
}

.team-member-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.team-member-identity .member-card-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  background: linear-gradient(145deg, #235f86, #4b8b9c);
  box-shadow: 0 3px 9px rgba(10, 54, 99, 0.14);
}

.team-member-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf4ef;
  color: #3f7452;
  font-size: 11px;
  white-space: nowrap;
}

.team-status-badge--help {
  background: #fff0de;
  color: #9a5c22;
}

.team-status-badge--risk {
  background: #fdebea;
  color: var(--danger);
}

.team-status-badge--review {
  background: #eef0fa;
  color: #575f96;
}

.team-status-badge--waiting {
  background: var(--bg-elevated-soft);
  color: var(--text-muted);
}

.team-member-cell {
  min-width: 0;
}

.team-member-cell-label {
  display: none;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 10px;
}

.team-member-cell-main {
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-member-cell-sub {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-member-update--stale {
  color: #a1623b;
}

.team-member-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.team-weekly-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 10px;
}

.team-weekly-indicator--done {
  color: #3f7452;
}

.team-member-missing {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.team-member-missing span {
  color: #9a5c22;
  font-size: 10px;
}

.team-inactive-members {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.38);
}

.team-inactive-members summary {
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}

.team-inactive-members[open] summary {
  margin-bottom: 10px;
}

.team-weekly-header {
  align-items: flex-start;
  margin-bottom: 12px;
}

.team-weekly-submission-summary {
  margin-bottom: 14px;
}

.team-weekly-submission-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(69, 113, 89, 0.2);
  border-radius: var(--radius-md);
  background: rgba(240, 249, 243, 0.72);
}

.team-weekly-submission-main {
  font-size: 13px;
  font-weight: 600;
}

.team-weekly-submission-missing {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
}

.team-collaboration-panel .weekly-team-grid {
  margin-top: 0;
}

.team-weekly-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.team-weekly-summary-section {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-elevated-soft);
}

.team-weekly-summary-section--wide {
  grid-column: 1 / -1;
}

.team-weekly-summary-section .weekly-card-section-body {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 1180px) {
  .team-member-row {
    grid-template-columns: minmax(120px, 0.8fr) minmax(92px, 0.58fr) minmax(190px, 1.35fr) minmax(150px, 1.1fr) minmax(88px, 0.55fr) auto;
  }

  .team-work-matrix-legend,
  .team-member-row--portfolio {
    grid-template-columns:
      minmax(122px, 0.66fr)
      minmax(360px, 2.15fr)
      minmax(112px, 0.66fr)
      minmax(116px, 0.66fr)
      78px;
  }

  .team-work-matrix-legend span:nth-child(5) {
    display: none;
  }

  .team-member-row .team-member-update-cell {
    display: none;
  }
}

@media (max-width: 820px) {
  .team-collaboration-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 16px 14px;
  }

  .team-collaboration-tabs {
    width: 100%;
  }

  .team-collaboration-tab {
    flex: 1 1 0;
  }

  .team-collaboration-panel {
    padding: 14px 14px 20px;
  }

  .team-collaboration-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .team-member-search {
    margin-left: 0;
  }

  .team-member-search .input {
    width: 100%;
  }

  .team-collaboration-shell .member-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-collaboration-shell .member-summary-item {
    min-height: 78px;
    padding: 11px;
  }

  .team-collaboration-shell .member-summary-value {
    font-size: 20px;
  }

  .team-collaboration-shell .member-summary-sub {
    display: none;
  }

  .team-help-item {
    grid-template-columns: 1fr auto;
  }

  .team-attention-item {
    grid-template-columns: 26px minmax(98px, 0.6fr) minmax(0, 1.7fr);
  }

  .team-attention-item > .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .team-help-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .team-member-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
    padding: 12px;
  }

  .team-member-row .team-member-identity {
    grid-column: 1;
  }

  .team-member-row .team-member-status-cell {
    grid-column: 2;
    justify-self: end;
  }

  .team-member-row .team-member-focus-cell,
  .team-member-row .team-member-next-cell,
  .team-member-row .team-member-due-cell,
  .team-member-row .team-member-update-cell {
    grid-column: 1 / -1;
  }

  .team-member-row .team-member-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .team-work-matrix-legend {
    display: none;
  }

  .team-member-row--portfolio .team-member-identity {
    grid-column: 1;
  }

  .team-member-row--portfolio .team-member-work-summary {
    grid-column: 2;
    justify-items: end;
  }

  .team-member-row--portfolio .team-work-counts {
    text-align: right;
  }

  .team-member-row--portfolio .team-member-portfolio,
  .team-member-row--portfolio .team-member-attention,
  .team-member-row--portfolio .team-member-actions {
    grid-column: 1 / -1;
  }

  .team-member-cell-label {
    display: block;
  }

  .team-member-cell-main,
  .team-member-cell-sub {
    white-space: normal;
  }

  .team-weekly-header,
  .weekly-team-header-right,
  .weekly-team-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .weekly-team-header-right {
    width: 100%;
  }

  .team-weekly-summary-grid {
    grid-template-columns: 1fr;
  }

  .team-weekly-summary-section--wide {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .team-collaboration-toolbar,
  .team-collaboration-shell .member-summary-grid {
    grid-template-columns: 1fr;
  }

  .team-collaboration-shell .member-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-collaboration-shell .member-summary-label {
    font-size: 10px;
  }

  .team-collaboration-shell .member-summary-value {
    font-size: 18px;
  }

  .team-portfolio-project {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .team-attention-section {
    padding: 12px;
  }

  .team-attention-section .team-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-attention-item {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px 10px;
  }

  .team-attention-severity,
  .team-attention-content,
  .team-attention-item > .btn {
    grid-column: 2;
  }

  .team-attention-title,
  .team-attention-next {
    white-space: normal;
  }
}
