#components-reconnect-modal {
    --notice-accent: #079ed4;
    position: fixed;
    inset: max(16px, env(safe-area-inset-top)) auto auto 50%;
    z-index: 2147483647;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: min(460px, calc(100% - 24px));
    padding: 13px 16px;
    border: 1px solid #d8e8f1;
    border-left: 4px solid var(--notice-accent);
    border-radius: 14px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 32px rgba(9, 48, 78, .16), 0 2px 6px rgba(9, 48, 78, .06);
    backdrop-filter: blur(16px);
    color: #163a56;
    font-family: Inter, "Segoe UI", sans-serif;
    text-align: left;
    animation: connection-notice-enter .3s ease-out;
}
#components-reconnect-modal[hidden],
#components-reconnect-modal [hidden] { display: none !important; }
#components-reconnect-modal[data-tone="warning"] { --notice-accent: #d99419; }
#components-reconnect-modal[data-tone="success"] { --notice-accent: #10a77e; }
#components-reconnect-modal .connection-notice-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid color-mix(in srgb, var(--notice-accent) 22%, white);
    border-radius: 12px;
    background: linear-gradient(145deg, white, color-mix(in srgb, var(--notice-accent) 15%, white));
    color: var(--notice-accent);
}
#components-reconnect-modal svg { width: 24px; height: 24px; }
#components-reconnect-modal .connection-check,
#components-reconnect-modal[data-tone="success"] .connection-wifi { display: none; }
#components-reconnect-modal[data-tone="success"] .connection-check { display: block; }
#components-reconnect-modal[data-tone="connecting"] .connection-wifi { animation: connection-pulse 1.5s ease-in-out infinite; }
#components-reconnect-modal strong { display: block; color: #163a56; font-size: 13px; font-weight: 700; line-height: 1.45; }
#components-reconnect-modal p { margin: 3px 0 0; color: #5c7285; font-size: 12px; line-height: 1.45; }
#components-reconnect-modal .connection-notice-actions { display: flex; flex-direction: column; gap: 6px; }
#components-reconnect-modal button {
    padding: 7px 11px;
    border: 1px solid #b8dff0;
    border-radius: 8px;
    background: #edf8fd;
    color: #126484;
    font: 600 12px/1.2 Inter, "Segoe UI", sans-serif;
    cursor: pointer;
}
#components-reconnect-modal button:hover { background: #ddf3fd; }
#components-reconnect-modal button:focus-visible { outline: 2px solid #058ec5; outline-offset: 3px; }
#components-reconnect-modal button:disabled { opacity: .6; cursor: wait; }
@keyframes connection-notice-enter { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes connection-pulse { 50% { opacity: .45; } }
@media (max-width: 420px) { #components-reconnect-modal { gap: 9px; padding: 11px; } }
@media (prefers-reduced-motion: reduce) { #components-reconnect-modal, #components-reconnect-modal .connection-wifi { animation: none !important; } }
