:root {
    color-scheme: light;
    --wm-bg: #f6f7fb;
    --wm-panel: #ffffff;
    --wm-panel-raised: #ffffff;
    --wm-panel-soft: #f7f7fc;
    --wm-panel-tint: #f0efff;
    --wm-text: #171827;
    --wm-text-soft: #45475d;
    --wm-muted: #85889b;
    --wm-line: #e6e7ef;
    --wm-line-strong: #d8d9e4;
    --wm-brand: #5b55df;
    --wm-brand-strong: #4540bd;
    --wm-brand-soft: #efeeff;
    --wm-brand-veil: rgba(91, 85, 223, .08);
    --wm-danger: #c33d49;
    --wm-danger-soft: #fff0f1;
    --wm-success: #16785b;
    --wm-success-soft: #ebf8f3;
    --wm-warning: #9a6a07;
    --wm-warning-soft: #fff8e4;
    --wm-shadow-sm: 0 6px 20px rgba(32, 34, 71, .07);
    --wm-shadow-lg: 0 28px 80px rgba(31, 32, 68, .14);
    --wm-radius-sm: 10px;
    --wm-radius: 16px;
    --wm-radius-lg: 24px;
    --wm-font: "Tajawal", "Cairo", Tahoma, Arial, sans-serif;
    --wm-base-size: 17px;
    --wm-sidebar-width: 292px;
    --wm-list-width: clamp(420px, 29vw, 510px);
    --wm-row-height: 94px;
    --wm-header-bg: rgba(255, 255, 255, .95);
    --wm-header-bg-strong: rgba(255, 255, 255, .94);
}

html[data-wm-font="standard"] {
    --wm-base-size: 16px
}

html[data-wm-font="large"] {
    --wm-base-size: 17px
}

html[data-wm-density="compact"] {
    --wm-row-height: 76px
}

* {
    box-sizing: border-box
}

[hidden] {
    display: none !important
}

html {
    min-height: 100%;
    background: var(--wm-bg);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--wm-bg);
    color: var(--wm-text);
    font: 500 var(--wm-base-size)/1.55 var(--wm-font);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.wm-body--authenticated {
    overflow: hidden
}

body[data-wm-page="compose"],
body[data-wm-page="settings"] {
    overflow: auto
}

a {
    color: var(--wm-brand);
    text-decoration: none
}

a:hover {
    color: var(--wm-brand-strong)
}

button,
input,
textarea,
select {
    font: inherit
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent
}

button {
    color: inherit
}

h1,
h2,
h3,
p {
    margin-top: 0
}

:focus-visible {
    outline: 3px solid rgba(91, 85, 223, .28);
    outline-offset: 2px;
}

.wm-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.wm-skip-link {
    position: fixed;
    z-index: 200;
    inset: 10px auto auto 10px;
    padding: 10px 16px;
    border-radius: 10px;
    transform: translateY(-150%);
    background: var(--wm-brand);
    color: #fff;
    transition: transform .18s ease;
}

.wm-skip-link:focus {
    transform: translateY(0)
}

.wm-app {
    min-height: 100vh
}

.wm-inbox-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--wm-list-width) var(--wm-sidebar-width);
    grid-template-areas: "reader mailbox sidebar";
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    direction: ltr;
    background: var(--wm-panel);
}

.wm-inbox-shell>* {
    direction: rtl
}

.wm-sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: var(--wm-panel-raised);
}

.wm-sidebar__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 76px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--wm-line);
}

.wm-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    color: var(--wm-text);
}

.wm-brand:hover {
    color: var(--wm-text)
}

.wm-brand__mark,
.wm-login__mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(145deg, #6c65ed, var(--wm-brand-strong));
    color: #fff;
    box-shadow: 0 9px 24px rgba(91, 85, 223, .28);
    font-size: 19px;
}

.wm-brand__copy {
    display: grid;
    min-width: 0;
    line-height: 1.25
}

.wm-brand__copy strong {
    overflow: hidden;
    font-size: 20px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-brand__copy small {
    margin-top: 3px;
    color: var(--wm-muted);
    font-size: 12.5px;
    font-weight: 500;
}

.wm-compose-button {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    margin: 20px 16px 22px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6861e8, #544ed8);
    color: #fff;
    box-shadow: 0 12px 25px rgba(91, 85, 223, .24);
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.wm-compose-button:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #5f58df, #4741c8);
    color: #fff;
    box-shadow: 0 15px 30px rgba(91, 85, 223, .30);
}

.wm-compose-button kbd {
    min-width: 24px;
    padding: 3px 6px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 7px;
    background: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .9);
    font: 600 11px/1 var(--wm-font);
    text-align: center;
}

.wm-folders {
    display: grid;
    gap: 3px;
    min-height: 0;
    padding: 0 10px 20px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--wm-line-strong) transparent;
}

.wm-nav-title {
    padding: 14px 12px 6px;
    color: var(--wm-muted);
    font-size: 12px;
    font-weight: 700;
}

.wm-folder {
    position: relative;
    display: grid;
    grid-template-columns: 23px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    padding: 8px 11px;
    border-radius: 11px;
    color: var(--wm-text-soft);
    font-size: 15px;
    font-weight: 600;
    transition: color .15s ease, background .15s ease, transform .15s ease;
}

.wm-folder>i {
    width: 21px;
    color: var(--wm-muted);
    font-size: 16px;
    text-align: center
}

.wm-folder:hover {
    transform: translateX(-1px);
    background: var(--wm-panel-soft);
    color: var(--wm-text)
}

.wm-folder.is-active {
    background: var(--wm-brand-soft);
    color: var(--wm-brand-strong);
    font-weight: 700
}

.wm-folder.is-active>i {
    color: var(--wm-brand)
}

.wm-folder__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.wm-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--wm-panel-soft);
    color: var(--wm-text-soft);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.wm-folder.is-active .wm-badge {
    background: var(--wm-brand);
    color: #fff
}

.wm-sidebar__footer {
    margin-top: auto;
    padding: 10px;
    border-top: 1px solid var(--wm-line);
}

.wm-sidebar-action {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--wm-text-soft);
    cursor: pointer;
    font-weight: 600;
    text-align: start;
}

.wm-sidebar-action:hover {
    background: var(--wm-panel-soft);
    color: var(--wm-text)
}

.wm-sidebar-action i {
    color: var(--wm-muted)
}

.wm-profile {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    padding: 10px 8px;
    border-radius: 12px;
    background: var(--wm-panel-soft);
}

.wm-profile__identity {
    display: grid;
    min-width: 0;
    line-height: 1.25
}

.wm-profile__identity strong,
.wm-profile__identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.wm-profile__identity strong {
    font-size: 14px;
    font-weight: 700
}

.wm-profile__identity small {
    margin-top: 4px;
    color: var(--wm-muted);
    font-size: 11px
}

.wm-profile form,
.wm-reader__actions form {
    margin: 0
}

.wm-icon-button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--wm-text-soft);
    cursor: pointer;
    transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
}

.wm-icon-button:hover {
    border-color: var(--wm-line);
    background: var(--wm-panel-soft);
    color: var(--wm-text)
}

.wm-icon-button:active {
    transform: scale(.95)
}

.wm-icon-button--danger:hover {
    border-color: #f0c6ca;
    background: var(--wm-danger-soft);
    color: var(--wm-danger)
}

.wm-icon-button.is-starred {
    color: #e19b13
}

.wm-icon-button.is-disabled {
    pointer-events: none;
    opacity: .35
}

.wm-mobile-only {
    display: none
}

.wm-desktop-only {
    display: inline-grid
}

.wm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 9px 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.wm-button:hover {
    transform: translateY(-1px)
}

.wm-button--primary {
    background: var(--wm-brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(91, 85, 223, .19)
}

.wm-button--primary:hover {
    background: var(--wm-brand-strong);
    color: #fff;
    box-shadow: 0 11px 25px rgba(91, 85, 223, .25)
}

.wm-button--quiet {
    border-color: var(--wm-line-strong);
    background: var(--wm-panel);
    color: var(--wm-text)
}

.wm-button--quiet:hover {
    background: var(--wm-panel-soft);
    color: var(--wm-text)
}

.wm-button--danger {
    border-color: #f1c7cb;
    background: var(--wm-danger-soft);
    color: var(--wm-danger)
}

.wm-button--wide {
    width: 100%
}

.wm-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 12px 16px;
    padding: 11px 13px;
    border: 1px solid;
    border-radius: 11px;
    font-size: 14px;
}

