* {
    box-sizing: border-box;
}

:root {
    --brand: #7700fd;
    --brand-rgb: 119, 0, 253;
    --button: #b254ff;
    --button-hover: #a341ee;

    --bg: #f5f6fa;
    --surface: #ffffff;
    --surface-2: #f7f7fa;
    --surface-3: #eeeeF4;

    --text: #17151d;
    --text-2: #5f5b68;
    --text-3: #96919e;

    --border: #e6e4ea;
    --border-2: #dad7df;

    --nav-bg: #171820;
    --nav-text: #d7d5dd;
    --nav-muted: #8d8b95;
    --nav-hover: #23242e;

    --success: #139b62;
    --warning: #d28a00;

    --shadow: 0 16px 50px rgba(25, 20, 35, 0.08);

    --topbar-h: 68px;
    --nav-w: 220px;
    --list-w: 410px;
}

html[data-theme="dark"] {
    --bg: #0d0e12;
    --surface: #17181e;
    --surface-2: #1e1f26;
    --surface-3: #262731;

    --text: #f4f2f7;
    --text-2: #bbb6c2;
    --text-3: #827e8a;

    --border: #2b2c35;
    --border-2: #363740;

    --nav-bg: #111218;
    --nav-text: #e4e1e9;
    --nav-muted: #85818c;
    --nav-hover: #202129;

    --shadow: 0 18px 55px rgba(0, 0, 0, 0.24);

    color-scheme: dark;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    background: var(--bg);
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

svg.fill-current {
    fill: currentColor;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.brand-logo {
    width: auto;
    max-width: 124px;
    height: 37px;
    display: block;
    object-fit: contain;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: transparent;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.icon-btn:hover {
    background: var(--surface-3);
}

[data-theme-dark] {
    display: none;
}

html[data-theme="dark"] [data-theme-light] {
    display: none;
}

html[data-theme="dark"] [data-theme-dark] {
    display: block;
}

/* LOGIN */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 12% 25%, rgba(var(--brand-rgb), .10), transparent 30%),
        radial-gradient(circle at 84% 75%, rgba(178, 84, 255, .10), transparent 27%),
        var(--bg);
}

.auth-header {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(22px, 4vw, 58px);
}

.auth-main {
    flex: 1;
    display: grid;
    align-items: center;
    padding: 40px clamp(22px, 6vw, 92px) 70px;
}

.login-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 455px);
    gap: clamp(52px, 8vw, 110px);
    align-items: center;
    margin: 0 auto;
}

.eyebrow {
    color: var(--brand);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .15em;
}

.login-copy h1 {
    max-width: 700px;
    margin: 17px 0 20px;
    font-size: clamp(42px, 5.2vw, 62px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.login-copy > p {
    max-width: 570px;
    margin: 0;
    color: var(--text-2);
    font-size: 17px;
    line-height: 1.7;
}

.login-security {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: var(--text-2);
    font-size: 13px;
}

.login-security > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(19, 155, 98, .12);
}

.login-card {
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 23px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.login-card-heading {
    margin-bottom: 27px;
}

.login-card-heading h2 {
    margin: 0 0 7px;
    font-size: 25px;
    letter-spacing: -.025em;
}

.login-card-heading p {
    margin: 0;
    color: var(--text-2);
    font-size: 14px;
}

.field {
    display: block;
    margin-bottom: 17px;
}

.field span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 750;
}

.field input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--border-2);
    border-radius: 12px;
    outline: none;
    background: var(--surface);
    color: var(--text);
}

.field input:focus {
    border-color: var(--button);
    box-shadow: 0 0 0 4px rgba(178, 84, 255, .12);
}

.field input::placeholder {
    color: var(--text-3);
}

.login-button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: var(--button);
    color: #fff;
    cursor: pointer;
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(178, 84, 255, .23);
}

.login-button:hover {
    background: var(--button-hover);
}

.login-helper {
    margin: 19px 0 0;
    color: var(--text-3);
    font-size: 12px;
    text-align: center;
}

.auth-footer {
    padding: 22px;
    color: var(--text-3);
    font-size: 12px;
    text-align: center;
}

.auth-footer span {
    margin: 0 8px;
}

/* TOPBAR */

.topbar {
    position: fixed;
    z-index: 80;
    inset: 0 0 auto 0;
    height: var(--topbar-h);
    display: grid;
    grid-template-columns: var(--nav-w) minmax(280px, 600px) 1fr;
    align-items: center;
    gap: 24px;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 95%, transparent);
    backdrop-filter: blur(18px);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-nav-toggle {
    display: none;
}

.global-search {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: var(--surface-2);
    color: var(--text-3);
}

.global-search:focus-within {
    border-color: rgba(178, 84, 255, .28);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(178, 84, 255, .08);
}

.global-search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
}

.global-search input::placeholder {
    color: var(--text-3);
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.account-chip {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    margin-left: 4px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
}

/* MAIN SHELL */

.mail-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--nav-w) var(--list-w) minmax(0, 1fr);
    padding-top: var(--topbar-h);
}

.main-nav {
    position: fixed;
    z-index: 70;
    top: var(--topbar-h);
    bottom: 0;
    left: 0;
    width: var(--nav-w);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 13px 16px;
    background: var(--nav-bg);
    color: var(--nav-text);
    overflow-y: auto;
}

.compose-trigger {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 12px;
    background: var(--button);
    color: #fff;
    cursor: pointer;
    font-weight: 850;
    box-shadow: 0 9px 21px rgba(178, 84, 255, .20);
}

.compose-trigger:hover {
    background: var(--button-hover);
}

.compose-plus {
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.folder-nav {
    display: grid;
    gap: 3px;
    margin-top: 19px;
}

.folder-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 9px;
    padding: 0 12px;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
}

.folder-link:hover {
    background: var(--nav-hover);
}

.folder-link.active {
    background: rgba(119, 0, 253, .22);
    color: #fff;
}

.folder-icon {
    width: 20px;
    flex: 0 0 auto;
}

.main-nav-bottom {
    display: grid;
    gap: 11px;
}

.account-summary {
    min-width: 0;
    padding: 11px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
}

