/* People › Members: one rounded card, centred headings, an inline role dropdown, each person's
   inboxes by name, workload as "3 of 10" with a thin bar, availability as a dot pill, and
   icon-only edit / remove. */

/* Toolbar: a pill per inbox on the left, search on the right. */
.member-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.member-seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--soft);
}
.member-seg button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.member-seg button span {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.member-seg button:hover {
  color: var(--ink);
}
.member-seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px #0000001f;
}
.member-seg button[aria-pressed="true"] span {
  color: var(--muted);
}
.member-seg button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.member-toolbar-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.member-toolbar .people-search {
  width: 260px;
  height: 34px;
}
.member-toolbar .people-filter > .dh-select {
  min-width: 140px;
}
.member-toolbar .people-filter .dh-select-trigger {
  min-height: 34px;
  border-radius: 10px;
}

/* The table: rows share the columns (subgrid), like the Support teams table. */
.members-table {
  container: members / inline-size;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.member-row {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) minmax(112px, 0.8fr) minmax(150px, 1.7fr) minmax(112px, 1fr) minmax(176px, 1.3fr) auto;
  align-items: center;
  column-gap: 14px;
  padding: 13px 16px;
  transition: background 0.15s var(--ease);
}
.member-row + .member-row {
  border-top: 1px solid var(--line);
}
@media (min-width: 901px) {
  .members-table {
    display: grid;
    grid-template-columns: minmax(200px, 2fr) minmax(112px, 0.8fr) minmax(150px, 1.7fr) minmax(112px, 1fr) minmax(176px, 1.3fr) auto;
    column-gap: 14px;
  }
  .members-table > .member-row,
  .members-table > .member-empty {
    grid-column: 1 / -1;
  }
  .members-table > .member-row {
    grid-template-columns: subgrid;
  }
  .member-row > .member-cell:nth-child(n + 2):nth-last-child(n + 2) {
    justify-self: center;
    text-align: center;
  }
  .member-row > .member-cell.member-teams-cell:nth-child(n),
  .member-row > .member-cell.member-status-cell:nth-child(n) {
    justify-self: stretch;
    text-align: left;
  }
  .member-head > * {
    justify-self: stretch;
    text-align: center;
  }
  .member-head > .member-head-who,
  .member-head > :nth-child(3),
  .member-head > :nth-child(5) {
    text-align: left;
  }
  /* The heading lines up with the status dot, which sits inside the button's padding. */
  .member-head > :nth-child(5) {
    padding-left: 9px;
  }
}
.member-head {
  padding-top: 9px;
  padding-bottom: 9px;
  border-radius: 12px 12px 0 0;
  background: var(--soft);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
}
.member-head .people-sort {
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
}
.member-head .people-sort span {
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}
.member-head .people-sort:hover span,
.member-head .people-sort:focus-visible span,
.member-head [aria-sort="ascending"] .people-sort span,
.member-head [aria-sort="descending"] .people-sort span {
  opacity: 0.7;
}
.member-head-who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-row:not(.member-head):hover,
.member-row:not(.member-head):focus-within {
  background: color-mix(in srgb, var(--soft) 45%, transparent);
}
.member-row.is-selected:not(.member-head),
.member-row.is-selected:not(.member-head):is(:hover, :focus-within) {
  background: color-mix(in srgb, var(--blue-soft) 60%, transparent);
}
.member-row:last-child {
  border-radius: 0 0 12px 12px;
}
.member-cell {
  min-width: 0;
}

