.home-page {
    --home-surface: #181f2b;
    --home-border: #344153;
    --home-muted: #b2bdcb;
    color: #f4f7fb;
}

.home-page > .nav {
    position: fixed !important;
    background: rgba(24, 31, 43, .96) !important;
}

.home-page > .container {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: calc(var(--appbar-height, 64px) + var(--appbar-top-gap, 12px) + 32px) 32px 40px !important;
}

.home-page > .footer {
    display: none;
}

.home-page .home-header,
.home-page .home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-page .home-header {
    margin-bottom: 28px;
}

.home-page .home-header h1 {
    margin: 0 0 6px;
    font-size: clamp(1.7rem, 2.2vw, 2rem);
    line-height: 1.25;
    letter-spacing: -.035em;
    font-weight: 650;
}

.home-page .home-header p,
.home-page .upload-header p,
.home-page .auth-header p {
    margin: 0;
    font-size: .875rem;
    line-height: 1.55;
    color: var(--home-muted);
}

.home-page .home-browse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 18px;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    color: #f4f7fb;
    white-space: nowrap;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
}

.home-page .home-browse-btn svg {
    width: 18px;
    height: 18px;
}

.home-page .split-container.home-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
    align-items: start;
    gap: 32px;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.home-page .home-workspace > .split-left {
    display: block;
    order: 0;
    min-height: 0;
    padding: 0;
    background: none;
}

.home-page .home-workspace > .split-left::before {
    display: none;
}

.home-page .upload-wrapper {
    width: 100%;
    max-width: none;
    padding: 28px;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 32px;
    box-shadow: none;
    backdrop-filter: none;
}

.home-page .upload-header {
    margin-bottom: 22px;
    text-align: left;
}

.home-page .upload-header h2 {
    margin: 0 0 6px;
    font-size: 1.125rem;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -.02em;
}

.home-page .upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 260px;
    margin: 0 0 20px;
    padding: 28px 20px;
    background: #202938;
    border: 1px dashed #67758a;
    color: #f4f7fb;
    font-family: inherit;
    text-align: center;
    transition: border-color .2s, background-color .2s;
}

.home-page .upload-zone:hover,
.home-page .upload-zone.dragover {
    border-color: #fe5000;
    background: #2a2c35;
}

.home-page .upload-zone.has-files {
    border-color: #70cda9;
    background: #1c332f;
}

.home-page .upload-icon {
    width: 42px;
    height: 42px;
    margin: 0 0 8px;
    opacity: 1;
    color: #fe5000;
}

.home-page .upload-text {
    font-size: 1rem;
    font-weight: 550;
    line-height: 1.5;
}

.home-page .upload-subtext {
    font-size: .8125rem;
    line-height: 1.5;
    color: var(--home-muted);
}

.home-page .file-list {
    max-height: 228px;
    scrollbar-width: thin;
    scrollbar-color: #586578 var(--home-surface);
}

.home-page .file-item {
    gap: 12px;
    margin: 0;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--home-border);
    border-radius: 0;
    background: transparent;
}

.home-page .file-info,
.home-page .file-details {
    min-width: 0;
}

.home-page .file-name {
    color: #f4f7fb;
    font-size: .875rem;
}

.home-page .file-size,
.home-page .form-hint,
.home-page .upload-feedback,
.home-page .progress-stage {
    color: var(--home-muted);
    font-size: .8125rem;
    line-height: 1.5;
}

.home-page .total-size {
    margin: 12px 0 0;
    padding: 12px 0;
    background: transparent;
    color: var(--home-muted);
    font-size: .8125rem;
    text-align: left;
}

.home-page .total-size span {
    color: #f4f7fb;
    font-variant-numeric: tabular-nums;
}

.home-page .home-upload-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.home-page .options-toggle,
.home-page .btn-transfer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 10px 18px;
    font-size: .875rem;
    font-weight: 550;
    line-height: 1.5;
}

.home-page .options-toggle {
    color: #d5dde8;
    background: #202938;
    border: 1px solid #455165;
}

.home-page .options-toggle:hover {
    background: #2a3545;
    color: #fff;
}

.home-page .options-toggle svg {
    width: 18px;
    height: 18px;
}

.home-page .btn-transfer,
.home-page .auth-card-guest .btn-primary,
.home-page .ad-cta {
    background: #fe5000;
    color: #fff;
    border: 1px solid transparent;
    box-shadow: none;
}

.home-page .btn-transfer:hover:not(:disabled),
.home-page .auth-card-guest .btn-primary:hover,
.home-page .ad-cta:hover {
    background: #df4600;
    transform: none;
    box-shadow: none;
}

.home-page .btn-transfer:disabled {
    background: #344153;
    color: #b2bdcb;
}

