/* Mail index: source status first, then a compact scannable list and reading pane. */
body.mac-theme .next-shell .comms-mail-page {
  --mail-ink: #1d2c30;
  --mail-muted: #657773;
  --mail-line: #e1e7e4;
  --mail-accent: #2b675b;
  --mail-accent-soft: #eaf3ef;
  --mail-soft: #f7f9f8;
}

body.mac-theme .next-shell .comms-mail-page .comms-heading {
  margin-bottom: 14px;
}
body.mac-theme .next-shell .comms-mail-page .comms-heading-kicker {
  color: #587b70;
  font-weight: 700;
  letter-spacing: .04em;
}
body.mac-theme .next-shell .comms-mail-page .comms-heading h1 {
  font-size: clamp(26px, 2.1vw, 32px);
  letter-spacing: -.045em;
}
body.mac-theme .next-shell .comms-mail-page .comms-heading p {
  margin-top: 5px;
  font-size: 13px;
  color: var(--mail-muted);
}
body.mac-theme .next-shell .comms-mail-page .comms-heading-actions .comms-text-button {
  border: 1px solid #cadbd2;
  border-radius: 9px;
  background: #fff;
  color: var(--mail-accent);
  padding: 8px 11px;
  font-weight: 650;
}
body.mac-theme .next-shell .comms-mail-page .comms-heading-actions .comms-button {
  border-color: var(--mail-accent);
  background: var(--mail-accent);
  color: #fff;
  padding: 8px 12px;
  box-shadow: none;
  font-weight: 650;
}
body.mac-theme .next-shell .comms-mail-page .comms-heading-actions .comms-button:hover {
  background: #21564b;
}

