:root {
    --ink: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #dbe4ef;
    --card: rgba(255, 255, 255, 0.92);
    --accent: #2563eb;
    --accent-2: #0f766e;
    --danger: #ef4444;
    --success: #16a34a;
    --warning: #f59e0b;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    --radius: 24px;
    --font: "Manrope", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font);
    background: #e7eef8;
}

.download-document,
body.download-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body.theme-pink {
    --ink: #3f1231;
    --muted: #7f4b68;
    --soft: #fff7fb;
    --line: #f5cfe0;
    --card: rgba(255, 249, 252, 0.94);
    --accent: #db2777;
    --accent-2: #be185d;
    background: #fff1f7;
}

body.theme-pink .page-bg {
    background: linear-gradient(135deg, #fff7fb 0%, #fde7f0 48%, #eef6ff 100%);
}

body.theme-dark {
    --ink: #f3f6fb;
    --muted: #aab7c8;
    --soft: #171a21;
    --line: #323946;
    --card: rgba(24, 27, 34, 0.94);
    --accent: #7dd3fc;
    --accent-2: #34d399;
    --danger: #fb7185;
    --success: #34d399;
    --warning: #fbbf24;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
    background: #101114;
}

body.theme-dark .page-bg {
    background:
        linear-gradient(135deg, #101114 0%, #171a21 48%, #102019 100%);
}

body.theme-dark .topbar,
body.theme-dark .transfer-card,
body.theme-dark .price-card,
body.theme-dark .history-dialog,
body.theme-dark .zip-prepare-dialog,
body.theme-dark .download-card,
body.theme-dark .service-notice-dialog,
body.theme-dark .support-dialog,
body.theme-dark .feedback-dialog,
body.theme-dark .loyalty-dialog,
body.theme-dark .activation-thanks-dialog,
body.theme-dark .profile-section,
body.theme-dark .addon-summary-card,
body.theme-dark .trust-panel {
    background: rgba(24, 27, 34, 0.94);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow);
}

body.theme-dark .usage-card,
body.theme-dark .android-app-card,
body.theme-dark .result-panel,
body.theme-dark .history-item,
body.theme-dark .history-file-chip,
body.theme-dark .file-item,
body.theme-dark .message-preview,
body.theme-dark .download-sender-card,
body.theme-dark .download-summary > div,
body.theme-dark .download-files-panel,
body.theme-dark .download-file,
body.theme-dark .download-next-step,
body.theme-dark .download-support-box,
body.theme-dark .folder-node,
body.theme-dark .identity-card,
body.theme-dark .profile-wallet-item,
body.theme-dark .balance-panel > div,
body.theme-dark .extra-summary,
body.theme-dark .mode-card,
body.theme-dark .reply-settings-group,
body.theme-dark .advanced-box,
body.theme-dark .optional-message-box,
body.theme-dark .support-message-card,
body.theme-dark .support-thread-tab,
body.theme-dark .support-thread-bubble,
body.theme-dark .notice-window,
body.theme-dark .ledger-row {
    background: #171a21;
    color: var(--ink);
    border-color: var(--line);
}

body.theme-dark .value-card,
body.theme-dark .use-case-grid article,
body.theme-dark .plan-snapshot article {
    background: #171a21;
    color: var(--ink);
    border-color: var(--line);
}

body.theme-dark .form-control,
body.theme-dark select,
body.theme-dark textarea {
    background: #12151b;
    color: var(--ink);
    border-color: #3a4350;
}

body.theme-dark .form-control:focus,
body.theme-dark select:focus,
body.theme-dark textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.14);
    outline: none;
}

body.theme-dark .form-control::placeholder {
    color: #7f8da3;
}

body.theme-dark .brand-link small,
body.theme-dark .hero-copy p,
body.theme-dark .section-heading p,
body.theme-dark .trust-copy p,
body.theme-dark .value-card p,
body.theme-dark .use-case-grid span,
body.theme-dark .plan-snapshot p,
body.theme-dark .business-panel p,
body.theme-dark .drop-zone p,
body.theme-dark .premium-note,
body.theme-dark .message-preview,
body.theme-dark .history-status,
body.theme-dark .download-meta,
body.theme-dark .download-summary small,
body.theme-dark .download-files-panel small,
body.theme-dark .download-next-step small,
body.theme-dark .folder-summary small,
body.theme-dark .profile-section-title span,
body.theme-dark .profile-wallet-item span,
body.theme-dark .profile-wallet-item small,
body.theme-dark .plan-manage-card small,
body.theme-dark .auto-renew-copy small,
body.theme-dark .ledger-row-main span,
body.theme-dark .ledger-payment,
body.theme-dark .ledger-row-money small,
body.theme-dark .muted {
    color: var(--muted);
}

body.theme-dark .eyebrow,
body.theme-dark .section-kicker,
body.theme-dark .plan-pill,
body.theme-dark .profile-kicker,
body.theme-dark .trust-row span {
    color: #b8f7e2;
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.28);
}

body.theme-dark .message-preview-header span,
body.theme-dark .message-preview-text {
    color: var(--muted);
}

body.theme-dark .drop-zone,
body.theme-dark .drop-zone.mobile-picker-only {
    border-color: #3a4350;
    background: #141820;
    color: var(--ink);
}

body.theme-dark .drop-zone.drag-over {
    border-color: var(--accent);
    background: #10202a;
}

body.theme-dark .btn.secondary,
body.theme-dark .btn.ghost,
body.theme-dark .menu-toggle,
body.theme-dark .icon-btn {
    background: #20252e;
    color: var(--ink);
    border-color: #3a4350;
    box-shadow: none;
}

body.theme-dark .btn.secondary:hover,
body.theme-dark .btn.ghost:hover,
body.theme-dark .icon-btn:hover {
    background: #27303b;
}

body.theme-dark .btn.primary,
body.theme-dark .btn.accent {
    background: linear-gradient(135deg, #7dd3fc, #34d399);
    color: #071112;
    box-shadow: 0 14px 32px rgba(52, 211, 153, 0.18);
}

body.theme-dark .btn.ad-unlock-btn {
    color: #d1fae5;
    background: rgba(20, 83, 45, 0.42);
    border-color: rgba(52, 211, 153, 0.38);
}

body.theme-dark .download-progress-chip,
body.theme-dark .ad-unlock-note {
    color: #bbf7d0;
    background: rgba(20, 83, 45, 0.28);
    border-color: rgba(52, 211, 153, 0.28);
}

body.theme-dark .download-file.is-exhausted {
    background: #211a1d;
    border-color: rgba(251, 113, 133, 0.32);
}

body.theme-dark .download-progress-chip.is-exhausted {
    color: #fecdd3;
    background: rgba(127, 29, 29, 0.24);
    border-color: rgba(251, 113, 133, 0.32);
}

body.theme-dark .mode-card.active,
body.theme-dark .identity-card.active,
body.theme-dark .support-thread-tab.active {
    background: #10231f;
    border-color: var(--accent);
}

body.theme-dark .auto-renew-row {
    background: #151f1c;
    border-color: rgba(52, 211, 153, 0.25);
}

body.theme-dark .auto-renew-row input {
    background: #3a4350;
}

body.theme-dark .auto-renew-row input:checked {
    background: var(--accent-2);
}

body.theme-dark .notice-icon,
body.theme-dark .download-hero .state-icon {
    color: #071112;
    background: linear-gradient(135deg, #7dd3fc, #34d399);
}

body.theme-dark .business-panel {
    background: linear-gradient(135deg, #10202a, #10231f);
}

body.theme-dark .trust-list div {
    background: #12151b;
}

body.theme-dark .trust-list span {
    color: var(--ink);
}

body.theme-dark .support-message-card.is-unread {
    background: #241d16;
    border-color: rgba(251, 191, 36, 0.36);
}

body.theme-dark .support-thread-bubble.bot,
body.theme-dark .support-thread-bubble.admin {
    background: #20252e;
}

body.theme-dark .support-thread-bubble.user {
    background: #11312a;
}

body.theme-dark .ledger-empty {
    color: var(--muted);
    background: rgba(18, 21, 27, 0.78);
    border-color: #3a4350;
}

body.theme-dark .form-status.error {
    color: #fecdd3;
    background: rgba(251, 113, 133, 0.12);
}

body.theme-dark .form-status.success {
    color: #bbf7d0;
    background: rgba(52, 211, 153, 0.12);
}

body.theme-dark .form-status.warning {
    color: #fde68a;
    background: rgba(251, 191, 36, 0.12);
}

body.theme-dark .account-restriction {
    color: #fde68a;
    background: #241d16;
    border-color: rgba(251, 191, 36, 0.42);
}

body.theme-dark .account-restriction--refunded,
body.theme-dark .account-restriction--inactive {
    color: #fecdd3;
    background: #211a1d;
    border-color: rgba(251, 113, 133, 0.42);
}

body.theme-dark .account-restriction--expired {
    color: #cbd5e1;
    background: #171a21;
    border-color: #3a4350;
}

body.theme-dark .account-restriction-icon {
    background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .ledger-row.credit .ledger-row-money strong {
    color: #6ee7b7;
}

body.theme-dark .ledger-row.debit .ledger-row-money strong {
    color: #fda4af;
}

a {
    color: inherit;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.24), transparent 34%),
        radial-gradient(circle at 86% 16%, rgba(15, 118, 110, 0.25), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #dbeafe 48%, #ecfeff 100%);
}

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), rgba(0,0,0,.12));
}