.account-summary span {
    display: block;
    margin-bottom: 4px;
    color: var(--nav-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.account-summary strong {
    display: block;
    overflow: hidden;
    color: var(--nav-text);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-link {
    width: 100%;
    min-height: 39px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--nav-muted);
    padding: 0 11px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.logout-link:hover {
    background: var(--nav-hover);
    color: #fff;
}

/* LIST PANE */

.mail-list-pane {
    grid-column: 2;
    min-width: 0;
    min-height: calc(100vh - var(--topbar-h));
    margin-left: 0;
    border-right: 1px solid var(--border);
    background: var(--surface);
}

.mail-list-header {
    position: sticky;
    z-index: 30;
    top: var(--topbar-h);
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 14px 0 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.mail-list-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    font-size: 14px;
    font-weight: 850;
}

.mail-list-title small {
    min-width: 23px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--text-3);
    font-size: 10px;
}

.list-header-actions {
    display: flex;
    gap: 3px;
}

.toolbar-btn,
.reader-action-btn {
    width: 35px;
    height: 35px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
}

.toolbar-btn:hover,
.reader-action-btn:hover {
    background: var(--surface-2);
    color: var(--text);
}

.reader-action-btn.active,
.star-btn.active {
    color: var(--brand);
}

.filter-menu-wrap {
    position: relative;
}

.filter-menu {
    position: absolute;
    z-index: 90;
    top: calc(100% + 7px);
    right: 0;
    width: 170px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.filter-menu a {
    min-height: 36px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 10px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
}

.filter-menu a:hover,
.filter-menu a.active {
    background: var(--surface-2);
    color: var(--brand);
}

.pane-alert,
.pane-success {
    margin: 10px 12px 0;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 11px;
    line-height: 1.4;
}

.pane-alert {
    background: #fff0f3;
    color: #a11b3a;
}

.pane-success {
    background: #eaf9f1;
    color: #147248;
}

.message-list {
    min-width: 0;
}

.message-item {
    position: relative;
    min-height: 89px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.message-item:hover {
    background: var(--surface-2);
}

.message-item.selected {
    background: rgba(var(--brand-rgb), .08);
}

.message-item.unread::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand);
}

.message-star-form {
    display: grid;
    place-items: start center;
    padding-top: 44px;
}

.star-btn {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
}

.star-btn:hover {
    background: var(--surface-3);
    color: var(--brand);
}

.star-btn svg {
    width: 16px;
    height: 16px;
}

.message-item-link {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    padding: 13px 12px 12px 0;
    text-decoration: none;
}

.sender-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(var(--brand-rgb), .10);
    color: var(--brand);
    font-size: 12px;
    font-weight: 850;
}

.message-item-copy {
    min-width: 0;
}

.message-item-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.message-item-line strong {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-item.read .message-item-line strong {
    color: var(--text-2);
    font-weight: 650;
}

.message-item-line time {
    flex: 0 0 auto;
    color: var(--text-3);
    font-size: 9px;
}

.message-item-subject {
    overflow: hidden;
    margin-top: 5px;
    color: var(--text);
    font-size: 12px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-item.read .message-item-subject {
    color: var(--text-2);
    font-weight: 600;
}

.message-item-preview {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    margin-top: 5px;
    color: var(--text-3);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-item-preview > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-indicator {
    flex: 0 0 auto;
}

.attachment-indicator svg {
    width: 12px;
    height: 12px;
}

.list-empty {
    display: grid;
    justify-items: center;
    padding: 70px 25px;
    color: var(--text-3);
    text-align: center;
}

.list-empty > div {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(var(--brand-rgb), .08);
    color: var(--brand);
}

.list-empty h2 {
    margin: 16px 0 7px;
    color: var(--text);
    font-size: 16px;
}

.list-empty p {
    max-width: 290px;
    margin: 0;
    font-size: 11px;
    line-height: 1.55;
}

/* READER */

.message-reader-pane {
    grid-column: 3;
    min-width: 0;
    min-height: calc(100vh - var(--topbar-h));
    background: var(--bg);
}

.reader-toolbar {
    position: sticky;
    z-index: 25;
    top: var(--topbar-h);
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 22px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    backdrop-filter: blur(12px);
}

.reader-actions {
    display: flex;
    align-items: center;
    gap: 3px;
}

.reader-actions form {
    margin: 0;
}

.mobile-reader-back {
    display: none;
}

.reader-scroll {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 30px 32px 50px;
}

.message-header {
    padding: 0 0 22px;
}

.message-title-row h1 {
    margin: 0;
    font-size: clamp(23px, 2.5vw, 34px);
    line-height: 1.22;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.message-person {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.large-avatar {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(var(--brand-rgb), .10);
    color: var(--brand);
    font-size: 13px;
    font-weight: 850;
}

.message-person-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.message-person-copy strong {
    font-size: 12px;
}

.message-person-copy span {
    overflow: hidden;
    color: var(--text-3);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-person time {
    color: var(--text-3);
    font-size: 10px;
    white-space: nowrap;
}

.privacy-bar {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    padding: 9px 11px;
}

.privacy-bar > span {
    color: var(--brand);
}

.privacy-bar strong,
.privacy-bar div > span {
    display: block;
}

.privacy-bar strong {
    font-size: 10px;
}

.privacy-bar div > span {
    margin-top: 2px;
    color: var(--text-3);
    font-size: 9px;
}

.privacy-bar button {
    border: 0;
    background: transparent;
    color: var(--brand);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

.privacy-bar.images-loaded {
    opacity: .70;
}

.message-frame {
    width: 100%;
    min-height: 430px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 17, 26, .04);
}

.attachments-panel {
    margin-top: 18px;
}

.attachments-panel h2 {
    margin: 0 0 9px;
    font-size: 12px;
}

.attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attachment-card {
    min-width: 180px;
    max-width: 280px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    padding: 9px 11px;
    text-decoration: none;
}

.attachment-card:hover {
    border-color: rgba(var(--brand-rgb), .28);
}

.attachment-card > span {
    color: var(--brand);
}

.attachment-card div {
    min-width: 0;
}

.attachment-card strong,
.attachment-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-card strong {
    font-size: 10px;
}

.attachment-card small {
    margin-top: 2px;
    color: var(--text-3);
    font-size: 8px;
}

.quick-reply-bar {
    display: flex;
    gap: 8px;
    margin-top: 19px;
}

.quick-action {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--border-2);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text-2);
    padding: 0 13px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 750;
}

.quick-action:hover {
    border-color: rgba(var(--brand-rgb), .25);
    color: var(--brand);
}

.quick-action svg {
    width: 15px;
    height: 15px;
}

.reader-empty {
    min-height: calc(100vh - var(--topbar-h) - 58px);
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 30px;
    color: var(--text-3);
    text-align: center;
}

.reader-empty-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    background: var(--surface);
    color: var(--brand);
    box-shadow: var(--shadow);
}

.reader-empty-icon svg {
    width: 26px;
    height: 26px;
}

.reader-empty h2 {
    margin: 18px 0 7px;
    color: var(--text);
    font-size: 17px;
}

.reader-empty p {
    max-width: 340px;
    margin: 0;
    font-size: 11px;
    line-height: 1.55;
}

/* COMPOSE */

.compose-modal {
    position: fixed;
    z-index: 200;
    inset: 0;
}

.compose-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(12, 10, 16, .45);
    cursor: default;
}

.compose-window {
    position: absolute;
    right: 24px;
    bottom: 20px;
    width: min(620px, calc(100vw - 48px));
    height: min(670px, calc(100vh - 100px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: 0 25px 70px rgba(14, 10, 20, .26);
}

.compose-header {
    min-height: 67px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 17px 0 20px;
    border-bottom: 1px solid var(--border);
}

.compose-eyebrow {
    color: var(--brand);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .13em;
}

.compose-header h2 {
    margin: 3px 0 0;
    font-size: 15px;
}

.compose-form {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.compose-line {
    min-height: 48px;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding: 0 18px;
}

.compose-line > span {
    color: var(--text-3);
    font-size: 10px;
    font-weight: 750;
}

.compose-line input {
    min-width: 0;
    height: 45px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 12px;
}

.compose-body {
    min-height: 200px;
    flex: 1;
    resize: none;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    padding: 20px;
    font-size: 13px;
    line-height: 1.65;
}

.compose-body::placeholder {
    color: var(--text-3);
}

.compose-attachments {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 17px;
    border-top: 1px solid var(--border);
}

.attach-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-2);
    cursor: pointer;
    font-size: 10px;
    font-weight: 750;
}

.attach-button input {
    display: none;
}

.attach-button svg {
    width: 16px;
    height: 16px;
}

.selected-files {
    min-width: 0;
    overflow: hidden;
    color: var(--text-3);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compose-footer {
    min-height: 61px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 17px;
    border-top: 1px solid var(--border);
}

.compose-security {
    color: var(--text-3);
    font-size: 9px;
}

.send-button {
    min-width: 95px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 9px;
    background: var(--button);
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 850;
}

.send-button:hover {
    background: var(--button-hover);
}

.send-button svg {
    width: 15px;
    height: 15px;
}

/* GLOBAL BANNERS / TOAST */

.global-error-banner {
    position: fixed;
    z-index: 180;
    top: 78px;
    left: 50%;
    max-width: min(600px, calc(100vw - 30px));
    transform: translateX(-50%);
    border: 1px solid #ffc6d3;
    border-radius: 10px;
    background: #fff1f4;
    color: #9b1737;
    padding: 11px 14px;
    box-shadow: var(--shadow);
    font-size: 11px;
}

.toast {
    position: fixed;
    z-index: 250;
    right: 20px;
    bottom: 20px;
    max-width: min(390px, calc(100vw - 40px));
    transform: translateY(15px);
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    padding: 11px 13px;
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.nav-backdrop {
    display: none;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
    :root {
        --nav-w: 205px;
        --list-w: 370px;
    }

    .topbar {
        grid-template-columns: var(--nav-w) minmax(260px, 520px) 1fr;
    }

    .reader-scroll {
        padding-inline: 24px;
    }
}

@media (max-width: 980px) {
    :root {
        --list-w: 345px;
    }

    .topbar {
        grid-template-columns: var(--nav-w) minmax(220px, 1fr) auto;
    }

    .message-person {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .message-person time {
        grid-column: 2;
    }
}

@media (max-width: 880px) {
    :root {
        --topbar-h: 64px;
        --nav-w: 245px;
    }

    .topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        padding: 0 12px;
    }

    .mobile-nav-toggle {
        display: inline-grid;
    }

    .topbar-brand {
        gap: 2px;
    }

    .topbar .brand-logo {
        max-width: 96px;
        height: 31px;
    }

    .global-search {
        height: 40px;
        padding-inline: 10px;
    }

    .topbar-actions .icon-btn:first-child {
        display: none;
    }

    .mail-shell {
        display: block;
        padding-top: var(--topbar-h);
    }

    .main-nav {
        top: var(--topbar-h);
        width: min(var(--nav-w), 84vw);
        transform: translateX(-102%);
        box-shadow: 18px 0 45px rgba(0,0,0,.18);
        transition: transform .18s ease;
    }

    .nav-open .main-nav {
        transform: translateX(0);
    }

    .nav-backdrop {
        position: fixed;
        z-index: 65;
        inset: var(--topbar-h) 0 0;
        display: block;
        background: rgba(12,10,16,.44);
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease;
    }

    .nav-open .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .mail-list-pane {
        width: 100%;
        min-height: calc(100vh - var(--topbar-h));
        border-right: 0;
    }

    .message-reader-pane {
        display: none;
        width: 100%;
    }

    .has-selected-message .mail-list-pane {
        display: none;
    }

    .has-selected-message .message-reader-pane {
        display: block;
    }

    .reader-toolbar {
        top: var(--topbar-h);
        justify-content: space-between;
        padding-inline: 15px;
    }

    .mobile-reader-back {
        display: inline-flex;
        color: var(--text-2);
        text-decoration: none;
    }

    .reader-scroll {
        width: 100%;
        padding: 23px 17px 40px;
    }

    .reader-empty {
        display: none;
    }
}

@media (max-width: 700px) {
    .account-chip {
        display: none;
    }

    .global-search input {
        font-size: 12px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .login-copy {
        text-align: center;
    }

    .login-copy > p {
        margin-inline: auto;
        font-size: 15px;
    }

    .login-security {
        justify-content: center;
    }

    .login-card {
        width: min(460px, 100%);
        margin: 0 auto;
    }

    .privacy-bar {
        grid-template-columns: 25px minmax(0, 1fr);
    }

    .privacy-bar button {
        grid-column: 2;
        justify-self: start;
        padding: 0;
    }

    .compose-window {
        right: 8px;
        bottom: 8px;
        width: calc(100vw - 16px);
        height: calc(100vh - var(--topbar-h) - 16px);
        border-radius: 14px;
    }

    .compose-security {
        display: none;
    }

    .compose-footer {
        justify-content: flex-end;
    }
}

@media (max-width: 520px) {
    .auth-header {
        padding-inline: 17px;
    }

    .auth-main {
        padding: 24px 15px 42px;
    }

    .login-copy h1 {
        font-size: 36px;
    }

    .login-card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .mail-list-header {
        padding-inline: 13px;
    }

    .message-item {
        min-height: 84px;
        grid-template-columns: 29px minmax(0, 1fr);
    }

    .message-star-form {
        padding-top: 41px;
    }

    .message-item-link {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 9px;
    }

    .sender-avatar {
        width: 33px;
        height: 33px;
    }

    .message-person-copy span:first-of-type {
        display: none;
    }

    .quick-reply-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .quick-action {
        justify-content: center;
    }
}


/* ==========================================================================
   HMAIL V5 - PERFORMANCE / UNREAD / RICH BODY / WYSIWYG
   ========================================================================== */

.folder-label {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-count {
    min-width: 23px;
    height: 21px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--button);
    color: #fff;
    padding: 0 6px;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| E-mail novo / não lido
|--------------------------------------------------------------------------
*/

.message-item.unread {
    background:
        linear-gradient(
            90deg,
            rgba(var(--brand-rgb), .12),
            rgba(var(--brand-rgb), .035) 52%,
            transparent
        ),
        var(--surface);
}

.message-item.unread:hover {
    background:
        linear-gradient(
            90deg,
            rgba(var(--brand-rgb), .16),
            rgba(var(--brand-rgb), .06) 55%,
            transparent
        ),
        var(--surface-2);
}

.message-item.unread::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--brand);
}

.message-item.unread .message-item-line strong,
.message-item.unread .message-item-subject {
    color: var(--text);
    font-weight: 900;
}

.message-item.unread .message-item-preview {
    color: color-mix(in srgb, var(--brand) 75%, var(--text-2));
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| Corpo HTML rico no MESMO request
|--------------------------------------------------------------------------
*/

.email-html-surface {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(20, 17, 26, .04);
}

.email-html-body {
    min-height: 360px;
    padding: 25px 28px 38px;
    color: #202124;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.email-html-body img {
    max-width: 100% !important;
    height: auto !important;
}

.email-html-body table {
    max-width: 100% !important;
}

.email-html-body a {
    color: #7700fd;
}

.hmail-plain {
    white-space: normal;
}

.hmail-empty {
    color: #777;
}

.hmail-remote-image-blocked {
    display: inline-block;
    margin: 3px 0;
    border-radius: 7px;
    background: #f0f0f3;
    color: #77717e;
    padding: 7px 9px;
    font: 11px Arial, sans-serif;
}

.privacy-bar a {
    color: var(--brand);
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| WYSIWYG
|--------------------------------------------------------------------------
*/

.editor-toolbar {
    min-height: 43px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    padding: 5px 12px;
}

.editor-toolbar button {
    min-width: 31px;
    height: 31px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-2);
    padding: 0 8px;
    cursor: pointer;
    font-size: 10px;
}

.editor-toolbar button:hover {
    background: var(--surface-3);
    color: var(--text);
}

.editor-separator {
    width: 1px;
    height: 20px;
    margin: 0 4px;
    background: var(--border-2);
}

.compose-editor {
    min-height: 210px;
    flex: 1;
    overflow-y: auto;
    outline: none;
    background: var(--surface);
    color: var(--text);
    padding: 20px;
    font-size: 13px;
    line-height: 1.65;
}

.compose-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--text-3);
    pointer-events: none;
}

.compose-editor.editor-error {
    box-shadow: inset 0 0 0 2px #d94462;
}

.compose-editor a {
    color: var(--brand);
}

.compose-editor ul,
.compose-editor ol {
    padding-left: 24px;
}

/*
|--------------------------------------------------------------------------
| Dark mode mantém o e-mail original em superfície clara.
|--------------------------------------------------------------------------
*/

html[data-theme="dark"] .email-html-surface {
    background: #fff;
}

@media (max-width: 700px) {
    .email-html-body {
        min-height: 300px;
        padding: 20px 17px 30px;
    }

    .editor-toolbar {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}


/* ==========================================================================
   DASHBOARD AJAX / UI ASSÍNCRONA
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| Dashboard shell
|--------------------------------------------------------------------------
*/

.ajax-mail-shell .mail-list-pane,
.ajax-mail-shell .message-reader-pane {
    min-height: calc(100vh - var(--topbar-h));
}

.ajax-message-link {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 13px 12px 12px 0;
    text-align: left;
    cursor: pointer;
}

.message-item {
    grid-template-columns: 32px minmax(0, 1fr);
}

.message-item > .star-btn {
    align-self: center;
    justify-self: center;
}

.filter-menu button {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-2);
    padding: 0 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
    text-align: left;
}

.filter-menu button:hover {
    background: var(--surface-2);
    color: var(--brand);
}

/*
|--------------------------------------------------------------------------
| Loading skeleton
|--------------------------------------------------------------------------
*/

.list-skeleton {
    overflow: hidden;
}

.skeleton-row {
    min-height: 89px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding: 13px 16px;
}

.skeleton-row > span,
.skeleton-row b,
.skeleton-row i,
.skeleton-row em {
    display: block;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--surface-3) 25%,
            color-mix(in srgb, var(--surface-3) 65%, var(--surface)) 50%,
            var(--surface-3) 75%
        );
    background-size: 200% 100%;
    animation: hmailSkeleton 1.25s linear infinite;
}

.skeleton-row > span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.skeleton-row div {
    display: grid;
    gap: 8px;
}

.skeleton-row b {
    width: 46%;
    height: 9px;
}

.skeleton-row i {
    width: 78%;
    height: 10px;
}

.skeleton-row em {
    width: 60%;
    height: 8px;
}

@keyframes hmailSkeleton {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

.async-error {
    margin: 11px 12px;
    border: 1px solid #ffd0da;
    border-radius: 10px;
    background: #fff0f3;
    color: #9f1737;
    padding: 11px 13px;
    font-size: 11px;
    line-height: 1.5;
}

html[data-theme="dark"] .async-error {
    border-color: rgba(255, 90, 125, .20);
    background: rgba(159, 23, 55, .16);
    color: #ff9bb3;
}

/*
|--------------------------------------------------------------------------
| Reader async
|--------------------------------------------------------------------------
*/

.reader-loading {
    min-height: calc(100vh - var(--topbar-h) - 58px);
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    color: var(--text-3);
    font-size: 11px;
}

.reader-spinner {
    width: 27px;
    height: 27px;
    border: 3px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: hmailSpin .75s linear infinite;
}

@keyframes hmailSpin {
    to {
        transform: rotate(360deg);
    }
}

.reader-error {
    max-width: 640px;
    margin: 25px auto;
}


.privacy-bar a,
.privacy-bar button {
    border: 0;
    background: transparent;
    color: var(--brand);
    cursor: pointer;
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
}

.reader-action-btn {
    font-size: 20px;
    line-height: 1;
}

.reader-action-btn.active {
    color: var(--brand);
}

/*
|--------------------------------------------------------------------------
| Sidebar unread
|--------------------------------------------------------------------------
*/

.folder-link {
    position: relative;
}

.folder-count {
    margin-left: auto;
    background: var(--button);
    color: #fff;
}

/*
|--------------------------------------------------------------------------
| Dark theme: o documento da mensagem continua respeitando seu próprio HTML.
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 880px) {
    .ajax-message-link {
        grid-template-columns: 35px minmax(0, 1fr);
        gap: 9px;
    }
}


/* ==========================================================================
   ALERTAS / LEITOR ISOLADO
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| Alertas do login
|--------------------------------------------------------------------------
*/

.alert {
    width: 100%;
    margin: 0 0 20px;
    border-radius: 11px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.5;
}

.alert-error {
    border: 1px solid rgba(220, 55, 88, .24);
    background: rgba(220, 55, 88, .10);
    color: #b92b49;
}

html[data-theme="dark"] .alert-error {
    border-color: rgba(255, 105, 137, .22);
    background: rgba(177, 34, 64, .16);
    color: #ff9db3;
}

/*
|--------------------------------------------------------------------------
| Leitor do e-mail
|--------------------------------------------------------------------------
*/


.privacy-bar button:disabled {
    opacity: .65;
    cursor: default;
}

/*
|--------------------------------------------------------------------------
| A mensagem HTML é um documento isolado e mantém seu próprio visual.
|--------------------------------------------------------------------------
*/

.reader-scroll {
    max-width: 1080px;
}

@media (max-width: 880px) {
}


/* ==========================================================================
   HMAIL V7 — MYSQL FIRST
   ========================================================================== */

.sync-strip {
    min-height: 31px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    background: rgba(var(--brand-rgb), .045);
    color: var(--text-3);
    padding: 0 14px;
    font-size: 9px;
}

.mini-spinner {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border: 2px solid var(--border-2);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: hmailSpin .7s linear infinite;
}

.message-frame-v7 {
    width: 100%;
    height: clamp(520px, calc(100vh - 240px), 900px);
    min-height: 0;
    display: block;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 17, 26, .05);
    overflow: auto;
}

.reader-warning {
    margin-bottom: 12px;
    border: 1px solid rgba(210, 138, 0, .24);
    border-radius: 10px;
    background: rgba(210, 138, 0, .10);
    color: #9b6900;
    padding: 10px 12px;
    font-size: 10px;
    line-height: 1.5;
}

html[data-theme="dark"] .reader-warning {
    border-color: rgba(237, 177, 64, .20);
    background: rgba(210, 138, 0, .12);
    color: #e9bc66;
}

.global-success-banner {
    position: fixed;
    z-index: 180;
    top: 78px;
    left: 50%;
    max-width: min(600px, calc(100vw - 30px));
    transform: translateX(-50%);
    border: 1px solid rgba(19, 155, 98, .24);
    border-radius: 10px;
    background: #eaf9f1;
    color: #147248;
    padding: 11px 14px;
    box-shadow: var(--shadow);
    font-size: 11px;
}

html[data-theme="dark"] .global-success-banner {
    border-color: rgba(74, 211, 148, .20);
    background: rgba(19, 155, 98, .14);
    color: #70dfae;
}

.alert-success {
    border: 1px solid rgba(19, 155, 98, .24);
    background: rgba(19, 155, 98, .10);
    color: #147248;
}

html[data-theme="dark"] .alert-success {
    border-color: rgba(74, 211, 148, .20);
    background: rgba(19, 155, 98, .14);
    color: #70dfae;
}

.setup-card {
    width: min(560px, 100%);
    margin: 20px auto;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    padding: 34px;
    box-shadow: var(--shadow);
}

.setup-card h1 {
    margin: 10px 0 12px;
    font-size: 30px;
    letter-spacing: -.035em;
}

.setup-copy {
    margin: 0 0 24px;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.6;
}

.setup-helper {
    margin: 16px 0 0;
    color: var(--text-3);
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

.setup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.setup-primary,
.setup-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
}

.setup-primary {
    background: var(--button);
    color: #fff;
}

.setup-primary:hover {
    background: var(--button-hover);
}

.setup-secondary {
    border: 1px solid var(--border-2);
    background: var(--surface);
    color: var(--text-2);
}

.setup-secondary:hover {
    border-color: rgba(var(--brand-rgb), .26);
    color: var(--brand);
}

.diagnostics-card {
    width: min(720px, 100%);
}

.diagnostics-list {
    display: grid;
    gap: 7px;
    margin-top: 24px;
}

.diagnostic-row {
    display: grid;
    grid-template-columns: 12px minmax(140px, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}

.diagnostic-row strong {
    font-size: 11px;
}

.diagnostic-row > span:last-child {
    color: var(--text-3);
    font-size: 10px;
}

.diagnostic-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.diagnostic-dot.ok {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(19, 155, 98, .10);
}

.diagnostic-dot.bad {
    background: #d94462;
    box-shadow: 0 0 0 4px rgba(217, 68, 98, .10);
}

.diagnostic-note {
    margin-top: 18px;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-2);
    padding: 13px;
    font-size: 11px;
    line-height: 1.55;
}

.diagnostic-note strong {
    color: var(--text);
}

.diagnostic-note code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.diagnostics-login {
    margin-top: 18px;
}

.ajax-message-link {
    appearance: none;
    -webkit-appearance: none;
}

.login-button:disabled,
.send-button:disabled {
    opacity: .72;
    cursor: wait;
}

.privacy-bar button {
    white-space: nowrap;
}

@media (max-width: 880px) {
    .message-frame-v7 {
        height: clamp(500px, calc(100dvh - 210px), 760px);
    }
}

@media (max-width: 700px) {
    .setup-card {
        padding: 25px 19px;
        border-radius: 18px;
    }

    .diagnostic-row {
        grid-template-columns: 12px 1fr;
    }

    .diagnostic-row > span:last-child {
        grid-column: 2;
    }

    .message-frame-v7 {
        height: clamp(460px, calc(100dvh - 190px), 700px);
    }
}


/* ==========================================================================
   HMAIL V7.2 — IDENTIDADE / TOAST / SETTINGS / SIDEBAR
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| A faixa da marca acompanha a sidebar
|--------------------------------------------------------------------------
*/

@media (min-width: 881px) {
    .topbar::before {
        content: "";
        position: absolute;
        z-index: 0;
        inset: 0 auto 0 0;
        width: var(--nav-w);
        border-right: 1px solid rgba(255, 255, 255, .05);
        background: var(--nav-bg);
    }

    .topbar-brand,
    .global-search,
    .topbar-actions {
        position: relative;
        z-index: 1;
    }

    .topbar-brand {
        align-self: stretch;
    }
}

/*
|--------------------------------------------------------------------------
| Conta na sidebar
|--------------------------------------------------------------------------
*/

.account-summary small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--nav-muted);
    font-size: 9px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-divider {
    height: 1px;
    margin: 14px 4px 10px;
    background: rgba(255, 255, 255, .07);
}

.settings-nav-link {
    margin-bottom: 4px;
}

/*
|--------------------------------------------------------------------------
| Flash / confirmação temporária
|--------------------------------------------------------------------------
*/

.flash-toast {
    --toast-accent: var(--brand);

    position: fixed;
    z-index: 220;
    top: calc(var(--topbar-h) + 15px);
    left: 50%;
    width: min(520px, calc(100vw - 30px));
    min-height: 66px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 11px;
    transform: translate(-50%, -8px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: 0 18px 54px rgba(28, 20, 42, .18);
    padding: 11px 12px 13px;
    opacity: 0;
    animation: hmailFlashIn .24s ease forwards;
}

.flash-toast-success {
    --toast-accent: #139b62;
    border-color: rgba(19, 155, 98, .27);
}

.flash-toast-warning {
    --toast-accent: #d28a00;
    border-color: rgba(210, 138, 0, .30);
}

.flash-toast-error {
    --toast-accent: #d94462;
    border-color: rgba(217, 68, 98, .30);
}

.flash-toast-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--toast-accent) 12%, transparent);
    color: var(--toast-accent);
    font-size: 16px;
    font-weight: 950;
}