/* Bulk select: the checkbox shows on hover, on focus, and while anything is selected. */
.members-table input.member-check:not(#_) {
  flex: none;
  margin: 0;
  opacity: 0;
  transition: opacity 0.15s var(--ease), background-color 0.14s ease, border-color 0.14s ease;
}
.members-table :is(.member-row:hover, .member-row:focus-within, .member-row.is-selected) input.member-check:not(#_):not(:disabled),
.members-table.has-selection input.member-check:not(#_):not(:disabled),
.members-table input.member-check:not(#_):focus-visible {
  opacity: 1;
}
.members-table .member-row:hover input.member-check:not(#_):disabled {
  opacity: 0.35;
}
.member-who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-who > .member-avatar {
  width: 38px;
  height: 38px;
  flex: none;
}
.member-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.member-name strong {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: var(--text-md);
  font-weight: 600;
  white-space: nowrap;
}
.member-name strong .people-you {
  flex: none;
}
.member-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-name small {
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Role: a soft box whose list opens over it, keeping the current value in place. Owner and you
   are plain text, lined up with the text in the boxes, and so is the column heading. */
.member-row > .member-cell.member-role-cell:nth-child(n) {
  justify-self: stretch;
  text-align: left;
}
.member-head > :nth-child(2) {
  padding-left: 12px;
  text-align: left;
}
.members-table {
  --role-menu-surface: #ffffff;
  --role-menu-line: #e2e4e9;
  --role-menu-current: #f2f3f5;
  --role-menu-shadow: 0 18px 44px #0f172a26, 0 2px 8px #0f172a14;
}
html[data-theme="dark"] .members-table {
  --role-menu-surface: #1b1b1b;
  --role-menu-line: #3a3a3a;
  --role-menu-current: #2a2a2a;
  --role-menu-shadow: 0 20px 48px #000000b8, 0 3px 10px #00000080;
}
.members-table .dh-select:has(select.people-role-select) {
  width: 108px;
}
.members-table .dh-select:has(select.people-role-select) .dh-select-trigger {
  min-height: 32px;
  padding: 6px 10px 6px 12px;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
  font-size: var(--text-sm);
}
.members-table .dh-select:has(select.people-role-select) .dh-select-trigger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--ink) 7%, var(--soft));
}
.members-table .dh-select:has(select.people-role-select) .dh-select-trigger > svg {
  width: 14px;
  height: 14px;
  transform: none;
}
.members-table .dh-select:has(select.people-role-select) .dh-select-panel {
  padding: 4px;
  border-color: var(--role-menu-line);
  border-radius: 12px;
  background: var(--role-menu-surface);
  box-shadow: var(--role-menu-shadow);
  animation-name: role-menu-in;
}
@keyframes role-menu-in {
  from { opacity: 0; }
}
.members-table .dh-select:has(select.people-role-select) .dh-select-list {
  --dropdown-pad: 0px;
  overflow: visible;
}
.members-table .dh-select:has(select.people-role-select) .dh-select-list [role="option"] {
  gap: 8px;
  min-height: 32px;
  padding: 6px 10px 6px 12px;
  border-radius: 8px;
}
.members-table .dh-select:has(select.people-role-select) .dh-select-list [role="option"][aria-selected="true"] {
  background: var(--role-menu-current);
}
.members-table .dh-select:has(select.people-role-select) .dh-select-mark {
  justify-content: center;
}
@media (pointer: coarse) {
  .members-table .dh-select:has(select.people-role-select) .dh-select-list [role="option"] {
    min-height: 44px;
  }
}
.member-role-fixed {
  display: inline-flex;
  align-items: center;
  min-width: 108px;
  height: 32px;
  padding: 0 12px;
  color: var(--muted);
  font-size: var(--text-sm);
}
/* In the phone cards, plain text lines up with its label instead of the boxes. */
@media (max-width: 900px) {
  .member-role-fixed {
    padding-left: 0;
  }
}

/* Teams: up to two named chips with the team's icon, then "+n" listing the rest on hover. The
   whole group opens the team editor. */
.member-teams {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: calc(100% + 8px);
  max-width: calc(100% + 8px);
  min-width: 0;
  padding: 4px;
  margin: -4px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.member-teams:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.member-team-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 28px;
  padding: 0 11px 0 4px;
  border-radius: 99px;
  background: var(--soft);
  font-size: var(--text-sm);
  white-space: nowrap;
  transition: background 0.15s var(--ease);
}
.member-team-chip:first-child:not(:only-of-type) {
  flex-shrink: 0;
}
.member-team-chip > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-teams .team-tile {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 10.5px;
}
.member-teams .team-tile svg {
  width: 12px;
  height: 12px;
}
.member-teams:hover .member-team-chip {
  background: color-mix(in srgb, var(--ink) 11%, var(--surface));
}
.member-team-more {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.member-team-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: -6px;
  z-index: 20;
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow, 0 8px 28px #0000001f);
  color: var(--ink);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-3px);
  transition: opacity 0.14s var(--ease), transform 0.14s var(--ease), visibility 0s linear 0.14s;
  pointer-events: none;
}
.member-team-more:hover,
.member-teams:focus-visible .member-team-more {
  border-color: color-mix(in srgb, var(--muted) 55%, var(--line));
  color: var(--ink);
}
.member-team-more:hover .member-team-pop,
.member-teams:focus-visible .member-team-pop {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.member-team-pop-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 7px;
  font-size: var(--text-sm);
  white-space: nowrap;
}
.member-team-none {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border: 1px dashed color-mix(in srgb, var(--warning) 55%, var(--line));
  border-radius: 99px;
  color: var(--warning);
  font-size: var(--text-sm);
  white-space: nowrap;
}

