.spc-checkin-feed {
    display: grid;
    gap: 8px;
    margin: 12px 0 16px;
}

.spc-checkin-feed-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(243, 154, 56, .18);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .04);
}

.spc-checkin-feed-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff4e8;
    color: #f39a38;
    font-size: 15px;
    overflow: hidden;
    border: 2px solid rgba(243, 154, 56, .22);
}

.spc-checkin-feed-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spc-checkin-feed-icon.is-stamp { border-radius: 6px; }
.spc-checkin-feed-icon.is-stamp img { object-fit: contain; }
.spc-checkin-feed.is-circle-layout .spc-checkin-feed-icon.is-stamp { border-radius:50%; }
.spc-checkin-feed.is-circle-layout .spc-checkin-feed-icon.is-stamp img { object-fit:cover; }

.spc-checkin-feed-icon-btn {
    appearance: none;
    padding: 0;
    cursor: pointer;
    box-sizing: border-box;
}

.spc-checkin-feed-icon-btn:active {
    transform: translateY(1px);
}

.spc-checkin-feed-text {
    min-width: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #444;
    font-weight: 700;
}

.spc-checkin-feed-name-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #f39a38;
    font: inherit;
    font-weight: 900;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.spc-checkin-feed-name-btn:active {
    transform: translateY(1px);
}

.spc-checkin-feed-facility-link {
    color: #222;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.spc-checkin-feed-facility-link:hover,
.spc-checkin-feed-facility-link:focus-visible {
    color: #222;
    text-decoration-style: dotted;
}

.spc-checkin-feed-time {
    margin-top: 2px;
    font-size: 11px;
    color: #888;
    font-weight: 600;
}

.spc-checkin-feed-card-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 18px;
}

.spc-checkin-feed-card-modal[hidden] {
    display: none !important;
}

.spc-checkin-feed-card-bg {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.spc-checkin-feed-card {
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    max-height: 86vh;
    overflow: auto;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffdfa 0%, #fff5eb 58%, #fff 100%);
    border: 1px solid rgba(243, 154, 56, .24);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
    padding: 20px 16px 18px;
    text-align: center;
}

.spc-checkin-feed-card-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, .06);
    color: #555;
    cursor: pointer;
}

.spc-checkin-feed-card-title {
    padding: 0 34px;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 900;
    color: #333;
}

.spc-checkin-feed-card-sub {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.6;
    color: #777;
    font-weight: 700;
}

.spc-checkin-feed-card-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.spc-checkin-feed-card-cell {
    aspect-ratio: 1 / 1;
    border-radius: 17px;
    border: 1px dashed rgba(243, 154, 56, .35);
    background: #fffdf9;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.spc-checkin-feed-card-cell.is-photo {
    border: 2px solid rgba(243, 154, 56, .38);
    background: #fff;
}

.spc-checkin-feed-card-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spc-checkin-feed-card-stamp {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    border: 3px solid #f39a38;
    display: grid;
    place-items: center;
    color: #f39a38;
    background: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    transform: rotate(-8deg);
}

.spc-checkin-feed-card-number {
    position: absolute;
    left: 7px;
    top: 6px;
    z-index: 2;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .86);
    color: #f39a38;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}

.spc-checkin-feed-card-meta {
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: 5px;
    z-index: 2;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: #555;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spc-checkin-feed-card-empty {
    margin-top: 14px;
    padding: 14px;
    border-radius: 16px;
    background: #fff8f0;
    color: #777;
    font-size: 13px;
    font-weight: 700;
}

.spc-checkin-feed-photo-viewer {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.spc-checkin-feed-photo-viewer[hidden] {
    display: none !important;
}

.spc-checkin-feed-photo-viewer-bg {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, .68);
    cursor: pointer;
}

.spc-checkin-feed-photo-viewer-card {
    position: relative;
    z-index: 1;
    width: fit-content;
    max-width: 92vw;
}

.spc-checkin-feed-photo-viewer-img {
    width: auto;
    max-width: 92vw;
    height: auto;
    max-height: 68vh;
    object-fit: contain;
    display: block;
    border-radius: 18px;
    background: transparent;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
}

.spc-checkin-feed-photo-viewer-close {
    position: absolute;
    right: -8px;
    top: -8px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #333;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}

.spc-checkin-feed-card-cell {
    appearance: none;
    padding: 0;
    cursor: default;
    color: inherit;
    text-decoration: none;
}

button.spc-checkin-feed-card-cell {
    cursor: pointer;
}

button.spc-checkin-feed-card-cell:active {
    transform: translateY(1px);
}

@media (min-width: 769px) {
    .spc-checkin-feed-card {
        width: min(680px, calc(100vw - 64px));
        padding: 28px 24px 24px;
    }

    .spc-checkin-feed-card-title {
        font-size: 20px;
    }

    .spc-checkin-feed-card-sub {
        font-size: 14px;
    }

    .spc-checkin-feed-card-grid {
        margin-top: 18px;
        gap: 14px;
    }

    .spc-checkin-feed-card-stamp {
        width: 104px;
        height: 104px;
        font-size: 15px;
    }

    .spc-checkin-feed-card-number {
        left: 10px;
        top: 9px;
        min-width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .spc-checkin-feed-card-meta {
        left: 8px;
        right: 8px;
        bottom: 8px;
        font-size: 11px;
        padding: 4px 7px;
    }
}

@media (max-width: 480px) {
    .spc-checkin-feed-card {
        border-radius: 24px 24px 0 0;
        width: 100%;
        max-height: 86svh;
    }

    .spc-checkin-feed-card-modal {
        align-items: end;
        padding: 0;
    }

    .spc-checkin-feed-card-stamp {
        width: 58px;
        height: 58px;
        font-size: 11px;
    }
}
