:root {
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    overflow: auto;
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 12px;
    color: #334047;
    background: #f4f6f8;
}

.fake-mail {
    min-height: 100vh;
}

.fake-mail.login-screen {
    display: grid;
    min-height: 100vh;
    place-items: start center;
    padding-top: 104px;
    background: #fff;
}

.fake-mail .login-box {
    display: grid;
    width: 320px;
    gap: 9px;
    justify-items: stretch;
}

.fake-mail .login-logo {
    width: 118px;
    height: 118px;
    justify-self: center;
    margin-bottom: 16px;
}

.fake-mail .login-error {
    border: 1px solid #f1b8b8;
    border-radius: 4px;
    padding: 8px 10px;
    color: #9f1239;
    background: #fff1f2;
    font-size: 12px;
}

.fake-mail .login-field {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    height: 43px;
    margin: 0;
}

.fake-mail .login-field span {
    display: grid;
    place-items: center;
    border: 1px solid #cbd5dc;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    color: #26343a;
    background: #f3f5f6;
    font-size: 15px;
}

.fake-mail .login-field input {
    min-width: 0;
    border: 1px solid #cbd5dc;
    border-radius: 0 4px 4px 0;
    padding: 0 13px;
    color: #26343a;
    font-size: 17px;
    outline: 0;
}

.fake-mail .login-field input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 5px rgba(14, 165, 233, .55);
}

.fake-mail .login-field input::placeholder {
    color: #a5abb0;
}

.fake-mail .login-button {
    height: 42px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: #35b5ee;
    font-size: 16px;
    font-weight: 500;
}

.fake-mail .login-button:hover {
    background: #159fd8;
}

.fake-mail .login-caption {
    margin-top: 8px;
    color: #6b7280;
    text-align: center;
    font-size: 13px;
}

.fake-mail.roundcube-view {
    display: grid;
    grid-template-columns: 54px 300px minmax(0, 1fr);
    height: 100vh;
    overflow: hidden;
    background: #fff;
}

.fake-mail .app-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: #09214a;
}

.fake-mail .rail-logo {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.fake-mail .rail-logo img {
    width: 38px;
    height: 38px;
}

.fake-mail .rail-button {
    display: grid;
    width: 54px;
    height: 46px;
    place-items: center;
    border: 0;
    color: #fff;
    background: transparent;
    text-decoration: none;
    font-size: 20px;
}

.fake-mail .rail-button:hover,
.fake-mail .rail-button.is-active {
    background: #12326a;
}

.fake-mail .rail-button.is-mail {
    background: #153b78;
}

.fake-mail .rail-button.is-power {
    color: #ff6b6b;
}

.fake-mail .rail-spacer {
    flex: 1;
}

.fake-mail .sidebar {
    min-width: 0;
    min-height: 100vh;
    overflow: auto;
    border-right: 1px solid #d9e1e5;
    background: #fff;
}

.fake-mail .identity-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 58px;
    border-bottom: 1px solid #d9e1e5;
    padding: 0 12px 0 62px;
    background: #f7f7f8;
}

.fake-mail .identity-switch select {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    color: #26343a;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
}

.fake-mail .identity-switch i {
    color: #26343a;
    font-size: 17px;
}

.fake-mail .folder-list {
    display: grid;
}

.fake-mail .folder-link {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    border-bottom: 1px solid #edf0f2;
    padding: 0 13px;
    color: #344147;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.fake-mail .folder-link i {
    width: 24px;
    color: #2f3a40;
    font-size: 17px;
}

.fake-mail .folder-link small {
    margin-left: auto;
    color: #7b858b;
    font-size: 11px;
}

.fake-mail .folder-link:hover,
.fake-mail .folder-link.is-active {
    background: #e8f7fd;
}

.fake-mail .mail-shell {
    min-width: 0;
    height: 100vh;
    overflow: hidden;
    background: #fff;
}

.fake-mail .topbar {
    display: flex;
    justify-content: space-between;
    height: 58px;
    border-bottom: 1px solid #d9e1e5;
    background: #f7f7f8;
}

.fake-mail .toolbar-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.fake-mail .message-actions {
    border-left: 1px solid #d9e1e5;
}