.flash-toast-copy {
    min-width: 0;
}

.flash-toast-copy strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.2;
}

.flash-toast-copy span {
    display: block;
    color: var(--text-2);
    font-size: 10px;
    line-height: 1.45;
}

.flash-toast-close {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
    font-size: 19px;
    line-height: 1;
}

.flash-toast-close:hover {
    background: var(--surface-2);
    color: var(--text);
}

.flash-toast-progress {
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    transform-origin: left;
    background: var(--toast-accent);
    animation: hmailFlashProgress 5s linear forwards;
}

.flash-toast.is-leaving {
    animation: hmailFlashOut .26s ease forwards;
}

@keyframes hmailFlashIn {
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes hmailFlashOut {
    to {
        transform: translate(-50%, -8px);
        opacity: 0;
    }
}

@keyframes hmailFlashProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/*
|--------------------------------------------------------------------------
| Configurações
|--------------------------------------------------------------------------
*/

.settings-shell {
    min-height: 100vh;
    padding-top: var(--topbar-h);
}

.settings-content {
    min-height: calc(100vh - var(--topbar-h));
    margin-left: var(--nav-w);
    padding: 42px clamp(24px, 5vw, 72px) 70px;
}

.settings-heading {
    width: min(880px, 100%);
    margin: 0 auto 25px;
}

.settings-heading h1 {
    margin: 8px 0 7px;
    font-size: clamp(29px, 3vw, 38px);
    letter-spacing: -.04em;
}

.settings-heading p {
    margin: 0;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.6;
}

.settings-form {
    width: min(880px, 100%);
    display: grid;
    gap: 16px;
    margin: 0 auto;
}

.settings-card {
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--surface);
    padding: 24px;
    box-shadow: 0 10px 34px rgba(25, 20, 35, .035);
}