.app-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
}

.brand-link small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.35);
}

.top-actions,
.drop-actions,
.result-actions,
.trust-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding: 18px 4px 0;
    color: var(--muted);
}

.site-footer > div {
    display: grid;
    gap: 4px;
}

.site-footer strong {
    color: var(--ink);
}

.site-footer nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

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

.site-footer a:hover {
    color: var(--accent);
}

.analytics-consent[hidden] {
    display: none !important;
}

.analytics-consent {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    z-index: 10000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 22px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, .97);
    box-shadow: 0 24px 80px rgba(15, 23, 42, .38);
    backdrop-filter: blur(16px);
}

.analytics-consent strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 16px;
}

.analytics-consent p {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.55;
}

.analytics-consent a {
    display: inline-block;
    margin-top: 6px;
    color: #93c5fd;
    font-size: 13px;
}

.analytics-consent-actions {
    display: flex;
    gap: 9px;
    align-items: center;
}

.analytics-consent .btn.ghost {
    color: #e2e8f0;
    border-color: rgba(226, 232, 240, .3);
    background: rgba(255, 255, 255, .06);
}

@media (max-width: 760px) {
    .analytics-consent {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .analytics-consent-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .analytics-consent-actions .btn {
        width: 100%;
    }
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
}

.btn,
button {
    font: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary,
.btn.accent {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
}

.btn.secondary {
    border: 1px solid var(--line);
    background: #fff;
}

.btn.ghost {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.66);
}

.btn.wide {
    width: 100%;
}

.btn.is-disabled {
    opacity: 0.72;
    cursor: not-allowed;
    pointer-events: none;
}

.support-action {
    position: relative;
}

.support-badge {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    color: #fff;
    background: #dc2626;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    cursor: pointer;
}

.plan-pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    color: #075985;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    background: #e0f2fe;
    font-weight: 800;
}

.hero-layout {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 28px;
    align-items: start;
    margin-top: 46px;
}

.hero-copy {
    position: sticky;
    top: 24px;
    padding: 34px 6px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    color: #075985;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    background: rgba(224, 242, 254, 0.72);
    font-size: 13px;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 18px 0;
    max-width: 560px;
    font-size: 62px;
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy p {
    max-width: 540px;
    color: #334155;
    font-size: 18px;
    line-height: 1.65;
}

.trust-row {
    margin-top: 24px;
}

.trust-row span {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: #1e293b;
    font-size: 13px;
    font-weight: 800;
}

.android-app-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    max-width: 540px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.android-app-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    color: #071112;
    background: linear-gradient(135deg, #7dd3fc, #34d399);
    font-size: 24px;
}

.android-app-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.android-app-copy strong {
    font-size: 16px;
}

.android-app-copy span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.android-app-button {
    grid-column: 1 / -1;
    width: 100%;
}

.usage-panel {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.usage-card {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.usage-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.usage-card-head strong {
    font-size: 15px;
}

.usage-card-head span {
    color: #166534;
    font-size: 13px;
    font-weight: 800;
}

.usage-progress {
    height: 10px;
    background: rgba(15, 23, 42, 0.08);
}

.usage-progress-bar {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.product-sections {
    display: grid;
    gap: 38px;
    margin-top: 42px;
}

.product-section {
    display: grid;
    gap: 22px;
}

.section-heading {
    display: grid;
    gap: 10px;
    max-width: 760px;
}

.section-heading.compact {
    max-width: 680px;
}

.section-heading h2,
.trust-copy h2,
.business-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: 0;
}

.section-heading p,
.trust-copy p,
.business-panel p {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
}

.section-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 8px 12px;
    color: #075985;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    background: rgba(224, 242, 254, 0.72);
    font-size: 13px;
    font-weight: 850;
}

.value-grid,
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.value-card,
.use-case-grid article,
.plan-snapshot article {
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.value-card {
    display: grid;
    gap: 12px;
    min-height: 210px;
    padding: 22px;
    border-radius: 22px;
}

.value-card i {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
    font-size: 20px;
}

.value-card h3,
.use-case-grid strong,
.plan-snapshot strong {
    margin: 0;
    color: var(--ink);
}

.value-card h3 {
    font-size: 19px;
}

.value-card p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.trust-panel {
    grid-template-columns: 0.82fr 1.18fr;
    align-items: center;
    gap: 28px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 8% 10%, rgba(37, 99, 235, 0.12), transparent 28%),
        rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 56px rgba(15, 23, 42, 0.1);
}

.trust-copy {
    display: grid;
    gap: 12px;
}

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

.trust-list div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.64);
}

.trust-list i {
    color: var(--accent-2);
    margin-top: 3px;
}

.trust-list span {
    color: #334155;
    font-weight: 700;
    line-height: 1.45;
}

.use-case-grid article {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 20px;
    border-radius: 20px;
}

.use-case-grid span {
    color: #475569;
    line-height: 1.55;
}

.plan-snapshot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.plan-snapshot article {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 22px;
}

.plan-snapshot span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.plan-snapshot p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.business-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #0f172a, #0f766e);
    color: #fff;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.22);
}

.business-panel .section-kicker {
    color: #d1fae5;
    border-color: rgba(209, 250, 229, 0.28);
    background: rgba(255, 255, 255, 0.12);
}

.business-panel h2 {
    margin-top: 12px;
    color: #fff;
}

.business-panel p {
    max-width: 760px;
    margin-top: 12px;
    color: #dbeafe;
}

.business-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.business-panel .btn.ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
}

