.lapo-postcards {
    --pc-ink: #2d1644;
    --pc-muted: #645574;
    --pc-purple: #6939be;
    --pc-pale: #f1e7fb;
    --pc-mosaic: conic-gradient(from 45deg, #ffffff09 0 25%, #ffffff02 0 50%, #ffffff0d 0 75%, transparent 0);
    color: var(--pc-ink);
    padding-bottom: clamp(64px, 8vw, 110px);
}

.lapo-postcards [hidden] { display: none !important; }
.lapo-postcards h1,
.lapo-postcards h2,
.lapo-postcards h3,
.lapo-postcards p,
.lapo-postcards figure { margin: 0; }
.lapo-postcards h1 { font-size: clamp(2.85rem, 5.1vw, 4.25rem); line-height: 1.02; }
.lapo-postcards h2 { font-size: clamp(2rem, 5vw, 3.65rem); }
.lapo-postcards h3 { font-size: 1.16rem; letter-spacing: -.025em; line-height: 1.2; }
.lapo-postcards a:focus-visible,
.lapo-postcards button:focus-visible,
.lapo-postcards input:focus-visible,
.pc-gallery-track:focus-visible { outline: 3px solid var(--pc-purple); outline-offset: 4px; }

.postcards-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 4vw, 58px);
    margin-top: clamp(6px, 2vw, 26px);
    padding: clamp(34px, 5.1vw, 72px);
    border-radius: clamp(28px, 5vw, 56px);
    background: radial-gradient(ellipse at 93% 26%, #f2bfcbd9, transparent 56%),
        radial-gradient(ellipse at 47% 100%, #e4d0fad9, transparent 68%), #f8edf7;
    overflow: hidden;
}

.postcards-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 21px;
    font-size: .85rem;
    color: #592f7a;
}

