.offline-backdrop{position:fixed;inset:0;background:#14231bb3;z-index:120;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;padding:20px}
.offline-dialog{box-sizing:border-box;min-width:0;width:min(680px,100%);max-height:94dvh;overflow:auto;background:#fff;border-radius:14px;color:#202e27;font:16px/1.5 system-ui;box-shadow:0 20px 70px #12251b40}
.offline-dialog header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid #e1e9e5;padding:16px 22px;z-index:1}
.offline-dialog h2{font-size:22px;margin:0}.offline-dialog header button{background:none;border:0;font-size:28px;min-width:44px;min-height:44px;color:#456755}
.offline-body{min-width:0;padding:20px 22px;overflow-wrap:anywhere}.offline-body form{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.offline-body label{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:6px;font-weight:650}.offline-body input,.offline-body textarea,.offline-body select{padding:12px;border:1px solid #b9c6bf;border-radius:7px;font:16px system-ui;min-width:0;width:100%;box-sizing:border-box}.offline-body textarea{min-height:100px}.offline-body small{font-size:13px;font-weight:400;overflow-wrap:anywhere}.offline-body button{white-space:normal;max-width:100%}
.offline-body .button{font:600 15px system-ui;min-height:46px;margin:4px 8px 4px 0;padding:12px 16px}.offline-operations article{border:1px solid #d8e0dc;border-radius:10px;padding:14px;margin-top:14px;overflow-wrap:anywhere}.offline-operations p{white-space:pre-wrap}#offline-notice{border-radius:8px;padding:12px;background:#e6ece9;white-space:pre-wrap}
.auth-locked>#offline-root:not(:empty){display:block!important}
@media(max-width:760px){.offline-backdrop{padding:0;align-items:end}.offline-dialog{border-radius:16px 16px 0 0;max-height:96dvh}.offline-body{padding:18px 16px calc(24px + env(safe-area-inset-bottom))}.topbar .top-actions{flex-wrap:wrap;justify-content:flex-end}#offline-state{font-size:12px;padding:8px;min-height:44px}}
