/* Dashboard-only workspace styling. Authentication and onboarding own their layouts. */
.dashboard-page {
  --bg: #f5f5f5;
  --soft: #f5f6f7;
  --line: #e7e8eb;
  --ink: #232631;
  --muted: #6b7280;
  --green: #43846d;
  --sidebar: 242px;
}
.dashboard-page .app-shell:not(.is-setup) {
  padding: 12px 12px 12px 0;
  gap: 0;
  background: var(--bg);
  transition: grid-template-columns 0.2s var(--ease);
}
.dashboard-page .app-shell:not(.is-setup) .sidebar {
  background: transparent;
  border: 0;
  padding: 12px 14px 2px;
  position: relative;
}
.dashboard-page .brand-mark {
  display: none;
}
.dashboard-page .app-shell:not(.is-setup) .sidebar > .brand {
  margin: 8px 14px 34px;
}
.dashboard-page .app-shell:not(.is-setup) .brand-wordmark {
  width: 129px;
  height: 32px;
}
.sidebar-section-label {
  color: #6b7280;
  font-size: var(--text-sm);
  font-weight: 550;
  letter-spacing: 0.7px;
  padding: 0 13px;
  margin-bottom: 12px;
  white-space: nowrap;
}
.dashboard-page .app-shell:not(.is-setup) .workspace-main {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 4px #20243303;
  overflow: hidden;
}
.dashboard-page .app-shell:not(.is-setup) .topbar {
  height: 78px;
  min-height: 78px;
  padding: 0 30px;
  gap: 20px;
  border-color: #eceef0;
}
.dashboard-page .app-shell:not(.is-setup) .topbar-title {
  gap: 20px;
}
.dashboard-page .app-shell:not(.is-setup) .topbar-title h1 {
  font-size: var(--text-sm);
  color: #6b7280;
  font-weight: 450;
}
.dashboard-page .app-shell:not(.is-setup) .topbar-separator {
  color: #d5d7dc;
}
.dashboard-page .workspace-switch {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0;
  min-width: 0;
}
.project-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  background: #edf1fc;
  border: 1px solid #e4e9f7;
  border-radius: 10px;
  font-size: var(--text-sm);
  color: #4662a3;
  font-weight: 550;
  flex-shrink: 0;
  overflow: hidden;
}
.project-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
  padding: 5px;
}
.project-switch-copy {
  min-width: 0;
}
.dashboard-page .workspace-switch label {
  margin: 0 0 1px 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.6px;
  max-width: 210px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-page .app-shell:not(.is-setup) .workspace-switch select {
  border: 0;
  padding: 0 27px 0 8px;
  min-height: 25px;
  background-color: transparent;
  font-size: var(--text-md);
  font-weight: 550;
  border-radius: 5px;
  max-width: 215px;
  width: auto;
  min-width: 118px;
  color: var(--ink);
  box-shadow: none;
}
.dashboard-page .app-shell:not(.is-setup) .workspace-switch select:hover {
  background-color: #f6f7f9;
}
.dashboard-page .view-label {
  font-size: var(--text-sm);
  color: #6b7280;
  padding: 5px 9px;
  border: 1px solid #eceef0;
  border-radius: 6px;
  white-space: nowrap;
}
.dashboard-page .app-shell:not(.is-setup) .topbar-actions {
  gap: 16px;
}
.dashboard-page .app-shell:not(.is-setup) .availability-label select {
  min-height: 30px;
  font-size: var(--text-sm);
  padding-right: 20px;
}
.dashboard-page .app-shell:not(.is-setup) :is(.notification-trigger, .sound-toggle) {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #737985;
}
.dashboard-page :is(.notification-trigger, .sound-toggle) svg {
  width: 17px;
  height: 17px;
}
.dashboard-page .app-shell:not(.is-setup) #main-nav {
  gap: 4px;
}
.dashboard-page .app-shell:not(.is-setup) .nav-link {
  color: #777d89;
  font-size: var(--text-sm);
  font-weight: 450;
  padding: 11px 13px;
  gap: 12px;
  min-height: 41px;
  border-radius: 10px;
}
.dashboard-page .nav-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.dashboard-page .app-shell:not(.is-setup) .nav-link:hover {
  background: #eceef1;
  color: #303744;
}
.dashboard-page .app-shell:not(.is-setup) .nav-link.active {
  background: #e9eefb;
  color: #2856bd;
}
.dashboard-page .app-shell:not(.is-setup) .nav-link.active svg {
  color: #2856bd;
}
.sidebar-project-action,
.sidebar-collapse {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  min-height: 39px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font-size: var(--text-sm);
  color: #6b7280;
  text-align: left;
}
.sidebar-project-action svg,
.sidebar-collapse svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.sidebar-project-action:hover,
.sidebar-collapse:hover {
  background: #eceef1;
  color: #303744;
}
.dashboard-page .app-shell:not(.is-setup) .sidebar-help {
  padding: 10px 0 0;
  margin-top: auto;
}
.dashboard-page .app-shell:not(.is-setup) .sidebar-help a {
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: var(--text-sm);
}
.dashboard-page .app-shell:not(.is-setup) .sidebar-help a:hover {
  background: #eceef1;
}
.sidebar-docs-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.docs-arrow {
  margin-left: auto;
}
.dashboard-page .app-shell:not(.is-setup) .profile-footer {
  margin-top: 11px;
  padding-top: 12px;
  border-color: #e2e4e8;
}
.dashboard-page .profile-chevron {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #8e94a0;
}
.dashboard-page .profile-trigger {
  gap: 10px;
}
.dashboard-page .profile-copy {
  font-size: var(--text-sm);
  font-weight: 500;
}
.dashboard-page .profile-copy small {
  font-size: var(--text-sm);
  font-weight: 400;
}
.dashboard-page .avatar {
  background: #eceef2;
  color: #777f90;
  border: 1px solid #e3e6ec;
}
.dashboard-page .profile-menu {
  border-radius: 12px;
  box-shadow: 0 10px 30px #27304416;
}
.dashboard-page .app-shell:not(.is-setup) .button {
  border-radius: 10px;
  box-shadow: 0 1px 2px #232b3704;
  min-height: 36px;
  padding: 8px 13px;
  font-size: var(--text-sm);
  font-weight: 500;
  gap: 8px;
}
.dashboard-page .app-shell:not(.is-setup) .button svg {
  width: 15px;
  height: 15px;
}
.dashboard-page .app-shell:not(.is-setup) .button.primary {
  background: #2855cd;
  border-color: #2855cd;
  box-shadow: 0 2px 3px #2855cd15;
}
.dashboard-page .app-shell:not(.is-setup) .button.primary:hover {
  background: #2048b3;
}
.dashboard-page
  .app-shell:not(.is-setup)
  input:not([type="checkbox"]):not([type="radio"]),
.dashboard-page .app-shell:not(.is-setup) textarea,
.dashboard-page .app-shell:not(.is-setup) select {
  border-radius: 10px;
  border-color: #e3e6eb;
  font-size: var(--text-sm);
  box-shadow: 0 1px 2px #20293903;
}
.dashboard-page .app-shell:not(.is-setup) .page-panel {
  padding: 32px 34px 40px;
}
.dashboard-page .app-shell:not(.is-setup) .page-heading {
  margin-bottom: 27px;
  gap: 18px;
}
.dashboard-page .app-shell:not(.is-setup) .page-heading h1 {
  font-size: var(--text-lg);
  font-weight: 550;
  letter-spacing: -0.85px;
  line-height: 1.3;
}
.dashboard-page .app-shell:not(.is-setup) .page-heading p {
  font-size: var(--text-sm);
  color: #6b7280;
  margin-top: 7px;
}
.dashboard-page .panel-surface {
  border-color: #e6e8ed;
  border-radius: 12px;
  box-shadow: none;
}
.dashboard-page .surface-header {
  padding: 18px 20px;
  border-color: #eceef2;
}
.dashboard-page .surface-header h3 {
  font-size: var(--text-sm);
  font-weight: 550;
}
.dashboard-page .surface-body {
  padding: 20px;
}
.dashboard-page .table-wrap {
  border: 1px solid #e8eaee;
  border-radius: 10px;
}
.dashboard-page th {
  font-size: var(--text-sm);
  background: #f8f9fb;
  color: #6b7280;
  font-weight: 500;
}
.dashboard-page td {
  font-size: var(--text-sm);
  border-color: #eceef2;
}
.dashboard-page .chip {
  background: #f5f6f9;
  border-color: #e8eaf0;
  color: #858b98;
}
.people-heading {
  align-items: flex-end;
}
.people-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}
.people-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.people-stats strong {
  color: var(--ink);
  font-weight: 550;
}
.people-stats .people-stat-warning,
.people-stats .people-stat-warning strong {
  color: var(--warning);
}
.people-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.people-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.people-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(300px, 100%);
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}
.people-search:focus-within {
  border-color: var(--blue);
}
.people-search svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.dashboard-page .app-shell .people-search input[type="search"],
.dashboard-page .app-shell .people-search input[type="search"]:focus {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: var(--text-sm);
  color: var(--ink);
  outline: none;
}
.people-search input::-webkit-search-cancel-button {
  display: none;
}
.people-page kbd {
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  font-size: var(--text-sm);
  line-height: 15px;
  color: var(--muted);
}
.people-showing {
  margin-left: auto;
  font-size: var(--text-sm);
  color: var(--muted);
}
.people-check {
  width: 44px;
}
.dashboard-page .people-table th.people-check,
.dashboard-page .people-table td.people-check {
  padding-right: 0;
}
.people-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
  vertical-align: middle;
}
.people-check input:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.people-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.people-sort span {
  font-size: var(--text-sm);
  opacity: 0.6;
}
th[aria-sort="ascending"] .people-sort,
th[aria-sort="descending"] .people-sort {
  color: var(--ink);
}
.dashboard-page :is(.member-table, .invite-table) :is(th, td) {
  padding: 13px 14px;
}
.people-table tbody tr:has(td:is(.people-check)) {
  height: auto;
}
.people-table tbody tr.is-selected td {
  background: color-mix(in srgb, var(--blue-soft) 70%, transparent);
}
.member-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.member-table .row {
  flex-wrap: nowrap;
  min-width: 0;
}
.people-who {
  min-width: 0;
  max-width: 220px;
}
.people-who small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-table .member-teams-trigger {
  min-width: 150px;
}
.people-who strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 550;
}
.people-you {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
}
.people-role-fixed {
  font-size: var(--text-sm);
  color: var(--muted);
}
.people-team-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.people-load {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.people-load .usage-progress {
  width: 64px;
  height: 5px;
}
.people-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 10px 2px 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.people-bulk {
  position: sticky;
  bottom: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 16px auto 0;
  padding: 6px 6px 6px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 12px 34px #0000004d;
  overflow-x: auto;
}
.people-bulk[hidden] {
  display: none;
}
.people-bulk-count {
  margin-right: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}
.people-bulk button {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}
.people-bulk button:hover,
.people-bulk button:focus-visible {
  background: color-mix(in srgb, var(--surface) 16%, transparent);
}
.people-bulk button.danger {
  color: color-mix(in srgb, var(--danger) 55%, var(--surface));
}
.people-bulk-clear svg {
  width: 15px;
  height: 15px;
  transform: rotate(45deg);
}
.people-bulk-sep {
  flex: none;
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: color-mix(in srgb, var(--surface) 25%, transparent);
}
.people-invite-bulk {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: var(--text-sm);
  color: var(--muted);
}
.people-invite-bulk[hidden] {
  display: none;
}
.people-invite-email {
  font-weight: 550;
  overflow-wrap: anywhere;
}
/* Support teams: one row per team with members, availability, workload and pickup mode. */
.teams-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.team-row {
  display: grid;
  /* Members never squeeze under their avatars, count and Manage button. */
  grid-template-columns: minmax(200px, 2.2fr) minmax(150px, 1fr) minmax(120px, 1fr) minmax(110px, 0.9fr) minmax(150px, 1.1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
}
.team-row + .team-row {
  border-top: 1px solid var(--line);
}
/* Wide screens: the rows share the table's columns, so headings sit over their values whatever
   each row holds (on its own, every row sized its columns to its own content). */
@media (min-width: 901px) {
  .teams-table {
    display: grid;
    grid-template-columns: minmax(200px, 2.2fr) minmax(150px, 1fr) minmax(120px, 1fr) minmax(110px, 0.9fr) minmax(150px, 1.1fr) auto;
    column-gap: 14px;
  }
  .teams-table > .team-row {
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
  }
  .teams-table > .team-empty {
    grid-column: 1 / -1;
  }
  /* Middle columns are centred under their headings; Team stays left and Actions right. */
  .team-row > :nth-child(n + 2):nth-last-child(n + 2) {
    justify-self: center;
    text-align: center;
  }
  /* Every heading is centred over its column; Team spans the whole name column, and Actions
     sits centred over the row's three buttons. */
  .team-head > * {
    justify-self: stretch;
    text-align: center;
  }
}
.team-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;
  letter-spacing: 0;
  text-transform: none;
}
.team-cell {
  min-width: 0;
}
.team-name {
  display: flex;
  align-items: center;
  gap: 11px;
}
.team-name-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.team-name-text strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-md);
  font-weight: 600;
}
.team-name-text small {
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-name-text small.team-leads {
  color: var(--ink);
  font-size: 12.5px;
  opacity: 0.8;
}
.team-tile,
.team-avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  color: #fff;
  font-weight: 600;
}
.team-tile {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 13px;
}
.team-tile svg {
  width: 18px;
  height: 18px;
}
/* Team icon picker in the team dialog: a preview, suggestions from the name, then every icon. */
.team-icon-field {
  margin: 0;
  padding: 0;
  border: 0;
}
.team-icon-field legend {
  margin-bottom: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
}
.team-icon-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.team-icon-preview {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 16px;
}
.team-icon-preview svg {
  width: 22px;
  height: 22px;
}
.team-icon-caption {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}
.team-icon-row,
.team-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.team-icon-choice {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font: 600 12px/1 inherit;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background-color 0.12s;
}
.team-icon-choice svg {
  width: 17px;
  height: 17px;
}
.team-icon-choice:hover {
  border-color: var(--muted);
  color: var(--ink);
}
.team-icon-choice[aria-pressed="true"] {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
  color: var(--blue);
}
.team-icon-choice:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.team-icon-more {
  margin-top: 10px;
}
.team-icon-more summary {
  width: fit-content;
  color: var(--blue);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}