.transfer-card,
.download-card,
.history-dialog,
.zip-prepare-dialog {
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.transfer-card {
    padding: 22px;
}

.mobile-mode-picker {
    display: none;
    position: relative;
    margin-bottom: 18px;
}

.mobile-mode-trigger,
.mobile-mode-option {
    width: 100%;
    text-align: left;
}

.mobile-mode-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.mobile-mode-copy {
    display: grid;
    gap: 4px;
}

.mobile-mode-copy strong {
    font-size: 16px;
}

.mobile-mode-copy small {
    font-size: 13px;
}

.mobile-mode-sheet {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
}

.mobile-mode-option {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
}

.mobile-mode-option span {
    color: var(--muted);
    font-size: 13px;
}

.mobile-mode-option.active {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #eff6ff, #fff);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.mode-card {
    position: relative;
    display: grid;
    gap: 5px;
    min-height: 118px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
}

.mode-card input {
    position: absolute;
    opacity: 0;
}

.mode-card i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--accent);
    border-radius: 12px;
    background: #eff6ff;
}

.mode-card strong {
    font-size: 16px;
}

.mode-card span {
    color: var(--muted);
    font-size: 13px;
}

.mode-card.active {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #eff6ff, #fff);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
}

.form-grid {
    display: grid;
    gap: 14px;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
    display: grid;
    gap: 8px;
}

.reply-settings-group {
    padding: 14px;
    border: 1px solid rgba(219, 228, 239, 0.92);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.reply-email-group {
    display: grid;
    gap: 8px;
}

label,
.advanced-box summary {
    font-weight: 800;
}

.form-control {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 13px 14px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 15px;
    outline: 0;
    background: #fff;
    font: inherit;
    transition: border .18s ease, box-shadow .18s ease;
}

textarea.form-control {
    min-height: 104px;
    resize: vertical;
}

.form-control:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-control.has-error {
    border-color: #ef4444;
    background: #fff7f7;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

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

.recipient-chip-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
        #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.recipient-chip-box:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 12px 26px rgba(15, 23, 42, 0.06);
    background: #fff;
}

.recipient-chip-box.has-error {
    border-color: #ef4444;
    background: #fff7f7;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.recipient-chip-list {
    display: contents;
}

.recipient-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 34px;
    gap: 7px;
    padding: 5px 7px 5px 11px;
    color: #0f172a;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    background: linear-gradient(135deg, #eef6ff, #ecfdf5);
    font-size: 13px;
    font-weight: 850;
}

.recipient-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipient-chip button {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    padding: 0;
    color: #2563eb;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    cursor: pointer;
}

.recipient-chip button:hover,
.recipient-chip button:focus-visible {
    color: #fff;
    background: #2563eb;
    outline: 0;
}

.recipient-entry-input {
    flex: 1 1 180px;
    min-width: 160px;
    min-height: 34px;
    padding: 4px 2px;
    color: var(--ink);
    border: 0;
    background: transparent;
    font: inherit;
    outline: 0;
}

.recipient-entry-input::placeholder {
    color: var(--muted);
}

.recipient-email-suggestions {
    position: absolute;
    z-index: 60;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    max-height: 220px;
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.recipient-email-suggestions[hidden] {
    display: none;
}

.recipient-email-suggestion {
    min-width: 0;
    padding: 9px 10px;
    border: 0;
    border-radius: 11px;
    color: var(--ink);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.recipient-email-suggestion:hover,
.recipient-email-suggestion:focus-visible {
    background: #eef6ff;
    outline: 0;
}

body.theme-dark .recipient-email-suggestions {
    border-color: rgba(71, 85, 105, 0.9);
    background: #1e293b;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

body.theme-dark .recipient-chip-box {
    border-color: #3a4350;
    background: #12151b;
    box-shadow: none;
}

body.theme-dark .recipient-chip-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.14);
}

body.theme-dark .recipient-chip-box.has-error {
    border-color: #f87171;
    background: rgba(127, 29, 29, 0.18);
}

body.theme-dark .recipient-chip {
    color: #e5eefc;
    border-color: rgba(125, 211, 252, 0.2);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(20, 83, 45, 0.24));
}

body.theme-dark .recipient-chip button {
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.62);
}

body.theme-dark .recipient-entry-input {
    color: var(--ink);
}

body.theme-dark .recipient-email-suggestion {
    color: #e5eefc;
}

body.theme-dark .recipient-email-suggestion:hover,
body.theme-dark .recipient-email-suggestion:focus-visible {
    background: rgba(96, 165, 250, 0.16);
}

.danger-text {
    color: #b91c1c !important;
}

.success-text {
    color: var(--success) !important;
}

.is-busy {
    position: relative;
}

.is-busy::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 28px;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.38);
}

small,
.muted {
    color: var(--muted);
}

.is-hidden {
    display: none !important;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #334155;
    font-weight: 650;
}

.check-row input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.legal-row {
    margin: 18px 0;
    font-size: 14px;
}

.premium-hint,
.premium-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    color: #7c2d12;
    font-size: 14px;
}

.premium-hint a {
    margin-left: auto;
    color: #9a3412;
    font-weight: 800;
    white-space: nowrap;
}

