:root { color-scheme: light; font-family: "Source Sans 3", system-ui, sans-serif; background: #effbf8; color: #123d38; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); background: radial-gradient(circle at top, #d9fff4, #f7fbfa 60%); }
.offline-shell { width: min(720px, 100%); margin: 0 auto; }
header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
header p { margin: 0; font-weight: 800; color: #08776b; }
h1 { margin: 0; font-size: clamp(1.5rem, 5vw, 2.35rem); line-height: 1.05; }
.offline-mark { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 15px; background: #08776b; color: white; font-weight: 900; }
.offline-card { border: 1px solid #b8ded7; border-radius: 24px; padding: clamp(20px, 5vw, 34px); background: rgba(255,255,255,.93); box-shadow: 0 20px 60px rgba(16,77,67,.12); }
form { display: grid; gap: 12px; margin: 24px 0; }
label { font-weight: 800; }
input { width: 100%; min-height: 48px; padding: 10px; border: 1px solid #91c9bf; border-radius: 12px; background: white; color: #123d38; }
button, a { min-height: 48px; border: 0; border-radius: 12px; padding: 12px 18px; background: #08776b; color: white; font: inherit; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
#offlineProgressPanel > div { display: flex; justify-content: space-between; gap: 12px; }
progress { width: 100%; accent-color: #08776b; }
.offline-result { margin-top: 20px; padding: 16px; border-radius: 16px; background: #e6f8f3; }
.offline-result a { display: inline-flex; align-items: center; margin-top: 8px; }
#offlineStatus.error { color: #a32323; font-weight: 700; }
aside { margin-top: 24px; padding: 14px; border-radius: 14px; background: #f2f5f4; font-size: .92rem; }
.hidden { display: none !important; }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; background: #081d1a; color: #e6fff9; } body { background: radial-gradient(circle at top, #123a34, #071411 60%); } .offline-card { background: rgba(13,37,33,.96); border-color: #29685e; } input { background: #0c2823; color: #e6fff9; border-color: #347d70; } .offline-result, aside { background: #133c35; } }