.fake-mail .toolbar-group button {
    display: grid;
    min-width: 38px;
    justify-items: center;
    gap: 3px;
    border: 0;
    color: #2f3a40;
    background: transparent;
    font-size: 11px;
    font-weight: 400;
}

.fake-mail .toolbar-group button i {
    color: #899197;
    font-size: 18px;
    line-height: 1;
}

.fake-mail .toolbar-group button:hover i,
.fake-mail .toolbar-group button:hover span {
    color: #008fd3;
}

.fake-mail .content-grid {
    display: grid;
    grid-template-columns: 440px minmax(0, 1fr);
    height: calc(100vh - 58px);
    min-height: 0;
}

.fake-mail .message-column {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: 40px minmax(0, 1fr) 38px;
    border-right: 1px solid #d9e1e5;
}

.fake-mail .search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px 34px;
    align-items: center;
    border-bottom: 1px solid #edf0f2;
}

.fake-mail .search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 10px;
}

.fake-mail .search-box i {
    color: #899197;
    font-size: 18px;
}

.fake-mail .search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #334047;
    background: transparent;
    font-size: 13px;
}

.fake-mail .mail-filter {
    display: grid;
    height: 100%;
    place-items: center;
    border: 0;
    color: #2f3a40;
    background: #fff;
    font-size: 16px;
}

.fake-mail .message-list {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
}

.fake-mail .message-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    min-height: 54px;
    border-bottom: 1px solid #edf0f2;
    border-left: 3px solid transparent;
    padding: 6px 9px 6px 30px;
    color: inherit;
    text-decoration: none;
}

.fake-mail .message-row::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 28px;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #2f3a40;
}

.fake-mail .message-row:hover,
.fake-mail .message-row.is-selected {
    border-left-color: #58c9ff;
    background: #f8fbfd;
}

.fake-mail .message-meta {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
}

.fake-mail .message-sender {
    overflow: hidden;
    color: #7b858b;
    font-size: 12px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fake-mail .message-row.is-unread .message-sender {
    color: #26343a;
    font-weight: 600;
}

.fake-mail .message-date {
    color: #7b858b;
    font-size: 11px;
    white-space: nowrap;
}

.fake-mail .message-subject {
    grid-column: 1 / -1;
    overflow: hidden;
    color: #334047;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fake-mail .message-row.is-unread .message-subject {
    font-weight: 700;
}

.fake-mail .message-row > i {
    color: #899197;
    font-size: 15px;
}

.fake-mail .message-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid #d9e1e5;
    color: #737c82;
    background: #fbfcfd;
    font-weight: 600;
}

.fake-mail .message-pager button {
    border: 0;
    color: #899197;
    background: transparent;
    font-size: 14px;
}

.fake-mail .reading-pane {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: auto;
    padding-bottom: 48px;
    overscroll-behavior: contain;
    background: #fff;
}

.fake-mail .mobile-detail-switch {
    display: none;
}

.fake-mail .pane-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    border-bottom: 1px solid #edf0f2;
    padding: 4px 12px;
}

.fake-mail .icon-button,
.fake-mail .send-button,
.fake-mail .compose-button {
    display: inline-grid;
    place-items: center;
    border: 0;
    color: #334047;
    background: transparent;
    text-decoration: none;
}

.fake-mail .icon-button {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 14px;
}

.fake-mail .icon-button:hover {
    background: #edf6fb;
}

.fake-mail .message-view-head {
    border-bottom: 1px solid #edf0f2;
    padding: 18px 18px 14px;
    background: #fff;
}

.fake-mail .message-view-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fake-mail .message-view-title form {
    margin: 0;
}

.fake-mail .message-view-head h1 {
    margin: 0;
    color: #26343a;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 0;
}

.fake-mail .message-open-button {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 4px;
    color: #0ea5e9;
    background: transparent;
    font-size: 20px;
}

.fake-mail .message-view-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 14px;
}

.fake-mail .message-avatar-large {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 999px;
    color: #c8c8c8;
    background: #f3f3f3;
    font-size: 52px;
    overflow: hidden;
}

.fake-mail .message-view-meta-body {
    display: grid;
    gap: 12px;
}