.wm-alert--success {
    border-color: #bde5d4;
    background: var(--wm-success-soft);
    color: var(--wm-success)
}

.wm-alert--error {
    border-color: #efc6ca;
    background: var(--wm-danger-soft);
    color: var(--wm-danger)
}

.wm-kicker {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--wm-brand);
    font-size: 12.5px;
    font-weight: 700;
}

.wm-muted,
.wm-help {
    color: var(--wm-muted)
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--wm-line-strong);
    border-radius: 11px;
    background: var(--wm-panel);
    color: var(--wm-text);
    padding: 11px 13px;
    font-weight: 500;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--wm-brand);
    box-shadow: 0 0 0 4px var(--wm-brand-veil);
    outline: none;
}

textarea {
    resize: vertical
}

.wm-mailbox {
    grid-area: mailbox;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border-inline: 1px solid var(--wm-line);
    background: var(--wm-panel-raised);
}

.wm-mailbox__header {
    position: relative;
    z-index: 4;
    padding: 16px 18px 0;
    border-bottom: 1px solid var(--wm-line);
    background: var(--wm-header-bg);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.wm-mailbox__titlebar {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
}

.wm-mailbox__titlebar>div {
    flex: 1;
    min-width: 0
}

.wm-mailbox__titlebar h1 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

.wm-mailbox__titlebar span {
    display: block;
    margin-top: 4px;
    color: var(--wm-muted);
    font-size: 12.5px
}

.wm-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 14px;
}

.wm-search>i {
    position: absolute;
    z-index: 1;
    inset-inline-start: 14px;
    color: var(--wm-muted);
    font-size: 14px
}

.wm-search input {
    height: 43px;
    padding-inline: 40px 46px;
    border-color: transparent;
    background: var(--wm-panel-soft);
    font-size: 14.5px;
}

.wm-search kbd {
    position: absolute;
    inset-inline-end: 10px;
    min-width: 25px;
    padding: 3px 7px;
    border: 1px solid var(--wm-line);
    border-radius: 7px;
    background: var(--wm-panel);
    color: var(--wm-muted);
    font: 600 11px/1.2 var(--wm-font);
    text-align: center;
}

.wm-filter-tabs {
    display: flex;
    gap: 6px;
    margin-top: 11px;
    overflow-x: auto;
    scrollbar-width: none
}

.wm-filter-tabs::-webkit-scrollbar {
    display: none
}

.wm-filter-tabs a {
    position: relative;
    padding: 9px 10px 11px;
    color: var(--wm-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.wm-filter-tabs a::after {
    content: "";
    position: absolute;
    inset: auto 8px -1px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: transparent;
}

.wm-filter-tabs a.is-active {
    color: var(--wm-brand);
    font-weight: 700
}

.wm-filter-tabs a.is-active::after {
    background: var(--wm-brand)
}

.wm-message-form {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column
}

.wm-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 51px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--wm-line);
    background: var(--wm-panel);
}

.wm-check-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wm-muted);
    font-size: 12.5px;
    white-space: nowrap
}

.wm-check-all input,
.wm-message-card__check input {
    width: 17px;
    height: 17px;
    padding: 0;
    accent-color: var(--wm-brand)
}

.wm-selection-count {
    color: var(--wm-muted);
    font-size: 12px;
    white-space: nowrap
}

.wm-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-inline-start: auto
}

.wm-toolbar__actions .wm-icon-button {
    width: 34px;
    height: 34px;
    border-radius: 9px
}

.wm-move-control select {
    width: 100px;
    height: 34px;
    padding: 4px 8px;
    border-color: transparent;
    background: var(--wm-panel-soft);
    font-size: 11.5px
}

.wm-message-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--wm-line-strong) transparent;
}

.wm-message-card {
    position: relative;
    display: grid;
    grid-template-columns: 28px 42px minmax(0, 1fr) auto 30px;
    align-items: center;
    gap: 10px;
    min-height: var(--wm-row-height);
    padding: 9px 12px 9px 9px;
    border-bottom: 1px solid var(--wm-line);
    background: var(--wm-panel);
    transition: background .15s ease, box-shadow .15s ease;
}

.wm-message-card::before {
    content: "";
    position: absolute;
    inset: 15px 0 15px auto;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: transparent;
}

.wm-message-card:hover {
    z-index: 1;
    background: var(--wm-panel-soft)
}

.wm-message-card.is-unread {
    background: #fafaff
}

.wm-message-card.is-unread::before {
    background: var(--wm-brand)
}

.wm-message-card.is-selected {
    background: var(--wm-brand-soft);
    box-shadow: inset 0 0 0 1px rgba(91, 85, 223, .08)
}

.wm-message-card.is-keyboard-target {
    z-index: 2;
    box-shadow: inset 0 0 0 2px rgba(91, 85, 223, .42)
}

.wm-message-card__check {
    display: grid;
    place-items: center
}

.wm-message-card__main {
    display: grid;
    min-width: 0;
    align-content: center;
    color: var(--wm-text)
}

.wm-message-card__main:hover {
    color: var(--wm-text)
}

.wm-message-card__sender,
.wm-message-card__subject,
.wm-message-card__preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.wm-message-card__sender {
    font-size: 14.5px;
    font-weight: 700
}

.wm-message-card__subject {
    margin-top: 3px;
    color: var(--wm-text);
    font-size: 14.5px;
    font-weight: 600
}

.wm-message-card__count {
    color: var(--wm-muted);
    font-size: 12px;
    font-weight: 700
}

.wm-message-card__preview {
    margin-top: 2px;
    color: var(--wm-muted);
    font-size: 12px;
    direction: ltr;
    text-align: right
}

.wm-message-card.is-unread .wm-message-card__sender,
.wm-message-card.is-unread .wm-message-card__subject {
    font-weight: 700
}

.wm-message-card__meta {
    display: grid;
    align-self: stretch;
    justify-items: end;
    align-content: space-between;
    padding-block: 5px;
    color: var(--wm-muted);
    font-size: 11.5px;
    white-space: nowrap;
}

.wm-message-card__meta i {
    font-size: 12px
}

.wm-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wm-brand-soft);
    color: var(--wm-brand-strong);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.wm-avatar--large {
    width: 52px;
    height: 52px;
    font-size: 20px
}

.wm-avatar--tone-1 {
    background: #eeedff;
    color: #4d47cb
}

.wm-avatar--tone-2 {
    background: #e6f7f2;
    color: #11755b
}

.wm-avatar--tone-3 {
    background: #fff0e6;
    color: #ae581f
}

.wm-avatar--tone-4 {
    background: #fcebf2;
    color: #a93e6b
}

.wm-avatar--tone-5 {
    background: #e8f2ff;
    color: #286aa9
}

.wm-avatar--tone-6 {
    background: #f3ebff;
    color: #7445b3
}

.wm-avatar--tone-7 {
    background: #fff5d8;
    color: #8a660b
}

.wm-avatar--tone-8 {
    background: #e8f6fa;
    color: #23768a
}

.wm-star-button {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #a4a7b5;
    cursor: pointer;
}

.wm-star-button:hover {
    background: var(--wm-panel-soft);
    color: #d89510
}

.wm-star-button.is-active {
    color: #e3a017
}

.wm-empty {
    display: grid;
    place-items: center;
    min-height: 360px;
    padding: 50px 24px;
    text-align: center;
    color: var(--wm-muted);
}

.wm-empty__icon,
.wm-reader-state__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: var(--wm-panel-soft);
    color: #b1b3bf;
    font-size: 27px;
}

.wm-empty h2 {
    margin: 18px 0 5px;
    color: var(--wm-text);
    font-size: 20px;
    font-weight: 700
}

.wm-empty p {
    margin-bottom: 20px;
    font-size: 14px
}

.wm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    border-top: 1px solid var(--wm-line);
    color: var(--wm-muted);
    font-size: 12px;
}