.postcards-kicker .icon { width: 19px; height: 19px; }
.postcards-intro h1 em { color: #6d3ab3; }
.postcards-intro p { max-width: 38ch; margin-top: 22px; color: #4f405f; font-size: clamp(1rem, 1.65vw, 1.19rem); line-height: 1.58; }
.postcards-intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 17px 23px; margin-top: 29px; }
.postcards-intro-actions > a:not(.button) { display: inline-flex; align-items: center; gap: 6px; color: #543177; font-size: .93rem; }
.postcards-intro-actions > a:not(.button) .icon { width: 17px; height: 17px; }

.postcards-hero-art { position: relative; aspect-ratio: 1.12; isolation: isolate; }
.postcards-hero-art::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 11% 3% 3%;
    background: #e7b4d1;
    opacity: .5;
    border-radius: 45%;
    filter: blur(30px);
}
.pc-hero-card {
    position: absolute;
    display: grid;
    width: min(66%, 312px);
    padding: 9px 9px 0;
    border: 1px solid #ffffffa1;
    border-radius: 18px;
    background: #fff8f3;
    box-shadow: 0 24px 41px -24px #502655aa;
}
.pc-hero-card img { display: block; width: 100%; height: auto; border-radius: 11px; }
.pc-hero-card span { display: grid; justify-items: center; gap: 3px; padding: 10px 5px 13px; }
.pc-hero-card span b { font: italic 600 clamp(.8rem, 1.6vw, 1.38rem)/1.1 Georgia, serif; letter-spacing: -.02em; }
.pc-hero-card span small { color: #765489; font-size: clamp(.6rem, .9vw, .78rem); }
.pc-hero-card-back { top: 0; right: 4%; border-color: #805c9b; background: #291333; color: #eed8fc; transform: rotate(11deg) scale(.87); transform-origin: top right; }
.pc-hero-card-back span { padding-block: 12px; font-size: .76rem; letter-spacing: .09em; }
.pc-hero-card-front { bottom: 0; left: 8%; border-color: #fff; transform: rotate(-9deg); }

.pc-deco { position: absolute; display: grid; place-items: center; color: #955db78c; }
.pc-deco .icon { width: 100%; height: 100%; }
.pc-deco-paw { top: 2%; left: 10%; width: 12%; transform: rotate(-21deg); }
.pc-deco-heart { bottom: 8%; right: 2%; width: 14%; color: #ad6796a6; transform: rotate(19deg); }
.pc-deco-spark { top: 9%; left: 34%; width: 9%; color: #81579db5; transform: rotate(17deg); }

.postcards-gallery { margin-top: clamp(59px, 8.2vw, 120px); scroll-margin-top: 24px; }
.pc-gallery-top { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.pc-gallery-top p,
.pc-maker-heading p { margin-top: 10px; color: var(--pc-muted); line-height: 1.55; }
.pc-gallery-nav { display: flex; gap: 9px; flex: 0 0 auto; }
.pc-gallery-nav button, .pc-play {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ded0eb;
    border-radius: 50%;
    background: #fffdfb;
    color: #482268;
    cursor: pointer;
}
.pc-gallery-nav button .icon, .pc-play .icon { width: 20px; height: 20px; }
.pc-gallery-nav button:first-child .icon { transform: rotate(180deg); }
.pc-gallery-nav button:hover:not(:disabled), .pc-play:hover { background: #f2e3ff; }
.pc-gallery-nav button:disabled { opacity: .4; cursor: default; }

.pc-gallery-track {
    position: relative;
    --card-width: max(222px, 29%);
    --card-gap: clamp(12px, 1.8vw, 24px);
    display: flex;
    gap: var(--card-gap);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-block: clamp(15px, 2vw, 25px);
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #cfb1e3 #f4ecf8;
    cursor: grab;
}
.pc-gallery-track::before, .pc-gallery-track::after {
    content: '';
    flex: 0 0 calc((100% - var(--card-width)) / 2 - var(--card-gap));
}
.pc-gallery-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.pc-sample {
    min-width: 0;
    flex: 0 0 var(--card-width);
    scroll-snap-align: center;
    position: relative;
    transform: scale(.96);
    transition: transform .32s ease;
}
.pc-sample.is-centered {
    z-index: 1;
    transform: scale(1.035);
}
.pc-sample-frame {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 11px;
    border: 1px solid #e9dcee;
    border-radius: 23px;
    background: linear-gradient(143deg, #fff8f3, #f3e5fa);
}
.pc-sample[data-sample-style="dark"] .pc-sample-frame { background: #261531 var(--pc-mosaic) 0 0 / 26px 26px; border-color: #4f325f; color: #f7eafa; }
.pc-sample-frame {
    animation: pc-float var(--pc-float-duration, 7.8s) ease-in-out var(--pc-float-delay, -1.3s) infinite;
    animation-play-state: paused;
}
.pc-sample:nth-child(3n+2) { --pc-float-duration: 9s; --pc-float-delay: -4s; --pc-float-x: -3px; --pc-float-y: 3px; --pc-float-tilt: -.42deg; }
.pc-sample:nth-child(3n) { --pc-float-duration: 10.3s; --pc-float-delay: -6.8s; --pc-float-x: 3px; --pc-float-y: 2px; --pc-float-tilt: .36deg; }
.lapo-postcards[data-gallery-motion="on"] .pc-gallery-track:not(.is-dragging) .pc-sample.is-gallery-visible:not(:focus-within) .pc-sample-frame {
    animation-play-state: running;
}
@keyframes pc-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
    35% { transform: translate3d(var(--pc-float-x, 2px), var(--pc-float-y, -4px), 0) rotate(var(--pc-float-tilt, .4deg)); }
    68% { transform: translate3d(calc(-1 * var(--pc-float-x, 2px)), calc(-.5 * var(--pc-float-y, -4px)), 0) rotate(0); }
}
@media (hover: hover) {
    .lapo-postcards[data-gallery-motion="on"] .pc-gallery-track:not(.is-dragging) .pc-sample.is-gallery-visible:hover .pc-sample-frame {
        animation-play-state: paused;
    }
}
.pc-sample-image { position: relative; flex: none; aspect-ratio: 1; }
.pc-sample-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 15px;
    background: #e2cce8;
    -webkit-user-drag: none;
}
.pc-play { position: absolute; z-index: 1; right: 10px; bottom: 10px; box-shadow: 0 4px 18px #2d124638; }
.pc-play span { display: grid; place-items: center; }
.pc-sample-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px 0 0;
}
.pc-sample-details h3 { color: #3b2947; font-size: calc(1.16rem - 1px); font-weight: 400; line-height: 1.25; overflow-wrap: anywhere; }
.pc-sample[data-sample-style="dark"] .pc-sample-details h3 { color: #faeffd; }
.pc-community-label { display: block; margin-top: 3px; color: #67467d; font-size: .78rem; line-height: 1.32; }
.pc-sample[data-sample-style="dark"] .pc-community-label { color: #e3c8ee; }
.pc-sample-choices {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    margin-top: auto;
    padding-top: 7px;
}
.pc-sample-choices:has(> button[hidden] + button[hidden]) { display: none; }
.pc-sample-choices button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 44px;
    padding: 5px 9px;
    border: 1px solid #af8bc2;
    border-radius: 10px;
    background: #fffbff;
    color: #60377c;
    font-family: inherit;
    font-size: .79rem;
    line-height: 1.15;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}
.pc-sample-choices button[data-use-scene] { color: #fff; background: #6b408e; border-color: #6b408e; }
.pc-sample[data-sample-style="dark"] .pc-sample-choices button {
    color: #eddbf7; border-color: #aa80bd; background: #36213e;
}
.pc-sample[data-sample-style="dark"] .pc-sample-choices button[data-use-scene] {
    color: #382044; border-color: #e6c8f4; background: #e6c8f4;
}
.pc-choice-icon {
    flex: none; width: 17px; height: 17px;
    fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
@media (hover: hover) {
    .pc-sample-choices button:hover { filter: brightness(.94); }
}
.pc-sample-choices button:focus-visible { outline-color: #783c9f; outline-offset: 2px; }
.pc-sample[data-sample-style="dark"] .pc-sample-choices button:focus-visible { outline-color: #f2cffc; }
.pc-card-withdraw {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ded0eb;
    border-radius: 50%;
    background: #fffdfb;
    color: #482268;
    box-shadow: 0 4px 18px #2d124638;
    cursor: pointer;
}
.pc-card-withdraw:hover:not(:disabled) { background: #f2e3ff; }
.pc-gallery-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 20px; margin-top: 5px; }
.pc-gallery-motion, .pc-sharing-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 3px 0;
    border: 0;
    background: transparent;
    color: #623587;
    font: inherit;
    font-size: .85rem;
    cursor: pointer;
}
.pc-gallery-motion:hover:not(:disabled), .pc-sharing-link:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.pc-gallery-motion .icon, .pc-sharing-link .icon { width: 15px; height: 15px; }

.pc-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 17px;
    border: 1px solid #d9c9e7;
    border-radius: 25px;
    color: #54297a;
    font-weight: 600;
    text-decoration: none;
}
.pc-view-all:hover { background: #f4eafa; }
.pc-view-all .icon { width: 17px; height: 17px; }
.pc-gallery-count { color: var(--pc-muted); font: 500 .42em/1.3 system-ui, sans-serif; vertical-align: middle; }
.pc-gallery-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pc-gallery-pagination [data-gallery-more], .pc-gallery-motion { min-height: 44px; }
.lapo-postcards[data-gallery-view="all"] .postcards-hero,
.lapo-postcards[data-gallery-view="all"] .pc-gallery-nav { display: none; }
.lapo-postcards[data-gallery-view="all"] .postcards-gallery { margin-top: clamp(24px, 4vw, 60px); }
.lapo-postcards[data-gallery-view="all"] .pc-view-all .icon { transform: rotate(180deg); order: -1; }
.lapo-postcards[data-gallery-view="all"] .pc-gallery-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--pc-wall-min)), 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: clamp(10px, 1.55vw, 20px);
    overflow: visible;
    scroll-snap-type: none;
    cursor: auto;
    padding-block: clamp(14px, 2.2vw, 27px);
}
@media (min-width: 960px) {
    .lapo-postcards[data-gallery-view="all"][data-gallery-size="small"] .pc-gallery-track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.lapo-postcards[data-gallery-view="all"] .pc-gallery-track::before,
.lapo-postcards[data-gallery-view="all"] .pc-gallery-track::after { content: none; }
.lapo-postcards[data-gallery-view="all"] .pc-sample {
    transform: none;
    scroll-snap-align: none;
    content-visibility: auto;
    contain-intrinsic-block-size: auto calc(var(--pc-wall-min) + 86px);
    overflow-clip-margin: 9px;
}
.lapo-postcards[data-gallery-view="all"] .pc-sample-frame { padding: clamp(6px, .9vw, 11px); border-radius: 18px; }
.lapo-postcards[data-gallery-view="all"] .pc-sample-details { padding: 11px 0 0; }
.lapo-postcards[data-gallery-view="all"] .pc-sample-details h3 { font-size: calc(clamp(.92rem, 1.4vw, 1.12rem) - 1px); }
.lapo-postcards[data-gallery-view="all"] .pc-gallery-pagination { justify-content: center; }
@media (max-width: 680px) {
    .lapo-postcards[data-gallery-view="all"] .pc-gallery-track {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, max(138px, calc(var(--pc-wall-min) * .68))), 1fr));
        gap: 11px;
    }
    .lapo-postcards[data-gallery-view="all"] .pc-sample {
        justify-self: center;
        width: clamp(min(138px, 100%), calc(100% - (232px - var(--pc-wall-min)) * .17), 100%);
    }
    .lapo-postcards[data-gallery-view="all"] .pc-sample-image img { border-radius: 11px; }
    .lapo-postcards[data-gallery-view="all"] .pc-play { bottom: 5px; right: 5px; }
}

.postcards-maker {
    margin-top: clamp(58px, 9vw, 130px);
    padding: clamp(20px, 5.2vw, 68px);
    border: 1px solid #eadff2;
    border-radius: clamp(25px, 4vw, 40px);
    background: #faf4fc;
    scroll-margin-top: 24px;
}
.pc-maker-heading { margin-bottom: clamp(21px, 4vw, 42px); }
.pc-maker-body { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); gap: clamp(20px, 5.2vw, 65px); align-items: start; }
.pc-maker-body form { min-width: 0; }
.pc-scenes { min-width: 0; margin: 0 0 19px; padding: 0; border: 0; }
.pc-scenes legend { margin-bottom: 9px; padding: 0; }
.pc-scene-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.pc-scene-tabs button { min-height: 44px; padding: 7px 12px; color: #593b70; background: transparent; border: 1px solid #dacbe4; border-radius: 999px; font: inherit; font-size: .9rem; cursor: pointer; }
.pc-scene-tabs [aria-selected="true"] { background: #69418b; border-color: #69418b; color: white; }
.pc-scene-tabs button:focus-visible { outline: 3px solid #8f5abb; outline-offset: 2px; }
[data-scene-panel="templates"] .pc-scene-grid { max-height: min(410px, 55vh); overflow-y: auto; padding: 3px; scrollbar-gutter: stable; }
.pc-scene-mode { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 0 0; padding: 0; border: 0; }
.pc-scene-mode legend { font-size: .86rem; margin-bottom: 0; }
.pc-scene-mode label { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; cursor: pointer; }
.pc-scene-mode input { margin: 0; accent-color: var(--pc-purple); }
.pc-scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pc-scene {
    position: relative;
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
    padding: 5px;
    border: 1px solid #dacbe4;
    border-radius: 12px;
    background: #fffafd;
    cursor: pointer;
}
.pc-scene:has(input:checked) { border-color: #844eb0; box-shadow: inset 0 0 0 1px #844eb0; background: #f6ebfc; }
.pc-scene:has(input:focus-visible) { outline: 3px solid #8f5abb; outline-offset: 2px; }
.pc-scene input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pc-scene-visual {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 7px;
    background: linear-gradient(145deg, #f1dcf5, #c4a8de);
    color: #552870;
}
.pc-scene[data-scene="holiday-tree"] .pc-scene-visual { background: linear-gradient(145deg, #f5e2b5, #b3cfac); }
.pc-scene[data-scene="santa-hat"] .pc-scene-visual { background: linear-gradient(145deg, #ffe2d9, #dea6b2); }
.pc-scene[data-scene="first-snow"] .pc-scene-visual { background: linear-gradient(145deg, #ecf4ff, #abc2e5); }
.pc-scene[data-scene="winter-window"] .pc-scene-visual { background: linear-gradient(145deg, #fbe7c8, #d9a991); }
.pc-scene-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-scene-visual .icon { width: 25px; height: 25px; }
.pc-scene-label { padding: 0 2px 3px; overflow-wrap: anywhere; font-size: .84rem; line-height: 1.2; }
.pc-classic-scene { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; margin-top: 6px; color: #593b70; font-size: .88rem; cursor: pointer; }
.pc-classic-scene input { margin: 0; accent-color: var(--pc-purple); }
.pc-drop {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 17px;
    min-height: 79px;
    border: 1px dashed #ae83ce;
    border-radius: 17px;
    background: #fffafd;
    cursor: pointer;
}
.pc-drop:hover,
.pc-drop.is-over { background: #f3e4fa; border-color: #713ab1; }
.pc-drop:focus-within,
.pc-theme:focus-within { outline: 3px solid #8f5abb; outline-offset: 2px; }
.pc-drop > .icon { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: #f2e3ff; color: #6c3b9b; }
.pc-drop strong, .pc-drop small { display: block; }
.pc-drop small { margin-top: 3px; font-size: .83rem; color: var(--pc-muted); overflow-wrap: anywhere; }
.pc-drop input, .pc-theme input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }

.lapo-postcards .pc-form-note { margin-top: 8px; color: var(--pc-muted); font-size: .8rem; line-height: 1.45; }
.pc-form-note a { text-decoration: underline; text-underline-offset: 2px; }
.pc-name-label { display: grid; gap: 7px; margin-top: 18px; }
.pc-name-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pc-name-count { flex: none; color: var(--pc-muted); font: 500 .78rem/1.4 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.pc-name-count.is-over { color: #862547; }
.pc-name-label small { color: var(--pc-muted); font-size: .8rem; line-height: 1.4; }
.pc-name-label input[aria-invalid="true"] { border-color: #a2385a; }
.pc-name-label input {
    display: block;
    width: 100%;
    padding: 12px 13px;
    color: var(--pc-ink);
    background: #fffafd;
    border: 1px solid #dacbe4;
    border-radius: 12px;
    font: inherit;
}

.pc-themes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0;
    margin: 17px 0 0;
    min-width: 0;
    border: 0;
}
.pc-themes legend { margin-bottom: 8px; padding: 0; }
.pc-theme {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 9px;
    min-height: 63px;
    border: 1px solid #dacbe4;
    border-radius: 12px;
    background: #fffafd;
    cursor: pointer;
}
.pc-theme:has(input:checked) { border-color: #844eb0; box-shadow: inset 0 0 0 1px #844eb0; background: #f6ebfc; }
.pc-theme small { display: block; margin-top: 3px; color: var(--pc-muted); font-size: .72rem; line-height: 1.2; }
.pc-swatch { display: grid; width: 32px; height: 35px; place-items: center; border-radius: 7px; }
.pc-swatch .icon { width: 16px; height: 16px; }
.pc-swatch-light { background: linear-gradient(140deg, #f8d8de, #dac0f2); color: #542f7b; }
.pc-swatch-dark { background: #49234f var(--pc-mosaic) 0 0 / 13px 13px; color: #fde2fb; }
.pc-loading .pc-drop, .pc-loading .pc-theme, .pc-loading .pc-scenes { cursor: wait; opacity: .65; }
.pc-submit { margin-top: 18px; }
.lapo-postcards .pc-submit + .pc-form-note { margin-top: 16px; }
.pc-submit:disabled { opacity: .65; cursor: wait; }
.lapo-postcards .pc-input-status:not(:empty) { margin-top: 8px; color: #862547; font-size: .9rem; }
.lapo-postcards .pc-status { color: #4c2d66; font-size: .92rem; line-height: 1.4; text-align: center; }
.lapo-postcards .pc-status[data-error="true"] { color: #862547; }
.pc-input-status:empty, .pc-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pc-preview[data-style="dark"] :is(.pc-status, [data-check-postcard-job]) { color: #eedbfa; }
.pc-preview[data-style="dark"] .pc-status[data-error="true"] { color: #ffb9ce; }
.pc-preview:focus-visible { outline: 3px solid var(--pc-purple); outline-offset: 3px; }

.pc-preview {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 12px;
    min-width: 0;
    padding: clamp(17px, 3.7vw, 40px);
    border-radius: 24px;
    background: radial-gradient(ellipse at 15% 20%, #f4b6cba1, transparent 42%),
        radial-gradient(ellipse at 87% 67%, #d9b7f9, transparent 69%), #fce9f3;
}
.pc-preview[data-style="dark"] { background: #2e153e var(--pc-mosaic) 0 0 / 28px 28px; }
.lapo-postcards .pc-preview-card {
    display: grid;
    width: min(100%, 350px);
    padding: 10px;
    border-radius: 19px;
    background: #fff7f4;
    box-shadow: 0 16px 39px -24px #562947ab;
}
.pc-preview[data-style="dark"] .pc-preview-card { background: #251430; color: #f9e9fb; border: 1px solid #794b80; }
.pc-preview-visual { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1; border-radius: 12px; background: #efddee; }
.pc-preview-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-preview.has-result .pc-preview-visual img { object-fit: contain; }
.pc-preview.has-result figcaption { display: none; }
.pc-result-actions, .pc-sharing { display: grid; justify-items: center; width: min(100%, 350px); }
.pc-result-actions { gap: 10px; }
.pc-account-invite {
    display: grid;
    justify-items: start;
    gap: 9px;
    width: 100%;
    margin-top: 5px;
    padding: clamp(14px, 2vw, 21px);
    border: 1px solid #e2cbea;
    border-radius: 16px;
    background: #fffbff;
}
.pc-account-invite p { color: var(--pc-muted); font-size: .88rem; line-height: 1.5; }
.pc-account-invite .pc-account-link { justify-content: center; min-height: 40px; margin-top: 2px; padding: 7px 12px; font-size: .85rem; }
.pc-account-link .icon { width: 15px; height: 15px; }
.pc-sharing { text-align: center; }
.pc-publish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 7px 14px;
    border: 1px solid #aa81c4;
    border-radius: 24px;
    background: #fff7fb89;
    color: #542579;
    font: inherit;
    font-size: .88rem;
    cursor: pointer;
}
.pc-publish:hover:not(:disabled) { background: #fff7fb; }
.pc-publish .icon { flex: 0 0 17px; width: 17px; height: 17px; }
.lapo-postcards .pc-sharing > p { max-width: 37ch; color: #5b406b; font-size: .8rem; line-height: 1.4; }
.lapo-postcards .pc-sharing > p:not(:empty) { margin-top: 6px; }
.lapo-postcards .pc-sharing-status { color: #4c2d66; font-size: .84rem; }
.lapo-postcards .pc-sharing-status[data-error="true"] { color: #862547; }
.pc-preview[data-style="dark"] .pc-publish { border-color: #b58bd4; background: #532a68; color: #fff0ff; }
.pc-preview[data-style="dark"] .pc-publish:hover:not(:disabled) { background: #67367e; }
.pc-preview[data-style="dark"] .pc-sharing :is(p, .pc-sharing-link) { color: #eedbfa; }
.pc-preview[data-style="dark"] .pc-sharing .pc-sharing-status[data-error="true"] { color: #ffb9ce; }
.pc-publish:disabled, .pc-gallery-motion:disabled, .pc-sharing-link:disabled, [data-card-withdraw]:disabled { opacity: .65; cursor: wait; }
.pc-preview-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #9459ae; background: radial-gradient(ellipse, #fcf5f8, #ead3f5); }
.pc-preview[data-style="dark"] .pc-preview-placeholder { color: #e0a9ed; background: radial-gradient(ellipse, #54255f, #2a1739); }
.pc-preview-placeholder .icon { width: 31%; height: 31%; stroke-width: 1.3; transform: rotate(-13deg); }
.pc-preview figcaption { display: grid; justify-items: center; gap: 3px; padding: 13px 5px 5px; line-height: 1.25; text-align: center; }
.pc-preview figcaption b { overflow-wrap: anywhere; font: italic 600 clamp(1rem, 2.75vw, 1.55rem)/1.13 Georgia, serif; }
.pc-preview figcaption span { font-size: .76rem; opacity: .81; }

.pc-progress {
    position: absolute;
    z-index: 2;
    inset: 9px 9px auto auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - 18px);
    min-height: 29px;
    padding: 5px 10px;
    border-radius: 18px;
    color: #faf6ff;
    background: #211628ed;
    box-shadow: 0 2px 8px #1a11232b;
    font-size: .76rem;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
.pc-progress-dots { display: inline-flex; align-items: center; gap: 2px; height: 12px; }
.pc-progress-dots i {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #dac7ff;
    animation: pc-dot-ripple 1.2s ease-in-out infinite;
}
.pc-progress-dots i:nth-child(2) { width: 5px; height: 5px; animation-delay: .12s; }
.pc-progress-dots i:nth-child(3) { width: 6px; height: 6px; animation-delay: .24s; }
.pc-progress-dots i:nth-child(4) { width: 5px; height: 5px; animation-delay: .36s; }
.pc-progress-dots i:nth-child(5) { animation-delay: .48s; }
@keyframes pc-dot-ripple {
    0%, 70%, 100% { transform: translateY(1px) scale(.78); background: #b7a7d6; }
    35% { transform: translateY(-2px) scale(1.12); background: #faf2ff; }
}

@media (min-width: 681px) {
    .pc-preview { padding: clamp(16px, min(3.7vw, 4svh), 40px); }
    .pc-preview.fits-viewport { position: sticky; top: 16px; }
    .lapo-postcards .pc-preview-card { width: min(100%, 350px, max(170px, calc(100svh - 210px))); }
}

@media (max-width: 850px) {
    .postcards-hero { padding: 34px; }
    .pc-gallery-track { --card-width: max(208px, 39%); }
}
@media (max-width: 680px) {
    .postcards-hero { grid-template-columns: 1fr; gap: 28px; padding: 26px 21px; }
    .lapo-postcards h1 { font-size: clamp(2.65rem, 10.3vw, 4.5rem); }
    .postcards-hero-art { justify-self: center; width: min(100%, 375px); }
    .postcards-intro p { margin-top: 16px; }
    .postcards-intro-actions { margin-top: 20px; }
    .pc-gallery-track { --card-width: 74%; --card-gap: 10px; }
    .pc-gallery-nav { gap: 5px; }
    .pc-gallery-nav button { width: 38px; height: 38px; }
    .pc-gallery-top { align-items: start; }
    .pc-maker-body { grid-template-columns: 1fr; }
}
@media (max-width: 370px) {
    .postcards-intro-actions .button { padding-inline: 16px; }
    .pc-scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pc-theme { grid-template-columns: 24px minmax(0, 1fr); gap: 6px; }
    .pc-swatch { width: 24px; height: 31px; }
}
@media (prefers-reduced-motion: reduce) {
    .lapo-postcards *, .lapo-postcards *::before, .lapo-postcards *::after { scroll-behavior: auto !important; transition: none !important; }
    .pc-progress-dots i, .pc-sample-frame { animation: none; }
}
