:root {
    color-scheme: light;
    --ink: #20242c;
    --muted: #667085;
    --line: #d5dce6;
    --paper: #f6f4ee;
    --panel: #ffffff;
    --green: #a5122a;
    --blue: #a5122a;
    --rose: #9e596a;
    --gold: #b9853d;
    --graphite: #2c3440;
    --danger: #b42318;
    --shadow: 0 18px 60px rgba(32, 38, 48, .14);
    --soft-shadow: 0 8px 28px rgba(32, 38, 48, .10);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(120deg, rgba(165, 18, 42, .12), transparent 30%),
        linear-gradient(240deg, rgba(185, 133, 61, .12), transparent 35%),
        linear-gradient(180deg, rgba(165, 18, 42, .08), transparent 380px),
        var(--paper);
}

main {
    width: min(1120px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(360px, 1fr);
    gap: 46px;
    align-items: center;
    padding: 44px 0;
}

.intro {
    min-width: 0;
    position: relative;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-family: ui-serif, Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.08;
    letter-spacing: 0;
    max-width: 520px;
}

.subtitle {
    margin: 22px 0 0;
    max-width: 560px;
    color: #4a5360;
    font-size: 18px;
    line-height: 1.55;
}

.desktop-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.desktop-note span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(216, 221, 232, .88);
    border-radius: 999px;
    background: rgba(255, 255, 255, .74);
    color: #465160;
    font-size: 13px;
    font-weight: 680;
    box-shadow: var(--soft-shadow);
}

.deadline-panel {
    width: min(560px, 100%);
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(213, 220, 230, .92);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--soft-shadow);
}

.deadline-label {
    margin: 0;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.deadline-date {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
}

.deadline-count {
    margin: 5px 0 0;
    color: #4a5360;
    font-size: 14px;
    line-height: 1.35;
}

.deadline-panel.is-closed {
    border-color: rgba(180, 35, 24, .22);
    background: rgba(255, 246, 244, .9);
}

.photo-ribbon {
    position: relative;
    width: min(500px, 100%);
    height: 410px;
    margin-top: 34px;
}

.photo-ribbon span {
    position: absolute;
    display: block;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(24, 31, 43, .18);
}

.photo-ribbon img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.photo-ribbon span:nth-child(1) {
    left: 0;
    top: 20px;
    width: 150px;
    height: 228px;
    transform: rotate(-2deg);
}

.photo-ribbon span:nth-child(2) {
    left: 142px;
    top: 0;
    width: 258px;
    height: 150px;
    transform: rotate(1.5deg);
}

.photo-ribbon span:nth-child(3) {
    left: 164px;
    top: 150px;
    width: 170px;
    height: 128px;
    transform: rotate(-1deg);
}

.photo-ribbon span:nth-child(4) {
    left: 34px;
    top: 236px;
    width: 148px;
    height: 184px;
    transform: rotate(1.2deg);
}

.photo-ribbon span:nth-child(5) {
    left: 292px;
    top: 258px;
    width: 176px;
    height: 124px;
    transform: rotate(-1.5deg);
}

.uploader {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(216, 221, 232, .9);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 18px;
    min-width: 0;
}

.uploader-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.uploader-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.uploader-meta {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.format-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef6f2;
    color: #276b50;
    font-size: 12px;
    font-weight: 780;
    white-space: nowrap;
}

.dropzone {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 312px;
    padding: 26px;
    border: 2px dashed #b9c2d0;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .96)),
        repeating-linear-gradient(45deg, transparent 0 12px, rgba(47, 95, 152, .04) 12px 24px);
    text-align: center;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.dropzone > span:not(.drop-empty) {
    width: 100%;
}

.dropzone.is-over {
    border-color: var(--green);
    background: #f1faf5;
    transform: translateY(-2px);
}

.dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.drop-empty {
    display: block;
}

.dropzone.has-files {
    align-items: stretch;
    min-height: 360px;
    padding: 16px;
    text-align: left;
}

.dropzone.has-files .drop-empty {
    display: none;
}

.drop-preview {
    display: none;
    min-height: 0;
    height: 100%;
    pointer-events: none;
}

.dropzone.has-files .drop-preview {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
}

.drop-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.drop-preview-title {
    color: var(--ink);
    font-size: 18px;
    font-weight: 820;
}

.drop-preview-count {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef6f2;
    color: #276b50;
    font-size: 12px;
    font-weight: 800;
}

.drop-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
    min-height: 0;
    max-height: 238px;
    overflow-y: auto;
    padding-right: 2px;
}

.drop-preview-item {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(32, 38, 48, .07);
    pointer-events: auto;
}

.drop-preview-item img,
.drop-preview-video {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #eef2f7;
}

.drop-preview-video {
    display: grid;
    place-items: center;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
}

.drop-preview-name {
    display: block;
    padding: 6px 7px;
    overflow: hidden;
    color: #344054;
    font-size: 11px;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drop-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 8;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 999px;
    background: rgba(32, 36, 44, .78);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
}

.drop-remove svg {
    width: 16px;
    height: 16px;
}

.drop-remove:hover {
    background: #b42318;
}

.drop-preview-help {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--graphite));
}

