/* Placeholders for Profile sections that load after the page shell
   (see static/js/profile-sections.js). Neutral translucent fills so the same
   skeleton reads correctly on the light and dark portal themes. */
.profile-skel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 18px;
    background: rgba(139, 148, 164, 0.10);
    overflow: hidden;
    box-sizing: border-box;
}
.profile-skel--inline { margin-bottom: 0; }
.profile-skel--on-dark { background: rgba(255, 255, 255, 0.10); }
.profile-skel--chip {
    display: inline-flex;
    min-width: 150px;
    height: 28px;
    border-radius: 99px;
    margin: 0;
}

.profile-skel--loading::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: profile-skel-shimmer 1.4s ease-in-out infinite;
}
.profile-skel--on-dark.profile-skel--loading::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.profile-skel__label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #8b94a4;
}
.profile-skel__label::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(139, 148, 164, 0.35);
    border-top-color: #8b94a4;
    animation: profile-skel-spin .8s linear infinite;
}
.profile-skel--on-dark .profile-skel__label { color: rgba(255, 255, 255, 0.75); }
.profile-skel--chip .profile-skel__label { font-size: 11.5px; }

.profile-skel--error { background: rgba(220, 74, 64, 0.06); }
.profile-skel__error {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #b23636;
}
.profile-skel__retry {
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    border-radius: 8px;
    padding: 5px 12px;
    font: inherit;
    font-size: 12.5px;
    cursor: pointer;
}

@keyframes profile-skel-shimmer { to { transform: translateX(100%); } }
@keyframes profile-skel-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .profile-skel--loading::after,
    .profile-skel__label::before { animation: none; }
}
@media print {
    .profile-skel { display: none !important; }
}
