/* Tabler supplies the component system; these styles define our giveaway experience. */
:root {
    --tblr-primary: #635bff;
    --tblr-primary-rgb: 99, 91, 255;
    --tblr-body-bg: #f5f6ff;
    --tblr-body-color: #182433;
    --tblr-font-sans-serif: "Segoe UI", Arial, sans-serif;
}

body {
    background: radial-gradient(ellipse at 15% 25%, #e8e4ff 0, transparent 50%),
        radial-gradient(ellipse at 90% 55%, #ffe5f0 0, transparent 45%), #f8faff;
    background-attachment: fixed;
}
[hidden] { display: none !important; }
.validation-summary-valid { display: none; }
.studio-container { padding: 0 48px; }
.studio-header { min-height: 82px; box-shadow: none; border-bottom: 1px solid #e3e7f0; }
.brand { font-size: 22px; font-weight: 750; letter-spacing: -.6px; gap: 10px; }
.brand-mark { font-size: 30px; color: #635bff; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: #635bff; }
.giveaway-main { width: calc(100% - 96px); max-width: 1560px; margin: 0 auto; }
.is-landing { min-height: calc(100svh - 180px); display: grid; align-items: center; }
.url-step { max-width: 960px; margin: 0 auto; padding: 64px 0 96px; text-align: center; }
.url-step h1 { margin: 20px 0; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.08; font-weight: 750; letter-spacing: -3px; }
.hero-description { color: #66758a; font-size: 19px; margin: 0 0 36px; }
.url-label { text-align: left; margin-bottom: 10px; }
.url-entry { display: flex; gap: 12px; align-items: stretch; }
.url-entry .form-control { min-width: 0; height: 72px; border-radius: 14px; padding: 20px 24px; font-size: 19px; background: white; box-shadow: 0 6px 24px #23463106; }
.url-entry .btn { flex: 0 0 auto; padding: 20px 28px; border-radius: 14px; font-weight: 650; gap: 22px; font-size: 16px; }
.url-help { font-size: 12px; margin: 16px 0 0; }
.journey { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 52px; font-size: 12px; color: #66758a; }
.journey span { white-space: nowrap; }
.journey b { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: 7px; border: 1px solid #d8e2d9; border-radius: 50%; font-size: 10px; color: #635bff; background: #eeecff; }
.journey-line { width: 42px; height: 1px; background: #dcd9ff; }
.has-workspace .url-step { max-width: none; text-align: left; padding: 42px 0 32px; }
.has-workspace .url-step h1 { font-size: 36px; letter-spacing: -1.2px; margin: 12px 0; }
.has-workspace .hero-description { font-size: 16px; margin-bottom: 24px; }
.has-workspace .journey { display: none; }
.has-workspace .url-entry .form-control { height: 58px; font-size: 16px; padding: 15px 20px; }
.has-workspace .url-entry .btn { padding: 15px 24px; }
.giveaway-workspace { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); gap: 32px; align-items: start; }
.workflow-card { border-radius: 20px; overflow: hidden; box-shadow: 0 8px 32px #23463105; }
.workflow-card .card-body { padding: 32px; }
.workflow-card .card-header { padding: 24px 32px; }
.workflow-card .card-footer { padding: 20px 32px; line-height: 1.7; }
.workflow-card .card-title { font-size: 23px; letter-spacing: -.6px; }
.workflow-card .form-control { padding: 12px 14px; border-radius: 9px; }
.workflow-card .btn-lg { min-height: 54px; justify-content: space-between; border-radius: 10px; }
.load-step { min-height: 410px; display: flex; flex-direction: column; justify-content: center; }
.load-step h2 { font-size: 32px; line-height: 1.15; letter-spacing: -1px; margin: 14px 0; }
.load-step > p { max-width: 480px; line-height: 1.7; margin-bottom: 28px; }
.step-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; margin-bottom: 24px; background: #eeecff; color: #635bff; font-weight: 700; }
.saved-pool-note { background: #f0eeff; border: 1px solid #dfdbff; border-radius: 10px; padding: 14px 16px; color: #655c91; font-size: 12px; line-height: 1.7; }
.count-notice { border-radius: 14px; padding: 20px; font-size: 12px; line-height: 1.6; }
.studio-footer { display: flex; justify-content: space-between; gap: 20px; margin: 48px 48px 0; padding: 24px 0; border-top: 1px solid #e3e7f0; color: #66758a; font-size: 12px; }
.results { margin-bottom: 32px; border-radius: 20px; padding: 32px; }
.results h2 { font-size: 32px; margin-top: 12px; letter-spacing: -1px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.stats > div { border: 1px solid #e0e4f5; border-radius: 12px; padding: 20px; background: #f3f1ff; font-size: 12px; }
.stats strong { display: block; font-size: 32px; margin-bottom: 5px; }
.results article { background: #fff; border: 1px solid #e0e4f5; border-radius: 12px; padding: 24px; margin: 12px 0; overflow-wrap: anywhere; }
.results article h3 { margin: 12px 0; }
.results article small { color: #66758a; }

/* A real indeterminate loading state covers the viewport until the response arrives. */
.loading-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 32px; background: #f5f6fff7; backdrop-filter: blur(8px); }
.loading-content { width: 100%; max-width: 540px; text-align: center; }
.loading-content h2 { margin: 16px 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -1.3px; line-height: 1.15; }
.loading-content p { color: #66758a; line-height: 1.7; }
.loading-orbit { position: relative; display: grid; place-items: center; width: 112px; height: 112px; margin: 0 auto 40px; border-radius: 50%; background: #eeecff; }
.loading-orbit::before { content: ""; position: absolute; inset: -8px; border: 2px solid #dcd9ff; border-top-color: #635bff; border-right-color: #635bff; border-radius: 50%; animation: progress-spin 1.6s linear infinite; }
.loading-orbit > span { color: #635bff; font-size: 56px; }
.loading-track { height: 4px; width: 220px; margin: 30px auto 18px; background: #e0e4f5; border-radius: 5px; overflow: hidden; }
.loading-track span { display: block; width: 40%; height: 100%; background: #635bff; border-radius: 5px; animation: loading-slide 1.5s ease-in-out infinite alternate; }
.loading-reassurance { font-size: 12px; }
body.is-loading { overflow: hidden; }
@keyframes loading-slide { from { transform: translateX(-100%); } to { transform: translateX(350%); } }

@media (max-width: 900px) {
    .studio-container { padding: 0 24px; }
    .giveaway-main { width: calc(100% - 48px); }
    .giveaway-workspace { grid-template-columns: 1fr 1.2fr; gap: 20px; }
    .workflow-card .card-body, .workflow-card .card-header, .workflow-card .card-footer { padding: 24px; }
    .url-entry .btn { padding: 16px 20px; }
    .studio-footer { margin-left: 24px; margin-right: 24px; }
}

@media (max-width: 680px) {
    .studio-header { min-height: 68px; }
    .studio-header .badge { display: none; }
    .brand { font-size: 20px; }
    .is-landing { min-height: calc(100svh - 150px); }
    .url-step { padding: 48px 0 64px; }
    .url-step h1 { font-size: 46px; letter-spacing: -2px; }
    .hero-description { font-size: 16px; }
    .url-entry { flex-direction: column; }
    .url-entry .form-control { height: 62px; padding: 18px; font-size: 16px; }
    .url-entry .btn { justify-content: center; min-height: 54px; }
    .journey { gap: 12px; font-size: 10px; margin-top: 32px; flex-wrap: wrap; }
    .journey-line { display: none; }
    .journey b { margin-right: 3px; width: 22px; height: 22px; }
    .giveaway-workspace { grid-template-columns: 1fr; }
    .has-workspace .url-step h1 { font-size: 30px; }
    .load-step { min-height: auto; }
    .stats { grid-template-columns: 1fr 1fr; }
    .results { padding: 24px; }
    .studio-footer { flex-direction: column; gap: 8px; margin-top: 24px; }
}

/* Shows the retrieved post as a small, animated giveaway card. */
.post-preview {
    margin: 24px 0;
    overflow: hidden;
    border: 1px solid #dfdbff;
    border-radius: 20px;
    background: linear-gradient(145deg, #e1dcff, #fff0f7 65%);
    animation: preview-reveal 650ms ease-out both;
}

.preview-artwork {
    position: relative;
    padding: 28px 0 36px;
    isolation: isolate;
}

.preview-photo {
    position: relative;
    width: 68%;
    max-width: 250px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    overflow: hidden;
    border: 5px solid white;
    border-radius: 18px;
    background: #ded8ff;
    box-shadow: 0 14px 26px #20362d26;
    transform: rotate(-5deg);
    animation: photo-arrive 850ms cubic-bezier(.2, .8, .2, 1) both;
}

.preview-image-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #635bff;
    font-size: 72px;
}

.post-image {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
}

.preview-avatar {
    position: absolute;
    top: 34%;
    left: 6%;
    width: clamp(54px, 16%, 76px);
    aspect-ratio: 1;
    overflow: hidden;
    border: 4px solid white;
    border-radius: 20px;
    background: #635bff;
    box-shadow: 0 6px 14px #20362d26;
    transform: rotate(-9deg);
    animation: badge-arrive 650ms 180ms ease-out both;
}

.preview-avatar > span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: white;
    font-size: 26px;
    font-weight: 700;
}

.preview-avatar img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-count {
    position: absolute;
    right: 4%;
    bottom: 7%;
    max-width: 70%;
    padding: 14px 18px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 6px 14px #20362d26;
    text-align: center;
    transform: rotate(6deg);
    animation: badge-arrive 650ms 280ms ease-out both;
}

.preview-count strong {
    display: block;
    font-size: clamp(24px, 5vw, 32px);
    overflow-wrap: anywhere;
    line-height: 1.1;
}

.preview-count span {
    color: #635bff;
    font-size: 12px;
    font-weight: 600;
}

.preview-details {
    padding: 10px 24px 26px;
    text-align: center;
}

.preview-details .eyebrow {
    margin: 12px 0 6px;
    font-size: 10px;
}

.preview-details h3 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -.6px;
    overflow-wrap: anywhere;
}

.preview-caption {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 12px 0 0;
    color: #677468;
    font-size: 13px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* Draws the camera mark locally without loading an icon library. */
.preview-instagram {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: radial-gradient(circle at 25% 100%, #ffd776, #f55a45 45%, #c42d95 75%, #6c4bc3);
}

.preview-instagram > span {
    position: absolute;
    inset: 5px;
    border: 2px solid white;
    border-radius: 6px;
}

.preview-instagram > span::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 2px solid white;
    border-radius: 50%;
}

.preview-instagram > span::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: white;
}

@keyframes preview-reveal {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes photo-arrive {
    from { opacity: 0; transform: translateY(30px) rotate(-13deg) scale(.92); }
    to { opacity: 1; transform: translateY(0) rotate(-5deg) scale(1); }
}

@keyframes badge-arrive {
    from { opacity: 0; translate: 0 18px; scale: .8; }
    to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes progress-spin {
    to { transform: rotate(360deg); }
}

/* Keeps the same content visible without motion for visitors who request it. */
@media (prefers-reduced-motion: reduce) {
    .post-preview,
    .preview-photo,
    .preview-avatar,
    .preview-count,
    .progress-spinner {
        animation: none;
    }
}


.test-mode-banner {
    max-width: 1136px;
    margin: 20px auto 0;
    padding: 14px 24px;
    border: 1px solid #d7b56d;
    border-radius: 10px;
    background: #fff4d7;
    color: #715317;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}


/* Keeps field feedback close to the value that needs correction. */
.field-validation-valid {
    display: none;
}

.field-error.field-validation-error {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 8px;
    color: #ad352f;
    font-size: 12px;
    line-height: 1.5;
}

.field-error.field-validation-error::before {
    content: "!";
    flex: 0 0 16px;
    height: 16px;
    margin-top: 1px;
    border-radius: 50%;
    background: #fbe7e4;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
}

input.input-validation-error,
textarea.input-validation-error {
    border-color: #c54c43;
    background: #fff9f8;
    box-shadow: 0 0 0 3px #c54c4314;
}

input.input-validation-error:focus,
textarea.input-validation-error:focus {
    outline: 2px solid #c54c4340;
    outline-offset: 1px;
}


/* Keeps the preview and test label aligned with the Tabler workspace. */
.post-preview { margin: 0 0 20px; }
.preview-photo { max-width: 280px; }
.test-mode-banner { max-width: none; margin: 0; padding: 9px 24px; border: 0; border-radius: 0; font-size: 11px; }

@media (prefers-reduced-motion: reduce) {
    .loading-orbit::before, .loading-track span { animation: none; }
}

/* Makes the winner reveal the main event, with the editable draw below it. */
.draw-settings { margin-top: 24px; }
.draw-settings > summary { cursor: pointer; padding: 20px; border: 1px solid #dce4dc; border-radius: 14px; background: white; font-weight: 600; }
.draw-settings[open] > summary { margin-bottom: 24px; }
#winner-stage { position: relative; overflow: hidden; scroll-margin-top: 24px; min-height: 420px; }
.reveal-intro { text-align: center; padding: 65px 12px; }
.reveal-star { font-size: 72px; color: #e9b949; animation: reveal-spin 5s linear infinite; }
.name-reel { font-size: clamp(24px, 5vw, 56px); font-weight: 800; color: #635bff; margin: 24px 0; overflow-wrap: anywhere; }
.reveal-intro p { color: #66756b; }
.winner-content > .eyebrow, .winner-content > h2, .winner-content > p { text-align: center; }
.winner-content > h2 { font-size: clamp(28px, 4vw, 46px); margin: 16px 0; }
.is-revealed .winner-content { animation: winner-arrival .6s ease-out; }
.confetti { pointer-events: none; position: absolute; inset: 0; overflow: hidden; }
.confetti i { position: absolute; left: var(--left); top: -20px; width: 9px; height: 16px; border-radius: 2px; animation: confetti-fall 2.8s var(--delay) ease-in forwards; }
@keyframes reveal-spin { to { transform: rotate(360deg); } }
@keyframes winner-arrival { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes confetti-fall { to { transform: translateY(1100px) rotate(var(--turn)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .reveal-star, .is-revealed .winner-content, .confetti i { animation: none; }
}


/* Bright accents frame Tabler's white cards and recognizable controls. */
.studio-header { background: white; border-top: 4px solid #635bff; }
.brand-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; background: #635bff; color: white; border-radius: 12px; }
.studio-header .badge { background: #eeecff !important; color: #635bff !important; padding: 10px 14px; }
.hero-emblem { display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 24px; border-radius: 24px; font-size: 45px; color: white; background: linear-gradient(135deg, #635bff, #b35aff); box-shadow: 0 12px 36px #635bff30; transform: rotate(-8deg); }
.url-step h1 { color: #182433; }
.is-landing .url-step { width: 100%; max-width: 1100px; }
.is-landing .url-entry { padding: 10px; background: white; border: 1px solid #e1def5; border-radius: 20px; box-shadow: 0 16px 55px #635bff16; }
.is-landing .url-entry .form-control { border-color: transparent; box-shadow: none; }
.url-entry .btn, .workflow-card .btn-primary { background: #635bff; border-color: #635bff; box-shadow: 0 5px 14px #635bff26; color: white; }
.btn-primary:hover { background: #5145db; border-color: #5145db; }
.journey b { color: white; background: #635bff; border: 0; }
.workflow-card { border-color: #e2e5f2; box-shadow: 0 12px 35px #3430640b; }
.workflow-card .card-header { background: #f5f3ff; }
.stats > div { border: 0; border-top: 3px solid #635bff; background: #f0eeff; }
.stats > div:nth-child(2) { border-color: #24a899; background: #e8f8f5; }
.stats > div:nth-child(3) { border-color: #e89a27; background: #fff5e5; }
.stats > div:nth-child(4) { border-color: #dd6090; background: #fff0f5; }
.results article { border-left: 4px solid #635bff; box-shadow: 0 4px 14px #635bff09; }
.results article .badge { background: #eeecff !important; color: #635bff !important; }
#winner-stage { border-top: 5px solid #635bff; background: radial-gradient(ellipse at top, #f0eaff, transparent 65%), white; }
.loading-overlay { background: linear-gradient(135deg, #f1edfffa, #fff2f8fa); }
@media (max-width: 680px) {
    .is-landing .url-entry { padding: 8px; }
    .hero-emblem { width: 60px; height: 60px; font-size: 34px; }
}

/* Gives the three steps a clear, readable place beneath the URL input. */
.journey {
    gap: 28px;
    margin-top: 48px;
    font-size: 18px;
    font-weight: 600;
    color: #34425a;
}

.journey b {
    width: 44px;
    height: 44px;
    margin-right: 12px;
    font-size: 18px;
}

.journey-line {
    width: 56px;
    height: 2px;
}

@media (max-width: 900px) {
    .journey { gap: 16px; font-size: 16px; }
    .journey-line { width: 28px; }
}

@media (max-width: 680px) {
    .journey {
        flex-direction: column;
        align-items: flex-start;
        width: fit-content;
        margin: 32px auto 0;
        gap: 18px;
        font-size: 18px;
        text-align: left;
    }

    .journey b { width: 42px; height: 42px; margin-right: 12px; font-size: 18px; }
    .journey-line { display: none; }
}

/* Keeps supporting copy readable instead of fading it into the background. */
:root {
    --tblr-secondary: #46546b;
    --tblr-secondary-rgb: 70, 84, 107;
}

.text-secondary,
.form-hint,
.hero-description,
.url-help,
.loading-content p,
.results article small,
.studio-footer {
    color: #46546b !important;
}

.load-step > p,
.workflow-card .text-secondary,
.workflow-card .form-hint,
.count-notice,
.saved-pool-note,
.results article small {
    font-size: 16px;
    line-height: 1.65;
}

.workflow-card .card-footer,
.url-help,
.studio-footer,
.loading-reassurance,
.count-notice p {
    font-size: 15px;
    line-height: 1.65;
}

.saved-pool-note {
    color: #49406c;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 1.6px;
    color: #5145cf;
}

.test-mode-banner {
    font-size: 13px;
}

/* Gives selected accounts a recognizable identity, with a permanent initials fallback. */
.winner-identity { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.winner-avatar { position: relative; flex: 0 0 80px; width: 80px; height: 80px; overflow: hidden; border-radius: 50%; background: #eeecff; border: 3px solid white; box-shadow: 0 0 0 2px #dcd6ff; }
.winner-avatar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #635bff; }
.winner-avatar img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.results .winner-identity h3 { margin: 10px 0 0; font-size: 24px; }
@media (max-width: 680px) {
    .winner-identity { gap: 14px; }
    .winner-avatar { flex-basis: 64px; width: 64px; height: 64px; }
    .results .winner-identity h3 { font-size: 20px; }
}


/* Keeps the recorded reveal focused on the selected accounts rather than dashboard cards. */
.draw-totals {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 24px 0 36px;
    color: #46546b;
    font-size: 17px;
}

.draw-totals strong { color: #182433; font-weight: 700; }
.totals-divider { color: #635bff; }
.selection-heading { text-align: center; margin: 32px 0 18px; }
.results .winner-card {
    width: 100%;
    max-width: 640px;
    margin: 18px auto;
    padding: 32px;
    text-align: center;
    border: 1px solid #dfdbff;
    border-top: 4px solid #635bff;
    box-shadow: 0 12px 32px #635bff12;
}

.winner-card .winner-identity { flex-direction: column; gap: 18px; }
.winner-card .winner-avatar { flex: 0 0 96px; width: 96px; height: 96px; }
.results .winner-card .winner-identity h3 { font-size: clamp(22px, 3vw, 30px); }
.winner-card > p { font-size: 18px; line-height: 1.65; }
@media (max-width: 680px) {
    .draw-totals { font-size: 16px; gap: 8px 12px; }
    .results .winner-card { padding: 24px 18px; }
}

/* The reveal focuses this heading for screen readers without framing the title. */
#winner-heading:focus {
    outline: none;
}

/* Matches the centered winner card to the application's violet palette. */
#winner-stage {
    border: 1px solid #000;
    border-top: 5px solid #635bff;
}

.results .winner-card {
    border: 1px solid #000;
    border-top: 4px solid #635bff;
}

.results .winner-card-primary {
    background: #f3f0ff;
    box-shadow: 0 12px 32px #635bff14;
}

.results .winner-card-primary .badge {
    background: #635bff !important;
    color: #fff !important;
}

/* Keeps sharing controls out of the winner identity and comfortable on phones. */
.winner-share-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.winner-share-actions .btn { min-height: 44px; }
.results .story-status { font-size: 15px; color: #46546b; margin: 14px 0 0; }
.story-status:empty { display: none; }

/* Presents unavailable metadata as a friendly, recoverable warning. */
.restriction-notice { padding: 30px; text-align: center; align-items: center; border-color: #ddd5ff; background: linear-gradient(155deg, #fff, #f6f2ff); }
.restriction-notice > img { max-width: 100%; height: auto; margin-bottom: 12px; }
.restriction-notice h2 { margin: 12px 0 18px; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.7px; }
.restriction-notice p { font-size: 16px; color: #46546b; line-height: 1.65; max-width: 420px; }
.unknown-total { display: inline-block; padding: 10px 18px; border-radius: 30px; background: #eae4ff; color: #5145b5; font-size: 16px; margin: 4px 0 20px; }
.restriction-notice .restriction-next { margin-bottom: 0; }

/* Adapts result density to the combined winner and substitute count. */
.selection-grid .selection-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; max-width: 900px; margin: auto; }
.selection-grid .winner-card { margin: 0; padding: 24px 16px; }
.selection-grid .winner-avatar { width: 68px; height: 68px; flex-basis: 68px; }
.selection-grid .winner-card p, .selection-grid .winner-card small { display: none; }
.selection-list .selection-group { max-width: 680px; margin: auto; counter-reset: selection; }
.selection-list .winner-card { display: flex; align-items: center; padding: 12px 18px; margin: 10px auto; border-top-width: 1px; border-radius: 10px; background: white; }
.selection-list .winner-card::before { counter-increment: selection; content: counter(selection); color: #635bff; font-weight: 700; margin-right: 14px; }
.selection-list .winner-identity { flex-direction: row; gap: 14px; margin: 0; text-align: left; min-width: 0; }
.selection-list .winner-avatar { width: 44px; height: 44px; flex-basis: 44px; }
.selection-list .winner-identity .badge, .selection-list .winner-card > p, .selection-list .winner-card > small { display: none; }
.results .selection-list .winner-identity h3 { font-size: 18px; margin: 0; }
.winner-content > .story-status { text-align: center; }
@media (max-width: 500px) {
    .selection-grid .selection-group { gap: 10px; }
    .results .selection-grid .winner-identity h3 { font-size: 17px; }
}

/* Uses stronger selectors so earlier full-card styles cannot override compact result panels. */
.results .winner-content.selection-grid .winner-card {
    max-width: none; padding: 16px 12px; margin: 0; border-top-width: 3px;
}
.results .winner-content.selection-grid .winner-identity { gap: 10px; margin-bottom: 0; }
.results .winner-content.selection-grid .winner-avatar { width: 52px; height: 52px; flex-basis: 52px; }
.results .winner-content.selection-grid .winner-identity h3 { font-size: 18px; margin-top: 6px; }
.results .winner-content.selection-list .winner-card {
    max-width: none; padding: 7px 12px; margin: 6px 0; border-width: 1px; box-shadow: none;
}
.results .winner-content.selection-list .winner-identity { flex-direction: row; gap: 10px; margin: 0; }
.results .winner-content.selection-list .winner-avatar { width: 32px; height: 32px; flex-basis: 32px; border-width: 1px; }
.results .winner-content.selection-list .winner-avatar span { font-size: 16px; }
.results .winner-content.selection-list .winner-identity h3 { font-size: 15px; margin: 0; }
.results .winner-content.selection-list .selection-group { max-width: 520px; }

/* Native disclosure controls reveal comments without adding another share action. */
.selection-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.selection-toggle::-webkit-details-marker { display: none; }
.selection-toggle::marker { content: ''; }
.selection-toggle:focus-visible { outline: 2px solid #635bff; outline-offset: 5px; border-radius: 6px; }
.selection-toggle .winner-identity { flex: 1; }
.selection-chevron { color: #635bff; font-size: 28px; line-height: 1; transition: transform .15s ease; }
.winner-card[open] > .selection-toggle .selection-chevron { transform: rotate(90deg); }
.selection-comment { margin-top: 18px; padding-top: 16px; border-top: 1px solid #dcd6f1; text-align: left; overflow-wrap: anywhere; }
.selection-comment p { font-size: 16px; line-height: 1.6; margin: 0 0 10px; }
.selection-comment small { display: block; }
.results .winner-content.selection-list .winner-card { display: block; }
.selection-list .winner-card::before { content: none; counter-increment: none; }
.selection-list .selection-toggle::before { counter-increment: selection; content: counter(selection); font-size: 13px; color: #635bff; font-weight: 700; }
.selection-list .selection-comment { margin-top: 10px; padding-top: 10px; }
.selection-list .selection-comment p { font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .selection-chevron { transition: none; } }

/* Keeps participation details inside the expandable comment panel. */
.participation-stats { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; color: #46546b; font-size: 15px; }
.participation-stats strong { color: #5145b5; }
.selection-comment .odds-help { margin: 10px 0 0; font-size: 13px; color: #46546b; }

/* Small participation extras sit directly below each selected account name. */
.selection-detail-grid { display: block; }
.winner-mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-width: 420px; margin: 10px auto 0; }
.winner-mini-stat { border: 1px solid #e2ddf5; border-radius: 7px; background: #ffffff80; padding: 7px 6px; text-align: center; }
.winner-mini-stat strong { display: block; font-size: 14px; color: #46546b; line-height: 1.2; overflow-wrap: anywhere; }
.winner-mini-stat span { display: block; margin-top: 3px; font-size: 10px; color: #596579; line-height: 1.3; }
.chance-stat strong { color: #5145b5; }
.selection-list .winner-mini-stats { margin-top: 6px; }
.selection-list .winner-mini-stat { padding: 5px 4px; }
.selection-list .winner-mini-stat strong { font-size: 12px; }
.selection-list .winner-mini-stat span { font-size: 9px; }
@media (max-width: 420px) {
    .winner-mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keeps the single winner's small extras immediately beneath the username. */
.selection-single .winner-name-and-stats { width: 100%; }
.selection-single .winner-mini-stats { width: min(100%, 380px); margin-top: 12px; }
.selection-single .winner-mini-stat { padding: 6px 4px; }
.selection-single .winner-mini-stat strong { font-size: 13px; }
.selection-single .winner-mini-stat span { font-size: 10px; }

/* Gives the chosen rules room to wrap, including long excluded-account lists. */
.no-eligible-rules { padding-left: 20px; margin-bottom: 0; overflow-wrap: anywhere; }
.no-eligible-rules li { margin-top: 10px; }

/* Uses the studio palette for feedback and red only for rules that removed comments. */
#no-eligible-modal .modal-header { background: #ede9ff; color: #4233a7; border-bottom-color: #dcd4ff; }
.no-eligible-rules .rule-filtered { color: #b42318; font-weight: 600; }
.no-eligible-rules small { display: block; font-size: 12px; font-weight: 400; }
.rule-filter-help { font-size: 12px; color: #596579; margin: 18px 0 0; }

/* Colors the header bar without a separate highlight around its title. */
#no-eligible-modal .modal-title,
#no-eligible-modal .modal-title:focus { background: transparent; box-shadow: none; outline: none; }
#no-eligible-modal .modal-title::selection { background: transparent; }
#no-eligible-modal .modal-body,
#no-eligible-modal .modal-footer { background: white; }

/* Confirms retrieval before the visitor explicitly starts a draw. */
.comments-loaded-confirmation { padding: 18px 20px; margin-bottom: 24px; border: 1px solid #b9dfcf; border-radius: 12px; background: #effaf5; color: #205b43; }
.comments-loaded-confirmation strong { font-size: 20px; }
.comments-loaded-confirmation p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
.comments-loaded-confirmation:focus { outline: none; }

/* Keeps switching posts available without repeating the URL entry form. */
.change-post-action { margin: 0 0 20px; }
.change-post-action a { color: #5145b5; font-size: 14px; font-weight: 600; text-decoration: none; }
.change-post-action a:hover { text-decoration: underline; }

/* Floating comments gather around the logo without suggesting artificial progress. */
.loading-scene { position: relative; width: 290px; height: 190px; margin: 0 auto 24px; display: grid; place-items: center; }
.loading-scene .loading-orbit { margin: 0; box-shadow: 0 16px 48px #635bff24; }
.comment-bubble { position: absolute; display: grid; place-items: center; width: 48px; height: 42px; border-radius: 15px 15px 15px 4px; background: white; color: #635bff; box-shadow: 0 8px 24px #635bff20; font-size: 24px; font-weight: 700; animation: comment-float 3s ease-in-out infinite; }
.bubble-one { left: 12px; top: 16px; color: #d8478b; transform: rotate(-12deg); }
.bubble-two { right: 5px; top: 32px; animation-delay: -.8s; }
.bubble-three { left: 22px; bottom: 7px; color: #b77812; animation-delay: -1.6s; }
.bubble-four { right: 18px; bottom: 0; color: #168574; animation-delay: -2.3s; }
#comment-progress-bar { accent-color: #635bff; border-radius: 20px; }
#comment-progress-count { color: #403583; font-size: 18px; font-weight: 600; min-height: 30px; }
@keyframes comment-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (prefers-reduced-motion: reduce) { .comment-bubble { animation: none; } }

/* Purchase decisions use dark, readable text rather than muted helper styles. */
.checkout-shell { max-width: 1060px; margin: 40px auto; padding: 24px; color: #172335; }
.checkout-shell h1 { font-size: clamp(32px, 5vw, 48px); margin: 24px 0; }
.checkout-lead, .purchase-notice p { font-size: 18px; line-height: 1.65; color: #243348; }
.purchase-notice { padding: 24px; margin: 24px 0; background: #f0edff; border-left: 5px solid #635bff; border-radius: 12px; }
.purchase-notice strong { font-size: 20px; color: #172335; }
.purchase-notice p { margin: 12px 0 0; }
.fresh-warning { background: #fff3db; border-color: #b77100; }
.sandbox-notice { padding: 16px; background: #fff0cf; font-size: 17px; font-weight: 700; color: #603c00; border-radius: 12px; }
.pass-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; }
.pass-option { padding: 24px; border: 2px solid #c7c1eb; border-radius: 16px; display: grid; gap: 14px; cursor: pointer; background: white; font-size: 18px; }
.pass-option:has(input:checked) { border-color: #635bff; background: #f1edff; }
.pass-option:has(input:disabled) { opacity: .6; cursor: default; }
.pass-option strong { font-size: 30px; }
.recovery-code { overflow-wrap: anywhere; font-family: monospace; }
@media (max-width: 700px) { .pass-grid { grid-template-columns: 1fr; } }

/* Compact workspace header; keep the initial URL landing page spacious. */
.has-workspace .url-step { padding: 18px 0 8px; }
.has-workspace .url-step .eyebrow { display: none; }
.has-workspace .url-step h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.7px; }
.has-workspace .hero-description { margin: 0; font-size: 17px; color: #243348; }
.change-post-action { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 18px; }
.change-post-action a { font-size: 16px; }
.saved-choice { padding: 28px; margin: 12px 0 28px; background: white; border: 1px solid #d6d0f4; border-radius: 18px; }
.saved-choice h2 { font-size: 26px; color: #172335; }
.saved-choice p { font-size: 18px; line-height: 1.6; color: #243348; }
.saved-choice-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.saved-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Winner reveal: identity and winning comment lead, detailed statistics stay expandable. */
.reveal-trophy { font-size: 48px; margin: 2px 0 12px; filter: drop-shadow(0 5px 12px #e9b94940); }
.results .winner-content.selection-single .reveal-card { max-width: 920px; padding: 0; overflow: hidden; background: white; border: 1px solid #d9d1ff; border-radius: 18px; box-shadow: 0 16px 45px #635bff16; }
.reveal-card-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid #e5dfff; font-size: 16px; font-weight: 600; }
.reveal-card-main { display: grid; grid-template-columns: 1fr 1fr; padding: 32px 24px; gap: 28px; }
.results .reveal-card .winner-identity { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 8px; }
.results .reveal-card .winner-avatar { width: 144px; height: 144px; flex-basis: 144px; box-shadow: 0 0 0 3px #c8baff, 0 10px 28px #635bff24; }
.results .reveal-card .winner-identity h3 { font-size: clamp(26px, 3vw, 36px); margin: 0; overflow-wrap: anywhere; }
.reveal-winner-badge { color: white; background: #635bff; }
.reveal-card .winner-identity a { font-size: 16px; font-weight: 600; color: #5145b5; }
.reveal-context { text-align: left; border-left: 1px solid #e5dfff; padding-left: 28px; min-width: 0; }
.reveal-context h4 { font-size: 17px; margin: 0 0 12px; font-weight: 700; }
.winning-comment { padding: 20px; margin: 0; border: none; background: #f2eeff; border-radius: 12px; color: #172335; font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.winning-mentions { color: #35445d; font-size: 14px; margin: 10px 0 20px; overflow-wrap: anywhere; }
.reveal-context .draw-summary-heading { border-top: 1px solid #e5dfff; padding-top: 18px; }
.reveal-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; font-size: 15px; color: #243348; }
.reveal-summary dt { font-weight: 500; }
.reveal-summary dd { margin: 0; text-align: right; font-weight: 600; }
.entry-details { text-align: left; }
.reveal-entry-details { border-top: 1px solid #e5dfff; padding: 18px 24px; }
.reveal-entry-details > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: #243348; font-size: 17px; font-weight: 600; list-style: none; }
.reveal-entry-details > summary::-webkit-details-marker { display: none; }
.reveal-entry-details small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; }
.reveal-entry-details .winner-mini-stats { width: 100%; max-width: none; margin: 18px 0 10px; }
.reveal-entry-details p { font-size: 14px; color: #35445d; margin: 12px 0 0; }
.new-giveaway-link { display: block; margin: 18px auto 8px; font-size: 16px; font-weight: 600; color: #5145b5; }
@media (max-width: 700px) { .reveal-card-main { grid-template-columns: 1fr; padding: 24px 18px; } .reveal-context { border-left: none; border-top: 1px solid #e5dfff; padding: 24px 0 0; } .results .reveal-card .winner-avatar { width: 124px; height: 124px; flex-basis: 124px; } }

.reveal-entry-details .winner-mini-stat { padding: 12px 8px; }
.reveal-entry-details .winner-mini-stat strong { font-size: 18px; }
.reveal-entry-details .winner-mini-stat span { font-size: 12px; color: #35445d; }

/* Compact reveal matching the expanded-statistics reference. */
.results .winner-content.selection-single .reveal-card { max-width: 840px; border-radius: 12px; margin: 14px auto; }
.reveal-card-header { padding: 14px 20px; font-size: 15px; }
.reveal-platform { display: inline-flex; align-items: center; gap: 9px; }
.reveal-instagram { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: linear-gradient(35deg,#ffbd43,#f02c85,#7545df); color: white; font-size: 26px; line-height: 1; }
.reveal-card-main { padding: 20px; gap: 24px; grid-template-columns: 1.12fr 1fr; }
.reveal-portrait { position: relative; width: 128px; height: 128px; }
.results .reveal-card .winner-avatar { width: 128px; height: 128px; flex-basis: 128px; }
.portrait-trophy { position: absolute; right: -3px; bottom: -1px; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; background: #ffba28; border: 3px solid white; font-size: 22px; }
.results .reveal-card .winner-identity { gap: 9px; padding: 0; }
.results .reveal-card .winner-identity h3 { font-size: clamp(25px, 3vw, 32px); }
.reveal-context { padding-left: 24px; }
.reveal-context h4 { margin-bottom: 9px; font-size: 16px; }
.winning-comment { position: relative; padding: 32px 16px 14px; font-size: 17px; }
.winning-comment::before { content: "“"; position: absolute; top: 0; left: 14px; font: bold 40px Georgia, serif; color: #7959ff; }
.winning-mentions { margin: 8px 0 14px; }
.reveal-context .draw-summary-heading { padding-top: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: #5145b5; }
.reveal-summary { gap: 8px; font-size: 14px; }
.reveal-entry-details { padding: 14px 16px 16px; }
.entry-details-title { display: inline-flex; align-items: center; gap: 12px; }
.entry-details-title svg { color: #7959ff; }
.entry-details-chevron { transition: transform .15s; }
.reveal-entry-details[open] .entry-details-chevron { transform: rotate(180deg); }
.reveal-entry-details .winner-mini-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 12px 0 0; }
.reveal-entry-details .winner-mini-stat { background: #f0ebff; border: 1px solid #e8e0ff; border-radius: 9px; padding: 14px 6px; text-align: center; }
.reveal-entry-details .winner-mini-stat strong { display: block; color: #6944ff; font-size: 26px; font-weight: 750; line-height: 1.2; }
.reveal-entry-details .winner-mini-stat span { display: block; font-size: 12px; line-height: 1.35; margin-top: 5px; color: #35445d; }
.reveal-trophy { position: relative; width: fit-content; margin: 0 auto 10px; }
.reveal-trophy::before, .reveal-trophy::after { position: absolute; top: 10px; font-size: 23px; white-space: nowrap; letter-spacing: 12px; }
.reveal-trophy::before { content: "✦ · ✧"; right: 65px; color: #ab72ff; transform: rotate(-15deg); }
.reveal-trophy::after { content: "✧ · ✦"; left: 65px; color: #f6a454; transform: rotate(15deg); }
@media (max-width: 700px) { .reveal-card-main { grid-template-columns: 1fr; } .reveal-context { padding-left: 0; } }
@media (max-width: 420px) { .reveal-entry-details .winner-mini-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* Giveaway landing page: focused URL entry and one clear first step. */
.is-landing .url-step { max-width: 960px; padding: clamp(44px,8vh,90px) 0 54px; }
.is-landing .url-step h1 { max-width: 660px; margin: 22px auto 16px; font-size: clamp(42px,5vw,68px); line-height: 1.04; letter-spacing: -2.6px; font-weight: 800; }
.is-landing .hero-description { font-size: 20px; color: #35445d; margin: 0 0 32px; }
.is-landing .url-label { font-size: 16px; font-weight: 650; color: #172335; }
.is-landing .url-entry { gap: 10px; padding: 5px; border: 1px solid #dcd6ff; background: white; border-radius: 16px; box-shadow: 0 10px 32px #635bff10; align-items: center; }
.url-link-icon { flex: 0 0 24px; margin-left: 15px; color: #52617a; }
.is-landing .url-entry .form-control { height: 60px; padding: 12px 4px; border: 0; box-shadow: none; background: transparent; font-size: 18px; }
.is-landing .url-entry:focus-within { outline: 3px solid #635bff30; border-color: #635bff; }
.is-landing .url-entry .btn { min-height: 58px; padding: 14px 26px; border-radius: 12px; gap: 20px; }
.is-landing .url-help { color: #35445d !important; font-size: 15px; margin-top: 15px; }
.is-landing .journey { margin-top: 42px; gap: 22px; color: #35445d; font-size: 16px; }
.is-landing .journey b { width: 36px; height: 36px; margin-right: 10px; background: transparent; border: 1px solid #a8acc8; color: #46546b; font-size: 15px; }
.is-landing .journey .journey-active { color: #172335; font-weight: 650; }
.is-landing .journey .journey-active b { border-color: #635bff; background: #635bff; color: white; }
.landing-rules-note { max-width: 700px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid #ded9f7; color: #35445d; font-size: 15px; line-height: 1.6; }
.has-workspace .url-link-icon { display: none; }
@media (max-width: 700px) { .is-landing .journey { gap: 12px; font-size: 14px; } .is-landing .journey-line { width: 20px; } .is-landing .journey b { margin-right: 5px; width: 30px; height: 30px; } }
@media (max-width: 480px) { .is-landing .url-entry { flex-wrap: wrap; } .is-landing .url-entry .form-control { flex: 1 1 calc(100% - 60px); } .is-landing .url-entry .btn { width: 100%; } .is-landing .journey { flex-direction: column; align-items: flex-start; width: fit-content; margin-left: auto; margin-right: auto; } .is-landing .journey-line { display: none; } }

.saved-picker-header { background: #eee9ff; color: #172335; }
.saved-picker-header .modal-title { font-size: 23px; font-weight: 700; }
.saved-picker-list { display: grid; gap: 14px; }
.saved-picker-item { display: grid; gap: 9px; padding: 20px; border: 1px solid #dcd5f7; border-radius: 12px; color: #172335; text-decoration: none; }
.saved-picker-item:hover { background: #f5f2ff; border-color: #635bff; text-decoration: none; }
.saved-picker-title { font-size: 17px; font-weight: 650; overflow-wrap: anywhere; }
.saved-picker-detail, .saved-picker-empty { font-size: 16px; color: #35445d; }
.saved-picker-item .badge { justify-self: start; }
.saved-picker-open { font-size: 16px; font-weight: 650; color: #5145b5; }

/* Saved work leads; access tools remain separate and collapsed until needed. */
.saved-page-heading { margin: 24px 0 32px; }
.saved-page-heading h1 { margin: 0 0 8px; font-size: 36px; font-weight: 750; letter-spacing: -1px; }
.giveaways-intro { color: #35445d; font-size: 17px; margin: 0; line-height: 1.6; }
.giveaways-section h2, .recovery-section h2 { font-size: 21px; color: #172335; font-weight: 700; margin: 0 0 18px; }
.giveaway-count { margin-left: 8px; padding: 3px 9px; border-radius: 12px; background: #eeeaf9; font-size: 14px; }
.giveaway-table { border: 1px solid #ded9ef; border-radius: 14px; background: white; }
.giveaway-table-heading, .giveaway-table-row { display: grid; grid-template-columns: minmax(0,1fr) 140px 225px; align-items: center; gap: 20px; padding: 18px 22px; }
.giveaway-table-heading { border-bottom: 1px solid #e9e4f4; text-transform: uppercase; font-size: 12px; letter-spacing: .6px; color: #46546b; }
.giveaway-table-row + .giveaway-table-row { border-top: 1px solid #e9e4f4; }
.giveaway-post { display: flex; align-items: center; gap: 16px; min-width: 0; }
.giveaway-post-icon, .recovery-option-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; background: #f1eaff; color: #7959ff; font-size: 26px; }
.giveaway-post strong { display: block; color: #172335; font-size: 17px; margin-bottom: 4px; }
.giveaway-post a { font-size: 14px; color: #35445d; overflow-wrap: anywhere; }
.giveaway-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.giveaway-more { position: relative; }
.giveaway-more > summary { width: 36px; height: 36px; border: 1px solid #ded9ef; border-radius: 8px; display: grid; place-items: center; cursor: pointer; font-size: 24px; list-style: none; }
.giveaway-more > summary::-webkit-details-marker { display: none; }
.giveaway-more-menu { position: absolute; right: 0; top: 43px; z-index: 20; width: 390px; max-width: calc(100vw - 32px); padding: 8px; border: 1px solid #ded9ef; border-radius: 10px; background: white; box-shadow: 0 8px 24px #1723351a; }
.giveaway-more-menu a, .giveaway-more-menu button { display: block; width: 100%; text-align: left; padding: 12px; color: #243348; background: none; border: none; font-size: 15px; text-decoration: none; border-radius: 6px; }
.giveaway-more-menu a:hover, .giveaway-more-menu button:hover { background: #f2eeff; }
.recovery-section { margin-top: 44px; }
.recovery-section h2 { margin-bottom: 6px; }
.recovery-options { border: 1px solid #ded9ef; border-radius: 14px; background: white; margin-top: 20px; }
.recovery-option + .recovery-option { border-top: 1px solid #e9e4f4; }
.recovery-option > summary { display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; }
.recovery-option > summary::-webkit-details-marker { display: none; }
.recovery-option strong { display: block; font-size: 17px; color: #172335; }
.recovery-option small { display: block; font-size: 15px; color: #35445d; margin-top: 4px; }
.recovery-chevron { margin-left: auto; color: #5145b5; }
.recovery-option[open] .recovery-chevron { transform: rotate(180deg); }
.recovery-option-body { padding: 0 22px 22px 80px; font-size: 16px; color: #243348; }
.recovery-private-note { margin-top: 14px; font-size: 14px; color: #35445d; }
.giveaways-empty { padding: 24px; font-size: 17px; color: #35445d; }
@media(max-width:760px) { .giveaway-table-heading { display: none; } .giveaway-table-row { grid-template-columns: 1fr; gap: 14px; } .giveaway-row-actions { justify-content: flex-start; } .recovery-option-body { padding-left: 22px; } }

/* Equal options for continuing an existing pool or purchasing a fresh import. */
.continue-choice { max-width: 900px; margin: 36px auto 48px; }
.choice-back { display: inline-block; margin: 0 0 28px 24px; color: #40516a; }
.choice-heading { text-align: center; margin-bottom: 28px; }
.choice-heading h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -1px; color: #142039; margin-bottom: 10px; }
.choice-heading p { font-size: 18px; color: #40516a; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.choice-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e1dcf5; border-radius: 16px; padding: 28px; box-shadow: 0 8px 28px #6554aa06; }
.choice-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 13px; background: #f0ebff; color: #7545ff; font-size: 42px; margin-bottom: 16px; line-height: 1; }
.choice-card h2 { font-size: 23px; color: #142039; margin-bottom: 10px; }
.choice-card > p { color: #40516a; font-size: 17px; line-height: 1.5; margin-bottom: 18px; }
.choice-info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 0 22px; border-top: 1px solid #e8e3f5; color: #40516a; font-size: 15px; line-height: 1.5; }
.choice-info strong { color: #142039; font-size: 17px; }
.choice-free { background: #e0f6e8; color: #13723c; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.choice-button { margin-top: auto; width: 100%; min-height: 48px; gap: 10px; font-size: 16px; }
.choice-note { text-align: center; margin: 28px 0 14px; color: #40516a; }
.choice-other { display: block; margin: 0 auto; padding: 4px; border: 0; background: transparent; color: #40516a; text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } .continue-choice { margin-top: 24px; } .choice-back { margin-left: 0; } .choice-card { padding: 24px; } }

.draw-setup { max-width: 1120px; margin: 24px auto 40px; }
.draw-setup .choice-back { margin: 0 0 12px; }
.draw-setup h1 { color: #142039; font-size: 34px; margin: 0 0 6px; }
.setup-description { color: #40516a; font-size: 17px; margin-bottom: 20px; }
.setup-post-strip { display: flex; align-items: center; gap: 20px; padding: 12px 18px; border: 1px solid #ded5ff; border-radius: 12px; margin-bottom: 18px; background: #f4f0ff80; }
.setup-post-strip img { width: 64px; height: 70px; object-fit: cover; border-radius: 5px; }
.setup-post-strip strong { color: #142039; font-size: 19px; }
.setup-post-strip div span { display: block; color: #40516a; }
.setup-loaded { margin-left: auto; color: #243348; display: flex; align-items: center; gap: 10px; }
.setup-loaded i { width: 10px; height: 10px; border-radius: 50%; background: #2cba55; }
.setup-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(290px, 1fr); gap: 18px; align-items: start; }
.setup-rules, .setup-summary, .setup-access { padding: 24px; border: 1px solid #e1dcf5; border-radius: 12px; background: #fff; }
.draw-setup h2 { color: #142039; font-size: 22px; margin-bottom: 16px; }
.rules-section-heading { padding-top: 22px; border-top: 1px solid #e5dff4; }
.mention-rule { display: grid; grid-template-columns: 1fr 110px; gap: 6px 18px; margin-bottom: 24px; }
.mention-rule label { align-self: center; margin: 0; }
.mention-rule .form-hint { grid-column: 1 / -1; color: #40516a; }
.setup-rules .form-switch { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; padding-left: 0; gap: 18px; }
.setup-rules .form-switch .form-check-input { float: none; margin: 0; flex-shrink: 0; }
.setup-rules .form-switch .form-check-label { margin-right: auto; }
.setup-rules .text-secondary, .setup-rules .form-hint { color: #40516a !important; }
.exclusion-rule { border: 1px solid #e1dcf5; border-radius: 8px; padding: 14px; }
.exclusion-rule summary { cursor: pointer; color: #142039; font-weight: 600; }
.exclusion-rule[open] summary { margin-bottom: 16px; }
.setup-sidebar { display: grid; gap: 16px; }
.setup-summary dl { margin: 0; }
.setup-summary dl div { display: flex; justify-content: space-between; margin-bottom: 12px; color: #243348; }
.setup-summary dt { font-weight: 400; }
.setup-summary dd { margin: 0; font-weight: 600; }
.setup-payment { border-top: 1px solid #e5dff4; padding-top: 16px; margin-top: 6px; }
.setup-payment strong { color: #117c3c; }
.setup-payment p, .setup-button-note { color: #40516a; font-size: 14px; margin: 8px 0 16px; }
.setup-summary .btn { min-height: 44px; gap: 14px; font-size: 17px; }
.setup-button-note { text-align: center; margin: 10px 0 0; }
.setup-access summary { color: #142039; font-weight: 700; cursor: pointer; }
.setup-access p { color: #40516a; font-size: 14px; line-height: 1.6; margin: 14px 0 0; }
.setup-access a { display: block; margin-top: 12px; }
@media (max-width: 760px) { .setup-grid { grid-template-columns: 1fr; } .setup-post-strip { flex-wrap: wrap; } .setup-loaded { margin-left: 0; width: 100%; } .setup-rules, .setup-summary, .setup-access { padding: 20px; } }

/* Keep labels consistent and explanatory copy close to the rule it describes. */
.draw-setup h2 { font-weight: 700; line-height: 1.25; }
.setup-rules .form-label,
.setup-rules .form-check-label { font-size: 16px; font-weight: 500; line-height: 1.4; color: #243348; }
.setup-rules .form-control { font-size: 16px; font-weight: 400; }
.setup-rules .form-hint,
.setup-rules p.small { font-size: 14px; font-weight: 400; line-height: 1.4; }
.mention-rule { row-gap: 4px; margin-bottom: 18px; }
.mention-rule .form-hint { margin-top: 0; }
.mention-rule .field-error:empty { display: none; }
.setup-rules .form-switch { min-height: 28px; margin-bottom: 12px !important; }
.setup-rules .form-switch:has(+ p.small) { margin-bottom: 4px !important; }
.setup-rules p.small { margin-top: 0; margin-bottom: 16px !important; }
.rules-section-heading { padding-top: 18px; margin-bottom: 14px !important; }
.exclusion-rule summary { font-size: 16px; font-weight: 500; }
.setup-summary dt, .setup-summary dd { font-size: 15px; line-height: 1.4; }
.setup-summary dl div { margin-bottom: 8px; }
.setup-payment p { margin: 5px 0 12px; line-height: 1.4; }
.setup-access summary { font-size: 16px; font-weight: 600; }
.setup-access p { margin-top: 10px; line-height: 1.4; }
.setup-access a { margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.4; }

/* Shared result presentation for the reel, winner cards and larger selections. */
#winner-stage.results { border: 0; background: transparent; box-shadow: none; padding: 20px 0; max-width: 1160px; margin-left: auto; margin-right: auto; }
#winner-stage .winner-content > h2, .reveal-intro h2 { color: #0c163a; font-weight: 750; font-size: clamp(30px,4vw,48px); letter-spacing: -1.3px; }
.result-subtitle { color: #40516a; text-align: center; font-size: 18px; margin: 10px 0 28px; }
#winner-stage .reveal-intro { padding: 35px 0 24px; }
.reveal-intro .eyebrow { margin-bottom: 22px; }
.reel-window { max-width: 700px; margin: 28px auto; padding: 14px; background: #ffffffb8; border: 2px solid #cfc1ff; border-radius: 22px; box-shadow: 0 12px 35px #7148ff13; }
.reel-neighbor { color: #b8a7f3; font-size: clamp(20px,3vw,28px); font-weight: 700; padding: 12px; opacity: .65; }
#winner-stage .name-reel { min-height: 0; padding: 12px; margin: 8px 0; background: #eee8ff; border-radius: 15px; font-size: clamp(28px,5vw,48px); line-height: 1.3; overflow-wrap: anywhere; }
.reveal-intro > p { font-size: 17px; color: #40516a; margin: 22px 0; }
.reveal-intro .skip-reveal { font-size: 20px; padding: 14px 30px; border-radius: 12px; }
.reveal-intro .reel-explanation { font-size: 15px; margin-top: 16px; }
#winner-stage .reveal-card { max-width: 940px; background: #fff; border-radius: 16px; border-color: #dbd1ff; }
.reveal-card .reveal-card-header .badge { background: #ddf5d7 !important; color: #176429 !important; }
.reveal-card .winner-identity h3 { font-weight: 750; color: #0c163a; }
.reveal-card .winner-avatar { width: 150px; height: 150px; }
.reveal-entry-details .winner-mini-stat { background: #f1ebff; border: 0; border-radius: 12px; }
.result-groups { max-width: 1100px; margin: 0 auto; }
#winner-stage .selection-heading { text-align: left; color: #0c163a; font-size: 23px; font-weight: 700; margin: 24px 0 16px; }
.selection-heading > span { display: inline-block; padding: 3px 10px; margin-left: 8px; border-radius: 12px; background: #ede7ff; color: #6844ed; font-size: 18px; }
.backup-description { text-align: left; color: #40516a; margin: -8px 0 18px; }
#winner-stage .selection-group { max-width: none; width: 100%; }
#winner-stage .selection-group .winner-card { border: 1px solid #ddd3ff; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px #7648db0a; padding: 0; overflow: hidden; }
#winner-stage .selection-toggle { padding: 24px; }
#winner-stage .selection-toggle .winner-identity { flex-direction: row; text-align: left; justify-content: flex-start; gap: 22px; }
#winner-stage .selection-toggle .winner-name-and-stats { text-align: left; min-width: 0; }
#winner-stage .selection-toggle h3 { color: #0c163a; font-size: 25px; font-weight: 700; overflow-wrap: anywhere; margin: 8px 0 0; }
#winner-stage .selection-toggle .winner-avatar { width: 95px; height: 95px; flex-shrink: 0; }
#winner-stage .selection-toggle .badge { background: #7148ff !important; color: white !important; border-radius: 20px; padding: 5px 12px; }
#winner-stage .substitutes-group .badge { color: #52607a !important; background: #eeedf5 !important; }
#winner-stage .substitutes-group .winner-avatar { width: 62px; height: 62px; }
#winner-stage .substitutes-group .selection-toggle { padding: 18px 24px; }
#winner-stage .substitutes-group h3 { font-size: 21px; }
#winner-stage .selection-chevron { color: #7445ff; display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 28px; }
.person-details-label { font-size: 14px; font-weight: 500; }
#winner-stage .selection-comment { padding: 18px 24px; border-top: 1px solid #e5dfff; text-align: left; }
#winner-stage .selection-list .result-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
#winner-stage .selection-list .result-group { background: #fff; border: 1px solid #d8cbff; border-radius: 16px; padding: 20px; min-width: 0; }
#winner-stage .selection-list .selection-heading { margin-top: 0; }
#winner-stage .selection-list .selection-group { display: flex; flex-direction: column; gap: 0; }
#winner-stage .selection-list .winner-card { border: 0; border-top: 1px solid #e6dfff; border-radius: 0; box-shadow: none; }
#winner-stage .selection-list .selection-toggle { padding: 16px 0; }
#winner-stage .selection-list .selection-toggle::before { font-size: 18px; margin-right: 14px; }
#winner-stage .selection-list .winner-avatar { width: 54px; height: 54px; }
#winner-stage .selection-list .selection-toggle h3 { font-size: 18px; margin: 0; }
#winner-stage .selection-list .selection-toggle .badge { display: none; }
#winner-stage .selection-list .selection-toggle .winner-identity { gap: 14px; }
.result-draw-details { max-width: 1100px; margin: 24px auto 16px; border-top: 1px solid #e1d9f6; padding: 16px 0; text-align: left; color: #34425d; }
.result-draw-details summary { cursor: pointer; font-weight: 600; }
.result-draw-details p { margin: 12px 0 0; }
.review-draw-link { display: block; margin: 16px auto 0; padding: 4px; border: 0; background: transparent; color: #6544db; cursor: pointer; font-size: 16px; }
#winner-stage .new-giveaway-link { text-align: center; font-size: 14px; margin-top: 10px; }
@media(max-width:760px) { #winner-stage .selection-list .result-groups { grid-template-columns: 1fr; } #winner-stage .selection-toggle { padding: 18px; } #winner-stage .selection-toggle h3 { font-size: 20px; } #winner-stage .selection-toggle .winner-avatar { width: 70px; height: 70px; } .person-details-label { display:none; } }

#winner-stage .selection-toggle .winner-avatar { flex-basis: 95px; overflow: visible; }
#winner-stage .selection-toggle .winner-avatar img { border-radius: 50%; }
#winner-stage .selection-grid .winner-card-primary .winner-avatar::after { content: '🏆'; position: absolute; bottom: -4px; left: -4px; display: grid; place-items: center; width: 32px; height: 32px; border: 3px solid #fff; border-radius: 50%; background: #ffdd88; font-size: 18px; }
#winner-stage .substitutes-group .winner-avatar { flex-basis: 62px; }
#winner-stage .selection-list .selection-toggle .winner-avatar { flex-basis: 54px; }
#winner-stage .selection-comment { margin-top: 0; }
@media(max-width:760px) { #winner-stage .selection-toggle .winner-avatar { flex-basis: 70px; } #winner-stage .selection-list .selection-toggle .winner-avatar { flex-basis: 54px; } }

/* The URL entry uses its outer focus border instead of a second input outline. */
.is-landing .url-entry .form-control:focus,
.is-landing .url-entry .form-control:focus-visible {
    outline: none;
    border: 0;
    box-shadow: none;
}

/* A single winner keeps the focal point while backups remain compact below. */
.featured-details-label { display: none; }
#winner-stage .selection-featured .result-groups,
#winner-stage .selection-featured .result-draw-details { max-width: 730px; }
#winner-stage .selection-featured .selection-group { grid-template-columns: 1fr; }
#winner-stage .selection-featured .selection-heading { display: none; }
#winner-stage .selection-featured .result-group .selection-toggle { flex-direction: column; padding: 28px 0 0; gap: 22px; }
#winner-stage .selection-featured .result-group .winner-identity { flex-direction: column; text-align: center; gap: 16px; padding: 0 24px; }
#winner-stage .selection-featured .result-group .winner-name-and-stats { text-align: center; }
#winner-stage .selection-featured .result-group .winner-avatar { width: 140px; height: 140px; flex-basis: 140px; }
#winner-stage .selection-featured .result-group .winner-avatar::after { left: auto; right: -4px; bottom: 0; width: 42px; height: 42px; font-size: 24px; }
#winner-stage .selection-featured .result-group h3 { font-size: 36px; margin: 10px 0 0; }
#winner-stage .selection-featured .result-group .selection-chevron { width: 100%; padding: 18px 24px; margin: 0; border-top: 1px solid #e5dfff; justify-content: space-between; }
#winner-stage .selection-featured .result-group .person-details-label { display: none; }
#winner-stage .selection-featured .featured-details-label { display: inline; color: #40516a; font-size: 16px; }
#winner-stage .selection-featured .winner-card[open] > .selection-toggle .selection-chevron { transform: none; }
#winner-stage .selection-featured .substitutes-group { margin-top: 22px; }
#winner-stage .selection-featured .backup-description { margin: 0 0 10px; font-size: 14px; }
#winner-stage .selection-featured .substitutes-group .winner-avatar { width: 76px; height: 76px; flex-basis: 76px; }
@media(max-width:480px) { #winner-stage .selection-featured .result-group h3 { font-size: 28px; } #winner-stage .selection-featured .substitutes-group .selection-toggle { padding: 16px; } }

/* Statistics are visible without opening the comment disclosure. */
#winner-stage .selection-toggle { flex-wrap: wrap; }
.selection-visible-stats { order: 3; flex: 0 0 100%; width: 100%; }
.selection-visible-stats .winner-mini-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 12px 0 0; width: 100%; }
.selection-visible-stats .winner-mini-stat { background: #f1ebff; border: 0; border-radius: 10px; padding: 12px 6px; text-align: center; min-width: 0; }
.selection-visible-stats .winner-mini-stat strong { font-size: 22px; color: #6944ff; }
.selection-visible-stats .winner-mini-stat span { font-size: 12px; color: #40516a; line-height: 1.3; }
#winner-stage .selection-featured .result-group .selection-visible-stats { order: 0; padding: 0 24px; flex-basis: auto; }
#winner-stage .selection-featured .result-group .selection-chevron { order: 4; }
@media(max-width:480px) { .selection-visible-stats .winner-mini-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* A group without backups fills the results area instead of reserving an empty column. */
#winner-stage .selection-list .result-groups:has(> .result-group:only-child) {
    grid-template-columns: minmax(0, 1fr);
}
#winner-stage .selection-list .selection-visible-stats .winner-mini-stats {
    max-width: none;
    margin-top: 4px;
}
#winner-stage .selection-list .selection-visible-stats .winner-mini-stat {
    padding: 9px 8px;
}
#winner-stage .selection-list .selection-toggle {
    row-gap: 8px;
}

/* Larger draws retain separate person cards with details hidden until requested. */
#winner-stage .selection-many .winner-card:not([open]) .selection-visible-stats {
    display: none;
}
#winner-stage .selection-many .selection-group { gap: 12px; }
#winner-stage .selection-many .selection-toggle { padding: 16px 18px; }
#winner-stage .selection-many .selection-toggle .winner-avatar {
    width: 62px; height: 62px; flex-basis: 62px;
}
#winner-stage .selection-many .selection-toggle h3 { font-size: 21px; }
#winner-stage .selection-many .selection-toggle .winner-identity { gap: 16px; }
#winner-stage .selection-many .selection-heading { margin-top: 20px; }
@media(max-width:640px) { #winner-stage .selection-many .selection-group { grid-template-columns: 1fr; } }

/* One clear selection and one checkout action for each comment import. */
.checkout-shell:has(.comment-checkout) { max-width: 1160px; padding-top: 28px; }
.comment-checkout { margin-top: 24px; }
.checkout-back { color: #40516a; display: inline-block; margin-bottom: 22px; }
.comment-checkout h1 { color: #0c163a; font-weight: 750; font-size: clamp(32px,4vw,48px); letter-spacing: -1px; margin: 0 0 10px; }
.checkout-subtitle { color: #40516a; font-size: 22px; margin-bottom: 28px; }
.checkout-count, .checkout-upgrade { color: #34425d; font-size: 17px; }
.comment-pass-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 24px 0; }
.comment-pass { position: relative; display: flex; flex-direction: column; padding: 42px 28px 28px; border: 2px solid #e1dff0; border-radius: 14px; background: #fff; cursor: pointer; min-width: 0; }
.comment-pass:has(input:checked) { border-color: #7148ff; background: #fcfaff; box-shadow: 0 8px 22px #7148ff0c; }
.comment-pass:has(input:disabled) { opacity: .65; cursor: not-allowed; }
.comment-pass:has(input:focus-visible) { outline: 3px solid #bcaaff; outline-offset: 3px; }
.comment-pass input { position: absolute; top: 18px; right: 18px; width: 24px; height: 24px; accent-color: #7148ff; }
.pass-limit { color: #34425d; font-size: 20px; font-weight: 500; }
.pass-price { color: #0c163a; font-size: 52px; line-height: 1.2; margin: 12px 0 8px; font-weight: 750; }
.pass-currency { color: #40516a; font-size: 17px; }
.pass-unavailable { color: #a32b24; margin-top: 10px; }
.checkout-selection { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 28px; border-radius: 14px; background: #fff; box-shadow: 0 6px 24px #7148ff09; }
.checkout-selection strong { color: #0c163a; font-size: 21px; }
.checkout-selection p { margin: 6px 0 0; color: #40516a; font-size: 17px; }
.checkout-payment-action .btn { min-height: 54px; padding: 14px 32px; font-size: 20px; gap: 16px; width: 100%; border-radius: 12px; }
.checkout-payment-action p { text-align: center; font-size: 13px; margin-top: 8px; }
.checkout-information { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin: 34px 0 28px; }
.checkout-information section + section { border-left: 1px solid #e2dcf6; padding-left: 36px; }
.checkout-information h2 { color: #0c163a; font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.checkout-information p { color: #34425d; font-size: 17px; line-height: 1.5; margin-bottom: 14px; }
.checkout-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; list-style: none; padding: 0; color: #34425d; font-size: 16px; }
.checkout-benefits li { display: flex; align-items: center; gap: 12px; }
.checkout-benefits li::before { content: '✓'; display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: #ece6ff; color: #7148ff; font-size: 23px; font-weight: 700; }
.checkout-recovery { display: flex; gap: 22px; padding: 20px 0; border-top: 1px solid #e2dcf6; color: #40516a; }
.checkout-recovery a { font-size: 17px; font-weight: 600; }
@media(max-width:760px) { .comment-pass-grid { grid-template-columns: 1fr; } .comment-pass { padding: 24px; } .pass-price { font-size: 42px; } .checkout-selection { flex-direction: column; align-items: stretch; } .checkout-information { grid-template-columns: 1fr; gap: 16px; } .checkout-information section + section { padding-left: 0; border-left: 0; } .checkout-recovery { flex-direction: column; gap: 8px; } }

/* Identify the PayPal handoff while retaining the server-created checkout. */
.checkout-payment-action .paypal-checkout-button { background: #ffc439; border: 1px solid #ffc439; color: #003087; box-shadow: none; font-weight: 600; gap: 10px; }
.checkout-payment-action .paypal-checkout-button:hover { background: #f2ba36; border-color: #f2ba36; color: #003087; }
.checkout-payment-action .paypal-checkout-button:focus-visible { outline: 3px solid #0070ba; outline-offset: 3px; }
.paypal-wordmark { font-family: Arial, sans-serif; font-style: italic; font-weight: 800; font-size: 26px; letter-spacing: -1px; white-space: nowrap; }
.paypal-wordmark > span:first-child { color: #003087; }
.paypal-wordmark > span:last-child { color: #0070e0; }

.payment-confirmation { max-width: 700px; margin: 36px auto 24px; padding: 36px; border: 1px solid #e3def5; border-radius: 20px; background: white; box-shadow: 0 16px 45px #7152c70b; text-align: center; }
.payment-test-badge { display: inline-block; color: #8b4700; border: 1px solid #ffac37; background: #fff7e7; border-radius: 10px; padding: 8px 14px; font-weight: 600; }
.payment-wallet { display: grid; place-items: center; width: 76px; height: 76px; margin: 24px auto 18px; border-radius: 18px; background: #eee8ff; color: #7148ff; font-size: 44px; }
.payment-confirmation h1 { color: #0c163a; font-size: clamp(28px,4vw,38px); font-weight: 750; margin-bottom: 14px; }
.payment-introduction { color: #40516a; font-size: 18px; line-height: 1.5; }
.payment-receipt { border: 1px solid #e2dbf5; background: #f8f6fc; padding: 24px 28px; border-radius: 14px; margin: 28px 0 20px; }
.payment-receipt div { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; font-size: 18px; }
.payment-receipt dt { color: #40516a; font-weight: 400; text-align: left; }
.payment-receipt dd { color: #0c163a; font-weight: 600; margin: 0; text-align: right; }
.payment-receipt .payment-total { border-top: 1px solid #e2dbf5; padding-top: 18px; margin: 20px 0 0; align-items: center; }
.payment-total dt { color: #0c163a; font-weight: 700; }
.payment-total dd { font-size: 28px; font-weight: 750; }
.payment-working { display: flex; align-items: center; gap: 12px; text-align: left; color: #614514; font-size: 16px; margin: 18px 0; }
.payment-spinner { width: 22px; height: 22px; flex-shrink: 0; border: 3px solid #e2d8ff; border-top-color: #7148ff; border-radius: 50%; animation: payment-spin 1s linear infinite; }
.payment-spinner[hidden] { display: none; }
@keyframes payment-spin { to { transform: rotate(360deg); } }
#payment-retry { min-height: 56px; font-size: 19px; border-radius: 12px; }
.payment-explanation, .payment-footer { color: #40516a; font-size: 15px; line-height: 1.5; margin: 18px 0 24px; }
.payment-footer { text-align: center; }
@media(max-width:480px) { .payment-confirmation { padding: 24px 18px; } .payment-receipt { padding: 18px; } .payment-total dd { font-size: 23px; } }
@media(prefers-reduced-motion:reduce) { .payment-spinner { animation: none; } }

/* Payment reference styles, kept in the application stylesheet. */
/* Giveaway Studio payment screen. PayPal-style button is visual only. */
.payment-page {
  --ink: #101c40;
  --muted: #596784;
  --purple: #6354ff;
  --line: #e5e3f4;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(ellipse at 8% 28%, #eae5ff 0, transparent 45%),
    radial-gradient(ellipse at 95% 55%, #ffe9f3 0, transparent 40%), #f8faff;
}
.payment-page *, .payment-page *::before, .payment-page *::after { box-sizing: border-box; }
.payment-nav {
  min-height: 74px;
  padding: 16px clamp(20px, 4vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.payment-brand { display: flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 750; }
.payment-logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--purple); color: #fff; font-size: 30px; }
.payment-page a { color: var(--purple); text-underline-offset: 4px; }
.payment-nav a { text-decoration: none; }
.payment-main { width: min(100% - 32px, 700px); margin: 64px auto 32px; }
.payment-card { padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: #ffffffed; box-shadow: 0 12px 40px #30286b08; text-align: center; }
.payment-test { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid #efb454; border-radius: 10px; color: #8a4a05; background: #fff9ed; font-size: 14px; font-weight: 650; }
.payment-icon { width: 76px; height: 76px; display: grid; place-items: center; margin: 26px auto 16px; border-radius: 18px; background: #eeebff; color: var(--purple); }
.payment-icon svg { width: 38px; height: 38px; }
.payment-card h1 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; letter-spacing: -.025em; }
.payment-intro { margin: 0 auto; max-width: 540px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.payment-summary { margin: 30px 0 20px; padding: 24px 30px; border: 1px solid var(--line); border-radius: 14px; background: #f7f7fc; }
.payment-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 7px 0; text-align: left; }
.payment-row dt { color: var(--muted); }
.payment-row dd { margin: 0; text-align: right; font-weight: 650; }
.payment-total { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.payment-total dt { color: var(--ink); font-size: 20px; font-weight: 700; }
.payment-total dd { font-size: clamp(24px, 4vw, 32px); font-weight: 750; }
.payment-status { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: #8a4a05; font-size: 15px; font-weight: 600; text-align: left; }
.payment-status::before { content: ""; flex: 0 0 12px; height: 12px; border-radius: 50%; background: #f59e0b; }
/* Replace this placeholder with the official PayPal button when integrating. */
.paypal-button { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 56px; padding: 12px 24px; border: 0; border-radius: 10px; background: #ffc439; cursor: pointer; transition: background .15s ease; }
.paypal-button:hover { background: #f2ba36; }
.paypal-button:disabled { opacity: .55; cursor: not-allowed; }
.paypal-wordmark { font-family: Arial, sans-serif; font-size: 27px; font-weight: 800; font-style: italic; letter-spacing: -1px; color: #003087; }
.paypal-wordmark span { color: #009cde; }
.payment-page :is(a, button):focus-visible { outline: 3px solid #5142d7; outline-offset: 4px; }
.payment-help { margin: 16px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.payment-back { display: inline-block; font-size: 15px; }
.payment-footer { margin: 28px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 600px) {
  .payment-main { margin-top: 28px; }
  .payment-card { padding: 24px 20px; }
  .payment-summary { padding: 18px; }
  .payment-brand { font-size: 17px; gap: 8px; }
  .payment-logo { width: 34px; height: 34px; font-size: 25px; }
  .payment-nav a { font-size: 13px; }
  .payment-intro { font-size: 16px; }
}

/* Shared typography: one family and explicit weights across the application. */
:root { --studio-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --tblr-font-sans-serif: var(--studio-font); --tblr-body-color: #101c40; }
body, .payment-page { font-family: var(--studio-font); color: #101c40; }
button, input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, .brand { color: #101c40; font-weight: 750; }
.form-label, .form-check-label { font-weight: 500; }
.btn { font-weight: 600; }
.choice-heading h1, .draw-setup h1, .comment-checkout h1,
#winner-stage .winner-content > h2, .reveal-intro h2 { color: #101c40; font-weight: 750; }
.choice-card h2, .draw-setup h2, .checkout-information h2,
.reveal-context h4 { color: #101c40; font-weight: 700; }
.payment-page .comment-checkout { margin-top: 0; }
.payment-card h1 { font-weight: 750; }
.payment-row dt { font-weight: 400; }
.payment-total dt { font-weight: 700; }
.payment-page .paypal-wordmark > span { color: #009cde; }
.payment-page .studio-header { min-height: 74px; background: #fff; }
.payment-page .payment-main { padding: 0; }

/* A verified capture is clearly distinct from pending and failed verification. */
.payment-success { border-color: #9cd9b2; background: linear-gradient(180deg, #effbf3, #fff 48%); }
.payment-success .payment-icon { background: #d9f5e3; color: #168044; font-size: 46px; font-weight: 700; border: 2px solid #a6dfb9; }
.payment-success #payment-heading { color: #146c39; }
.payment-success .payment-working { color: #146c39; padding: 14px; background: #e2f7e9; border-radius: 10px; font-weight: 600; }
.payment-success #payment-retry { background: #178344; border-color: #178344; color: white; }
.payment-success #payment-retry:hover { background: #126c37; border-color: #126c37; }

.payment-status.payment-is-working::before { background: transparent; border: 3px solid #dfd5ff; border-top-color: #7148ff; flex-basis: 20px; height: 20px; animation: payment-spin 1s linear infinite; }
.payment-success .payment-status { color: #146c39; background: #e2f7e9; padding: 14px; border-radius: 10px; }
.payment-success .payment-status::before { background: #168044; }
.payment-success #popup-payment-next { background: #178344; border-color: #178344; }

/* Reserve stable reel dimensions while usernames change during the animation. */
#winner-stage .reel-window { width: 100%; max-width: 900px; box-sizing: border-box; overflow: hidden; }
#winner-stage .name-reel,
#winner-stage .reel-neighbor { width: 100%; white-space: nowrap; overflow: hidden; overflow-wrap: normal; box-sizing: border-box; }
#winner-stage .name-reel { height: 88px; min-height: 88px; line-height: 64px; }
#winner-stage .reel-neighbor { height: 64px; line-height: 40px; }
@media(max-width:480px) { #winner-stage .name-reel { height: 72px; min-height: 72px; line-height: 48px; } #winner-stage .reel-neighbor { height: 54px; line-height: 30px; } }

/* Saved giveaway menu actions share the app's icon and interaction treatment. */
.giveaway-more-menu .giveaway-menu-action { display: flex; align-items: center; gap: 12px; font-weight: 600; line-height: 1.4; padding: 10px; color: #101c40; }
.giveaway-menu-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; background: #eee8ff; color: #6354ff; border-radius: 8px; }
.giveaway-more-menu .giveaway-menu-action:hover { background: #f2eeff; color: #5142d7; }
.giveaway-more-menu .giveaway-menu-action:focus-visible,
.giveaway-more > summary:focus-visible { outline: 2px solid #6354ff; outline-offset: 2px; }
.giveaway-more > summary:hover,
.giveaway-more[open] > summary { background: #f2eeff; border-color: #b5a6f8; color: #6354ff; }

.session-expired-content { border: 1px solid #ded5f7; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 70px #15143126; }
.session-expired-content .modal-header { background: #eee8ff; padding: 22px 24px; gap: 14px; }
.session-expired-content .modal-title { color: #101c40; font-size: 22px; font-weight: 700; }
.session-expired-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: #6354ff; flex-shrink: 0; }
.session-expired-content .modal-body { padding: 24px; color: #34425d; font-size: 16px; line-height: 1.55; }
.session-expired-content .modal-body p:last-child { margin-bottom: 0; }
.session-expired-content .modal-footer { padding: 16px 24px; background: #fff; }

.payment-cancelled { border-color: #efc77b; }
.payment-cancelled .payment-icon { background: #fff1d7; color: #955600; }
.payment-cancelled .payment-status, .checkout-cancelled-notice { background: #fff6e5; border: 1px solid #f1d49e; color: #7b4705; border-radius: 10px; padding: 16px; line-height: 1.5; }
.checkout-cancelled-notice { margin: 18px 0; text-align: left; }
.checkout-cancelled-notice p { margin: 6px 0 0; }

/* Compact payment screens retain readable copy without oversized vertical gaps. */
.payment-page .payment-main { margin-top: 24px; margin-bottom: 20px; }
.payment-page .payment-card { padding: 24px 30px; }
.payment-page .payment-icon { width: 56px; height: 56px; margin: 16px auto 12px; border-radius: 14px; }
.payment-page .payment-icon svg { width: 30px; height: 30px; }
.payment-page .payment-card h1 { font-size: clamp(26px,3vw,34px); margin-bottom: 10px; }
.payment-page .payment-intro { font-size: 16px; line-height: 1.4; }
.payment-page .payment-summary { margin: 20px 0 16px; padding: 16px 22px; }
.payment-page .payment-row { padding: 5px 0; }
.payment-page .payment-total { margin-top: 10px; padding-top: 12px; }
.payment-page .payment-status { margin-bottom: 16px; }
.payment-page .payment-help { margin: 12px 0 16px; line-height: 1.4; }
.payment-page .payment-footer { margin-top: 18px; }
@media(max-width:600px) { .payment-page .payment-card { padding: 22px 18px; } }

.giveaway-created { display: block; margin-top: 5px; color: #40516a; font-size: 13px; font-weight: 400; line-height: 1.4; }

/* Compact import introduction: step and label share a row rather than stacking. */
.workflow-card .load-step { min-height: 0; justify-content: flex-start; padding: 24px; }
.load-step-label { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.load-step-label .step-mark { width: 36px; height: 36px; border-radius: 10px; margin: 0; font-size: 13px; flex-shrink: 0; }
.load-step-label .eyebrow { margin: 0; }
.workflow-card .load-step h2 { margin: 0 0 12px; font-size: 28px; }
.workflow-card .load-step > p { max-width: none; margin-bottom: 16px; line-height: 1.45; }
.workflow-card .load-step .purchase-notice { padding: 18px 20px; margin: 4px 0 18px; }
.workflow-card .load-step .purchase-notice p { margin: 8px 0 0; line-height: 1.45; }
.workflow-card .load-step > p:last-child { margin-bottom: 0; font-size: 14px; }
.workflow-card .card-footer { padding: 14px 24px; line-height: 1.45; }
.restriction-notice { padding: 24px; }
.restriction-notice > img { width: 180px; height: 120px; object-fit: contain; margin-bottom: 8px; }
.restriction-notice h2 { margin: 10px 0 12px; font-size: 26px; }
.restriction-notice p { line-height: 1.45; margin-bottom: 14px; }
@media(max-width:480px) { .workflow-card .load-step { padding: 20px; } .workflow-card .load-step h2 { font-size: 25px; } }

.workflow-card .load-step-label { align-items: center; gap: 16px; margin-bottom: 16px; }
.workflow-card .load-step-label .step-mark { width: 48px; height: 48px; border-radius: 12px; }
.workflow-card .load-step-title { min-width: 0; }
.workflow-card .load-step-title .eyebrow { margin-bottom: 6px; }
.workflow-card .load-step-title h2 { margin: 0; }

.lookup-unavailable { padding: 20px; border: 1px solid #dcd4f2; border-radius: 12px; background: #f7f4ff; color: #34425d; margin: 16px 0; line-height: 1.5; }
.lookup-unavailable strong { color: #101c40; font-size: 19px; }
.lookup-unavailable p { margin: 8px 0 14px; }
.verified-post-strip { display: flex; align-items: center; gap: 18px; padding: 16px 20px; background: #fff; border: 1px solid #e1dcf5; border-radius: 12px; margin: 20px 0; color: #34425d; }
.verified-post-strip img { width: 64px; height: 72px; object-fit: cover; border-radius: 6px; }
.verified-post-strip strong { color: #101c40; font-size: 18px; }
.verified-post-strip p { margin: 4px 0; }
.verified-post-strip span { color: #146c39; font-size: 14px; }

.refund-notice, .refund-admin-card { background: #fff; border: 1px solid #ded5f7; border-radius: 14px; padding: 22px; margin: 18px 0; color: #34425d; line-height: 1.5; }
.refund-notice strong, .refund-admin-card h2 { color: #101c40; font-weight: 700; font-size: 20px; }
.refund-notice p { margin: 8px 0; overflow-wrap: anywhere; }
.refund-admin-card p { overflow-wrap: anywhere; }
.refund-request-form { padding: 8px; }
.refund-request-button { border: 1px solid #d9cefa; background: #f5f1ff; color: #5142d7; border-radius: 8px; padding: 10px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.refund-request-button:hover { background: #eae2ff; }
.refund-request-button:focus-visible { outline: 2px solid #6354ff; outline-offset: 3px; }

.giveaway-table-heading, .giveaway-table-row { grid-template-columns: minmax(0,1fr) 180px 120px 225px; gap: 16px; }
.giveaway-table-row .giveaway-created { margin: 0; font-size: 14px; color: #34425d; }
.giveaway-date-label { display: none; }
@media(max-width:900px) { .giveaway-table-heading { display: none; } .giveaway-table-row { grid-template-columns: 1fr; gap: 12px; } .giveaway-date-label { display: inline; } }

/* Reserve a dedicated menu column so every primary action has the same alignment. */
.giveaway-table-heading, .giveaway-table-row { grid-template-columns: minmax(0,1fr) 180px 120px 160px 36px; gap: 14px; }
.giveaway-row-actions { justify-content: stretch; min-width: 0; }
.giveaway-row-actions > .btn { width: 100%; white-space: nowrap; }
.giveaway-menu-cell { width: 36px; justify-self: end; }
@media(max-width:900px) {
    .giveaway-table-row { grid-template-columns: minmax(0,1fr) 36px; }
    .giveaway-table-row > .giveaway-post, .giveaway-table-row > .giveaway-created,
    .giveaway-table-row > div:not(.giveaway-menu-cell) { grid-column: 1; }
    .giveaway-menu-cell { grid-column: 2; grid-row: 1; }
    .giveaway-row-actions { justify-content: flex-start; }
    .giveaway-row-actions > .btn { width: auto; }
}

/* Fixed action dimensions remain identical for every giveaway status. */
.giveaway-table-row .giveaway-row-actions {
    width: 160px;
    min-width: 160px;
    display: flex;
    justify-content: flex-start;
}
.giveaway-table-row .giveaway-row-actions > .btn {
    box-sizing: border-box;
    flex: 0 0 160px;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    height: 40px;
    min-height: 40px;
    padding: 8px 12px;
    justify-content: center;
    white-space: nowrap;
}

.payment-failure .payment-icon { background: #fff1d7; color: #995500; }
.payment-failure .payment-working { background: #fff6e5; padding: 14px; border-radius: 10px; color: #794700; }

.recovery-code-trigger { border: 0; background: transparent; color: #6354ff; font: inherit; font-weight: 600; padding: 0; cursor: pointer; text-align: left; }
.recovery-code-trigger:hover { text-decoration: underline; }
.recovery-code-trigger:focus-visible { outline: 2px solid #6354ff; outline-offset: 4px; }
.recovery-code-modal { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #ded5f7; border-radius: 18px; background: #fff; color: #34425d; box-shadow: 0 24px 80px #15143133; font-family: var(--studio-font); }
.recovery-code-modal::backdrop { background: #16132f66; }
.recovery-modal-header { display: flex; align-items: center; gap: 12px; padding: 20px 24px; background: #eee8ff; }
.recovery-modal-header h2 { font-size: 22px; font-weight: 700; margin: 0; }
.recovery-modal-close { cursor: pointer; }
.recovery-modal-header .recovery-modal-close { border: 0; background: transparent; margin-left: auto; color: #5142d7; font-size: 28px; padding: 4px; }
.recovery-modal-body { padding: 24px; font-size: 16px; line-height: 1.5; }
.recovery-code-output { display: grid; gap: 12px; margin: 18px 0; padding: 18px; border: 1px solid #e0d7fa; border-radius: 12px; background: #f8f5ff; }
#recovery-code-value { font-family: ui-monospace, monospace; color: #101c40; font-size: 15px; }
.recovery-modal-body ol { padding-left: 22px; margin-top: 20px; }
.recovery-modal-body li + li { margin-top: 10px; }
.recovery-security-note { color: #34425d; font-size: 14px; padding-top: 12px; border-top: 1px solid #e6dff5; }
.recovery-modal-footer { display: flex; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid #e6dff5; }
@media(max-width:480px) { .recovery-modal-header, .recovery-modal-body { padding: 20px; } .recovery-modal-header h2 { font-size: 20px; } }

.giveaway-top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.giveaway-top-actions .btn { min-height: 40px; gap: 8px; }
.saved-page-heading { gap: 20px; flex-wrap: wrap; }
@media(max-width:760px) { .giveaway-top-actions { justify-content: flex-start; width: 100%; } }

/* Consistent vector success mark, independent of text glyph metrics. */
.payment-page .payment-success .payment-icon { width: 56px; height: 56px; border-radius: 50%; border: 1px solid #a6dfb9; display: grid; place-items: center; padding: 0; background: #e0f6e8; color: #178344; }
.payment-page .payment-success .payment-icon svg { display: block; width: 30px; height: 30px; }

.import-workflow-column { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.import-count-summary { padding: 20px 24px; border: 1px solid #e1dcf5; border-radius: 14px; color: #34425d; }
.import-count-summary > strong { font-size: 18px; font-weight: 700; color: #101c40; }
.import-count-summary p { margin: 10px 0 12px; font-size: 15px; line-height: 1.5; }
.import-count-summary > span { font-size: 13px; color: #40516a; }

.workspace-nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.workspace-nav-actions .btn { min-height: 40px; font-size: 14px; font-weight: 600; }
@media(max-width:640px) { .studio-header .studio-container:has(.workspace-nav-actions) { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; } .workspace-nav-actions { width: 100%; justify-content: flex-start; } }

.giveaway-workspace.workspace-without-preview { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; }
.workspace-without-preview > .post-column:empty { display: none; }

/* Shared page typography and compact checkout spacing. */
:root { --studio-page-heading-size: clamp(28px, 3vw, 34px); --studio-section-heading-size: 24px; }
.has-workspace .url-step h1, .comment-checkout > h1, .saved-page-heading h1, .draw-setup h1 { font-size: var(--studio-page-heading-size); line-height: 1.2; font-weight: 750; letter-spacing: -.7px; color: #101c40; }
.workflow-card .load-step-title h2, .draw-setup h2, .checkout-information h2 { font-size: var(--studio-section-heading-size); line-height: 1.25; font-weight: 700; color: #101c40; }
.checkout-shell:has(.comment-checkout) { padding-top: 24px; }
.comment-checkout { margin-top: 20px; }
.checkout-subtitle { font-size: 18px; line-height: 1.45; margin-bottom: 20px; }
.checkout-back { margin-bottom: 14px; }
.plan-recommendation { color: #34425d; font-size: 15px; line-height: 1.5; margin: 16px 0; }
.comment-pass { padding: 46px 24px 24px; }
.plan-recommended-badge { position: absolute; left: 24px; top: 14px; border-radius: 6px; background: #eee8ff; color: #5142d7; padding: 4px 8px; font-size: 12px; font-weight: 600; }
.pass-limit { font-size: 18px; font-weight: 600; }
.pass-price { font-size: 44px; font-weight: 750; }
.pass-currency { font-size: 15px; }

.winner-video-preview { display: block; width: min(100%, 320px); max-height: 65vh; margin: 24px auto 0; border-radius: 16px; background: #101c40; }
.winner-video-preview[hidden], .winner-share-actions [hidden] { display: none; }

.giveaway-more-menu a, .giveaway-more-menu button { white-space: nowrap; font-family: inherit; }
.giveaway-more-menu .refund-request-form { padding: 0; margin-top: 4px; border-top: 1px solid #e9e4f4; }
.giveaway-more-menu .refund-request-button { color: #5142d7; font-weight: 600; }

.import-failed-actions { gap: 12px; }
.import-failed-actions form { margin: 0; }
@media (max-width: 575px) { .import-failed-actions > *, .import-failed-actions .btn { width: 100%; } }

/* Recognizable post artwork alongside the saved/new choice, only when an image exists. */
.continue-choice-with-preview { max-width: 1380px; }
.continue-choice-with-preview .continue-choice-layout { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.continue-choice-preview .post-preview { margin: 0; }
.continue-choice-preview .preview-photo { max-width: 210px; }
.continue-choice-preview .preview-avatar { width: 54px; height: 54px; }
.continue-choice-preview .preview-count { padding: 10px 12px; }
.continue-choice-preview .preview-count strong { font-size: 28px; }
.continue-choice-preview .preview-details { padding: 12px 16px 24px; }
.continue-choice-preview .preview-details h3 { font-size: 22px; overflow-wrap: anywhere; }
.continue-choice-preview .preview-caption { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1050px) {
    .continue-choice-with-preview .continue-choice-layout { grid-template-columns: 1fr; }
    .continue-choice-preview { width: min(100%, 340px); justify-self: center; }
}

/* The post and its continuation options form one shared panel. */
.continue-choice-with-preview .continue-choice-layout {
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1dcf5;
    border-radius: 20px;
    box-shadow: 0 8px 28px #6554aa06;
}
.continue-choice-with-preview .continue-choice-preview {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #e1dcff, #fff0f7 65%);
    border-right: 1px solid #e8e3f5;
    padding: 20px 0;
}
.continue-choice-with-preview .continue-choice-preview .post-preview {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.continue-choice-with-preview .choice-grid { gap: 0; }
.continue-choice-with-preview .choice-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.continue-choice-with-preview .choice-card + .choice-card { border-left: 1px solid #e8e3f5; }
@media (max-width: 1050px) {
    .continue-choice-with-preview .continue-choice-preview {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #e8e3f5;
        justify-content: center;
        padding: 8px 0;
    }
    .continue-choice-with-preview .continue-choice-preview .post-preview { max-width: 300px; }
}
@media (max-width: 640px) {
    .continue-choice-with-preview .choice-card + .choice-card { border-left: 0; border-top: 1px solid #e8e3f5; }
}

/* Keep the saved post and resume action together; separate the new purchase choice. */
.continue-choice-with-preview { max-width: 1180px; }
.continue-choice-with-preview .continue-choice-layout {
    grid-template-columns: minmax(230px, .7fr) minmax(0, 2fr);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.continue-choice-with-preview .continue-choice-preview {
    border: 1px solid #e1dcf5;
    border-right: 0;
    border-radius: 16px 0 0 16px;
    padding: 8px 0;
}
.continue-choice-with-preview .choice-grid { gap: 20px; }
.continue-choice-with-preview .choice-card {
    padding: 22px;
    background: #fff;
    border: 1px solid #e1dcf5;
    border-radius: 0 16px 16px 0;
}
.continue-choice-with-preview .choice-card + .choice-card { border: 1px solid #e1dcf5; border-radius: 16px; }
.continue-choice-with-preview .choice-icon { width: 44px; height: 44px; font-size: 32px; margin-bottom: 12px; }
.continue-choice-with-preview .choice-card h2 { font-size: 21px; }
.continue-choice-with-preview .choice-card > p { font-size: 15px; margin-bottom: 14px; }
.continue-choice-with-preview .choice-info { gap: 8px; padding: 14px 0 18px; font-size: 14px; }
.continue-choice-with-preview .choice-info strong { font-size: 15px; }
.continue-choice-with-preview .choice-button { width: auto; align-self: flex-start; min-height: 40px; padding: 9px 20px; font-size: 14px; }
.continue-choice-with-preview .choice-other { margin: 8px 0 0; padding: 0; text-align: left; font-size: 13px; }
.continue-choice-preview .preview-photo { max-width: 175px; }
.continue-choice-preview .preview-artwork { padding: 24px 0 28px; }
.continue-choice-preview .preview-details { padding-bottom: 18px; }
.continue-choice-preview .preview-details h3 { font-size: 20px; }
@media (max-width: 1050px) {
    .continue-choice-with-preview .continue-choice-layout { grid-template-columns: 1fr; gap: 18px; }
    .continue-choice-with-preview .continue-choice-preview { border: 1px solid #e1dcf5; border-radius: 16px; }
    .continue-choice-with-preview .choice-card { border-radius: 16px; }
}

/* Compact recognizable post reference inside the continue card on every screen size. */
.continue-choice-with-preview { max-width: 900px; }
.continue-choice-with-preview .continue-choice-layout { display: block; }
.continue-choice-with-preview .choice-card { border: 1px solid #e1dcf5; border-radius: 16px; }
.choice-post-miniature { display: flex; align-items: center; gap: 16px; padding: 12px; margin-bottom: 18px; border-radius: 12px; background: linear-gradient(135deg, #eee8ff, #fff0f7); }
.choice-post-miniature img { display: block; width: 84px; height: 100px; flex: 0 0 84px; object-fit: contain; background: #fff; border-radius: 8px; box-shadow: 0 3px 10px #17233514; }
.choice-post-miniature strong { display: block; color: #142039; font-size: 28px; line-height: 1.2; }
.choice-post-miniature span { display: block; color: #5142d7; font-size: 13px; margin-top: 4px; }
@media (max-width: 640px) {
    .continue-choice-with-preview .choice-grid { grid-template-columns: 1fr; gap: 16px; }
    .choice-post-miniature img { width: 72px; height: 88px; flex-basis: 72px; }
}

.choice-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.choice-card-heading .choice-icon { flex: 0 0 44px; width: 44px; height: 44px; margin-bottom: 0; }
.choice-card-heading h2 { margin: 0; }
.continue-choice-with-preview .choice-card-heading .choice-icon { margin-bottom: 0; }

.choice-resume-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.choice-resume-actions .choice-button { margin-top: 0; }
.choice-resume-actions .choice-alternative { min-height: 40px; padding: 9px 16px; font-size: 14px; white-space: nowrap; }

.refund-reference-label { display: block; margin-top: 6px; font-size: 11px; color: #46546b; overflow-wrap: anywhere; }

.refunds-table .giveaway-table-heading, .refunds-table .giveaway-table-row { grid-template-columns: minmax(0, 1fr) 155px 95px 125px 160px; }
.refunds-table .giveaway-post > div { min-width: 0; }
.refund-row-amount { font-size: 14px; color: #34425d; white-space: nowrap; }
.refund-list-empty { padding: 24px; margin: 0; color: #46546b; }
.refund-review-reference { overflow-wrap: anywhere; font-weight: 600; }
@media (max-width: 900px) {
    .refunds-table .giveaway-table-row { grid-template-columns: 1fr; gap: 12px; }
    .refunds-table .giveaway-table-row > div { grid-column: 1; grid-row: auto; }
    .refunds-table .giveaway-row-actions { justify-content: flex-start; }
}

.refund-sign-in { max-width: 460px; margin: 32px auto; padding: 28px; }
.refund-sign-in-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.refund-sign-in-heading h2 { margin: 0; }
.refund-sign-in > p { font-size: 15px; margin-bottom: 24px; }
.refund-sign-in .form-control { min-height: 44px; }
.refund-sign-in-submit { width: 100%; min-height: 44px; margin-top: 20px; }
.refund-review-modal .recovery-modal-footer { gap: 12px; align-items: center; flex-wrap: wrap; }
.refund-review-modal .recovery-modal-footer form { margin: 0; }
.refund-review-modal .recovery-modal-footer .btn { min-height: 42px; padding: 10px 18px; }
.refund-review-summary { background: #f7f5fc; border: 1px solid #e6dff5; border-radius: 12px; padding: 18px; margin: 0 0 22px; }
.refund-review-summary > div { display: flex; flex-direction: column; gap: 6px; }
.refund-review-summary dt { font-size: 13px; color: #46546b; font-weight: 500; }
.refund-review-summary dd { margin: 0; color: #101c40; font-size: 14px; }
.refund-review-summary .refund-review-total { flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #e6dff5; margin-top: 16px; padding-top: 16px; }
.refund-review-total dt { font-size: 16px; font-weight: 600; color: #101c40; }
.refund-review-total dd { font-size: 24px; font-weight: 750; }
@media (max-width: 480px) {
    .refund-sign-in { padding: 22px; margin: 24px auto; }
    .refund-review-modal .recovery-modal-footer > *, .refund-review-modal .recovery-modal-footer .btn { width: 100%; }
    .refund-review-total dd { font-size: 21px; }
}

.giveaway-post > div { min-width: 0; }
.giveaway-post .refund-reference-label { font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }

.refund-information-summary { margin: 20px 0; }
.refund-information-summary > div { padding: 12px 0; border-bottom: 1px solid #e6dff5; }
.refund-information-summary dt { font-size: 13px; font-weight: 500; color: #46546b; margin-bottom: 5px; }
.refund-information-summary dd { margin: 0; color: #101c40; overflow-wrap: anywhere; font-size: 15px; }
.refund-info-copy-status:empty { display: none; }

/* Shared dialog actions keep consistent spacing, including refund receipts. */
.recovery-modal-footer { gap: 12px; align-items: center; flex-wrap: wrap; }
.recovery-modal-footer > form { margin: 0; }
.recovery-modal-footer .btn { min-height: 42px; padding: 10px 18px; }
#refund-receipt-modal .recovery-modal-footer .btn { min-width: 108px; }
@media (max-width: 480px) {
    #refund-receipt-modal .recovery-modal-footer { display: grid; grid-template-columns: 1fr 1fr; }
    #refund-receipt-modal .recovery-modal-footer .btn { width: 100%; min-width: 0; }
    #refund-receipt-modal #close-refund-receipt { grid-column: 1 / -1; }
}

#recovery-code-modal .recovery-modal-footer .btn { min-width: 108px; }
@media (max-width: 480px) {
    #recovery-code-modal .recovery-modal-footer { display: grid; grid-template-columns: 1fr 1fr; }
    #recovery-code-modal .recovery-modal-footer .btn { width: 100%; min-width: 0; }
    #recovery-code-modal .recovery-modal-footer .recovery-modal-close { grid-column: 1 / -1; }
}

/* Winner and substitute cards use the same centered presentation. */
#winner-stage .selection-featured .result-group .selection-toggle { align-items: center; gap: 18px; padding-top: 24px; }
#winner-stage .selection-featured .result-group .winner-avatar { width: 96px; height: 96px; flex-basis: 96px; }
#winner-stage .selection-featured .result-group .winner-avatar::after { width: 32px; height: 32px; font-size: 18px; }
#winner-stage .selection-featured .result-group h3 { font-size: 28px; margin-top: 8px; overflow-wrap: anywhere; }
#winner-stage .selection-featured .result-group .selection-visible-stats { width: 100%; max-width: 608px; box-sizing: border-box; padding: 0 24px; }
#winner-stage .selection-featured .result-group .winner-mini-stats { max-width: none; margin: 0 auto; }
#winner-stage .selection-featured .result-group .selection-chevron { width: 100%; box-sizing: border-box; }
#winner-stage .selection-featured .backup-description { text-align: center; }
@media(max-width:480px) {
    #winner-stage .selection-featured .result-group .selection-toggle { padding: 20px 0 0; }
    #winner-stage .selection-featured .result-group .selection-visible-stats { padding: 0 16px; }
    #winner-stage .selection-featured .result-group h3 { font-size: 26px; }
}

.recovery-code-field { position: relative; }
.recovery-code-field .form-control { padding-right: 48px; }
.recovery-copy-icon { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 34px; border: 0; border-radius: 6px; background: transparent; color: #6354ff; cursor: pointer; }
.recovery-copy-icon:hover { background: #eee8ff; }
.recovery-copy-icon:focus-visible { outline: 2px solid #6354ff; outline-offset: 1px; }
.recovery-copy-icon:disabled { opacity: .45; cursor: default; }
@media(max-width:480px) { #recovery-code-modal .recovery-modal-footer .recovery-modal-close { grid-column: auto; } }

/* Explicit language choice stays compact and wraps with the header on small screens. */
.language-selector { display:flex; align-items:center; gap:8px; margin:0; }
.language-selector .form-select { width:auto; min-width:108px; min-height:40px; }
.js-enabled .language-selector button { display:none; }
.workspace-nav-actions { flex-wrap:wrap; }
@media (max-width:600px) { .language-selector .form-select { min-width:100px; font-size:13px; } }

/* Custom giveaway labels stay within their column on mobile and desktop. */
.giveaway-post > div { min-width: 0; }
.giveaway-post [data-giveaway-name] { overflow-wrap: anywhere; }
#rename-giveaway-modal .input-group-text { color: #6751a0; background: #f5f0fd; }

.giveaway-post-thumbnail { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; overflow: hidden; border: 1px solid #e9e2f4; border-radius: 11px; background: #f5f0fd; }
.giveaway-post-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.giveaway-post-thumbnail img.giveaway-thumbnail-fallback { object-fit: contain; padding: 6px; }

/* Refund receipt: separate support reference from private access credentials. */
#refund-receipt-modal { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
#refund-receipt-modal .refund-receipt-body { padding: 24px; display: grid; gap: 20px; color: #24324b; }
#refund-receipt-modal .refund-receipt-body p { margin: 0; }
.refund-receipt-intro { font-size: 16px; line-height: 1.6; }
.refund-code-section { padding: 20px; border: 1px solid #ddd2ed; border-radius: 14px; background: #faf8fd; }
.refund-code-private { background: #f3edfc; border-color: #d1bce9; }
.refund-code-section .form-label { display: block; margin-bottom: 12px; font-weight: 700; color: #19243c; }
.refund-code-control { display: flex; align-items: stretch; gap: 8px; }
.refund-code-control .form-control { min-width: 0; flex: 1; font-family: ui-monospace, monospace; font-size: 13px; color: #24324b; }
.refund-code-control .btn { flex-shrink: 0; white-space: nowrap; }
.refund-support-link { display: inline-block; margin-top: 12px; font-size: 14px; }
#refund-receipt-modal .refund-code-help { margin-top: 12px; font-size: 14px; line-height: 1.5; }
.refund-review-note { font-size: 14px; line-height: 1.6; color: #46516a; }
.refund-email-note { border-left: 3px solid #7540ce; padding: 10px 14px; font-size: 14px; line-height: 1.5; }
#refund-copy-status:empty { display: none; }
@media(max-width:480px) { #refund-receipt-modal .refund-receipt-body { padding: 18px; gap: 16px; } .refund-code-section { padding: 14px; } .refund-code-control { flex-wrap: wrap; } .refund-code-control .form-control { flex-basis: 100%; } }

#refund-receipt-modal .refund-code-control { position: relative; display: block; }
#refund-receipt-modal .refund-code-control .form-control { width: 100%; padding-right: 48px; }
#refund-receipt-modal .refund-code-control .btn { position: absolute; right: 3px; top: 3px; bottom: 3px; width: 42px; min-height: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 7px; background: transparent; color: #6530c5; box-shadow: none; }
#refund-receipt-modal .refund-code-control .btn:hover { background: #eee6fb; color: #452087; }
#refund-receipt-modal .refund-code-control .btn:focus-visible { outline: 2px solid #6530c5; outline-offset: -2px; }