.team-icon-grid {
  max-height: 196px;
  margin-top: 8px;
  overflow-y: auto;
}
.tone-0 { background: #124bce; }
.tone-1 { background: #7c5cd6; }
.tone-2 { background: #d0672f; }
.tone-3 { background: #1f8a5b; }
.tone-4 { background: #c2417a; }
.tone-5 { background: #2f7fb8; }
.team-count,
.team-available,
.team-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--muted);
}
.team-count b,
.team-available b,
.team-open b {
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 600;
}
.team-available b {
  margin-right: -4px;
}
.team-none {
  color: var(--muted);
}
.team-avatars {
  display: inline-flex;
}
.team-count b {
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}
.team-avatar {
  position: relative;
  width: 26px;
  height: 26px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  font-size: 9.5px;
}
.team-avatar + .team-avatar {
  margin-left: -7px;
}
.team-avatar i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: #b8bec9;
}
.team-avatar i.is-on {
  background: #2fb37c;
}
.team-avatar.is-more {
  background: var(--soft);
  color: var(--muted);
}
.team-issue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--warning);
  font-size: var(--text-sm);
  font-weight: 500;
}
.team-issue svg {
  flex: none;
  width: 13px;
  height: 13px;
}
.team-open-bar {
  overflow: hidden;
  width: 64px;
  height: 5px;
  border-radius: 3px;
  background: var(--soft);
}
.team-open-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--blue);
}
.team-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 99px;
  background: var(--soft);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}
.team-mode.is-auto {
  background: var(--blue-soft);
  color: var(--blue);
}
.team-mode svg {
  width: 12px;
  height: 12px;
}
.team-actions {
  position: relative;
  justify-self: end;
  display: flex;
  gap: 2px;
}
/* Icon-only actions: the members, delete and edit buttons, and the eye beside "Available". */
.team-icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.team-icon-button svg {
  width: 16px;
  height: 16px;
}
.team-icon-button:hover:not(:disabled),
.team-icon-button[aria-expanded="true"] {
  background: var(--soft);
  color: var(--ink);
}
.team-icon-button.is-danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
}
.team-icon-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.team-icon-button:focus-visible,
.team-add:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
/* The + sits at the end of the faces, like one more avatar. The slot has room for three faces
   and a "+n", and keeps the + and the count in the same place on every row. */
