/* Stale-build update affordance — injected only after a newer deployment is detected. */
.stale-build-indicator {
    align-items: center;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    gap: 6px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.stale-build-indicator--chat {
    flex-direction: row;
    background: #3498db;
    border: 1px solid #3498db;
    border-radius: 20px;
    box-shadow: 1px 0px 5px 1px rgb(134 225 255);
    font-size: 11px;
    font-weight: 700;
    padding: 8px 12px;
    color: white;
}

.stale-build-indicator--chat i {
    font-size: 12px;
}

.stale-build-indicator--chat:hover {
    box-shadow: 1px 0px 5px 1px rgb(134 225 255);
    transform: translateY(-2px);
}

.stale-build-indicator--admin {
    background: #3498db;
    border: 1px solid #3498db;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    color: white;
}

.stale-build-indicator--admin:hover {
    box-shadow: 1px 0px 5px 1px rgb(134 225 255);
    transform: translateY(-2px);
}

.stale-build-dialog-overlay {
    align-items: center;
    background: rgba(12, 24, 38, 0.48);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 10000;
}

.stale-build-dialog {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
    color: #1d2d3d;
    max-width: 430px;
    padding: 30px;
    position: relative;
    text-align: center;
    width: 100%;
}

.stale-build-dialog__icon {
    align-items: center;
    background: #e6f7fb;
    border-radius: 50%;
    color: #1599bb;
    display: inline-flex;
    font-size: 24px;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.stale-build-dialog h2 {
    font-size: 22px;
    margin: 16px 0 8px;
}

.stale-build-dialog p {
    color: #5f6e7c;
    line-height: 1.5;
    margin: 0 0 22px;
}

.stale-build-dialog__close {
    background: transparent;
    border: 0;
    color: #667685;
    cursor: pointer;
    font-size: 27px;
    line-height: 1;
    padding: 4px 9px;
    position: absolute;
    right: 10px;
    top: 9px;
}

.stale-build-dialog__reload {
    background: #1599bb;
    border: 0;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 10px 20px;
}

.stale-build-dialog__reload:hover {
    background: #0d7f9e;
}

@media (max-width: 768px) {
    .stale-build-indicator--chat span,
    .stale-build-indicator--admin span {
        display: none;
    }

    .stale-build-indicator--admin {
        padding: 8px 10px;
    }
}