.settings-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.settings-card-heading h2 {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 17px;
    letter-spacing: -.02em;
}

.settings-kicker {
    color: var(--brand);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.settings-badge {
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(var(--brand-rgb), .09);
    color: var(--brand);
    padding: 0 10px;
    font-size: 9px;
    font-weight: 850;
}

.settings-description {
    max-width: 660px;
    margin: 11px 0 21px;
    color: var(--text-2);
    font-size: 11px;
    line-height: 1.65;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.settings-grid-full {
    grid-column: 1 / -1;
}

.settings-card .field {
    margin-bottom: 16px;
}

.settings-card .field:last-child {
    margin-bottom: 0;
}

.settings-card .field input[readonly] {
    background: var(--surface-2);
    color: var(--text-3);
    cursor: not-allowed;
}

.settings-select-field {
    width: min(360px, 100%);
    margin-bottom: 0 !important;
}

.settings-select-field select {
    width: 100%;
    height: 50px;
    border: 1px solid var(--border-2);
    border-radius: 12px;
    outline: none;
    background: var(--surface);
    color: var(--text);
    padding: 0 40px 0 14px;
    cursor: pointer;
}

.settings-select-field select:focus {
    border-color: var(--button);
    box-shadow: 0 0 0 4px rgba(178, 84, 255, .12);
}

.theme-preference-preview {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    padding: 0 13px;
    color: var(--text-2);
    font-size: 11px;
}

.theme-preference-preview strong {
    color: var(--text);
}

.theme-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .10);
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 2px;
}

.settings-save {
    min-width: 190px;
    height: 46px;
    border: 0;
    border-radius: 11px;
    background: var(--button);
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(178, 84, 255, .20);
}

.settings-save:hover {
    background: var(--button-hover);
}

/*
|--------------------------------------------------------------------------
| Configurações não precisam de busca/refresh de caixa no topo
|--------------------------------------------------------------------------
*/

.settings-page .global-search,
.settings-page [data-force-refresh] {
    display: none;
}

.settings-page .topbar {
    grid-template-columns: var(--nav-w) minmax(0, 1fr) auto;
}

.settings-page .topbar-actions {
    grid-column: 3;
}

/*
|--------------------------------------------------------------------------
| Leitor
|--------------------------------------------------------------------------
*/

.message-frame-v7 {
    min-height: 0;
}

/*
|--------------------------------------------------------------------------
| Diagnóstico: estado informativo não é erro
|--------------------------------------------------------------------------
*/

.diagnostic-dot.info {
    background: #7b61d8;
    box-shadow: 0 0 0 4px rgba(123, 97, 216, .10);
}

@media (max-width: 880px) {
    .settings-content {
        margin-left: 0;
        padding: 30px 17px 55px;
    }

    .settings-page .topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .settings-page .topbar-actions {
        grid-column: 3;
    }
}

@media (max-width: 620px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid-full {
        grid-column: auto;
    }

    .settings-card {
        padding: 20px 16px;
    }

    .settings-actions {
        display: block;
    }

    .settings-save {
        width: 100%;
    }

    .flash-toast {
        top: calc(var(--topbar-h) + 9px);
        grid-template-columns: 34px minmax(0, 1fr) 28px;
        gap: 9px;
        padding-inline: 10px;
    }
}

/* ==========================================================================
   HMAIL V7.2 — WEBMAIL COMPLETO
   ========================================================================== */

.mail-list-heading-block {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.select-all-wrap,
.message-checkbox {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.select-all-wrap {
    width: 24px;
    height: 24px;
}

.select-all-wrap input,
.message-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.select-all-wrap span,
.message-checkbox span {
    width: 15px;
    height: 15px;
    display: block;
    border: 1.5px solid var(--text-3);
    border-radius: 4px;
    background: var(--surface);
    transition: .15s ease;
}

.select-all-wrap input:checked + span,
.message-checkbox input:checked + span {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: inset 0 0 0 3px var(--surface);
}

.message-checkbox {
    width: 26px;
    align-self: stretch;
}

.bulk-toolbar {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bulk-toolbar strong {
    min-width: 96px;
    margin-right: 5px;
    color: var(--text);
    font-size: 10px;
}

.toolbar-btn.danger,
.reader-action-btn.danger {
    color: #d94462;
}

.mail-pagination {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 0 12px 0 16px;
    color: var(--text-3);
    font-size: 9px;
}

.mail-pagination > div {
    display: flex;
    gap: 5px;
}

.mail-pagination button {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-2);
    cursor: pointer;
}

.mail-pagination button:hover:not(:disabled) {
    border-color: rgba(var(--brand-rgb), .28);
    color: var(--brand);
}

.mail-pagination button:disabled {
    opacity: .35;
    cursor: default;
}

.message-item {
    grid-template-columns: 27px 25px minmax(0, 1fr);
}

.draft-message-item {
    grid-template-columns: 28px minmax(0, 1fr) 32px;
}

.draft-list-icon {
    display: grid;
    place-items: center;
    color: var(--brand);
    font-size: 16px;
}

.draft-row-delete {
    width: 28px;
    height: 28px;
    align-self: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
    font-size: 18px;
}

.draft-row-delete:hover {
    background: rgba(217, 68, 98, .10);
    color: #d94462;
}

.reader-actions {
    gap: 3px;
}

/* COMPOSE / DRAFTS */

.compose-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.draft-save-state {
    color: var(--text-3);
    font-size: 9px;
    white-space: nowrap;
}

.compose-recipient-wrap {
    position: relative;
}

.contact-suggestions {
    position: absolute;
    z-index: 20;
    top: calc(100% - 2px);
    left: 80px;
    right: 12px;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 5px;
}

.contact-suggestions button {
    width: 100%;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text);
    padding: 8px;
    text-align: left;
    cursor: pointer;
}

.contact-suggestions button:hover {
    background: var(--surface-2);
}

.contact-suggestion-avatar {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(var(--brand-rgb), .10);
    color: var(--brand);
    font-size: 10px;
    font-weight: 900;
}

.contact-suggestions strong,
.contact-suggestions small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-suggestions strong {
    font-size: 10px;
}

.contact-suggestions small {
    margin-top: 2px;
    color: var(--text-3);
    font-size: 9px;
}

.draft-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.draft-file-chip {
    max-width: 260px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    padding: 5px 7px 5px 9px;
    font-size: 9px;
}

.draft-file-chip > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.draft-file-chip button {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
}

.draft-file-chip button:hover {
    background: rgba(217, 68, 98, .10);
    color: #d94462;
}

/* CONTACTS */

.contact-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin-top: 18px;
}

.contact-inline-form .field {
    margin: 0;
}

.contacts-content > .settings-card + .settings-card {
    margin-top: 18px;
}

.contacts-list {
    display: grid;
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: 13px;
    overflow: hidden;
}

.contact-row {
    min-height: 62px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto 36px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding: 8px 11px;
}

.contact-row:last-child {
    border-bottom: 0;
}

.contact-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(var(--brand-rgb), .10);
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
}

.contact-main {
    min-width: 0;
}

.contact-main strong,
.contact-main span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-main strong {
    color: var(--text);
    font-size: 11px;
}

.contact-main span,
.contact-usage {
    margin-top: 3px;
    color: var(--text-3);
    font-size: 9px;
}

.contact-delete {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
}

.contact-delete:hover {
    background: rgba(217, 68, 98, .10);
    color: #d94462;
}

.contacts-empty {
    margin-top: 18px;
    border: 1px dashed var(--border-2);
    border-radius: 12px;
    color: var(--text-3);
    padding: 28px;
    text-align: center;
    font-size: 11px;
}

.contacts-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
    color: var(--text-3);
    font-size: 10px;
}