/* Workload: "3 of 10" and a thin bar that turns orange at the limit. */
.member-load {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.member-load > span:first-child {
  min-width: 4.4em;
  text-align: right;
}
.member-load b {
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 600;
}
.member-load-bar {
  overflow: hidden;
  width: 64px;
  height: 5px;
  border-radius: 3px;
  background: var(--soft);
}
.member-load-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: var(--blue);
  transition: width 0.3s var(--ease);
}
.member-load-bar i.is-full {
  background: var(--warning);
}

/* Status: a dot, then the status over a muted note, as a full-cell button admins use to change it.
   The arrow stays pinned to the cell's right edge and shows on hover, so nothing shifts between rows. */
.member-state {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) 14px;
  column-gap: 9px;
  align-items: center;
  width: 100%;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: var(--text-sm);
  text-align: left;
  transition: background 0.12s var(--ease);
}
.member-state:hover, .member-state[aria-expanded=true] {
  background: var(--soft);
}
.member-state > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.member-state i {
  align-self: start;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #22a05a;
}
.member-state.is-away i {
  background: var(--warning);
}
.member-state.is-offline i {
  box-sizing: border-box;
  border: 2px solid #9aa1ac;
  background: transparent;
}
.member-state strong {
  font-weight: 500;
}
.member-state small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.member-state-chevron {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.member-state .member-state-chevron {
  opacity: 0;
  transition: opacity 0.12s var(--ease);
}
.member-state:is(:hover, :focus-visible, [aria-expanded=true]) .member-state-chevron {
  opacity: 1;
}
@media (hover: none) {
  .member-state .member-state-chevron {
    opacity: 1;
  }
}

/* The status menu: one line per choice. Hover is grey and the picked away choice is blue, so the two
   never look alike. The "shell-dropdown" prefix is needed to win over the shared menu styles. */
.shell-dropdown.member-status-menu {
  z-index: 80;
  width: min(330px, calc(100vw - 16px));
  min-width: 0;
  padding: 5px;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(15, 18, 28, 0.16), 0 3px 10px rgba(15, 18, 28, 0.07);
}
html[data-theme=dark] .shell-dropdown.member-status-menu {
  background: #1b1c20;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 3px 10px rgba(0, 0, 0, 0.28);
}
.shell-dropdown.member-status-menu .menu-divider {
  margin: 5px 4px;
}
.shell-dropdown.member-status-menu button[role=menuitemradio] {
  gap: 10px;
  height: 36px;
  min-height: 36px;
  padding: 0 9px;
  border-radius: 8px;
  transition: background 0.12s var(--ease);
}
.shell-dropdown.member-status-menu button[role=menuitemradio] + button[role=menuitemradio] {
  margin-top: 2px;
}
.shell-dropdown.member-status-menu button[role=menuitemradio]:not(:hover, :focus-visible) {
  background: transparent;
}
.shell-dropdown.member-status-menu button[data-set]:not([data-set=available])[aria-checked=true] {
  background: color-mix(in srgb, var(--blue) 14%, transparent);
}
.shell-dropdown.member-status-menu button[data-set]:not([data-set=available])[aria-checked=true]:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--blue) 20%, transparent);
}
.member-status-menu strong {
  font-weight: 500;
}
.member-status-menu small {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--text-sm);
  white-space: nowrap;
}
.member-status-dot {
  display: grid;
  flex: none;
  place-items: center;
  width: 16px;
  height: 16px;
}
.member-status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a05a;
}
.shell-dropdown.member-status-menu button[role=menuitemradio] > .away-icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: 0;
  color: var(--muted);
  opacity: 1;
}
.shell-dropdown.member-status-menu button[aria-checked=true] > .away-icon {
  color: var(--blue);
}
.member-status-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 4px 4px 3px 9px;
}
.shell-dropdown.member-status-menu .member-status-foot .away-confirm-check {
  align-items: center;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: nowrap;
}
.member-status-foot .away-check-box {
  margin-top: 0;
  border-radius: 4px;
}
.member-status-foot .away-confirm-check[aria-checked=true] .away-check-box {
  border-color: #2855cd;
  background: #2855cd;
}
.member-status-foot .button {
  flex: none;
  height: 30px;
  min-height: 30px;
  margin-left: auto;
  padding: 0 12px;
  border-radius: 8px;
}
.member-status-foot .button:not(:disabled) {
  border-color: #2855cd;
  background: #2855cd;
}
.member-status-foot .button:not(:disabled):hover {
  background: #2048b3;
}
.member-actions {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}
.member-empty {
  padding: 36px;
  color: var(--muted);
  text-align: center;
}

