/* Bố cục trang bản web: banner (nếu có) + vùng Flutter chiếm phần còn lại. Màu theo Design/tokens.json. */
html, body {
  margin: 0;
  height: 100%;
  background: #F3F6FA;
  font-family: Roboto, -apple-system, "Segoe UI", system-ui, sans-serif;
  color: #1F2937;
}
body {
  display: flex;
  flex-direction: column;
}
#flutter-host {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

/* Màn hình chờ trong lúc tải Flutter */
#boot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.boot-logo { font-size: 32px; font-weight: 900; color: #0D47A1; }
.boot-text { color: #6B7280; }
.boot-spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #E3EEFB;
  border-top-color: #1565C0;
  border-radius: 50%;
  animation: boot-spin 0.9s linear infinite;
}
@keyframes boot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .boot-spinner { animation: none; } }

/* Banner "Mở ứng dụng" (open-app.js) */
.open-app {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
}
.open-app img { width: 40px; height: 40px; border-radius: 10px; }
.open-app .text { flex: 1 1 auto; min-width: 0; }
.open-app .title { font-weight: 800; font-size: 15px; }
.open-app .sub { font-size: 13px; color: #6B7280; }
.open-app .hint { font-size: 12px; color: #A65300; margin-top: 2px; }
.open-app .go {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: #C45100;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.open-app .go:active { background: #A84300; }
.open-app .close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #6B7280;
  font-size: 22px;
  line-height: 1;
}
