.components-reconnect-first-attempt-visible,.components-reconnect-repeated-attempt-visible,.components-reconnect-failed-visible,.components-pause-visible,.components-resume-failed-visible,.components-rejoining-animation{display:none}
#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible{display:block}
#components-reconnect-modal{box-sizing:border-box;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:28px;border:1px solid #a8c97f66;border-radius:24px;background:#173e2e;color:#f5f7ef;box-shadow:0 24px 80px #0a201d66;font-family:Inter,Segoe UI,sans-serif;text-align:center;overflow-y:auto}
#components-reconnect-modal::backdrop{background:#0a201da6;backdrop-filter:blur(5px)}
.components-reconnect-container{display:flex;flex-direction:column;align-items:center;gap:16px}
.lean-reconnect-brand{display:flex;gap:8px;align-items:center;letter-spacing:.05em;font-size:15px;font-weight:800}
.lean-reconnect-brand>svg{width:32px;height:32px}.lean-reconnect-brand span span{font-weight:300;color:#e8c96a}
.lean-reconnect-signal{position:relative;width:80px;height:80px;display:grid;place-items:center;background:#a8c97f12;border:1px solid #a8c97f40;border-radius:50%}
.lean-reconnect-signal svg{width:55px;height:55px;fill:none;stroke:#a8c97f;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.components-rejoining-animation{position:absolute;inset:-5px;border:2px solid transparent;border-top-color:#e8c96a;border-radius:50%;animation:lean-connection-orbit 1.8s linear infinite}
#lean-reconnect-title{font-size:23px;font-weight:700;line-height:1.25;margin:0;color:#fff9ed;letter-spacing:-.02em}
.reconnect-text-area p{font-size:14px;line-height:1.6;margin:0;color:#e2ebdc}
#components-seconds-to-next-attempt{font-weight:700;color:#e8c96a}
.lean-reconnect-note{font-size:12px;line-height:1.6;margin:0;padding:12px;background:#ffffff09;border-radius:12px;color:#d3dfcb}
.btn-reconnect{width:100%;min-height:46px;padding:12px 16px;border:1px solid #edcd73;background:#e8c96a;color:#173e2e;border-radius:12px;font:600 14px Inter,Segoe UI,sans-serif;cursor:pointer}
.btn-reconnect:hover{background:#f0d991}.btn-reconnect:focus-visible{outline:3px solid #f5f7ef;outline-offset:3px}
.lean-reconnect-signature{font-size:11px;color:#b9cbb6}
.lean-reconnect-brand{flex-wrap:wrap}
.lean-reconnect-developer{display:grid;gap:3px;padding-left:12px;margin-left:4px;border-left:1px solid #a8c97f44;text-decoration:none;color:#d3dfcb;text-align:left;line-height:1.15}
.lean-reconnect-developer small{font-size:9px;font-weight:400;letter-spacing:0}
.lean-reconnect-developer strong{font-size:11px;font-weight:750;letter-spacing:.02em;color:#f5f7ef}
.lean-reconnect-developer:focus-visible{outline:2px solid #e8c96a;outline-offset:5px;border-radius:3px}
@keyframes lean-connection-orbit{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.components-rejoining-animation{animation:none}}
@media(max-width:400px){#components-reconnect-modal{padding:22px;gap:12px}}
/* Existing application dialog rules use !important; keep the offline shell independent. */
#components-reconnect-modal.lean-reconnect-dialog{background:#173e2e!important;color:#f5f7ef!important;width:min(420px,calc(100vw - 32px))!important;max-width:420px!important;max-height:calc(100dvh - 32px)!important;margin:auto!important;padding:28px!important;border:1px solid #a8c97f66!important;border-radius:24px!important;box-shadow:0 24px 80px #0a201d66!important;opacity:1!important}
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-first-attempt-visible{display:none!important}