.team-stack {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 102px;
}
.team-add {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: -4px;
  padding: 0;
  border: 1.5px dashed color-mix(in srgb, var(--muted) 55%, var(--line));
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease), transform 0.2s var(--ease);
}
.team-stack > .team-add:first-child {
  margin-left: 0;
}
.team-add svg {
  width: 14px;
  height: 14px;
}
.team-add:hover {
  border-style: solid;
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  transform: scale(1.06);
}
.team-avail-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.team-icon-button.team-peek {
  width: 28px;
  height: 28px;
}
/* The eye's dialog: the whole team, online first, scrolling when it's long. */
.team-peek-dialog {
  display: grid;
  gap: 12px;
}
.team-peek-dialog .people-dialog-intro {
  margin: 0;
}
.team-peek-search {
  width: 100%;
  height: 36px;
}
.team-peek-search input:not(#_) {
  flex: 1;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: var(--text-sm);
}
.team-peek-list {
  max-height: min(420px, 52vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 -8px;
  padding: 0 8px;
}
.team-peek-group + .team-peek-group {
  margin-top: 6px;
}
.team-peek-none {
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
  font-size: var(--text-sm);
  text-align: center;
}
.team-peek-dialog .modal-actions .button svg {
  width: 15px;
  height: 15px;
}
.team-peek-label {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 6px 8px 4px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.team-peek-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.team-peek-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
}
.team-peek-list li:hover {
  background: var(--soft);
}
.team-peek-list li .team-avatar {
  flex: none;
  width: 32px;
  height: 32px;
}
.team-peek-name {
  flex: 1;
}
.team-peek-state {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.team-peek-state.is-on {
  color: #2fb37c;
}
.team-peek-name {
  display: grid;
  min-width: 0;
}
.team-peek-name strong {
  overflow: hidden;
  font-size: var(--text-sm);
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-peek-name small {
  color: var(--muted);
  font-size: 12px;
}
.team-empty {
  padding: 36px;
  color: var(--muted);
  text-align: center;
}
/* Narrow screens: each team becomes a small card with labelled values. */
@media (max-width: 900px) {
  .team-head {
    display: none;
  }
  .team-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px 16px;
  }
  .team-row + .team-row,
  .team-head + .team-row {
    border-top: 1px solid var(--line);
  }
  .team-head + .team-row {
    border-top: 0;
  }
  .team-name {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .team-actions {
    grid-column: 3;
    grid-row: 1;
  }
  .team-name-text small {
    white-space: normal;
  }
  .team-row > .team-cell:nth-child(2) { grid-area: 2 / 1; }
  .team-row > .team-cell:nth-child(3) { grid-area: 2 / 2 / 3 / 4; }
  .team-row > .team-cell:nth-child(4) { grid-area: 3 / 1; }
  .team-row > .team-cell:nth-child(5) { grid-area: 3 / 2 / 4 / 4; }
  .team-cell[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: var(--text-xs, 10.5px);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
  }
}
.member-teams-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 100px;
  max-width: 100%;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: var(--text-sm);
  text-align: left;
}
.member-teams-trigger span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.member-teams-trigger:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.member-teams-trigger svg {
  flex: none;
  width: 13px;
  height: 13px;
}
.member-team-option .team-table-default {
  margin-left: auto;
  flex: none;
}
.people-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.people-table {
  min-width: 640px;
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.dashboard-page .people-table th {
  padding: 14px 20px;
  background: var(--soft);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.dashboard-page .people-table td {
  padding: 23px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.people-table tbody tr {
  height: 92px;
}
.people-table tbody tr:last-child td {
  border-bottom: 0;
}
.people-table td:last-child {
  text-align: right;
}
.people-table .table-actions {
  justify-content: flex-end;
}
.people-table td.people-table-none {
  text-align: center;
  color: var(--muted);
}
.team-table {
  min-width: 800px;
}
.team-table th:first-child {
  width: 42%;
}
.team-table th:nth-child(2) {
  width: 18%;
}
.team-table th:nth-child(3) {
  width: 22%;
}
.people-table-actions-heading {
  text-align: right;
}
.team-table-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.team-table-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
}
.team-table-icon svg {
  width: 19px;
  height: 19px;
}
.team-table-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
.team-table-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.team-table-title strong {
  font-size: var(--text-md);
  font-weight: 550;
  letter-spacing: -0.3px;
  line-height: 1.4;
}
.team-table-default {
  padding: 3px 7px;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.5;
  border-radius: 5px;
  color: var(--muted);
  background: var(--soft);
}
.team-table-description {
  margin-top: 5px;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--muted);
}
.team-table-members {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.team-table-avatar-stack {
  display: flex;
}
.team-table-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 27px;
  height: 27px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
  color: var(--muted);
  font-size: var(--text-sm);
  letter-spacing: -0.2px;
}
.team-table-avatar + .team-table-avatar {
  margin-left: -7px;
}
.team-table-mode {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: var(--text-sm);
  white-space: nowrap;
}
.team-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}
.team-table-edit {
  min-height: 34px;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  flex: none;
  background: var(--surface);
}
.team-table-edit svg {
  width: 16px;
  height: 16px;
}
.people-access-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 680px) {
  .stack-table {
    min-width: 0;
  }
  .stack-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .stack-table tbody,
  .stack-table tbody tr {
    display: block;
  }
  .stack-table tbody tr {
    height: auto;
  }
  .stack-table tbody tr + tr {
    border-top: 1px solid var(--line);
  }
  .dashboard-page .stack-table td {
    display: block;
    padding: 8px 18px;
    border-bottom: 0;
  }
  .dashboard-page .stack-table td:first-child {
    padding-top: 18px;
    padding-bottom: 12px;
  }
  .dashboard-page .stack-table td:last-child {
    padding-top: 12px;
    padding-bottom: 18px;
  }
  .dashboard-page .stack-table td[data-label] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .stack-table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: var(--text-sm);
  }
  .team-table-mode {
    white-space: normal;
  }
  .people-search {
    width: 100%;
  }
  .people-showing,
  .people-hints {
    display: none;
  }
  .dashboard-page .stack-table td.people-check {
    float: left;
    width: auto;
    padding: 24px 0 0 18px;
  }
  .dashboard-page .stack-table td.people-check + td {
    padding-left: 48px;
  }
  .people-bulk {
    bottom: 12px;
  }
}
.people-form {
  gap: 20px;
}
.people-dialog-intro {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}
.people-form .modal-actions {
  margin-top: 2px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.people-options {
  border: 1px solid var(--line);
  border-radius: 10px;
}
.people-options > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-size: var(--text-sm);
  font-weight: 550;
  list-style: none;
  cursor: pointer;
}
.people-options > summary::-webkit-details-marker {
  display: none;
}
.people-options > summary > svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted);
}
.people-options[open] > summary > svg {
  transform: rotate(180deg);
}
.people-options-content {
  padding: 4px 14px 16px;
}
.people-team-choices {
  gap: 12px;
}
.people-team-choices h3,
.people-assignment legend {
  font-size: var(--text-sm);
  font-weight: 500;
}
.people-assignment {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.people-assignment legend {
  margin-bottom: 10px;
  padding: 0;
}
.people-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.people-choice:has(input:checked) {
  background: var(--blue-soft);
  border-color: var(--blue);
}
.people-choice input,
.people-member-option input {
  flex: none;
  width: 14px;
  height: 14px;
  margin: 3px 0 0;
  accent-color: var(--blue);
}
.people-choice strong,
.people-member-copy strong,
.people-identity strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 550;
}
.people-choice small,
.people-member-copy small,
.people-identity small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.people-member-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}
.people-member-option,
.people-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.people-member-option {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.people-member-option:has(input:checked) {
  background: var(--blue-soft);
  border-color: var(--blue);
}
.people-member-option input {
  margin-top: 0;
}
.people-member-copy,
.people-identity > span:last-child {
  min-width: 0;
}
.people-member-option .avatar,
.people-identity .avatar {
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .people-options > summary > svg {
    transition: transform 0.18s var(--ease);
  }
  .people-options[open] > .people-options-content {
    animation: people-options-in 0.18s var(--ease);
  }
  .people-choice,
  .people-member-option {
    transition:
      background-color 0.16s var(--ease),
      border-color 0.16s var(--ease);
  }
}
@keyframes people-options-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dashboard-page .overview-page {
  max-width: 1500px;
  margin: 0 auto;
}
.overview-eyebrow {
  text-transform: none;
  font-size: var(--text-sm) !important;
  letter-spacing: 0;
  font-weight: 550;
  color: #6b7280 !important;
  margin: 0 0 9px !important;
}
.overview-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.overview-report-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.overview-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 26px;
}
.overview-summary .overview-facts {
  margin-top: auto;
}
.overview-headline {
  font-size: var(--text-lg);
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -0.6px;
  margin: 2px 0 20px;
  max-width: 560px;
}
.overview-headline em {
  font-style: normal;
  color: var(--blue);
}
.overview-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin: 0;
}
.overview-facts dt {
  font-size: var(--text-sm);
  color: var(--muted);
  order: 2;
}
.overview-facts div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.overview-facts dd {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.overview-summary-empty {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: -8px 0 16px;
}
.overview-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--green);
}
.overview-now-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.overview-now .surface-header + .overview-now-row {
  border-top: 0;
}
.overview-now-row:last-child {
  border-radius: 0 0 12px 12px;
}
.overview-now-row:hover,
.overview-now-row:focus-visible {
  background: var(--soft);
}
.overview-now-row strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 550;
}
.overview-now-row small {
  font-size: var(--text-sm);
  color: var(--muted);
}
.overview-now-value {
  margin-left: auto;
  font-size: var(--text-lg);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.overview-now-row.needs-attention .overview-now-value {
  color: var(--warning);
}
.overview-now-row svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
  flex: none;
}
.overview-trend .surface-body {
  padding: 16px 20px 14px;
}
.overview-chart {
  position: relative;
  height: 190px;
  --chart-line: #2a78d6;
}
html[data-theme="dark"] .overview-chart {
  --chart-line: #3987e5;
}
.overview-chart svg {
  display: block;
  overflow: visible;
}
.overview-chart-grid {
  stroke: var(--line);
}
.overview-chart-axis {
  font-size: var(--text-sm);
  fill: var(--muted);
}
.overview-chart-line {
  fill: none;
  stroke: var(--chart-line);
  stroke-width: 2;
  stroke-linejoin: round;
}
.overview-chart-cross {
  stroke: var(--muted);
  stroke-dasharray: 3 3;
  opacity: 0;
}
.overview-chart-dot {
  fill: var(--chart-line);
  stroke: var(--surface);
  stroke-width: 2;
  opacity: 0;
}
.overview-chart-tip {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
  background: var(--ink);
  color: var(--surface);
  font-size: var(--text-sm);
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.1s;
}
.overview-chart-tip strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 550;
}
.overview-chart.is-hovering :is(.overview-chart-cross, .overview-chart-dot, .overview-chart-tip) {
  opacity: 1;
}
.overview-chart-empty {
  margin: 0;
  padding: 40px 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--muted);
}
.overview-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.overview-metric {
  padding: 18px 20px;
}
.overview-metric-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.overview-metric-label svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.overview-metric-value {
  margin: 14px 0 8px;
  font-size: var(--text-lg);
  line-height: 1.1;
  font-weight: 550;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.overview-metric .usage-progress {
  margin: 0 0 8px;
}
.overview-metric-note {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.overview-methodology-note {
  margin: 10px 2px 0;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--muted);
}
.overview-team-section {
  margin-top: 28px;
}
.overview-team-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.overview-team-head h3 {
  font-size: var(--text-md);
  font-weight: 550;
  margin: 0 0 4px;
}
.overview-team-head p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.overview-team-head .text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  white-space: nowrap;
}
.overview-team-head .text-button svg {
  width: 13px;
  height: 13px;
}
/* Team workload lanes: one row per teammate, bar length = share of the busiest. */
.overview-lanes {
  padding: 16px 20px 6px;
}
.overview-lanes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.overview-lane-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 4px;
  font-size: var(--text-sm);
  color: var(--muted);
}
.overview-lane-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 3px;
  vertical-align: -1px;
}
.overview-lane {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr) 84px;
  align-items: center;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.overview-lane:last-child {
  border-bottom: 0;
}
html[data-theme="dark"] .overview-lane-legend .is-replies,
html[data-theme="dark"] .overview-lane-part.is-replies {
  background: #3f6ae6;
}
html[data-theme="dark"] .overview-lane-legend .is-resolved,
html[data-theme="dark"] .overview-lane-part.is-resolved {
  background: #2a8f68;
}
.overview-lane-legend .is-replies,
.overview-lane-part.is-replies {
  background: var(--blue);
}
.overview-lane-legend .is-helped,
.overview-lane-part.is-helped {
  background: #7c4ddb;
}
.overview-lane-legend .is-resolved,
.overview-lane-part.is-resolved {
  background: var(--green);
}
.overview-lane-track {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.overview-lane-figures {
  flex: none;
  color: var(--muted);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.overview-lane-bar {
  display: flex;
  height: 24px;
  border-radius: 10px;
  overflow: hidden;
  transition: width 0.4s var(--ease);
}
.overview-lane-part {
  display: grid;
  place-items: center;
  flex: 1 1 0;
  min-width: 3px;
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.overview-lane-part + .overview-lane-part {
  box-shadow: inset 1px 0 0 #ffffff40;
}
.overview-lane-empty {
  display: block;
  flex: 1;
  padding: 3px 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.overview-lane-time {
  margin: 0;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.overview-lane-time small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.overview-member-id small.is-available {
  color: var(--green);
}
.overview-member-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.overview-member-id .avatar {
  width: 30px;
  height: 30px;
  font-size: var(--text-sm);
  flex: none;
}
.overview-member-id > span:last-child {
  min-width: 0;
}
.overview-member-id strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-member-id small {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-sm);
  color: var(--muted);
}
.is-setup .sidebar-section-label,
.is-setup .sidebar-project-action,
.is-setup .sidebar-collapse,
.is-setup .sidebar-docs-icon,
.is-setup .brand-mark {
  display: none;
}
.is-setup .profile-chevron {
  transform: rotate(180deg);
}
@media (max-width: 1200px) {
  .dashboard-page {
    --sidebar: 222px;
  }
  .dashboard-page .app-shell:not(.is-setup) .topbar {
    padding: 0 24px;
  }
  .dashboard-page .app-shell:not(.is-setup) .page-panel {
    padding: 28px 26px 36px;
  }
  .overview-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(230px, 1fr);
  }
  .overview-report-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
@media (max-width: 1024px) {
  .sidebar-collapse {
    display: none;
  }
  .dashboard-page .view-label {
    display: none;
  }
  .dashboard-page .app-shell:not(.is-setup) .topbar-title {
    gap: 10px;
  }
  .overview-hero,
  .overview-metrics-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .overview-report-controls {
    flex-wrap: nowrap;
  }
}
@media (max-width: 680px) {
  .dashboard-page .app-shell:not(.is-setup) {
    padding: 0;
  }
  .dashboard-page .app-shell:not(.is-setup) .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    background: #f5f5f5;
    padding: 22px 16px 12px;
    width: min(310px, 86vw);
    box-shadow: 8px 0 30px #26304412;
  }
  .dashboard-page .app-shell:not(.is-setup) .workspace-main {
    border: 0;
    border-radius: 0;
  }
  .dashboard-page .app-shell:not(.is-setup) .topbar {
    height: 68px;
    min-height: 68px;
    padding: 0 14px;
    gap: 8px;
  }
  .dashboard-page .app-shell:not(.is-setup) .topbar-title {
    gap: 9px;
    min-width: 0;
    flex: 1;
  }
  .dashboard-page .app-shell:not(.is-setup) .workspace-switch {
    gap: 7px;
    min-width: 0;
  }
  .dashboard-page .app-shell:not(.is-setup) .workspace-switch select {
    width: 100%;
    min-width: 0;
    max-width: 145px;
    font-size: var(--text-sm);
    padding-left: 2px;
  }
  .dashboard-page .workspace-switch label {
    margin-left: 2px;
    font-size: var(--text-sm);
    max-width: 135px;
  }
  .project-avatar {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    font-size: var(--text-sm);
  }
  .dashboard-page .app-shell:not(.is-setup) .topbar-title > h1,
  .dashboard-page .app-shell:not(.is-setup) .topbar-separator {
    display: none;
  }
  .dashboard-page .app-shell:not(.is-setup) .topbar-actions {
    gap: 6px;
  }
  .dashboard-page .app-shell:not(.is-setup) .availability-label {
    display: flex;
  }
  .dashboard-page .app-shell:not(.is-setup) .availability-label select {
    font-size: var(--text-sm);
    max-width: 78px;
    min-height: 28px;
    padding-right: 17px;
  }
  .dashboard-page .app-shell:not(.is-setup) .page-panel {
    padding: 25px 20px 30px;
  }
  .dashboard-page .app-shell:not(.is-setup) .page-heading {
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  .dashboard-page .app-shell:not(.is-setup) .page-heading h1 {
    font-size: var(--text-lg);
  }
  .dashboard-page .app-shell:not(.is-setup) .page-heading p {
    font-size: var(--text-sm);
  }
  .overview-actions {
    width: 100%;
  }
  .overview-hero,
  .overview-metrics-row {
    gap: 12px;
  }
  .overview-lanes {
    padding: 14px 14px 4px;
  }
  .overview-lane {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }
  .overview-lane-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .overview-summary {
    padding: 20px 18px;
  }
  .overview-headline {
    font-size: var(--text-lg);
  }
  .overview-report-controls {
    gap: 6px;
  }
  .overview-team-head {
    display: block;
  }
  .overview-team-head .text-button {
    margin-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-page .app-shell {
    transition: none !important;
  }
}

@media (max-width: 360px) {
  .dashboard-page .app-shell:not(.is-setup) .project-avatar {
    display: none;
  }
  .dashboard-page .app-shell:not(.is-setup) .workspace-switch select {
    max-width: 105px;
  }
}
@media (min-width: 681px) and (max-height: 740px) {
  .dashboard-page .app-shell:not(.is-setup) .sidebar > .brand {
    margin-bottom: 20px;
  }
  .dashboard-page .app-shell:not(.is-setup) .nav-link {
    min-height: 34px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .dashboard-page .app-shell:not(.is-setup) .sidebar-help a,
  .sidebar-project-action,
  .sidebar-collapse {
    min-height: 32px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .dashboard-page .app-shell:not(.is-setup) .profile-footer {
    margin-top: 5px;
    padding-top: 8px;
  }
}
@media (min-width: 681px) and (max-height: 660px) {
  .dashboard-page .app-shell:not(.is-setup) .sidebar {
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

/* Billing: a summary of the plan and usage; plans open in the pricing dialog. */
.billing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  max-width: 1100px;
  overflow: hidden;
}
.billing-plan {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}
.billing-plan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--blue) 13%, transparent), transparent 60%);
  pointer-events: none;
}
.billing-plan > * {
  position: relative;
}
.billing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.billing-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.billing-plan h2 {
  margin: 4px 0 0;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.billing-price {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-md);
}
.billing-price strong {
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: 600;
}
.billing-price span {
  margin: 0 8px;
}
.billing-term {
  margin-top: 12px;
}
.billing-term p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.billing-term p strong {
  color: var(--ink);
}
.billing-term-dates {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.billing-term-track {
  position: relative;
  height: 6px;
  margin: 10px 0 8px;
  border-radius: 99px;
  background: var(--soft);
}
.billing-term-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--elapsed);
  border-radius: 99px;
  background: var(--blue);
}
.billing-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.billing-status[data-tone="success"] {
  color: var(--green);
}
.billing-status[data-tone="warning"] {
  color: var(--warning);
}
.billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.billing-usage {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 24px 26px;
}
.billing-meter {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.billing-meter p {
  margin: 0;
}
.billing-ring {
  width: 60px;
  height: 60px;
}
.billing-ring circle {
  fill: none;
  stroke-width: 7;
}
.billing-ring-track {
  stroke: var(--soft);
}
.billing-ring-value {
  stroke: var(--blue);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.billing-ring.near-limit .billing-ring-value {
  stroke: var(--warning);
}
.billing-ring text {
  fill: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
}
.billing-meter-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
}
.billing-meter-value strong {
  font-size: var(--text-md);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.billing-meter-value span,
.billing-meter-label,
.billing-meter-aside {
  color: var(--muted);
  font-size: var(--text-sm);
}
.billing-meter-aside {
  white-space: nowrap;
}
.billing-usage-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  color: var(--warning);
  font-size: var(--text-sm);
}
.billing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin-top: 14px;
}
.billing-cards > .panel-surface {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 136px;
  padding: 18px 20px;
}
.billing-cards p {
  margin: 0;
}
.billing-big {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.billing-big span {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0;
}
.billing-alert {
  color: var(--warning);
}
.billing-card-foot {
  margin-top: auto;
  padding-top: 4px;
}
.usage-progress.near-limit::-webkit-progress-value {
  background: var(--warning);
}
.usage-progress.near-limit::-moz-progress-bar {
  background: var(--warning);
}
.pricing-plan-current .pricing-plan-fit {
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--ink);
}
@media (max-width: 900px) {
  .billing-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .billing-hero {
    grid-template-columns: 1fr;
  }
  .billing-plan {
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .billing-usage {
    padding: 22px;
  }
  .billing-actions .button {
    flex: 1 1 auto;
    justify-content: center;
  }
}
/* Inboxes admin page and the Widget page inbox picker. */
.inbox-slug {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--ink);
  font: var(--text-sm)/1.5 ui-monospace, monospace;
}
.inbox-open-count {
  font-variant-numeric: tabular-nums;
}
.inbox-table tr.inbox-archived .team-table-info {
  opacity: 0.6;
}
.inbox-archived-badge {
  margin-left: 6px;
}
.inbox-footnote {
  margin-top: 14px;
}
.inbox-footnote code {
  font-size: var(--text-sm);
}
.inbox-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.inbox-secondary-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.inbox-form-actions > .button.primary:only-child {
  margin-left: auto;
}
.widget-studio.project-scope :is(.title-inbox,#widget-publish-status,#publish-widget,#copy-widget),
.widget-studio[data-page="install"] #copy-widget {
  display: none;
}
/* "Customize inbox for [Website questions ⌄]": the inbox name in the title is the inbox picker. */
@keyframes title-inbox-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
}
/* Only the row under the pointer (or keyboard focus) lights up; the current inbox has the check. */

/* Sidebar sub-pages: the parent stays tinted, the current sub-page carries the highlight. */
.nav-chevron {
  width: 13px !important;
  height: 13px !important;
  margin-left: auto;
  opacity: 0.6;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Group rows: the link keeps a chevron-sized gap and the chevron button sits over it, so the
   arrow opens or closes the sub-pages without following the link. */
.nav-row {
  position: relative;
}
.nav-chevron-space {
  flex: none;
  width: 13px;
  margin-left: auto;
}
.nav-badge + .nav-chevron-space {
  margin-left: 8px;
}
.nav-expand {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.12s ease, color 0.12s ease;
}
/* The whole row opens the group, so the chevron lights up with the row, not on its own. */
.nav-row:hover .nav-expand {
  color: var(--ink);
}
.nav-expand:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.nav-expand .nav-chevron {
  margin: 0;
}
.nav-expand[aria-expanded="true"] .nav-chevron {
  transform: rotate(90deg);
}
.dashboard-page .app-shell:not(.is-setup) .nav-link.has-sub.active,
html[data-theme="dark"] .dashboard-page .app-shell:not(.is-setup) .nav-link.has-sub.active {
  background: transparent;
}
/* Open sub-pages can make the nav taller than the sidebar; let the nav scroll on its own. */
.dashboard-page .app-shell:not(.is-setup) {
  grid-template-rows: minmax(0, 1fr);
}
.dashboard-page .app-shell:not(.is-setup) .sidebar {
  min-height: 0;
}
.dashboard-page .app-shell:not(.is-setup) .sidebar > * {
  flex-shrink: 0;
}
.dashboard-page .app-shell:not(.is-setup) #main-nav {
  flex-shrink: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
/* The space above the sub-pages is the list's own margin (not a row gap) so it can ease in. */
.nav-group {
  display: grid;
}
.nav-sub {
  display: grid;
  gap: 2px;
  margin: 2px 0 4px 21px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.nav-sub[hidden] {
  display: none;
}
.nav-sub-heading {
  margin: 8px 0 3px 10px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.nav-sub-heading:first-child {
  margin-top: 2px;
}
.nav-sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: var(--text-sm);
  text-decoration: none;
}
.nav-sublink:hover {
  background: var(--soft);
  color: var(--ink);
}
.nav-sublink.active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 500;
}
html[data-theme="dark"] .nav-sublink.active {
  color: #b2c9ff;
}
.nav-sub-count {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--soft);
  font-size: var(--text-sm);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.nav-sublink.active .nav-sub-count {
  background: transparent;
}
/* Unread count on a top-level link (Inbox). */
.nav-count {
  flex: none;
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  .nav-chevron {
    transition: none;
  }
}
/* Conversation limit: big stepper with presets */
.limit-field {
  display: grid;
  gap: 7px;
  font-size: var(--text-sm);
}
.limit-field > span {
  font-weight: 450;
}
.limit-field > .field-help {
  margin: -3px 0 3px;
}
.limit-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.limit-step {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: var(--text-lg);
  line-height: 1;
  transition: border-color 0.15s var(--ease);
}
.limit-step:hover:not(:disabled) {
  border-color: var(--blue);
}
.limit-step:disabled {
  opacity: 0.4;
}
.limit-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.limit-field .limit-stepper .limit-value input[name="capacity"] {
  width: 100%;
  max-width: 160px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.limit-value input::-webkit-inner-spin-button,
.limit-value input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.limit-field .limit-stepper .limit-value input[name="capacity"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 10px;
}
.limit-value small {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 550;
  letter-spacing: 0;
  text-transform: none;
}
.limit-presets {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.limit-presets button {
  padding: 8px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.limit-presets button:hover {
  border-color: var(--muted);
}
.limit-presets button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--ink);
}
@media (max-width: 420px) {
  .limit-presets {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Settings: shared helpers. */
.status-dot.warning {
  background: var(--warning);
}
.status-dot.danger {
  background: var(--danger);
}
.success-text {
  color: var(--green);
}
.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.button.ghost:hover {
  color: var(--ink);
}
.row.wrap {
  flex-wrap: wrap;
}
.settings-page {
  max-width: 1100px;
}

/* Settings › General: grouped rows with a save bar that appears on change. */
.settings-group + .settings-group {
  margin-top: 20px;
}
.settings-group-title {
  margin: 0 0 8px 2px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
/* Settings › Notifications: reply reminders sit below the channels. */
.settings-reminders {
  margin-top: 28px;
}
.settings-reminders > .field-help {
  margin: -4px 0 10px 2px;
}
.settings-row {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 18px 22px;
}
.settings-row + .settings-row {
  border-top: 1px solid var(--line);
}
.settings-row-label b {
  display: block;
  font-size: var(--text-md);
  font-weight: 600;
}
.settings-row-label span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.settings-row-control {
  min-width: 0;
}
.settings-bare-field {
  margin: 0;
}
.settings-timezone {
  display: flex;
  align-items: center;
  gap: 14px;
}
.settings-timezone .timezone-picker {
  flex: 1;
}
.settings-timezone .timezone-picker-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.settings-local-time {
  color: var(--muted);
  font-size: var(--text-sm);
  white-space: nowrap;
}
.settings-local-time b {
  color: var(--ink);
}
.settings-id code {
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}
.settings-role {
  background: var(--blue-soft);
  color: var(--blue);
}
.settings-setup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.settings-setup-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}
.settings-steps {
  display: flex;
  gap: 5px;
}
.settings-steps i {
  width: 24px;
  height: 6px;
  border-radius: 99px;
  background: var(--soft);
}
.settings-steps i.done {
  background: var(--blue);
}

/* Settings › Notifications: channel health, cards and the event grid. */
.settings-privacy {
  margin-top: 14px;
  max-width: 720px;
}
.settings-empty {
  padding: 28px;
}
.channel-connect {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.channel-health {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.channel-health > div {
  display: grid;
  gap: 6px;
  padding: 16px 22px;
}
.channel-health > div + div {
  border-left: 1px solid var(--line);
}
.channel-health strong {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.channel-health strong.is-failing {
  color: var(--danger);
}
.channel-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px 12px 18px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--danger) 9%, var(--surface));
}
.channel-alert p {
  flex: 1;
  margin: 0;
  font-size: var(--text-md);
}
.channel-alert p span {
  color: var(--muted);
}
.channel-alert .status-dot {
  width: 7px;
  height: 7px;
  flex: none;
}
.channel-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
  gap: 12px;
  margin-top: 14px;
}
.channel-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 96px auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.channel-card.is-paused {
  opacity: 0.72;
}
.channel-card-main h3 {
  margin: 0;
  overflow: hidden;
  font-size: var(--text-md);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.channel-status.is-failing {
  color: var(--danger);
}
.channel-status .status-dot {
  width: 6px;
  height: 6px;
  background: var(--muted);
}
.channel-status .status-dot.online {
  background: var(--green);
}
.channel-status .status-dot.danger {
  background: var(--danger);
}
.channel-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #4a154b;
  color: #fff;
  font-size: var(--text-md);
  font-weight: 600;
}
.channel-mark[data-provider="discord"] {
  background: #5865f2;
}
.channel-spark {
  width: 96px;
  height: 26px;
}
.channel-spark .spark-base {
  fill: var(--soft);
}
.channel-spark .spark-sent {
  fill: var(--blue);
  opacity: 0.8;
}
.channel-spark .spark-failed {
  fill: var(--danger);
}
.channel-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.channel-matrix-wrap {
  margin-top: 14px;
  overflow-x: auto;
}
.channel-matrix {
  width: 100%;
  border-collapse: collapse;
}
.dashboard-page .channel-matrix :is(th, td) {
  background: transparent;
  color: var(--ink);
  font-size: var(--text-md);
}
.channel-matrix :is(th, td) {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
  vertical-align: middle;
}
.channel-matrix tbody tr:last-child :is(th, td) {
  border-bottom: 0;
}
.dashboard-page .channel-matrix thead th {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
}
.channel-matrix thead .channel-mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  font-size: var(--text-sm);
}
.channel-matrix tbody th b {
  display: block;
  font-weight: 500;
}
.channel-matrix tbody th span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.channel-matrix .channel-col {
  width: 170px;
  text-align: center;
}
.channel-matrix thead .channel-col .row {
  justify-content: center;
  gap: 7px;
}
.channel-matrix input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}
.dashboard-page .channel-matrix-group th {
  padding: 8px 20px !important;
  background: var(--soft);
  color: var(--muted);
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.settings-checks {
  margin: 0;
  padding: 0;
  border: 0;
}
.settings-checks legend {
  margin-bottom: 6px;
  font-weight: 600;
}

/* Settings › Data & activity: activity log with the data tools alongside. */
.data-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}
.activity-head,
.data-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.activity-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.activity-head h2 {
  margin: 0;
  font-size: var(--text-md);
}
.activity-tools {
  display: flex;
  gap: 8px;
}
.activity-tools > .dh-select {
  width: 150px;
}
.dashboard-page .activity-search input {
  width: 210px;
  min-height: 34px;
  padding: 7px 10px;
  font-size: var(--text-sm);
}
.activity-table-wrap {
  overflow-x: auto;
}
.activity-table {
  width: 100%;
  border-collapse: collapse;
}
.dashboard-page .activity-table :is(th, td) {
  background: transparent;
  color: var(--ink);
  font-size: var(--text-md);
}
.dashboard-page .activity-table th {
  color: var(--muted);
  font-size: var(--text-sm);
}
.activity-table :is(th, td) {
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: var(--text-md);
}
.activity-table th {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
}
.activity-when {
  color: var(--muted);
  font-size: var(--text-sm) !important;
  white-space: nowrap;
}
.activity-who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.activity-who .avatar {
  width: 24px;
  height: 24px;
  font-size: var(--text-sm);
}
.activity-none {
  padding: 28px 20px !important;
  color: var(--muted);
  text-align: center !important;
}
.activity-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
}
.activity-foot .button[hidden] {
  display: none;
}
.data-side {
  display: grid;
  gap: 14px;
}
.data-card {
  padding: 16px 18px;
}
.data-card h3 {
  margin: 0;
  font-size: var(--text-md);
}
.data-card > .field-help {
  margin: 6px 0 6px;
}
.data-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: var(--text-md);
}
.data-item p {
  margin: 2px 0 0;
}
.data-item code {
  font-size: var(--text-sm);
}
@media (max-width: 980px) {
  .data-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .settings-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .settings-timezone,
  .settings-setup {
    flex-direction: column;
    align-items: stretch;
  }
  .channel-health {
    grid-template-columns: 1fr;
  }
  .channel-health > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .channel-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .channel-spark {
    display: none;
  }
  .activity-head {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard-page .activity-search input {
    width: 100%;
  }
}

/* Tablets get the slide-out sidebar too, so pages keep their full width. */
@media (min-width: 681px) and (max-width: 1024px) {
  .dashboard-page .app-shell:not(.is-setup) {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-page .app-shell:not(.is-setup) .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(310px, 86vw);
    padding: 22px 16px 12px;
    background: #f5f5f5;
    box-shadow: 8px 0 30px #26304412;
    transform: translateX(-103%);
    transition: transform 0.2s var(--ease);
  }
  .dashboard-page .app-shell:not(.is-setup) .sidebar.drawer-open {
    transform: translateX(0);
  }
  .dashboard-page .mobile-menu {
    display: inline-flex;
  }
}

/* Page layouts respond to the space the page actually has, not the window. */
.dashboard-page #main {
  container: main / inline-size;
}
.people-table-wrap,
.activity-table-wrap,
.channel-matrix-wrap {
  overflow-x: auto;
}
@container main (max-width: 1100px) {
  .data-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .data-side {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}
@container main (max-width: 900px) {
  .billing-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .billing-plan {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .billing-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
@container main (max-width: 720px) {
  .settings-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .settings-timezone,
  .settings-setup {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Sidebar status for pending work, e.g. unpublished widget changes.
   It sits on the sub-link when the group is open, on the group otherwise. */
.nav-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--warning) 13%, transparent);
  color: var(--warning);
  font-size: 10.5px;
  font-weight: 550;
  line-height: 1.5;
  white-space: nowrap;
}
.nav-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.nav-group.is-open .nav-link .nav-badge {
  display: none;
}

@container main (max-width: 560px) {
  .channel-add {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .channel-add .channel-connect {
    justify-content: stretch;
  }
  .channel-add .channel-connect .button {
    flex: 1;
  }
}

/* Support view is for answering customers: hide admin-only sidebar items. */
.app-shell[data-mode="support"] :is(#project-setup-card, .sidebar-help) {
  display: none !important;
}
.dashboard-page .app-shell[data-mode="support"]:not(.is-setup) .profile-footer {
  margin-top: auto;
}

/* Activity log: short title with a one-line description, and full details behind the info button. */
.activity-event b {
  display: block;
  font-weight: 550;
}
.activity-event span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.dashboard-page .activity-table .activity-actions-col {
  width: 56px;
  padding-left: 0;
  padding-right: 14px;
  text-align: right;
}
.activity-info {
  width: 32px;
  height: 32px;
  color: var(--muted);
}
.activity-info svg {
  width: 17px;
  height: 17px;
}
.activity-info:hover {
  color: var(--ink);
}
.activity-details {
  display: grid;
  gap: 14px;
}
.activity-details h3 {
  margin: 6px 0 0;
  font-size: var(--text-md);
}
.activity-details > p {
  margin: -4px 0 0;
}
.activity-detail-list {
  display: grid;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.activity-detail-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  padding: 9px 14px;
}
.activity-detail-row + .activity-detail-row {
  border-top: 1px solid var(--line);
}
.activity-detail-row dt {
  color: var(--muted);
}
.activity-detail-row dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.activity-details code {
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}
.activity-json {
  display: block;
  white-space: pre-wrap;
}
.activity-change-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.dashboard-page .activity-change-table :is(th, td) {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: var(--text-sm);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.dashboard-page .activity-change-table thead th {
  color: var(--muted);
  font-weight: 500;
}
.activity-change-table tbody tr:last-child :is(th, td) {
  border-bottom: 0;
}
.activity-change-table tbody th {
  width: 140px;
  font-weight: 500;
}

/* On narrow pages each activity row stacks: event and info button on top, when and who below. */
.activity-log {
  min-width: 0;
}
@container main (max-width: 600px) {
  .activity-table thead {
    display: none;
  }
  .activity-table,
  .activity-table tbody {
    display: block;
  }
  .activity-table tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "event event info"
      "when who who";
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
  }
  .dashboard-page .activity-table td {
    padding: 0;
    border: 0;
  }
  .activity-table td:nth-child(1) {
    grid-area: when;
  }
  .activity-table td:nth-child(2) {
    grid-area: who;
    min-width: 0;
    color: var(--muted);
    font-size: var(--text-sm);
  }
  .activity-table td:nth-child(3) {
    grid-area: event;
    min-width: 0;
  }
  .activity-table td:nth-child(4) {
    grid-area: info;
    width: auto;
  }
  .activity-table .activity-who .avatar {
    display: none;
  }
  .activity-table .activity-when::after {
    content: " ·";
  }
  .activity-table .activity-none {
    display: block;
  }
}

/* Every dashboard page fills the content area with the same small gutter, scaled to the
   screen. Out-specifies the per-page max-widths (Routing, Settings, Widget, Overview…). */
.dashboard-page .app-shell:not(.is-setup) .page-panel {
  max-width: none;
  margin: 0;
  padding: clamp(18px, 2.4vw, 34px) clamp(14px, 2vw, 32px) clamp(28px, 3vw, 44px);
}
/* Leave room for the floating save bar so it never covers the end of the page. */
.dashboard-page:has(.save-island.is-shown) .app-shell:not(.is-setup) .page-panel {
  padding-bottom: 104px;
}

/* Home: four live tiles, then a to-do list beside quick settings. No boxes inside boxes. */
.home-page .page-heading p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.home-hours.is-open {
  color: var(--green);
}
.home-tiles {
  --tile: color-mix(in srgb, var(--ink) 4%, var(--surface));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 28px;
}
html[data-theme="dark"] .home-tiles {
  --tile: #1b1b1f;
}
.home-tile {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--tile);
  color: var(--ink);
  text-align: left;
  font: inherit;
  transition: transform 0.2s var(--ease), background 0.2s ease;
}
button.home-tile:hover {
  background: color-mix(in srgb, var(--ink) 7%, var(--tile));
}
button.home-tile:active {
  transform: scale(0.98);
}
.home-tile-value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.home-tile-value em {
  font-style: normal;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}
.home-tile small {
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-sm);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.home-tile.is-hot {
  background: linear-gradient(160deg, color-mix(in srgb, var(--danger) 16%, var(--tile)), var(--tile) 70%);
}
.home-tile.is-hot .home-tile-value {
  color: var(--danger);
}
.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 32px;
}
.home-heading {
  margin: 0 0 6px;
  padding: 0 10px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
}
.home-todo {
  display: grid;
  gap: 2px;
}
.home-todo-row {
  --tone: var(--blue);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: var(--text-sm);
  transition: background 0.15s ease;
}
.home-todo-row:hover {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.home-todo-row.is-urgent {
  --tone: var(--danger);
}
.home-todo-row.is-warning {
  --tone: #d97706;
}
html[data-theme="dark"] .home-todo-row.is-warning {
  --tone: #fcd34d;
}
.home-todo-row.is-clear {
  --tone: var(--green);
}
.home-todo-badge {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--tone) 15%, transparent);
  color: var(--tone);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.home-todo-badge svg {
  width: 15px;
  height: 15px;
}
.home-todo-row p {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  column-gap: 8px;
  min-width: 0;
  margin: 0;
}
.home-todo-row strong {
  color: var(--ink);
  font-weight: 500;
}
.home-todo-row p span {
  color: var(--muted);
}
.home-todo-action {
  flex: none;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.home-todo-action:hover {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
}
html[data-theme="dark"] .home-todo-action {
  color: #a9bfff;
}
.home-settings-list {
  padding: 0 10px;
}
.home-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.home-setting:last-child {
  border-bottom: 0;
}
div.home-setting {
  cursor: default;
}
.home-setting strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
}
.home-setting small {
  color: var(--muted);
  font-size: var(--text-sm);
}
.home-setting input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.home-setting input:checked + .routing-switch-track {
  background: var(--blue);
}
.home-setting input:checked + .routing-switch-track::after {
  transform: translateX(13px);
}
.home-setting input:focus-visible + .routing-switch-track {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.home-setting input:disabled + .routing-switch-track {
  opacity: 0.5;
}

/* Analytics sub-pages. */
.analytics-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.analytics-tile,
.analytics-timing {
  padding: 18px;
}
.analytics-timings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.analytics-timing-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 12px;
  font-size: 28px;
  font-weight: 600;
}
.analytics-timing-value small {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
}
.analytics-timing dl {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 10px 0;
  border-block: 1px solid var(--line);
}
.analytics-timing dl div {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
}
.analytics-timing dt {
  color: var(--muted);
}
.analytics-timing dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.analytics-split-bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--soft);
}
.analytics-split-bar span {
  flex: 0 0 0;
  min-width: 2px;
}
.analytics-split .is-positive {
  background: var(--green);
}
.analytics-split .is-negative {
  background: var(--danger);
}
.analytics-split-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 12px 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.analytics-split-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 3px;
}
.analytics-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}
.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.analytics-table th,
.analytics-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.analytics-table thead th {
  color: var(--muted);
  font-weight: 500;
}
.analytics-table th:first-child {
  text-align: left;
  font-weight: 550;
}
.dashboard-page .analytics-table :is(th, td) {
  background: transparent;
}
.analytics-table tbody tr:last-child > * {
  border-bottom: 0;
}
@media (max-width: 1000px) {
  .home-columns,
  .analytics-timings {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 680px) {
  .home-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-tile-value {
    font-size: 22px;
  }
}
/* Header actions wrap instead of pushing the page wider than a phone. */
.dashboard-page .page-heading > .row {
  flex-wrap: wrap;
}

/* Team dialog: pickup as an inline switch; delete sits at the start of the footer. */
.people-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}
.people-mode-switch label {
  position: relative;
  cursor: pointer;
}
.people-mode-switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.people-mode-switch span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 550;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.people-mode-switch svg {
  width: 14px;
  height: 14px;
}
.people-mode-switch input:checked + span {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px #0000001f, 0 0 0 1px var(--line);
}
html[data-theme="dark"] .people-mode-switch input:checked + span {
  background: #2a2b30;
}
.people-mode-switch input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.people-mode-hint {
  margin: 8px 0 0;
  min-height: 3em;
}
.people-team-actions {
  align-items: center;
}
.people-delete-wrap {
  position: relative;
  margin-right: auto;
}
.button.danger-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-inline: 8px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--danger);
}
/* Text-style buttons have no edge, so the shell's button shadow would draw a stray line under them. */
.dashboard-page .app-shell:not(.is-setup) .button.danger-text {
  box-shadow: none;
}
.button.danger-text:hover,
.button.danger-text[aria-expanded="true"] {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}
.button.danger-text svg {
  width: 14px;
  height: 14px;
}
.people-delete-confirm {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 5;
  display: grid;
  gap: 10px;
  width: 300px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line));
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 40px #00000040;
  animation: appear 0.14s var(--ease);
}
.people-delete-confirm[hidden] {
  display: none;
}
.people-delete-confirm strong {
  font-size: var(--text-sm);
}
.people-delete-confirm p {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.people-delete-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
@media (max-width: 480px) {
  .people-team-actions {
    flex-wrap: wrap;
  }
  .people-delete-wrap {
    flex-basis: 100%;
  }
  .people-delete-confirm {
    width: min(300px, calc(100vw - 64px));
  }
}

/* Account dialog: a grouped rail (with expanding sub-pages) beside a layered page panel. */
.modal.account-modal {
  width: min(1040px, calc(100% - 28px));
  height: min(740px, calc(100dvh - 36px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 100px #0000004d, 0 0 0 1px var(--line);
}
.modal.account-modal .modal-heading {
  padding: 16px 20px 14px 22px;
}
.modal.account-modal #modal-body {
  flex: 1;
  min-height: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.account-dialog {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  height: 100%;
}
.account-rail {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--soft) 70%, var(--bg));
  overflow-y: auto;
}
/* One highlight marks the current page and travels from row to row (account.js places it). */
.account-rail-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  border-radius: 10px;
  background: var(--blue-soft);
  pointer-events: none;
}
.account-rail-pill.is-danger {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
}
.account-me {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px #0000000f;
}
.account-me-avatar,
.account-me-avatar > * {
  display: block;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
}
.account-me-avatar :is(img, svg) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-me-copy {
  display: grid;
  min-width: 0;
}
.account-me-copy b,
.account-me-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-me-copy small {
  color: var(--muted);
  font-size: var(--text-sm);
}
.account-rail-group {
  display: grid;
  gap: 2px;
}
.account-rail-title {
  margin: 12px 10px 4px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.account-rail-link,
.account-rail-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s, color 0.2s;
}
.account-rail-link > svg:first-child {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--muted);
  transition: color 0.2s;
}
.account-rail-link:hover,
.account-rail-sublink:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.account-rail-link.is-active {
  color: var(--blue);
  font-weight: 550;
}
.account-rail-link.is-active > svg:first-child {
  color: var(--blue);
}
.account-chevron {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--muted);
}
.account-count + .account-chevron {
  margin-left: 8px;
}
.account-rail-link[aria-expanded="true"] .account-chevron {
  transform: rotate(90deg);
}
.account-count {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: var(--text-sm);
  text-align: center;
}
.account-rail-sub {
  display: grid;
  gap: 1px;
  margin: 2px 0 4px 18px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.account-rail-sublink {
  padding: 7px 10px;
  color: var(--muted);
}
.account-rail-sublink.is-active {
  color: var(--blue);
  font-weight: 550;
}
.account-rail-link.is-danger {
  margin-top: auto;
  color: var(--danger);
}
.account-rail-link.is-danger > svg:first-child {
  color: var(--danger);
}
.account-rail-link.is-danger.is-active {
  color: var(--danger);
}
/* The rail moves the way the main sidebar does: the highlight and the chevron keep time with
   the groups sliding open and shut. */
@media (prefers-reduced-motion: no-preference) {
  .account-rail-pill {
    will-change: transform;
    transition:
      transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      background-color 0.2s;
  }
  .account-chevron {
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .account-rail-link.is-active > svg:first-child {
    animation: account-icon-in 0.36s var(--ease);
  }
  .account-rail-link:active > svg:first-child {
    transform: scale(0.88);
    transition: transform 0.1s, color 0.2s;
  }
  /* A page that loads at once never shows its placeholder. */
  .account-page-body > .skeleton {
    animation:
      shimmer 1.7s infinite,
      loading-reveal 0.2s ease 0.18s both;
  }
}
@keyframes account-icon-in {
  from {
    transform: scale(0.78);
  }
  55% {
    transform: scale(1.08);
  }
}
.account-panel {
  overflow-y: auto;
  background: var(--surface);
  container: account / inline-size;
}
.account-page-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 55%),
    var(--surface);
}
.account-page-head h2 {
  margin: 2px 0 4px;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}