.fake-mail .message-from-line {
    color: #26343a;
    font-size: 18px;
    line-height: 1.2;
}

.fake-mail .message-from-line a {
    color: #0ea5e9;
    text-decoration: none;
}

.fake-mail .message-meta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.fake-mail .message-meta-links button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    padding: 0;
    color: #0ea5e9;
    background: transparent;
    font-size: 15px;
}

.fake-mail .message-meta-links i {
    font-size: 21px;
}

.fake-mail .thread-card {
    margin: 12px 18px;
    border: 1px solid #dfe6ea;
    border-radius: 4px;
    background: #fff;
}

.fake-mail .thread-card.is-outgoing {
    background: #fbfcfd;
}

.fake-mail .message-main-card {
    border: 0;
    margin-top: 0;
}

.fake-mail .thread-head {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #edf0f2;
    padding: 9px 12px;
}

.fake-mail .sender-avatar,
.fake-mail .avatar {
    display: inline-grid;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--avatar-color, #008fd3);
    font-weight: 600;
}

.fake-mail .thread-head div {
    min-width: 0;
    display: grid;
}

.fake-mail .thread-head small,
.fake-mail .thread-head time {
    color: #7b858b;
    font-size: 11px;
}

.fake-mail .thread-head time {
    margin-left: auto;
    white-space: nowrap;
}

.fake-mail .message-body {
    padding: 12px 15px;
    color: #26343a;
    font-size: 12px;
    line-height: 1.6;
}

.fake-mail .reply-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 18px 36px;
    border: 1px solid #dfe6ea;
    border-radius: 4px;
    padding: 9px;
    background: #fbfcfd;
}

.fake-mail .reply-box textarea {
    flex: 1;
    min-width: 0;
    resize: vertical;
    border: 0;
    outline: 0;
    background: transparent;
}

.fake-mail .send-button {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    color: #fff;
    background: #008fd3;
}

.fake-mail .empty-reading {
    display: grid;
    min-height: 100%;
    place-items: center;
}

.fake-mail .empty-reading img {
    width: min(260px, 42vw);
    opacity: .08;
    filter: grayscale(1);
}

.fake-mail .empty-state {
    display: grid;
    min-height: 220px;
    place-items: center;
    color: #7b858b;
}

.fake-mail .compose-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: end center;
    padding: 18px;
    background: rgba(9, 33, 74, .28);
}

.fake-mail .compose-modal[hidden] {
    display: none;
}

.fake-mail .compose-window {
    width: min(720px, calc(100vw - 32px));
    border: 1px solid #d9e1e5;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 70px rgba(9, 33, 74, .24);
}

.fake-mail .compose-head,
.fake-mail .compose-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    padding: 7px 9px;
    background: #f7f7f8;
}

.fake-mail .compose-window input,
.fake-mail .compose-window textarea {
    width: 100%;
    border: 0;
    border-top: 1px solid #edf0f2;
    padding: 8px 10px;
    outline: 0;
}

.fake-mail.admin-screen {
    overflow: auto;
    height: auto;
    min-height: 100vh;
    max-height: none;
    padding: 14px;
    background: #f4f6f8;
}

.fake-mail .admin-shell {
    width: min(1440px, 100%);
    margin: 0 auto;
}

.fake-mail .admin-header,
.fake-mail .check-row,
.fake-mail .admin-table-head {
    display: flex;
    align-items: center;
}

.fake-mail .admin-header {
    justify-content: space-between;
    margin-bottom: 14px;
}

.fake-mail .admin-header h1 {
    margin: 6px 0 0;
    color: #26343a;
    font-size: 20px;
}

.fake-mail .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #52616a;
    text-decoration: none;
    font-weight: 500;
}

.fake-mail .login-panel,
.fake-mail .admin-card,
.fake-mail .admin-table,
.fake-mail .admin-detail {
    border: 1px solid #d9e1e5;
    border-radius: 4px;
    background: #fff;
}

.fake-mail .login-panel {
    width: min(420px, 100%);
    padding: 12px;
}

.fake-mail .admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
    border-bottom: 1px solid #d9e1e5;
}

.fake-mail .admin-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    padding: 8px 12px;
    color: #52616a;
    text-decoration: none;
    background: transparent;
    font-weight: 500;
}

