/* WorkServer — exact profile activity status */

/* The WorkServer line already contains all labels; remove UM's old label row. */
.um-profile.um-viewing .um-field[data-key="_um_last_login"] .um-field-label,
.um-profile.um-viewing .um-field-_um_last_login .um-field-label {
    display: none !important;
}

.um-profile.um-viewing .um-field[data-key="_um_last_login"] .um-field-area,
.um-profile.um-viewing .um-field-_um_last_login .um-field-area {
    margin: 0 !important;
}

.um-profile.um-viewing .um-field[data-key="_um_last_login"] .um-field-value,
.um-profile.um-viewing .um-field-_um_last_login .um-field-value {
    text-align: center;
}

.ws-profile-activity-line {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: #cbd5e1 !important;
    white-space: nowrap;
}

.ws-profile-activity-item {
    color: #cbd5e1 !important;
}

.ws-profile-activity-item strong {
    color: #e2e8f0 !important;
    font-weight: 700;
}

/* Exact date/time must stay readable without hover. */
.ws-profile-activity-value {
    color: #f8fafc !important;
    font-weight: 650;
    opacity: 1 !important;
    text-shadow: 0 0 1px rgba(255,255,255,.12);
}

.ws-profile-activity-sep {
    color: #64748b !important;
    opacity: .72;
}

.ws-profile-activity-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ws-profile-activity-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    display: inline-block;
    border-radius: 50%;
}

.ws-profile-activity-status.is-active {
    color: #22c55e !important;
}

.ws-profile-activity-status.is-active .ws-profile-activity-dot {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,.8);
    animation: ws-profile-pulse-green 1.5s infinite;
}

.ws-profile-activity-status.is-inactive {
    color: #ef4444 !important;
}

.ws-profile-activity-status.is-inactive .ws-profile-activity-dot {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239,68,68,.7);
}

@keyframes ws-profile-pulse-green {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.9); }
    70%  { box-shadow: 0 0 0 8px rgba(34,197,94,.15); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

@media (prefers-reduced-motion: reduce) {
    .ws-profile-activity-status.is-active .ws-profile-activity-dot {
        animation: none;
    }
}

@media (max-width: 760px) {
    .ws-profile-activity-line {
        flex-wrap: wrap;
        gap: 6px 10px;
        white-space: normal;
        font-size: 14px;
    }

    .ws-profile-activity-sep {
        display: none;
    }
}