.account-page-head p {
  margin: 0;
  color: var(--muted);
}
.account-page-head .account-crumb {
  color: var(--muted);
  font-size: var(--text-sm);
}
.account-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.account-summary {
  color: var(--muted);
  font-size: var(--text-sm);
}
.account-page-body {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px 28px 28px;
}
.account-form {
  display: grid;
  gap: 16px;
}
.account-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 2px #0000000d, 0 8px 24px -12px #0000001f;
  overflow: hidden;
}
html[data-theme="dark"] .account-card {
  background: color-mix(in srgb, var(--soft) 55%, var(--surface));
  box-shadow: 0 1px 0 #ffffff08 inset, 0 10px 30px -14px #00000080;
}
.account-card.is-danger {
  border-color: color-mix(in srgb, var(--danger) 40%, var(--line));
}
.account-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 15px 20px;
}
.account-row + .account-row,
.account-method + .account-method,
.account-device + .account-device,
.account-project + .account-project {
  border-top: 1px solid var(--line);
}
.account-row-label b {
  display: block;
  font-weight: 600;
}
.account-row-label span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.account-row-control {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
.account-row-control > .field,
.account-row-control > .account-split,
.account-row-control > .settings-timezone {
  flex: 1;
}
.account-bare {
  margin: 0;
}
.account-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-email {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-actions {
  display: flex;
  justify-content: flex-end;
}
.account-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(90% 140% at 0% 0%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 60%),
    radial-gradient(70% 120% at 100% 100%, color-mix(in srgb, var(--green) 10%, transparent), transparent 60%),
    var(--surface);
  box-shadow: 0 10px 30px -16px #0000004d;
}
.account-avatar {
  position: relative;
  flex: none;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  box-shadow: 0 0 0 4px var(--surface), 0 6px 16px #00000033;
  cursor: pointer;
}
.account-avatar-img,
.account-avatar-img > * {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
}
.account-avatar-img :is(img, svg) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-avatar-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  box-shadow: 0 2px 6px #00000026;
}
.account-avatar-edit svg {
  width: 13px;
  height: 13px;
}
.account-avatar:hover .account-avatar-edit {
  color: var(--ink);
}
.account-hero-copy {
  min-width: 0;
}
.account-hero-copy h3 {
  margin: 0;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}