.home-page .home-workspace > .home-support {
    display: flex;
    order: 1;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
    min-height: 0;
    padding: 2px 0 0;
    background: transparent;
}

.home-page .home-section-header {
    margin: 0 0 14px;
}

.home-page .home-section-header h2 {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -.02em;
}

.home-page .home-section-header a {
    padding: 8px 0 8px 12px;
    color: #d5dde8;
    font-size: .8125rem;
    text-decoration: none;
}

.home-page .home-section-header a:hover {
    color: #ff986b;
}

.home-page .home-recent-list {
    border-top: 1px solid var(--home-border);
}

.home-page .home-recent-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 14px 8px;
    border-bottom: 1px solid var(--home-border);
    color: #f4f7fb;
    text-decoration: none;
    transition: background-color .15s;
}

.home-page .home-recent-row:hover {
    background: rgba(178, 189, 203, .06);
}

.home-page .home-file-icon {
    flex: 0 0 26px;
    color: var(--home-muted);
}

.home-page .home-file-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.home-page .home-recent-name {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.home-page .home-recent-name strong {
    overflow: hidden;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-page .home-recent-name > span {
    color: var(--home-muted);
    font-size: .75rem;
    line-height: 1.5;
}

.home-page .home-recent-status {
    flex-shrink: 0;
    padding: 3px 9px;
    border-radius: 32px;
    background: #1c332f;
    color: #9dd9bd;
    font-size: .6875rem;
    line-height: 1.5;
}

.home-page .home-recent-status.is-expired {
    background: #393327;
    color: #e0c699;
}

.home-page .home-recent-empty {
    padding: 36px 16px;
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
    text-align: center;
}

.home-page .home-recent-empty p {
    margin: 0 0 8px;
    font-size: .9375rem;
}

.home-page .home-recent-empty span {
    color: var(--home-muted);
    font-size: .8125rem;
    line-height: 1.6;
}

.home-page .home-support .ad-display {
    position: relative;
    display: block;
    width: 100%;
    min-height: 220px;
    height: 220px;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 24px;
    background: var(--home-surface);
}

.home-page .home-support .ad-overlay {
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient(transparent, rgba(16, 21, 30, .95));
}

.home-page .ad-title {
    font-size: 1.375rem;
    line-height: 1.3;
    letter-spacing: -.025em;
}

.home-page .ad-description {
    font-size: .9375rem;
    line-height: 1.65;
    color: #d5dde8;
}

.home-page .ad-cta {
    min-height: 44px;
    padding: 10px 18px;
    font-size: .875rem;
}

.home-page .transfer-options-card {
    top: 12px;
    right: 12px;
    width: min(560px, calc(100% - 24px));
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 0;
    overflow: hidden;
    background: #181f2b;
    border: 1px solid #455165;
    border-radius: 32px;
    color: #f4f7fb;
    transform: translateX(calc(100% + 24px));
    backdrop-filter: none;
}

.home-page .transfer-options-card.show {
    transform: translateX(0);
}

.home-page .transfer-options-header,
.home-page .transfer-options-footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    background: #181f2b;
}

.home-page .transfer-options-header {
    border-bottom: 1px solid var(--home-border);
}

.home-page .transfer-options-close {
    position: static;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--home-border);
    background: #202938;
    color: #f4f7fb;
}

.home-page .transfer-options-close:hover,
.home-page .options-secondary-btn:hover {
    border-color: #738093;
    background: #2c3748;
}

.home-page .transfer-options-title {
    margin: 0 0 5px;
    text-align: left;
    font-size: 1.375rem;
    line-height: 1.3;
    letter-spacing: -.025em;
    font-weight: 600;
}

.home-page .transfer-options-header p,
.home-page .transfer-options-footer p {
    margin: 0;
    color: var(--home-muted);
    font-size: .8125rem;
    line-height: 1.5;
}

.home-page .options-card-content {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 0 28px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #586578 #181f2b;
}

.home-page .options-card-content .options-section,
.home-page .options-card-content .options-section:first-of-type {
    padding: 24px 0;
    border-color: var(--home-border);
}

.home-page .options-card-content .options-section:last-child {
    border-bottom: 0;
}

.home-page .options-section-title {
    gap: 10px;
    margin: 0 0 18px;
    color: #f4f7fb;
    font-size: .9375rem;
    font-weight: 550;
    line-height: 1.4;
}

.home-page .options-section-title svg {
    width: 20px;
    height: 20px;
    color: #ff986b;
}

.home-page .options-section .form-group {
    min-width: 0;
    margin: 0 0 16px;
}

.home-page .options-section .form-group:last-child {
    margin-bottom: 0;
}

.home-page .options-section .form-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.home-page .options-section .form-label > span {
    color: var(--home-muted);
    font-size: .75rem;
    font-weight: 400;
}

