@font-face {
  font-family: Inter;
  src: url('./assets/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Plex Arabic;
  src: url('./assets/arabic-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Plex Arabic;
  src: url('./assets/arabic-semibold.woff2') format('woff2');
  font-weight: 600 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --night: #143a36;
  --ink: #182a28;
  --muted: #5e706c;
  --pine: #176152;
  --sage: #e5efdf;
  --lime: #d1edaa;
  --line: #dce3dc;
  --paper: #f9faf6;
  --sans: Inter, 'Plex Arabic', Arial, sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Plex Arabic', serif;
  font: 14px/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
:lang(ar) {
  --sans: 'Plex Arabic', Inter, Arial, sans-serif;
  --serif: 'Plex Arabic', Inter, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.63;
}
button,
input,
textarea {
  touch-action: manipulation;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #3d887a;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  flex: none;
}
button[hidden],
[hidden] {
  display: none !important;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  overflow: hidden;
  clip-path: inset(50%);
  inline-size: 1px;
  block-size: 1px;
  white-space: nowrap;
}
.skip:focus {
  background: white;
  padding: 8px;
  position: fixed;
  z-index: 20;
}
.shell {
  height: 100vh;
  height: 100dvh;
  min-height: 370px;
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  grid-template-rows: 68px minmax(0, 1fr) auto;
}
.rail {
  grid-row: 1/4;
  background: var(--night);
  color: #f1f7ef;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-width: 0;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.brand em {
  font-weight: 380;
  font-style: normal;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--night);
  box-shadow: inset 0 0 0 1px #eaf7d7;
}
.rail > .brand {
  margin: 27px 23px 45px;
}
.compose-button,
.send-button {
  font-weight: 650;
  display: flex;
  gap: 11px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  min-height: 44px;
}
.compose-button {
  margin: 0 16px 32px;
  background: var(--lime);
  color: #183b2f;
  box-shadow: 0 2px 2px #0002;
}
.compose-button:hover,
.send-button:hover {
  filter: brightness(0.96);
}
.rail-label {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 9px;
  font-weight: 650;
  color: #b1c8be;
  margin: 0 25px 12px;
}
.rail nav {
  display: grid;
  gap: 3px;
  margin: 0 12px;
}
.folder-button {
  font-weight: 470;
  color: #dae7df;
  height: 43px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: start;
  border-radius: 7px;
  padding: 0 13px;
}
.folder-button.current {
  background: #31544c;
  color: #f6fbee;
  box-shadow: inset 3px 0 var(--lime);
}
[dir='rtl'] .folder-button.current {
  box-shadow: inset -3px 0 var(--lime);
}
.folder-button:hover {
  background: #2b504a;
}
.folder-button.current svg {
  color: var(--lime);
}
.rail-end {
  position: relative;
  margin-top: auto;
}
.rail-art {
  height: 155px;
  position: relative;
  overflow: hidden;
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(0deg, transparent, #000 26%, #000 76%, transparent);
}
.rail-art i {
  width: 350px;
  height: 170px;
  border: 1px solid #53796b;
  position: absolute;
  left: -65px;
  top: 65px;
  border-radius: 50%;
  transform: rotate(-28deg);
}
.rail-art i:nth-child(2) {
  top: 79px;
}
.rail-art i:nth-child(3) {
  top: 93px;
}
.rail-art i:nth-child(4) {
  top: 107px;
}
.rail-art i:nth-child(5) {
  top: 121px;
}
.rail-art i:nth-child(6) {
  top: 135px;
}
.rail-organization {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 22px 20px;
  color: #c6d4cb;
  font-size: 11px;
}
.rail-organization img {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  max-height: 24px;
  object-fit: contain;
}
.account {
  margin: 0 14px;
  padding: 17px 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #46645b;
}
.identity {
  display: grid;
  min-width: 0;
}
.identity strong {
  color: #f5f9f1;
  font-weight: 600;
  font-size: 12px;
}
.identity small {
  font-size: 10px;
  color: #c0d1c6;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.account .icon-button {
  margin-inline-start: auto;
  color: #d9e4dd;
}
.account .icon-button:hover {
  background: #35584f;
  color: #fff;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 30px;
  background: #fcfdf9;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.top-brand,
.top-right,
.language,
.demo-tag {
  display: flex;
  align-items: center;
}
.top-brand {
  gap: 12px;
  font-weight: 430;
  color: var(--muted);
  font-size: 12px;
}
.top-brand strong {
  font-weight: 600;
  color: var(--ink);
}
.top-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: #e8eee4;
  color: #456956;
}
.slash {
  opacity: 0.42;
}
.top-right {
  gap: 18px;
}
.demo-tag {
  gap: 6px;
  color: #46664b;
  font-size: 11px;
  font-weight: 570;
}
.demo-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6c934f;
}
.language {
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
  border-inline-start: 1px solid var(--line);
  padding: 4px 2px;
  padding-inline-start: 17px;
  min-height: 34px;
}
.language:hover {
  color: var(--pine);
}
main {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(290px, 37%) minmax(0, 1fr);
  overflow: hidden;
  min-height: 0;
}
.list-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f7f9f4;
  border-inline-end: 1px solid var(--line);
  outline: 0;
}
.list-head {
  padding: 23px 21px 0;
}
.folder-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.folder-title h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 43px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.052em;
}
.list-context {
  font-size: 11px;
  color: var(--muted);
  min-height: 18px;
  margin-top: 3px;
}
.icon-button {
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #57706a;
}
.icon-button:hover,
.language:hover {
  background: #e9eee7;
}
.search {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 15px;
  padding: 0 10px;
  border: 1px solid #d5dfd4;
  border-radius: 7px;
  background: #fff;
  color: #6c7d74;
}
.search:focus-within {
  outline: 2px solid #739785;
  outline-offset: 1px;
}
.search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  color: var(--ink);
  border: 0;
  outline: 0 !important;
  font-size: 12px;
}
.search input::placeholder {
  color: #708077;
}
.search kbd {
  font:
    10px Inter,
    sans-serif;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 5px;
  color: #738078;
}
.filters {
  display: flex;
  gap: 7px;
  padding-bottom: 12px;
}
.filters button {
  padding: 3px 10px;
  min-height: 26px;
  font-size: 11px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 550;
  color: var(--muted);
}
.filters button.active {
  background: #e2ecdf;
  border-color: #ccdcca;
  color: #285742;
}
.filters button:hover {
  background: #e8eee4;
}
.list-content {
  min-height: 0;
  overflow: auto;
  padding-bottom: 20px;
  scrollbar-width: thin;
}
.date-group {
  padding: 9px 22px 6px;
  color: #657970;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.13em;
  font-weight: 650;
  border-top: 1px solid var(--line);
}
.message-row {
  position: relative;
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 11px;
  text-align: start;
  padding: 15px 18px 15px 21px;
  border-inline-start: 3px solid transparent;
  background: transparent;
  border-bottom: 1px solid #e2e7df;
}
.message-row:hover {
  background: #f0f4ed;
}
.message-row.chosen {
  border-inline-start-color: #40744e;
  background: #eaf1e5;
}
.row-text {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.sender {
  font-size: 11px;
  font-weight: 560;
  color: #425a4f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-top time {
  font-size: 10px;
  color: #65786c;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.row-subject,
.row-preview {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.row-subject {
  font-size: 13px;
  font-weight: 530;
  line-height: 1.4;
}
.row-preview {
  font-size: 11px;
  color: #65756a;
}
.unread .row-subject,
.unread .sender {
  font-weight: 650;
}
.unread-dot {
  position: absolute;
  inset-inline-start: 6px;
  top: 26px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #37764e;
}
.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  font-size: 10px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0.005em;
  border-radius: 50%;
  color: #3b5a4b;
  background: #d5e3d3;
}
.tone-1 {
  background: #f2e0c6;
  color: #815527;
}
.tone-2 {
  background: #e1dded;
  color: #665385;
}
.tone-3 {
  background: #d5e6eb;
  color: #355d6e;
}
.tone-4 {
  background: #f0ddd6;
  color: #8b5044;
}
.tone-5 {
  background: #e0e4ce;
  color: #626b39;
}
.avatar.large {
  width: 45px;
  height: 45px;
  font-size: 14px;
}
.avatar.account-avatar {
  width: 31px;
  height: 31px;
  font-size: 10px;
  background: #c6d9b7;
  color: #294834;
}
.reader {
  background: #fffef9;
  min-width: 0;
  overflow: auto;
  min-height: 0;
}
.reader-tools {
  height: 51px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 23px;
  background: #fcfdf9;
}
.read-location,
.read-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.read-location {
  color: #61756a;
  font-size: 11px;
}
.read-actions {
  gap: 3px;
}
.letter {
  max-width: 850px;
  padding: clamp(24px, 3.7vw, 57px) clamp(24px, 3.6vw, 56px) 55px;
  margin: auto;
}
.letter-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 0 0 25px;
}
.dateline {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 9px;
  font-weight: 670;
  color: #6d7d6e;
  margin: 3px 0 17px;
  padding-inline-end: 86px;
}
.letter-header h2 {
  max-width: 100%;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.047em;
  font-size: clamp(29px, 3.15vw, 49px);
  line-height: 1.13;
  overflow-wrap: anywhere;
}
.postmark {
  position: absolute;
  inset-inline-end: 0;
  top: -14px;
  color: #638069;
  opacity: 0.55;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.stamp-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px double currentColor;
  display: grid;
  place-items: center;
  transform: rotate(-14deg);
  background: #fffef9;
}
.postmark-waves {
  width: 30px;
  height: 16px;
  background: repeating-linear-gradient(0deg, transparent 0 5px, currentColor 5px 6px);
  border-radius: 40%;
  transform: skewY(-9deg);
  margin-inline-start: -2px;
}
.byline {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 24px 0;
}
.byline strong {
  font-size: 13px;
  font-weight: 650;
}
.sender-address,
.recipient,
.byline time {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.sender-address {
  text-align: start;
  display: inline-block;
  margin-inline: 6px;
}
.recipient {
  margin-top: 3px;
}
.byline time {
  margin-inline-start: auto;
  padding-top: 3px;
  white-space: nowrap;
}
.body-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.86;
  color: #32413b;
  min-height: 75px;
}
.reply-end {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 35px;
  padding: 5px 13px;
  background: #fffefb;
  border: 1px solid #ccd8cc;
  border-radius: 6px;
  color: #315449;
  font-weight: 570;
  font-size: 12px;
}
.action-button:hover {
  background: #eef4e9;
}
.read-state,
.list-state,
.load-more {
  text-align: center;
  padding: 25px;
  color: var(--muted);
}
.read-state .action-button,
.list-state .action-button {
  display: flex;
  margin: 12px auto;
}
.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  align-content: center;
  gap: 8px;
  min-height: 230px;
  padding: 30px;
}
.empty-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: #eaf1e6;
  border-radius: 17px;
  color: #55745c;
  margin-bottom: 4px;
}
.empty h3 {
  font-size: 18px;
  font-weight: 550;
}
.empty p {
  color: var(--muted);
  font-size: 13px;
  max-width: 290px;
}
.reader > .empty {
  min-height: 60%;
}
.mobile-only,
.mobile-back,
.scrim {
  display: none;
}
#notice {
  position: fixed;
  z-index: 9;
  inset-inline-end: 18px;
  bottom: 18px;
  background: #193e34;
  color: #fff;
  border-radius: 7px;
  padding: 10px 17px;
  box-shadow: 0 8px 24px #243d3322;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  font-size: 13px;
}
#notice.visible {
  opacity: 1;
}
.draft-tray {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  background: #edf3e8;
}
.draft-tray h2 {
  font-size: 13px;
  font-weight: 650;
}
.draft-tray small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.draft-buttons {
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  padding: 4px;
}
.draft-button {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  border: 1px solid #bed0bc;
  border-radius: 6px;
  background: #fffef9;
  color: var(--pine);
  min-height: 44px;
  max-width: 100%;
  padding: 4px 12px;
  font-size: 12px;
  text-align: start;
}
.draft-button:hover {
  background: #f6faef;
}
.draft-button > span {
  min-width: 0;
}
.draft-button bdi {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compose-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.compose-dialog {
  border: 1px solid #d0d9cf;
  border-radius: 15px;
  padding: 0;
  background: #fffefa;
  box-shadow: 0 20px 85px #0c261f55;
  color: var(--ink);
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 30px);
  overflow: auto;
}
.compose-dialog::backdrop {
  background: #18362e70;
}
.compose-head,
.compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  background: #f3f6ee;
}
.compose-head {
  border-bottom: 1px solid var(--line);
}
.compose-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.compose-title h2 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 550;
}
.compose-footer {
  border-top: 1px solid var(--line);
}
.compose-footer small {
  font-size: 11px;
  color: var(--muted);
}
.send-button {
  margin-inline-start: auto;
  background: var(--night);
  color: white;
  padding: 0 16px;
}
.compose-fields {
  padding: 15px 22px 0;
}
.compose-fields > label,
.compose-from {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.compose-from {
  padding-bottom: 10px;
}
.compose-fields label span {
  min-width: 55px;
}
.compose-fields input,
.compose-fields textarea {
  background: transparent;
  color: var(--ink);
  border: 0;
  outline: 0;
  width: 100%;
  padding: 12px 0;
  font-size: 14px;
}
.compose-fields input:focus-visible,
.compose-fields textarea:focus-visible {
  outline: 2px solid #39765d;
  outline-offset: 1px;
}
.compose-fields .body-field {
  border-bottom: 0;
}
.compose-fields textarea {
  resize: vertical;
  min-height: 170px;
  max-height: 42vh;
}
.compose-from bdi {
  color: var(--ink);
}
#compose-error {
  font-size: 12px;
  color: #8d3929;
  margin-bottom: 8px;
}
#discard-confirm {
  padding: 12px 22px;
  background: #fff1d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#discard-confirm button {
  margin: 2px;
}
#discard-confirm strong {
  font-size: 13px;
}
.auth-screen,
.initial {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  background: #f4f7ed;
  color: var(--night);
  padding: 30px;
  text-align: center;
}
.auth-screen .brand {
  margin-bottom: 12px;
}
.auth-screen h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
}
.auth-screen p {
  color: var(--muted);
}
.attachment-strip {
  margin: 20px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.attachment {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: start;
  max-width: 100%;
  min-height: 46px;
  border: 1px solid #ced8cb;
  border-radius: 8px;
  background: #f8faf4;
  padding: 6px 10px;
}
.attachment:hover {
  background: #eaf2e5;
}
.attachment bdi {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.attachment small {
  color: var(--muted);
  font-size: 10px;
}
.pdf-mark {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 33px;
  color: #97513e;
  background: #f2e0d4;
  border-radius: 5px;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.05em;
}
.attach-control {
  margin: 6px 0 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.attach-control small {
  color: var(--muted);
  font-size: 11px;
}
.attach-control input {
  max-width: 100%;
  font-size: 12px;
}
.file-name {
  overflow-wrap: anywhere;
  color: var(--ink);
}
[dir='rtl'] .brand,
[dir='rtl'] .folder-title h1,
[dir='rtl'] .letter-header h2 {
  letter-spacing: 0;
}
[dir='rtl'] .folder-title h1 {
  font-size: 36px;
  font-weight: 600;
}
[dir='rtl'] .letter-header h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.45;
}
[dir='rtl'] .rail-label,
[dir='rtl'] .dateline,
[dir='rtl'] .date-group {
  letter-spacing: 0;
}
[dir='rtl'] .rail-label,
[dir='rtl'] .date-group,
[dir='rtl'] .dateline {
  font-size: 11px;
}
[dir='rtl'] .row-preview {
  font-size: 12px;
}
[dir='rtl'] .sender {
  font-size: 12px;
}
[dir='rtl'] .body-copy {
  font-size: 15px;
  line-height: 1.95;
}
[dir='rtl'] .mobile-back svg,
[dir='rtl'] [data-action='reply'] svg {
  transform: scaleX(-1);
}
@media (min-width: 1500px) {
  main {
    grid-template-columns: minmax(350px, 32%) minmax(0, 1fr);
  }
  .letter {
    max-width: 800px;
  }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .shell {
    grid-template-columns: 176px minmax(0, 1fr);
  }
  .rail > .brand {
    margin-inline: 16px;
    font-size: 20px;
  }
  .compose-button {
    margin-inline: 12px;
  }
  .account {
    gap: 6px;
  }
  .rail-organization {
    margin-inline: 15px;
  }
  .letter {
    padding-inline: 23px;
  }
  .byline .sender-address {
    display: block;
    margin: 0;
  }
  main {
    grid-template-columns: minmax(250px, 39%) minmax(0, 1fr);
  }
}
@media (max-width: 800px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 58px minmax(0, 1fr) auto;
  }
  .draft-tray {
    grid-column: 1;
    gap: 8px;
    padding: 5px 12px;
  }
  .draft-tray > :first-child {
    max-width: 40%;
    flex: none;
  }
  .top {
    grid-row: 1;
    grid-column: 1;
    padding-inline: 15px;
  }
  .top-brand {
    gap: 8px;
  }
  .top-mark {
    display: none;
  }
  .top-right {
    gap: 9px;
  }
  .language {
    padding-inline-start: 9px;
  }
  .mobile-only,
  .mobile-back {
    display: inline-flex;
  }
  .top-brand > span:not(.slash),
  .top-brand > .slash {
    display: none;
  }
  .top-brand > strong {
    font-family: var(--serif);
    font-size: 21px;
    letter-spacing: -0.02em;
  }
  .rail {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(272px, 85%);
    visibility: hidden;
    transform: translateX(-105%);
    transition:
      transform 0.18s,
      visibility 0s linear 0.18s;
  }
  .shell.menu-open .rail {
    /* The opening click moves keyboard focus here in the same event. */
    visibility: visible;
    transition-delay: 0s;
    transform: translateX(0);
  }
  [dir='rtl'] .rail {
    transform: translateX(105%);
  }
  .shell.menu-open .scrim {
    display: block;
    position: fixed;
    z-index: 2;
    inset: 0;
    background: #17352e66;
  }
  .rail > .brand {
    margin-bottom: 28px;
  }
  .rail-art {
    height: max(40px, min(155px, 14vh));
  }
  main {
    grid-column: 1;
    grid-row: 2;
    display: block;
    position: relative;
  }
  .list-pane,
  .reader {
    height: 100%;
  }
  .list-pane {
    border: 0;
  }
  .reader {
    display: none;
  }
  .detail-open .list-pane {
    display: none;
  }
  .detail-open .reader {
    display: block;
  }
  .list-head {
    padding: 17px 18px 0;
  }
  .list-head .folder-title h1 {
    font-size: 35px;
  }
  .search {
    margin-top: 14px;
  }
  .message-row {
    padding-block: 14px;
  }
  .letter {
    max-width: 660px;
    padding: 30px 22px;
  }
  .letter-header h2 {
    font-size: 35px;
  }
  .reader-tools {
    padding-inline: 11px;
  }
  .byline .sender-address {
    display: block;
    margin: 0;
  }
  .byline {
    margin: 19px 0;
  }
  .dateline {
    font-size: 9px;
  }
  .sender {
    font-size: 12px;
  }
  .row-subject {
    font-size: 14px;
  }
  .row-preview {
    font-size: 12px;
  }
  .compose-dialog {
    max-height: 95dvh;
  }
  .compose-head,
  .compose-footer,
  .compose-fields {
    padding-inline: 16px;
  }
  .compose-footer {
    align-items: flex-end;
  }
  .body-copy {
    font-size: 15px;
  }
  .mobile-compose {
    display: inline-flex;
  }
}
@media (max-width: 380px) {
  .top {
    padding-inline: 10px;
  }
  .top-right {
    gap: 5px;
  }
  .language {
    font-size: 11px;
  }
  .letter {
    padding-inline: 16px;
  }
  .message-row {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.title-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mobile-compose {
  color: #143a36;
  background: var(--lime);
}
.attachment-strip + .reply-end {
  margin-top: 18px;
}

.console-return {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--pine);
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
}
.console-return:hover {
  text-decoration: underline;
}
[dir='rtl'] .console-return svg {
  transform: scaleX(-1);
}
@media (max-width: 540px) {
  .top:has(.console-return) .top-brand > :is(span, strong) {
    display: none;
  }
}

html.mail-suspended #mail {
  visibility: hidden;
}

.issued-quote {
  border-inline-start: 3px solid var(--teal, #14776d);
  padding: 0.65rem 0.9rem;
  display: grid;
  gap: 0.5rem;
  background: var(--paper, #f7f7f1);
  overflow-wrap: anywhere;
}
.issued-quote > div {
  white-space: pre-line;
  font-size: 0.85rem;
}
.compose-fields .issued-quote label {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.compose-fields .issued-quote input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  flex: none;
}