.account-hero-copy p {
  margin: 2px 0 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.account-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip.success {
  color: var(--green);
}
.account-password {
  display: grid;
  gap: 14px;
  max-width: 460px;
  padding: 20px;
}
.account-method,
.account-device {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 20px;
}
.account-device.is-current {
  background: color-mix(in srgb, var(--green) 6%, transparent);
}
.account-method-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}
.account-method-icon svg {
  width: 18px;
  height: 18px;
}
.account-project {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 20px;
}
.account-project-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 30%, var(--surface)), var(--blue-soft));
  color: var(--blue);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 25%, transparent);
}
.account-project-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.account-owner {
  background: var(--blue-soft);
  color: var(--blue);
}
.account-project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.account-confirm-text {
  color: var(--danger);
}
.account-empty {
  padding: 20px;
}
.account-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.account-note svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.dashboard-page .account-switch input[type="checkbox"],
.dashboard-page .account-switch input[type="checkbox"]:checked {
  appearance: none;
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--line);
  background-image: none;
  cursor: pointer;
  transition: background-color 0.15s;
}
.dashboard-page .account-switch input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0000004d;
  transition: transform 0.18s var(--ease);
}
.dashboard-page .account-switch input[type="checkbox"]:checked {
  background-color: var(--blue);
}
.dashboard-page .account-switch input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}
.dashboard-page .account-switch input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.account-quiet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.account-quiet .field {
  width: 140px;
}
.account-themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  padding: 18px;
}
.account-theme {
  display: grid;
  gap: 12px;
  padding: 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.account-theme:hover {
  transform: translateY(-1px);
}
.account-theme[aria-checked="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 8px 20px -10px color-mix(in srgb, var(--blue) 60%, transparent);
}
.account-theme-copy {
  display: grid;
  gap: 2px;
  padding: 0 4px;
}
.account-theme-copy small {
  color: var(--muted);
  font-size: var(--text-sm);
}
.account-theme-preview {
  display: grid;
  grid-template-columns: 30% 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 86px;
  padding: 8px;
  border-radius: 10px;
  background: #f4f4f5;
}
.account-theme-preview i {
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 0 0 1px #e4e4e7;
}
.account-theme-preview i:first-child {
  grid-row: span 2;
  background: #e9eaee;
}
.account-theme-preview[data-preview="dark"] {
  background: #111113;
}
.account-theme-preview[data-preview="dark"] i {
  background: #1d1d20;
  box-shadow: 0 0 0 1px #2a2a2e;
}
.account-theme-preview[data-preview="dark"] i:first-child {
  background: #0b0b0c;
}
.account-theme-preview[data-preview="system"] {
  background: linear-gradient(135deg, #f4f4f5 50%, #111113 50%);
}
.account-theme-preview[data-preview="system"] i {
  background: color-mix(in srgb, #fff 50%, #1d1d20);
  box-shadow: none;
}
.account-danger {
  display: grid;
  gap: 16px;
  padding: 20px;
}
.account-danger-head {
  display: flex;
  gap: 12px;
}
.account-danger-head svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--danger);
}
.account-danger p {
  margin: 0;
}
.account-blockers {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--soft);
}
.account-blockers .row {
  justify-content: space-between;
}
.account-blockers .button {
  justify-self: start;
}
@container account (max-width: 600px) {
  .account-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .account-row-control {
    justify-content: flex-start;
  }
  .account-project {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .account-project-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .account-page-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 760px) {
  .modal.account-modal {
    height: calc(100dvh - 24px);
  }
  .account-dialog {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .account-rail {
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .account-me,
  .account-rail-title {
    display: none;
  }
  .account-rail-group,
  .account-rail-sub {
    display: flex;
    /* Kept at full width: the rail scrolls sideways instead of squeezing a group over its neighbour. */
    flex: none;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .account-rail-link,
  .account-rail-sublink {
    flex: none;
    width: auto;
  }
  .account-rail-link.is-danger {
    margin-top: 0;
  }
  .account-page-head,
  .account-page-body {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Install and User identity don't edit the draft, so publishing controls stay on Customize and Access. */
.analytics-team-note { margin: 0 0 12px; }
.account-row-label b .chip {
  display: inline-flex;
  margin: 0 0 0 6px;
  vertical-align: 1px;
}

/* Sidebar link list: the scrollbar hugs the sidebar's right edge and never squeezes the links.
   The list reaches into the sidebar's right padding; a thin, always-reserved gutter sits there. */
.dashboard-page .app-shell:not(.is-setup):not(.sidebar-collapsed) #main-nav {
  --nav-edge: 16px;
  --nav-bar: 6px;
  margin-right: calc(-1 * var(--nav-edge));
  padding-right: calc(var(--nav-edge) - var(--nav-bar));
  scrollbar-gutter: stable;
}
@supports selector(::-webkit-scrollbar) {
  .dashboard-page .app-shell:not(.is-setup) #main-nav {
    scrollbar-width: auto;
  }
  .dashboard-page .app-shell:not(.is-setup) #main-nav::-webkit-scrollbar {
    width: 6px;
  }
  .dashboard-page .app-shell:not(.is-setup) #main-nav::-webkit-scrollbar-track {
    background: transparent;
  }
  .dashboard-page .app-shell:not(.is-setup) #main-nav::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: color-mix(in srgb, var(--ink) 18%, transparent);
  }
  .dashboard-page .app-shell:not(.is-setup) #main-nav:hover::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--ink) 30%, transparent);
  }
}