.fake-mail .admin-tabs a:hover,
.fake-mail .admin-tabs a.is-active {
    color: #26343a;
    border-color: #d9e1e5;
    background: #fff;
}

.fake-mail .admin-tab-panel {
    display: grid;
    grid-template-columns: minmax(320px, 680px) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.fake-mail .admin-card {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 11px;
}

.fake-mail .admin-card-compact {
    max-width: 520px;
}

.fake-mail .admin-card-wide {
    max-width: 760px;
}

.fake-mail .admin-identities {
    min-width: 0;
}

.fake-mail .admin-card h2,
.fake-mail .admin-table h2,
.fake-mail .admin-detail h2 {
    margin: 0;
    color: #26343a;
    font-size: 13px;
}

.fake-mail .two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.fake-mail .check-row {
    gap: 14px;
    font-weight: 500;
}

.fake-mail .admin-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr);
    gap: 10px;
}

.fake-mail .admin-table {
    min-width: 0;
    padding: 11px;
}

.fake-mail .admin-table-head {
    justify-content: space-between;
    margin-bottom: 8px;
}

.fake-mail .admin-table-head span,
.fake-mail .admin-table small {
    color: #7b858b;
}

.fake-mail .admin-badge {
    display: inline-flex;
    border: 1px solid #d9e1e5;
    border-radius: 999px;
    padding: 2px 7px;
    color: #52616a;
    background: #f7f7f8;
    font-size: 11px;
    font-weight: 500;
}

.fake-mail .admin-badge.is-muted {
    color: #7b858b;
}

.fake-mail .admin-badge.is-unread {
    border-color: #9bdcff;
    color: #075985;
    background: #e8f7fd;
}