.inline-action {
    border: 0;
    padding: 0;
    color: #9a3412;
    background: transparent;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.locked-action {
    color: #92400e;
    border-color: rgba(217, 119, 6, 0.35) !important;
    background: linear-gradient(135deg, #fff7ed, #ffffff) !important;
}

.advanced-box,
.optional-message-box {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
}

.advanced-box summary,
.optional-message-box summary {
    cursor: pointer;
}

.optional-message-box .form-grid {
    margin-top: 14px;
}

.advanced-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.advanced-grid label {
    display: grid;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
}

.advanced-grid small {
    line-height: 1.35;
}

.access-code-field {
    grid-column: 1 / -1;
}

.access-code-field .form-control {
    max-width: 280px;
}

.access-code-field small {
    max-width: 760px;
}

.access-code-risk {
    display: block;
    max-width: 760px;
    padding: 10px 12px;
    border: 1px solid rgba(231, 76, 60, 0.38);
    border-radius: 10px;
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger, #c0392b);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
}

.access-code-risk.is-hidden {
    display: none;
}

.access-code-risk.is-recommended {
    border-color: rgba(243, 156, 18, 0.4);
    background: rgba(243, 156, 18, 0.1);
    color: #9a5b00;
}

.download-password-field {
    grid-column: span 8;
}

.download-limit-field {
    grid-column: span 4;
}

.advanced-grid .check-row {
    display: flex;
    align-items: flex-start;
    grid-column: 1 / -1;
}

.drop-zone {
    display: grid;
    place-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 34px 20px;
    text-align: center;
    border: 2px dashed #bfdbfe;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.8), rgba(255,255,255,0.9));
    transition: border .18s ease, transform .18s ease, background .18s ease;
}

.drop-zone.drag-over {
    transform: scale(1.01);
    border-color: var(--accent);
    background: #eff6ff;
}

.mobile-upload-text {
    display: none;
}

.drop-zone.mobile-picker-only {
    border-style: solid;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.drop-zone.mobile-picker-only .desktop-upload-text {
    display: none;
}

.drop-zone.mobile-picker-only .mobile-upload-text {
    display: inline;
}

.drop-art {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    color: #fff;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.28);
    font-size: 30px;
}

.drop-zone h2 {
    margin: 6px 0 0;
}

.drop-zone p {
    margin: 0;
    color: var(--muted);
}

.file-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    max-height: 260px;
    overflow: auto;
}

.upload-recovery {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #93c5fd;
    border-radius: 16px;
    background: #eff6ff;
}

.upload-recovery p {
    margin: 4px 0 0;
    color: var(--muted);
}

.upload-recovery-actions,
.upload-submit-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.upload-recovery-actions {
    flex: 0 0 auto;
}

.upload-submit-row .wide {
    flex: 1 1 auto;
}

@media (max-width: 640px) {
    .upload-recovery,
    .upload-recovery-actions,
    .upload-submit-row {
        align-items: stretch;
        flex-direction: column;
    }
}

.file-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.file-item > div {
    min-width: 0;
}

.file-item strong {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.file-item small {
    display: block;
    margin-top: 3px;
}

.upload-summary-row {
    background: #f8fafc;
}

.overall-upload-progress {
    height: 10px;
}

.progress-track {
    grid-column: 1 / -1;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width .2s ease;
}

.remove-file {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    color: #991b1b;
    background: #fee2e2;
    cursor: pointer;
}

.result-panel {
    display: grid;
    gap: 16px;
    margin-top: 20px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ecfdf5, #fff);
    border: 1px solid #bbf7d0;
    text-align: center;
}

.qr-card {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.success-badge,
.state-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    margin: 0 auto;
    border-radius: 20px;
    color: #fff;
    background: var(--accent);
    font-size: 26px;
}

.success-badge,
.state-icon.success {
    background: var(--success);
}

.state-icon.danger {
    background: var(--danger);
}

.share-url-row,
.share-mini {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.download-next-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: linear-gradient(180deg, #eff6ff, #ffffff);
}

.download-next-step > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.download-next-step span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.download-next-step strong {
    color: var(--ink);
    font-size: 18px;
}

.download-next-step small {
    color: #475569;
    line-height: 1.45;
}

.result-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 720px);
    margin: 0 auto;
}

.result-actions .btn {
    min-width: 0;
    white-space: nowrap;
}

.manage-code-block {
    display: grid;
    gap: 8px;
    text-align: left;
}

.manage-code-label {
    font-weight: 800;
}

.qr-wrap {
    display: grid;
    place-items: center;
}

.qr-download-btn {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 14px;
}

#qr-code {
    display: grid;
    place-items: center;
    min-width: 172px;
    min-height: 172px;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
}

.form-status {
    min-height: 22px;
    color: var(--muted);
    font-size: 14px;
}

.form-status.error,
.alert.danger {
    color: #991b1b;
}

.form-status.success {
    color: #166534;
}

.form-status.warning {
    color: #9a3412;
}

.token {
    display: grid;
    place-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
}

.history-dialog {
    width: min(720px, calc(100% - 28px));
    padding: 24px;
    border: 0;
}

.history-dialog::backdrop {
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(7px);
}

.dialog-close-form {
    display: flex;
    justify-content: flex-end;
}

.history-form {
    display: grid;
    grid-template-columns: 1fr 160px auto;
    gap: 10px;
}

.history-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.history-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.history-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.history-main strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.history-main small {
    display: block;
}

.history-files {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.history-file-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-status-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.history-status {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.history-status span {
    font-weight: 800;
    overflow-wrap: anywhere;
}

.history-status small {
    font-size: 12px;
}

.history-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.addon-summary-card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    background: linear-gradient(180deg, #eff6ff, #ffffff);
}

.addon-summary-card strong {
    font-size: 28px;
    line-height: 1;
}

.addon-summary-card span {
    color: #1d4ed8;
    font-size: 18px;
    font-weight: 800;
}

.addon-summary-card small {
    color: #475569;
}

.promotion-dialog {
    width: min(560px, calc(100% - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-x: hidden;
    overflow-y: auto;
}

.promotion-dialog h2 {
    margin: 8px 0 6px;
    text-align: center;
}

.promotion-eyebrow {
    margin-top: 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}

.promotion-copy {
    margin: 0 auto 14px;
    max-width: 46ch;
    text-align: center;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.promotion-reward-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-bottom: 14px;
}

.promotion-reward-card strong {
    min-width: 0;
    font-size: 22px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.promotion-reward-card span {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 28px;
}

.promotion-reward-card small {
    grid-column: 1;
}

.promotion-fields,
.promotion-code-step {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.promotion-code-step label {
    color: var(--ink);
    font-weight: 800;
}

.promotion-code-input {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .28em;
    text-align: center;
}

.promotion-secondary-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.promotion-secondary-actions .btn {
    flex: 1 1 190px;
}

.promotion-dialog .compact-form,
.promotion-dialog .form-control,
.promotion-dialog .btn {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 640px) {
    .promotion-dialog {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
        padding: 16px;
        border-radius: 18px;
    }

    .promotion-reward-card strong {
        font-size: 19px;
    }

    .promotion-secondary-actions,
    .promotion-secondary-actions .btn {
        width: 100%;
    }
}

.download-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .22), transparent 34%),
        linear-gradient(135deg, #f8fafc, #dbeafe);
}

.download-shell {
    width: min(860px, 100%);
}

.download-card {
    display: grid;
    gap: 16px;
    padding: 28px;
}

.download-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.download-support-shortcut {
    min-height: 40px;
    padding: 9px 14px;
}

.download-card h1 {
    margin: 18px 0 10px;
    text-align: center;
    font-size: 40px;
    letter-spacing: 0;
}

.download-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.download-sender-card {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fafc;
}

.download-sender-avatar {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    overflow: hidden;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.download-sender-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-sender-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.download-sender-card strong {
    overflow-wrap: anywhere;
}

.download-hero .state-icon {
    margin: 0;
}

.download-hero-copy {
    min-width: 0;
}

.download-hero-copy h1 {
    margin: 0 0 10px;
    text-align: left;
}

.message-preview {
    display: grid;
    min-width: 0;
    max-width: 100%;
    gap: 10px;
    padding: 14px 16px;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    margin: 0;
    text-align: left;
}

.message-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.message-preview-header span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.message-copy-button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 13px;
    white-space: nowrap;
}

.message-preview-text {
    max-height: min(320px, 42vh);
    min-width: 0;
    overflow: auto;
    padding-right: 4px;
    color: #334155;
    font-size: 15px;
    line-height: 1.62;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
    scrollbar-gutter: stable;
}

.download-meta {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 0;
}

.download-meta span {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 13px;
    font-weight: 800;
}

.download-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fafc;
}

.download-summary > div {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.download-archive-action {
    display: grid;
    gap: 6px;
    justify-items: end;
}

.download-summary strong {
    overflow-wrap: anywhere;
    font-size: 18px;
}

.download-summary small,
.download-files-panel small,
.folder-summary small {
    color: var(--muted);
}

.download-cache-note {
    display: block;
    max-width: 280px;
    font-weight: 700;
}

.download-cache-ready {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-self: end;
    color: #0f766e;
}

.zip-notify-form {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto;
    gap: 8px;
    width: min(360px, 100%);
    margin-top: 6px;
}

.zip-notify-form .form-status {
    grid-column: 1 / -1;
    text-align: right;
}

.download-files-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.download-files-panel > summary {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.download-files-panel > summary::-webkit-details-marker,
.folder-summary::-webkit-details-marker {
    display: none;
}

.download-files-panel > summary span,
.folder-summary span {
    display: inline-flex;
    min-width: 0;
    gap: 9px;
    align-items: center;
}

.download-folder-tree {
    display: grid;
    max-height: 420px;
    gap: 8px;
    overflow-y: auto;
    padding: 0 12px 12px;
}

.folder-node {
    border-left: 2px solid #dbeafe;
    padding-left: 10px;
}

.folder-summary {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    cursor: pointer;
    color: #1e293b;
    font-weight: 800;
    list-style: none;
}

.folder-summary .fa-folder,
.download-files-panel .fa-folder-open {
    color: #1d4ed8;
}

.folder-children {
    display: grid;
    gap: 8px;
    margin: 2px 0 10px 10px;
}

.file-download-list {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.file-download-list.is-scrollable {
    max-height: 430px;
    overflow-y: auto;
    padding-right: 4px;
}

.download-file {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    text-decoration: none;
}

.download-file.is-exhausted {
    border-color: rgba(239, 68, 68, 0.24);
    background: #fff7f7;
}

.download-file.tree-file {
    border-radius: 14px;
    padding: 12px;
}

.download-file-main {
    display: grid;
    min-width: 0;
}

.download-file strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.file-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--accent);
    border-radius: 14px;
    background: #eff6ff;
}

.download-progress-chip {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    justify-self: end;
    min-height: 34px;
    max-width: 100%;
    padding: 7px 10px;
    color: #0f766e;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 999px;
    background: #ecfdf5;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.download-progress-chip i {
    font-size: 11px;
}

.download-progress-chip:not(.has-downloads) {
    color: #64748b;
    background: #f8fafc;
    border-color: rgba(100, 116, 139, 0.18);
}

.download-progress-chip.is-exhausted {
    color: #b91c1c;
    background: #fef2f2;
    border-color: rgba(239, 68, 68, 0.22);
}

.btn.ad-unlock-btn {
    color: #065f46;
    border-color: rgba(15, 118, 110, 0.22);
    background: #ecfdf5;
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.12);
}

.btn.ad-unlock-btn:hover {
    background: #d1fae5;
    transform: translateY(-1px);
}

.ad-unlock-note {
    margin: -2px 0 0;
    padding: 10px 12px;
    color: #0f766e;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 14px;
    background: #ecfdf5;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}


.zip-download-trigger.is-busy {
    pointer-events: none;
    opacity: 0.72;
}

.zip-prepare-dialog {
    width: min(430px, calc(100% - 28px));
    padding: 28px;
    border: 0;
    color: var(--ink);
    text-align: center;
}

.zip-prepare-dialog::backdrop {
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(7px);
}

.zip-prepare-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin: 0 auto 16px;
    color: var(--accent);
    border-radius: 20px;
    background: #eff6ff;
    font-size: 26px;
}

.zip-prepare-icon .fa-check {
    color: #166534;
}

.zip-prepare-dialog h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.zip-prepare-dialog p {
    min-height: 48px;
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.zip-prepare-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    margin: 18px 0 16px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-weight: 900;
}
.reply-box {
    margin-top: 22px;
    padding: 18px;
    border-radius: 20px;
    background: #f8fafc;
}

.download-support-box {
    display: grid;
    gap: 14px;
    width: min(680px, calc(100% - 24px));
    max-width: calc(100vw - 24px);
    max-height: min(90vh, 860px);
    margin-top: 22px;
    padding: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
}

.download-support-box > *,
.download-support-box form,
.download-support-box .form-grid,
.download-support-box .support-field {
    min-inline-size: 0;
    max-inline-size: 100%;
    min-width: 0;
    max-width: 100%;
}

.download-support-box form,
.download-support-box .form-grid,
.download-support-box .support-field {
    width: 100%;
    inline-size: 100%;
}

.download-support-box *,
.download-support-box *::before,
.download-support-box *::after {
    min-inline-size: 0;
    max-inline-size: 100%;
}

#download-support-form {
    display: grid;
    inline-size: 100%;
    max-inline-size: 100%;
    overflow-x: hidden;
}

#download-support-form .form-control {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    inline-size: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
}

#download-support-form .btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: 100%;
    height: auto;
    padding-inline: 12px;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
    text-align: center;
}

.download-support-box .dialog-close-form {
    position: sticky;
    top: 0;
    z-index: 2;
    margin-bottom: -52px;
    pointer-events: none;
}

.download-support-box .dialog-close-form .icon-btn {
    pointer-events: auto;
}

.support-context-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-radius: 15px;
    background: #eff6ff;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.support-context-note i {
    margin-top: 3px;
}