.wm-pagination .wm-icon-button {
    width: 32px;
    height: 32px
}

.wm-reader {
    grid-area: reader;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: var(--wm-panel);
}

.wm-reader__topbar {
    position: relative;
    z-index: 12;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    min-height: 62px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--wm-line);
    background: var(--wm-header-bg-strong);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--wm-line), 0 8px 24px rgba(24, 31, 55, .035);
}

.wm-reader__navigation {
    display: flex;
    gap: 3px;
    margin-inline-end: auto
}

.wm-reader__actions {
    display: flex;
    align-items: center;
    gap: 4px
}

.wm-reader-back {
    visibility: hidden
}

.wm-reader__content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--wm-line-strong) transparent;
}

.wm-reader__header {
    width: min(900px, calc(100% - 64px));
    margin: 0 auto;
    padding: 42px 0 28px;
    border-bottom: 1px solid var(--wm-line);
}

.wm-reader__header h1 {
    margin: 0 0 30px;
    font-size: clamp(25px, 2.4vw, 36px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.015em;
}

.wm-sender {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px
}

.wm-sender__identity {
    display: grid;
    min-width: 0;
    line-height: 1.25
}

.wm-sender__identity strong {
    overflow: hidden;
    font-size: 15.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap
}

.wm-sender__identity span {
    overflow: hidden;
    margin-top: 4px;
    color: var(--wm-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap
}

.wm-sender time {
    color: var(--wm-muted);
    font-size: 12px;
    white-space: nowrap
}

.wm-details {
    margin-top: 19px;
    color: var(--wm-muted);
    font-size: 13px
}

.wm-details summary {
    width: max-content;
    cursor: pointer;
    font-weight: 600
}

.wm-details dl {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 6px 12px;
    margin-bottom: 0
}

.wm-details dt {
    color: var(--wm-text-soft);
    font-weight: 700
}

.wm-details dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere
}

.wm-full-headers {
    margin-block-start: 12px;
    padding-block-start: 10px;
    border-block-start: 1px solid var(--wm-line)
}

.wm-full-headers summary {
    color: var(--wm-brand)
}

.wm-full-headers section {
    margin-block-start: 12px
}

.wm-full-headers h3 {
    margin: 0 0 7px;
    color: var(--wm-text);
    font-size: 13px
}

.wm-full-headers dl {
    grid-template-columns: minmax(115px, 180px) minmax(0, 1fr);
    max-height: 380px;
    overflow: auto
}

.wm-remote-images {
    display: flex;
    align-items: center;
    gap: 9px;
    width: min(900px, calc(100% - 64px));
    margin: 18px auto 0;
    padding: 11px 14px;
    border: 1px solid #f0dda3;
    border-radius: 11px;
    background: var(--wm-warning-soft);
    color: var(--wm-warning);
    font-size: 13px;
}

.wm-remote-images a {
    margin-inline-start: auto;
    color: inherit;
    font-weight: 700;
    white-space: nowrap
}

.wm-message-body {
    width: min(900px, calc(100% - 64px));
    min-height: 220px;
    margin: 0 auto;
    padding: 34px 0 52px;
    overflow-wrap: anywhere;
    font-family: Arial, Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
}

.wm-message-body pre {
    margin: 0;
    white-space: pre-wrap;
    font: inherit
}

.wm-message-body img {
    max-width: 100%;
    height: auto
}

.wm-message-body table {
    max-width: 100%;
    border-collapse: collapse
}

.wm-message-body td,
.wm-message-body th {
    padding: 7px;
    border: 1px solid var(--wm-line)
}

.wm-message-body blockquote {
    margin-inline: 0;
    padding-inline: 18px;
    border-inline-start: 4px solid var(--wm-line);
    color: var(--wm-muted);
}

.wm-thread-heading {
    width: min(920px, calc(100% - 48px));
    margin: 0 auto;
    padding: 30px 0 18px
}

.wm-thread-heading__row {
    display: flex;
    align-items: center;
    gap: 12px
}

.wm-thread-heading h1 {
    margin: 4px 0 0;
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1.35
}

.wm-thread-count {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--wm-panel-soft);
    color: var(--wm-muted);
    font-size: 12px;
    font-weight: 700;
}

.wm-thread {
    display: grid;
    gap: 10px;
    width: min(920px, calc(100% - 48px));
    margin: 0 auto 18px
}

.wm-thread-message {
    position: relative;
    border: 1px solid var(--wm-line);
    border-radius: 17px;
    background: var(--wm-panel);
    box-shadow: 0 5px 22px rgba(32, 37, 55, .045);
}

.wm-thread-message.is-expanded {
    border-color: var(--wm-line-strong)
}

.wm-thread-message__header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 72px;
    padding: 10px 12px
}

.wm-thread-message__summary {
    display: grid;
    grid-template-columns: 46px minmax(130px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: start;
    cursor: pointer;
}

.wm-thread-message__summary time {
    direction: rtl;
    color: var(--wm-muted);
    font-size: 12px;
    white-space: nowrap
}

.wm-thread-message__summary .wm-sender__identity {
    min-width: 0
}

.wm-thread-message__summary .wm-sender__identity strong,
.wm-thread-message__summary .wm-sender__identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-thread-message__preview {
    overflow: hidden;
    color: var(--wm-muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-thread-message.is-expanded .wm-thread-message__preview {
    display: none
}

.wm-thread-message.is-expanded .wm-thread-message__summary {
    grid-template-columns: 46px minmax(0, 1fr) auto
}

.wm-thread-message__quick-actions {
    display: flex;
    align-items: center;
    gap: 2px
}

.wm-thread-message__quick-actions form {
    margin: 0
}

.wm-thread-message__content {
    padding: 0 24px 24px;
    border-top: 1px solid var(--wm-line)
}

.wm-thread-message__content[hidden] {
    display: none
}

.wm-thread-message__content .wm-details {
    margin: 14px 0 4px
}

.wm-thread-message__content .wm-message-body {
    width: 100%;
    padding: 25px 0 16px
}

.wm-thread-message__content .wm-remote-images {
    width: 100%;
    margin: 14px 0 0
}

.wm-thread-message__content .wm-attachments {
    width: 100%
}

.wm-attachments {
    width: min(900px, calc(100% - 64px));
    margin: 0 auto;
    padding: 25px 0 34px;
    border-top: 1px solid var(--wm-line);
}

.wm-attachments__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 15px;
}

.wm-attachments__header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700
}

.wm-attachments__header h2 i {
    margin-inline-end: 6px;
    color: var(--wm-brand)
}

.wm-attachments__header h2 span {
    color: var(--wm-muted);
    font-size: 13px
}

.wm-attachments__bulk,
.wm-attachment__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px
}

.wm-attachments__bulk a,
.wm-attachments__bulk button,
.wm-attachment__actions a,
.wm-attachment__actions button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 9px;
    border: 1px solid var(--wm-line);
    border-radius: 9px;
    background: var(--wm-panel);
    color: var(--wm-text-soft);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.wm-attachments__bulk form,
.wm-attachment__actions form {
    display: contents
}

.wm-attachments__bulk:is(a, button):hover,
.wm-attachment__actions:is(a, button):hover {
    border-color: var(--wm-brand);
    color: var(--wm-brand-strong)
}

.wm-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 10px;
    padding: 0;
}

.wm-attachment-wrap {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--wm-line);
    border-radius: 14px;
    background: var(--wm-panel-soft);
}

.wm-attachment__thumbnail {
    display: grid;
    grid-row: 1 / 3;
    place-items: center;
    width: 76px;
    height: 76px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 11px;
    background: var(--wm-panel);
    color: var(--wm-brand);
    cursor: pointer;
}

.wm-attachment__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.wm-attachment__thumbnail--icon {
    font-size: 30px;
    cursor: default
}

.wm-attachment__meta {
    display: grid;
    min-width: 0;
    gap: 3px
}

.wm-attachment__meta strong,
.wm-attachment__meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.wm-attachment__meta strong {
    color: var(--wm-text);
    font-size: 13px
}

.wm-attachment__meta small {
    color: var(--wm-muted);
    font-size: 11px;
    direction: ltr;
    text-align: right
}