.home-page .options-section .form-hint {
    display: block;
    margin-top: 7px;
    font-size: .75rem;
}

.home-page .options-section textarea {
    min-height: 84px;
    resize: vertical;
}

.home-page .options-input-action {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.home-page .options-input-action > .form-input {
    flex: 1 1 auto;
    min-width: 0;
}

.home-page .options-secondary-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #586578;
    background: #202938;
    color: #f4f7fb;
    font: inherit;
    font-size: .8125rem;
    cursor: pointer;
}

.home-page .options-add-recipient {
    width: 46px;
    padding: 0;
}

.home-page .options-recipient-list {
    max-height: 124px;
    margin-top: 10px;
    overflow-y: auto;
}

.home-page .options-recipient-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    padding: 4px 8px 4px 14px;
    border: 1px solid var(--home-border);
    border-radius: 32px;
    background: #202938;
    font-size: .8125rem;
}

.home-page .options-recipient-chip > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.home-page .options-recipient-chip button {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d5dde8;
    cursor: pointer;
}

.home-page .options-notification {
    margin-top: 18px;
}

.home-page .options-notification .checkbox-label {
    position: relative;
    gap: 12px;
    margin: 0;
    color: #f4f7fb;
}

.home-page .options-notification input[type="checkbox"] {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.home-page .options-notification .checkbox-custom {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-color: #738093;
    border-radius: 6px;
}

.home-page .options-notification input:focus-visible + .checkbox-custom {
    outline: 2px solid #ff986b;
    outline-offset: 4px;
}

.home-page .options-checkbox-hint {
    display: block;
    margin-top: 2px;
    color: var(--home-muted);
    font-size: .75rem;
    line-height: 1.5;
}

.home-page .options-section .options-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.home-page .options-section .options-grid .form-group {
    margin: 0;
}

.home-page .transfer-options-footer {
    padding-block: 18px;
    border-top: 1px solid var(--home-border);
}

.home-page .options-done-btn {
    min-width: 100px;
    min-height: 44px;
    padding: 10px 22px;
    font-size: .875rem;
}

.home-page .form-label,
.home-page .checkbox-label {
    margin-bottom: 8px;
    color: #d5dde8;
    font-size: .8125rem;
    line-height: 1.5;
}

.home-page .form-input,
.home-page .form-control,
.home-page .schedule-trigger,
.home-page .schedule-input-group input {
    min-height: 46px;
    padding: 12px 16px;
    border: 1px solid #586578;
    background: #202938;
    color: #f4f7fb;
    font: inherit;
    font-size: .875rem;
    line-height: 1.5;
    color-scheme: dark;
}

.home-page .form-input::placeholder,
.home-page .form-control::placeholder {
    color: #a4b0c1;
    opacity: 1;
}

.home-page .input-with-prefix {
    overflow: hidden;
    border: 1px solid #586578;
    background: #202938;
}

.home-page .input-prefix {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #181f2b;
    border-right-color: var(--home-border);
    color: var(--home-muted);
    font-family: inherit;
}

.home-page .input-with-prefix .form-control {
    border: 0;
    background: transparent;
}

.home-page .progress-container,
.home-page .resume-banner {
    margin-block: 16px;
    padding: 18px;
    border: 1px solid var(--home-border);
    border-radius: 24px;
    background: #202938;
}

.home-page .progress-header,
.home-page .progress-details {
    flex-wrap: wrap;
    gap: 10px;
}

.home-page .progress-bar {
    height: 7px;
    background: #455165;
}

.home-page .progress-fill {
    background: #fe5000;
}

.home-page .progress-stats,
.home-page .progress-details,
.home-page .resume-file-progress {
    color: var(--home-muted);
    font-variant-numeric: tabular-nums;
}

.home-page .progress-speed {
    color: #70cda9;
}

.home-page .progress-percentage {
    color: #ff986b;
}

.home-page .upload-control {
    border-color: #738093;
    color: #f4f7fb;
    font-size: .8125rem;
}

.home-page .toast {
    border-radius: 24px;
}

.home-page .manual-zip-modal,
.home-page .schedule-modal {
    border: 1px solid #455165;
    border-radius: 32px;
    background: #181f2b;
}

.home-page .fullscreen-video-bg {
    display: none;
}

.home-page .split-container.guest-split {
    display: flex;
    min-height: 0;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 0 0;
    background: transparent;
}

.home-page .guest-split > .guest-left {
    order: 0;
    width: 100%;
    max-width: 460px;
    min-height: 0;
    padding: 0;
    background: none;
}

.home-page .guest-split > .guest-left::before {
    display: none;
}

.home-page .guest-split > :is(.guest-right, .fullscreen-ad-bg, .fullscreen-ad-info) {
    display: none;
}

.home-page .guest-form-wrapper {
    width: 100%;
    max-width: 460px;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
}

.home-page .auth-card-guest {
    padding: 32px;
    border: 1px solid var(--home-border);
    border-radius: 32px;
    background: var(--home-surface);
    box-shadow: none;
}

.home-page .auth-header {
    margin-bottom: 28px;
    text-align: left;
}

.home-page .auth-header h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -.03em;
}

