/* Profile strip — horizontal swipe inside mount; page width must not grow */

.df-strip-mount {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 18px 0 22px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    isolation: isolate;
}

.df-strip {
    --df-tile-size: 148px;
    box-sizing: border-box;
}

.df-strip-mount a,
.df-strip-mount a:link,
.df-strip-mount a:visited,
.df-strip-mount a:hover,
.df-strip-mount a:active,
.df-strip-mount a:focus,
.df-tile-link,
.df-tile-link:link,
.df-tile-link:visited,
.df-tile-link:hover,
.df-tile-link:active,
.df-tile-link:focus {
    text-decoration: none !important;
}

.df-tile {
    width: var(--df-tile-size);
    flex: 0 0 var(--df-tile-size);
    max-width: var(--df-tile-size);
    margin: 0;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff 0%, #f6f9fc 100%);
    box-shadow: 0 4px 18px rgba(43, 120, 246, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.df-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(43, 120, 246, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.df-tile-link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
    min-width: 0;
}

.df-photo-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    flex-shrink: 0;
    box-sizing: border-box;
    background: #e8eef5;
    overflow: hidden;
}

.df-photo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.df-online {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
    animation: df-online-pulse 2s ease-in-out infinite;
}

@keyframes df-online-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35); }
    50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.15); }
}

.df-info {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.df-name,
.df-meta,
.df-status,
.df-bubble {
    text-decoration: none;
}

.df-name {
    font: bold 14px/1.2 Ubuntu, 'Lucida Grande', Tahoma, Verdana, sans-serif;
    color: #2b78f6;
    overflow-wrap: anywhere;
}

.df-tile-link:hover .df-name {
    color: #e11d48;
    text-decoration: none !important;
}

.df-meta {
    font: 13px/1.3 Ubuntu, 'Lucida Grande', Tahoma, Verdana, sans-serif;
    color: #64748b;
}

.df-status {
    font: 12px/1.3 Ubuntu, 'Lucida Grande', Tahoma, Verdana, sans-serif;
    color: #16a34a;
    font-weight: 600;
}

.df-status::before {
    content: '● ';
    font-size: 10px;
}

.df-bubble {
    margin: 6px 0 0;
    padding: 6px 8px;
    font: 11px/1.35 Ubuntu, 'Lucida Grande', Tahoma, Verdana, sans-serif;
    color: #475569;
    background: linear-gradient(135deg, #eaf9f9 0%, #f0f4ff 100%);
    border-radius: 10px;
    overflow-wrap: anywhere;
}

/* Mobile / narrow: swipe inside mount (responsive-table pattern) */
@media (max-width: 800px) {
    .df-strip-mount {
        width: 100% !important;
        max-width: 100% !important;
        scroll-snap-type: x mandatory;
        overflow-x: scroll;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        background: #f8f9fa;
        padding: 8px 6px;
        margin: 14px 0 18px;
    }

    .df-strip {
        --df-tile-size: 132px;
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: stretch;
        width: max-content;
        max-width: none;
        min-width: 0;
        gap: 10px;
        padding: 0 2px 4px;
    }
}

@media (max-width: 380px) {
    .df-strip {
        --df-tile-size: 118px;
    }
}

.df-strip-mount::-webkit-scrollbar {
    height: 6px;
}

.df-strip-mount::-webkit-scrollbar-track {
    background: #eef1f4;
    border-radius: 3px;
}

.df-strip-mount::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}

/* Desktop content column (~800px): six equal columns */
@media (min-width: 801px) {
    .df-strip-mount {
        overflow-x: hidden;
        border: none;
        background: transparent;
        padding: 0;
    }

    .df-strip {
        --df-tile-size: auto;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

    .df-tile {
        width: 100%;
        max-width: 100%;
        flex: none;
        scroll-snap-align: none;
    }

    .df-info {
        padding: 6px 8px 8px;
    }

    .df-name {
        font-size: 13px;
    }

    .df-meta {
        font-size: 12px;
    }

    .df-status {
        font-size: 11px;
    }

    .df-bubble {
        margin-top: 4px;
        padding: 5px 6px;
        font-size: 10px;
    }

    .df-online {
        width: 10px;
        height: 10px;
        bottom: 8px;
        right: 8px;
    }
}