.contacts-pagination a {
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

/* SMALL TOAST USED BY AJAX ACTIONS */

.toast {
    position: fixed;
    z-index: 300;
    left: 50%;
    bottom: 24px;
    max-width: min(420px, calc(100vw - 30px));
    transform: translate(-50%, 12px);
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
    padding: 10px 14px;
    opacity: 0;
    pointer-events: none;
    font-size: 10px;
    transition: .2s ease;
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.toast[data-type="error"] {
    border-color: rgba(217, 68, 98, .30);
    color: #d94462;
}

/* HTML EMAIL */

.message-frame-v7 {
    min-height: 0;
    background: #fff;
}

@media (max-width: 720px) {
    .contact-inline-form {
        grid-template-columns: 1fr;
    }

    .contact-inline-form .settings-save {
        width: 100%;
    }

    .contact-row {
        grid-template-columns: 38px minmax(0, 1fr) 34px;
    }

    .contact-usage {
        display: none;
    }
}


/* ==========================================================================
   HMAIL V7.2 — PATCH 02
   ========================================================================== */

/* Não lido continua destacado pelo fundo, barra lateral, peso e texto. */
.message-item.unread::before {
    display: none;
}

/* Estrela mais visível na listagem. */
.message-item:not(.draft-message-item) {
    grid-template-columns: 27px 32px minmax(0, 1fr);
}

.star-btn {
    width: 31px;
    height: 31px;
    font-size: 19px;
    line-height: 1;
}

.star-btn.active {
    color: var(--brand);
    font-size: 21px;
    font-weight: 900;
}

/* Estrela do leitor também acompanha o estado com mais destaque. */
.reader-action-btn[data-reader-star] {
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
}

.reader-action-btn[data-reader-star].active {
    color: var(--brand);
}

/* Ícones Arquivar/Desarquivar ocupam exatamente o mesmo espaço. */
[data-reader-archive] > span,
[data-bulk-action="archive"] > span,
[data-bulk-action="unarchive"] > span {
    display: inline-grid;
    place-items: center;
}

[data-reader-archive] > span[hidden],
[data-bulk-action="archive"] > span[hidden],
[data-bulk-action="unarchive"] > span[hidden] {
    display: none;
}

/* Cabeçalho de Contatos alinhado à esquerda dos cards. */
.contacts-page .contacts-heading {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Autocomplete: estado selecionado por teclado. */
.contact-suggestions button.active,
.contact-suggestions button[aria-selected="true"] {
    background: rgba(var(--brand-rgb), .09);
    color: var(--text);
}

.contact-suggestions button.active .contact-suggestion-avatar,
.contact-suggestions button[aria-selected="true"] .contact-suggestion-avatar {
    background: rgba(var(--brand-rgb), .16);
}


/* ==========================================================================
   HMAIL V7.2 — PATCH 03
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| Listagem limpa: favorito somente dentro da mensagem
|--------------------------------------------------------------------------
*/

.message-item:not(.draft-message-item) {
    grid-template-columns: minmax(0, 1fr);
}

.message-item > .star-btn {
    display: none !important;
}

.message-checkbox {
    display: none;
}

.ajax-mail-shell.selection-mode
.message-item:not(.draft-message-item) {
    grid-template-columns: 34px minmax(0, 1fr);
}

.ajax-mail-shell.selection-mode
.message-checkbox {
    display: grid;
}

.ajax-mail-shell.selection-mode
.message-item-link {
    padding-left: 0;
}

/*
|--------------------------------------------------------------------------
| Controle de seleção
|--------------------------------------------------------------------------
*/

.selection-menu-wrap {
    position: relative;
    flex: 0 0 auto;
}

.selection-trigger {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
}

.selection-trigger:hover {
    background: var(--surface-2);
    color: var(--brand);
}

.selection-trigger svg {
    width: 17px;
    height: 17px;
}

.selection-menu {
    position: absolute;
    z-index: 120;
    top: calc(100% + 8px);
    left: 0;
    width: 210px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 6px;
}

.selection-menu button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-2);
    padding: 0 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    text-align: left;
}

.selection-menu button:hover {
    background: var(--surface-2);
    color: var(--brand);
}

.selection-menu button span {
    color: var(--text-3);
    font-size: 9px;
    font-weight: 750;
}

.selection-cancel {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    margin-left: 3px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
}

.selection-cancel:hover {
    background: var(--surface-2);
    color: var(--text);
}

.selection-cancel svg {
    width: 17px;
    height: 17px;
}

.bulk-toolbar [data-bulk-action]:disabled {
    opacity: .35;
    cursor: default;
}

/*
|--------------------------------------------------------------------------
| Coração do favorito
|--------------------------------------------------------------------------
*/

.reader-heart-btn {
    position: relative;
}

.reader-heart-btn > span {
    display: inline-grid;
    place-items: center;
}

.reader-heart-btn > span[hidden] {
    display: none;
}

.reader-heart-btn svg {
    width: 21px;
    height: 21px;
}

.reader-heart-btn [data-heart-outline] svg {
    fill: none;
}

.reader-heart-btn [data-heart-filled] svg,
.reader-heart-btn.active svg.filled-icon {
    fill: currentColor;
}

.reader-heart-btn.active {
    color: var(--brand);
}

/*
|--------------------------------------------------------------------------
| Quota / armazenamento
|--------------------------------------------------------------------------
*/

.mailbox-quota {
    margin: 0 0 12px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 11px;
    background: rgba(255, 255, 255, .035);
    padding: 10px 11px;
}

.mailbox-quota[hidden] {
    display: none;
}

.mailbox-quota-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.mailbox-quota-heading span {
    color: var(--nav-muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mailbox-quota-heading strong {
    color: var(--nav-text);
    font-size: 8px;
}

.mailbox-quota-track {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
}

.mailbox-quota-track span {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--button);
    transition: width .25s ease;
}

.mailbox-quota small {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    color: var(--nav-muted);
    font-size: 8px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Autocomplete
|--------------------------------------------------------------------------
*/

.contact-suggestions {
    z-index: 160;
}

.contact-suggestions button {
    min-height: 45px;
}

.contact-suggestions button.active,
.contact-suggestions button[aria-selected="true"] {
    background: rgba(var(--brand-rgb), .09);
    color: var(--text);
}

@media (max-width: 880px) {
    .selection-menu {
        left: 0;
        width: min(210px, calc(100vw - 30px));
    }
}


/* ==========================================================================
   HMAIL V7.2 — PATCH 04
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| Lista e seletor
|--------------------------------------------------------------------------
*/

.mail-list-header {
    padding-left: 10px;
}

.mail-list-heading-block {
    gap: 8px;
}

.selection-trigger {
    margin-left: -1px;
}

.message-item:not(.draft-message-item)
.message-item-link {
    padding-left: 17px;
}

.ajax-mail-shell.selection-mode
.message-item:not(.draft-message-item) {
    padding-left: 8px;
}

.ajax-mail-shell.selection-mode
.message-item:not(.draft-message-item)
.message-item-link {
    padding-left: 2px;
}

/*
|--------------------------------------------------------------------------
| Suporte HMail
|--------------------------------------------------------------------------
*/

.support-nav-link {
    margin-top: 2px;
}

.support-content {
    padding-bottom: 80px;
}

.support-heading {
    margin-bottom: 24px;
}

.support-primary-grid {
    width: min(880px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 auto 16px;
}

.support-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    padding: 26px;
    box-shadow: 0 12px 38px rgba(25, 20, 35, .045);
}

.support-card-help {
    background:
        linear-gradient(
            145deg,
            rgba(var(--brand-rgb), .055),
            var(--surface) 44%
        );
}

.support-card-icon,
.support-about-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(var(--brand-rgb), .09);
    color: var(--brand);
}

.support-card-icon {
    margin-bottom: 22px;
}

.support-card-icon svg,
.support-about-icon svg {
    width: 22px;
    height: 22px;
}

.support-card-copy {
    flex: 1;
}

.support-card-copy h2,
.support-about-copy h2 {
    margin: 6px 0 10px;
    color: var(--text);
    font-size: 20px;
    letter-spacing: -.03em;
}

.support-card-copy p,
.support-about-copy p {
    margin: 0;
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.72;
}

.support-primary-button,
.support-secondary-button {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 24px;
    border-radius: 11px;
    padding: 0 17px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}

.support-primary-button {
    border: 1px solid transparent;
    background: var(--button);
    color: #fff;
    box-shadow: 0 10px 24px rgba(178, 84, 255, .18);
}

.support-secondary-button {
    border: 1px solid var(--border-2);
    background: var(--surface);
    color: var(--text);
}

.support-primary-button:hover,
.support-secondary-button:hover {
    transform: translateY(-1px);
}

.support-secondary-button:hover {
    border-color: rgba(var(--brand-rgb), .28);
    color: var(--brand);
}

.support-primary-button svg,
.support-secondary-button svg {
    width: 17px;
    height: 17px;
}

.support-about-card {
    width: min(880px, 100%);
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    padding: 26px;
    box-shadow: 0 12px 38px rgba(25, 20, 35, .035);
}

.support-about-icon {
    width: 50px;
    height: 50px;
}

.support-about-copy p + p {
    margin-top: 12px;
}

.support-about-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    border-top: 1px solid var(--border);
    padding-top: 17px;
    color: var(--text-3);
    font-size: 10px;
}

.support-about-footer a {
    flex: 0 0 auto;
    color: var(--brand);
    text-decoration: none;
    font-weight: 850;
}

.support-about-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .support-primary-grid {
        grid-template-columns: 1fr;
    }

    .support-card {
        min-height: 0;
    }

    .support-about-card {
        grid-template-columns: 1fr;
    }

    .support-about-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }
}


/* ==========================================================================
   H3 MAIL — PATCH 05 / BRANDING E LANÇAMENTO
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| Rodapé do login
|--------------------------------------------------------------------------
*/

.auth-footer a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 800;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| Faixa de lançamento no topo
|--------------------------------------------------------------------------
*/

.topbar-actions {
    min-width: 0;
}

.topbar-announcement {
    min-width: 0;
    max-width: 720px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    border: 1px solid rgba(var(--brand-rgb), .14);
    border-radius: 11px;
    background:
        linear-gradient(
            90deg,
            rgba(var(--brand-rgb), .07),
            rgba(var(--brand-rgb), .025)
        );
    padding: 7px 8px 7px 11px;
}

.topbar-announcement[hidden] {
    display: none !important;
}

.topbar-announcement-copy {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    overflow: hidden;
}

