#ofm-opening {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f7f5f0;
    color: #984d32;
    font: 600 28px Georgia, serif;
}
.ofm-shell ~ #ofm-opening { display: none; }
#components-reconnect-modal {
    --card: #fffefa;
    --ink: #262d2b;
    --muted: #58645c;
    --action: #984d32;
    --on-action: white;
    box-sizing: border-box;
    width: min(23rem, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 22px;
    border: 0;
    border-radius: 16px;
    color: var(--ink);
    background: var(--card);
    font: 400 16px/1.5 system-ui, sans-serif;
}
#components-reconnect-modal[open] { box-shadow: 0 12px 48px rgb(22 29 24 / 22%); }
#components-reconnect-modal::backdrop { background: rgb(25 32 28 / 36%); }
#ofm-connection-title { margin: 0; font: 400 25px/1.2 Georgia, serif; }
#ofm-connection-title:focus { outline: none; }
#ofm-connection-note { margin: 9px 0 0; color: var(--muted); }
#ofm-connection-action {
    margin-top: 16px;
    min-height: 44px;
    padding: 8px 18px;
    border: 0;
    border-radius: 10px;
    color: var(--on-action);
    background: var(--action);
    font: inherit;
    cursor: pointer;
}
#ofm-connection-action:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
html[data-ofm-theme="dark"] #components-reconnect-modal {
    --card: #242a24; --ink: #f7f5ed; --muted: #c1c8b9; --action: #efa78c; --on-action: #2b211e;
}
@media (prefers-color-scheme: dark) {
    html:not([data-ofm-theme="light"]) #components-reconnect-modal {
        --card: #242a24; --ink: #f7f5ed; --muted: #c1c8b9; --action: #efa78c; --on-action: #2b211e;
    }
    html:not([data-ofm-theme="light"]) #ofm-opening { background: #202420; color: #efa78c; }
}
