html { color-scheme: dark; background: #121212; }
body { margin: 0; background: #121212; color: #e1e1e1; }
.offline { position: fixed; z-index: 100; bottom: max(12px, env(safe-area-inset-bottom)); right: max(12px, env(safe-area-inset-right)); box-sizing: border-box; width: min(420px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; font: 14px/1.55 'Proza Libre', sans-serif; background: #181d1cf5; border: 1px solid #288a8277; border-radius: 12px; box-shadow: 0 6px 30px #0007; }
.offline:not([open]) { width: max-content; max-width: calc(100vw - 24px); }
.offline summary { padding: 11px 15px; cursor: pointer; color: #e1e1e1; font-size: 13px; }
.offline summary:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 12px; }
.offline[data-state="ready"] summary { color: #6bd0be; }
.offline[data-state="error"] summary { color: #e8b7cb; }
.offline-content { padding: 2px 17px 17px; }
.offline h2 { font: 700 21px/1.25 'Cormorant Garamond', Georgia, serif; margin: 0 0 5px; color: #f2f2f2; }
.offline p { margin: 6px 0; max-width: 78ch; }
.offline progress { display: block; width: min(100%, 600px); height: 8px; accent-color: #3fa79d; margin: 12px 0; }
.offline .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.offline button { font: inherit; color: #fff; background: #288a82; border: 1px solid #3fa79d; border-radius: 7px; padding: 9px 13px; cursor: pointer; }
.offline button.secondary { background: transparent; color: #e1e1e1; border-color: #ffffff33; }
.offline button:disabled { opacity: .55; cursor: progress; }
.offline button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.offline [hidden] { display: none; }
.offline small { color: #b8c0be; display: block; margin-top: 10px; }
noscript { display: block; padding: 2rem; font: 1rem/1.6 sans-serif; }