.topbar-announcement-copy strong {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.topbar-announcement-copy span {
    min-width: 0;
    overflow: hidden;
    color: var(--text-2);
    font-size: 9px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-announcement-more {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--brand);
    cursor: pointer;
    padding: 5px 2px;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

.topbar-announcement-more:hover {
    text-decoration: underline;
}

.topbar-announcement-close {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
}

.topbar-announcement-close:hover {
    background: rgba(var(--brand-rgb), .08);
    color: var(--text);
}

/*
|--------------------------------------------------------------------------
| Modal de novidades
|--------------------------------------------------------------------------
*/

.launch-modal {
    position: fixed;
    z-index: 350;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
}

.launch-modal[hidden] {
    display: none !important;
}

.launch-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(12, 9, 18, .52);
    backdrop-filter: blur(5px);
    cursor: default;
}

.launch-modal-card {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(720px, calc(100vh - 44px));
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 28px 80px rgba(18, 10, 28, .25);
    padding: 30px;
}

.launch-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
    font-size: 21px;
}

.launch-modal-close:hover {
    background: var(--surface-2);
    color: var(--text);
}

.launch-modal-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .14em;
}

.launch-modal-card h2 {
    margin: 0 36px 10px 0;
    color: var(--text);
    font-size: 26px;
    letter-spacing: -.035em;
}

.launch-modal-card > p {
    margin: 0;
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.7;
}

.launch-modal-highlights {
    display: grid;
    gap: 9px;
    margin: 22px 0;
}

.launch-modal-highlights > div {
    display: grid;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    padding: 13px 14px;
}

.launch-modal-highlights strong {
    color: var(--text);
    font-size: 11px;
}

.launch-modal-highlights span {
    color: var(--text-2);
    font-size: 10px;
    line-height: 1.5;
}

.launch-modal-note {
    border-left: 3px solid var(--brand);
    border-radius: 0 10px 10px 0;
    background: rgba(var(--brand-rgb), .055);
    color: var(--text-2);
    padding: 12px 14px;
    font-size: 10px;
    line-height: 1.6;
}

.launch-modal-primary {
    width: 100%;
    height: 44px;
    margin-top: 20px;
    border: 0;
    border-radius: 11px;
    background: var(--button);
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
}

.launch-modal-primary:hover {
    background: var(--button-hover);
}

/*
|--------------------------------------------------------------------------
| Espaço do anúncio dentro da topbar
|--------------------------------------------------------------------------
*/

@media (min-width: 881px) {
    .topbar {
        grid-template-columns:
            var(--nav-w)
            minmax(250px, 520px)
            minmax(0, 1fr);
        gap: 18px;
    }

    .topbar-actions {
        min-width: 0;
    }

    .settings-page .topbar {
        grid-template-columns:
            var(--nav-w)
            minmax(0, 1fr);
    }

    .settings-page .topbar-actions {
        grid-column: 2;
    }
}

@media (max-width: 1480px) {
    .topbar-announcement-copy span {
        display: none;
    }
}

@media (max-width: 1120px) and (min-width: 881px) {
    .topbar-announcement {
        padding-left: 9px;
    }

    .topbar-announcement-copy strong {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 880px) {
    /*
    | No mobile a topbar já contém navegação, busca e conta.
    | A campanha permanece disponível no desktop, sem comprometer
    | a usabilidade da interface pequena.
    */
    .topbar-announcement {
        display: none;
    }
}

@media (max-width: 560px) {
    .launch-modal-card {
        border-radius: 16px;
        padding: 25px 18px 20px;
    }

    .launch-modal-card h2 {
        font-size: 23px;
    }
}


/* ==========================================================================
   H3 MAIL — PATCH 06 / TOPO FIXO + ÍCONES
   ========================================================================== */

.topbar-announcement {
    max-width: 900px;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(var(--brand-rgb), .18);
    background: linear-gradient(90deg, rgba(var(--brand-rgb), .10), rgba(var(--brand-rgb), .04));
    box-shadow: 0 10px 28px rgba(119, 0, 253, .10);
}

.topbar-announcement-content {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.topbar-announcement-copy {
    display: grid;
    gap: 3px;
}

.topbar-announcement-copy strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 950;
    line-height: 1.2;
}

.topbar-announcement-copy span {
    color: var(--text-2);
    font-size: 10px;
    line-height: 1.45;
    white-space: normal;
}

.topbar-announcement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.topbar-announcement-tags span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(var(--brand-rgb), .12);
    border-radius: 999px;
    background: rgba(var(--brand-rgb), .06);
    padding: 4px 10px;
    color: var(--text-2);
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}

.topbar-announcement-more {
    height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    background: rgba(var(--brand-rgb), .11);
    color: var(--brand);
    font-size: 10px;
    font-weight: 900;
}

.topbar-announcement-more:hover {
    background: rgba(var(--brand-rgb), .16);
}

.compose-trigger {
    gap: 8px;
}

.compose-trigger .compose-icon,
.compose-trigger .compose-plus {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.compose-trigger .compose-icon svg,
.compose-trigger .compose-plus svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.support-primary-button svg,
.support-highlight svg,
.support-about-icon svg,
.folder-icon svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1480px) {
    .topbar-announcement {
        max-width: 760px;
    }
}

@media (max-width: 1120px) and (min-width: 881px) {
    .topbar-announcement {
        max-width: 580px;
        padding: 10px 12px;
    }

    .topbar-announcement-tags {
        display: none;
    }
}

@media (max-width: 880px) {
    .topbar-announcement {
        display: none;
    }
}


/* ==========================================================================
   H3 MAIL — PATCH 07 / POSIÇÃO FIXA DO AVISO + WHATSAPP
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| Aviso de lançamento
|--------------------------------------------------------------------------
|
| A posição não depende mais da grade de cada página. Caixa de Entrada,
| Contatos, Configurações e Suporte usam exatamente o mesmo centro.
|
*/

.topbar-announcement {
    position: absolute;
    z-index: 4;
    top: 7px;
    left: 50%;
    width: min(650px, calc(100vw - 520px));
    min-width: 460px;
    max-width: 650px;
    min-height: 58px;
    transform: translateX(-50%);
    margin: 0;
    padding: 9px 12px 9px 14px;
    border-radius: 13px;
}

.topbar-announcement-content {
    min-width: 0;
    display: block;
}

.topbar-announcement-copy {
    display: grid;
    gap: 3px;
}

.topbar-announcement-copy strong {
    font-size: 12px;
    line-height: 1.2;
}

.topbar-announcement-copy span {
    display: block !important;
    overflow: visible;
    font-size: 10px;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
}

.topbar-announcement-tags {
    display: none !important;
}

.topbar-announcement-more {
    height: 34px;
    margin-left: 8px;
    padding: 0 14px;
}

/*
|--------------------------------------------------------------------------
| WhatsApp oficial fornecido para o H3 Mail
|--------------------------------------------------------------------------
*/

.whatsapp-image-icon {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}

.folder-icon .whatsapp-image-icon {
    width: 18px;
    height: 18px;
}

.support-card-help .support-card-icon {
    background: var(--brand);
    color: #fff;
}

.support-card-help .support-card-icon .whatsapp-image-icon {
    width: 21px;
    height: 21px;
}

.support-primary-button .whatsapp-image-icon {
    width: 16px;
    height: 16px;
}

/*
|--------------------------------------------------------------------------
| Ícone da seção Sobre
|--------------------------------------------------------------------------
*/

.support-about-info-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
    font-family: Arial, sans-serif;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Responsividade
|--------------------------------------------------------------------------
*/

@media (max-width: 1180px) and (min-width: 881px) {
    .topbar-announcement {
        width: min(560px, calc(100vw - 440px));
        min-width: 390px;
    }

    .topbar-announcement-copy span {
        font-size: 9px;
    }
}

@media (max-width: 880px) {
    /*
    | A topbar mobile possui menos espaço horizontal.
    | Mantém o comportamento atual do projeto para não sobrepor navegação.
    */
    .topbar-announcement {
        display: none;
    }
}


/* ==========================================================================
   H3 MAIL — PATCH 08 / TOPO + MODAL + SUPORTE
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| Aviso de lançamento: encaixe correto dentro da topbar
|--------------------------------------------------------------------------
*/

.topbar-announcement {
    top: 6px;
    width: min(650px, calc(100vw - 540px));
    min-width: 430px;
    max-width: 650px;
    min-height: 0;
    height: 54px;
    box-sizing: border-box;
    align-items: center;
    overflow: hidden;
    padding: 7px 11px 7px 13px;
}

.topbar-announcement-content {
    min-width: 0;
    flex: 1 1 auto;
}

.topbar-announcement-copy {
    min-width: 0;
    gap: 2px;
}

.topbar-announcement-copy strong {
    font-size: 11px;
    line-height: 1.15;
}

.topbar-announcement-copy span {
    overflow: hidden;
    font-size: 9px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-announcement-more {
    flex: 0 0 auto;
    height: 32px;
    margin-left: 10px;
    padding: 0 13px;
}

/*
|--------------------------------------------------------------------------
| Modal de lançamento: mais legível e com mais presença
|--------------------------------------------------------------------------
*/

.launch-modal-card {
    width: min(760px, calc(100vw - 48px));
    max-height: min(780px, calc(100vh - 48px));
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
}

.launch-modal-hero {
    position: relative;
    padding: 36px 38px 30px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(var(--brand-rgb), .13),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            rgba(var(--brand-rgb), .055),
            var(--surface) 62%
        );
}

.launch-modal-hero .launch-modal-kicker {
    margin-bottom: 10px;
}

.launch-modal-hero h2 {
    max-width: 610px;
    margin: 0 48px 12px 0;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.launch-modal-lead {
    max-width: 620px;
    margin: 0;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.72;
}

.launch-modal-body {
    padding: 28px 38px 34px;
}

.launch-modal-section-label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-3);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.launch-modal-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 22px;
}

.launch-modal-highlights > div {
    min-height: 150px;
    align-content: start;
    gap: 8px;
    border-radius: 15px;
    padding: 17px;
}

.launch-modal-highlight-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: 2px;
    border-radius: 11px;
    background: rgba(var(--brand-rgb), .09);
    color: var(--brand);
    font-size: 18px;
    font-weight: 950;
}

.launch-modal-highlights strong {
    font-size: 12px;
    line-height: 1.3;
}

.launch-modal-highlights span {
    font-size: 10px;
    line-height: 1.6;
}

.launch-modal-note {
    border-left-width: 4px;
    border-radius: 0 12px 12px 0;
    padding: 14px 16px;
    font-size: 11px;
    line-height: 1.65;
}