.download-support-box .support-field {
    display: grid;
    gap: 7px;
}

.download-support-box .support-field > span {
    display: flex;
    gap: 6px;
    align-items: baseline;
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
}

.download-support-box .support-field > span small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.download-support-box .support-field > span b {
    color: var(--danger);
}

.download-support-box textarea.form-control {
    min-height: 132px;
    resize: vertical;
}

.support-field-hint {
    display: flex;
    gap: 12px;
    align-items: start;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
}

.support-field-hint span:last-child {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}

.download-support-box .support-file-control {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    inline-size: 100%;
    max-inline-size: 100%;
    min-width: 0;
    padding: 11px 12px;
    overflow: hidden;
    color: var(--muted);
    border: 1px dashed #bfdbfe;
    border-radius: 15px;
    background: #f8fbff;
    cursor: pointer;
}

.download-support-box .support-file-control:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.download-support-box .support-file-button {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 850;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.download-support-box .support-file-name {
    display: grid;
    gap: 2px;
    width: 100%;
    max-width: 100%;
    inline-size: 100%;
    max-inline-size: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.download-support-box .support-file-name > span {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.download-support-box .support-file-name small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

.download-support-box .support-file-control input[type="file"] {
    position: absolute;
    width: 1px !important;
    min-width: 0 !important;
    max-width: 1px !important;
    inline-size: 1px !important;
    min-inline-size: 0 !important;
    max-inline-size: 1px !important;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

body.theme-dark .support-context-note {
    color: #bfdbfe;
    border-color: #1e3a5f;
    background: #132239;
}

body.theme-dark .download-support-box .support-file-control {
    border-color: #334b6b;
    background: #121a26;
}

body.theme-dark .download-support-box .support-file-button {
    color: #93c5fd;
}

dialog.download-support-box:not([open]) {
    display: none;
}

dialog.download-support-box[open] {
    margin: auto;
}

.download-support-messages {
    display: grid;
    gap: 10px;
}

.reply-box-header {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.reply-box-header h2 {
    margin: 0;
}

.compact-form,
.reply-box form,
.download-support-box form {
    display: grid;
    gap: 10px;
}

.profile-dialog {
    width: min(760px, calc(100% - 24px));
    max-height: min(92vh, 900px);
    overflow: auto;
}

.profile-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 4px 4px 16px;
}

.profile-head h2 {
    margin: 4px 0 2px;
}

.profile-avatar {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 28px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-kicker {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    color: #075985;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 900;
}

.profile-section {
    display: grid;
    gap: 14px;
    padding: 16px;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
}

.profile-section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.profile-section-title strong {
    font-size: 17px;
}

.profile-section-title span {
    max-width: 310px;
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}

.profile-wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.profile-wallet-item {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #f8fafc;
}

.profile-wallet-item span,
.profile-wallet-item small {
    color: var(--muted);
    font-size: 12px;
}

.profile-wallet-item strong {
    overflow-wrap: anywhere;
    font-size: 22px;
}

.balance-panel {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.balance-panel > div {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fafc;
}

.balance-panel strong {
    font-size: 30px;
    letter-spacing: 0;
}

.balance-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.compact-btn {
    min-height: 40px;
    padding: 10px 14px;
}

.plan-manage-card {
    align-content: start;
    gap: 12px !important;
}

.plan-manage-card small {
    color: var(--muted);
}

.plan-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.plan-action-row .btn {
    flex: 1 1 180px;
}

.ledger-title {
    align-items: center;
}

.ledger-title > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.ledger-title > div span {
    max-width: none;
    text-align: left;
}

.balance-ledger-list {
    display: grid;
    max-height: 330px;
    gap: 10px;
    overflow: auto;
    padding-right: 4px;
}

.ledger-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #f8fafc;
}

.ledger-row-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.ledger-row-main strong {
    overflow-wrap: anywhere;
    font-size: 14px;
}

.ledger-row-main span,
.ledger-payment,
.ledger-row-money small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.ledger-payment {
    overflow-wrap: anywhere;
}

.ledger-row-money {
    display: grid;
    gap: 4px;
    text-align: right;
    white-space: nowrap;
}

.ledger-row-money strong {
    font-size: 17px;
}

.ledger-row.credit .ledger-row-money strong {
    color: #0f766e;
}

.ledger-row.debit .ledger-row-money strong {
    color: #b91c1c;
}

.profile-activity-row {
    grid-template-columns: minmax(0, 1fr) 36px;
}

.profile-activity-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.profile-activity-delete {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(185, 28, 28, 0.18);
    border-radius: 10px;
    background: #fff;
    color: #b91c1c;
    cursor: pointer;
    transition: background .18s, border-color .18s;
}

.profile-activity-delete:hover {
    border-color: rgba(185, 28, 28, 0.35);
    background: #fef2f2;
}

.profile-activity-delete:disabled {
    cursor: wait;
    opacity: .55;
}

body.theme-dark .profile-activity-delete {
    border-color: rgba(248, 113, 113, 0.3);
    background: #1e293b;
    color: #fca5a5;
}

body.theme-dark .profile-activity-delete:hover {
    background: #3f1d24;
}

@media(max-width: 560px) {
    .profile-activity-main {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

.ledger-empty {
    padding: 14px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    color: var(--muted);
    background: rgba(248, 250, 252, 0.65);
    font-size: 14px;
    text-align: center;
}

.auto-renew-row {
    align-self: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: auto;
    padding: 11px 12px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    cursor: pointer;
}

.auto-renew-row input {
    position: relative;
    width: 44px;
    height: 24px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    appearance: none;
    background: #cbd5e1;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    transition: background 0.2s ease;
}

.auto-renew-row input::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
    transition: transform 0.2s ease;
}

.auto-renew-row input:checked {
    background: #2563eb;
}

.auto-renew-row input:checked::before {
    transform: translateX(20px);
}

.auto-renew-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.auto-renew-copy strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.15;
}

.auto-renew-copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.balance-topup-form {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto auto;
    gap: 10px;
    align-items: start;
}

.balance-topup-form .form-status {
    grid-column: 1 / -1;
}

.service-notice-dialog,
.support-dialog,
.feedback-dialog,
.loyalty-dialog,
.activation-thanks-dialog {
    width: min(540px, calc(100% - 24px));
}

.support-dialog {
    width: min(680px, calc(100% - 24px));
}

.notice-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 18px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 24px;
}

.notice-icon.success {
    color: #166534;
    background: #dcfce7;
}

.notice-icon.support {
    color: #7c2d12;
    background: #ffedd5;
}

.support-message-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.support-message-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.support-message-card.is-unread {
    border-color: #fed7aa;
    background: #fff7ed;
}

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

.support-message-card p {
    margin: 10px 0;
    color: var(--text);
    line-height: 1.55;
}

.support-message-card small {
    color: var(--muted);
}

.support-message-new {
    padding: 4px 8px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

.support-chat-form,
.support-gift-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
}

.support-chat-form h3 {
    margin: 0;
    font-size: 18px;
}

.support-file-control,
.support-specialist-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-weight: 700;
}

.support-file-control input,
.support-specialist-toggle input {
    width: auto;
}

#support-dialog {
    max-width: calc(100vw - 24px);
    max-height: min(92vh, 900px);
    overflow-x: hidden;
    overflow-y: auto;
}

#support-dialog > *,
#support-dialog form,
#support-dialog .form-grid,
#support-dialog .support-chat-form > *,
#support-dialog .support-thread-preview {
    min-width: 0;
    max-width: 100%;
    min-inline-size: 0;
    max-inline-size: 100%;
}

#support-dialog .support-chat-form {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: 100%;
    overflow-x: hidden;
}

