.special-preview .sp-banner img { display: block; width: 100%; max-height: 30vh; object-fit: contain; }
.special-preview .sp-title {
    margin: 10px auto 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    overflow-wrap: anywhere;
}
.special-preview .sp-subtitle {
    white-space: pre-wrap;
    margin: 4px 12px 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}

/* Card list wrapper (Figma "Content"): vertical, padding 11/12/8/12, gap 12. */
.special-preview .sp-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 11px 12px 8px;
    background: var(--sp-bg);
}
.special-preview .sp-card {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 8px;
    border: 2px solid transparent;
    border-radius: 16px;
    background:
        linear-gradient(135deg, #f3ecfb, #fbeef7) padding-box,
        var(--sp-gold) border-box;
    box-shadow: 0 2px 8px rgba(80, 0, 90, 0.25);
}
.special-preview .sp-card.is-hidden { display: none; }
/* Gold sparkles (15/6/8px stars) at the top-right corner. Each SVG is twice the star size to hold its glow. */
.special-preview .sp-card::after {
    content: "";
    position: absolute;
    top: -4px;
    right: 0;
    width: 50px;
    height: 42px;
    background:
        url(../img/special-preview/gold_sparkle_15.svg) 11.5px 3.5px / 30px 30px no-repeat,
        url(../img/special-preview/gold_sparkle_6.svg) 2px 22.5px / 12px 12px no-repeat,
        url(../img/special-preview/gold_sparkle_8.svg) 32.5px 24.5px / 16px 16px no-repeat;
    pointer-events: none;
}
/* One more sparkle just outside the card, alternating: odd cards top-right, even cards top-left. */
.special-preview .sp-card::before {
    content: "";
    position: absolute;
    top: -14px;
    right: -15px;
    width: 16px;
    height: 16px;
    background: url(../img/special-preview/gold_sparkle_8.svg) center / contain no-repeat;
    pointer-events: none;
}
.special-preview .sp-card:nth-child(even)::before {
    right: auto;
    left: -15px;
}

/* Photo frame 150x160 on a 344px card: 2px gold border, radius 12, #F5F1FB while loading. */
.special-preview .sp-photo {
    position: relative;
    flex: 0 0 43.6%;
    align-self: flex-start;
    aspect-ratio: 150 / 160;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #f5f1fb padding-box, var(--sp-gold) border-box;
    box-sizing: border-box;
}
.special-preview .sp-img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    cursor: zoom-in;
}
/* The PNG holds a 26px button plus its shadow; it sticks out of the photo's bottom-right corner. */
.special-preview .sp-switch {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 36px;
    height: 36px;
    background: url(../img/special-preview/btn_refresh.png) center / contain no-repeat;
    cursor: pointer;
}

.special-preview .sp-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.special-preview .sp-status {
    align-self: flex-start;
    margin-bottom: 4px;
    padding: 2px 8px 2px 6px;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 10px;
    line-height: 14px;
}
.special-preview .sp-status::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-radius: 50%;
    vertical-align: -1px;
}
.special-preview .sp-status.is-online::before { background: #34c759; }
.special-preview .sp-status.is-offline::before { background: #b5b5b5; }
.special-preview .sp-name {
    margin: 0;
    height: 28px;
    padding: 0 10px 0 14px;
    border: 1px solid #f3d27a;
    border-radius: 14px;
    background: linear-gradient(90deg, #fbc3e3, #fcd6ec 50%, rgba(253, 230, 243, 0.7));
    box-sizing: border-box;
    color: var(--sp-accent);
    font-size: 16px;
    font-weight: 700;
    line-height: 26px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.special-preview .sp-desc {
    flex: 0 1 auto;
    margin: 6px 0 8px;
    max-height: 30vw;
    padding: 6px 8px;
    border-radius: 10px;
    background: #fff;
    overflow-y: auto;
    color: #555;
    font-size: 11px;
    line-height: 1.5;
    word-break: break-word;
}
/* Pinned to the bottom of the info column whatever the description height. */
.special-preview .sp-actions { display: flex; justify-content: space-around; margin-top: auto; }
/* Icon PNGs hold a ~36px gradient circle plus its shadow. */
.special-preview .sp-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    font-size: 9px;
    text-decoration: none;
    white-space: nowrap;
}
.special-preview .sp-action img { display: block; width: 48px; margin: 0 0 -6px; }


/* Keep the mobile design inside the admin preview without affecting the form. */
.special-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 12px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, .65);
}
.special-preview {
    --sp-grad: linear-gradient(110deg, #ec008c, #fc6767);
    --sp-accent: #ec008c;
    --sp-bg: linear-gradient(to left, #7700ed, #ed008c);
    --sp-gold: linear-gradient(135deg, #fff1c4, #f2cb66 45%, #e7b552 70%, #fff1c4);
    width: 393px;
    max-width: 100%;
    height: min(844px, calc(100vh - 64px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    background: var(--sp-bg);
    color: #333;
    font: 16px/normal "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
.special-preview::-webkit-scrollbar { display: none; }
.special-preview:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.special-preview .sp-title { line-height: normal; }
.special-preview .sp-desc { max-height: 118px; white-space: pre-wrap; }
.special-preview .sp-name, .special-preview .sp-img { cursor: default; }
.special-preview .sp-switch { border: 0; padding: 0; appearance: none; }
.special-preview .sp-switch:focus-visible { outline: 2px solid var(--sp-accent); border-radius: 50%; }
.special-preview-close {
    position: absolute;
    top: 3px;
    right: max(12px, calc(50% - 196.5px));
    width: 27px;
    height: 27px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 23px;
    line-height: 23px;
    cursor: pointer;
}
