/* Sign-in screen, save status, account/data panel, conflict banner. */

.auth-screen {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: #151419; padding: 24px;
}
.auth-card {
  background: #fff; border-radius: 14px; padding: 32px 28px; width: min(400px, 100%);
  text-align: center; box-shadow: 0 20px 70px #0007;
}
.auth-card img { height: 56px; width: auto; margin: 0 auto 18px; display: block; }
.auth-card h1 { font-size: 22px; margin: 0 0 6px; }
.auth-card p { color: var(--muted); margin: 0 0 20px; }
.auth-card .btn { width: 100%; min-height: 48px; font-size: 16px; }
.auth-card .auth-error { color: #b00020; margin-top: 12px; }

.data-tools { margin-top: 18px; padding-top: 14px; border-top: 1px solid #ffffff1f; color: #bdb8c6; font-size: 12px; }
.side .data-tools { position: absolute; left: 16px; right: 16px; bottom: 18px; }
.data-tools .who { color: #fff; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-tools .data-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.data-tools .btn.small { background: transparent; color: #ddd; border-color: #ffffff33; padding: 6px 10px; min-height: 34px; font-size: 12px; }
.menu-sheet .data-tools .btn.small { min-height: 44px; font-size: 14px; flex: 1 1 auto; }

.save-status { display: inline-flex; align-items: center; gap: 6px; }
.save-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; }
.save-status[data-state="busy"]::before { background: #f4a62a; }
.save-status[data-state="error"]::before { background: #ff5a5f; }
.save-status[data-state="local"]::before { background: #9a94a6; }

.conflict-banner, .boot-error {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #2a1414; color: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 10px 40px #0006;
}
.boot-error { position: static; margin: 16px; }

/* Hide the empty app until data has loaded (and the user is signed in). */
html:not([data-ready="true"]) .app { visibility: hidden; }
