/* Dense daily care queue and shared workspace membership. */
#password-change {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--background, #f8fafc);
}
#password-change[hidden] {
  display: none;
}
#password-change-form {
  width: min(100%, 440px);
  display: grid;
  gap: 14px;
  margin: 0;
}
#password-change-form h1 {
  font-size: 22px;
}
#password-change-form label,
#member-form > label {
  display: grid;
  gap: 6px;
}
#password-change-form .modal-actions,
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.team-table,
.queue-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.team-table th,
.team-table td,
.queue-table th,
.queue-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  vertical-align: middle;
}
.team-table th,
.queue-table th {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary, #788399);
  white-space: nowrap;
  background: var(--surface-soft, #f9fafb);
}
.team-table td:first-child .member-name > span,
.queue-table td:nth-child(3) > span.muted {
  display: block;
  margin-top: 3px;
}
#member-list {
  overflow-x: auto;
  padding: 0;
}
.member-accounts {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 12px;
  margin: 16px 0;
}
.member-accounts legend {
  font-size: 12px;
  font-weight: 600;
  padding: 0 5px;
}
#member-accounts {
  display: grid;
  gap: 10px;
  max-height: 210px;
  overflow: auto;
}
#member-form .check {
  display: flex;
  align-items: center;
  gap: 8px;
}
#member-form .check input,
.queue-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  flex: none;
  accent-color: #1b74ed;
}
.task-queue {
  padding: 0 !important;
  overflow: hidden;
}
.task-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.task-summary > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 18px;
  border-right: 1px solid var(--border, #e5e7eb);
  font-size: 12px;
  color: var(--text-secondary, #788399);
}
.task-summary strong {
  font-size: 21px;
  color: var(--foreground, #14233d);
  font-variant-numeric: tabular-nums;
}
.task-summary .overdue strong {
  color: #df4854;
}
.queue-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 10px;
}
.queue-toolbar > input {
  flex: 1 1 200px;
  min-width: 160px;
}
.queue-toolbar select {
  width: auto;
  max-width: 210px;
}
.queue-toolbar input,
.queue-toolbar select {
  height: 34px;
  min-height: 34px;
  font-size: 12px;
  margin: 0;
}
.queue-date {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--text-secondary, #788399);
  white-space: nowrap;
  margin: 0;
}
.queue-date input {
  width: 135px;
}
.queue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}
.queue-modes {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.queue-modes button {
  font-size: 12px;
  min-height: 30px;
  padding: 4px 10px;
}
.queue-modes button.active {
  background: #e9f2ff;
  color: #1b74ed;
  border-color: #b7d3ff;
}
#task-results {
  overflow-x: auto;
  min-height: 140px;
}
.queue-table {
  min-width: 800px;
}
.queue-table td:nth-child(3) {
  min-width: 190px;
  max-width: 340px;
  overflow-wrap: anywhere;
}
.queue-table td:nth-child(3) > strong {
  font-weight: 600;
}
.queue-table .task-priority {
  font-size: 10px;
  margin-left: 6px;
}
.queue-table select {
  font-size: 12px;
  min-height: 30px;
  width: 115px;
  margin: 0;
}
.queue-table td:first-child,
.queue-table th:first-child {
  width: 35px;
  padding-right: 0;
}
.queue-due {
  font-size: 12px;
  white-space: nowrap;
}
.queue-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.queue-actions button {
  font-size: 11px;
  min-height: 28px;
  padding: 0;
  white-space: nowrap;
}
.queue-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 16px;
  font-size: 12px;
  border-top: 1px solid var(--border, #e5e7eb);
}
.queue-pagination button {
  min-height: 30px;
  padding: 4px 12px;
}
#task-bulk-bar {
  padding: 8px 16px;
  background: var(--surface-soft, #f4f8ff);
  font-size: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
#task-bulk-bar[hidden] {
  display: none;
}
#task-bulk-bar button {
  min-height: 28px;
  padding: 3px 9px;
  font-size: 12px;
}
.queue-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
  padding: 14px;
}
.queue-board > div {
  background: var(--surface-soft, #f8fafc);
  padding: 10px;
  border-radius: 8px;
}
.queue-board h3 {
  font-size: 13px;
  margin: 0 0 12px;
}
.queue-board-card {
  padding: 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  margin-bottom: 10px;
  background: var(--surface, #fff);
}
#task-results > p {
  margin: 16px;
}
[data-page="tasks"] > .page-heading,
[data-page="members"] > .page-heading {
  margin-bottom: 16px;
}
[data-page="tasks"] > .page-heading h1,
[data-page="members"] > .page-heading h1 {
  font-size: 23px;
}
html.dark .queue-modes button.active {
  background: #142b4a;
  color: #70afff;
  border-color: #275281;
}
html.dark .task-summary strong {
  color: #e2e8f0;
}
html.dark .task-summary .overdue strong {
  color: #fb7185;
}
html.dark .queue-table th,
html.dark .team-table th,
html.dark .queue-board > div,
html.dark #task-bulk-bar {
  background: #18212f;
}
html.dark .queue-board-card {
  background: #131b29;
}
@media (max-width: 767px) {
  .task-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .task-summary > div {
    padding: 10px 12px;
    font-size: 11px;
  }
  .task-summary strong {
    font-size: 19px;
  }
  .queue-toolbar {
    padding: 12px;
    gap: 7px;
  }
  .queue-toolbar > input {
    flex-basis: 100%;
  }
  .queue-toolbar > select {
    flex: 1 1 145px;
    max-width: none;
    min-width: 0;
  }
  .queue-date {
    flex: 1 1 145px;
  }
  .queue-date input {
    width: 100%;
    min-width: 0;
  }
  .queue-heading {
    padding: 0 12px 12px;
  }
  .queue-modes button {
    font-size: 11px;
    padding: 4px 8px;
  }
  .queue-pagination {
    justify-content: center;
  }
  .queue-table {
    min-width: 0;
    display: block;
  }
  .queue-table thead {
    display: none;
  }
  .queue-table tbody {
    display: block;
  }
  .queue-table tr {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px 8px;
    padding: 12px;
    border-top: 1px solid var(--border, #e5e7eb);
  }
  .queue-table td {
    padding: 0;
    border: 0;
    min-width: 0 !important;
    max-width: none !important;
  }
  .queue-table td:first-child {
    width: auto;
    grid-row: 1/6;
    padding-top: 3px;
  }
  .queue-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
    font-size: 11px;
  }
  .queue-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }
  .queue-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
    font-size: 12px;
    color: var(--text-secondary, #788399);
  }
  .queue-table td:nth-child(5) {
    grid-column: 2;
    grid-row: 4;
  }
  .queue-table td:nth-child(6) {
    grid-column: 2;
    grid-row: 5;
  }
  .queue-table td:nth-child(3) > span.muted {
    font-size: 11px;
  }
  .queue-board {
    grid-template-columns: repeat(3, 240px);
  }
  [data-page="members"] .page-heading,
  [data-page="tasks"] .page-heading {
    gap: 10px;
    align-items: flex-start;
  }
  [data-page="members"] .page-heading p,
  [data-page="tasks"] .page-heading p {
    font-size: 12px;
  }
  .team-table {
    min-width: 580px;
  }
}
@media (max-width: 767px) {
  [data-page="tasks"] > .page-heading {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  [data-page="tasks"] > .page-heading h1 {
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
  }
  [data-page="tasks"] > .page-heading p {
    display: none;
  }
  [data-page="tasks"] > .page-heading button {
    font-size: 11px;
    padding: 7px 10px;
    white-space: nowrap;
  }
  .queue-table tr {
    grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px 8px;
  }
  .queue-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
    white-space: normal;
  }
  .queue-table td:nth-child(3) {
    grid-column: 2/4;
    grid-row: 1;
  }
  .queue-table td:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
    overflow-wrap: anywhere;
  }
  .queue-table td:nth-child(5) {
    grid-column: 2/4;
    grid-row: 3;
  }
  .queue-table td:nth-child(6) {
    grid-column: 2/4;
    grid-row: 4;
  }
}
/* A compact task toolbar, with optional conditions in a focused dialog. */
#task-queue .task-summary {
  gap: 0;
  background: var(--surface);
}
#task-queue .queue-summary-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: left;
  box-shadow: none;
}
#task-queue .queue-summary-item:last-child {
  border-right: 0;
}
#task-queue .queue-summary-item > .control-glyph {
  font-size: 17px;
  opacity: 0.8;
}
#task-queue .queue-summary-item > strong {
  font-size: 18px;
  line-height: 24px;
  margin-left: auto;
  color: var(--text);
}
#task-queue .queue-summary-item.overdue > strong {
  color: var(--danger, #df4854);
}
#task-queue .queue-summary-item:hover {
  background: var(--surface-hover);
}
#task-queue .queue-summary-item.active {
  color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 -2px var(--brand);
}
#task-queue .queue-toolbar {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 210px auto;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 12px;
}
.queue-search {
  position: relative;
  min-width: 0;
  max-width: 420px;
}
.queue-search > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 1;
}
#task-queue .queue-search input {
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 7px 32px 7px 35px;
  font-size: 12px;
  border-radius: 7px;
  background: var(--surface-soft);
}
#task-queue #task-due-filter {
  width: 210px;
  max-width: 100%;
  min-height: 36px;
  height: 36px;
  margin: 0;
  font-size: 12px;
  border-radius: 7px;
}
#task-queue .queue-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--input);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}
.queue-filter-button > i {
  font-size: 16px;
  color: var(--text-secondary);
}
#task-queue .queue-filter-button.has-filters {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 32%, var(--border));
  background: var(--brand-soft);
}
#task-filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
#task-filter-count[hidden] {
  display: none;
}
#task-queue .queue-heading {
  padding: 0 18px 12px;
  min-height: 44px;
  gap: 12px;
}
#task-queue .queue-modes {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px;
}
#task-queue .queue-modes button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  height: 28px;
  margin: 0;
  padding: 4px 10px;
  background: transparent;
  color: var(--text-secondary);
  border: 0;
  border-radius: 5px;
  font-size: 11px;
  box-shadow: none;
  white-space: nowrap;
}
#task-queue .queue-modes button > i {
  font-size: 14px;
}
#task-queue .queue-modes button.active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 1px 3px #07143712;
}
#task-progress {
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
}
#task-queue .queue-active-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 18px 12px;
  border-bottom: 1px solid var(--border);
}
#task-queue .queue-active-filters[hidden] {
  display: none;
}
#task-queue .queue-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 260px;
  min-height: 26px;
  padding: 3px 7px;
  margin: 0;
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--text);
}
.queue-filter-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-filter-chip > .control-glyph {
  font-size: 11px;
  color: var(--text-secondary);
}
#task-queue .queue-reset-filters {
  min-height: 26px;
  padding: 3px 5px;
  font-size: 11px;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
}
#task-queue .queue-reset-filters:hover {
  color: var(--brand);
}
#task-filter-form-dialog {
  width: min(420px, calc(100vw - 24px));
}
#task-filter-form-dialog .form-modal-body {
  padding: 18px 20px 8px;
}
#task-filter-form > p:first-child {
  margin: 0 0 18px;
}
#task-filter-form .task-filter-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}
#task-filter-form .mt-field {
  min-width: 0;
}
#task-filter-form .kt-select,
#task-filter-form .kt-input {
  width: 100%;
  min-width: 0;
}
#task-filter-form .task-filter-hint {
  font-size: 11px;
  line-height: 18px;
  margin: -4px 0 8px;
  color: var(--text-secondary);
}
#task-filter-form-dialog .form-modal-footer #task-filter-reset {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}
#task-queue .queue-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px 20px;
  min-height: 180px;
  text-align: center;
}
.queue-empty > .control-glyph {
  font-size: 25px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.queue-empty > strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.queue-empty > p {
  font-size: 12px;
  line-height: 18px;
  margin: 0;
  max-width: 360px;
  color: var(--text-secondary);
}
.queue-empty button {
  font-size: 12px;
  min-height: 32px;
  margin-top: 4px;
}
.queue-pagination[hidden] {
  display: none;
}
@media (max-width: 767px) {
  #task-queue .queue-summary-item {
    min-height: 40px;
    padding: 8px 12px;
    gap: 6px;
    font-size: 11px;
  }
  #task-queue .queue-summary-item > .control-glyph {
    font-size: 14px;
  }
  #task-queue .queue-summary-item > strong {
    font-size: 16px;
    line-height: 20px;
  }
  #task-queue .queue-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
    gap: 8px;
  }
  #task-queue .queue-search {
    grid-column: 1/-1;
    max-width: none;
  }
  #task-queue .queue-search input {
    font-size: 16px;
    height: 42px;
    min-height: 42px;
  }
  #task-queue #task-due-filter {
    width: 100%;
    height: 42px;
    min-height: 42px;
    font-size: 13px;
  }
  #task-queue .queue-filter-button {
    height: 42px;
    min-height: 42px;
    font-size: 13px;
    padding: 8px 12px;
  }
  #task-queue .queue-heading {
    padding: 0 12px 12px;
    gap: 6px;
  }
  #task-queue .queue-modes {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.2fr;
  }
  #task-queue .queue-modes button {
    min-height: 34px;
    height: 34px;
    padding: 4px;
    font-size: 10px;
    gap: 4px;
  }
  #task-queue .queue-active-filters {
    padding: 0 12px 10px;
  }
  #task-queue .queue-filter-chip,
  #task-queue .queue-reset-filters {
    min-height: 32px;
  }
  #task-filter-form-dialog .form-modal-body {
    padding: 14px 16px 6px;
  }
}
/* Member page alignment, including its first-use state. */
[data-page="members"] .member-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
}
[data-page="members"] .member-page-heading h1 {
  margin: 0 0 5px;
  line-height: 1.3;
  font-size: 23px;
}
[data-page="members"] .member-page-heading p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}
#member-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  min-height: 36px;
  white-space: nowrap;
}
#member-list {
  padding: 0;
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.member-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.member-list-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.member-list-title h2 {
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  margin: 0;
}
.member-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1;
}
.member-list-heading > .small {
  font-size: 11px;
  white-space: nowrap;
}
.member-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  gap: 10px;
  text-align: center;
  min-height: 236px;
}
.member-empty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.member-empty-icon > .control-glyph {
  font-size: 24px;
}
.member-empty-state h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  margin: 0;
  color: var(--text);
}
.member-empty-state p {
  font-size: 12px;
  line-height: 20px;
  color: var(--text-secondary);
  max-width: 370px;
  margin: 0;
}
body .member-empty-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 12px;
  margin-top: 6px;
  font-size: 12px;
  border-radius: 6px;
}
.member-empty-create > .control-glyph {
  font-size: 14px;
}
.member-permission-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 18px;
}
.member-permission-note > .control-glyph {
  font-size: 15px;
  margin-top: 1px;
}
#member-list .team-table {
  table-layout: fixed;
  min-width: 0;
  width: 100%;
  margin: 0;
}
#member-list .team-table th,
#member-list .team-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
#member-list .team-table tr:last-child td {
  border-bottom: 0;
}
#member-list .team-table th:nth-child(1) {
  width: 36%;
}
#member-list .team-table th:nth-child(2) {
  width: 30%;
}
#member-list .team-table th:nth-child(3) {
  width: 24%;
}
#member-list .team-table th:nth-child(4) {
  width: 10%;
}
#member-list .team-table td:first-child .member-name > span {
  margin-top: 0;
}
.member-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.member-avatar {
  line-height: 1;
  text-align: center;
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}
.member-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.member-name strong {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.member-name > .small {
  display: block;
  font-size: 11px;
  line-height: 16px;
  overflow-wrap: anywhere;
}
.member-assignment-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.member-account-chip {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 7px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 11px;
  line-height: 18px;
  color: var(--text);
}
.member-state {
  display: inline-block;
  padding: 3px 7px;
  font-size: 11px;
  line-height: 18px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--text-secondary);
}
.member-state.active {
  background: var(--success-bg);
  color: var(--success);
}
.member-state.pending {
  background: var(--brand-soft);
  color: var(--brand);
}
.member-action-cell {
  text-align: right;
}
#member-list .team-table button {
  position: relative;
  min-height: 32px;
  margin: 0;
}
.member-mobile-caption {
  display: none;
}
@media (max-width: 767px) {
  [data-page="members"] .member-page-heading {
    gap: 10px;
    align-items: start;
  }
  [data-page="members"] .member-page-heading h1 {
    font-size: 21px;
    margin: 0 0 4px;
  }
  [data-page="members"] .member-page-heading p {
    font-size: 11px;
    line-height: 18px;
    max-width: 200px;
  }
  #member-create {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .member-list-heading {
    padding: 12px;
    gap: 8px;
  }
  .member-list-title h2 {
    font-size: 12px;
  }
  .member-list-heading > .small {
    font-size: 10px;
  }
  .member-empty-state {
    padding: 28px 18px;
    min-height: 250px;
  }
  .member-empty-state p {
    font-size: 12px;
    max-width: 280px;
  }
  body .member-empty-create {
    min-height: 42px;
    font-size: 12px;
  }
  .member-permission-note {
    padding: 12px;
    font-size: 11px;
  }
  #member-list .team-table,
  #member-list .team-table tbody {
    display: block;
  }
  #member-list .team-table thead {
    display: none;
  }
  #member-list .team-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 8px;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
  }
  #member-list .team-table tr:last-child {
    border-bottom: 0;
  }
  #member-list .team-table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0 !important;
    min-width: 0;
  }
  #member-list .member-person-cell {
    grid-column: 1;
    grid-row: 1;
  }
  #member-list .member-action-cell {
    grid-column: 2;
    grid-row: 1;
  }
  #member-list .member-accounts-cell {
    grid-column: 1/-1;
    grid-row: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 46px;
  }
  #member-list .member-status-cell {
    grid-column: 1/-1;
    grid-row: 3;
    padding-left: 46px;
  }
  .member-mobile-caption {
    display: inline-block;
    font-size: 10px;
    color: var(--text-secondary);
  }
  #member-list .team-table button {
    min-width: 40px;
    min-height: 40px;
  }
}
@media (min-width: 768px) {
  .member-empty-state {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    text-align: left;
    padding: 24px;
    min-height: 140px;
  }
  .member-empty-body {
    flex: 1;
    min-width: 0;
  }
  .member-empty-body h3 {
    margin-bottom: 6px;
  }
  .member-empty-body p {
    max-width: 470px;
  }
  .member-empty-icon {
    flex: none;
    margin: 0;
  }
  body .member-empty-create {
    flex: none;
    margin: 0;
  }
}
@media (max-width: 767px) {
  .member-empty-body h3 {
    margin-bottom: 8px;
  }
}
/* Daily execution: scan urgency groups, or work through a focused queue. */
.queue-quick-scopes { display:flex; gap:6px; padding:0 18px 12px; flex-wrap:wrap; }
#task-queue .queue-scope-button { min-height:30px; padding:4px 10px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--text-secondary); font-size:11px; margin:0; }
#task-queue .queue-scope-button.active { color:var(--brand); background:var(--brand-soft); border-color:var(--brand); }
#task-queue .queue-group-row td { padding:9px 14px; background:var(--surface-soft); border-bottom:1px solid var(--border); }
.queue-group-row strong { font-size:11px; font-weight:600; }
.queue-group-row span { margin-left:10px; font-size:10px; color:var(--text-secondary); }
.queue-table tr[data-urgency="overdue"] > td:first-child { box-shadow:inset 3px 0 var(--danger, #df4854); }
.queue-table tr[data-urgency="soon"] > td:first-child { box-shadow:inset 3px 0 var(--brand); }
.queue-focus-intro { display:flex; align-items:center; gap:8px; padding:12px 18px; font-size:12px; color:var(--text-secondary); border-top:1px solid var(--border); }
.queue-focus-card { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 18px; border-top:1px solid var(--border); }
.queue-focus-card:first-of-type { background:var(--brand-soft); box-shadow:inset 3px 0 var(--brand); }
.queue-focus-content { min-width:0; }
.queue-focus-content > strong { display:block; font-size:14px; margin:5px 0; overflow-wrap:anywhere; }
.queue-focus-caption { color:var(--brand); font-size:10px; font-weight:600; letter-spacing:.04em; }
.queue-focus-content p { margin:5px 0; }
.queue-task-description { color:var(--text-secondary); font-size:12px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; max-width:650px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.queue-focus-card .queue-actions { flex:none; }
@media(max-width:767px) {
  .queue-quick-scopes { padding:0 12px 10px; }
  #task-queue .queue-scope-button { min-height:36px; }
  #task-queue .queue-group-row { display:block; padding:0; }
  #task-queue .queue-group-row td:first-child { display:block; width:auto; padding:9px 12px; }
  .queue-focus-intro { padding:12px; font-size:11px; align-items:flex-start; }
  .queue-focus-card { padding:14px 12px; align-items:stretch; flex-direction:column; gap:10px; }
  .queue-focus-card .queue-actions { border-top:1px solid var(--border); padding-top:8px; gap:16px; }
  .queue-focus-card .queue-actions button { min-height:36px; }
}
#task-queue .queue-heading .queue-quick-scopes { padding:0; margin-right:auto; }
@media(max-width:767px) {
  #task-queue .queue-heading .queue-quick-scopes { width:100%; }
}
.queue-focus-content > .task-priority { display:inline-block; margin:5px 0 0 8px; font-size:10px; }