.wm-attachment-preview {
    width: min(960px, calc(100vw - 28px));
    height: min(760px, calc(100vh - 28px));
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--wm-line);
    border-radius: 18px;
    background: var(--wm-panel);
    color: var(--wm-text);
    box-shadow: 0 28px 80px rgba(9, 15, 35, .34);
}

.wm-attachment-preview::backdrop {
    background: rgba(8, 12, 24, .68);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px)
}

.wm-attachment-preview>header,
.wm-attachment-preview>footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 58px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--wm-line);
}

.wm-attachment-preview>footer {
    justify-content: flex-end;
    border-top: 1px solid var(--wm-line);
    border-bottom: 0
}

.wm-attachment-preview [data-preview-content] {
    display: grid;
    place-items: center;
    height: calc(100% - 118px);
    overflow: auto;
    background: var(--wm-panel-soft);
}

.wm-attachment-preview [data-preview-content] img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.wm-attachment-preview [data-preview-content] iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff
}

.wm-reader__replybar {
    display: flex;
    gap: 10px;
    width: min(900px, calc(100% - 64px));
    margin: 0 auto;
    padding: 25px 0 52px;
    border-top: 1px solid var(--wm-line);
}

.wm-reader-state {
    display: grid;
    place-items: center;
    flex: 1;
    align-content: center;
    max-width: 580px;
    margin: auto;
    padding: 40px 30px;
    text-align: center;
    color: var(--wm-muted);
}

.wm-reader-state h2 {
    margin: 19px 0 6px;
    color: var(--wm-text);
    font-size: 22px;
    font-weight: 700
}

.wm-reader-state p {
    max-width: 480px;
    margin-bottom: 21px
}

.wm-reader-state--error .wm-reader-state__icon {
    background: var(--wm-danger-soft);
    color: var(--wm-danger)
}

.wm-shortcuts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px 13px;
    color: var(--wm-muted);
    font-size: 12px
}

.wm-shortcuts span {
    display: inline-flex;
    align-items: center;
    gap: 5px
}

.wm-shortcuts kbd {
    min-width: 25px;
    padding: 3px 6px;
    border: 1px solid var(--wm-line-strong);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: var(--wm-panel-soft);
    color: var(--wm-text-soft);
    font: 600 11px/1.1 var(--wm-font);
}

.wm-quick-reply {
    width: min(920px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 46px
}

.wm-quick-reply__prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 16px 19px;
    border: 1px solid var(--wm-line-strong);
    border-radius: 16px 16px 0 0;
    background: var(--wm-panel);
}

.wm-quick-reply__prompt a {
    flex: 1;
    color: var(--wm-muted)
}

.wm-quick-reply__toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border: 1px solid var(--wm-line-strong);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: var(--wm-panel-soft);
}

.wm-menu-root {
    position: relative
}

.wm-menu-check {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--wm-text);
    font-size: 13px;
    cursor: pointer
}

.wm-menu-check:hover {
    background: var(--wm-panel-soft)
}

.wm-menu-check input {
    width: 16px;
    height: 16px
}

.wm-action-menu {
    position: absolute;
    z-index: 60;
    inset-block-start: calc(100% + 6px);
    inset-inline-end: 0;
    display: grid;
    width: max-content;
    min-width: 255px;
    max-width: min(320px, calc(100vw - 32px));
    padding: 7px;
    border: 1px solid var(--wm-line);
    border-radius: 13px;
    background: var(--wm-panel);
    box-shadow: 0 18px 52px rgba(25, 31, 52, .18);
}

.wm-action-menu[hidden] {
    display: none
}

.wm-action-menu a,
.wm-action-menu button {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--wm-text);
    font: inherit;
    font-size: 13px;
    text-align: start;
    cursor: pointer;
}

.wm-action-menu a:hover,
.wm-action-menu button:hover {
    background: var(--wm-panel-soft)
}

.wm-action-menu>form {
    margin: 0
}

.wm-action-menu i {
    width: 18px;
    color: var(--wm-muted);
    text-align: center
}

.wm-action-menu__separator {
    height: 1px;
    margin: 5px 4px;
    background: var(--wm-line)
}

.wm-action-menu--footer {
    inset-block-start: auto;
    inset-block-end: calc(100% + 7px)
}

.wm-emoji-picker {
    position: relative
}

.wm-emoji-menu {
    position: absolute;
    z-index: 20;
    inset-block-start: calc(100% + 6px);
    inset-inline-start: 0;
    display: grid;
    grid-template-columns: repeat(6, 34px);
    gap: 3px;
    padding: 8px;
    border: 1px solid var(--wm-line);
    border-radius: 12px;
    background: var(--wm-panel);
    box-shadow: 0 15px 40px rgba(25, 31, 52, .18);
}

.wm-emoji-menu[hidden] {
    display: none
}

.wm-emoji-menu button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    font-size: 19px;
    cursor: pointer;
}

.wm-emoji-menu button:hover {
    background: var(--wm-panel-soft)
}

.wm-account-menu {
    margin-inline-start: auto
}

.wm-account-menu__panel {
    inset-inline-end: 0;
    inset-inline-start: auto;
    min-width: 245px
}

.wm-account-menu__panel>strong {
    display: block;
    padding: 10px 13px;
    overflow: hidden;
    color: var(--wm-muted);
    font-size: 12px;
    text-overflow: ellipsis
}

.wm-account-menu__panel form {
    display: contents
}

.wm-account-menu__panel .is-danger {
    color: var(--wm-danger)
}

.wm-account-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--wm-line);
    border-radius: 999px;
    background: var(--wm-panel-raised);
    color: var(--wm-text);
    font-size: 12.5px;
    white-space: nowrap;
    max-width: 100%;
}

.wm-account-chip>i.fa-user {
    color: var(--wm-brand);
    font-size: 12px
}

.wm-account-chip__email {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px
}

.wm-account-chip__copy {
    border: 0;
    background: transparent;
    color: var(--wm-muted);
    cursor: pointer;
    padding: 2px;
    font-size: 12px;
    line-height: 1
}

.wm-account-chip__copy:hover {
    color: var(--wm-brand)
}

.wm-account-chip--reader {
    margin-inline-start: auto
}

.wm-toast-region {
    position: fixed;
    z-index: 140;
    inset-inline-start: 24px;
    inset-block-end: 24px;
    display: grid;
    gap: 8px;
    width: min(390px, calc(100vw - 48px));
    pointer-events: none;
}

.wm-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid color-mix(in srgb, var(--wm-text) 14%, transparent);
    border-radius: 12px;
    background: var(--wm-text);
    color: var(--wm-panel);
    box-shadow: 0 15px 45px rgba(20, 27, 52, .24);
    animation: wm-toast-in .2s ease-out;
}

@keyframes wm-toast-in {
    from {
        opacity: 0;
        transform: translateY(8px)
    }
}

.wm-compose-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1160px, 100%);
    margin: 0 auto 18px;
}

.wm-compose-topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.wm-compose-topbar__actions form {
    margin: 0
}

.wm-settings-page {
    min-height: 100vh;
    padding: 24px;
    background: var(--wm-bg)
}

.wm-account-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    width: min(1280px, 100%);
    min-height: calc(100vh - 112px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--wm-line);
    border-radius: var(--wm-radius-lg);
    background: var(--wm-panel);
    box-shadow: var(--wm-shadow-sm);
}

.wm-account-nav {
    padding: 30px 20px;
    border-inline-end: 1px solid var(--wm-line);
    background: var(--wm-panel-soft)
}

.wm-account-nav h1 {
    margin: 4px 8px 25px;
    font-size: 29px
}

.wm-account-nav nav {
    display: grid;
    gap: 5px
}

.wm-account-nav nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 9px 13px;
    border-radius: 11px;
    color: var(--wm-text-soft);
    font-weight: 700;
}

.wm-account-nav nav a i {
    width: 22px;
    color: var(--wm-muted);
    text-align: center
}

.wm-account-nav nav a:hover,
.wm-account-nav nav a.is-active {
    background: var(--wm-brand-soft);
    color: var(--wm-brand-strong)
}

.wm-account-nav nav a.is-active i {
    color: var(--wm-brand)
}