.fake-mail .admin-actions,
.fake-mail .admin-detail-title,
.fake-mail .admin-reply-head {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fake-mail .admin-actions {
    justify-content: flex-end;
}

.fake-mail .admin-actions form,
.fake-mail .admin-detail-title form,
.fake-mail .admin-reply-head form {
    margin: 0;
}

.fake-mail .admin-detail-title {
    justify-content: space-between;
    gap: 12px;
}

.fake-mail .admin-detail-title h2 {
    min-width: 0;
}

.fake-mail .admin-reply-head {
    justify-content: space-between;
}

.fake-mail .admin-shell .table {
    font-size: 11px;
}

.fake-mail .admin-shell .btn,
.fake-mail .admin-shell .form-control,
.fake-mail .admin-shell .form-select {
    font-size: 11px;
}

.fake-mail .admin-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.fake-mail .admin-pagination a {
    display: grid;
    min-width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #d9e1e5;
    border-radius: 4px;
    color: #334047;
    text-decoration: none;
    background: #fff;
}

.fake-mail .admin-pagination a.is-active {
    color: #fff;
    border-color: #008fd3;
    background: #008fd3;
}

.fake-mail .admin-pagination a.is-disabled {
    pointer-events: none;
    opacity: .45;
}

.fake-mail .admin-detail {
    align-self: start;
    padding: 11px;
}

.fake-mail .admin-detail dl {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 5px 8px;
    margin: 12px 0;
}

.fake-mail .admin-detail dt {
    color: #7b858b;
}

.fake-mail .admin-detail dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.fake-mail .admin-message-body,
.fake-mail .admin-reply {
    border: 1px solid #edf0f2;
    border-radius: 4px;
    padding: 10px;
    background: #fbfcfd;
}

.fake-mail .admin-message-body {
    margin-bottom: 14px;
    line-height: 1.6;
}

.fake-mail .admin-message-body p,
.fake-mail .admin-reply-body p {
    margin: 0 0 10px;
}

.fake-mail .admin-message-body p:last-child,
.fake-mail .admin-reply-body p:last-child {
    margin-bottom: 0;
}

.fake-mail .cke {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.fake-mail .admin-edit-email {
    margin-bottom: 12px;
    border: 1px solid #edf0f2;
    border-radius: 4px;
    background: #fff;
}

.fake-mail .admin-edit-email summary {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 10px;
    color: #26343a;
    font-weight: 500;
}

.fake-mail .admin-edit-email[open] summary {
    border-bottom: 1px solid #edf0f2;
    background: #fbfcfd;
}

.fake-mail .admin-edit-form {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.fake-mail .admin-detail h3 {
    margin: 13px 0 8px;
    color: #26343a;
    font-size: 13px;
}

.fake-mail .admin-reply {
    margin-bottom: 8px;
}

.fake-mail .admin-reply small {
    display: block;
    color: #7b858b;
}

.fake-mail .admin-reply p {
    margin: 8px 0 0;
}

.fake-mail .admin-reply-form {
    display: grid;
    gap: 8px;
}

.fake-mail .admin-read-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    border: 1px solid #edf0f2;
    border-radius: 4px;
    padding: 8px 10px;
    background: #fff;
}

.fake-mail .admin-read-form label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 500;
}

.fake-mail .admin-detail-empty {
    display: grid;
    min-height: 220px;
    place-items: center;
    color: #7b858b;
    text-align: center;
}

.fake-mail .admin-detail-empty i {
    font-size: 38px;
}

@media (max-width: 1180px) {
    body {
        overflow: auto;
    }

    .fake-mail.roundcube-view {
        grid-template-columns: 54px minmax(220px, 280px) minmax(0, 1fr);
    }

    .fake-mail .content-grid {
        grid-template-columns: 390px minmax(0, 1fr);
    }

    .fake-mail .toolbar-group {
        gap: 10px;
        padding: 0 16px;
    }

    .fake-mail .message-actions button span {
        display: none;
    }

    .fake-mail .admin-tab-panel,
    .fake-mail .admin-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    html,
    body {
        height: auto;
        min-height: 100%;
        overflow: auto;
    }

    .fake-mail.roundcube-view {
        display: block;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .fake-mail .app-rail {
        position: sticky;
        top: 0;
        z-index: 10;
        display: flex;
        flex-direction: row;
        min-height: 0;
        height: 48px;
        width: 100%;
        overflow-x: auto;
    }

    .fake-mail .rail-logo,
    .fake-mail .rail-button {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .fake-mail .rail-logo img {
        width: 32px;
        height: 32px;
    }

    .fake-mail .rail-spacer {
        flex: 1 0 12px;
    }

    .fake-mail .rail-logout {
        margin: 0;
    }

    .fake-mail .sidebar {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid #d9e1e5;
        overflow: visible;
        background: #fff;
    }

    .fake-mail .mail-shell {
        height: auto;
        min-height: auto;
        overflow: visible;
    }

    .fake-mail .identity-switch {
        height: 44px;
        padding: 0 12px;
    }

    .fake-mail .folder-list {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding: 8px 10px;
        scrollbar-width: none;
    }

    .fake-mail .folder-link {
        flex: 0 0 auto;
        justify-content: center;
        gap: 6px;
        height: 34px;
        min-width: 44px;
        border: 1px solid #edf0f2;
        border-radius: 999px;
        padding: 0 11px;
        background: #fff;
    }

    .fake-mail .folder-link span {
        display: inline;
        font-size: 12px;
    }

    .fake-mail .folder-link small {
        display: inline-flex;
        margin-left: 0;
        font-size: 10px;
    }

    .fake-mail .topbar {
        display: flex;
        height: 46px;
        overflow-x: auto;
        border-top: 1px solid #edf0f2;
    }

    .fake-mail .toolbar-group {
        flex: 0 0 auto;
        min-height: 46px;
        gap: 8px;
        padding: 0 10px;
    }

    .fake-mail .toolbar-group button span {
        display: none;
    }

    .fake-mail .content-grid {
        display: block;
        grid-template-columns: 1fr;
        height: auto;
    }

    .fake-mail .message-column {
        display: grid;
        grid-template-rows: 42px minmax(0, 42vh) 38px;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid #d9e1e5;
    }

    .fake-mail .reading-pane {
        min-height: 0;
        height: auto;
        overflow: visible;
        padding-bottom: 24px;
    }

    .fake-mail.is-detail-view {
        display: block;
        height: auto;
        min-height: 100svh;
        max-height: none;
        overflow: visible;
        background: #fff;
    }

    .fake-mail.is-detail-view .identity-switch,
    .fake-mail.is-detail-view .folder-list,
    .fake-mail.is-detail-view .topbar,
    .fake-mail.is-detail-view .message-column {
        display: none;
    }

    .fake-mail.is-detail-view .app-rail {
        display: flex;
    }

    .fake-mail.is-detail-view .sidebar {
        display: block;
        border-bottom: 1px solid #d9e1e5;
    }

    .fake-mail.is-detail-view .mail-shell,
    .fake-mail.is-detail-view .content-grid,
    .fake-mail.is-detail-view .reading-pane {
        display: block;
        min-height: 100svh;
        height: auto;
        overflow: visible;
    }

    .fake-mail.is-detail-view .reading-pane {
        padding-bottom: 120px;
    }

    .fake-mail.is-detail-view .mobile-detail-switch {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 28px;
        align-items: center;
        min-height: 58px;
        padding: 6px 10px 6px 2px;
        background: #fff;
    }

    .fake-mail.is-detail-view .mobile-detail-switch a {
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        color: #26343a;
        text-decoration: none;
        font-size: 24px;
    }

    .fake-mail.is-detail-view .mobile-detail-switch div {
        min-width: 0;
        display: grid;
        gap: 2px;
    }

    .fake-mail.is-detail-view .mobile-detail-switch strong,
    .fake-mail.is-detail-view .mobile-detail-switch span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fake-mail.is-detail-view .mobile-detail-switch strong {
        color: #26343a;
        font-size: 14px;
        font-weight: 700;
    }

    .fake-mail.is-detail-view .mobile-detail-switch span,
    .fake-mail.is-detail-view .mobile-detail-switch > i {
        color: #7b858b;
        font-size: 12px;
    }

    .fake-mail .message-list {
        overflow: auto;
    }

    .fake-mail .message-row {
        min-height: 58px;
        padding: 7px 10px 7px 30px;
    }

    .fake-mail .message-row::before {
        top: 30px;
    }

    .fake-mail .message-pager {
        font-size: 11px;
    }

    .fake-mail .message-view-head {
        padding: 14px 12px 12px;
    }

    .fake-mail .message-view-title {
        align-items: flex-start;
    }

    .fake-mail .message-view-head h1 {
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .fake-mail .message-view-meta {
        align-items: flex-start;
        gap: 10px;
    }

    .fake-mail .message-avatar-large {
        width: 46px;
        height: 46px;
        font-size: 32px;
    }

    .fake-mail .message-from-line {
        font-size: 14px;
    }

    .fake-mail .message-meta-links {
        gap: 10px;
    }

    .fake-mail .message-meta-links button {
        font-size: 13px;
    }

    .fake-mail .thread-card {
        margin: 10px 12px;
    }

    .fake-mail .message-main-card {
        margin-top: 0;
    }

    .fake-mail .message-body {
        padding: 11px 12px;
        font-size: 12px;
    }

    .fake-mail .reply-box {
        margin: 12px 12px 28px;
        gap: 8px;
    }

    .fake-mail .reply-box .avatar {
        display: none;
    }

    .fake-mail .reply-box textarea {
        min-height: 92px;
    }

    .fake-mail .thread-head {
        align-items: flex-start;
    }

    .fake-mail .thread-head time {
        display: none;
    }

    .fake-mail .two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .fake-mail .login-box {
        width: min(320px, calc(100vw - 32px));
    }

    .fake-mail.login-screen {
        padding-top: 74px;
    }

    .fake-mail .message-column {
        grid-template-rows: 42px minmax(0, 48vh) 38px;
    }

    .fake-mail .folder-link span {
        display: none;
    }

    .fake-mail .message-date {
        font-size: 10px;
    }

    .fake-mail .message-meta {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .fake-mail .message-view-meta {
        align-items: flex-start;
    }

    .fake-mail .message-meta-links button {
        font-size: 12px;
    }

    .fake-mail .message-meta-links i {
        font-size: 17px;
    }

    .fake-mail .admin-screen,
    .fake-mail.admin-screen {
        padding: 10px;
    }

    .fake-mail .admin-tabs a {
        padding: 7px 9px;
    }
}
