/* Shared typography and vertical rhythm; desktop values match the existing layout. */
:root {
    --font-body: 16px;
    --font-secondary: 14px;
    --font-heading-main: clamp(28px, 3.3vw, 42px);
    --font-heading-section: clamp(24px, 2.5vw, 32px);
    --font-heading-panel-mobile: clamp(22px, 6.5vw, 26px);
    --space-heading-description: 12px;
    --space-description-content: 28px;
    --space-pricing-action: 30px;
    --space-information: 32px;
    --space-section: 48px;
    --space-paragraph: 16px;
}
/* Explicit sizing replaces legacy document and component zoom. */
html { font-size: 16px; }
body { font-size: var(--font-body); line-height: 1.6; }
*, *::before, *::after { box-sizing: border-box; }
.container, .container-fluid { width: 100%; max-width: 1200px; padding-inline: 24px; margin-inline: auto; }
img, video, svg { max-width: 100%; }
.row > *, .card, .card-body, .plan, .viewbox, .viewbox-container, .blog-card-horizontal, .blog-content { min-width: 0; }
p, h1, h2, h3, h4, h5, h6, .card-title, .plan-title, .nav-link { overflow-wrap: anywhere; }
h1, .header .header-wrapper .header-title { font-size: var(--font-heading-main); line-height: 1.2; }
h2, .section .section-header .section-title { font-size: var(--font-heading-section); line-height: 1.3; }
.lead, .plan-text, .accordion-body, .article-content { font-size: var(--font-body); line-height: 1.7; }
small, .small, .text-muted, .post-meta, .meta-item, .footer-copyright, .vip-email, .vip-time { font-size: var(--font-secondary); line-height: 1.5; }
.section { padding-block: var(--space-section); }
.section .section-header { margin-bottom: var(--space-description-content); }
.nav { margin-top: 16px; height: 76px; }
.nav .nav-inner { gap: 16px; position: relative; }
.nav .nav-inner .logo img, .premium-page-logo img, .footer-brand img { width: 200px; height: auto; max-width: 100%; }
.nav .nav-inner .app-store-buttons .btn, .nav .nav-account-actions > .btn { font-size: 14px; padding: 10px 14px; min-height: 44px; white-space: nowrap; }
.btn, .shared-action-btn, .nav-menu-button, .nav-menu-close, .language-button, .footer-lang-btn, .modal .btn-close { min-width: 44px; min-height: 44px; }
.nav-menu-button, .nav-menu-close, .language-button { display: flex; align-items: center; justify-content: center; }
.store-unavailable { cursor: default; opacity: .75; }
.store-unavailable small { display: block; font-size: 14px; }
.header .header-wrapper { padding-block: 24px 40px; }
.mail-wrapper { margin-top: 16px; gap: 20px; }
.mail-wrapper .mail-selection { width: 100%; max-width: 720px; padding: 28px; }
.mail-wrapper .mail-selection .mail-wrapper-title .header-title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 20px; }
.header .header-wrapper .homepage-secondary-description { max-width: 720px; font-size: 16px; width: 100%; }
.mail-wrapper .mail-selection .mail-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.mail-wrapper .mail-selection .mail-actions .mail-action { width: 100%; height: auto; min-height: 44px; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; }
.mail-wrapper .mail-selection .mail-actions .mail-action .mail-action-text { display: inline; font-size: 14px; }
.mail-wrapper .mail-selection .mail-select .mail-input { min-width: 0; }
.mail-wrapper .mail-selection .mail-select .mail-input input { min-width: 0; font-size: 16px; height: 56px; }
.mail-wrapper .mail-selection .mail-input .mail-input-copy, .mail-wrapper .mail-selection .mail-input .mail-input-qr { min-width: 44px; min-height: 44px; }
.email-expiration-badge { font-size: 14px; padding: 12px !important; }
.email-expiration-badge .badge { font-size: 14px; }
#countdownTimer { font-size: 14px; }
.homepage .mailbox-section > .container { max-width: 1200px; padding-inline: 24px; }
.homepage .mailbox-section .mail-content { max-width: 720px; }
.homepage .mailbox-section .mailbox { height: clamp(320px,calc(100dvh - 80px),600px); max-height: 600px; border-radius: 12px; }
.homepage .mailbox-section .mailbox-header { padding-inline: 24px; font-size: 14px; }
.homepage .mailbox-section .mailbox-header-item { padding-block: 16px; }
.homepage .mailbox-section .VIP-mailbox-item { padding: 16px 24px !important; }
.homepage .mailbox-section .vip-sender, .homepage .mailbox-section .vip-col-subject .vip-subject { font-size: 16px; }
.homepage .mailbox-section .vip-email, .homepage .mailbox-section .vip-time { font-size: 14px; }
.homepage .mailbox-section .vip-email { white-space: normal; overflow-wrap: anywhere; }
.homepage .mailbox-section .vip-sender, .homepage .mailbox-section .vip-subject { overflow-wrap: anywhere; }
.homepage .mailbox-section .mailbox.empty .empty p { font-size: 14px; }
@container (min-width: 1159.2px) { .homepage .mailbox-section .mailbox-container { grid-template-columns: 108px minmax(0,720px) 108px; } }
.plans-item .row { align-items: stretch; }
.plans-item .row > .col { display: flex; }
.plan { width: 100%; height: 100%; padding: 28px; border-radius: 16px; }
.plan .plan-price { font-size: 36px; line-height: 1.3; }
.plan .plan-title { font-size: 24px; }
.plan .plan-text { min-height: 54px; }
.plan .plan-features { font-size: 16px; }
.plan-switcher { margin-top: 24px; }
.plan-switcher .plan-switcher-item { height: 44px; min-width: 90px; }
.plan-switcher .plan-switcher-discount-badge { font-size: 14px; }
.card-blog, .blog-card-horizontal { border-radius: 16px; overflow: hidden; }
.card-blog .card-body, .blog-content, .accordion-body { padding: 24px; }
.blog-card-horizontal { height: 100%; }
.blog-card-horizontal .blog-title { font-size: 20px; line-height: 1.4; }
.blog-card-horizontal .blog-description, .blog-card-horizontal .blog-excerpt { font-size: 16px; }
.faqs { max-width: 900px; margin-inline: auto; }
.accordion-button { min-height: 52px; padding: 20px 24px; font-size: 16px; line-height: 1.5; gap: 16px; }
.accordion-button-icon { flex-shrink: 0; }
.article-content { min-width: 0; overflow-wrap: anywhere; }
.article-content p, .article-content span, .article-content li { font-size: 16px !important; line-height: 1.7 !important; white-space: normal !important; }
.article-content h1 { font-size: 30px !important; }
.article-content h2 { font-size: 26px !important; margin-block: 28px 16px; }
.article-content h3 { font-size: 22px !important; }
.article-content img { height: auto !important; max-width: 100% !important; }
.article-content table { display: block; width: 100% !important; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-content th, .article-content td { min-width: 120px; padding: 12px; border: 1px solid #d8deea; font-size: 14px; }
.article-content pre { max-width: 100%; overflow-x: auto; white-space: pre; }
.modal-dialog { width: auto; max-width: 560px; margin: 24px auto; }
.modal-content { border-radius: 16px; }
.modal-header, .modal-body, .modal-footer { padding: 24px; }
.modal .btn-close { padding: 12px; margin: -8px; background-size: 14px; }
.modal input, .modal select, #account-login-dialog input { min-height: 44px; font-size: 16px; }
#account-login-dialog { font-size: 16px; line-height: 1.6; }
#account-login-dialog .account-login-subtitle, #account-login-dialog label { font-size: 14px; }
#account-login-dialog button, #account-login-dialog [role=button] { min-width: 44px; min-height: 44px; }
.footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.footer .footer-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 16px; }
.footer-store-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media(max-width:1199.98px) {
 .nav .nav-inner .logo-center { position: static; transform: none; margin-right: auto; }
 .nav .nav-inner .nav-menu-scroller { width: min(340px,100%); padding: 24px; }
 .nav .nav-inner .nav-store-actions .btn { min-height: 48px; }
 .header .mail-wrapper > .ad { display: none; }
 .homepage .mailbox-section .mail-content { max-width: 720px; }
}
@media(max-width:767.98px) {
 .container, .container-fluid, .homepage .mailbox-section > .container { padding-inline: 16px; }
 .section { padding-block: 32px; }
 .mail-wrapper .mail-selection { padding: 20px; }
 .mail-wrapper .mail-selection .mail-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .mail-wrapper .mail-selection .mail-select .mail-input { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
 .mail-wrapper .mail-selection .mail-select .mail-input #mainEmail { grid-column: 1/-1; grid-row: 1; padding: 12px; width: 100%; }
 .mail-wrapper .mail-selection .mail-select .mail-input .mail-input-copy, .mail-wrapper .mail-selection .mail-select .mail-input .mail-input-qr { position: static; grid-row: 2; width: 100%; height: 44px; padding: 10px; display: flex; align-items: center; justify-content: center; }
 .mail-wrapper .mail-selection .mail-select .mail-input .mail-input-qr { grid-column: 1; }
 .mail-wrapper .mail-selection .mail-select .mail-input .mail-input-copy { grid-column: 2; }
 .mail-input-divider { display: none; }
 .nav .nav-inner .logo img { width: 180px; max-width: 100%; }
 .plan { padding: 24px; }
 .card-blog .card-body, .blog-content, .accordion-body { padding: 20px; }
 .modal-dialog { margin: 16px; max-width: calc(100% - 32px); }
 .modal-header, .modal-body, .modal-footer { padding: 20px; }
 .homepage .mailbox-section .VIP-mailbox-item { padding: 16px !important; }
 .homepage .mailbox-section .mailbox-header { padding-inline: 16px; }
}
@media(max-width:479.98px) {
 .mail-wrapper .mail-selection { padding: 16px; }
 .email-expiration-badge { align-items: flex-start !important; }
 .blog-card-horizontal { flex-direction: column; }
 .blog-thumbnail { width: 100%; flex-basis: auto; }
 .nav .nav-inner .logo img { width: 160px; }
 .nav .nav-actions-sm .language { display: none; }
}
.mail-wrapper .mail-selection .mail-actions .mail-action:not(:last-child) { margin-right: 0; }
.mail-wrapper .mail-selection .mail-actions .mail-action .mail-action-text { display: inline; margin: 0; }
@media(max-width:991.98px) { .mail-wrapper .mail-selection .mail-actions { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.plans-item .row { align-items: stretch !important; }
.mail-input-copy .control-label, .mail-input-qr .control-label { display: none; }
@media(max-width:767.98px) { .mail-input-copy .control-label, .mail-input-qr .control-label { display: inline; margin-inline-start: 8px; font-size: 14px; } }

.blog-meta, .blog-date, .blog-category, .modal-footer-info, .fz-10, .fz-11, .fz-12, .fz-13, .fz-14 { font-size: 14px; }

.article-content :is(h1,h2,h3,h4,h5,h6) span { font-size: inherit !important; line-height: inherit !important; }
.article-content :is(td,th) span { font-size: inherit !important; }
.faq-answer { font-size: 16px !important; line-height: 1.7 !important; }
.plan .plan-features .plan-feat { font-size: 16px; line-height: 1.5; }
@media(min-width:768px) { .plan .plan-text { min-height: 84px; } }
@media(max-width:767.98px) { .plan .plan-text { min-height: 0; } }
/* Dialog layering, native controls, and consistent editorial card rhythm. */
body.modal-open .go-up, html:has(dialog[open]) .go-up, html:has(.modal.show) .go-up { display: none !important; }
.nav .nav-menu-button, .nav .nav-menu-close { background: transparent; border: 0; padding: 0; font: inherit; }
.nav .nav-menu-button:focus-visible, .nav .nav-menu-close:focus-visible, .plan-switcher-item:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.plan-switcher .plan-switcher-item { border: 0; background: transparent; color: inherit; padding: 0 12px; font-family: inherit; }
.plan-switcher .plan-switcher-item.active { background: var(--primary_color); color: #fff; }
.blog-card-horizontal .blog-content, .blog-list-card .card-body { display: flex; flex-direction: column; }
.blog-card-horizontal .blog-title, .blog-list-card .card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 20px; line-height: 1.4; min-height: 2.8em; margin: 0 0 12px !important; }
.blog-card-horizontal .blog-description, .blog-list-card .card-text.lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 16px; line-height: 1.7; min-height: 5.1em; margin: 0 0 16px; }
.blog-card-horizontal .blog-meta, .blog-list-card .card-text:last-child { margin-top: auto; }
.blog-list-card > img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* Empty mobile inbox sizing; populated inbox scrolling is unchanged. */
@media (max-width: 991.98px) {
    .homepage .mailbox-section .mailbox.empty {
        height: clamp(360px, 50dvh, 440px);
        min-height: 360px;
        max-height: 440px;
    }
}
/* Compact small-phone address panel without reducing touch targets. */
@media (max-width: 479.98px) {
    .homepage .header .header-wrapper { padding-block: 12px 24px; }
    .homepage .header .mail-wrapper { margin-top: 8px; }
    .homepage .header .mail-wrapper .mail-selection { padding: clamp(12px, 4vw, 16px); }
    .homepage .header .header-wrapper .mail-selection .mail-wrapper-title .header-title {
        font-size: var(--font-heading-panel-mobile);
        line-height: 1.25;
        margin-bottom: 12px;
    }
    .homepage .mail-wrapper #emailExpirationCard {
        padding: 8px 10px !important;
        margin-bottom: 10px !important;
        gap: 6px 8px !important;
        align-items: center !important;
    }
    .homepage #emailExpirationCard > div:first-child {
        flex: 1 1 180px;
        min-width: 0;
        max-width: 100%;
        flex-wrap: wrap;
        gap: 4px 6px !important;
    }
    .homepage .mail-wrapper #planBadge {
        max-width: 100%;
        padding: 3px 6px;
        font-size: 14px;
        line-height: 1.35;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .homepage .mail-wrapper #validityLabel {
        flex: 1 1 100px;
        min-width: 0;
        font-size: 14px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }
    .homepage .email-expiration-clock {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 100%;
        gap: 6px !important;
        line-height: 1.35;
    }
    .homepage .email-expiration-clock > i { flex-shrink: 0; }
    .homepage .mail-wrapper #countdownTimer {
        min-width: 0 !important;
        white-space: normal;
        overflow-wrap: anywhere;
        letter-spacing: .3px;
    }
    .homepage .mail-wrapper .mail-selection .mail-actions { margin-top: 10px; gap: 8px; }
    .homepage .mail-wrapper .mail-selection .mail-input { gap: 8px; }
}
/* One spacing source for small layouts: avoid stacking margins and utility gaps. */
@media (max-width: 991.98px) {
    :root {
        --space-heading-description: clamp(8px, 2.5vw, 12px);
        --space-description-content: clamp(20px, 5.5vw, 24px);
        --space-pricing-action: clamp(16px, 4.5vw, 20px);
        --space-information: clamp(24px, 6.5vw, 32px);
        --space-section: var(--space-information);
        --space-paragraph: clamp(12px, 3.5vw, 16px);
    }
    .section { padding-block: var(--space-section); }
    .section + .section { padding-top: 0; }
    .section .section-header { margin-bottom: var(--space-description-content) !important; }
    .section .section-header .section-title { margin: 0 !important; }
    .section .section-header .section-text { margin: var(--space-heading-description) 0 0 !important; }
    .section .section-body { display: flow-root; margin-top: 0; }
    .plan .plan-text { margin: 0 0 var(--space-pricing-action); }
    .plan .plan-text + .btn { margin-top: 0; }
    .plan-switcher { margin-top: 0; margin-bottom: var(--space-information); }
    .question > h2 { margin-bottom: var(--space-heading-description) !important; }
    .question > p { margin-bottom: var(--space-description-content); }
    .homepage .header .header-wrapper .homepage-secondary-description { margin-top: var(--space-information); margin-bottom: 0; }
    .homepage .mailbox-section .mail-content { display: flex; flex-direction: column; gap: var(--space-information); }
    .homepage .mailbox-section .mail-content > * { margin-top: 0 !important; margin-bottom: 0 !important; }
    .informational-content, .seo-content-wrapper { font-size: var(--font-body); line-height: 1.7; }
    :is(.informational-content,.seo-content-wrapper,.article-content) :is(h1,h2,h3,h4,h5,h6) { margin: var(--space-information) 0 0 !important; }
    :is(.informational-content,.seo-content-wrapper,.article-content) :is(h1,h2,h3,h4,h5,h6):first-child { margin-top: 0 !important; }
    :is(.informational-content,.seo-content-wrapper,.article-content) p { margin: 0 !important; }
    :is(.informational-content,.seo-content-wrapper,.article-content) :is(h1,h2,h3,h4,h5,h6) + p { margin-top: var(--space-heading-description) !important; }
    :is(.informational-content,.seo-content-wrapper,.article-content) p + p { margin-top: var(--space-paragraph) !important; }
    :is(.informational-content,.seo-content-wrapper,.article-content) :is(p,ul,ol) + :is(ul,ol,table,figure,div) { margin-top: var(--space-description-content); }
}
@media (max-width: 991.98px) and (orientation: landscape) and (max-height: 500px) {
    .homepage .mailbox-section .mailbox.empty {
        height: clamp(260px, 75dvh, 320px);
        min-height: 260px;
        max-height: 320px;
    }
}