#support-dialog .support-chat-form .form-grid {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: 100%;
}

#support-dialog .support-chat-form .form-control {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    inline-size: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
}

#support-dialog .support-chat-form textarea.form-control {
    resize: vertical;
}

#support-dialog .support-chat-form .support-file-control {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: 100%;
    padding: 11px 12px;
    overflow: hidden;
    border: 1px dashed #bfdbfe;
    border-radius: 15px;
    background: #fff;
    cursor: pointer;
}

#support-dialog .support-chat-form .support-file-control:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

#support-dialog .support-chat-form .support-file-control > i {
    color: #2563eb;
}

#support-dialog .support-file-copy {
    display: grid;
    gap: 2px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: var(--ink);
    line-height: 1.35;
}

#support-dialog .support-file-copy strong,
#support-dialog .support-file-copy small {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#support-dialog .support-file-copy strong {
    font-size: 13px;
    font-weight: 850;
}

#support-dialog .support-file-copy small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

#support-dialog .support-chat-form .support-file-control input[type="file"] {
    position: absolute;
    width: 1px !important;
    min-width: 0 !important;
    max-width: 1px !important;
    inline-size: 1px !important;
    min-inline-size: 0 !important;
    max-inline-size: 1px !important;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

#support-dialog .support-chat-form .support-specialist-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    align-items: start;
    white-space: normal;
}

#support-dialog .support-chat-form .support-specialist-toggle input[type="checkbox"] {
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px;
    margin: 0;
}

#support-dialog .support-chat-form .support-specialist-toggle span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#support-dialog #support-chat-form > .btn,
#support-dialog .support-chat-form .toolbar .btn {
    min-width: 0;
    max-width: 100%;
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
    text-align: center;
}

#support-dialog #support-chat-form > .btn {
    width: 100% !important;
    inline-size: 100% !important;
    max-inline-size: 100% !important;
}

#support-dialog .support-chat-form .toolbar {
    display: flex;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

body.theme-dark #support-dialog .support-chat-form .support-file-control {
    border-color: #334b6b;
    background: #121a26;
}

.support-gift-title {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #166534;
    font-weight: 900;
}

.support-gift-applied {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: #f0fdf4;
}

.support-gift-applied p {
    margin: 0;
}

.support-quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0 4px;
}

.chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: #fff;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

