@font-face {
  font-family: Urbanist;
  src: url("fonts/Urbanist-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* The mailbox stays out of the accessibility tree until the mode and session are known. */
body.booting > :not(.auth-screen) {
  display: none !important;
}
.auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 0;
}
.auth-card {
  width: min(100%, 420px);
  background: #ffffff;
  padding: 36px;
  border-radius: 24px;
  box-shadow: 0 18px 70px #25354608;
}
.auth-brand {
  margin-bottom: 26px;
}
.auth-brand .brand-symbol {
  background: #f1f4f5;
}
.auth-card h1 {
  font-size: 30px;
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 0 0 14px;
}
.auth-card p {
  line-height: 1.55;
  color: var(--muted);
}
.auth-card form {
  margin-top: 26px;
}
.auth-card label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 18px;
}
.auth-card input {
  width: 100%;
  height: 48px;
  border: 1px solid #d9e0e6;
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
  font-family: var(--aux);
  font-size: 16px;
  color: var(--ink);
}
.auth-card input[readonly] {
  background: #f4f6f8;
  color: #5a6875;
  font-size: 14px;
}
.password-field {
  display: flex;
  align-items: center;
  position: relative;
}
.auth-field { margin-bottom: 18px; }
.auth-card .auth-field label { margin-bottom: 8px; }
.password-field input {
  padding-right: 76px;
}
.password-field button {
  position: absolute;
  right: 4px;
  min-width: 68px;
  min-height: 44px;
  font-size: 13px;
  border-radius: 10px;
}
.auth-card .primary-button {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  margin-top: 2px;
}
.auth-card .form-error {
  color: #a13838;
}
.live-message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.live-mode .attachment-card {
  text-decoration: none;
  color: inherit;
}
.load-more {
  display: flex;
  margin: 20px auto;
  min-height: 44px;
  align-items: center;
}
.consultation-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .auth-screen {
    padding: 16px 10px;
  }
  .auth-card {
    padding: 28px 22px;
  }
  .auth-brand {
    margin-bottom: 28px;
  }
  .auth-card h1 {
    font-size: 28px;
  }
  .live-mode .reader-footer {
    display: none;
  }
  .live-mode .toolbar-position {
    display: none;
  }
  .live-mode .consultation-label {
    font-size: 11px;
  }
}
:root {
  font-family:
    Urbanist,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: 14px;
  color: #25272a;
  background: #f1f4f5;
  font-synthesis: none;
  --aux: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --muted: #68737d;
  --line: #edf0f2;
  --blue: #d7e1fe;
  --ink: #25272a;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0 24px 24px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
  opacity: 0.38;
}
button:active:not(:disabled) {
  transform: scale(0.97);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #718dcc;
  outline-offset: 3px;
}
input,
textarea {
  min-width: 0;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke-width: 1.65;
  vertical-align: middle;
}
button[data-icon],
a[data-icon] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #64717b;
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
.app-header {
  height: 83px;
  display: flex;
  align-items: center;
  position: relative;
  gap: 25px;
  padding: 0 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  letter-spacing: -0.7px;
  font-weight: 550;
}
.brand-symbol {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -3px;
  padding-right: 4px;
  color: #262a2e;
}
.brand-registration {
  font-size: 10px;
  vertical-align: super;
  margin-left: 2px;
  font-weight: 400;
}
.primary-tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: #ffffff80;
  border-radius: 30px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.primary-tabs button {
  padding: 9px 20px;
  border-radius: 24px;
  font-size: 13px;
  color: #68737b;
  font-weight: 500;
}
.primary-tabs button.active {
  background: white;
  color: #24282c;
  box-shadow: 0 2px 10px #24374405;
}
.header-end {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}
.header-end .icon-button {
  background: white;
  border: 1px solid #e9edef;
}
.header-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dee5e9;
  border: 3px solid #fff;
  color: #505e6b;
  font: 10px var(--aux);
  font-weight: 650;
}
.overview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 10px 29px;
  gap: 20px;
}
.eyebrow {
  font-size: 10px;
  color: #717c86;
  letter-spacing: 1.2px;
  margin: 0 0 7px;
  font-weight: 550;
}
.overview-bar h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0;
  font-weight: 500;
  letter-spacing: -1px;
}
.overview-bar h1 > span {
  color: #8e9daf;
}
.overview-status {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  flex-direction: column;
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e9ecee;
  border-radius: 25px;
  padding: 9px 13px;
  color: #475561;
  font-size: 11px;
  font-weight: 500;
}
.demo-badge > span {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #9ab18c;
}
.fiction-label {
  font: 9px var(--aux);
  color: #677581;
}
.workspace {
  height: calc(100dvh - 204px);
  min-height: 400px;
  display: grid;
  grid-template-columns: 202px 348px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
}
.sidebar {
  display: flex;
  flex-direction: column;
  padding: 4px 6px 0;
  overflow: auto;
  background: transparent;
}
.workspace-name {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 7px 8px 22px;
}
.company-mark {
  background: #e8edf0;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #536373;
  font-family: var(--aux);
  flex-shrink: 0;
}
.workspace-name strong {
  font-size: 12px;
  font-weight: 650;
}
.workspace-name small {
  display: block;
  font: 9px var(--aux);
  color: #687580;
  margin-top: 4px;
}
.compose-button {
  background: #25282c;
  color: white;
  border-radius: 28px;
  min-height: 43px;
  padding: 0 17px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  margin: 0 0 26px;
}
.compose-button svg {
  width: 17px;
  height: 17px;
}
.compose-button kbd {
  margin-left: auto;
  border: 1px solid #ffffff35;
  border-radius: 4px;
  font: 9px var(--aux);
  padding: 2px 4px;
  color: #d9dee2;
}
.nav-heading {
  font-size: 10px;
  color: #78838b;
  font-weight: 500;
  letter-spacing: 0.25px;
  margin: 0 13px 9px;
}
.folder-button {
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  width: 100%;
  padding: 8px 13px;
  border-radius: 25px;
  font-size: 13px;
  text-align: left;
  color: #5c6872;
  margin: 3px 0;
}
.folder-button svg {
  width: 17px;
  height: 17px;
  color: #6a7884;
}
.folder-button.active {
  background: #d7e1fe;
  color: #303e55;
  font-weight: 600;
}
.folder-button.active svg {
  color: #465f88;
}
.folder-count {
  font: 10px var(--aux);
  margin-left: auto;
  min-width: 22px;
  text-align: center;
  color: #697985;
}
.active .folder-count {
  color: #445b80;
  background: #ffffff65;
  border-radius: 15px;
  line-height: 20px;
}
.labels-heading {
  margin-top: 25px;
}
.label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ab5e9;
  flex-shrink: 0;
}
.label-dot.finance {
  background: #ec9d8d;
}
.label-dot.partner {
  background: #d9b85e;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 26px;
}
.demo-note {
  background: #e9eef3;
  border-radius: 16px;
  padding: 17px 16px;
  position: relative;
  overflow: hidden;
  min-height: 148px;
}
.demo-note-symbol {
  display: flex;
  color: #738797;
  margin-bottom: 11px;
}
.demo-note-symbol svg {
  width: 20px;
  height: 20px;
}
.demo-note p {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
  font-weight: 450;
}
.demo-note p strong {
  font-weight: 500;
}
.demo-note small {
  font: 10px/1.6 var(--aux);
  display: block;
  color: #637588;
  max-width: 140px;
}
.demo-note button {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  margin-top: 13px;
  padding: 0;
  color: #3d5670;
  font-weight: 600;
}
.demo-note button span {
  font-size: 15px;
}
.sidebar-option {
  display: flex !important;
  align-items: center;
  gap: 11px;
  padding: 15px 10px;
  font-size: 12px;
  color: #667784;
  width: 100%;
  margin-top: 8px;
}
.sidebar-option svg {
  width: 16px;
  height: 16px;
}
.account {
  border-top: 1px solid #e1e7eb;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 3px 0;
}
.account-avatar {
  background: #e4e9ec;
  border: 2px solid white;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  font: 9px var(--aux);
  font-weight: 600;
  color: #536775;
  flex-shrink: 0;
}
.account strong {
  font-size: 11px;
  font-weight: 600;
  display: block;
}
.account small {
  font: 9px var(--aux);
  color: #6a7b86;
  display: block;
  margin-top: 4px;
}
.status-dot {
  height: 5px;
  width: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #a4b891;
  margin-left: auto;
}
.inbox {
  background: #ffffffa6;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ffffff85;
}
.inbox-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 23px 18px;
  gap: 8px;
}
.inbox-heading h2 {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -0.7px;
  margin: 0;
}
.inbox-heading p {
  font: 10px var(--aux);
  color: #6f7b87;
  margin: 7px 0 0;
}
.inbox-heading .icon-button {
  background: #fff;
  border: 1px solid #eef1f3;
  width: 31px;
  height: 31px;
}
.inbox-heading svg {
  width: 15px;
  height: 15px;
}
.search-field {
  margin: 0 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #edf1f4;
  border: 1px solid #e7edf1;
  border-radius: 25px;
  padding: 10px 12px;
  color: #74828f;
  min-height: 39px;
}
.search-field svg {
  width: 16px;
  height: 16px;
}
.search-field input {
  border: 0;
  background: none;
  width: 100%;
  font-size: 12px;
  color: #3e5267;
}
.search-field input::placeholder {
  color: #788793;
}
.search-field kbd {
  font: 10px var(--aux);
  border: 1px solid #d6e0e8;
  border-radius: 3px;
  padding: 1px 4px;
}
.list-controls {
  padding: 17px 20px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ecf0f2;
}
.segmented {
  display: flex;
  gap: 5px;
  align-items: center;
}
.segmented button {
  padding: 7px 13px;
  font-size: 11px;
  border-radius: 20px;
  color: #778590;
  min-height: 29px;
}
.segmented button[aria-pressed="true"] {
  background: #fff;
  border: 1px solid #e6ecef;
  color: #344c5d;
}
.list-controls .icon-button {
  width: 27px;
  height: 27px;
  border: 1px solid #e9edef;
  background: white;
}
.list-controls svg {
  width: 13px;
  height: 13px;
}
.message-list {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 5px 9px 9px;
  scrollbar-width: thin;
  scrollbar-color: #d9e0e6 transparent;
}
.date-group {
  font: 9px var(--aux);
  color: #71808d;
  padding: 15px 15px 10px;
  letter-spacing: 0.1px;
}
.message-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  text-align: left;
  min-height: 108px;
  padding: 17px 12px;
  border-radius: 13px;
  border-bottom: 1px solid #eaf0f3;
}
.message-row.selected {
  background: #dfe7fa;
  border-color: transparent;
}
.row-avatar {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9eef4;
  color: #60738a;
  font: 9px var(--aux);
  font-weight: 550;
  flex-shrink: 0;
  margin-top: 1px;
}
.avatar-projects {
  background: #e4ebf6;
  color: #4d678c;
}
.avatar-finance {
  background: #f7e8e3;
  color: #945c4a;
}
.avatar-partner {
  background: #f3eedc;
  color: #8c7649;
}
.row-main {
  display: block;
  min-width: 0;
  flex: 1;
}
.row-top {
  display: flex;
  gap: 9px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  min-width: 0;
}
.row-from {
  font-size: 13px;
  letter-spacing: 0.05px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.unread .row-from {
  font-weight: 700;
}
.row-time {
  font: 9px var(--aux);
  white-space: nowrap;
  color: #6e7d8c;
}
.row-subject {
  font-size: 12px;
  font-weight: 500;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #465866;
  line-height: 1.4;
}
.unread .row-subject {
  color: #303d4b;
  font-weight: 600;
}
.row-preview {
  font: 10px/1.7 var(--aux);
  color: #687b8b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
}
.unread-dot {
  position: absolute;
  left: 7px;
  top: 10px;
  border-radius: 50%;
  width: 5px;
  height: 5px;
  background: #6a8ed0;
}
.row-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  color: #617387;
  font: 9px var(--aux);
}
.row-meta svg {
  width: 11px;
  height: 11px;
}
.row-meta .flagged {
  color: #9a7d31;
  margin-left: auto;
}
.list-footer {
  font: 9px var(--aux);
  text-align: center;
  color: #72818c;
  padding: 12px;
  border-top: 1px solid #ecf0f2;
}
.reader {
  background: white;
  border-radius: 20px;
  border: 1px solid #ffffff85;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.reader-toolbar {
  min-height: 67px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 0 26px;
  border-bottom: 1px solid #edf1f3;
}
.reader-toolbar .icon-button {
  background: white;
  border: 1px solid #e9eef0;
  width: 32px;
  height: 32px;
}
.reader-toolbar .icon-button svg {
  width: 16px;
  height: 16px;
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 7px;
  border-right: 1px solid #e9edef;
  padding-right: 14px;
  margin-right: 7px;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.toolbar-position {
  font: 9px var(--aux);
  color: #667887;
  margin-right: 8px;
  white-space: nowrap;
}
.reader-toolbar .flag-active {
  background: #fff4c5;
  border-color: #f4e6b7;
  color: #937326;
}
.message-scroll {
  padding: 28px clamp(26px, 3vw, 48px) 24px;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d9e0e6 transparent;
}
.message-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 15px;
}
.tag {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: #edf2ff;
  border-radius: 18px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 500;
  color: #51698d;
}
.tag .label-dot {
  width: 5px;
  height: 5px;
}
.reader-subject {
  font-size: 25px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.65px;
  margin: 0 0 25px;
  max-width: 650px;
}
.sender-block {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 23px;
  border-bottom: 1px solid #edf1f3;
}
.sender-avatar {
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4ebf6;
  color: #516e8d;
  font: 11px var(--aux);
  font-weight: 550;
  flex-shrink: 0;
}
.sender-details {
  flex: 1;
  min-width: 0;
}
.sender-details strong {
  font-size: 13px;
  font-weight: 650;
}
.sender-details small {
  display: block;
  font: 10px/1.6 var(--aux);
  color: #657888;
  overflow-wrap: anywhere;
  margin-top: 3px;
}
.sender-details .recipient {
  font: 10px var(--aux);
  color: #657888;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.sender-date {
  font: 9px var(--aux);
  color: #6c7e8c;
  white-space: nowrap;
  padding-top: 3px;
}
.message-body {
  font: 13px/1.85 var(--aux);
  color: #4b5a67;
  padding: 22px 0 12px;
  overflow-wrap: anywhere;
  max-width: 740px;
}
.message-body p {
  margin: 0 0 17px;
}
.message-body p:last-child {
  margin: 0;
}
.signature {
  font: 10px/1.7 var(--aux);
  color: #647784;
  padding: 5px 0 24px;
}
.signature strong {
  font:
    12px Urbanist,
    var(--aux);
  font-weight: 650;
  color: #455668;
}
.attachment-heading {
  font: 10px var(--aux);
  color: #687e90;
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 0 10px;
}
.attachment-heading svg {
  width: 12px;
  height: 12px;
}
.attachment-cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.attachment-card {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 12px;
  border: 1px solid #e6ecf2;
  background: #f9fbfd;
  border-radius: 12px;
  min-width: 210px;
  max-width: 100%;
  color: #415569;
}
.file-symbol {
  width: 30px;
  height: 36px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #e9effb;
  border: 1px solid #dfe7f5;
  font: 8px var(--aux);
  font-weight: 600;
  color: #6680a5;
  flex-shrink: 0;
}
.attachment-card strong {
  font-size: 11px;
  font-weight: 550;
  display: block;
  overflow-wrap: anywhere;
}
.attachment-card small {
  font: 9px var(--aux);
  display: block;
  margin-top: 5px;
  color: #6a7b8b;
}
.attachment-card > svg {
  width: 14px;
  height: 14px;
  color: #6f8294;
  margin-left: auto;
}
.reply-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding-bottom: 6px;
}
.secondary-button {
  border: 1px solid #e1e7ec;
  border-radius: 25px;
  padding: 10px 17px;
  background: white;
  color: #516675;
  font-size: 12px;
  font-weight: 500;
}
.secondary-button svg {
  width: 15px;
  height: 15px;
}
.reply-actions .secondary-button:first-child {
  background: #292d32;
  color: white;
  border-color: #292d32;
}
.reader-footer {
  display: flex;
  justify-content: space-between;
  font: 8px var(--aux);
  color: #647985;
  padding: 13px 26px;
  border-top: 1px solid #edf1f3;
  background: #fff;
}
.reader-footer span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.reader-footer svg {
  width: 11px;
  height: 11px;
}
.empty {
  min-height: 250px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 30px;
  color: #738794;
}
.empty > svg {
  width: 43px;
  height: 43px;
  stroke-width: 1.2;
  color: #a8bac8;
  margin-bottom: 18px;
}
.empty h2 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: #536b7d;
  margin: 0 0 10px;
}
.empty p {
  font: 12px/1.7 var(--aux);
  max-width: 300px;
  margin: 0 0 15px;
}
.empty .secondary-button {
  margin: 8px;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 15px;
  align-items: center;
  background: #293039;
  box-shadow: 0 8px 32px #293b4d26;
  border: 1px solid #ffffff30;
  border-radius: 30px;
  padding: 10px 13px 10px 20px;
  color: #fff;
  font: 12px var(--aux);
  max-width: calc(100vw - 30px);
}
.toast button {
  font-size: 11px;
  color: #bed4f4;
  font-weight: 550;
  white-space: nowrap;
}
.toast .icon-button {
  width: 26px;
  height: 26px;
  color: #ccd7e1;
}
.toast .icon-button svg {
  width: 14px;
  height: 14px;
}
dialog {
  border: 1px solid #e7ecf1;
  background: #fff;
  color: #334b5c;
  padding: 0;
  border-radius: 22px;
  width: min(680px, calc(100vw - 28px));
  box-shadow: 0 28px 100px #30465930;
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
dialog::backdrop {
  background: #26374740;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  padding: 21px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f9fb;
  border-bottom: 1px solid #eaf0f3;
}
.dialog-heading h2 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 0;
  color: #2e414f;
}
.dialog-heading small {
  display: block;
  font: 10px var(--aux);
  margin-top: 6px;
  color: #637b8f;
}
.compose-fields {
  padding: 0 24px;
}
.compose-fields label {
  min-height: 50px;
  border-bottom: 1px solid #edf1f3;
  display: flex;
  align-items: center;
  gap: 12px;
}
.compose-fields span {
  font-size: 13px;
  font-weight: 500;
  color: #697e90;
  min-width: 54px;
}
.compose-fields input {
  border: 0;
  outline-offset: 2px;
  background: white;
  width: 100%;
  font-size: 13px;
  color: #3e5568;
}
.compose-fields button {
  font-size: 12px;
  color: #657f99;
}
.compose-fields label[hidden] {
  display: none;
}
#body {
  min-height: 245px;
  width: 100%;
  border: 0;
  resize: vertical;
  outline-offset: -4px;
  padding: 24px;
  font: 13px/1.85 var(--aux);
  color: #3c5365;
}
.compose-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 23px;
  border-top: 1px solid #eaf0f3;
}
.primary-button {
  background: #252a30;
  border: 1px solid #252a30;
  color: #fff;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.primary-button svg {
  width: 15px;
  height: 15px;
}
.compose-footer > span {
  font: 9px var(--aux);
  color: #697e90;
  margin-left: auto;
}
.attach-control {
  position: relative;
  cursor: pointer;
}
.attach-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.attach-control:focus-within {
  outline: 3px solid #718dcc;
  outline-offset: 2px;
}
.compose-attachments {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 24px 15px;
}
.compose-attachments:empty {
  padding: 0;
}
.attachment-chip {
  border: 1px solid #dfe8f1;
  background: #f4f7fb;
  border-radius: 18px;
  padding: 5px 7px 5px 12px;
  font: 10px var(--aux);
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.attachment-chip span {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-chip button {
  width: 22px;
  height: 22px;
}
.attachment-chip svg {
  height: 12px;
  width: 12px;
}
.form-error {
  color: #a54438;
  background: #fff0ec;
  margin: 0 24px 15px;
  padding: 11px 14px;
  border-radius: 9px;
  font: 11px/1.6 var(--aux);
}
#info-dialog {
  width: min(460px, calc(100vw - 28px));
}
#info-content {
  padding: 24px;
  font: 12px/1.8 var(--aux);
  color: #627a8d;
}
#info-content strong {
  color: #344f65;
}
#info-content p:first-child {
  margin-top: 0;
}
#info-content p:last-child {
  margin-bottom: 0;
}
#info-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
#info-content td {
  padding: 8px 0;
  border-bottom: 1px solid #edf2f6;
}
#info-content td:last-child {
  text-align: right;
}
#info-content kbd {
  font: 11px var(--aux);
  padding: 2px 6px;
  border: 1px solid #d7e2ec;
  background: #f1f5f9;
  border-radius: 4px;
}
.preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.preference-row select {
  padding: 7px 10px;
  border: 1px solid #dbe4ed;
  background: white;
  color: #476580;
  border-radius: 15px;
  max-width: 150px;
}
.mobile-only {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -100px;
  left: 10px;
  z-index: 100;
  color: #345f9c;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
body.compact .message-row {
  min-height: 84px;
  padding-top: 12px;
  padding-bottom: 12px;
}
body.compact .row-preview {
  -webkit-line-clamp: 1;
}
body.large-text .message-body {
  font-size: 16px;
}
body.large-text .row-subject {
  font-size: 14px;
}
body.large-text .row-preview {
  font-size: 12px;
}
@media (hover: hover) and (pointer: fine) {
  .icon-button:hover {
    background: #f1f5fb;
    border-color: #d4deec;
    color: #405d7c;
  }
  .primary-tabs button:hover:not(.active) {
    background: #ffffff70;
  }
  .folder-button:hover:not(.active) {
    background: #e6edf3;
  }
  .message-row:hover:not(.selected) {
    background: #eef3f8;
  }
  .compose-button:hover,
  .primary-button:hover,
  .reply-actions .secondary-button:first-child:hover {
    background: #3e4753;
  }
  .secondary-button:hover {
    background: #f2f6fc;
  }
  .attachment-card:hover {
    border-color: #adbfde;
    background: #f4f7fc;
  }
  .sidebar-option:hover {
    color: #375c85;
  }
}
@media (min-width: 1550px) {
  body {
    padding-left: 32px;
    padding-right: 32px;
  }
  .workspace {
    grid-template-columns: 220px 390px minmax(0, 1fr);
    gap: 20px;
  }
  .app-header {
    height: 91px;
  }
  .overview-bar {
    padding-top: 20px;
    padding-bottom: 34px;
  }
  .overview-bar h1 {
    font-size: 34px;
  }
  .workspace {
    height: calc(100dvh - 222px);
  }
  .message-scroll {
    padding-top: 33px;
  }
  .message-row {
    min-height: 117px;
  }
  .row-preview {
    font-size: 11px;
  }
}
@media (max-width: 1190px) {
  body {
    padding: 0 18px 18px;
  }
  .workspace {
    grid-template-columns: 178px 310px minmax(0, 1fr);
    gap: 12px;
  }
  .primary-tabs button {
    padding: 9px 15px;
    font-size: 12px;
  }
  .brand {
    font-size: 19px;
  }
  .workspace-name {
    padding: 7px 2px 20px;
    gap: 7px;
  }
  .workspace-name strong {
    font-size: 11px;
  }
  .workspace-name small {
    font-size: 8px;
  }
  .sidebar {
    padding-left: 0;
    padding-right: 0;
  }
  .compose-button {
    font-size: 12px;
    padding: 0 13px;
  }
  .demo-note {
    padding: 14px;
  }
  .reader-toolbar {
    padding: 0 16px;
    gap: 5px;
  }
  .toolbar-group {
    padding-right: 9px;
    gap: 5px;
    margin-right: 3px;
  }
  .toolbar-position {
    display: none;
  }
  .message-scroll {
    padding: 25px;
  }
  .reader-subject {
    font-size: 23px;
  }
  .sender-date {
    display: none;
  }
  .inbox-heading {
    padding: 22px 20px 17px;
  }
  .row-from {
    font-size: 12px;
  }
  .message-row {
    gap: 8px;
    padding-left: 11px;
    padding-right: 11px;
  }
  .row-avatar {
    height: 27px;
    width: 27px;
    font-size: 8px;
  }
  .fiction-label {
    font-size: 8px;
  }
  .reader-footer > span:last-child {
    display: none;
  }
}
@media (max-width: 940px) {
  body {
    padding: 0 16px 16px;
  }
  .workspace {
    grid-template-columns: 305px minmax(0, 1fr);
    height: calc(100dvh - 190px);
  }
  .sidebar {
    display: none;
    position: fixed;
    top: 83px;
    bottom: 16px;
    left: 16px;
    width: 238px;
    background: #f2f5f8;
    padding: 18px;
    z-index: 5;
    border: 1px solid white;
    border-radius: 20px;
    box-shadow: 15px 5px 60px #30475d30;
  }
  .sidebar.open {
    display: flex;
  }
  .mobile-only {
    display: inline-flex !important;
  }
  .workspace-name .mobile-only {
    margin-left: auto;
  }
  .workspace-name strong {
    font-size: 12px;
  }
  .workspace-name small {
    font-size: 9px;
  }
  .inbox-heading > div {
    flex: 1;
  }
  .inbox-heading {
    padding: 22px 16px 18px;
  }
  .inbox-heading h2 {
    font-size: 21px;
  }
  .brand {
    font-size: 18px;
  }
  .primary-tabs {
    display: none;
  }
  .overview-bar {
    padding: 12px 4px 26px;
  }
  .overview-bar h1 {
    font-size: 28px;
  }
  .overview-bar .eyebrow {
    font-size: 9px;
  }
  .overview-status {
    gap: 6px;
  }
  .message-scroll {
    padding: 24px;
  }
  .reader-toolbar {
    min-height: 67px;
    padding: 0 12px;
    gap: 4px;
  }
  .reader-toolbar .mobile-only {
    display: none !important;
  }
  .reader-subject {
    font-size: 22px;
  }
  .demo-note {
    margin-top: 15px;
  }
  .sidebar-bottom {
    padding-top: 15px;
  }
  .sender-date {
    display: none;
  }
}
@media (max-width: 680px) {
  body {
    padding: 0 10px 10px;
  }
  .app-header {
    height: 64px;
    padding: 0 6px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-symbol {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .header-end {
    gap: 8px;
  }
  .header-end .icon-button {
    height: 30px;
    width: 30px;
  }
  .header-avatar {
    height: 31px;
    width: 31px;
  }
  .overview-bar {
    padding: 13px 7px 23px;
    align-items: flex-start;
  }
  .overview-bar h1 {
    font-size: 27px;
  }
  .eyebrow {
    font-size: 8px !important;
    letter-spacing: 0.8px;
  }
  .overview-status {
    padding-top: 17px;
  }
  .demo-badge {
    font-size: 0;
    padding: 0;
    background: none;
    border: 0;
  }
  .demo-badge > span {
    height: 7px;
    width: 7px;
  }
  .demo-badge::after {
    content: "Demonstração";
    font-size: 9px;
  }
  .fiction-label {
    display: none;
  }
  .workspace {
    height: calc(100dvh - 165px);
    display: block;
    min-height: 350px;
  }
  .sidebar {
    top: 70px;
    bottom: 10px;
    left: 10px;
    width: min(280px, 85vw);
  }
  .inbox {
    height: 100%;
    border-radius: 19px;
  }
  .reader {
    display: none;
    height: 100%;
    border-radius: 19px;
  }
  .workspace.reading .inbox {
    display: none;
  }
  .workspace.reading .reader {
    display: flex;
  }
  .inbox-heading {
    padding: 23px 18px 19px;
  }
  .inbox-heading h2 {
    font-size: 24px;
  }
  .inbox-heading p {
    font-size: 10px;
  }
  .search-field {
    margin: 0 20px;
  }
  .list-controls {
    padding: 16px 21px 13px;
  }
  .search-field input {
    font-size: 13px;
  }
  .message-list {
    padding: 5px 9px;
  }
  .message-row {
    padding: 18px 14px;
    gap: 11px;
    min-height: 114px;
  }
  .row-avatar {
    height: 32px;
    width: 32px;
    font-size: 10px;
  }
  .row-from {
    font-size: 14px;
  }
  .row-subject {
    font-size: 12px;
  }
  .row-preview {
    font-size: 11px;
  }
  .row-time {
    font-size: 10px;
  }
  .date-group {
    font-size: 10px;
  }
  .reader-toolbar {
    padding: 0 12px;
    gap: 5px;
    min-height: 61px;
  }
  .reader-toolbar .mobile-only {
    display: inline-flex !important;
  }
  .reader-toolbar .icon-button {
    width: 30px;
    height: 34px;
    border: 0;
  }
  .toolbar-group {
    padding-right: 6px;
    margin-right: 0;
    gap: 4px;
  }
  .toolbar-right {
    gap: 0;
  }
  .toolbar-right .icon-button {
    width: 26px;
  }
  .message-scroll {
    padding: 25px 21px;
  }
  .reader-subject {
    font-size: 25px;
  }
  .sender-details strong {
    font-size: 14px;
  }
  .message-body {
    font-size: 14px;
    line-height: 1.8;
    padding-top: 23px;
  }
  .message-body p {
    margin-bottom: 16px;
  }
  .attachment-card {
    width: 100%;
    min-width: 0;
  }
  .attachment-card strong {
    font-size: 12px;
  }
  .reader-footer {
    font-size: 8px;
    padding: 13px 20px;
  }
  .toast {
    font-size: 10px;
    gap: 10px;
    padding: 10px 10px 10px 15px;
    border-radius: 17px;
    bottom: 17px;
    min-width: 260px;
  }
  .toast button {
    font-size: 10px;
  }
  dialog {
    border-radius: 18px;
    max-height: calc(100dvh - 20px);
  }
  #composer {
    width: calc(100vw - 18px);
  }
  .dialog-heading {
    padding: 17px 20px;
  }
  .dialog-heading h2 {
    font-size: 20px;
  }
  .compose-fields {
    padding: 0 20px;
  }
  #body {
    min-height: 215px;
    padding: 21px;
  }
  .compose-footer {
    padding: 14px 16px;
    gap: 8px;
  }
  .compose-footer > span {
    font-size: 8px;
    max-width: 80px;
    line-height: 1.5;
  }
  .primary-button {
    font-size: 11px;
    padding: 10px 13px;
  }
  .reply-actions {
    margin-top: 26px;
  }
  .compose-button {
    font-size: 13px;
  }
  .demo-note {
    min-height: 140px;
  }
}
@media (max-width: 370px) {
  .overview-bar h1 {
    font-size: 24px;
  }
  .reader-toolbar {
    gap: 3px;
    padding: 0 8px;
  }
  .toolbar-group {
    gap: 1px;
    padding-right: 3px;
  }
  .reader-toolbar .icon-button {
    width: 27px;
  }
  .reader-toolbar .icon-button svg {
    width: 15px;
  }
  .toolbar-right .icon-button {
    width: 23px;
  }
  .compose-footer > span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  button:active:not(:disabled) {
    transform: none;
  }
  .primary-button:active {
    background: #434e5d;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .primary-tabs,
  .inbox {
    background: #fff;
  }
  dialog::backdrop {
    backdrop-filter: none;
    background: #26374780;
  }
}
@media (prefers-contrast: more) {
  :root {
    --muted: #34485b;
    --line: #bac9d9;
  }
  .row-preview,
  .row-time,
  .date-group,
  .sender-details small,
  .sender-details .recipient,
  .sender-date,
  .list-footer,
  .reader-footer,
  .fiction-label,
  .nav-heading {
    color: #425c74;
  }
  .message-row.selected {
    outline: 2px solid #678ac6;
    outline-offset: -2px;
  }
  .search-field {
    border: 1px solid #8fa7bc;
  }
  .reader,
  .inbox {
    border: 1px solid #9baebd;
  }
}
/* Keep every folder and the account visible on a normal laptop screen. */
.compose-button {
  white-space: nowrap;
  gap: 8px !important;
}
.demo-note {
  display: none;
}
.folder-button {
  min-height: 36px;
  margin: 2px 0;
}
.sidebar-bottom {
  padding-top: 15px;
}
@media (min-height: 1020px) and (min-width: 941px) {
  .demo-note {
    display: block;
  }
}
@media (max-width: 1190px) {
  .compose-button kbd {
    display: none;
  }
  .workspace-name small {
    font-size: 9px;
  }
}
@media (max-width: 680px) {
  .folder-button {
    min-height: 40px;
  }
  .compose-button kbd {
    display: block;
  }
  .overview-bar h1 {
    font-weight: 450;
  }
}
@media (max-width: 680px) {
  .reader-toolbar .toolbar-right {
    display: none;
  }
  .reader-toolbar .icon-button {
    width: 40px;
    height: 40px;
  }
  .reader-toolbar .icon-button svg {
    width: 17px;
    height: 17px;
  }
  .reader-toolbar {
    gap: 5px;
  }
  .toolbar-group {
    gap: 5px;
    padding-right: 7px;
  }
  .folder-button {
    min-height: 42px;
  }
  .inbox-heading .mobile-only {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 370px) {
  .reader-toolbar .icon-button {
    width: 35px;
  }
  .toolbar-group {
    gap: 2px;
    padding-right: 3px;
  }
  .reader-toolbar {
    gap: 3px;
  }
}
/* The shell follows the viewport; scrolling belongs to each content panel. */
body {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-header,
.overview-bar {
  flex-shrink: 0;
}
.workspace {
  flex: 1;
  min-height: 0;
  height: auto;
}
/* Persistent horizontal dock on mobile. Reserve space below every panel. */
.floating-dock {
  display: none;
}
@media (max-width: 680px) {
  body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  .sidebar {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  .floating-dock {
    display: block;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: min(calc(100% - 24px), 360px);
    border: 1px solid #36393d;
    border-radius: 24px;
    background: #202225;
    box-shadow: 0 6px 24px #263b5426;
    z-index: 8;
  }
  .dock-items {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
  }
  .dock-item {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
  }
  .dock-item-circle {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #33363b;
    color: #e4e8ed;
    display: grid;
    place-items: center;
  }
  .dock-item-circle svg {
    width: 22px;
    height: 22px;
  }
  .dock-item-primary .dock-item-circle {
    background: #f9fbfc;
    color: var(--ink);
  }
  .dock-item-active .dock-item-circle {
    background: var(--blue);
    color: #334f68;
  }
  .dock-item:focus-visible {
    outline-color: #b7cbff;
    outline-offset: 3px;
  }
  .toast {
    bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  }
}
@media (hover: hover) and (max-width: 680px) {
  .dock-item:hover .dock-item-circle {
    background: #454b54;
    color: #fff;
  }
  .dock-item-primary:hover .dock-item-circle,
  .dock-item-active:hover .dock-item-circle {
    background: #e7edff;
    color: var(--ink);
  }
}
@media (prefers-contrast: more) {
  .floating-dock {
    border-color: #a2b0bf;
  }
  .dock-item-circle {
    outline: 1px solid #8191a3;
    outline-offset: -1px;
    color: #fff;
  }
  .dock-item-primary .dock-item-circle,
  .dock-item-active .dock-item-circle {
    color: var(--ink);
  }
}

.sidebar-bottom {
  flex-shrink: 0;
}
.workspace-name {
  padding-bottom: 15px;
}
.compose-button {
  margin-bottom: 18px;
}
.overview-bar h1 .email-word {
  white-space: nowrap;
  color: inherit;
}
.overview-bar h1 .email-word > span {
  color: #8e9daf;
}
/* Consistent Lucide geometry, including refresh and attachments. */
svg {
  stroke-width: 1.8;
}
.icon-button svg {
  width: 19px;
  height: 19px;
}
.row-meta svg {
  width: 14px;
  height: 14px;
}
.attachment-heading svg {
  width: 15px;
  height: 15px;
}
.attachment-card > svg {
  width: 17px;
  height: 17px;
}
.compose-window-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
#composer {
  width: min(920px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
}
#composer.expanded {
  width: calc(100vw - 48px);
  height: calc(100dvh - 48px);
  max-height: none;
}
#composer.expanded #compose-form {
  height: 100%;
  display: flex;
  flex-direction: column;
}
#composer.expanded .composer-editor {
  flex: 1;
  min-height: 0;
}
#composer.expanded .rich-surface {
  flex: 1;
  max-height: none;
}
.composer-editor {
  display: flex;
  flex-direction: column;
}
.rich-editor {
  min-width: 0;
  color: #354b5e;
  background: #fff;
}
.format-toolbar {
  padding: 10px 20px;
  border-bottom: 1px solid #e7edf3;
  background: #f8fafc;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.format-main,
.format-extra {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.format-extra {
  padding-top: 7px;
  margin-top: 7px;
  border-top: 1px solid #e6ecf2;
}
.format-toolbar select {
  height: 32px;
  max-width: 155px;
  border: 1px solid #e0e7ef;
  border-radius: 6px;
  background: #fff;
  color: #4d6276;
  font-size: 11px;
  padding: 0 8px;
  outline-offset: 1px;
}
.format-toolbar [data-font] {
  width: 138px;
}
.format-toolbar [data-size] {
  width: 60px;
}
.format-toolbar [data-heading] {
  width: 115px;
}
.format-toolbar [data-line-height] {
  width: 62px;
}
.format-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 32px;
  border-radius: 5px;
  color: #5f7285;
  flex-shrink: 0;
  padding: 0;
}
.format-button svg {
  width: 17px;
  height: 17px;
}
.format-button[aria-pressed="true"] {
  background: #e0e9fa;
  color: #3563a3;
  box-shadow: inset 0 0 0 1px #cfdcf2;
}
.format-button:disabled {
  opacity: 0.35;
}
.format-divider {
  height: 19px;
  width: 1px;
  background: #dde5ee;
  margin: 0 6px;
}
.format-more {
  display: none;
  align-items: center;
  gap: 3px;
  min-height: 32px;
  font-size: 10px;
  border-radius: 5px;
  color: #536a81;
  padding: 0 6px;
}
.format-more svg {
  width: 13px;
  height: 13px;
}
.color-control {
  position: relative;
  width: 31px;
  height: 32px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #536779;
  margin: 0 2px;
  font-weight: 650;
}
.color-control > span {
  line-height: 1.3;
  border-bottom: 3px solid #566d83;
  font: 15px var(--aux);
  font-weight: 600;
}
.color-control.highlight-control > span {
  background: #fff0a6;
  border-bottom: 0;
  padding: 2px 4px;
  font-size: 13px;
}
.color-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  padding: 0;
}
.color-control:focus-within {
  outline: 3px solid #718dcc;
  outline-offset: 1px;
}
.rich-surface {
  min-height: 238px;
  max-height: 360px;
  overflow: auto;
  scrollbar-width: thin;
}
.ProseMirror {
  font:
    14px/1.5 Arial,
    sans-serif;
  min-height: 238px;
  padding: 23px 26px;
  outline-offset: -4px !important;
  color: #374151;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.ProseMirror:focus {
  outline: 2px solid #e3ebf8;
}
.ProseMirror p,
.rich-email p {
  margin: 0 0 13px;
}
.ProseMirror p:last-child,
.rich-email p:last-child {
  margin-bottom: 0;
}
.ProseMirror p.is-editor-empty:first-child:before {
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
  color: #8b99a8;
}
.ProseMirror h1,
.rich-email h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 18px 0 12px;
}
.ProseMirror h2,
.rich-email h2 {
  font-size: 22px;
  line-height: 1.35;
  margin: 16px 0 10px;
}
.ProseMirror h3,
.rich-email h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 14px 0 8px;
}
.ProseMirror ul,
.ProseMirror ol,
.rich-email ul,
.rich-email ol {
  padding-left: 26px;
  margin: 12px 0;
}
.ProseMirror li > p,
.rich-email li > p {
  margin: 4px 0;
}
.ProseMirror blockquote,
.rich-email blockquote {
  border-left: 3px solid #d2deec;
  color: #66798c;
  padding: 3px 0 3px 16px;
  margin: 20px 0;
  background: none;
}
.ProseMirror hr,
.rich-email hr {
  border: 0;
  border-top: 1px solid #dce5ef;
  margin: 21px 0;
}
.ProseMirror a,
.rich-email a {
  color: #2167ac;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.ProseMirror table,
.rich-email table {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0;
  table-layout: fixed;
}
.ProseMirror td,
.ProseMirror th,
.rich-email td,
.rich-email th {
  border: 1px solid #d2dde9;
  padding: 8px 10px;
  vertical-align: top;
  min-width: 35px;
  position: relative;
}
.ProseMirror th,
.rich-email th {
  background: #eef3f9;
  font-weight: 600;
  text-align: left;
}
.ProseMirror .selectedCell:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #91b1e940;
  pointer-events: none;
}
.ProseMirror img,
.rich-email img {
  max-width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
  margin: 12px 0;
}
.ProseMirror img.ProseMirror-selectednode {
  outline: 3px solid #89a9dc;
}
.ProseMirror pre,
.rich-email pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f0f4f8;
  padding: 12px;
  border-radius: 6px;
  font-family: monospace;
}
.ProseMirror code,
.rich-email code {
  font-family: monospace;
}
.ProseMirror section[data-mail-signature],
.rich-email section[data-mail-signature] {
  margin: 22px 0 17px;
  padding-top: 16px;
  border-top: 1px solid #e6edf4;
}
.editor-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  color: #788b9d;
  font: 9px var(--aux);
  border-top: 1px solid #eef2f6;
  flex-shrink: 0;
}
.editor-link-panel {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 13px 20px;
  background: #edf3fa;
  border-bottom: 1px solid #dce7f3;
}
.editor-link-panel label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  color: #506c85;
  flex: 1;
  min-width: 150px;
}
.editor-link-panel input {
  width: 100%;
  background: #fff;
  border: 1px solid #cfddec;
  border-radius: 5px;
  padding: 7px 9px;
  font-size: 12px;
  color: #375773;
}
.editor-link-panel .secondary-button {
  font-size: 10px;
  padding: 8px 13px;
}
.table-context {
  display: flex;
  align-items: center;
  gap: 5px;
  border-top: 1px solid #dce6f3;
  margin-top: 8px;
  padding-top: 7px;
}
.table-context > span {
  font-size: 10px;
  padding-right: 8px;
  color: #6c8196;
}
#signature-dialog {
  width: min(800px, calc(100vw - 36px));
}
.signature-settings-content {
  padding: 19px 24px 17px;
}
.settings-intro {
  font: 11px/1.7 var(--aux);
  color: #6b7f92;
  margin: 0 0 15px;
}
#signature-editor {
  border: 1px solid #dde6ef;
  border-radius: 9px;
  overflow: hidden;
}
#signature-editor .ProseMirror,
#signature-editor .rich-surface {
  min-height: 130px;
  max-height: 240px;
}
#signature-editor .ProseMirror {
  padding: 18px;
}
.signature-auto-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 19px;
  font-size: 12px;
  color: #4c6479;
}
.signature-auto-options label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.signature-auto-options input {
  accent-color: #5d7eb1;
  width: 15px;
  height: 15px;
  margin: 0;
}
.writing-defaults {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  border-top: 1px solid #e9eef3;
  margin-top: 21px;
  padding-top: 16px;
}
.writing-defaults h3 {
  width: 100%;
  font-size: 14px;
  font-weight: 550;
  margin: 0;
  color: #3d5366;
}
.writing-defaults p {
  width: 100%;
  font: 10px/1.6 var(--aux);
  color: #6e8294;
  margin: -4px 0 0;
}
.writing-defaults label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #526e86;
}
.writing-defaults select {
  background: #fff;
  border: 1px solid #d6e2ec;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 11px;
  color: #3c5c78;
  max-width: 170px;
}
.signature-settings-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #e8edf3;
  padding: 17px 24px;
  background: #fafbfc;
}
.signature-settings-footer > span {
  margin-right: auto;
  font: 9px var(--aux);
  color: #6f8396;
}
.signature-preference {
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #f6f9fc;
  margin: 20px 0;
}
.signature-preference strong {
  font:
    13px Urbanist,
    var(--aux);
  font-weight: 600;
}
.signature-preference p {
  font: 10px/1.6 var(--aux);
  margin: 5px 0 0 !important;
}
.signature-preference .secondary-button {
  font-size: 10px;
  padding: 8px 12px;
}
#compose-form > .compose-fields,
#compose-form > .compose-footer,
#compose-form > .dialog-heading {
  flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
  .format-button:hover:not(:disabled),
  .format-more:hover,
  .color-control:hover {
    background: #eaf0f8;
    color: #355a87;
  }
}
@media (max-width: 680px) {
  #composer,
  #signature-dialog {
    width: calc(100vw - 14px);
    max-height: calc(100dvh - 14px);
    border-radius: 16px;
  }
  #composer.expanded {
    width: calc(100vw - 14px);
    height: calc(100dvh - 14px);
  }
  .dialog-heading h2 {
    font-size: 18px;
  }
  .compose-window-actions {
    gap: 2px;
  }
  .compose-window-actions .icon-button {
    width: 30px;
    height: 34px;
  }
  .format-toolbar {
    padding: 9px 12px;
  }
  .format-main {
    gap: 3px;
  }
  .format-toolbar [data-font] {
    width: 118px;
  }
  .format-toolbar [data-size] {
    width: 51px;
  }
  .format-button {
    height: 34px;
    width: 29px;
  }
  .format-button svg {
    width: 16px;
    height: 16px;
  }
  .format-main .format-divider {
    display: none;
  }
  .format-main [data-format="strike"] {
    display: none;
  }
  .format-main .color-control {
    display: none;
  }
  .format-more {
    display: inline-flex;
    margin-left: auto;
  }
  .format-extra {
    display: none;
    gap: 4px;
  }
  .more-formatting .format-extra {
    display: flex;
  }
  .more-formatting .format-main .color-control,
  .more-formatting .format-main [data-format="strike"] {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ProseMirror {
    font-size: 14px;
    padding: 20px;
    min-height: 230px;
  }
  .rich-surface {
    max-height: 300px;
    min-height: 230px;
  }
  .editor-meta {
    font-size: 8px;
    padding: 8px 18px;
  }
  .editor-meta > span:first-child {
    max-width: 150px;
    line-height: 1.5;
  }
  .editor-link-panel {
    padding: 12px;
  }
  .editor-link-panel label {
    min-width: 120px;
  }
  .signature-settings-content {
    padding: 16px;
  }
  #signature-editor .ProseMirror,
  #signature-editor .rich-surface {
    min-height: 130px;
  }
  .signature-settings-footer {
    padding: 14px 16px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .signature-settings-footer > span {
    font-size: 8px;
    max-width: 105px;
    line-height: 1.5;
  }
  .signature-settings-footer .secondary-button {
    font-size: 11px;
    padding: 9px 13px;
  }
  .signature-auto-options {
    font-size: 11px;
    gap: 14px;
  }
  .writing-defaults {
    gap: 13px;
  }
  .writing-defaults label {
    width: 100%;
    justify-content: space-between;
  }
  .compose-footer {
    gap: 4px;
  }
  .compose-footer .icon-button {
    width: 30px;
  }
  .compose-footer > span {
    max-width: 70px;
    font-size: 8px;
  }
  .rich-email {
    overflow-wrap: anywhere;
  }
}
@media (prefers-contrast: more) {
  .format-toolbar {
    background: #f3f6fb;
    border-color: #90a5be;
  }
  .format-button {
    color: #334e6b;
  }
  .format-button[aria-pressed="true"] {
    outline: 1px solid #315f9e;
  }
  .editor-meta,
  .settings-intro {
    color: #415f7c;
  }
}
.rich-editor {
  position: relative;
}
.color-palette {
  position: absolute;
  z-index: 4;
  width: 220px;
  padding: 13px;
  background: #fff;
  border: 1px solid #d9e4ef;
  border-radius: 11px;
  box-shadow: 0 8px 30px #233c5929;
  color: #506983;
}
.color-palette strong {
  font-size: 11px;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.color-swatches {
  display: grid;
  grid-template-columns: repeat(5, 29px);
  gap: 9px;
  margin-bottom: 13px;
}
.color-swatches button {
  height: 28px;
  width: 29px;
  border: 1px solid #9eb0c840;
  border-radius: 50%;
}
.color-palette label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  gap: 10px;
  border-top: 1px solid #edf2f7;
  padding-top: 10px;
}
.color-palette input {
  width: 39px;
  height: 28px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.color-palette > button {
  font-size: 10px;
  color: #456b9b;
  padding: 7px 0 0;
  margin-top: 6px;
}
.ProseMirror p.is-empty:first-child:before {
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
  color: #8b99a8;
}

/* Mobile mail first: compact chrome, full-height list, floating glass dock. */
.mobile-demo-indicator {
  display: none;
}
.folder-dialog {
  inset: 0 auto 0 0;
  margin: 0;
  width: min(320px, calc(100vw - 44px));
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0 22px 22px 0;
  overflow: hidden;
  background: #f5f7f9;
}
.folder-dialog::backdrop {
  background: #1e293b38;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.folder-dialog .sidebar {
  position: static;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: max(14px, env(safe-area-inset-top, 0px)) 14px
    max(18px, env(safe-area-inset-bottom, 0px));
  border: 0;
  border-radius: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: none;
  background: transparent;
}
.folder-dialog .sidebar > * {
  flex-shrink: 0;
}
.folder-dialog .workspace-name {
  padding: 0 0 16px;
}
.folder-dialog #close-folders {
  width: 44px;
  height: 44px;
  margin-left: auto;
}
.folder-dialog .folder-button {
  min-height: 44px;
}
@media (max-width: 680px) {
  body {
    padding: 0;
  }
  .app-header {
    height: 48px;
    padding: 0 14px;
    gap: 8px;
  }
  .brand {
    font-size: 16px;
    gap: 7px;
    white-space: nowrap;
  }
  .brand-symbol {
    width: 27px;
    height: 27px;
    font-size: 18px;
  }
  .header-end {
    gap: 4px;
  }
  .header-end .header-avatar {
    display: none;
  }
  .header-end .icon-button {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
  }
  .mobile-demo-indicator {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 10px;
    color: var(--muted);
    padding: 0 5px;
  }
  .mobile-demo-indicator::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-right: 5px;
    border-radius: 50%;
    background: #8fa78c;
  }
  .overview-bar {
    display: none;
  }
  .workspace {
    min-height: 0;
    height: auto;
    padding: 0 6px;
  }
  .inbox {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 54px 46px minmax(0, 1fr);
    border: 0;
    border-radius: 18px 18px 0 0;
    background: #ffffffb8;
  }
  #open-folders {
    display: none !important;
  }
  .inbox-heading {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    padding: 0 0 0 14px;
    gap: 0;
    justify-content: flex-start;
    border-bottom: 1px solid var(--line);
  }
  .inbox-heading > div {
    flex: initial;
    min-width: 0;
  }
  .inbox-heading h2 {
    font-size: 18px;
    letter-spacing: -0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .inbox-heading p {
    display: none;
  }
  .inbox-heading #refresh {
    width: 40px;
    height: 44px;
    flex-shrink: 0;
    background: transparent;
    border: 0;
  }
  .inbox-heading #refresh svg {
    width: 17px;
    height: 17px;
  }
  .search-field {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: center;
    min-height: 44px;
    margin: 4px 10px 0;
    padding: 8px 13px;
    border-radius: 14px;
  }
  .search-field input {
    font-size: 16px;
  }
  .search-field kbd {
    display: none;
  }
  .list-controls {
    grid-column: 2;
    grid-row: 2;
    gap: 2px;
    padding: 0 6px 0 0;
    border-bottom: 1px solid var(--line);
  }
  .segmented {
    gap: 0;
  }
  .segmented button {
    min-height: 44px;
    padding: 0 9px;
    font-size: 12px;
    border: 0;
    background: transparent;
    border-radius: 10px;
  }
  .segmented button[aria-pressed="true"] {
    background: transparent;
    border: 0;
    color: var(--ink);
    font-weight: 700;
  }
  .list-controls .icon-button {
    width: 36px;
    height: 44px;
    background: transparent;
    border: 0;
  }
  .list-controls .icon-button svg {
    width: 17px;
    height: 17px;
  }
  .message-list {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 0;
    padding: 0 6px calc(86px + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }
  .date-group,
  .list-footer {
    display: none;
  }
  .message-row,
  body.compact .message-row {
    min-height: 84px;
    padding: 12px 9px;
    gap: 10px;
    border-radius: 12px;
  }
  .row-avatar {
    width: 34px;
    height: 34px;
    margin-top: 3px;
    font-size: 10px;
  }
  .row-top {
    min-height: 18px;
    margin-bottom: 2px;
    gap: 6px;
  }
  .row-from {
    font-size: 14px;
    line-height: 18px;
    font-weight: 550;
  }
  .row-subject {
    font-size: 13px;
    line-height: 19px;
  }
  .row-time {
    font-size: 10px;
  }
  .row-preview,
  body.compact .row-preview {
    display: block;
    margin-top: 1px;
    padding-right: 34px;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .row-meta {
    position: absolute;
    right: 9px;
    bottom: 12px;
    margin: 0;
    font-size: 0;
    gap: 6px;
  }
  .row-meta svg {
    width: 13px;
    height: 13px;
  }
  .unread-dot {
    left: 4px;
    top: 9px;
    width: 4px;
    height: 4px;
  }
  .reader {
    border: 0;
    border-radius: 18px 18px 0 0;
  }
  .reader-toolbar {
    min-height: 50px;
    padding: 0 9px;
  }
  .reader-footer {
    display: none;
  }
  .message-scroll {
    padding: 20px 18px calc(100px + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }
  .floating-dock {
    width: min(calc(100% - 28px), 328px);
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    border: 1px solid #ffffffbd;
    border-radius: 24px;
    background: #f5f8fcc2;
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow:
      0 6px 28px #263b5426,
      inset 0 1px 0 #ffffffc9;
  }
  .dock-items {
    padding: 8px;
  }
  .dock-item {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .dock-item-circle {
    background: #ffffff70;
    color: #526373;
  }
  .dock-item-primary .dock-item-circle {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 8px #263b5412;
  }
  .dock-item-active .dock-item-circle {
    background: var(--blue);
    color: #334f68;
  }
  .dock-item:focus-visible {
    outline-color: #718dcc;
  }

  .toast {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }
}
@media (hover: hover) and (max-width: 680px) {
  .dock-item:hover .dock-item-circle {
    background: #e4ebf4;
    color: #334f68;
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .floating-dock {
    background: #f5f8fc;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: #8fa4b9;
  }
  .dock-item-circle {
    background: #e5ebf2;
    color: #334f68;
  }
  .folder-dialog::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Account identity lives in one place; the sidebar stays about navigation. */
.sidebar-heading {
  display: none;
}
.logout-button {
  margin-top: 12px;
  min-height: 44px;
  border-top: 1px solid var(--line);
  justify-content: flex-start;
}
.account-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 5px 6px 5px 12px;
  min-height: 48px;
}
.account-identity {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 4px;
}
.account-identity strong {
  font-size: 12px;
  font-weight: 650;
}
.account-identity small {
  font: 10px var(--aux);
  color: var(--muted);
}
.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid white;
  background: #e4eaf0;
  color: #526373;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  font: 600 11px var(--aux);
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-menu {
  inset: 70px 24px auto auto;
  margin: 0;
  width: min(300px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid #e4e9ee;
  border-radius: 18px;
  box-shadow: 0 12px 48px #263b5426;
  background: #fff;
  max-height: calc(100dvh - 82px);
}
.account-menu::backdrop {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.account-menu-heading {
  padding: 12px 12px 14px;
}
.account-menu-heading strong,
.account-menu-heading small,
.account-menu-heading span {
  display: block;
}
.account-menu-heading strong {
  font-size: 14px;
  font-weight: 650;
}
.account-menu-heading small {
  margin-top: 5px;
  font: 11px var(--aux);
  color: var(--muted);
}
.account-menu-heading span {
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
}
.account-menu > button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
  font-size: 13px;
}
.account-menu > button small {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.account-menu > button svg {
  width: 17px;
  height: 17px;
  color: #687b8b;
}
.account-menu-divider {
  height: 1px;
  margin: 5px 10px;
  background: var(--line);
}
.account-settings-form {
  display: grid;
  gap: 18px;
}
.account-settings-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.account-settings-form input {
  border: 1px solid #dce4eb;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}
.account-settings-form input[readonly] {
  background: #f3f6f8;
  color: var(--muted);
}
.account-settings-form p {
  font-size: 12px;
  color: var(--muted);
}
.account-settings-form .primary-button {
  justify-self: start;
}
.photo-settings {
  text-align: center;
}
.photo-preview {
  width: 96px;
  height: 96px;
  font-size: 28px;
  margin: 0 auto 20px;
}
.photo-settings > p {
  font-size: 13px;
  color: var(--muted);
}
.photo-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 8px;
}
.demo-exit {
  width: min(460px, calc(100vw - 32px));
  padding: 34px;
  text-align: center;
}
.demo-exit-mark {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -4px;
  margin-bottom: 20px;
}
.demo-exit h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.demo-exit p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 16px 0 24px;
}
/* Match the message-list scrollbar on desktop and in the mobile drawer. */
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: #d9e0e6 transparent;
  overflow-x: hidden;
}
.sidebar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background: transparent;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #d9e0e6;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}
.sidebar::-webkit-scrollbar-button,
.sidebar::-webkit-scrollbar-corner {
  display: none;
  background: transparent;
}
.folder-dialog .sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 0 10px 10px;
  font-size: 16px;
}
@media (hover: hover) {
  .account-trigger:hover,
  .account-menu > button:hover {
    background: #edf2f8;
  }
}
@media (max-width: 680px) {
  .account-identity {
    display: none;
  }
  .account-trigger {
    padding: 0;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
  .profile-avatar {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }
  .account-menu {
    top: 52px;
    right: 12px;
    max-height: calc(100dvh - 64px);
  }
  .photo-preview {
    width: 96px;
    height: 96px;
    font-size: 28px;
  }
}
@media (prefers-contrast: more) {
  .account-menu,
  .profile-avatar {
    border-color: #8fa4b9;
  }
  .folder-dialog .sidebar {
    scrollbar-color: #677d93 transparent;
  }
}
