/* The offline app's own screens (first-run download, update bar). Pages use static/style.css. */
/* First-run screen: download the library once. */
.boot { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.boot-card { width: 100%; max-width: 30rem; background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--lapis); padding: 1.5rem 1.25rem; }
.boot-card img { width: 64px; height: 64px; border-radius: 14px; display: block; margin-bottom: 0.75rem; }
.boot-card h1 { margin: 0 0 0.5rem; font-size: var(--step-2); }
.boot-card p { margin: 0 0 0.9rem; }
.boot-langs { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; font-size: var(--step--1); margin-bottom: 1rem; }
.boot-langs button { font: inherit; background: none; border: 0; padding: 0.2rem 0; color: var(--ink-soft); cursor: pointer; }
.boot-langs button[aria-current="true"] { color: var(--ink); font-weight: 700; }
.boot-go { font: inherit; font-size: var(--step-0); width: 100%; min-height: 3rem; border: 0; background: var(--lapis); color: #fff; cursor: pointer; }
.boot-go[disabled] { opacity: 0.6; cursor: default; }
.boot-bar { height: 8px; background: var(--rule); margin: 1rem 0 0.4rem; overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.2s; }
.boot-small { font-size: var(--step--1); color: var(--ink-soft); }
.boot-error { color: #8a2a1b; }
.app-loading { padding: 2rem 16px; color: var(--ink-soft); text-align: center; }
.app-update { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding: 0.6rem 16px; background: var(--lapis-wash); border-bottom: 1px solid var(--rule); font-size: var(--step--1); }
.app-update button { font: inherit; border: 1px solid var(--lapis); background: var(--surface); color: var(--lapis); padding: 0.3rem 0.8rem; cursor: pointer; }
.app-update button[data-u="go"] { background: var(--lapis); color: #fff; }
/* The AI on this device (main.mjs aiPanel) */
.phone-ai { margin: 1rem 0 0; border: 1px solid var(--rule); background: var(--surface); padding: 0.6rem 0.9rem; font-size: var(--step--1); }
.phone-ai summary { cursor: pointer; font-weight: 700; color: var(--lapis); }
.phone-ai[open] summary { margin-bottom: 0.6rem; }
.phone-ai p { margin: 0 0 0.6rem; }
.phone-ai .boot-go { min-height: 2.6rem; font-size: var(--step--1); margin-bottom: 0.5rem; }
.phone-ai-better, .phone-ai-remove { font: inherit; width: 100%; min-height: 2.4rem; border: 1px solid var(--lapis); background: var(--surface); color: var(--lapis); cursor: pointer; }
.phone-ai-note { color: var(--ink); background: var(--lapis-wash); padding: 0.4rem 0.6rem; }
