#sw-status-container {
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    pointer-events: none;
    font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.sw-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(30, 39, 46, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
    pointer-events: auto;
    user-select: none;
    opacity: 0.8;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.sw-status-badge:hover {
    opacity: 1;
}

.sw-status-badge[hidden] {
    display: none;
}

.sw-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sw-status-badge.is-ready .sw-status-dot {
    background: #22c55e;
}

.sw-status-badge.is-offline {
    opacity: 0.96;
    border-color: rgba(245, 158, 11, 0.65);
    background: rgba(30, 39, 46, 0.88);
}

.sw-status-badge.is-offline .sw-status-dot {
    background: #f59e0b;
}

.sw-update-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.3;
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.94);
    border: 1px solid rgba(59, 130, 246, 0.65);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.sw-update-banner[hidden] {
    display: none;
}

.sw-update-reload {
    border: none;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    background: #2563eb;
    cursor: pointer;
}

.sw-update-reload:hover {
    background: #1d4ed8;
}

.sw-update-dismiss {
    border: none;
    background: transparent;
    color: rgba(248, 250, 252, 0.72);
    font-size: 14px;
    line-height: 1;
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 4px;
}

.sw-update-dismiss:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}
