.network-status {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    display: none;
    width: min(calc(100vw - 2rem), 26rem);
    pointer-events: none;
}

.network-status.is-visible {
    display: block;
}

.network-status__panel {
    width: 100%;
    border: 1px solid rgba(254, 202, 202, 0.95);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px -38px rgba(127, 29, 29, 0.45);
    color: #1f2937;
    cursor: grab;
    pointer-events: auto;
    overflow: hidden;
    touch-action: none;
    user-select: none;
}

.network-status.is-dragging .network-status__panel {
    cursor: grabbing;
}

.network-status__body {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 1.15rem;
}

.network-status__icon {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 1.15rem;
    font-weight: 900;
}

.network-status__content {
    min-width: 0;
    flex: 1;
}

.network-status__kicker {
    margin: 0;
    color: #b91c1c;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.network-status__title {
    margin: 0.25rem 0 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
}

.network-status__message {
    margin: 0.35rem 0 0;
    color: #4b5563;
    font-size: 0.86rem;
    line-height: 1.55;
}

.network-status__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.875rem;
}

.network-status__button {
    border: 0;
    border-radius: 999px;
    background: #b91c1c;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.55rem 0.85rem;
    user-select: auto;
}

.network-status__button:hover {
    background: #991b1b;
}

.network-status__button:disabled {
    background: #ef4444;
    cursor: wait;
    opacity: 0.85;
}

.network-status__meta {
    align-items: center;
    color: #6b7280;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .network-status {
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
    }
}