/* A project with only its owner: a quiet nudge under the table. */
.member-solo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.member-solo .button {
  flex: none;
}

/* Bulk actions: a quiet row that sticks to the bottom while scrolling long lists. */
.people-bulk.member-bulk {
  gap: 8px;
  margin: 12px 0 0;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 10px 30px #00000024;
}
.member-bulk .people-bulk-count {
  margin-right: 4px;
}
.people-bulk.member-bulk button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.people-bulk.member-bulk button:hover,
.people-bulk.member-bulk button:focus-visible {
  background: var(--soft);
}
.people-bulk.member-bulk button.danger {
  color: var(--danger);
}
.people-bulk.member-bulk button.danger:hover {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}
.people-bulk.member-bulk .people-bulk-clear {
  border-color: transparent;
  color: var(--muted);
}
@media (prefers-reduced-motion: no-preference) {
  .people-bulk.member-bulk:not([hidden]) {
    animation: member-bulk-in 0.18s var(--ease);
  }
}
@keyframes member-bulk-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* Laptop widths: the team chips get the spare room before the name column does. */
@media (min-width: 901px) and (max-width: 1500px) {
  .members-table {
    grid-template-columns: minmax(230px, 1.45fr) 104px minmax(140px, 1.4fr) 88px minmax(176px, 1.1fr) auto;
  }
}
/* Mid-width tables: drop the workload bar (the numbers stay) so names and team chips keep room. */
@container members (max-width: 1080px) {
  .member-load-bar {
    display: none;
  }
  .member-load > span:first-child {
    min-width: 0;
  }
  .members-table .dh-select:has(select.people-role-select),
  .member-role-fixed {
    width: 100px;
    min-width: 100px;
  }
}