.upload-icon svg {
    width: 30px;
    height: 30px;
}

.mobile-action {
    display: none;
}

.drop-title {
    margin: 0;
    font-size: 24px;
    font-weight: 780;
    letter-spacing: 0;
}

.drop-meta {
    margin: 10px auto 0;
    color: var(--muted);
    line-height: 1.45;
    max-width: 360px;
}

.identity-panel {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.field-label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 760;
}

select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 38px 0 12px;
    background:
        linear-gradient(45deg, transparent 50%, #475467 50%) calc(100% - 18px) 20px / 6px 6px no-repeat,
        linear-gradient(135deg, #475467 50%, transparent 50%) calc(100% - 13px) 20px / 6px 6px no-repeat,
        #fff;
    color: var(--ink);
    font: inherit;
    appearance: none;
}

.consent-label {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: start;
    color: #344054;
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}

.consent-label input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--green);
}

.controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.upload-total {
    display: none;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.upload-total.is-visible {
    display: block;
}

.upload-total-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #344054;
    font-size: 13px;
    font-weight: 780;
}

.upload-total-bar {
    height: 10px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7ebf2;
}

.upload-total-bar span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--green));
    transition: width .18s ease;
}

.security-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

button {
    height: 46px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-weight: 760;
    cursor: pointer;
}

button:not(:disabled):hover {
    background: #7f0e20;
}

button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

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

.file-row {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.thumb {
    width: 54px;
    height: 54px;
    border-radius: 7px;
    object-fit: cover;
    background: #eef2f7;
}

.file-name {
    overflow-wrap: anywhere;
    font-weight: 720;
    line-height: 1.25;
}

.file-status {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.progress {
    width: 72px;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: #e7ebf2;
}

.progress span {
    display: block;
    width: 0%;
    height: 100%;
    background: var(--green);
    transition: width .12s ease;
}

.notice {
    min-height: 24px;
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.4;
}

.notice.error { color: var(--danger); }
.notice.success { color: var(--green); }

.thanks-view {
    display: none;
    min-height: 100vh;
    width: min(720px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    place-items: center;
}

.thanks-panel {
    width: 100%;
    padding: clamp(28px, 6vw, 54px);
    border: 1px solid rgba(216, 221, 232, .95);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow);
    text-align: center;
}

.thanks-mark {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eef6f2;
    color: var(--green);
}

.thanks-mark svg {
    width: 36px;
    height: 36px;
}

.thanks-panel h2 {
    margin: 0;
    font-family: ui-serif, Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 7vw, 54px);
    line-height: 1;
    letter-spacing: 0;
}

.thanks-panel p {
    margin: 16px auto 0;
    max-width: 480px;
    color: #4a5360;
    font-size: 17px;
    line-height: 1.55;
}

.thanks-meta {
    display: inline-flex;
    margin-top: 22px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3f5f8;
    color: #475467;
    font-size: 13px;
    font-weight: 760;
}

.thanks-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 16px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-weight: 760;
    cursor: pointer;
}

.thanks-back:hover {
    background: #7f0e20;
}

.thanks-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.thanks-preview-item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-align: left;
}

.thanks-preview-item img,
.thanks-video-item {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #eef2f7;
}

.thanks-video-item {
    display: grid;
    place-items: center;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
}

