:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f5f7fb;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
}

a {
  color: #2457d6;
}

.skip-link {
  position: fixed;
  top: max(0.5rem, env(safe-area-inset-top, 0px));
  left: max(0.5rem, env(safe-area-inset-left, 0px));
  z-index: 2000;
  padding: 0.7rem 0.9rem;
  color: #ffffff;
  background: #172033;
  border-radius: 0.5rem;
  transform: translateY(calc(-100% - 1rem - env(safe-area-inset-top, 0px)));
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-nav {
  min-height: calc(4rem + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid #dfe4ee;
}

.app-menu-button {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: grid;
  place-items: center;
  color: #172033;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  cursor: pointer;
}

.app-menu-button:hover {
  background: #eef2f8;
}

.app-menu-button:focus-visible {
  outline: 3px solid rgb(36 87 214 / 28%);
  outline-offset: 2px;
  border-color: #2457d6;
}

.app-menu-button span,
.app-menu-button span::before,
.app-menu-button span::after {
  width: 1.25rem;
  height: 2px;
  display: block;
  position: relative;
  background: currentColor;
  border-radius: 999px;
}

.app-menu-button span::before,
.app-menu-button span::after {
  position: absolute;
  content: "";
}

.app-menu-button span::before {
  top: -0.4rem;
}

.app-menu-button span::after {
  top: 0.4rem;
}

.site-nav__brand {
  margin-right: auto;
  color: #172033;
  font-weight: 700;
  text-decoration: none;
}

.app-navigation-drawer__content {
  padding: 0;
}

.app-navigation-drawer {
  overflow-y: auto !important;
  padding-right: max(1rem, env(safe-area-inset-right, 0px)) !important;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px)) !important;
  padding-left: max(1rem, env(safe-area-inset-left, 0px)) !important;
}

.mail-navigation {
  min-width: 0;
  color: #172033;
}