/* Narrow screens: each member becomes a small card with labelled values. */
@media (max-width: 900px) {
  .member-toolbar-end {
    width: 100%;
    margin-left: 0;
  }
  .member-toolbar .people-search {
    flex: 1;
    width: auto;
  }
  .member-head {
    display: none;
  }
  .member-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px 16px;
  }
  .member-head + .member-row {
    border-top: 0;
  }
  .member-who {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .member-actions {
    grid-column: 3;
    grid-row: 1;
  }
  .member-row > .member-cell:nth-child(2) { grid-area: 2 / 1; }
  .member-row > .member-cell:nth-child(3) { grid-area: 2 / 2 / 3 / 4; }
  .member-row > .member-cell:nth-child(4) { grid-area: 3 / 1; }
  .member-row > .member-cell:nth-child(5) { grid-area: 3 / 2 / 4 / 4; }
  .member-cell[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
  }
  .members-table input.member-check:not(#_):not(:disabled) {
    opacity: 1;
  }
  .member-solo {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Inbox filter pills: All, then each inbox with its icon and how many people are in it. */
.member-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.member-pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .15s var(--ease), color .15s var(--ease); }
.member-pill:has(.team-tile) { padding-left: 5px; }
.member-pill span:last-child { font-size: 12px; color: color-mix(in srgb, var(--muted) 75%, transparent); font-variant-numeric: tabular-nums; }
.member-pill:hover { color: var(--ink); }
.member-pill[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.member-pill:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.team-tile.member-pill-tile { width: 20px; height: 20px; border-radius: 6px; flex: none; }
.team-tile.member-pill-tile svg { width: 12px; height: 12px; }
.member-inboxes { display: block; font-size: 13px; color: var(--ink); text-align: left; }
.member-inboxes.is-quiet, .member-inboxes-note { color: var(--muted); }
.member-inboxes-note { display: block; margin-top: 2px; font-size: 12px; }

/* Selection: a floating bar under the table. */
.member-float { position: sticky; bottom: 20px; z-index: 20; display: flex; align-items: center; gap: 2px; width: max-content; max-width: 100%; margin: 20px auto 0; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.member-float[hidden] { display: none; }
.member-float-count { padding: 0 10px 0 10px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.member-float button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.member-float button:hover { background: var(--soft); }
.member-float button svg { width: 13px; height: 13px; color: var(--muted); }
.member-float button.is-primary { background: var(--blue); color: #fff; }
.member-float button.is-primary svg { color: #fff; }
.member-float button.is-primary:hover { background: var(--theme-primary-hover, var(--blue)); }
.member-float button.is-danger { color: var(--danger); }
.member-float .member-state-chevron { position: static; width: 13px; height: 13px; }

/* The Inboxes checklist: tick for everyone, dash for some. */
.member-inbox-list { display: grid; gap: 4px; }
.member-inbox-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 9px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.member-inbox-opt:hover { background: var(--soft); }
.member-inbox-opt > span:nth-child(2) { flex: 1; }
.member-check-box { display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid var(--line); border-radius: 5px; color: #fff; }
.member-check-box svg { width: 12px; height: 12px; stroke-width: 3; }
.member-check-box.is-all, .member-check-box.is-some { border-color: var(--blue); background: var(--blue); }

/* Invite teammates: the side panel, on the Move to inbox shell. */
.mv-sheet.inv-sheet { width: min(440px, calc(100vw - 24px)); }
.inv-sheet .mv-head { align-items: center; margin-bottom: 20px; }
.inv-sheet .mv-close svg { width: 16px; height: 16px; }
.inv-sheet .mv-form { overflow: hidden; }
.inv-sheet .form-error { margin-bottom: 14px; }
.inv-body { display: grid; flex: 1; align-content: start; gap: 20px; min-height: 0; margin: -2px; padding: 2px; overflow: auto; }
.inv-label { display: block; margin: 0 0 8px; color: var(--ink); font-size: var(--text-sm); font-weight: 500; }
.inv-emails { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-height: 92px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: text; transition: border-color .14s ease; }
.inv-emails:focus-within { border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); }
html body .inv-emails input:not(#_) { flex: 1 1 120px; width: auto; min-width: 120px; min-height: 28px; height: 28px; margin: 0; padding: 0 3px; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; color: var(--ink); font: inherit; font-size: var(--text-sm); }
html body .inv-emails input:not(#_)::placeholder { color: var(--muted); opacity: 1; }
.inv-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 28px; padding: 3px 4px 3px 9px; border-radius: 7px; background: var(--soft); color: var(--ink); font-size: var(--text-sm); cursor: default; }
.inv-chip > span { min-width: 0; overflow-wrap: anywhere; }
.inv-chip small { flex: none; font-size: 12px; opacity: .85; }
.inv-chip button { display: grid; flex: none; place-items: center; width: 20px; min-width: 20px; height: 20px; min-height: 20px; margin: 0; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; }
.inv-chip button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.inv-chip svg { width: 13px; height: 13px; }
.inv-chip.is-bad { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
.inv-chip.is-bad button { color: var(--danger); }
.inv-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inv-role { width: 100%; min-height: 40px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: var(--text-sm); font-weight: 400; cursor: pointer; }
.inv-role:hover { border-color: color-mix(in srgb, var(--muted) 45%, var(--line)); background: none; }
.inv-role[aria-pressed="true"], .inv-role[aria-pressed="true"]:hover { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); font-weight: 500; }
.inv-list { display: grid; gap: 6px; }
.inv-inbox { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; margin: 0; padding: 8px 12px 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: var(--text-sm); font-weight: 400; text-align: left; cursor: pointer; }
.inv-inbox:hover:not(:disabled) { border-color: color-mix(in srgb, var(--muted) 45%, var(--line)); background: none; }
.inv-inbox[aria-checked="true"]:not(:disabled), .inv-inbox[aria-checked="true"]:hover:not(:disabled) { border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); }
.inv-inbox:disabled { opacity: .55; cursor: default; }
.inv-inbox-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.inv-inbox small { flex: none; color: var(--muted); font-size: 12px; }
.inv-inbox .member-check-box { flex: none; box-sizing: border-box; color: transparent; }
.inv-inbox .member-check-box.is-all { color: var(--surface); }
.inv-inbox:disabled .member-check-box.is-all { border-color: var(--line); background: var(--soft); color: var(--muted); }
.inv-foot { flex: none; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.inv-seats { flex: 1; min-width: 0; color: var(--muted); font-size: var(--text-sm); }
.inv-seats.is-bad { color: var(--danger); }
