:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1e3a8a; background: #f5f7fc; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; }
body { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
#install-bar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(7px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 7px max(14px, env(safe-area-inset-left, 0px)); background: #fff; border-bottom: 1px solid #e1e7f2; font-size: 12px; font-weight: 600; }
#install-open { min-height: 34px; border: 1px solid #d5e1fb; border-radius: 8px; padding: 6px 10px; color: #1e3a8a; background: #f1f5ff; font-size: 12px; font-weight: 650; }
#app-frame { flex: 1; min-height: 0; padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
body.standalone #app-frame { padding-top: env(safe-area-inset-top, 0px); }
#flutter-host { position: relative; height: 100%; width: 100%; overflow: hidden; }
#app-loading { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px; text-align: center; background: #f5f7fc; }
#app-loading img { width: 180px; max-width: 70%; height: auto; }
#app-loading p { margin: 0; line-height: 1.5; }
#loading-help { max-width: 320px; color: #53647b; font-size: 14px; }
#loading-retry, #install-done, #browser-install { min-height: 44px; border: 0; border-radius: 10px; padding: 11px 20px; background: #2563eb; color: #fff; font-weight: 650; }
.loading-ring { width: 28px; height: 28px; border: 3px solid #e0e7f0; border-top-color: #2563eb; border-radius: 50%; animation: spin .8s linear infinite; }
dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); margin: auto; overflow-y: auto; border: 0; border-radius: 20px; padding: 24px; color: #182e60; background: #fff; box-shadow: 0 18px 60px #0b1b3d40; }
dialog::backdrop { background: #0b1b3d75; }
.guide-heading { display: flex; align-items: flex-start; gap: 16px; }
.guide-heading h1 { margin: 0; font-size: 23px; line-height: 1.25; }
#install-dismiss { flex: 0 0 34px; height: 34px; margin: -7px -7px 0 auto; border: 0; border-radius: 50%; color: #53647b; background: #f0f4fa; font-size: 25px; line-height: 1; }
dialog h2 { font-size: 16px; margin: 22px 0 8px; }
dialog p, dialog li { font-size: 15px; line-height: 1.6; }
dialog ol { padding-left: 22px; }
dialog li { padding-left: 4px; margin-bottom: 8px; }
.guide-note { color: #65718a; font-size: 13px; }
#install-done { width: 100%; margin-top: 8px; }
#browser-install { width: 100%; margin: 6px 0 8px; }
noscript { padding: 24px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading-ring { animation: none; } }