/* Switches move smoothly and only dim if a save takes a moment, so quick saves don't blink. */
:is(.routing-switch-track, .look-switch span) {
  transition: background-color 0.2s var(--ease), opacity 0.2s ease;
}
:is(.routing-switch-track, .look-switch span)::after {
  transition: transform 0.22s var(--ease), box-shadow 0.2s ease;
}
:is(.home-setting, .routing-switch) input:disabled + .routing-switch-track,
.look-switch input:disabled + span {
  opacity: 0.55;
  transition: background-color 0.2s var(--ease), opacity 0.2s ease 0.35s;
}
.dashboard-page .account-switch input[type="checkbox"]:disabled {
  opacity: 0.55;
  transition: background-color 0.15s, opacity 0.2s ease 0.35s;
}
@media (prefers-reduced-motion: reduce) {
  :is(.routing-switch-track, .look-switch span),
  :is(.routing-switch-track, .look-switch span)::after {
    transition: none;
  }
}
.account-project-mark {
  overflow: hidden;
}
.account-project-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface);
}

/* Support Home: who is waiting on you first, your status and numbers beside it, then mentions and snoozes. */
.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr);
  gap: 16px;
  align-items: start;
}
.today-col {
  display: grid;
  gap: 16px;
}
.today-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  vertical-align: 1px;
}
/* Card content lines up with the 22px card headers. */
.today-list {
  list-style: none;
  margin: 0;
  padding: 8px;
}
.today-list li {
  animation: today-row-in 0.42s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes today-row-in {
  from { opacity: 0; transform: translateY(6px); }
}
.today-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.today-row:hover {
  background: var(--soft);
}
.today-row:active {
  transform: scale(0.995);
}
.today-row .avatar {
  width: 32px;
  height: 32px;
  flex: none;
  font-size: 12px;
}
.today-row-icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}
.today-row-icon svg {
  width: 15px;
  height: 15px;
}
.today-row-main {
  flex: 1;
  min-width: 0;
}
.today-row-main strong,
.today-row-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.today-row-main strong {
  font-size: var(--text-sm);
  font-weight: 560;
}
.today-row-main small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}
.today-wait {
  flex: none;
  font-size: 12px;
  font-weight: 560;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
}
.today-wait.is-long {
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  color: var(--warning);
}
.today-calm {
  margin: 16px 22px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(34, 160, 90, 0.1);
  color: #2b7a52;
  font-size: 12.5px;
  animation: today-row-in 0.4s var(--ease) both;
}
.today-calm strong {
  display: block;
  color: #17603b;
  font-size: 13px;
}
.today-calm .inbox-empty-ring {
  width: 30px;
  height: 30px;
  flex: none;
  fill: none;
  stroke: #23915a;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.today-calm .inbox-empty-ring circle {
  stroke-dasharray: 88;
  stroke-dashoffset: 88;
  animation: today-ring 0.9s 0.1s var(--ease) forwards;
}
.today-calm .inbox-empty-ring path {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: today-ring 0.45s 0.75s var(--ease) forwards;
}
@keyframes today-ring {
  to { stroke-dashoffset: 0; }
}
html[data-theme="dark"] .today-calm {
  background: rgba(95, 199, 156, 0.1);
  color: #8fd6b5;
}
html[data-theme="dark"] .today-calm strong {
  color: #b5ecd2;
}
html[data-theme="dark"] .today-calm .inbox-empty-ring {
  stroke: #5fc79c;
}
.today-quiet {
  margin: 0;
  padding: 18px 22px 20px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.today-me .home-setting {
  margin: 0;
  padding: 18px 22px;
  border-bottom: 0;
}
.today-teams {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
}
.today-teams small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}
.today-teams > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.today-team {
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 520;
}
.today-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 22px 22px;
}
.today-stat {
  padding: 14px;
  border-radius: 10px;
  background: var(--soft);
  animation: today-row-in 0.45s var(--ease) both;
}
.today-stat:nth-child(2) { animation-delay: 60ms; }
.today-stat:nth-child(3) { animation-delay: 120ms; }
.today-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.today-stat small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}
@media (max-width: 900px) {
  .today-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .today-list li, .today-calm, .today-stat { animation: none; }
  .today-calm .inbox-empty-ring circle, .today-calm .inbox-empty-ring path { animation: none; stroke-dashoffset: 0; }
}