/* Only the informational content and Premium banner beneath the inbox. */
.homepage .mailbox-section .mail-content {
    --mailbox-detail-gap: clamp(20px, var(--space-description-content), 24px);
    row-gap: var(--mailbox-detail-gap);
}
.homepage .mailbox-section .mail-content > .informational-content {
    margin-top: var(--mailbox-detail-gap);
    font-family: inherit;
    color: var(--text_color);
    text-align: inherit;
    overflow-wrap: anywhere;
}
.homepage .mailbox-section .informational-content :is(div,p,span,h3) { font-family: inherit; color: inherit; text-align: inherit; }
.homepage .mailbox-section .informational-content h3 {
    font-size: var(--font-heading-section);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 var(--space-heading-description) !important;
}
.homepage .mailbox-section .informational-content p {
    font-size: var(--font-body);
    line-height: 1.6;
    margin: 0;
}
.homepage .mailbox-section .informational-content span { font-size: inherit; line-height: inherit; white-space: normal; }
.homepage .mailbox-section .informational-content h3 + p { margin-top: 0 !important; }
.homepage .mailbox-section .mailbox-premium-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-heading-description) var(--space-paragraph);
    height: auto;
    min-height: 0;
    max-height: none;
    padding: var(--space-paragraph) clamp(16px, 4vw, 24px);
    margin-top: var(--space-information);
    text-align: left;
    background: var(--secondary_color);
    color: var(--secondary_text_color);
}
.homepage .mailbox-section .mailbox-premium-copy {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    font-size: clamp(16px, 4.5vw, 18px);
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
}
.homepage .mailbox-section .mailbox-premium-banner > .btn { flex: 0 0 auto; font-size: var(--font-body); }
@media (max-width: 991.98px) {
    .homepage .mailbox-section .mail-content > .informational-content { margin-top: 0 !important; }
    .homepage .mailbox-section .informational-content h3 { font-size: clamp(20px, 5.6vw, 24px); }
}
@media (max-width: 479.98px) {
    .homepage .mailbox-section .mailbox-premium-banner > .btn { width: 100%; }
}

