/* Minimal styles for the first online test deploy (App Developer's online.css replaces this later). */
.pa-auth { position: fixed; inset: 0; z-index: 10000; background: var(--bg, #0c1f1a); overflow-y: auto; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); }
.pa-auth-card { width: 100%; max-width: 440px; margin: auto 0; }
.pa-auth-card h2 { margin: 4px 0 8px; }
.pa-auth-card .field { display: block; margin: 12px 0 4px; }
.pa-auth-card .field input { width: 100%; box-sizing: border-box; }
.pa-note, .pa-lede { font-size: 0.85rem; color: var(--ink-soft, #5c5146); margin: 4px 0; }
.pa-warn { font-size: 0.9rem; font-weight: 700; color: var(--rose, #a33); margin: 10px 0; }
.pa-busy { font-size: 0.9rem; margin: 8px 0; }
.pa-lang { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.pa-test-banner { background: #fff3cd; color: #5c4400; border: 1px solid #e6c766; border-radius: 8px; padding: 6px 10px; font-size: 0.85rem; font-weight: 700; margin: 0 0 8px; text-align: center; }
.pa-sync-pill { position: fixed; z-index: 9000; top: calc(6px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); border: 1px solid var(--line, #e0d6c4); border-radius: 999px; background: var(--surface, #f6f1e6); color: var(--ink, #1a1610); font-size: 0.75rem; padding: 3px 10px; max-width: 80vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-sync-pill[data-status="pending"], .pa-sync-pill[data-status="offline"] { background: #fff3cd; }
.pa-sync-pill[data-status="conflict"], .pa-sync-pill[data-status="error"], .pa-sync-pill[data-status="signedOut"] { background: #f8d7da; }
/* rc3 PAO-C-001: do not force 4 columns or overflow-wrap:anywhere — that broke words mid-word on phones.
   Column counts come from App Dev's online.css (2, then 3 at ≥420px; 3 in print). Keep the phrase unselectable
   and cancel any inherited overflow-wrap so a word is never split. */
.pa-auth #pa-rec .pa-on-words:not(.pa-on-words-in) { -webkit-user-select: none; user-select: none; }
.pa-auth #pa-rec .pa-on-words:not(.pa-on-words-in) .pa-on-word,
.pa-auth #pa-rec .pa-on-words:not(.pa-on-words-in) .pa-on-word-text {
  overflow-wrap: normal; word-break: keep-all; white-space: nowrap;
}
@media print {
  html.pa-online body > *:not(#pa-auth) { display: none !important; }
  #pa-auth { position: static; background: #fff; }
  #pa-auth .pa-on-auth, #pa-auth button, #pa-auth .pa-on-lede { display: none !important; }
}
/* rc4 (IT): Turnstile slot, privacy/terms view, change-passphrase hooks. */
.pa-on-challenge { margin: 10px 0; min-height: 0; max-width: 100%; overflow-x: auto; }
.pa-on-challenge .pa-ts { width: 100%; }
.pa-on-legal { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.pa-on-legal .pa-on-link, .pa-on-rc4 .pa-on-link { min-height: 44px; }
.pa-on-rc4 { margin-top: 12px; }
.pa-legal { z-index: 10001; }
.pa-legal-card { max-width: 680px; }
.pa-legal-draft { background: #fff3cd; color: #5c4400; border: 1px solid #e6c766; border-radius: 8px; padding: 8px 10px; font-weight: 700; margin: 0 0 8px; }
.pa-legal-body { line-height: 1.6; overflow-wrap: break-word; }
.pa-legal-body .pa-legal-h { margin: 18px 0 6px; line-height: 1.35; }
.pa-legal-body p, .pa-legal-body li { margin: 6px 0; }
.pa-legal-body .pa-legal-list { padding-left: 1.3em; }
.pa-legal-note { border-left: 3px solid #e6c766; padding-left: 10px; font-size: 0.9rem; }
.pa-legal-scroll { overflow-x: auto; margin: 8px 0; }
.pa-legal-table { border-collapse: collapse; font-size: 0.85rem; min-width: 520px; }
.pa-legal-table th, .pa-legal-table td { border: 1px solid var(--line, #e0d6c4); padding: 6px; vertical-align: top; text-align: start; }
.pa-legal-ph { background: #ffe08a; color: #1a1610; padding: 0 2px; border-radius: 3px; }
/* rc4 QA Compat PAO-C-004 (residual): the page container and the body-level sync pill must clear the fixed tab bar.
   The pill is appended to <body> after <main>, so both get bottom room equal to the tab bar + safe area + a margin. */
body:not(.onboarding-mode):not(.lock-mode) main { padding-bottom: calc(var(--tab-h, 64px) + var(--safe-b, 0px) + 36px); }
body:not(.onboarding-mode):not(.lock-mode) { padding-bottom: calc(var(--tab-h, 64px) + var(--safe-b, 0px) + 12px); }