/* Your team: the member's team roster beside who to ask for help and the other teams. */
.crew-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}
.crew-col {
  display: grid;
  gap: 16px;
}
.crew-team .surface-header small {
  color: var(--muted);
  font-size: 12.5px;
}
.crew-about,
.crew-note {
  margin: 0;
  padding: 16px 22px 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.crew-note strong {
  color: var(--ink);
  font-weight: 560;
}
.crew-you-lead {
  margin: 12px 22px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}
.crew-table {
  padding: 8px 0 6px;
}
.crew-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 210px) 64px;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  animation: today-row-in 0.42s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.crew-row + .crew-row {
  border-top: 1px solid var(--line);
}
.crew-head {
  padding-block: 8px;
  color: var(--muted);
  font-size: 12px;
  animation: none;
}
.crew-head > :last-child,
.crew-open {
  text-align: right;
}
.crew-open {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.crew-person,
.crew-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.crew-person > span:last-child,
.crew-mini > span:last-child {
  min-width: 0;
}
.crew-person strong,
.crew-mini strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 560;
}
.crew-person small,
.crew-mini small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crew-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
}
.crew-avatar > i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: #9aa1ac;
}
.crew-avatar > i.is-available {
  background: #22a05a;
}
.crew-avatar > i.is-away {
  background: var(--warning);
}
.crew-avatar > i.is-offline {
  background: var(--surface);
  box-shadow: inset 0 0 0 2px #9aa1ac;
}
/* Status: a dot and the label, with the reason and return time on a muted second line. */
.crew-status {
  display: grid;
  grid-template-columns: 8px 1fr;
  column-gap: 7px;
  align-items: center;
  justify-self: start;
  min-width: 0;
}
.crew-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a05a;
}
.crew-status.is-away::before {
  background: var(--warning);
}
.crew-status.is-offline::before {
  box-sizing: border-box;
  border: 2px solid #9aa1ac;
  background: transparent;
}
.crew-status strong {
  font-size: var(--text-sm);
  font-weight: 500;
}
.crew-status small {
  grid-column: 2;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.crew-help h4 {
  margin: 18px 22px 4px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.crew-list {
  list-style: none;
  margin: 0;
  padding: 4px 22px 18px;
}
.crew-help .crew-list {
  padding-bottom: 6px;
}
.crew-help .crew-list:last-child {
  padding-bottom: 20px;
}
.crew-mini {
  padding: 8px 0;
}
.crew-mini .crew-avatar {
  width: 30px;
  height: 30px;
}
.crew-others .crew-list {
  padding-top: 8px;
}
.crew-other {
  padding: 11px 0;
}
.crew-other + .crew-other {
  border-top: 1px solid var(--line);
}
.crew-other > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.crew-other strong {
  font-size: var(--text-sm);
  font-weight: 560;
}
.crew-other > div > span {
  flex: none;
  color: var(--muted);
  font-size: 12.5px;
}
.crew-other small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}
.crew-other .crew-led {
  color: var(--ink);
  opacity: 0.75;
}
.crew-empty {
  display: grid;
  gap: 4px;
  padding: 22px;
}
.crew-empty span {
  color: var(--muted);
  font-size: var(--text-sm);
}
@media (max-width: 900px) {
  .crew-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .crew-row { animation: none; }
}

/* ---------- Billing: file storage ---------- */
.storage-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1100px;
  margin-top: 14px;
  padding: 18px 20px;
}
.storage-panel p { margin: 0; }
.storage-total { font-size: var(--text-sm); color: var(--muted); }
.storage-total strong { font-size: var(--text-lg); font-weight: 600; color: var(--ink); }
.storage-bar {
  display: flex;
  gap: 2px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}
