.pwa-connection-status {
    --pwa-status-h: 32px;
    position: relative;
    z-index: 20;
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    min-height: var(--pwa-status-h);
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: #25262b;
    color: #f5f6f8;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
    font: 600 12px/1.3 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: center;
}

.header + .pwa-connection-status {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    z-index: 39;
}

body.pwa-connection-visible .app-shell {
    inset: calc(var(--header-h) + 32px) 0 0 0;
}

body.terminal-page.pwa-connection-visible .terminal-shell {
    grid-template-rows: auto 32px minmax(0, 1fr);
}

.pwa-connection-status[data-state="offline"] {
    background: #783c14;
}

.pwa-connection-status[data-state="unavailable"] {
    background: #7f1d1d;
}