.home-page .auth-card-guest .password-wrapper .form-input {
    padding-right: 52px;
}

.home-page .auth-card-guest .password-toggle {
    right: 5px;
    width: 40px;
    height: 40px;
    color: var(--home-muted);
}

.home-page .auth-footer,
.home-page .feature-item {
    color: var(--home-muted);
    font-size: .8125rem;
    line-height: 1.6;
}

.home-page .auth-footer a {
    color: #ff986b;
}

.home-page .features-list {
    gap: 12px 18px;
    margin-top: 24px;
    padding-top: 22px;
    border-color: var(--home-border);
}

.home-page .guest-right {
    order: 1;
    min-width: 0;
    min-height: 0;
    padding: 32px;
    text-align: left;
    background: transparent;
}

.home-page .guest-right .ad-title {
    max-width: 540px;
    font-size: clamp(2rem, 3.4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.045em;
}

.home-page .guest-right .ad-content-wrapper {
    text-align: left;
}

.home-page .form-input:focus,
.home-page .form-control:focus {
    border-color: #fe5000;
    box-shadow: none;
}

.home-page .guest-right .ad-description {
    max-width: 480px;
    margin: 20px 0 24px;
    font-size: 1rem;
    line-height: 1.75;
    opacity: 1;
}

.home-page .guest-right .ad-display {
    position: relative;
    display: block;
    width: 100%;
    min-height: 400px;
    border-radius: 32px;
    overflow: hidden;
}

.home-page .home-workspace.fullscreen-ad {
    position: relative;
    isolation: isolate;
    padding: 28px;
    border-radius: 32px;
    overflow: hidden;
}

.home-page .home-workspace.fullscreen-ad .fullscreen-ad-bg {
    z-index: -1;
}

.home-page .home-workspace.fullscreen-ad .fullscreen-ad-info {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    width: auto;
    max-width: none;
    padding: 12px 0 0;
    text-align: left;
}

.home-page :is(button, a, input, select, textarea):focus-visible {
    outline: 2px solid #ff986b;
    outline-offset: 4px;
}

@media (max-width: 1000px) {
    .home-page .split-container.home-workspace {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .home-page .home-workspace > .home-support {
        max-width: none;
    }

    .home-page .guest-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .home-page .guest-right {
        padding: 0 24px 24px;
    }
}

@media (max-width: 600px) {
    .home-page > .container {
        padding: calc(var(--appbar-height, 56px) + var(--appbar-top-gap, 8px) + 24px) 16px 28px !important;
    }

    .home-page .home-header {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
    }

    .home-page .home-header h1 {
        font-size: 1.625rem;
    }

    .home-page .home-header p {
        max-width: 210px;
        font-size: .8125rem;
    }

    .home-page .home-browse-btn {
        padding-inline: 14px;
        font-size: .8125rem;
    }

    .home-page .home-browse-btn svg {
        display: none;
    }

    .home-page .upload-wrapper,
    .home-page .auth-card-guest {
        padding: 22px;
    }

    .home-page .upload-zone {
        min-height: 220px;
        padding: 24px 12px;
    }

    .home-page .upload-text {
        font-size: .875rem;
    }

    .home-page .options-toggle,
    .home-page .btn-transfer {
        padding: 10px 14px;
        font-size: .8125rem;
    }

    .home-page .home-upload-actions {
        gap: 10px;
    }

    .home-page .home-recent-row {
        gap: 10px;
        padding-inline: 2px;
    }

    .home-page .transfer-options-card {
        top: 8px;
        right: 8px;
        width: calc(100% - 16px);
        height: calc(100dvh - 16px);
        max-height: calc(100dvh - 16px);
    }

    .home-page .transfer-options-header,
    .home-page .transfer-options-footer {
        gap: 12px;
        padding-inline: 20px;
    }

    .home-page .transfer-options-header {
        padding-block: 20px;
    }

    .home-page .transfer-options-title {
        font-size: 1.25rem;
    }

    .home-page .options-card-content {
        padding-inline: 20px;
    }

    .home-page .options-section .options-grid {
        gap: 12px;
    }

    .home-page .guest-right {
        padding: 0 6px 20px;
    }

    .home-page .home-workspace.fullscreen-ad {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        animation: none !important;
        transition: none !important;
    }
}
