#connection-dialog { position: fixed; inset: 0; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 0; border-radius: 10px; box-shadow: 0 12px 40px #0004; background: white; color: #333; font: 1rem/1.6 sans-serif; box-sizing: border-box; overflow: auto; }
#connection-dialog::backdrop { background: rgb(0 0 0 / .8); }
#connection-dialog h2 { font-size: 1.4rem; margin: 0 0 12px; }
#connection-dialog p { margin: 12px 0; }
#connection-dialog p:empty { display: none; }
#connection-dialog button { margin-top: 8px; padding: 10px 18px; border: 0; border-radius: 4px; background: #0056b3; color: white; font: inherit; cursor: pointer; }
#connection-dialog button:disabled { opacity: .6; cursor: wait; }