body.mac-theme .next-shell .comms-mail-page .comms-mail-overview {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  overflow: hidden;
  margin-bottom: 11px;
  border: 1px solid var(--mail-line);
  border-left: 4px solid #d5aa6d;
  border-radius: 12px;
  background: #fff;
  color: var(--mail-ink);
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-overview.is-current {
  border-left-color: var(--mail-accent);
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-status {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  padding: 13px 16px 11px;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-status > div {
  min-width: 0;
  flex: 1;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-status-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: #f8efe4;
  color: #966939;
}
body.mac-theme .next-shell .comms-mail-page .is-current .comms-mail-status-icon {
  background: var(--mail-accent-soft);
  color: var(--mail-accent);
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-status-icon .comms-icon {
  width: 17px;
  height: 17px;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-status-label,
body.mac-theme .next-shell .comms-mail-page .comms-detail-eyebrow {
  display: block;
  color: #657d74;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-status strong {
  display: block;
  margin-top: 2px;
  color: var(--mail-ink);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: -.025em;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-status p {
  margin-top: 3px;
  color: #5e6f6c;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-status .comms-text-button {
  flex: none;
  align-self: center;
  color: var(--mail-accent);
  font-weight: 700;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-facts {
  display: grid;
  grid-template-columns: .9fr 1.5fr .8fr;
  align-items: stretch;
  min-width: 0;
  margin: 0;
  border-left: 1px solid var(--mail-line);
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-facts > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 9px 13px;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-facts > div + div {
  border-left: 1px solid var(--mail-line);
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-facts dt {
  color: #6a7d77;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-facts dd {
  margin: 3px 0 0;
  color: var(--mail-ink);
  font-size: 21px;
  line-height: 1.28;
  font-weight: 750;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-facts dd.is-date {
  font-size: 13px;
  letter-spacing: -.015em;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-facts dd small {
  margin-left: 3px;
  color: #72837f;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-scope {
  grid-column: 1 / -1;
  margin: 0;
  padding: 5px 15px 6px;
  border-top: 1px solid var(--mail-line);
  background: #fafbf9;
  color: #687b75;
  font-size: 11px;
  line-height: 1.4;
}

body.mac-theme .next-shell .comms-mail-page .comms-accounts-bar {
  flex: none;
  min-height: 40px;
  padding: 5px 13px;
  margin-bottom: 10px;
  border-radius: 10px;
}
body.mac-theme .next-shell .comms-mail-page .comms-account-select,
body.mac-theme .next-shell .comms-mail-page .comms-account-select select {
  color: #334b46;
  font-size: 13px;
}
body.mac-theme .next-shell .comms-mail-page .comms-account-details summary {
  color: var(--mail-accent);
  font-weight: 650;
}
body.mac-theme .next-shell .comms-mail-page .comms-account-details summary span {
  background: var(--mail-accent-soft);
  color: var(--mail-accent);
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-tools {
  flex: none;
  gap: 12px;
  margin-bottom: 10px;
}
body.mac-theme .next-shell .comms-mail-page .comms-filters {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--mail-line);
  border-radius: 10px;
}
body.mac-theme .next-shell .comms-mail-page .comms-filters .comms-filter {
  padding: 6px 9px;
  border-radius: 7px;
  color: #566b66;
  font-size: 12px;
  line-height: 1.35;
}
body.mac-theme .next-shell .comms-mail-page .comms-filters .comms-filter.is-active {
  background: var(--mail-accent-soft);
  border-color: #c6ded0;
  color: var(--mail-accent);
  font-weight: 750;
}
body.mac-theme .next-shell .comms-mail-page .comms-filters .comms-filter > span {
  color: inherit;
  opacity: .72;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
body.mac-theme .next-shell .comms-mail-page .comms-search {
  min-width: 180px;
  max-width: 260px;
  border-color: var(--mail-line);
  background: #fff;
  color: #658179;
}
body.mac-theme .next-shell .comms-mail-page .comms-search input {
  font-size: 12px;
  color: var(--mail-ink);
}
body.mac-theme .next-shell .comms-mail-page .comms-search:focus-within {
  outline-color: #77a995;
}

body.mac-theme .next-shell .comms-mail-page .comms-mail-workspace {
  border-color: var(--mail-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-list {
  border-right: 1px solid var(--mail-line);
  background: #fff;
}
body.mac-theme .next-shell .comms-mail-page .comms-list-caption {
  min-height: 42px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--mail-line);
  background: var(--mail-soft);
}
body.mac-theme .next-shell .comms-mail-page .comms-list-caption strong {
  color: var(--mail-ink);
  font-size: 13px;
  font-weight: 750;
}
body.mac-theme .next-shell .comms-mail-page .comms-list-caption > span {
  color: #6b7e78;
  font-size: 11px;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-row {
  padding: 10px 15px 9px;
  border-bottom: 1px solid #e9eeeb;
  background: #fff;
  color: var(--mail-ink);
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-row:hover {
  background: #f5f9f6;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-row.is-selected {
  background: var(--mail-accent-soft);
  box-shadow: inset 3px 0 var(--mail-accent);
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-row-top {
  margin-bottom: 2px;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-row-top strong {
  color: #52665f;
  font-size: 12px;
  font-weight: 650;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-row-top time {
  color: #71817d;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-subject {
  color: var(--mail-ink);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 720;
  letter-spacing: -.02em;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-row.is-reviewed .comms-mail-subject {
  color: #6e7f79;
  font-weight: 580;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-snippet {
  display: block;
  min-height: 0;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
  -webkit-line-clamp: 1;
  color: #687a75;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-row-bottom {
  min-height: 0;
  margin-top: 4px;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-row-bottom > small {
  color: #80918a;
  font-size: 10px;
}
body.mac-theme .next-shell .comms-mail-page .comms-follow-tag,
body.mac-theme .next-shell .comms-mail-page .comms-reviewed-tag {
  font-size: 10px;
  font-weight: 650;
}
body.mac-theme .next-shell .comms-mail-page .comms-unread-dot {
  width: 6px;
  height: 6px;
  background: var(--mail-accent);
}

body.mac-theme .next-shell .comms-mail-page .comms-mail-detail {
  background: #fff;
}
body.mac-theme .next-shell .comms-mail-page .comms-detail-toolbar {
  min-height: 42px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--mail-line);
  background: #fbfcfb;
}
body.mac-theme .next-shell .comms-mail-page .comms-detail-toolbar > span {
  color: #60746d;
  font-size: 11px;
}
body.mac-theme .next-shell .comms-mail-page .comms-detail-toolbar .comms-text-button {
  color: var(--mail-accent);
  font-size: 11px;
  font-weight: 700;
}
body.mac-theme .next-shell .comms-mail-page .comms-detail-scroll {
  padding: 27px clamp(22px, 3vw, 46px) 36px;
}
body.mac-theme .next-shell .comms-mail-page .comms-message-header h2 {
  max-width: 840px;
  margin: 8px 0 16px;
  color: var(--mail-ink);
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.38;
  font-weight: 750;
  letter-spacing: -.035em;
}
body.mac-theme .next-shell .comms-mail-page .comms-message-header strong {
  color: #304640;
  font-size: 13px;
}
body.mac-theme .next-shell .comms-mail-page .comms-message-header time,
body.mac-theme .next-shell .comms-mail-page .comms-provider-unread {
  color: #6b7d76;
  font-size: 11px;
}
body.mac-theme .next-shell .comms-mail-page .comms-review-bar {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--mail-line);
}
body.mac-theme .next-shell .comms-mail-page .comms-review-bar > span {
  margin-right: 7px;
  color: #586e65;
  font-size: 11px;
  font-weight: 700;
}
body.mac-theme .next-shell .comms-mail-page .comms-review-button {
  padding: 7px 10px;
  border-color: #d3dfd8;
  background: #fff;
  color: var(--mail-accent);
  font-size: 11px;
  font-weight: 650;
}
body.mac-theme .next-shell .comms-mail-page .comms-review-button:hover,
body.mac-theme .next-shell .comms-mail-page .comms-review-button.is-active {
  border-color: #bcd6c7;
  background: var(--mail-accent-soft);
  color: var(--mail-accent);
}
body.mac-theme .next-shell .comms-mail-page .comms-local-note {
  color: #778881;
  font-size: 11px;
}
body.mac-theme .next-shell .comms-mail-page .comms-message-body {
  max-width: 74ch;
  margin-top: 27px;
  color: #263934;
  font-size: 14px;
  line-height: 1.85;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-empty {
  width: min(100%, 360px);
  margin: auto;
  padding: 28px;
  border: 1px solid var(--mail-line);
  border-radius: 12px;
  background: #fbfcfb;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-empty h2 {
  margin: 7px 0;
  color: #2d443e;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -.025em;
}
body.mac-theme .next-shell .comms-mail-page .comms-mail-empty p {
  color: #687c73;
  font-size: 12px;
  line-height: 1.65;
}
body.mac-theme .next-shell .comms-mail-page .comms-pagination {
  border-color: var(--mail-line);
  color: #6d8078;
}

@media (min-width: 901px) {
  body.mac-theme .next-shell .comms-mail-page .comms-mail-workspace {
    grid-template-columns: minmax(340px, 39%) minmax(0, 1fr);
    min-height: 0;
  }
}
@media (max-width: 1150px) {
  body.mac-theme .next-shell .comms-mail-page .comms-mail-overview {
    grid-template-columns: 1fr;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-mail-status {
    padding: 9px 13px;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-mail-facts {
    border-left: 0;
    border-top: 1px solid var(--mail-line);
  }
  body.mac-theme .next-shell .comms-mail-page .comms-mail-facts > div {
    padding: 6px 12px;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-mail-facts dd {
    font-size: 17px;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-mail-facts dd.is-date {
    font-size: 12px;
  }
}
@media (max-width: 900px) {
  body.mac-theme .next-shell .comms-mail-page .comms-mail-overview {
    margin-bottom: 10px;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-mail-workspace {
    height: max(430px, calc(100dvh - 385px));
  }
  body.mac-theme .next-shell .comms-mail-page .comms-mail-list {
    border-right: 0;
  }
}
@media (max-width: 600px) {
  body.mac-theme .next-shell .comms-mail-page .comms-heading {
    gap: 9px;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-heading h1 {
    font-size: 24px;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-heading p {
    max-width: 240px;
    font-size: 11px;
    line-height: 1.5;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-heading-actions .comms-text-button,
  body.mac-theme .next-shell .comms-mail-page .comms-heading-actions .comms-button {
    padding: 6px 7px;
    font-size: 11px;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-mail-status strong {
    font-size: 14px;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-mail-status p {
    font-size: 11px;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-mail-facts dt {
    font-size: 10px;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-mail-facts dd {
    font-size: 15px;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-mail-facts dd.is-date {
    font-size: 11px;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-mail-facts > div {
    padding: 6px 8px;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-mail-scope {
    padding: 5px 10px;
    font-size: 10px;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-filters {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-filters .comms-filter {
    flex: none;
    padding: 5px 7px;
    font-size: 11px;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-search {
    max-width: none;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-detail-scroll {
    padding: 22px 18px;
  }
  body.mac-theme .next-shell .comms-mail-page .comms-message-body {
    font-size: 13px;
  }
}