.storage-bar i { width: var(--width, 0); min-width: 0; transition: width 0.5s var(--ease); }
.storage-bar i:first-child { border-radius: 999px 0 0 999px; }
.is-images { background: #5f80e6; }
.is-pdfs { background: #e0785a; }
.is-text { background: #3fa37f; }
.storage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
}
.storage-legend li { display: inline-flex; align-items: center; gap: 6px; }
.storage-legend b { color: var(--ink); font-weight: 600; }
.storage-dot { width: 8px; height: 8px; border-radius: 3px; }
.storage-dot.is-free { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.storage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.storage-sources { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.storage-sources dt { font-size: 12px; color: var(--muted); }
.storage-sources dd { margin: 2px 0 0; font-weight: 600; font-size: var(--text-sm); }
.storage-trend { display: grid; gap: 4px; width: min(260px, 100%); }
.storage-trend svg { width: 100%; height: 36px; overflow: visible; }
.storage-trend polyline { fill: none; stroke: var(--blue); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.storage-panel.is-near_limit .storage-total strong { color: #b7791f; }
.storage-panel.is-limit .storage-total strong { color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .storage-bar i { transition: none; } }

/* Settings → General opens with the project's identity: its logo, name and where the logo comes from. */
.settings-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 4%, var(--surface));
}
html[data-theme="dark"] .settings-identity {
  background: #1b1b1f;
}
.settings-identity-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
}
.settings-identity-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: identity-logo-in 0.3s ease both;
}
@keyframes identity-logo-in {
  from { opacity: 0; transform: scale(0.94); }
}
.settings-identity-copy {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}
.settings-identity-copy strong {
  font-size: var(--text-md);
  font-weight: 600;
}
.settings-identity-copy span {
  color: var(--muted);
  font-size: var(--text-sm);
}
.settings-identity-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.settings-identity-actions .text-button {
  color: var(--muted);
  font-size: var(--text-sm);
}
@media (max-width: 680px) {
  .settings-identity {
    flex-wrap: wrap;
  }
  .settings-identity-actions {
    justify-content: flex-start;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .settings-identity-logo img {
    animation: none;
  }
}

.settings-row-label a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
/* Settings › Email › Customer emails: numbered steps. Pick a mode, see the one email it sends, let an inbox pick its own. */
.ce-card { padding: 6px 22px 22px; }
.ce-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.ce-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 14px 18px; padding: 18px 0 20px; }
.ce-step + .ce-step { border-top: 1px solid var(--line); }
.ce-step-num { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border: 1.5px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.ce-step-label b { display: block; font-size: var(--text-md); font-weight: 600; }
.ce-step-label span { display: block; margin-top: 2px; color: var(--muted); font-size: var(--text-sm); }
.ce-step-control { display: grid; grid-column: 2; gap: 10px; min-width: 0; }
.ce-step-control > * { min-width: 0; }
.ce-badge { padding: 1px 7px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 11.5px; font-style: normal; font-weight: 600; }
.ce-preview-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: -4px; font-size: 12px; }
.ce-preview-cap > span:first-child { color: var(--ink); font-weight: 600; }
.ce-preview-cap > span:last-child { min-width: 0; color: var(--muted); text-align: right; }
.ce-frame { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ce-inbox-text { display: grid; gap: 3px; min-width: 0; }
.ce-inbox-text b { font-weight: 600; }
.ce-inbox-text > span { color: var(--muted); }
@keyframes ce-fade { from { opacity: 0; } to { opacity: 1; } }
.ce-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ce-mode { display: grid; align-content: start; gap: 8px; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease; }
.ce-mode:hover { border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.ce-mode:has(input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 6%, transparent); box-shadow: 0 0 0 1px var(--blue); }
.ce-mode:has(input:focus-visible) { outline: 2px solid var(--ring, var(--blue)); outline-offset: 2px; }
.ce-mode-top { display: flex; align-items: center; justify-content: space-between; height: 32px; margin-bottom: 4px; }
.ce-mode-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--soft); color: var(--muted); transition: background-color 0.2s ease, color 0.2s ease; }
.ce-mode-icon svg { width: 17px; height: 17px; }
.ce-mode:has(input:checked) .ce-mode-icon { background: var(--blue-soft); color: var(--blue); }
.ce-mode-title { display: flex; align-items: center; gap: 10px; min-height: 22px; }
.ce-mode-title input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.ce-mode-title input:focus, .ce-mode-title input:focus-visible { outline: none; box-shadow: none; }
.ce-mode-title b { font-size: var(--text-md); font-weight: 600; }
.ce-mode-desc { padding-left: 26px; color: var(--muted); font-size: var(--text-sm); line-height: 1.45; }
/* A mode that can't be turned on yet: dimmed, with what's missing in plain words. */
.ce-mode.is-blocked { cursor: not-allowed; }
.ce-mode.is-blocked:hover { border-color: var(--line); }
.ce-mode.is-blocked :is(.ce-mode-top, .ce-mode-title, .ce-mode-desc) { opacity: 0.5; }
.ce-mode-why { display: flex; align-items: flex-start; gap: 6px; margin-top: 2px; padding-left: 26px; color: var(--ink); font-size: 12.5px; line-height: 1.45; }
.ce-mode-why svg { flex: none; width: 13px; height: 13px; margin-top: 2px; color: var(--muted); }
.ce-paused { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 10px 12px 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--ink) 2.5%, transparent); font-size: var(--text-sm); line-height: 1.45; animation: ce-fade 0.25s ease both; }
.ce-paused > svg { flex: none; width: 16px; height: 16px; color: var(--warning); }
.ce-paused > span { flex: 1; }
.ce-paused .button { flex: none; }
/* One preview: the three emails share one cell, so switching cross-fades without the height jumping. */
.ce-swap { display: grid; }
.ce-swap > [data-pane] { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.3s; }
.ce-swap > [data-pane].is-on { opacity: 1; visibility: visible; transition: opacity 0.3s ease 0.08s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s, visibility 0s; }
.ce-stage > [data-pane] { display: flex; flex-direction: column; padding: 16px 18px 18px; transform: translateY(6px); }
.ce-stage > [data-pane].is-on { transform: none; }
.ce-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 4%, var(--surface)); color: var(--muted); font-size: 11.5px; }
.ce-bar i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 20%, transparent); }
.ce-bar span { margin-left: 8px; }
.ce-ava { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #2f63e8; color: #fff; font-size: 12.5px; font-weight: 700; }
.ce-from { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ce-from > span:nth-child(2) { display: grid; gap: 1px; min-width: 0; }
.ce-from b { font-size: 13px; font-weight: 600; }
.ce-from small { overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.ce-time { color: var(--muted); font-size: 12px; }
.ce-subject { margin: 12px 0 10px; font-size: 14px; font-weight: 600; }
.ce-paper { display: flex; flex-direction: column; min-height: 176px; padding: 16px 18px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 5%, var(--surface)); font-size: 12.5px; line-height: 1.5; }
.ce-paper.is-note { align-items: center; justify-content: center; gap: 6px; text-align: center; }
.ce-paper strong { font-size: 14px; font-weight: 600; }
.ce-muted { color: var(--muted); font-size: 12px; }
.ce-btn { display: inline-flex; align-items: center; height: 30px; margin-top: 8px; padding: 0 14px; border-radius: 7px; background: #2f63e8; color: #fff; font-size: 12.5px; font-weight: 600; }
.ce-foot { margin-top: auto; padding-top: 10px; color: var(--muted); font-size: 11px; }
.ce-foot u { text-underline-offset: 2px; }
.ce-paper.is-note .ce-foot { margin-top: 10px; padding-top: 0; }
.ce-above { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.ce-above::before, .ce-above::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ce-who { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11.5px; }
.ce-who b { color: var(--ink); font-weight: 600; }
.ce-file { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; height: 26px; margin-top: 10px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 11.5px; }
.ce-file svg { width: 12px; height: 12px; color: var(--muted); }
.ce-stage > .ce-empty { align-items: center; justify-content: center; gap: 4px; text-align: center; }
.ce-empty-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; background: var(--soft); color: var(--muted); }
.ce-empty-icon svg { width: 20px; height: 20px; }
.ce-empty b { font-size: 14px; font-weight: 600; }
.ce-empty > span:last-child { color: var(--muted); font-size: var(--text-sm); }
.ce-frame-foot { padding: 11px 18px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 2.5%, transparent); color: var(--muted); font-size: 12.5px; }
.ce-frame-foot > span { display: flex; align-items: center; gap: 8px; }
.ce-frame-foot svg { flex: none; width: 14px; height: 14px; color: var(--blue); }
/* Inboxes that pick their own. */
.ce-inboxes { border: 1px solid var(--line); border-radius: 10px; }
.ce-inbox { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: 18px; padding: 12px 12px 12px 16px; }
.ce-inbox + .ce-inbox { border-top: 1px solid var(--line); }
.ce-inbox-text b { font-size: var(--text-sm); }
.ce-inbox-text > span { font-size: 12.5px; }
.ce-inbox.is-own .ce-inbox-text > span { color: var(--blue); }
/* Under the steps: the started-by-email rule and the rules every email follows. */
.ce-after { display: grid; gap: 10px; padding: 4px 0 0 42px; }
.ce-started { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
.ce-started svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--blue); }
.ce-started b { color: var(--ink); font-weight: 500; }
.ce-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12.5px; }
.ce-facts li { display: inline-flex; align-items: center; gap: 7px; }
.ce-facts svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .ce-swap > [data-pane] { transform: none !important; transition-duration: 0s !important; } }
@media (max-width: 900px) { .ce-modes { grid-template-columns: 1fr; } .ce-inbox { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .ce-card { padding-inline: 16px; } }
@media (prefers-reduced-motion: reduce) { .ce-paused { animation: none; } }

/* Copy from…: a dropdown under the button. Pick an inbox, tick what to copy. */
/* A drawn box stands in for the hidden checkbox so it matches the menu. */

/* Inboxes page: one row per inbox with its widget colour, status, email and where its chats go. */
.ix-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ix);
  color: #fff;
}
.ix-mark svg {
  width: 18px;
  height: 18px;
}
.ix-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-sm);
  white-space: nowrap;
}
.ix-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.6;
}
.ix-status.is-on i {
  background: var(--green);
  opacity: 1;
}
.ix-status.is-warn i {
  background: #d08a12;
  opacity: 1;
}
.ix-channels {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ix-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.ix-email svg {
  flex: none;
  width: 13px;
  height: 13px;
}
.ix-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 10px 3px 3px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}
.ix-pill.is-ai,
.ix-pill.is-menu {
  padding-left: 9px;
}
.ix-pill > svg {
  width: 13px;
  height: 13px;
}
.ix-pill.is-ai {
  border-color: color-mix(in srgb, var(--blue) 25%, transparent);
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  color: var(--blue);
}
.ix-pill.is-menu {
  border-color: color-mix(in srgb, #7c5cd6 30%, transparent);
  background: color-mix(in srgb, #7c5cd6 9%, transparent);
  color: #6a47c7;
}
html[data-theme="dark"] .ix-pill.is-menu {
  color: #b9a4f5;
}
.ix-team {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 99px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
.ix-team svg {
  width: 11px;
  height: 11px;
}

/* People picker (admin-people.js peoplePicker): chips for who's chosen and a search box in one
   field; the list is a dropdown floating in the top layer, so the dialog never clips it. */
#modal:has(.pp-form) {
  width: min(640px, calc(100% - 28px));
}
.pp-form {
  gap: 18px;
}
.pp-field {
  display: grid;
  gap: 7px;
}
.pp-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: var(--text-sm);
  font-weight: 550;
}
.pp-label small {
  color: var(--muted);
  font-weight: 450;
}
.pp-field .field-help {
  margin: 0;
}
.pp {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.pp:focus-within {
  border-color: color-mix(in srgb, var(--ink) 22%, var(--line));
}
.pp-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  cursor: text;
}
.pp-chips {
  display: contents;
}
.pp-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  height: 30px;
  padding: 0 5px 0 4px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--soft);
  font-size: var(--text-sm);
  font-weight: 500;
}
.pp-chip > span:not(.pp-face) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-chip button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.pp-chip button:hover {
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--ink);
}
.pp-chip button svg {
  width: 13px;
  height: 13px;
  transform: rotate(45deg);
}
.pp-search {
  display: flex;
  flex: 1 1 160px;
  align-items: center;
  gap: 7px;
  min-width: 140px;
  padding-left: 4px;
  color: var(--muted);
}
.pp-search svg {
  flex: none;
  width: 15px;
  height: 15px;
}
.pp-search input:not(#_) {
  flex: 1;
  min-width: 0;
  height: 28px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: var(--text-sm);
  outline: none;
}
.pp-list {
  position: fixed;
  inset: auto;
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 44px #0f172a33, 0 2px 8px #0f172a1a;
}
.pp-list:popover-open {
  display: grid;
  gap: 2px;
  align-content: start;
  animation: pp-in 0.14s var(--ease);
}
.pp-list.is-up:popover-open {
  animation-name: pp-in-up;
}
@keyframes pp-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@keyframes pp-in-up {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.pp-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.pp-option:hover,
.pp-option.is-active {
  background: var(--soft);
}
.pp-option[aria-selected="true"] {
  background: color-mix(in srgb, var(--blue) 8%, transparent);
}
.pp-option[aria-selected="true"]:hover,
.pp-option[aria-selected="true"].is-active {
  background: color-mix(in srgb, var(--blue) 13%, transparent);
}
.pp-face.team-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-color: var(--surface);
}
.pp-face.is-xs {
  width: 22px;
  height: 22px;
  border-width: 0;
}
.pp-face.is-xs i {
  display: none;
}
.pp-who {
  display: grid;
  flex: 1;
  gap: 1px;
  min-width: 0;
}
.pp-who .pp-also {
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}
.pp-who strong {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  font-size: var(--text-sm);
  font-weight: 550;
  white-space: nowrap;
}
.pp-who small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-you {
  padding: 0 6px;
  border-radius: 99px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.pp-meta {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.pp-role {
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 500;
}
.pp-role.is-admin {
  background: var(--blue-soft);
  color: var(--blue);
}
.pp-load {
  min-width: 62px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.pp-load.is-full {
  color: var(--warning);
}
.pp-state {
  min-width: 42px;
  color: var(--muted);
  text-align: right;
}
.pp-state.is-on {
  color: #2fb37c;
}
.pp-check {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid color-mix(in srgb, var(--muted) 50%, var(--line));
  border-radius: 6px;
  color: transparent;
  transition: background 0.12s var(--ease), border-color 0.12s var(--ease), color 0.12s var(--ease);
}
.pp-check svg {
  width: 13px;
  height: 13px;
}
.pp-option[aria-selected="true"] .pp-check {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.pp-empty {
  margin: 0;
  padding: 16px 8px;
  color: var(--muted);
  font-size: var(--text-sm);
  text-align: center;
}
@media (max-width: 560px) {
  .pp-load,
  .pp-state {
    display: none;
  }
}