.support-thread-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.support-thread-tab {
    display: grid;
    gap: 2px;
    min-width: 150px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.support-thread-tab.active {
    border-color: #93c5fd;
    background: #eff6ff;
}

.support-thread-tab span,
.support-thread-tab small {
    color: var(--muted);
    font-size: 12px;
}

.support-thread-header {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 10px;
}

.support-thread-header div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.support-thread-messages {
    display: grid;
    gap: 10px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

.support-thread-closed {
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--muted);
}

.support-thread-preview {
    display: grid;
    gap: 10px;
}

.support-thread-bubble {
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
}

.support-thread-bubble.bot {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.support-thread-bubble.admin {
    margin-left: 26px;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.support-thread-bubble.user {
    margin-right: 26px;
}

.support-thread-bubble p {
    margin: 6px 0 0;
    line-height: 1.5;
}

.support-thread-bubble a {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
    color: #1d4ed8;
    font-weight: 800;
}

.notice-window {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
    background: #f8fafc;
    font-size: 13px;
}

.maintenance-locked {
    opacity: 0.58;
    filter: grayscale(0.2);
}

.star-rating {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.star-btn {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #cbd5e1;
    background: #fff;
    cursor: pointer;
    font-size: 20px;
}

.star-btn.active,
.star-btn:hover {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.36);
    background: #fffbeb;
}

.feedback-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feedback-tags label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
    font-weight: 800;
}

.thanks-feature-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.thanks-feature-list div {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.thanks-feature-list i {
    color: var(--success);
    margin-top: 3px;
}

.locked-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: center;
}

.locked-input-row:has(.lock-addon-btn.is-hidden) {
    grid-template-columns: minmax(0, 1fr);
}

.lock-addon-btn {
    width: 42px;
    height: 42px;
}

.profile-check-row {
    display: flex !important;
    align-items: center;
    align-self: end;
    min-height: 46px;
}

.profile-check-row.auto-renew-row {
    display: grid !important;
    align-self: auto;
    min-height: auto;
}

.profile-form-grid {
    display: grid;
    gap: 12px;
}

.profile-form-grid label,
.custom-key-form label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.profile-avatar-uploader {
    display: grid;
    gap: 8px;
}

.profile-avatar-field-label {
    font-weight: 800;
}

.profile-avatar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-avatar-uploader small {
    line-height: 1.45;
}

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

.identity-card {
    position: relative;
    display: grid;
    gap: 7px;
    min-height: 142px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
}

.identity-card.active {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.identity-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.identity-card i {
    color: var(--accent);
    font-size: 22px;
}

.identity-card span {
    font-weight: 900;
}

.identity-card small {
    color: var(--muted);
    line-height: 1.45;
}

.custom-key-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.custom-key-form > small,
.custom-key-form .form-status {
    grid-column: 1 / -1;
}

.key-compose {
    position: relative;
}

.key-compose > span {
    position: absolute;
    left: 14px;
    bottom: 13px;
    z-index: 1;
    color: #475569;
    font-weight: 900;
    pointer-events: none;
}

.key-compose .form-control {
    padding-left: 96px;
    text-transform: uppercase;
}

.profile-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.alert {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fee2e2;
}

.account-restriction {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #f59e0b;
    border-radius: 18px;
    background: #fffbeb;
    color: #78350f;
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
}

.account-restriction--refunded,
.account-restriction--inactive {
    border-color: #f87171;
    background: #fff1f2;
    color: #881337;
}

.account-restriction--expired {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #334155;
}

.account-restriction-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 16px;
}

.account-restriction strong {
    display: block;
    margin: 1px 0 3px;
    font-size: 15px;
}

.account-restriction p {
    margin: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.document-page {
    min-height: 100vh;
    background: #f6f2ea;
}

.document-shell {
    position: relative;
    z-index: 1;
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 56px;
}

.document-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 26px;
    padding: 28px;
    margin-bottom: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.9));
    box-shadow: var(--shadow);
}

.document-hero > div {
    grid-column: 1 / -1;
}

.document-hero h1 {
    max-width: 760px;
    margin: 8px 0 10px;
    font-size: 56px;
    line-height: 0.95;
    letter-spacing: 0;
}

.document-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.document-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-weight: 750;
}

.document-card {
    margin-top: 14px;
    padding: 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.document-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    letter-spacing: 0;
}

.document-card p {
    margin: 0 0 12px;
    color: #475569;
    line-height: 1.75;
}

.document-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: #475569;
    line-height: 1.7;
}

.document-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    color: var(--muted);
}

@media (max-width: 900px) {
    .advanced-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .access-code-field,
    .download-password-field,
    .download-limit-field {
        grid-column: auto;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .hero-copy {
        position: static;
        padding: 18px 0;
    }

    .hero-copy h1 {
        max-width: 720px;
        font-size: 54px;
    }

    .document-hero h1 {
        font-size: 48px;
    }

    .value-grid,
    .use-case-grid,
    .plan-snapshot {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-panel,
    .business-panel {
        grid-template-columns: 1fr;
    }

    .business-actions {
        justify-content: flex-start;
    }

    .android-app-card {
        max-width: none;
    }

    .download-hero {
        grid-template-columns: 1fr;
    }

    .download-hero .state-icon {
        margin: 0 auto;
    }

    .download-hero-copy h1 {
        text-align: center;
    }
}

@media (min-width: 701px) and (max-width: 900px) {
    .app-shell .topbar {
        border-radius: 28px;
        flex-wrap: wrap;
    }

    .app-shell .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .app-shell .top-actions {
        display: none;
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid rgba(15, 23, 42, 0.06);
    }

    .app-shell .top-actions.is-open {
        display: flex;
    }

    .app-shell .top-actions,
    .app-shell .top-actions .btn,
    .app-shell .top-actions .plan-pill {
        width: 100%;
    }

    .app-shell .top-actions .btn,
    .app-shell .plan-pill {
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .app-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 10px;
    }

    .topbar {
        align-items: stretch;
        border-radius: 28px;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .top-actions {
        display: none;
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid rgba(15, 23, 42, 0.06);
    }

    .top-actions.is-open {
        display: flex;
    }

    .top-actions,
    .top-actions .btn,
    .top-actions .plan-pill {
        width: 100%;
    }

    .top-actions .btn,
    .plan-pill {
        justify-content: center;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer nav {
        justify-content: flex-start;
    }

    .mode-grid,
    .advanced-grid,
    .form-grid.two,
    .history-form,
    .share-url-row,
    .share-mini,
    .result-actions,
    .download-summary {
        grid-template-columns: 1fr;
    }

    .download-next-step {
        grid-template-columns: 1fr;
    }

    .download-next-step .btn {
        width: 100%;
    }

    .message-preview {
        padding: 12px;
        border-radius: 14px;
    }

    .message-preview-header {
        align-items: stretch;
        flex-direction: column;
    }

    .message-copy-button {
        width: 100%;
        justify-content: center;
    }

    .message-preview-text {
        max-height: 240px;
        font-size: 14px;
        line-height: 1.58;
    }

    .desktop-mode-grid {
        display: none;
    }

    .mobile-mode-picker {
        display: block;
    }

    .transfer-card,
    .download-card {
        padding: 16px;
        border-radius: 22px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .download-card h1,
    .document-hero h1 {
        font-size: 34px;
    }

    .product-sections {
        gap: 30px;
        margin-top: 30px;
    }

    .section-heading h2,
    .trust-copy h2,
    .business-panel h2 {
        font-size: 28px;
    }

    .value-grid,
    .use-case-grid,
    .plan-snapshot,
    .trust-list {
        grid-template-columns: 1fr;
    }

    .value-card,
    .use-case-grid article,
    .plan-snapshot article {
        min-height: auto;
        padding: 18px;
    }

    .trust-panel,
    .business-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .business-actions,
    .business-actions .btn {
        width: 100%;
    }

    .android-app-card {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 14px;
        border-radius: 18px;
    }

    .drop-zone {
        padding: 24px 14px;
    }

    .desktop-upload-text {
        display: none;
    }

    .mobile-upload-text {
        display: inline;
    }

    .drop-actions,
    .drop-actions .btn,
    .result-actions,
    .result-actions .btn,
    .download-summary .btn {
        width: 100%;
    }

    .download-file {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .download-file > .fa-download {
        grid-column: 3;
        grid-row: 1;
    }

    .download-progress-chip {
        grid-column: 2 / -1;
        grid-row: 2;
        justify-self: start;
        white-space: normal;
    }

    .download-archive-action {
        justify-items: stretch;
    }

    .zip-notify-form {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .zip-notify-form .form-status {
        text-align: left;
    }

    .download-support-box {
        width: calc(100vw - 8px) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 8px) !important;
        inline-size: calc(100vw - 8px) !important;
        min-inline-size: 0 !important;
        max-inline-size: calc(100vw - 8px) !important;
        max-height: calc(100vh - 8px);
        max-height: calc(100dvh - 8px);
        margin-inline: auto;
        padding: 12px;
        overflow-x: hidden !important;
        border-radius: 16px;
        contain: inline-size;
    }

    .download-support-box .form-grid.two {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .download-support-box .form-grid.two > .support-field + .support-field {
        margin-top: 10px;
    }

    .download-support-box .notice-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 6px;
        border-radius: 15px;
        font-size: 21px;
    }

    .download-support-box .reply-box-header h2 {
        padding-right: 44px;
        font-size: 23px;
        line-height: 1.15;
    }

    .download-support-box .support-file-control {
        grid-template-columns: minmax(0, 1fr);
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        inline-size: 100% !important;
        max-inline-size: 100% !important;
        padding: 10px;
    }

    .download-support-box .btn.wide {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        inline-size: 100% !important;
        max-inline-size: 100% !important;
    }

    .support-field-hint {
        display: grid;
        gap: 4px;
    }

    .support-field-hint span:last-child {
        justify-self: end;
    }

    #support-dialog {
        width: calc(100vw - 8px) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 8px) !important;
        inline-size: calc(100vw - 8px) !important;
        min-inline-size: 0 !important;
        max-inline-size: calc(100vw - 8px) !important;
        max-height: calc(100vh - 8px);
        max-height: calc(100dvh - 8px);
        margin-inline: auto;
        padding: 14px;
        overflow-x: hidden !important;
        border-radius: 18px;
        contain: inline-size;
    }

    #support-dialog .support-chat-form {
        padding: 12px;
    }

    #support-dialog .support-chat-form .form-grid.two {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    #support-dialog .support-chat-form .form-grid.two > .form-control + .form-control {
        margin-top: 10px;
    }

    #support-dialog .support-chat-form .support-file-control {
        grid-template-columns: auto minmax(0, 1fr);
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        inline-size: 100% !important;
        max-inline-size: 100% !important;
    }

    #support-dialog .support-chat-form .toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    #support-dialog .support-chat-form .toolbar .btn {
        width: 100%;
        max-width: 100%;
    }

    .history-item {
        grid-template-columns: 1fr;
    }

    .history-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .history-actions .btn,
    .history-actions a {
        width: 100%;
    }

    .profile-head,
    .profile-wallet-grid,
    .balance-panel,
    .balance-topup-form,
    .identity-choice,
    .custom-key-form {
        grid-template-columns: 1fr;
    }

    .profile-avatar {
        width: 64px;
        height: 64px;
    }

    .profile-section-title {
        display: grid;
    }

    .profile-section-title span {
        max-width: none;
        text-align: left;
    }

    .access-code-field,
    .download-password-field,
    .download-limit-field {
        grid-column: 1 / -1;
    }

    .access-code-field .form-control {
        max-width: none;
    }

    .ledger-row {
        grid-template-columns: 1fr;
    }

    .ledger-row-money {
        text-align: left;
        white-space: normal;
    }

    .profile-footer,
    .profile-footer .btn {
        width: 100%;
    }

    .profile-footer {
        display: grid;
    }

    .balance-inline,
    .plan-action-row,
    .plan-action-row .btn {
        width: 100%;
    }

    .balance-inline .btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .star-rating {
        justify-content: space-between;
    }

    .usage-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .document-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .document-card {
        padding: 22px;
    }

    .document-footer {
        flex-direction: column;
    }
}