.launch-modal-primary {
    height: 48px;
    margin-top: 22px;
    border-radius: 12px;
    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| Novo e-mail sem ícone
|--------------------------------------------------------------------------
*/

.compose-trigger {
    justify-content: center;
    gap: 0;
}

/*
|--------------------------------------------------------------------------
| Suporte: todos os blocos de ícone com o mesmo padrão visual
|--------------------------------------------------------------------------
*/

.support-card-icon,
.support-about-icon {
    background: var(--brand) !important;
    color: #fff !important;
}

.support-card-icon svg,
.support-about-icon svg,
.support-about-info-icon {
    color: #fff !important;
}

.support-about-info-icon {
    border-color: currentColor;
}

@media (max-width: 1180px) and (min-width: 881px) {
    .topbar-announcement {
        width: min(540px, calc(100vw - 450px));
        min-width: 380px;
    }
}

@media (max-width: 760px) {
    .launch-modal-card {
        width: min(620px, calc(100vw - 28px));
        border-radius: 18px;
    }

    .launch-modal-hero {
        padding: 30px 22px 24px;
    }

    .launch-modal-hero h2 {
        font-size: 29px;
    }

    .launch-modal-lead {
        font-size: 12px;
    }

    .launch-modal-body {
        padding: 22px;
    }

    .launch-modal-highlights {
        grid-template-columns: 1fr;
    }

    .launch-modal-highlights > div {
        min-height: 0;
    }
}


/* ==========================================================================
   H3 MAIL — PATCH 09 / MODAL NO LOGIN
   ========================================================================== */

.launch-modal-highlights strong {
    font-size: 14px;
    line-height: 1.35;
}

.launch-modal-highlights span:not(.launch-modal-highlight-icon) {
    font-size: 12px;
    line-height: 1.65;
}

.launch-modal-highlights > div {
    min-height: 176px;
    padding: 19px;
}

.launch-modal-dont-show {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0 0 16px;
    color: var(--text-2);
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
    user-select: none;
}

.launch-modal-dont-show[hidden] {
    display: none !important;
}

.launch-modal-dont-show input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.launch-modal-checkbox-ui {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--border-2);
    border-radius: 5px;
    background: var(--surface);
    transition: .15s ease;
}

.launch-modal-dont-show input:checked
+ .launch-modal-checkbox-ui {
    border-color: var(--brand);
    background: var(--brand);
}

.launch-modal-dont-show input:checked
+ .launch-modal-checkbox-ui::after {
    content: '';
    width: 7px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
}

.launch-modal-dont-show:hover
.launch-modal-checkbox-ui {
    border-color: var(--brand);
}

@media (max-width: 760px) {
    .launch-modal-highlights strong {
        font-size: 13px;
    }

    .launch-modal-highlights span:not(.launch-modal-highlight-icon) {
        font-size: 11px;
    }

    .launch-modal-highlights > div {
        min-height: 0;
    }
}


/* ==========================================================================
   H3 MAIL — PATCH 10 / ALINHAMENTO DEFINITIVO DO AVISO
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| Referência de posicionamento
|--------------------------------------------------------------------------
|
| O aviso estava absoluto dentro de .topbar-actions, que possui position:
| relative. Isso fazia "top" ser calculado a partir do bloco dos botões da
| direita, e não da barra superior inteira.
|
| A partir daqui, .topbar é a referência única do aviso em todas as páginas.
|
*/

.topbar-actions {
    position: static !important;
}

/*
|--------------------------------------------------------------------------
| Aviso de lançamento
|--------------------------------------------------------------------------
*/

.topbar-announcement {
    position: absolute;
    z-index: 6;

    top: 5px;
    left: 50%;

    width: min(650px, calc(100vw - 560px));
    min-width: 430px;
    max-width: 650px;

    height: 54px;
    min-height: 54px;

    margin: 0;
    padding: 7px 11px 7px 13px;

    box-sizing: border-box;
    transform: translateX(-50%);

    align-items: center;
    overflow: hidden;
}

/*
| Mantém os controles da direita acima do fundo da barra sem transformá-los
| novamente em referência de posicionamento para o aviso.
*/

.topbar-actions > .icon-btn,
.topbar-actions > .account-chip {
    position: relative;
    z-index: 7;
}

/*
|--------------------------------------------------------------------------
| Ajuste intermediário
|--------------------------------------------------------------------------
*/

@media (max-width: 1180px) and (min-width: 881px) {
    .topbar-announcement {
        width: min(520px, calc(100vw - 470px));
        min-width: 370px;
    }
}

@media (max-width: 880px) {
    .topbar-announcement {
        display: none;
    }
}


/* ==========================================================================
   H3 MAIL — PATCH 11 / TOPBAR E SIDEBAR RESPONSIVAS
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| Sem rolagem horizontal da aplicação
|--------------------------------------------------------------------------
*/

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.topbar,
.mail-shell,
.settings-shell {
    max-width: 100vw;
}

/*
|--------------------------------------------------------------------------
| Topbar: quatro áreas reais
|--------------------------------------------------------------------------
|
| Logo | Pesquisa | Aviso H3 Mail | Ações / conta
|
| O aviso deixa de usar position:absolute. Assim ele nunca entra por cima
| da pesquisa e não muda de posição entre os diferentes módulos.
|
*/

@media (min-width: 881px) {
    .topbar,
    .settings-page .topbar {
        grid-template-columns:
            var(--nav-w)
            minmax(230px, 420px)
            minmax(340px, 650px)
            max-content !important;
        gap: 14px;
        padding-right: 16px;
    }

    .topbar-brand {
        grid-column: 1;
    }

    .global-search {
        grid-column: 2;
        min-width: 0;
    }

    .topbar-announcement {
        position: static !important;
        z-index: 2;
        grid-column: 3;
        justify-self: center;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 650px !important;
        height: 54px;
        min-height: 54px;

        margin: 0;
        transform: none !important;
    }

    .topbar-actions,
    .settings-page .topbar-actions {
        position: relative !important;
        z-index: 3;
        grid-column: 4 !important;

        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
    }

    /*
    | Configurações e Suporte escondem a busca. Nesses módulos o aviso ocupa
    | naturalmente a região central, sem mudar a posição dos controles.
    */
    .settings-page .global-search {
        display: none;
    }

    .settings-page .topbar,
    .support-page .topbar {
        grid-template-columns:
            var(--nav-w)
            minmax(40px, 1fr)
            minmax(340px, 650px)
            max-content !important;
    }

    .settings-page .topbar-announcement,
    .support-page .topbar-announcement {
        grid-column: 3;
    }
}

/*
|--------------------------------------------------------------------------
| Conta no topo direito
|--------------------------------------------------------------------------
*/

.topbar-account-summary {
    min-width: 0;
    max-width: 185px;
    display: grid;
    align-content: center;
    gap: 1px;
    margin: 0 3px;
    padding: 4px 8px;
    border-left: 1px solid var(--border);
}

.topbar-account-summary span {
    color: var(--text-3);
    font-size: 7px;
    font-weight: 850;
    letter-spacing: .075em;
    line-height: 1.1;
    text-transform: uppercase;
}

.topbar-account-summary strong,
.topbar-account-summary small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-account-summary strong {
    color: var(--text);
    font-size: 10px;
    line-height: 1.25;
}

.topbar-account-summary small {
    color: var(--text-3);
    font-size: 8px;
    line-height: 1.2;
}

/*
|--------------------------------------------------------------------------
| Sidebar
|--------------------------------------------------------------------------
*/

.main-nav {
    justify-content: flex-start;
    overflow-x: hidden;
}

.main-nav-top {
    min-height: 0;
}

.nav-divider-logout {
    margin-top: 12px;
    margin-bottom: 5px;
}

.main-nav-top > form {
    margin: 0;
}

.logout-link {
    min-height: 37px;
}

.main-nav .mailbox-quota {
    margin-top: 9px;
    margin-bottom: 0;
}

/*
|--------------------------------------------------------------------------
| Responsividade desktop/intermediária
|--------------------------------------------------------------------------
*/

@media (max-width: 1540px) and (min-width: 1241px) {
    .topbar,
    .settings-page .topbar {
        grid-template-columns:
            var(--nav-w)
            minmax(220px, 340px)
            minmax(330px, 560px)
            max-content !important;
        gap: 11px;
    }

    .topbar-account-summary {
        max-width: 145px;
    }

    .topbar-account-summary span {
        display: none;
    }
}

@media (max-width: 1240px) and (min-width: 1051px) {
    .topbar,
    .settings-page .topbar {
        grid-template-columns:
            var(--nav-w)
            minmax(200px, 285px)
            minmax(300px, 460px)
            max-content !important;
        gap: 9px;
        padding-inline: 12px;
    }

    .topbar-account-summary {
        max-width: 105px;
        padding-inline: 6px;
    }

    .topbar-account-summary span,
    .topbar-account-summary small {
        display: none;
    }

    .topbar-announcement-copy span {
        font-size: 8px;
    }

    .topbar-announcement-more {
        padding-inline: 10px;
    }
}