.wm-account-content {
    min-width: 0;
    padding: 35px clamp(22px, 4vw, 52px) 60px
}

.wm-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 27px;
}

.wm-section-heading h2 {
    margin: 3px 0 4px;
    font-size: 28px
}

.wm-section-heading p {
    margin: 0;
    color: var(--wm-muted)
}

.wm-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px
}

.wm-setting-card {
    display: grid;
    align-content: start;
    gap: 13px;
    padding: 21px;
    border: 1px solid var(--wm-line);
    border-radius: 18px;
    background: var(--wm-panel-raised);
}

.wm-setting-card--new {
    border-style: dashed;
    background: var(--wm-panel-soft)
}

.wm-setting-card__title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px
}

.wm-setting-card__title>i {
    color: var(--wm-brand)
}

.wm-setting-card__title .wm-pill {
    margin-inline-start: auto
}

.wm-setting-card>label,
.wm-contact-card form>label {
    display: grid;
    gap: 5px;
    color: var(--wm-text-soft);
    font-size: 13px;
    font-weight: 700;
}

.wm-setting-card input,
.wm-setting-card select,
.wm-setting-card textarea,
.wm-contact-card input,
.wm-contact-card textarea {
    background: var(--wm-panel)
}

.wm-setting-card .wm-check {
    display: flex;
    align-items: center;
    gap: 8px
}

.wm-setting-card .wm-check input {
    width: 17px;
    height: 17px
}

.wm-setting-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px
}

.wm-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--wm-brand-soft);
    color: var(--wm-brand-strong);
    font-size: 11px;
    font-weight: 700;
}

.wm-settings-search {
    display: flex;
    min-width: min(360px, 100%)
}

.wm-settings-search input {
    min-width: 0;
    border-radius: 12px 0 0 12px
}

.wm-settings-search button {
    width: 48px;
    border: 0;
    border-radius: 0 12px 12px 0;
    background: var(--wm-brand);
    color: #fff;
    cursor: pointer
}

.wm-contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 20px;
    align-items: start
}

.wm-contact-groups {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid var(--wm-line);
    border-radius: 16px;
    background: var(--wm-panel-soft);
}

.wm-contact-group-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px
}

.wm-contact-group-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid var(--wm-line);
    border-radius: 999px;
    background: var(--wm-panel);
    color: var(--wm-text-soft);
    font-size: 13px;
    font-weight: 700;
}

.wm-contact-group-tabs a.is-active {
    border-color: var(--wm-brand);
    background: var(--wm-brand-soft);
    color: var(--wm-brand-strong)
}

.wm-contact-group-tabs small {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding-inline: 5px;
    border-radius: 10px;
    background: var(--wm-panel-soft);
    color: var(--wm-muted);
}

.wm-contact-group-create {
    display: flex;
    gap: 8px
}

.wm-contact-group-create input {
    flex: 1;
    min-width: 0
}

.wm-contact-group-manage {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.wm-contact-group-manage form {
    display: flex
}

.wm-contact-group-manage input {
    width: 170px;
    border-radius: 10px 0 0 10px
}

.wm-contact-group-manage button {
    width: 38px;
    border: 1px solid var(--wm-line);
    background: var(--wm-panel);
    color: var(--wm-muted);
    cursor: pointer;
}

.wm-contact-group-manage button:last-child {
    border-radius: 0 10px 10px 0
}

.wm-contact-group-manage button.is-danger {
    color: var(--wm-danger)
}

.wm-contact-list {
    display: grid;
    gap: 10px
}

.wm-contact-card {
    overflow: hidden;
    border: 1px solid var(--wm-line);
    border-radius: 15px;
    background: var(--wm-panel);
}

.wm-contact-card summary {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    cursor: pointer;
    list-style: none;
}

.wm-contact-card summary::-webkit-details-marker {
    display: none
}

.wm-contact-card summary span:nth-child(2) {
    display: grid;
    min-width: 0
}

.wm-contact-card summary small {
    overflow: hidden;
    color: var(--wm-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr
}

.wm-contact-card[open] summary {
    border-bottom: 1px solid var(--wm-line);
    background: var(--wm-panel-soft)
}

.wm-contact-card[open] summary>i {
    transform: rotate(180deg)
}

.wm-contact-card form {
    display: grid;
    gap: 11px;
    padding: 17px
}

.wm-contact-photo {
    display: block;
    object-fit: cover
}

.wm-contact-group-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--wm-line);
    border-radius: 12px;
}

.wm-contact-group-picker legend {
    padding-inline: 5px;
    color: var(--wm-text-soft);
    font-size: 13px;
    font-weight: 700
}

.wm-contact-group-picker label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wm-text-soft);
    font-size: 13px
}

.wm-contact-group-picker input {
    width: 16px;
    height: 16px
}

.wm-field-help {
    color: var(--wm-muted);
    font-size: 11.5px
}

.wm-empty-card {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 45px 20px;
    border: 1px dashed var(--wm-line-strong);
    border-radius: 16px;
    color: var(--wm-muted);
    text-align: center;
}

.wm-empty-card i {
    font-size: 30px
}

.wm-empty-card strong {
    color: var(--wm-text)
}

.wm-folder-create {
    display: flex;
    gap: 10px;
    margin-bottom: 20px
}

.wm-folder-create input {
    flex: 1
}

.wm-folder-settings-list {
    display: grid;
    gap: 8px
}

.wm-folder-setting {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 10px 15px;
    border: 1px solid var(--wm-line);
    border-radius: 14px;
}

.wm-folder-setting__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--wm-brand-soft);
    color: var(--wm-brand);
}

.wm-folder-setting>span:nth-child(2) {
    display: grid
}

.wm-folder-setting small {
    color: var(--wm-muted);
    direction: ltr
}

.wm-folder-setting form {
    display: flex;
    align-items: center;
    gap: 6px
}

.wm-folder-setting form input {
    width: 190px
}

.wm-folder-setting form button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: var(--wm-panel-soft);
    cursor: pointer;
}

.wm-folder-setting form button.is-danger {
    color: var(--wm-danger)
}

.wm-preferences-form {
    display: grid;
    max-width: 760px;
    border-block: 1px solid var(--wm-line)
}

.wm-preferences-form>label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
    align-items: center;
    gap: 25px;
    padding: 20px 4px;
    border-bottom: 1px solid var(--wm-line);
    font-weight: 700;
}

.wm-preferences-form>label small {
    display: block;
    margin-top: 3px;
    color: var(--wm-muted);
    font-weight: 500
}

.wm-preferences-form>.wm-button {
    justify-self: start;
    margin-top: 22px
}

.wm-import-form {
    max-width: 560px
}

.wm-import-form .wm-import-file {
    display: grid;
    gap: 5px;
    color: var(--wm-text-soft);
    font-size: 13px;
    font-weight: 700
}

.wm-import-form .wm-file-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 9px 14px;
    border: 1px dashed var(--wm-line-strong);
    border-radius: 11px;
    background: var(--wm-panel);
    color: var(--wm-brand);
}

.wm-import-form .wm-file-button:hover {
    border-color: var(--wm-brand)
}

.wm-import-form .wm-field-help {
    font-weight: 500
}

.wm-security-heading {
    align-items: center
}

.wm-security-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.wm-security-state.is-on {
    background: rgba(26, 153, 103, .12);
    color: #087a4b
}

.wm-security-state.is-off {
    background: rgba(206, 126, 33, .12);
    color: #9b5b12
}

.wm-security-dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start
}

.wm-security-card--wide {
    grid-column: 1 / -1
}

.wm-security-card>p {
    margin: 0;
    color: var(--wm-muted);
    line-height: 1.75
}

.wm-security-card>p code {
    direction: ltr;
    unicode-bidi: isolate
}

.wm-security-form {
    display: grid;
    gap: 11px
}

.wm-security-form>label,
.wm-security-inline-form>label,
.wm-app-password-create>label,
.wm-danger-zone>label,
.wm-secret-panel>label {
    display: grid;
    gap: 5px;
    color: var(--wm-text-soft);
    font-size: 13px;
    font-weight: 700;
}

.wm-security-inline-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
    align-items: end;
    gap: 11px;
}