.mail-navigation__header {
  margin: 0.25rem 0 1rem;
  padding: 0 0.625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mail-navigation__header h2 {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
}

.mail-navigation__eyebrow {
  margin: 0;
  color: #667085;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mail-navigation__account-count {
  flex: 0 0 auto;
  color: #667085;
  font-size: 0.75rem;
}

.mail-navigation__level-controls {
  margin: 0 0 1rem;
  padding: 0 0.625rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  border-bottom: 1px solid #e3e7ef;
}

.mail-navigation__level-controls button {
  min-height: 1.9rem;
  padding: 0.3rem 0.5rem;
  color: #43506a;
  background: #f6f8fb;
  border: 1px solid #dfe4ee;
  border-radius: 0.45rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.mail-navigation__level-controls button:hover {
  color: #183f9e;
  background: #edf3ff;
  border-color: #b8c9ee;
}

.mail-navigation__level-controls button:focus-visible,
.mail-navigation__row:focus-visible {
  outline: 3px solid rgb(36 87 214 / 28%);
  outline-offset: 1px;
}

.mail-navigation__tree,
.mail-navigation__branch ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mail-navigation__tree {
  display: grid;
  gap: 0.15rem;
}

.mail-navigation__branch ul {
  position: relative;
  padding-left: 1rem;
}

.mail-navigation__branch ul::before {
  width: 1px;
  position: absolute;
  top: 0;
  bottom: 0.35rem;
  left: 0.68rem;
  content: "";
  background: #e3e7ef;
}

.mail-navigation__branch-self {
  font-size: 0.9rem;
}

.mail-navigation__branch summary {
  list-style: none;
  cursor: pointer;
}

.mail-navigation__branch summary::-webkit-details-marker {
  display: none;
}

.mail-navigation__row {
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.45rem 0.55rem;
  display: grid;
  grid-template-columns: 0.75rem 1.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem;
  color: #172033;
  border-radius: 0.5rem;
  text-decoration: none;
}

.mail-navigation__row:hover {
  background: #eef2f8;
}

.mail-navigation__row.is-selected {
  color: #183f9e;
  background: #e8efff;
  box-shadow: inset 3px 0 #2457d6;
  font-weight: 700;
}

.mail-navigation__row.is-disabled {
  color: #98a2b3;
  cursor: not-allowed;
}

.mail-navigation__chevron {
  width: 0.45rem;
  height: 0.45rem;
  justify-self: center;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.14s ease;
}

.mail-navigation__branch[open] > summary .mail-navigation__chevron {
  transform: rotate(45deg) translate(-0.08rem, -0.08rem);
}

.mail-navigation__row-spacer {
  width: 0.75rem;
}

.mail-navigation__icon {
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  color: #667085;
  font-size: 0.85rem;
  font-weight: 750;
}

.mail-navigation__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-navigation__count {
  min-width: 1.35rem;
  padding: 0.08rem 0.35rem;
  color: #344054;
  background: #e5eaf2;
  border-radius: 999px;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.25rem;
  text-align: center;
}

.mail-navigation__unified {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e3e7ef;
}

.site-main {
  width: min(64rem, 100%);
  margin: 0 auto;
  padding-top: 4rem;
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(4rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
}

.site-main:focus {
  outline: none;
}

.project-intro {
  max-width: 42rem;
  padding: 2.5rem;
  background: #ffffff;
  border: 1px solid #dfe4ee;
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgb(30 48 84 / 8%);
}

.project-intro__eyebrow {
  margin: 0 0 0.75rem;
  color: #2457d6;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
}

.project-intro p:last-child {
  margin: 1.25rem 0 0;
  color: #566178;
  font-size: 1.05rem;
  line-height: 1.7;
}

.mail-workspace-page .site-main {
  width: 100%;
  margin: 0;
  padding: 0;
}

.mail-workspace {
  min-width: 0;
  min-height: calc(100dvh - 4rem - env(safe-area-inset-top, 0px));
  background: #ffffff;
}

.mail-workspace__navigation,
.mail-list-panel,
.mail-detail-panel {
  min-width: 0;
  background: #ffffff;
}

.mail-workspace__navigation {
  display: none;
}

.mail-list-panel,
.mail-detail-panel {
  min-height: calc(100dvh - 4rem - env(safe-area-inset-top, 0px));
}

.mail-panel-header {
  min-height: 5.4rem;
  padding: 1rem 1.1rem;
  display: flex;
  position: sticky;
  top: 0;
  z-index: 5;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid #dfe4ee;
  backdrop-filter: blur(10px);
}

.mail-panel-header h1 {
  margin: 0.15rem 0 0;
  overflow: hidden;
  font-size: 1.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-panel-header__eyebrow {
  margin: 0;
  color: #667085;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mail-panel-header__meta {
  min-width: 5.5rem;
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 0.2rem;
  color: #667085;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.mail-list-controls {
  min-height: 9.75rem;
  padding: 0.75rem 0.85rem;
  position: sticky;
  top: 5.4rem;
  z-index: 4;
  background: rgb(255 255 255 / 97%);
  border-bottom: 1px solid #dfe4ee;
  backdrop-filter: blur(10px);
}

.mail-list-filters {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 0.5rem;
}

.mail-list-filters fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border: 0;
}

.mail-list-filters legend {
  width: 100%;
  margin-bottom: 0.15rem;
  color: #667085;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mail-list-filters label {
  min-height: 2rem;
  padding: 0.3rem 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #43506a;
  background: #f6f8fb;
  border: 1px solid #dfe4ee;
  border-radius: 0.45rem;
  font-size: 0.68rem;
  font-weight: 650;
  cursor: pointer;
}

.mail-list-filters label:has(input:checked) {
  color: #183f9e;
  background: #eaf1ff;
  border-color: #a9bde8;
}

.mail-list-filters input {
  margin: 0;
  accent-color: #2457d6;
}

.mail-list-filters button,
.mail-list-filters > a,
.mail-list-selection-controls button {
  min-width: 3.5rem;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  display: inline-grid;
  place-items: center;
  color: #344054;
  background: #ffffff;
  border: 1px solid #cfd6e2;
  border-radius: 0.45rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.mail-list-filters button {
  color: #ffffff;
  background: #2457d6;
  border-color: #2457d6;
}

.mail-list-filters > a[aria-disabled="true" i] {
  color: #98a2b3;
  pointer-events: none;
}

.mail-list-filters button:hover,
.mail-list-selection-controls button:hover {
  filter: brightness(0.96);
}

.mail-list-filters button:focus-visible,
.mail-list-filters a:focus-visible,
.mail-list-selection-controls button:focus-visible,
.mail-list-selection-controls input:focus-visible {
  outline: 3px solid rgb(36 87 214 / 28%);
  outline-offset: 1px;
}

.mail-list-selection-controls {
  min-height: 4.35rem;
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.5rem;
}

.mail-list-selection-controls__start[aria-pressed="true"] {
  color: #183f9e;
  background: #eaf1ff;
  border-color: #a9bde8;
}

.mail-list-selection-bar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem;
  visibility: hidden;
}

.mail-list-selection-bar[aria-hidden="false"] {
  visibility: visible;
}

.mail-list-selection-bar label {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 650;
}

.mail-list-selection-count {
  min-width: 5.2rem;
  color: #667085;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.mail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mail-list__row {
  min-width: 0;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: stretch;
  background: #ffffff;
  border-bottom: 1px solid #e7eaf0;
}

.mail-list__checkbox {
  display: grid;
  place-items: center;
  visibility: hidden;
  cursor: pointer;
}

.mail-list-panel.is-multiselect .mail-list__checkbox {
  visibility: visible;
}

.mail-list__checkbox input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #2457d6;
}

.mail-list__row.is-multiselected .mail-list__item {
  background: #eef4ff;
}

.mail-list__item {
  min-height: 7.7rem;
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "sender time"
    "subject subject"
    "preview preview"
    "account indicators";
  gap: 0.25rem 0.75rem;
  color: #344054;
  background: #ffffff;
  text-decoration: none;
}

.mail-list__item:hover {
  background: #f7f9fc;
}

.mail-list__item:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid rgb(36 87 214 / 30%);
  outline-offset: -3px;
}

.mail-list__item.is-selected {
  background: #eaf1ff;
  box-shadow: inset 3px 0 #2457d6;
}

.mail-list__item.is-unread .mail-list__sender,
.mail-list__item.is-unread .mail-list__subject {
  color: #172033;
  font-weight: 750;
}

.mail-list__sender {
  grid-area: sender;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-list time {
  grid-area: time;
  color: #667085;
  font-size: 0.68rem;
  white-space: nowrap;
}

.mail-list__subject {
  grid-area: subject;
  overflow: hidden;
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-list__preview {
  grid-area: preview;
  overflow: hidden;
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-list__account {
  width: fit-content;
  max-width: 100%;
  padding: 0.18rem 0.45rem;
  grid-area: account;
  overflow: hidden;
  color: #344054;
  background: #eef1f6;
  border-radius: 999px;
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-list__indicators {
  min-width: 2.5rem;
  display: flex;
  grid-area: indicators;
  justify-content: flex-end;
  gap: 0.35rem;
  color: #8a5b00;
  font-size: 0.8rem;
}

.mail-list-pagination {
  min-height: 4rem;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) 5rem;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid #dfe4ee;
}

.mail-list-pagination a,
.mail-list-pagination > span[aria-disabled="true"] {
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
  display: grid;
  place-items: center;
  border: 1px solid #cfd6e2;
  border-radius: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.mail-list-pagination > span[aria-disabled="true"] {
  color: #98a2b3;
  background: #f6f7f9;
}

.mail-list-pagination__status {
  color: #667085;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.mail-detail-panel {
  padding: 1.5rem;
  position: relative;
  color: #344054;
}

.mail-detail-toolbar {
  min-height: 3.25rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem 0;
  display: flex;
  position: sticky;
  top: calc(4rem + env(safe-area-inset-top, 0px));
  z-index: 8;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgb(255 255 255 / 97%);
  border-bottom: 1px solid #e3e7ef;
  backdrop-filter: blur(10px);
}

.mail-detail-panel__back {
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  display: inline-flex;
  align-items: center;
  color: #2457d6;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.mail-detail-actions,
.mail-detail-actions__primary {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.mail-detail-actions button,
.mail-action-overflow button,
.mail-action-overflow select {
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  color: #344054;
  background: #ffffff;
  border: 1px solid #cfd6e2;
  border-radius: 0.45rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
}

.mail-detail-actions button,
.mail-action-overflow button {
  cursor: pointer;
}

.mail-detail-actions button:hover,
.mail-action-overflow button:hover {
  background: #f5f7fa;
}

.mail-detail-actions button:focus-visible,
.mail-action-overflow button:focus-visible,
.mail-action-overflow select:focus-visible,
.mail-detail-panel__back:focus-visible {
  outline: 3px solid rgb(36 87 214 / 28%);
  outline-offset: 1px;
}

.mail-detail-actions__primary button:first-of-type {
  color: #ffffff;
  background: #2457d6;
  border-color: #2457d6;
}

.mail-action-overflow__trigger.flextip-open {
  color: #183f9e;
  background: #eaf1ff;
  border-color: #a9bde8;
}

.mail-action-overflow {
  width: min(19rem, calc(100vw - 1rem));
  color: #344054;
  border: 1px solid #d7dde7;
}

.mail-action-overflow__panel {
  width: 100%;
  max-height: min(31rem, calc(100dvh - 8rem));
  padding: 0.5rem;
  display: grid;
  gap: 0.2rem;
  overflow-y: auto;
}

.mail-action-overflow__panel > button {
  width: 100%;
  min-height: 2.65rem;
  justify-content: flex-start;
  border-color: transparent;
  text-align: left;
}

.mail-action-overflow__move {
  margin: 0.35rem 0;
  padding: 0.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
  background: #f7f9fc;
  border-radius: 0.5rem;
}

.mail-action-overflow__move label {
  grid-column: 1 / -1;
  color: #667085;
  font-size: 0.7rem;
  font-weight: 700;
}

.mail-action-overflow__move select {
  min-width: 0;
}

.mail-action-overflow__separator {
  height: 1px;
  margin: 0.35rem 0;
  background: #e3e7ef;
}

.mail-detail-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e3e7ef;
}

.mail-detail-header h2 {
  margin: 0.35rem 0 1.25rem;
  color: #172033;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mail-detail-header__sender {
  display: grid;
  gap: 0.2rem;
}

.mail-detail-header__sender span {
  color: #667085;
  font-size: 0.85rem;
}

.mail-detail-header dl {
  margin: 1.15rem 0 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.mail-detail-header dl div {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.75rem;
}

.mail-detail-header dt {
  color: #667085;
  font-weight: 650;
}

.mail-detail-header dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.mail-detail-body {
  max-width: 54rem;
  padding: 2rem 0;
  color: #253047;
  font-size: 0.98rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.mail-detail-body--text {
  white-space: pre-wrap;
}

.mail-remote-images-notice {
  max-width: 54rem;
  margin-top: 1.25rem;
  padding: 0.7rem 0.85rem;
  color: #5f4b12;
  background: #fff9e8;
  border: 1px solid #ead89c;
  border-radius: 0.5rem;
  font-size: 0.8rem;
}

.mail-attachments {
  padding-top: 1.25rem;
  border-top: 1px solid #e3e7ef;
}

.mail-attachments h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.mail-attachments ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

.mail-attachments li {
  max-width: 32rem;
  padding: 0.65rem 0.8rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  background: #f5f7fa;
  border: 1px solid #e1e6ee;
  border-radius: 0.55rem;
  font-size: 0.8rem;
}

.mail-attachments__name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.mail-attachments__meta {
  color: #667085;
  font-size: 0.72rem;
}

.mail-message-details-dialog {
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 1.25rem;
  color: #344054;
  background: #ffffff;
  border: 1px solid #d7dde7;
  border-radius: 0.75rem;
  box-shadow: 0 1.5rem 4rem rgb(30 48 84 / 24%);
}

.mail-message-details-dialog::backdrop {
  background: rgb(23 32 51 / 45%);
}

.mail-message-details-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mail-message-details-dialog h3 {
  margin: 0;
  font-size: 1.05rem;
}

.mail-message-details-dialog button {
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  color: #344054;
  background: #ffffff;
  border: 1px solid #cfd6e2;
  border-radius: 0.45rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mail-message-details-dialog dl {
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.mail-message-details-dialog dl div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.2fr);
  gap: 0.75rem;
}

.mail-message-details-dialog dt {
  color: #667085;
  font-weight: 700;
}

.mail-message-details-dialog dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.app-toast {
  width: min(26rem, calc(100vw - 2rem));
  min-height: 3.25rem;
  padding: 0.65rem 0.75rem 0.65rem 1rem;
  display: flex;
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #ffffff;
  background: #172033;
  border-radius: 0.65rem;
  box-shadow: 0 1rem 2.5rem rgb(30 48 84 / 24%);
  font-size: 0.85rem;
}

.app-toast button {
  min-height: 2.25rem;
  padding: 0.4rem 0.6rem;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 0.4rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.mail-panel-empty {
  min-height: 18rem;
  padding: 2rem;
  display: grid;
  place-content: center;
  color: #667085;
  text-align: center;
}

.mail-panel-empty h2 {
  margin: 0;
  color: #344054;
  font-size: 1.05rem;
}

.mail-panel-empty p {
  margin: 0.5rem 0 0;
}

.mail-workspace[data-mobile-view="list"] .mail-detail-panel {
  display: none;
}

.mail-workspace[data-mobile-view="detail"] .mail-list-panel {
  display: none;
}

.site-footer {
  color: #566178;
  background: #fffdf9;
  border-top: 1px solid #e8e3da;
}

.site-footer__inner {
  width: min(64rem, 100%);
  margin: 0 auto;
  padding-top: 3rem;
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(16rem, 2fr) repeat(2, minmax(8rem, 1fr));
  gap: 2rem 4rem;
}

.site-footer__brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #172033;
  font-weight: 750;
  text-decoration: none;
}

.site-footer__brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #2457d6;
  border-radius: 0.6rem;
}

.site-footer__brand-mark svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.site-footer__brand-section p {
  max-width: 25rem;
  margin: 0.9rem 0 0;
  line-height: 1.65;
}

.site-footer__nav {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.7rem;
}

.site-footer__nav h2 {
  margin: 0 0 0.15rem;
  color: #172033;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__nav a {
  color: #38445a;
  font-weight: 600;
  text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__brand:hover {
  color: #2457d6;
}

.site-footer__nav a:focus-visible,
.site-footer__brand:focus-visible {
  outline: 3px solid rgb(36 87 214 / 28%);
  outline-offset: 3px;
  border-radius: 0.2rem;
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  border-top: 1px solid #e8e3da;
  font-size: 0.9rem;
}

@media (min-width: 48rem) {
  .mail-workspace-page .app-menu-button,
  .mail-workspace-page .app-navigation-drawer {
    display: none !important;
  }

  .mail-workspace {
    height: calc(100dvh - 4rem - env(safe-area-inset-top, 0px));
    min-height: 0;
    display: grid;
    grid-template-columns:
      clamp(12rem, 22vw, 17rem)
      clamp(17rem, 31vw, 23rem)
      minmax(0, 1fr);
    overflow: hidden;
  }

  .mail-workspace__navigation {
    padding: 1rem 0.65rem 1rem 1rem;
    display: block;
    overflow-y: auto;
    scrollbar-gutter: stable;
    border-right: 1px solid #dfe4ee;
  }

  .mail-list-panel,
  .mail-detail-panel {
    min-height: 0;
    display: block !important;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  .mail-workspace__navigation,
  .mail-list-panel,
  .mail-detail-panel {
    scrollbar-width: thin;
    scrollbar-color: #e1e5ea transparent;
  }

  .mail-workspace__navigation::-webkit-scrollbar,
  .mail-list-panel::-webkit-scrollbar,
  .mail-detail-panel::-webkit-scrollbar {
    width: 4px;
  }

  .mail-workspace__navigation::-webkit-scrollbar-track,
  .mail-list-panel::-webkit-scrollbar-track,
  .mail-detail-panel::-webkit-scrollbar-track {
    background: transparent;
  }

  .mail-workspace__navigation::-webkit-scrollbar-thumb,
  .mail-list-panel::-webkit-scrollbar-thumb,
  .mail-detail-panel::-webkit-scrollbar-thumb {
    background: #e1e5ea;
    border-radius: 999px;
  }

  .mail-workspace__navigation::-webkit-scrollbar-thumb:hover,
  .mail-list-panel::-webkit-scrollbar-thumb:hover,
  .mail-detail-panel::-webkit-scrollbar-thumb:hover {
    background: #cdd3da;
  }

  .mail-list-panel {
    border-right: 1px solid #dfe4ee;
  }

  .mail-detail-panel {
    padding: 2rem clamp(1.5rem, 3vw, 3rem);
  }

  .mail-detail-toolbar {
    top: 0;
  }

  .mail-detail-panel__back {
    display: none;
  }
}

@media (min-width: 64rem) {
  .mail-workspace {
    grid-template-columns: minmax(17rem, 20rem) minmax(21rem, 27rem) minmax(24rem, 1fr);
  }
}

@media (max-width: 42rem) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .site-footer__brand-section {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 30rem) {
  .site-nav {
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  }

  .site-footer__inner {
    padding-top: 2.5rem;
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition-duration: 0.01ms;
  }
}