/* Give the FAQ its own responsive inset after the coloured blog section. */
.homepage .section.homepage-faq-section { padding-block-start: var(--space-section); }

/* Keep the article heading inset balanced with its section's bottom spacing. */
.homepage .section.homepage-blog-section { padding-block-start: var(--space-section); }

/* Tech section alone inherits the site's responsive typography. */
.homepage .tech-content { font-family: inherit; font-size: var(--font-body); }
.homepage .tech-content :is(p,li,td,th) { font-family: inherit !important; font-size: var(--font-body) !important; line-height: 1.6 !important; }
.homepage .tech-content :is(span,font) { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; }
.homepage .tech-content :is(h1,h2,h3,h4,h5,h6) { font-family: inherit !important; line-height: 1.3 !important; }
.homepage .tech-content h1 { font-size: var(--font-heading-main) !important; }
.homepage .tech-content h2 { font-size: var(--font-heading-section) !important; }
.homepage .tech-content h3 { font-size: clamp(20px, 2vw, 26px) !important; }
.homepage .tech-content h4 { font-size: clamp(18px, 1.75vw, 22px) !important; }
.homepage .tech-content :is(h5,h6) { font-size: clamp(16px, 1.5vw, 20px) !important; }

/* Balance the description between the address wrapper and the header's end. */
.homepage .header .header-wrapper {
    --header-description-gap: var(--space-information);
    padding-bottom: var(--header-description-gap);
}
.homepage .header .header-wrapper .homepage-secondary-description {
    margin-top: var(--header-description-gap);
    margin-bottom: 0;
}
/* Constrain only the homepage's long-form Tech content for comfortable reading. */
.homepage .tech-content {
    width: 100%;
    max-width: 850px;
    margin-inline: auto;
}
/* Keep footer download badges equal without changing header or menu buttons. */
.footer-store-buttons > .shared-action-btn {
    width: 154px;
    height: 48px;
    padding: 10px 12px;
    justify-content: center;
    flex: 0 0 154px;
}
.footer-store-buttons > .shared-action-btn .btn-text {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: normal;
}
/* Mail utility dialogs: bounded viewport, fixed close controls, scrollable content. */
:is(#changeEmail, #history, #qrCode) {
    top: var(--mail-dialog-top, 0px);
    height: var(--mail-dialog-height, 100%);
}
:is(#changeEmail, #history, #qrCode) .modal-dialog {
    width: calc(100% - 32px);
    max-width: 560px;
    margin: 16px auto;
    min-height: calc(var(--mail-dialog-height, 100dvh) - 32px);
}
:is(#changeEmail, #history, #qrCode) .modal-content {
    max-height: calc(100dvh - 32px);
    max-height: calc(min(100dvh, var(--mail-dialog-height, 100dvh)) - 32px);
    overflow: hidden;
}
:is(#changeEmail, #history, #qrCode) .modal-header {
    position: relative;
    flex-shrink: 0;
    min-height: 64px;
    padding: 16px 72px 12px 20px !important;
}
:is(#changeEmail, #history, #qrCode) .modal-header .btn-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
:is(#changeEmail, #history, #qrCode) .modal-body {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 20px 20px !important;
    overflow-wrap: anywhere;
}
#changeEmail .d-flex:has(> #random_code) > .flex-grow-1 { min-width: 0; }
#changeEmail #selected_domain_text { overflow-wrap: anywhere; white-space: normal; text-align: start; }
#changeEmail .dropdown-menu { max-height: min(240px, 40dvh) !important; }
#history .modal-content > p { padding-inline: 20px !important; }
#history .mail-history { min-height: 0; max-height: min(360px, 40dvh); overflow-y: auto; }
#history .mail-history-empty { height: auto; min-height: 88px; padding: 16px; }
#history .mail-history-empty h5 { margin: 0; font-size: 16px; line-height: 1.5; }
#history .modal-body > .row > .flex-shrink-1 { min-width: 0; }
#qrCode .modal-body > .mb-5 { margin-bottom: 20px !important; }
#qrCode #qrcode { width: 200px; max-width: 100%; margin-inline: auto; background: white; }
#qrCode #qrcode :is(img, canvas) { max-width: 100%; height: auto; }
@media (max-width: 479.98px) {
    #changeEmail .d-flex:has(> #random_code) { flex-direction: column; }
    #changeEmail .d-flex:has(> #random_code) > * { width: 100%; }
    #changeEmail .modal-body .mt-3.p-3 { flex-wrap: wrap; gap: 12px; }
}
@media (max-height: 500px) {
    :is(#changeEmail, #history, #qrCode) .modal-header { min-height: 56px; padding-block: 8px !important; }
    :is(#changeEmail, #history, #qrCode) .modal-header .btn-close { top: 6px; }
    :is(#changeEmail, #history, #qrCode) .modal-body { padding: 8px 16px 16px !important; }
    #qrCode .modal-body > .mb-5 { margin-bottom: 12px !important; }
    #qrCode .modal-body > p { margin-bottom: 12px !important; }
    #changeEmail .modal-body > .mb-4 { margin-bottom: 12px !important; }
}
/* Matching Copy/QR motion; loading controls stay still. */
.mail-wrapper .mail-selection .mail-select .mail-input :is(.mail-input-copy, .mail-input-qr) {
    transition: transform .15s ease;
}
.mail-wrapper .mail-selection .mail-select .mail-input :is(.mail-input-copy, .mail-input-qr):enabled:hover {
    transform: translateY(-2px);
}
.mail-wrapper .mail-selection .mail-select .mail-input :is(.mail-input-copy, .mail-input-qr):active,
.mail-wrapper .mail-selection .mail-select .mail-input :is(.mail-input-copy, .mail-input-qr):disabled {
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .mail-wrapper .mail-selection .mail-select .mail-input :is(.mail-input-copy, .mail-input-qr) {
        transition: none;
    }
    .mail-wrapper .mail-selection .mail-select .mail-input :is(.mail-input-copy, .mail-input-qr):enabled:hover {
        transform: none;
    }
}
/* Homepage article cards: two columns on desktop, horizontal tablet, stacked phone. */
.homepage-blog-section .blog-card-horizontal {
    flex-direction: row;
    align-items: center;
    min-height: 0;
}
.homepage-blog-section .blog-card-horizontal .blog-content { order: 1; gap: 0; }
.homepage-blog-section .blog-card-horizontal .blog-thumbnail {
    order: 2;
    flex: 0 0 165px;
    width: 165px !important;
    height: 150px !important;
}
.homepage-blog-section .blog-card-horizontal .blog-title {
    min-height: 0;
    margin-bottom: 10px !important;
}
.homepage-blog-section .blog-card-horizontal .blog-description {
    min-height: 0;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: var(--text_color, #334155) !important;
    margin-bottom: 12px !important;
    -webkit-line-clamp: 3;
}
.homepage-blog-section .blog-card-horizontal .blog-meta {
    margin-top: 0;
    color: var(--text_color, #334155);
    font-size: 14px;
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .homepage-blog-section .blog-card-horizontal { padding: 20px; gap: 20px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .homepage-blog-section .blog-card-horizontal .blog-thumbnail { flex-basis: 135px; width: 135px !important; height: 130px !important; }
}
@media (max-width: 575.98px) {
    .homepage-blog-section .blog-card-horizontal { flex-direction: column; align-items: stretch; padding: 16px; gap: 16px; }
    .homepage-blog-section .blog-card-horizontal .blog-thumbnail {
        order: 0;
        flex: none;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }
    .homepage-blog-section .blog-card-horizontal .blog-content { width: 100%; }
    .homepage-blog-section .blog-card-horizontal .blog-title { font-size: 18px !important; line-height: 1.4 !important; }
    .homepage-blog-section .blog-card-horizontal .blog-description { font-size: clamp(15px, 4vw, 16px) !important; }
}
.homepage-blog-section .blog-card-horizontal .blog-date,
.homepage-blog-section .blog-card-horizontal .blog-date i { color: inherit; }

@media (max-width: 767.98px) {
    .homepage .mailbox-section .mailbox-premium-copy { text-align: center; }
}
/* Match the drawer Login outline to its store buttons. */
@media (max-width: 1199.98px) {
    .nav .nav-inner .nav-menu .nav-account-actions > a[href*="/login"] {
        border: 1px solid rgba(127, 127, 127, 0.35);
        border-radius: 8px;
    }
    .nav .nav-inner .nav-menu .nav-account-actions > a[href*="/login"]:hover,
    .nav .nav-inner .nav-menu .nav-account-actions > a[href*="/login"]:focus-visible {
        border-color: var(--primary_color);
    }
}
/* Keep drawer Login hover local and avoid the global spring transition. */
@media (max-width: 1199.98px) {
    .nav .nav-inner .nav-menu .nav-account-actions > a[href*="/login"] {
        background-color: transparent;
        transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    }
    .nav .nav-inner .nav-menu .nav-account-actions > a[href*="/login"]:hover,
    .nav .nav-inner .nav-menu .nav-account-actions > a[href*="/login"]:focus-visible {
        background-color: rgba(127, 127, 127, 0.08);
        color: var(--primary_color);
    }
}
/* Preserve the desktop Premium question card; refine smaller viewports only. */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .premium-question-card { padding: clamp(32px, 3.4vw, 40px); }
}
@media (max-width: 767.98px) {
    .premium-question-card {
        padding: 24px clamp(16px, 4.5vw, 20px);
        height: auto;
        min-height: 0;
        overflow-wrap: anywhere;
    }
    .premium-question-card > h2 { font-size: 24px; line-height: 1.3; }
    .premium-question-card > p { font-size: 16px; line-height: 1.6; }
    .premium-question-card > .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 12px 24px;
        font-size: 16px;
        line-height: 24px;
        max-width: 100%;
        white-space: normal;
    }
}
.go-up.question-overlap { visibility: hidden; opacity: 0; pointer-events: none; transition: none; }
/* Inner-page titles stay in their existing blue header, below navigation. */
.header.inner-page-header .header-wrapper {
    flex: 0 0 auto;
    margin-block: 0;
    height: auto;
    min-height: 0;
    padding-block: clamp(32px, 2.8vw, 40px);
}
.header.inner-page-header .header-wrapper > .container { padding-inline: 20px; }
.header.inner-page-header .header-wrapper .header-title {
    margin: 0;
    font-size: clamp(36px, 2.8vw, 40px);
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    height: auto;
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    .header.inner-page-header .header-wrapper { padding-block: 32px; }
    .header.inner-page-header .header-wrapper .header-title { font-size: clamp(30px, 3vw, 32px); }
}
@media (max-width: 767.98px) {
    .header.inner-page-header .header-wrapper { padding-block: clamp(20px, 3.5vw, 24px); }
    .header.inner-page-header .header-wrapper > .container { padding-inline: clamp(16px, 4vw, 20px); }
    .header.inner-page-header .header-wrapper .header-title { font-size: clamp(26px, 5vw, 28px); }
}
/* Balance the shared inner-page CTA gap with the preceding content section. */
.premium-question-section {
    padding-block: 0 var(--space-section);
}
/* Shared Pages use the reference card header without its global zoom. */
.admin-page-layout > div { width: 100%; min-width: 0; }
.admin-page-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 32px;
    background: var(--primary_color);
    color: #fff;
}
.admin-page-titlebar .admin-page-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}
.admin-page-home {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 20px;
    border-radius: 10px;
    background: var(--secondary_color);
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease;
}
.admin-page-home:hover { color: #fff; background: var(--secondary_color); filter: brightness(.95); }
.admin-page-home:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.admin-page-body { padding: 32px; background: #fff; }
.admin-page-reading { width: 100%; min-width: 0; margin: 0; }
.admin-page-copy { display: flow-root; min-width: 0; }
.admin-page-copy > :first-child { margin-top: 0; }
@media (max-width: 767.98px) {
    .admin-page-section > .admin-page-container { padding-inline: 16px; }
    .admin-page-titlebar { padding: 16px 18px; }
    .admin-page-titlebar .admin-page-title { font-size: 22px; }
    .admin-page-home { padding: 6px 14px; }
    .admin-page-body { padding: clamp(16px, 4vw, 20px); }
}
/* Compact phone page headers while retaining an accessible Home target. */
@media (max-width: 479.98px) {
    .admin-page-titlebar { padding: 10px 12px; gap: 8px; }
    .admin-page-titlebar .admin-page-title {
        font-size: clamp(17px, 4.5vw, 20px);
        line-height: 1.25;
    }
    .admin-page-home {
        min-width: 44px;
        min-height: 44px;
        padding: 6px 8px;
        gap: 4px;
        font-size: 12px;
        border-radius: 8px;
    }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    .admin-page-body { padding: 24px 32px; }
}
/* Keep blog and Premium sections comfortably separated on shared Pages. */
.admin-page-section + .section.homepage-blog-section { padding-top: var(--space-section); }
.admin-page-section ~ .homepage-blog-section + .premium-question-section { padding-top: var(--space-section); }
/* Compact shared footer without constraining its natural height. */
@media (max-width: 991.98px) {
    .footer > .footer-inner { padding: 24px 20px 20px !important; }
    .footer .footer-stack { gap: 14px !important; }
    .footer .footer-brand img { width: 145px; height: auto; }
    .footer .footer-links { gap: 0 16px; max-width: 100%; }
    .footer .footer-links a {
        font-size: 14px;
        min-height: 44px;
        max-width: 100%;
        justify-content: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .footer .footer-store-buttons { gap: 12px; max-width: 100%; }
    .footer .footer-store-buttons > .shared-action-btn { height: 48px; min-height: 44px; max-width: 100%; }
    .footer .footer-copyright { font-size: 12.5px; line-height: 1.5; margin: 0 !important; overflow-wrap: anywhere; }
}
.go-up.footer-overlap { visibility: hidden; opacity: 0; pointer-events: none; transition: none; }