.wm-security-inline-form .wm-button {
    min-height: 44px
}

.wm-secret-panel {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--wm-brand) 42%, var(--wm-line));
    border-radius: 18px;
    background: linear-gradient(135deg, var(--wm-brand-soft), var(--wm-panel));
    box-shadow: var(--wm-shadow-sm);
}

.wm-secret-panel h3 {
    margin: 3px 0 4px;
    font-size: 22px
}

.wm-secret-panel p {
    margin: 0;
    color: var(--wm-muted)
}

.wm-secret-panel details summary {
    color: var(--wm-brand-strong);
    cursor: pointer;
    font-weight: 700
}

.wm-secret-panel details textarea {
    width: 100%;
    margin-top: 9px
}

.wm-secret-value {
    border-color: color-mix(in srgb, var(--wm-brand) 45%, var(--wm-line)) !important;
    background: var(--wm-panel) !important;
    color: var(--wm-brand-strong);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 14px;
    font-weight: 800;
}

.wm-recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 8px
}

.wm-recovery-codes code {
    padding: 11px 13px;
    border: 1px solid var(--wm-line);
    border-radius: 10px;
    background: var(--wm-panel);
    color: var(--wm-text);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.wm-security-list {
    display: grid;
    gap: 7px
}

.wm-security-list>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid var(--wm-line);
    border-radius: 12px;
    background: var(--wm-panel);
}

.wm-security-list>div>span {
    display: grid;
    min-width: 0;
    gap: 3px
}

.wm-security-list>div>span>i {
    margin-inline-end: 7px;
    color: var(--wm-success)
}

.wm-security-list small {
    color: var(--wm-muted);
    line-height: 1.55
}

.wm-security-list .is-revoked {
    opacity: .58
}

.wm-security-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.wm-security-actions-grid .wm-security-form {
    padding: 14px;
    border: 1px solid var(--wm-line);
    border-radius: 13px;
    background: var(--wm-panel-soft);
}

.wm-app-password-create {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    align-items: end;
    gap: 11px;
    padding: 14px;
    border: 1px solid var(--wm-line);
    border-radius: 14px;
    background: var(--wm-panel-soft);
}

.wm-app-password-create fieldset {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 13px;
    min-height: 44px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid var(--wm-line);
    border-radius: 11px;
}

.wm-app-password-create fieldset legend {
    padding-inline: 5px;
    color: var(--wm-muted);
    font-size: 11px;
    font-weight: 700
}

.wm-app-password-create fieldset .wm-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px
}

.wm-app-password-create fieldset input {
    width: 15px;
    height: 15px
}

.wm-current-session {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(26, 153, 103, .26);
    border-radius: 14px;
    background: rgba(26, 153, 103, .07);
}

.wm-current-session>i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(26, 153, 103, .13);
    color: #087a4b;
}

.wm-current-session>span:nth-child(2) {
    display: grid;
    flex: 1;
    gap: 2px
}

.wm-current-session small {
    color: var(--wm-muted)
}

.wm-login-history {
    border-top: 1px solid var(--wm-line);
    padding-top: 12px
}

.wm-login-history>summary {
    color: var(--wm-brand-strong);
    cursor: pointer;
    font-weight: 800
}

.wm-login-history[open]>.wm-security-list {
    margin-top: 10px
}

.wm-danger-zone {
    display: grid;
    grid-template-columns: minmax(210px, 1.4fr) repeat(2, minmax(170px, 1fr)) auto;
    align-items: end;
    gap: 11px;
    margin-top: 8px;
    padding: 15px;
    border: 1px solid rgba(201, 61, 74, .3);
    border-radius: 14px;
    background: rgba(201, 61, 74, .055);
}

.wm-danger-zone>div {
    display: grid;
    gap: 3px;
    align-self: center
}

.wm-danger-zone small {
    color: var(--wm-muted);
    line-height: 1.5
}

.wm-signature-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    padding: 4px;
    margin-bottom: 6px;
    border: 1px solid var(--wm-line);
    border-radius: var(--wm-radius-sm);
    background: var(--wm-panel-soft);
}

.wm-signature-toolbar button {
    border: 0;
    background: transparent;
    color: var(--wm-text);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.wm-signature-toolbar button:hover {
    background: var(--wm-brand-soft);
    color: var(--wm-brand-strong)
}

.wm-signature-toolbar .wm-editor__separator {
    width: 1px;
    height: 18px;
    background: var(--wm-line);
    margin: 0 4px
}

.wm-signature-toolbar .wm-signature-toolbar__autofmt {
    width: auto;
    padding: 0 8px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wm-signature-rich {
    width: 100%;
    min-height: 6rem;
    max-height: 18rem;
    overflow: auto;
    background: var(--wm-panel);
    border: 1px solid var(--wm-line-strong);
    border-radius: 10px;
    padding: .6rem .75rem;
    font-family: inherit;
    line-height: 1.6;
    outline: none;
}

.wm-signature-rich:focus {
    border-color: var(--wm-brand);
    box-shadow: 0 0 0 4px var(--wm-brand-veil)
}

.wm-signature-rich:empty::before {
    content: attr(data-placeholder);
    color: var(--wm-muted);
    pointer-events: none
}

.wm-file-icon--word {
    color: #2b579a
}

.wm-file-icon--excel {
    color: #217346
}

.wm-file-icon--powerpoint {
    color: #d24726
}

.wm-file-icon--pdf {
    color: #b30b00
}

.wm-file-icon--archive {
    color: #e8a33d
}

.wm-file-icon--media {
    color: #8e44ad
}

.wm-file-icon--image {
    color: #16a085
}

.wm-file-icon--code {
    color: #2980b9
}

.wm-file-icon--text {
    color: var(--wm-muted)
}

.wm-file-icon[data-extension] {
    margin-inline-end: 2px
}

.wm-app-hint {
    display: block;
    width: 100%;
    margin-top: 8px;
    color: var(--wm-muted);
    font-size: 11.5px
}

.wm-security-summary {
    display: block;
    color: var(--wm-muted);
    font-size: .78rem
}

.wm-tls-hops {
    display: grid;
    gap: .15rem;
    margin-top: .35rem;
    font-size: .78rem
}

.wm-tls-hop.is-tls::before {
    content: "🔒";
    font-size: .7rem
}

.wm-tls-hop.is-plain::before {
    content: "⚠️";
    font-size: .7rem
}

.wm-tls-hop.is-plain {
    color: #b45309
}

.wm-attachment-chip.is-failed {
    border-color: color-mix(in srgb, var(--wm-danger) 45%, var(--wm-line))
}

.wm-attachment-chip.is-failed small {
    color: var(--wm-danger);
    cursor: pointer
}

.wm-contact-transfer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-block-end: 18px;
    padding: 14px 16px;
    border: 1px solid var(--wm-line);
    border-radius: 14px;
    background: var(--wm-panel-soft);
}

.wm-contact-transfer form,
.wm-contact-transfer>div {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0
}

.wm-guest {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 30px;
    background: radial-gradient(circle at 83% 10%, rgba(91, 85, 223, .15), transparent 28rem), radial-gradient(circle at 12% 90%, rgba(43, 190, 157, .10), transparent 28rem), var(--wm-bg);
}

.wm-login {
    display: grid;
    grid-template-columns: minmax(330px, .95fr) minmax(390px, 500px);
    width: min(1080px, 100%);
    min-height: 650px;
    overflow: hidden;
    border: 1px solid rgba(226, 226, 237, .9);
    border-radius: 30px;
    background: var(--wm-panel);
    box-shadow: var(--wm-shadow-lg);
}

.wm-login__intro {
    position: relative;
    isolation: isolate;
    padding: clamp(42px, 6vw, 72px);
    overflow: hidden;
    background: linear-gradient(145deg, #272252, #4c46c9 58%, #6963eb);
    color: #fff;
}

.wm-login__intro::before,
.wm-login__intro::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
}

.wm-login__intro::before {
    width: 430px;
    height: 430px;
    inset: auto -180px -160px auto
}

.wm-login__intro::after {
    width: 280px;
    height: 280px;
    inset: 60px auto auto -170px
}

.wm-login__intro .wm-login__mark {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, .15);
    box-shadow: none;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.wm-login__intro .wm-kicker {
    margin-top: 110px;
    color: #c9c6ff
}

.wm-login__intro h1 {
    margin-bottom: 18px;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.2
}

.wm-login__intro>p:not(.wm-kicker) {
    max-width: 470px;
    color: #e5e4ff;
    font-size: 17px;
    line-height: 1.8
}

.wm-login__facts {
    display: grid;
    gap: 13px;
    margin: 35px 0 0;
    padding: 0;
    list-style: none;
    color: #f1f0ff;
    font-size: 14px
}

.wm-login__facts li {
    display: flex;
    align-items: center;
    gap: 10px
}

.wm-login__facts i {
    color: #90ead3
}

.wm-login__card {
    align-self: center;
    padding: clamp(34px, 5vw, 58px)
}

.wm-login__card h2 {
    margin-bottom: 9px;
    font-size: 27px;
    font-weight: 700
}

.wm-login__identity {
    padding: 11px 13px;
    border-radius: 11px;
    background: var(--wm-panel-soft);
    text-align: center
}

.wm-form {
    display: grid;
    gap: 9px;
    margin-top: 24px
}

.wm-form label {
    margin-top: 7px;
    font-size: 14px;
    font-weight: 700
}

.wm-form input {
    min-height: 49px
}

.wm-form .wm-button {
    min-height: 51px;
    margin-top: 14px
}

.wm-check-row {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px !important;
    cursor: pointer;
    line-height: 1.65;
}

.wm-check-row input {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    margin-top: 4px;
    accent-color: var(--wm-brand)
}

.wm-login__forgot {
    display: inline-flex;
    margin-top: 20px;
    color: var(--wm-brand);
    font-weight: 700;
    text-decoration: none
}

.wm-login__forgot:hover {
    text-decoration: underline
}

.wm-login--single {
    grid-template-columns: minmax(0, 580px);
    justify-content: center;
    min-height: min(650px, calc(100vh - 48px))
}

.wm-login--single .wm-login__card {
    width: 100%
}

.wm-login--single .wm-login__mark {
    margin-bottom: 20px
}

.wm-swmail-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.wm-code-input {
    text-align: center;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: .25em
}

.wm-cancel-form {
    margin-top: 10px
}

.wm-help {
    margin: 2px 0;
    font-size: 13px
}

.wm-error {
    width: min(620px, calc(100% - 40px));
    margin: 12vh auto;
    padding: 46px;
    border: 1px solid var(--wm-line);
    border-radius: 22px;
    background: var(--wm-panel);
    box-shadow: var(--wm-shadow-lg);
    text-align: center;
}

.wm-error__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: var(--wm-danger-soft);
    color: var(--wm-danger);
    font-size: 27px;
}