.thanks-preview-item span {
    display: block;
    padding: 7px 8px;
    overflow: hidden;
    color: #344054;
    font-size: 12px;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.is-complete main {
    display: none;
}

body.is-complete .thanks-view {
    display: grid;
}

@media (max-width: 840px) {
    body {
        background:
            linear-gradient(180deg, rgba(41, 79, 124, .14), transparent 270px),
            linear-gradient(135deg, rgba(185, 133, 61, .10), transparent 230px),
            var(--paper);
    }

    main {
        grid-template-columns: 1fr;
        align-items: start;
        width: min(100% - 24px, 560px);
        min-height: auto;
        padding: 22px 0 30px;
        gap: 18px;
    }

    .intro {
        text-align: center;
    }

    .eyebrow {
        margin-bottom: 10px;
        font-size: 12px;
    }

            h1 {
                max-width: 360px;
                margin: 0 auto;
                font-size: clamp(30px, 8.2vw, 40px);
                line-height: 1.08;
            }

    .subtitle {
        max-width: 430px;
        margin: 15px auto 0;
        font-size: 16px;
        line-height: 1.45;
    }

    .desktop-note {
        justify-content: center;
        gap: 7px;
        margin-top: 16px;
    }

    .deadline-panel {
        margin: 16px auto 0;
        text-align: center;
    }

    .desktop-note span {
        min-height: 28px;
        padding: 5px 9px;
        font-size: 12px;
    }

    .photo-ribbon {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        height: auto;
        margin: 20px auto 0;
    }

    .photo-ribbon span {
        position: relative;
        min-width: 0;
        padding: 5px;
        height: clamp(58px, 18vw, 86px);
        transform: none;
    }

    .photo-ribbon span:nth-child(1),
    .photo-ribbon span:nth-child(2),
    .photo-ribbon span:nth-child(3),
    .photo-ribbon span:nth-child(4),
    .photo-ribbon span:nth-child(5) {
        left: auto;
        top: auto;
        width: auto;
        height: clamp(58px, 18vw, 86px);
        grid-column: auto;
        grid-row: auto;
    }

    .photo-ribbon span:nth-child(2) {
        transform: translateY(8px);
    }

    .photo-ribbon span:nth-child(4) {
        transform: translateY(8px);
    }

    .photo-ribbon span:nth-child(5) {
        display: none;
    }

    .uploader {
        padding: 12px;
        box-shadow: 0 12px 34px rgba(32, 38, 48, .12);
    }

    .uploader-top {
        align-items: center;
        margin-bottom: 10px;
    }

    .uploader-title {
        font-size: 16px;
    }

    .uploader-meta {
        display: none;
    }

    .format-badge {
        padding: 6px 8px;
        font-size: 11px;
    }

    .dropzone {
        min-height: 226px;
        padding: 18px;
        border-style: solid;
        background: linear-gradient(180deg, #ffffff, #f5f8fb);
    }

    .dropzone.has-files {
        min-height: 320px;
        padding: 12px;
    }

    .drop-preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-height: 214px;
        gap: 8px;
    }

    .drop-preview-title {
        font-size: 16px;
    }

    .drop-preview-help {
        font-size: 12px;
    }

    .upload-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 14px;
    }

    .mobile-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        margin-top: 14px;
        padding: 0 14px;
        border-radius: 999px;
        background: #233043;
        color: #fff;
        font-size: 13px;
        font-weight: 760;
    }

    .drop-title {
        font-size: 21px;
    }

    .drop-meta {
        max-width: 290px;
        font-size: 14px;
    }

    .controls {
        display: block;
    }

    .identity-panel {
        padding: 12px;
    }

    button {
        width: 100%;
        height: 50px;
    }

    .security-note {
        text-align: center;
        font-size: 12px;
    }

    .file-row {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
    }

    .thumb {
        width: 48px;
        height: 48px;
    }

    .progress {
        grid-column: 1 / -1;
        width: 100%;
    }

    .thanks-preview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    main {
        width: min(100% - 18px, 560px);
    }

    .desktop-note span {
        font-size: 11px;
    }

    .drop-title {
        font-size: 19px;
    }

    .drop-meta {
        font-size: 13px;
    }
}