/* FastSend download experience: brand-safe responsive polish */
.download-card {
    --download-brand-accent: var(--accent);
}

.download-card h1,
.download-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.download-hero-copy h1 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.download-company-brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--download-brand-accent) 24%, var(--line));
    border-radius: 18px;
    background: color-mix(in srgb, var(--download-brand-accent) 6%, #fff);
}

.download-company-logo {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--download-brand-accent) 22%, transparent);
    border-radius: 14px;
    color: var(--download-brand-accent);
    background: #fff;
}

.download-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.download-company-copy {
    min-width: 0;
}

.download-company-copy span,
.download-company-copy strong {
    display: block;
}

.download-company-copy span {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.download-company-copy strong {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 15px;
}

.download-verified-badge,
.download-ai-origin {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.download-verified-badge {
    padding: 8px 10px;
    color: #0f766e;
    border: 1px solid rgba(15, 118, 110, .18);
    background: #ecfdf5;
    white-space: nowrap;
}

.download-ai-origin {
    padding: 8px 11px;
    color: #4338ca;
    border: 1px solid rgba(79, 70, 229, .18);
    background: #eef2ff;
}

.download-ai-origin-wrap {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.download-ai-origin-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.file-download-list.is-single {
    margin: 10px 0 18px;
}

.file-download-list.is-single .download-file {
    padding: 17px;
    border-color: color-mix(in srgb, var(--download-brand-accent) 20%, var(--line));
    background: linear-gradient(135deg, color-mix(in srgb, var(--download-brand-accent) 4%, #fff), #fff 60%);
}

.file-download-list.is-single .file-icon {
    color: var(--download-brand-accent);
    background: color-mix(in srgb, var(--download-brand-accent) 9%, #fff);
}

.download-file-main,
.download-file-main strong,
.download-file-main small,
.download-files-panel summary span,
.folder-summary span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.theme-dark .download-company-brand {
    background: color-mix(in srgb, var(--download-brand-accent) 11%, #0f172a);
}

body.theme-dark .download-company-logo {
    background: #111827;
}

body.theme-dark .download-company-copy strong {
    color: #f8fafc;
}

body.theme-dark .download-ai-origin {
    color: #c7d2fe;
    background: rgba(67, 56, 202, .16);
}

@media (max-width: 700px) {
    .download-page {
        padding: 10px;
    }

    .download-card {
        gap: 13px;
    }

    .download-card h1,
    .download-hero-copy h1 {
        font-size: clamp(25px, 8vw, 34px);
        line-height: 1.1;
    }

    .download-hero-copy h1 {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .download-company-brand {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 11px 12px;
    }

    .download-verified-badge {
        grid-column: 1 / -1;
        justify-self: start;
        white-space: normal;
    }

    .download-company-logo {
        width: 42px;
        height: 42px;
    }

    .download-ai-origin-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .file-download-list.is-single .download-file {
        padding: 14px;
    }
}

/* Recipient-level delivery timeline for verified/company projects. */
.partner-recipient-timeline {
    margin-top: 8px;
    max-width: 360px;
}

.partner-recipient-timeline > summary {
    cursor: pointer;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    list-style: none;
}

.partner-recipient-timeline > summary::-webkit-details-marker { display: none; }

.partner-recipient-timeline-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.partner-recipient-timeline-item {
    display: grid;
    gap: 3px;
    min-width: 250px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--card) 94%, var(--accent) 6%);
    font-size: 11px;
    line-height: 1.45;
}

.partner-recipient-timeline-item strong {
    overflow-wrap: anywhere;
    font-size: 12px;
}

.partner-recipient-timeline-item span { color: var(--muted); }

/* Verified company quick activation */
.company-active-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid rgba(37, 99, 235, .22);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(16, 185, 129, .07));
}
.company-active-banner.is-hidden { display: none; }
.company-active-logo,
.company-activation-shield {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .09);
    color: #2563eb;
    font-size: 22px;
}
.company-active-logo img { width: 100%; height: 100%; object-fit: cover; }
.company-active-copy { min-width: 0; display: grid; gap: 2px; }
.company-active-copy strong { font-size: 16px; overflow-wrap: anywhere; }
.company-active-copy small { color: var(--muted, #64748b); overflow-wrap: anywhere; }
.company-active-kicker { color: #047857; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.company-activation-dialog { max-width: 560px; }
.company-activation-head { display: flex; gap: 14px; align-items: center; margin: 2px 0 18px; }
.company-activation-head h2 { margin: 3px 0 0; }
.company-activation-security-note {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, .045);
    color: var(--muted, #64748b);
    font-size: 13px;
    line-height: 1.45;
}
.company-otp-input { font-size: 24px; font-weight: 800; letter-spacing: .18em; text-align: center; }
.company-trust-row { grid-column: 1 / -1; }
@media (max-width: 640px) {
    .company-active-banner { grid-template-columns: auto minmax(0, 1fr); }
    .company-active-banner > .btn { grid-column: 1 / -1; width: 100%; }
    .company-activation-head { align-items: flex-start; }
}
