html, body { margin: 0; height: 100%; background: #f3f5f9; font-family: system-ui, "Segoe UI", Arial, sans-serif; color: #1b2430; }
iframe#app { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: transparent; }
.boot { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #5a6475; font-size: 15px; }
.boot img { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 10px 26px rgba(42, 120, 214, .28); }
.sheet-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet-bg[hidden] { display: none; }
.sheet { background: #fff; width: min(440px, 100%); border-radius: 18px 18px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); }
@media (min-width: 600px) { .sheet-bg { align-items: center; } .sheet { border-radius: 18px; } }
.sheet h2 { margin: 0; font-size: 18px; }
.sheet p { margin: 0; overflow-wrap: anywhere; }
.sheet .hint { color: #5a6475; font-size: 13.5px; }
.btn { font: inherit; font-size: 15.5px; padding: 13px; border-radius: 12px; border: 1px solid #d5dbe5; background: #fff; color: #1b2430;
  cursor: pointer; text-align: center; text-decoration: none; display: block; }
.btn[hidden] { display: none; }
.btn.wa { background: #1fa855; border-color: #1fa855; color: #fff; font-weight: 600; }
.btn.ghost { border-color: transparent; color: #5a6475; }
@media (prefers-color-scheme: dark) {
  html, body { background: #0f1520; color: #e6ebf2; }
  .sheet { background: #182131; } .btn { background: #182131; color: #e6ebf2; border-color: #2c3a50; } .sheet .hint, .boot { color: #9aa6b8; }
}
