:root {
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  color: #e3e5e8;
  background: #17181a;
  font-size: 14px;
  letter-spacing: 0;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
#quick-reply { margin: 24px 28px 32px; padding: 16px 20px; border: 1px solid #3c4043; border-radius: 8px; background: transparent; flex-shrink: 0; }
.thread-message { border-top: 1px solid #3c4043; margin: 0 28px; }
.thread-message summary { display: flex; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-size: 13px; }
.thread-message summary strong { flex-shrink: 0; max-width: 45%; overflow-wrap: anywhere; }
.thread-message time { margin-left: auto; white-space: nowrap; color: #9aa0a6; }
.thread-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9aa0a6; }
.thread-count { font-weight: normal; color: #9aa0a6; }
.thread-reply { margin: 12px 0; padding: 8px 18px; border: 1px solid #5f6368; background: transparent; color: #e8eaed; }
.thread-frame { display: block; border: 0; width: 100%; height: 1px; }
#thread-before, #thread-after, #attachments, #message-header, #selected-message-header { flex-shrink: 0; }
#selected-message-header { padding: 18px 28px 12px; border-top: 1px solid #3c4043; }
.quick-reply-header { display: flex; align-items: center; gap: 12px; color: #9aa0a6; font-size: 13px; overflow-wrap: anywhere; }
.quick-reply-header svg { width: 18px; height: 18px; flex-shrink: 0; }
#quick-reply-text { width: 100%; min-height: 130px; resize: vertical; padding: 16px 0; border: 0; background: transparent; color: #e8eaed; font: 14px/1.5 Arial, sans-serif; }
#quick-reply-text:focus-visible { outline: none; }
#quick-reply:focus-within { border-color: #8ab4f8; }
.quick-reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#quick-reply-send { background: #8ab4f8; color: #202124; }
#quick-reply-error { color: #f28b82; overflow-wrap: anywhere; font-size: 13px; }
#quick-reply-error:empty { display: none; }
@media (max-width: 600px) { #quick-reply { margin: 16px; padding: 12px; } }
#compose { margin: 0 0 14px; flex-shrink: 0; justify-content: flex-start; }
#composer { position: fixed; inset: auto 24px 0 auto; margin: 0; z-index: 50; width: min(560px, calc(100% - 32px)); height: min(600px, calc(100dvh - 80px)); max-height: calc(100dvh - 16px); padding: 0; border: 1px solid #45474c; background: #202124; color: #e3e5e8; border-radius: 6px 6px 0 0; box-shadow: 0 8px 32px #0008; }
#composer.expanded { inset: 24px; width: min(1100px, calc(100% - 48px)); height: calc(100dvh - 48px); margin: auto; border-radius: 6px; }
#composer.minimized { inset: auto 24px 0 auto; width: min(320px, calc(100% - 32px)); height: 42px; margin: 0; overflow: hidden; }
#composer.minimized .compose-fields, #composer.minimized .toolbar:not(.compose-header) { display: none; }
#compose-form { display: flex; flex-direction: column; height: 100%; }
#compose-form .toolbar { flex-shrink: 0; }
#compose-form .compose-header { min-height: 42px; height: 42px; padding: 0 12px 0 16px; gap: 2px; background: #303134; }
.compose-header .icon-button { width: 28px; height: 28px; padding: 5px; }
.compose-header .icon-button svg { width: 16px; height: 16px; }
#compose-title { font-size: 13px; margin: 0; }
.compose-fields { display: flex; flex-direction: column; flex: 1; padding: 0 16px; min-height: 0; overflow-y: auto; }
.compose-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; min-height: 36px; flex-shrink: 0; border-bottom: 1px solid #383a3f; gap: 8px; color: #a0a3aa; font-size: 13px; }
.compose-recipients { grid-template-columns: 52px minmax(0, 1fr) auto auto; }
.recipient-input { position: relative; min-width: 0; }
#recipient-suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; max-height: 240px; overflow-y: auto; background: #303134; border: 1px solid #5f6368; box-shadow: 0 4px 12px #0006; }
#recipient-suggestions [role="option"] { padding: 9px 12px; cursor: pointer; overflow-wrap: anywhere; font-size: 13px; }
#recipient-suggestions [role="option"] small { display: block; color: #9aa0a6; }
#recipient-suggestions [aria-selected="true"], #recipient-suggestions [role="option"]:hover { background: #454746; }
.recipient-toggle { padding: 4px 0; border: 0; background: none; color: #a0a3aa; font-size: 12px; }
.recipient-toggle:hover { color: #e3e5e8; text-decoration: underline; }
.compose-row input { width: 100%; min-width: 0; padding: 10px 0; background: transparent; border: 0; color: #e3e5e8; }
#compose-from { overflow-wrap: anywhere; }
#compose-text { display: block; width: 100%; min-height: 120px; flex: 1; resize: none; border: 0; padding: 16px 0; background: transparent; color: #e3e5e8; font: 14px/1.5 Arial, sans-serif; }
#compose-error { color: #ffb4ab; font-size: 13px; overflow-wrap: anywhere; }
#compose-error:empty { display: none; }
#composer { background: #202124; color: #e8eaed; color-scheme: dark; border-color: #45474c; }
#compose-form .compose-header { background: #303134; }
#compose-form .toolbar { border-color: #3c4043; }
#compose-form .compose-row { border-color: #3c4043; color: #9aa0a6; }
#compose-form .compose-row input, #compose-text { color: #e8eaed; }
#compose-form .compose-row input:focus-visible { outline: none; }
#compose-form .compose-row:focus-within { border-bottom-color: #8ab4f8; }
#compose-text:focus-visible { outline: none; box-shadow: inset 0 -1px #8ab4f8; }
#compose-form .recipient-toggle { color: #9aa0a6; }
#compose-form .recipient-toggle:hover { color: #e8eaed; }
#compose-form .icon-button { color: #bdc1c6; }
#compose-form .icon-button:hover { background: #3c4043; }
#compose-form #send-message { background: #8ab4f8; color: #202124; }
#compose-form #send-message:hover { background: #aecbfa; }
#compose-form #compose-error { color: #f28b82; }
@media (max-width: 600px) {
  #composer, #composer.expanded { inset: 0; width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  #composer.minimized { inset: auto 8px 0 auto; width: calc(100% - 16px); height: 42px; }
  #expand-compose { display: none; }
}
.draft-attachment { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.draft-attachment span { min-width: 0; overflow-wrap: anywhere; }
.draft-attachment button { flex-shrink: 0; }
button,
input {
  font: inherit;
  color: inherit;
}
input::placeholder {
  color: #a0a3aa;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: .35;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
[contenteditable]:focus-visible {
  outline: 2px solid #8ab4f8;
  outline-offset: 2px;
}
button {
  border: 0;
  background: transparent;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke-width: 1.7;
}
[hidden] {
  display: none !important;
}
h1,
h2,
p {
  margin: 0;
}
.icon-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 4px;
}
.icon-button:hover:not(:disabled) {
  background: #303236;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  white-space: nowrap;
}
.brand > svg {
  color: #8ab4f8;
  width: 28px;
  height: 28px;
}
.brand h1 {
  font-size: 24px;
  font-weight: 500;
}
#login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-box {
  width: 100%;
  max-width: 340px;
}
.login-box .brand {
  margin-bottom: 34px;
}
.login-box label {
  display: block;
  margin-bottom: 9px;
  font-weight: 600;
}
.password-input {
  padding: 12px;
  border: 1px solid #55585e;
  border-radius: 4px;
  background: #242528;
  min-height: 43px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #286bbc;
  color: white;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 4px;
}
.login-box .primary {
  width: 100%;
}
#login-error {
  min-height: 36px;
  padding: 8px 0;
  color: #ffaaa3;
  font-size: 13px;
}
#mailbox {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-header {
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
}
.app-header > .brand {
  width: 210px;
  flex-shrink: 0;
}
#search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 800px;
  flex: 1;
  background: #2c2d30;
  min-width: 0;
  padding: 4px 10px 4px 16px;
  border-radius: 4px;
}
#search {
  min-width: 0;
  flex: 1;
  width: 100%;
  height: 36px;
  background: transparent;
  border: 0;
  outline: 0;
}
#logout {
  margin-left: auto;
}
.workspace {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 0 16px 16px 0;
}
#sidebar {
  width: 242px;
  flex-shrink: 0;
  padding: 8px 12px 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
#sidebar nav {
  flex-shrink: 0;
}
.folder {
  width: 100%;
  display: flex;
  gap: 14px;
  align-items: center;
  height: 40px;
  padding: 0 15px;
  border-radius: 4px;
  text-align: left;
}
.folder span {
  flex: 1;
}
.folder small {
  font-size: 12px;
}
.folder:hover {
  background: #303236;
}
.folder.active {
  background: #253b55;
  color: #c1d9ff;
  font-weight: 600;
}
#mail-usage {
  margin-top: auto;
  padding: 8px 10px 4px;
  flex-shrink: 0;
  font-size: 12px;
  color: #a0a3aa;
}
#mail-usage h2 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #383a3f;
  padding-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: #d1d3d8;
}
#mail-usage dl {
  margin: 0;
}
#mail-usage dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}
#mail-usage dt {
  min-width: 0;
}
#mail-usage dd {
  margin: 0;
  color: #e3e5e8;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#mail-usage dl > .storage-usage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px;
  margin-top: 6px;
}
#mail-usage progress {
  --meter-colour: #74b881;
  appearance: none;
  width: 100%;
  height: 4px;
  border: 0;
  background: #383a3f;
}
#mail-usage progress[data-level="medium"] { --meter-colour: #e7b651; }
#mail-usage progress[data-level="high"] { --meter-colour: #ef7979; }
#mail-usage progress::-webkit-progress-bar { background: #383a3f; }
#mail-usage progress::-webkit-progress-value { background: var(--meter-colour); }
#mail-usage progress::-moz-progress-bar { background: var(--meter-colour); }
.usage-billing { color: inherit; text-decoration: none; }
#mail-usage h2 > span { color: #a0a3aa; font-weight: 400; }
#mail-usage h3 { font-size: 10px; font-weight: 500; margin: 14px 0 8px; }
.usage-table { width: 100%; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
.usage-table th { text-align: left; font-weight: 400; }
.usage-table th, .usage-table td { padding: 5px 2px; }
.usage-table td, .usage-table thead th:not(:first-child) { text-align: right; white-space: nowrap; }
.usage-table td { color: #e3e5e8; }
.usage-table thead { font-size: 10px; color: #a0a3aa; border-bottom: 1px solid #383a3f; }
.usage-table tfoot { border-top: 1px solid #383a3f; color: #e3e5e8; }
.usage-table tfoot th, .usage-table tfoot td { padding-top: 8px; font-weight: 600; }
#mail-usage .storage-usage { font-size: 10px; }
#mail-usage .storage-usage dd { text-align: right; white-space: normal; }
#mail-usage progress { grid-column: 1 / -1; }
.mail-content {
  min-width: 0;
  flex: 1;
  background: #202124;
  display: flex;
  flex-direction: column;
  border: 1px solid #383a3f;
  border-radius: 4px;
  overflow: hidden;
}
#notice {
  padding: 10px 16px;
  background: #393225;
  color: #efd39d;
  font-size: 13px;
  border-bottom: 1px solid #605039;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 56px;
  padding: 8px 14px;
  border-bottom: 1px solid #383a3f;
  flex-shrink: 0;
}
.toolbar h1 {
  font-size: 16px;
  font-weight: 600;
  margin-right: 8px;
}
.toolbar-spacer {
  flex: 1;
}
#page-count {
  font-size: 12px;
  color: #a0a3aa;
  white-space: nowrap;
  margin-right: 8px;
}
#list-view,
#reader {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
#message-list {
  overflow-y: auto;
  flex: 1;
}
.message-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 47px;
  border-bottom: 1px solid #383a3f;
  background: #202124;
}
.message-row.unread {
  background: #2b2c30;
}
.message-row:hover {
  background: #35373c;
}
.message-row .star {
  margin-left: 9px;
  z-index: 1;
}
.star.active svg,
#star-message.active svg {
  fill: #e5ac26;
  stroke: #e5ac26;
}
.open-message {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 12px 18px 12px 7px;
  align-self: stretch;
}
.sender {
  width: 180px;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subject-line {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subject {
  color: #d1d3d8;
}
.preview {
  color: #a0a3aa;
  font-weight: 400;
}
.preview::before {
  content: " - ";
}
.message-date {
  font-size: 12px;
  color: #a0a3aa;
  white-space: nowrap;
  flex-shrink: 0;
}
.unread .sender,
.unread .subject,
.unread .message-date {
  font-weight: 600;
  color: #f1f3f4;
}
.attachment-indicator {
  width: 15px;
  height: 15px;
  color: #a0a3aa;
}
.empty {
  padding: 64px 20px;
  color: #a0a3aa;
  text-align: center;
}
.message-row[aria-busy=true] {
  opacity: .6;
}
#reader-scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
#message-header {
  padding: 22px 28px 12px;
}
#message-header h2 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
  margin-bottom: 20px;
}
.sender-details {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  line-height: 1.6;
}
.sender-details strong {
  font-weight: 600;
  overflow-wrap: anywhere;
  min-width: 0;
}
.sender-details time {
  color: #a0a3aa;
  font-size: 12px;
  white-space: nowrap;
}
.recipients {
  font-size: 12px;
  color: #a0a3aa;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 28px 14px;
}
#attachments:empty {
  padding: 0;
}
.attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #484b51;
  border-radius: 4px;
  text-align: left;
}
.attachment:hover {
  background: #303236;
}
.attachment span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment small {
  color: #a0a3aa;
  flex-shrink: 0;
}
#message-frame {
  border: 0;
  width: 100%;
  flex: none;
  height: 1px;
  background: #202124;
}
.mobile-only {
  display: none;
}
@media (min-width: 1400px) {
  .sender {
    width: 220px;
  }
}
@media (max-width: 1000px) {
  #sidebar {
    width: 195px;
  }
  .app-header > .brand {
    width: 165px;
  }
  .sender {
    width: 145px;
  }
  .open-message {
    gap: 10px;
  }
  .workspace {
    padding-right: 8px;
  }
}
@media (max-width: 700px) {
  .app-header {
    height: auto;
    min-height: 112px;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 8px 12px;
  }
  .app-header > .brand {
    width: auto;
    flex: 1;
    font-size: 19px;
  }
  .brand > svg {
    width: 23px;
    height: 23px;
  }
  .mobile-only {
    display: inline-flex;
  }
  #search-form {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  #logout {
    margin-left: 0;
  }
  .workspace {
    padding: 0;
  }
  .mail-content {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  #sidebar {
    display: none;
    position: absolute;
    left: 0;
    top: 112px;
    bottom: 0;
    z-index: 4;
    width: 242px;
    background: #17181a;
    padding-top: 12px;
    box-shadow: 3px 0 10px #0006;
  }
  #sidebar.open {
    display: flex;
  }
  #sidebar-shade {
    position: absolute;
    inset: 112px 0 0;
    background: #0008;
    z-index: 3;
  }
  .toolbar {
    padding: 6px 9px;
    min-height: 50px;
    gap: 2px;
  }
  .toolbar h1 {
    font-size: 15px;
  }
  #page-count {
    margin-right: 0;
  }
  .message-row {
    min-height: 76px;
  }
  .message-row .star {
    position: absolute;
    right: 9px;
    bottom: 4px;
    margin: 0;
    width: 30px;
    height: 30px;
  }
  .open-message {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 12px;
    padding: 12px 15px;
  }
  .sender {
    width: auto;
    font-size: 14px;
  }
  .subject-line {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-right: 30px;
    font-size: 13px;
  }
  .message-date {
    grid-row: 1;
    grid-column: 2;
  }
  .attachment-indicator {
    display: none;
  }
  .preview {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
  }
  .preview::before {
    content: "";
  }
  #message-header {
    padding: 18px 16px 10px;
  }
  #message-header h2 {
    font-size: 19px;
    margin-bottom: 12px;
  }
  .sender-details {
    display: block;
  }
  .sender-details time {
    display: block;
    margin-top: 4px;
  }
  #attachments {
    padding: 0 16px 12px;
  }
  .attachment {
    font-size: 12px;
  }
  .thread-message { margin: 0 16px; }
}