@media (max-width: 1050px) and (min-width: 881px) {
    .topbar,
    .settings-page .topbar {
        grid-template-columns:
            var(--nav-w)
            minmax(190px, 250px)
            minmax(260px, 1fr)
            max-content !important;
        gap: 8px;
        padding-inline: 10px;
    }

    .topbar-account-summary {
        display: none;
    }

    .topbar-announcement {
        padding-inline: 10px;
    }

    .topbar-announcement-copy span {
        display: none !important;
    }

    .topbar-announcement-copy strong {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-announcement-more {
        height: 30px;
        padding-inline: 9px;
        font-size: 9px;
    }
}

/*
|--------------------------------------------------------------------------
| Telas com pouca altura
|--------------------------------------------------------------------------
|
| Reduz alguns espaços da sidebar para que os módulos e o botão Sair caibam
| sem a barra vertical na maioria dos notebooks.
|
*/

@media (max-height: 820px) and (min-width: 881px) {
    .main-nav {
        padding-top: 12px;
        padding-bottom: 10px;
        scrollbar-width: thin;
    }

    .compose-trigger {
        height: 43px;
    }

    .folder-nav {
        margin-top: 12px;
        gap: 1px;
    }

    .folder-link {
        min-height: 37px;
    }

    .nav-divider {
        margin-top: 9px;
        margin-bottom: 7px;
    }

    .nav-divider-logout {
        margin-top: 8px;
        margin-bottom: 3px;
    }

    .logout-link {
        min-height: 34px;
    }
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 880px) {
    .topbar-account-summary {
        display: none;
    }

    .topbar-announcement {
        display: none;
    }

    .main-nav {
        overflow-x: hidden;
    }
}


/* ==========================================================================
   H3 MAIL — PATCH 12 / TOPBAR ENXUTA
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| Topbar mais limpa
|--------------------------------------------------------------------------
|
| Removidos do topo:
| - botão Atualizar;
| - avatar circular da conta.
|
| Permanecem:
| - Pesquisa;
| - aviso do H3 Mail;
| - identificação da conta;
| - alternância de tema.
|
*/

@media (min-width: 881px) {
    .topbar,
    .settings-page .topbar {
        grid-template-columns:
            var(--nav-w)
            minmax(230px, 420px)
            minmax(360px, 590px)
            max-content !important;
        gap: 10px;
        padding-right: 14px;
    }

    .topbar-announcement {
        width: min(100%, 590px) !important;
        max-width: 590px !important;
        justify-self: center;
        gap: 7px;
        padding-left: 13px;
        padding-right: 8px;
    }

    .topbar-announcement-content {
        flex: 0 1 auto;
        width: auto;
        min-width: 0;
    }

    .topbar-announcement-copy {
        width: auto;
        min-width: 0;
    }

    .topbar-announcement-more {
        margin-left: 4px;
    }

    .topbar-actions,
    .settings-page .topbar-actions {
        gap: 4px;
        justify-self: end;
    }

    .topbar-account-summary {
        max-width: 190px;
        margin: 0 2px 0 0;
        padding-left: 9px;
        padding-right: 9px;
    }
}

@media (max-width: 1540px) and (min-width: 1241px) {
    .topbar,
    .settings-page .topbar {
        grid-template-columns:
            var(--nav-w)
            minmax(220px, 330px)
            minmax(340px, 525px)
            max-content !important;
        gap: 9px;
    }

    .topbar-announcement {
        width: min(100%, 525px) !important;
        max-width: 525px !important;
    }

    .topbar-account-summary {
        max-width: 150px;
    }
}

@media (max-width: 1240px) and (min-width: 1051px) {
    .topbar,
    .settings-page .topbar {
        grid-template-columns:
            var(--nav-w)
            minmax(200px, 285px)
            minmax(320px, 450px)
            max-content !important;
        gap: 7px;
    }

    .topbar-announcement {
        width: min(100%, 450px) !important;
        max-width: 450px !important;
    }

    .topbar-account-summary {
        max-width: 120px;
    }
}

@media (max-width: 1050px) and (min-width: 881px) {
    .topbar,
    .settings-page .topbar {
        grid-template-columns:
            var(--nav-w)
            minmax(190px, 245px)
            minmax(280px, 1fr)
            max-content !important;
        gap: 6px;
    }

    .topbar-announcement {
        width: 100% !important;
        max-width: none !important;
    }

    .topbar-account-summary {
        display: none;
    }
}


/* ==========================================================================
   H3 MAIL — PATCH 13 / TOPO CENTRALIZADO
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| Regra principal
|--------------------------------------------------------------------------
|
| O aviso é centralizado pelo viewport, sem depender do tamanho da busca,
| da identificação da conta ou do botão de tema.
|
| A conta e o tema ficam presos ao lado direito.
|
*/

@media (min-width: 881px) {
    .topbar,
    .settings-page .topbar,
    .support-page .topbar {
        position: relative !important;

        grid-template-columns:
            var(--nav-w)
            minmax(220px, 420px)
            minmax(0, 1fr) !important;

        gap: 12px;
        padding-right: 14px;
    }

    .topbar-brand {
        grid-column: 1;
    }

    .global-search {
        grid-column: 2;
        width: 100%;
        max-width: 420px;
        min-width: 0;
    }

    /*
    | Centro real da tela.
    */
    .topbar-announcement {
        position: absolute !important;
        z-index: 5;

        top: 50% !important;
        left: 50% !important;

        width: min(590px, 42vw) !important;
        min-width: 420px !important;
        max-width: 590px !important;

        height: 54px;
        min-height: 54px;

        margin: 0 !important;

        transform:
            translate(-50%, -50%)
            !important;

        justify-self: auto !important;
    }

    /*
    | Conta + tema presos ao canto direito.
    */
    .topbar-actions,
    .settings-page .topbar-actions,
    .support-page .topbar-actions {
        position: absolute !important;
        z-index: 6;

        top: 50%;
        right: 14px;

        grid-column: auto !important;

        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 7px;

        width: auto;
        min-width: 0;

        transform: translateY(-50%);
    }

    .topbar-account-summary {
        max-width: 190px;
        margin: 0;
        padding: 4px 9px;
    }

    /*
    | Páginas sem busca não deslocam o aviso.
    */
    .settings-page .global-search,
    .support-page .global-search {
        display: none;
    }
}

/*
|--------------------------------------------------------------------------
| Notebook / tela intermediária
|--------------------------------------------------------------------------
*/

@media (max-width: 1380px) and (min-width: 1101px) {
    .global-search {
        max-width: 340px;
    }

    .topbar-announcement {
        width: min(540px, 40vw) !important;
        min-width: 390px !important;
        max-width: 540px !important;
    }

    .topbar-account-summary {
        max-width: 145px;
    }

    .topbar-account-summary span {
        display: none;
    }
}

@media (max-width: 1100px) and (min-width: 881px) {
    .global-search {
        max-width: 270px;
    }

    .topbar-announcement {
        width: min(440px, 40vw) !important;
        min-width: 340px !important;
        max-width: 440px !important;
    }

    .topbar-announcement-copy span {
        display: none !important;
    }

    .topbar-account-summary {
        max-width: 105px;
    }

    .topbar-account-summary span,
    .topbar-account-summary small {
        display: none;
    }
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 880px) {
    .topbar-announcement {
        display: none;
    }

    .topbar-account-summary {
        display: none;
    }
}


/* ==========================================================================
   H3 MAIL — PATCH 14 / CORREÇÃO DA TOPBAR FIXA
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| Correção
|--------------------------------------------------------------------------
|
| O Patch 13 definiu a topbar como position: relative para servir de
| referência ao aviso. Isso fez a própria barra entrar novamente no fluxo
| da página, enquanto .mail-shell já reserva --topbar-h.
|
| Resultado: espaço duplicado abaixo do topo e topbar desaparecendo no scroll.
|
| A referência correta é a própria topbar FIXA, que já ocupa toda a largura
| do viewport. Assim o aviso continua centralizado em 50% da tela.
|
*/

@media (min-width: 881px) {
    .topbar,
    .settings-page .topbar,
    .support-page .topbar {
        position: fixed !important;
        z-index: 80;

        top: 0;
        right: 0;
        bottom: auto;
        left: 0;

        width: 100%;
        height: var(--topbar-h);

        margin: 0;
    }

    /*
    | Aviso permanece no centro real da topbar/tela.
    */
    .topbar-announcement {
        position: absolute !important;

        top: 50% !important;
        left: 50% !important;

        transform:
            translate(-50%, -50%)
            !important;
    }

    /*
    | Conta e tema permanecem presos à direita.
    */
    .topbar-actions,
    .settings-page .topbar-actions,
    .support-page .topbar-actions {
        position: absolute !important;

        top: 50%;
        right: 14px;

        transform:
            translateY(-50%);
    }
}


/* ==========================================================================
   H3 MAIL — PATCH 15 / TOPBAR FINAL
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| Estrutura definitiva
|--------------------------------------------------------------------------
|
| 1. Topbar continua fixa.
| 2. Aviso fica no centro real.
| 3. Aviso NÃO possui largura fixa: termina logo depois do "Saiba mais".
| 4. Conta + tema ficam independentes no canto direito.
|
*/

@media (min-width: 881px) {

    .topbar,
    .settings-page .topbar,
    .support-page .topbar {
        position: fixed !important;

        top: 0;
        right: 0;
        bottom: auto;
        left: 0;

        width: 100%;
        height: var(--topbar-h);

        margin: 0;
        padding-right: 14px;

        z-index: 80;
    }

    /*
    |--------------------------------------------------------------------------
    | Pesquisa
    |--------------------------------------------------------------------------
    */

    .global-search {
        position: relative;
        z-index: 2;

        width: min(420px, 100%);
        max-width: 420px;
        min-width: 0;
    }

    /*
    |--------------------------------------------------------------------------
    | Aviso
    |--------------------------------------------------------------------------
    */

    .topbar-announcement {
        position: absolute !important;
        z-index: 5;

        top: 50% !important;
        left: 50% !important;

        /*
        | Esta é a mudança principal:
        | a largura passa a acompanhar o conteúdo.
        */
        width: max-content !important;
        min-width: 0 !important;
        max-width: min(
            650px,
            calc(100vw - 520px)
        ) !important;

        height: 54px;
        min-height: 54px;

        display: inline-flex;
        align-items: center;
        justify-content: flex-start;

        gap: 10px;

        margin: 0 !important;
        padding:
            7px
            9px
            7px
            13px;

        box-sizing: border-box;

        transform:
            translate(-50%, -50%)
            !important;

        overflow: hidden;
    }

    .topbar-announcement-content {
        flex: 0 1 auto !important;

        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .topbar-announcement-copy {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .topbar-announcement-copy strong {
        display: block;

        width: max-content;
        max-width: 100%;

        font-size: 11px;
        line-height: 1.15;

        white-space: nowrap;
    }

    .topbar-announcement-copy span {
        display: block !important;

        width: max-content;
        max-width: 100%;

        overflow: hidden;

        font-size: 9px;
        line-height: 1.25;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-announcement-more {
        flex: 0 0 auto;

        height: 32px;

        margin: 0 !important;
        padding: 0 13px;

        white-space: nowrap;
    }

    /*
    |--------------------------------------------------------------------------
    | Conta + tema
    |--------------------------------------------------------------------------
    */

    .topbar-actions,
    .settings-page .topbar-actions,
    .support-page .topbar-actions {
        position: absolute !important;
        z-index: 7;

        top: 50%;
        right: 14px;

        width: auto !important;
        min-width: 0 !important;

        display: flex;
        align-items: center;
        justify-content: flex-end;

        gap: 7px;

        margin: 0;

        transform:
            translateY(-50%)
            !important;
    }

    .topbar-account-summary {
        flex: 0 1 auto;

        width: auto;
        min-width: 0;
        max-width: 190px;

        margin: 0;
        padding:
            4px
            9px;

        box-sizing: border-box;
    }
}

/*
|--------------------------------------------------------------------------
| Notebook
|--------------------------------------------------------------------------
|
| Em resoluções menores o aviso continua centralizado. Apenas fica mais
| compacto para nunca alcançar a área independente da conta.
|
*/

@media (max-width: 1450px) and (min-width: 1181px) {

    .global-search {
        max-width: 350px;
    }

    .topbar-announcement {
        max-width: min(
            560px,
            calc(100vw - 470px)
        ) !important;
    }

    .topbar-account-summary {
        max-width: 145px;
    }

    .topbar-account-summary span {
        display: none;
    }
}

@media (max-width: 1180px) and (min-width: 881px) {

    .global-search {
        max-width: 285px;
    }

    .topbar-announcement {
        max-width: min(
            460px,
            calc(100vw - 420px)
        ) !important;

        gap: 7px;
    }

    .topbar-announcement-copy span {
        max-width: 290px;
    }

    .topbar-account-summary {
        max-width: 100px;
    }

    .topbar-account-summary span,
    .topbar-account-summary small {
        display: none;
    }
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 880px) {
    .topbar-announcement {
        display: none;
    }

    .topbar-account-summary {
        display: none;
    }
}

/* ==========================================================================
   H3 MAIL — LOGIN BLOQUEADO / CONTADOR
   ========================================================================== */

.login-lock-alert {
    display: grid;
    gap: 3px;
}

.login-card[data-login-locked="1"] .field input:disabled {
    opacity: .68;
    cursor: not-allowed;
    background: var(--surface-2);
}

.login-card[data-login-locked="1"] .login-button:disabled {
    opacity: .58;
    cursor: not-allowed;
    box-shadow: none;
}