.wm-error__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px
}

.wm-overlay {
    position: fixed;
    z-index: 90;
    inset: 0;
    background: rgba(18, 19, 37, .36);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px)
}

.wm-settings {
    position: fixed;
    z-index: 100;
    inset: 0 0 0 auto;
    width: min(410px, 92vw);
    padding: 22px;
    overflow: auto;
    border-inline-end: 1px solid var(--wm-line);
    background: var(--wm-panel);
    box-shadow: var(--wm-shadow-lg);
    transform: translateX(105%);
    transition: transform .22s ease;
}

.wm-settings.is-open {
    transform: translateX(0)
}

.wm-settings__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--wm-line);
}

.wm-settings__header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700
}

.wm-setting-group {
    padding: 23px 0;
    border-bottom: 1px solid var(--wm-line)
}

.wm-setting-group h3 {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700
}

.wm-setting-group p {
    margin: 10px 0 0;
    color: var(--wm-muted);
    font-size: 12.5px
}

.wm-segmented {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px
}

.wm-segmented button {
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid var(--wm-line);
    border-radius: 10px;
    background: var(--wm-panel-soft);
    color: var(--wm-text-soft);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.wm-segmented button.is-active {
    border-color: rgba(91, 85, 223, .3);
    background: var(--wm-brand-soft);
    color: var(--wm-brand-strong)
}

.wm-settings>.wm-button {
    margin-top: 24px
}

html[data-wm-theme="dark"] {
    color-scheme: dark;
    --wm-bg: #11121a;
    --wm-panel: #191a25;
    --wm-panel-raised: #1b1c27;
    --wm-panel-soft: #232431;
    --wm-panel-tint: #282741;
    --wm-text: #f1f1f6;
    --wm-text-soft: #c8c9d4;
    --wm-muted: #9294a7;
    --wm-line: #2c2d3b;
    --wm-line-strong: #3a3b4c;
    --wm-brand: #8e88ff;
    --wm-brand-strong: #aaa6ff;
    --wm-brand-soft: #2b294a;
    --wm-brand-veil: rgba(142, 136, 255, .13);
    --wm-danger: #ff929c;
    --wm-danger-soft: #3a2329;
    --wm-success: #79d8b7;
    --wm-success-soft: #1e352e;
    --wm-warning: #e7c56c;
    --wm-warning-soft: #352f20;
    --wm-shadow-sm: 0 6px 20px rgba(0, 0, 0, .18);
    --wm-shadow-lg: 0 28px 80px rgba(0, 0, 0, .38);
    --wm-header-bg: rgba(27, 28, 39, .94);
    --wm-header-bg-strong: rgba(27, 28, 39, .94);
}

html[data-wm-theme="dark"] .wm-message-card.is-unread {
    background: #1e1e2e
}

html[data-wm-theme="dark"] .wm-avatar {
    background: #2c2c43;
    color: #c9c6ff
}

@media (prefers-color-scheme:dark) {
    html[data-wm-theme="system"] {
        color-scheme: dark;
        --wm-bg: #11121a;
        --wm-panel: #191a25;
        --wm-panel-raised: #1b1c27;
        --wm-panel-soft: #232431;
        --wm-panel-tint: #282741;
        --wm-text: #f1f1f6;
        --wm-text-soft: #c8c9d4;
        --wm-muted: #9294a7;
        --wm-line: #2c2d3b;
        --wm-line-strong: #3a3b4c;
        --wm-brand: #8e88ff;
        --wm-brand-strong: #aaa6ff;
        --wm-brand-soft: #2b294a;
        --wm-brand-veil: rgba(142, 136, 255, .13);
        --wm-danger: #ff929c;
        --wm-danger-soft: #3a2329;
        --wm-success: #79d8b7;
        --wm-success-soft: #1e352e;
        --wm-warning: #e7c56c;
        --wm-warning-soft: #352f20;
        --wm-shadow-sm: 0 6px 20px rgba(0, 0, 0, .18);
        --wm-shadow-lg: 0 28px 80px rgba(0, 0, 0, .38);
        --wm-header-bg: rgba(27, 28, 39, .94);
        --wm-header-bg-strong: rgba(27, 28, 39, .94)
    }

    html[data-wm-theme="system"] .wm-message-card.is-unread {
        background: #1e1e2e
    }

    html[data-wm-theme="system"] .wm-avatar {
        background: #2c2c43;
        color: #c9c6ff
    }
}

.wm-inbox-shell.is-sidebar-collapsed {
    --wm-sidebar-width: 86px
}

.wm-inbox-shell.is-sidebar-collapsed .wm-brand__copy,
.wm-inbox-shell.is-sidebar-collapsed .wm-compose-button span,
.wm-inbox-shell.is-sidebar-collapsed .wm-compose-button kbd,
.wm-inbox-shell.is-sidebar-collapsed .wm-folder .wm-folder__name,
.wm-inbox-shell.is-sidebar-collapsed .wm-nav-title,
.wm-inbox-shell.is-sidebar-collapsed .wm-sidebar-action span,
.wm-inbox-shell.is-sidebar-collapsed .wm-profile__identity,
.wm-inbox-shell.is-sidebar-collapsed .wm-profile form {
    display: none
}

.wm-inbox-shell.is-sidebar-collapsed .wm-sidebar__brand {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    min-height: auto;
}

.wm-inbox-shell.is-sidebar-collapsed .wm-brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 10px
}

.wm-inbox-shell.is-sidebar-collapsed .wm-sidebar__brand>.wm-icon-button {
    width: 28px;
    height: 28px
}

.wm-inbox-shell.is-sidebar-collapsed .wm-compose-button {
    grid-template-columns: 1fr;
    justify-items: center;
    margin-inline: 12px;
    padding-inline: 8px;
}

.wm-inbox-shell.is-sidebar-collapsed .wm-folder {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-inline: 8px;
}

.wm-inbox-shell.is-sidebar-collapsed .wm-folder .wm-badge {
    position: absolute;
    inset-block-start: 4px;
    inset-inline-end: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 18px;
}

.wm-inbox-shell.is-sidebar-collapsed .wm-sidebar-action {
    justify-content: center
}

.wm-inbox-shell.is-sidebar-collapsed .wm-profile {
    grid-template-columns: 1fr;
    justify-items: center;
    background: transparent
}

@media (max-width:1199px) {
    :root {
        --wm-sidebar-width: 274px;
        --wm-list-width: minmax(0, 1fr)
    }

    .wm-inbox-shell {
        grid-template-columns: minmax(0, 1fr) var(--wm-sidebar-width);
        grid-template-areas: "mailbox sidebar"
    }

    .wm-inbox-shell .wm-reader {
        display: none;
        grid-area: mailbox
    }

    .wm-inbox-shell.has-reader .wm-mailbox {
        display: none
    }

    .wm-inbox-shell.has-reader .wm-reader {
        display: flex
    }

    .wm-reader-back {
        visibility: visible
    }

    .wm-inbox-shell.is-sidebar-collapsed {
        --wm-sidebar-width: 86px
    }
}

@media (max-width:760px) {
    :root {
        --wm-row-height: 91px
    }

    .wm-mobile-only {
        display: inline-grid
    }

    .wm-desktop-only {
        display: none
    }

    .wm-inbox-shell,
    .wm-inbox-shell.is-sidebar-collapsed {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "mailbox"
    }

    .wm-sidebar {
        position: fixed;
        z-index: 95;
        inset: 0 0 0 auto;
        width: min(310px, 88vw);
        box-shadow: var(--wm-shadow-lg);
        transform: translateX(105%);
        transition: transform .22s ease
    }

    .wm-sidebar.is-open {
        transform: translateX(0)
    }

    .wm-mailbox {
        border: 0
    }

    .wm-mailbox__header {
        padding: 12px 13px 0
    }

    .wm-mailbox__titlebar h1 {
        font-size: 20px
    }

    .wm-toolbar {
        min-height: 47px;
        overflow-x: auto
    }

    .wm-check-all span,
    .wm-selection-count,
    .wm-move-control {
        display: none
    }

    .wm-toolbar__actions {
        margin-inline-start: 0
    }

    .wm-message-card {
        grid-template-columns: 25px 39px minmax(0, 1fr) auto 28px;
        gap: 8px;
        padding-inline: 8px
    }

    .wm-avatar {
        width: 38px;
        height: 38px
    }

    .wm-message-card__meta i {
        display: none
    }

    .wm-message-card__preview {
        max-width: 56vw
    }

    .wm-inbox-shell.has-reader .wm-reader {
        position: fixed;
        z-index: 50;
        inset: 0;
        display: flex
    }

    .wm-reader__topbar {
        min-height: 64px;
        padding-inline: 10px
    }

    .wm-reader__actions {
        gap: 0
    }

    .wm-reader__actions .wm-icon-button {
        width: 36px;
        height: 36px
    }

    .wm-reader__navigation {
        display: none
    }

    .wm-thread-heading,
    .wm-thread,
    .wm-quick-reply {
        width: calc(100% - 24px)
    }

    .wm-thread-heading {
        padding-top: 22px
    }

    .wm-thread-message__header {
        align-items: flex-start
    }

    .wm-thread-message__summary {
        grid-template-columns: 42px minmax(0, 1fr) auto
    }

    .wm-thread-message__preview {
        display: none
    }

    .wm-thread-message__quick-actions {
        position: absolute;
        inset-block-end: 8px;
        inset-inline-end: 11px
    }

    .wm-thread-message__content {
        padding: 0 14px 18px
    }

    .wm-reader__header,
    .wm-message-body,
    .wm-attachments,
    .wm-reader__replybar,
    .wm-remote-images {
        width: calc(100% - 32px)
    }

    .wm-reader__header {
        padding-top: 28px
    }

    .wm-reader__header h1 {
        font-size: 25px
    }

    .wm-sender {
        grid-template-columns: 46px minmax(0, 1fr)
    }

    .wm-avatar--large {
        width: 46px;
        height: 46px
    }

    .wm-sender time {
        grid-column: 2
    }

    .wm-remote-images {
        align-items: flex-start;
        flex-wrap: wrap
    }

    .wm-remote-images a {
        width: 100%;
        margin-inline-start: 0
    }

    .wm-message-body {
        padding-block: 26px 40px
    }

    .wm-settings-page {
        padding: 10px
    }

    .wm-account-shell {
        grid-template-columns: 1fr
    }

    .wm-account-nav {
        padding: 15px;
        border-inline-end: 0;
        border-bottom: 1px solid var(--wm-line)
    }

    .wm-account-nav h1 {
        margin-bottom: 12px;
        font-size: 23px
    }

    .wm-account-nav nav {
        display: flex;
        overflow-x: auto
    }

    .wm-account-nav nav a {
        min-width: max-content
    }

    .wm-account-content {
        padding: 24px 16px 45px
    }

    .wm-section-heading {
        align-items: stretch;
        flex-direction: column
    }

    .wm-contact-group-create {
        flex-direction: column
    }

    .wm-settings-grid,
    .wm-contact-layout,
    .wm-security-dashboard,
    .wm-security-actions-grid {
        grid-template-columns: 1fr
    }

    .wm-security-card--wide {
        grid-column: auto
    }

    .wm-security-inline-form,
    .wm-app-password-create,
    .wm-danger-zone {
        grid-template-columns: 1fr
    }

    .wm-recovery-codes {
        grid-template-columns: 1fr
    }

    .wm-folder-setting {
        grid-template-columns: 44px minmax(0, 1fr)
    }

    .wm-folder-setting form,
    .wm-folder-setting>.wm-pill {
        grid-column: 2
    }

    .wm-folder-setting form input {
        width: min(190px, 100%)
    }

    .wm-preferences-form>label {
        grid-template-columns: 1fr;
        gap: 9px
    }

    .wm-guest {
        padding: 12px
    }

    .wm-login {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 22px
    }

    .wm-login__intro {
        display: none
    }

    .wm-login__card {
        padding: 32px 22px
    }
}

@media (max-width:430px) {
    html[data-wm-font="large"] {
        --wm-base-size: 16.5px
    }

    .wm-message-card {
        grid-template-columns: 23px 36px minmax(0, 1fr) 26px
    }

    .wm-message-card__meta {
        position: absolute;
        inset: 12px auto auto 10px
    }

    .wm-message-card__meta i {
        display: none
    }

    .wm-message-card__main {
        padding-inline-end: 25px
    }

    .wm-star-button {
        grid-column: 4
    }

    .wm-reader__actions form:first-of-type,
    .wm-reader__actions [data-print-message] {
        display: none
    }

    .wm-error {
        padding: 34px 20px
    }

    .wm-error__actions {
        align-items: stretch;
        flex-direction: column
    }
}

@media print {
    body.wm-body--authenticated {
        overflow: visible;
        background: #fff
    }

    .wm-sidebar,
    .wm-mailbox,
    .wm-reader__topbar,
    .wm-reader__replybar,
    .wm-quick-reply,
    .wm-settings,
    .wm-overlay,
    .wm-compose-layer,
    .wm-toast-region,
    .wm-action-menu,
    .wm-account-menu__panel,
    .wm-emoji-menu,
    [data-menu] {
        display: none !important
    }

    .wm-inbox-shell {
        display: block;
        height: auto;
        overflow: visible
    }

    .wm-reader {
        display: block !important;
        height: auto;
        overflow: visible
    }

    .wm-reader__content {
        overflow: visible
    }

    .wm-thread-heading,
    .wm-thread,
    .wm-message-body,
    .wm-attachments {
        width: 100%
    }
}

@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important
    }
}