#launch-warning {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  padding: 12px 20px;
  background: #7d2f25;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 16px #0003;
}

#launch-warning[hidden] { display: none; }
#launch-warning code { background: #ffffff24; padding: 3px 6px; border-radius: 5px; }

.tab { text-decoration: none; }

/* Navegação mínima mesmo quando o JavaScript ainda não carregou. */
.view:target { display: block; }
body:has(.view:target) .view.active:not(:target) { display: none; }

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 80% 10%, #dce7c3 0, transparent 32%), var(--paper);
}
.auth-screen[hidden] { display: none; }
.auth-card { width: min(430px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: 0 24px 70px #173f3530; text-align: center; }
.auth-card h1 { margin: 4px 0 8px; color: var(--ink); font: 42px Georgia, serif; text-wrap: balance; }
.auth-card p { margin: 0 auto 24px; color: var(--muted); max-width: 330px; text-wrap: pretty; }
.auth-card form { display: grid; gap: 14px; text-align: left; }
.auth-home { width: 58px; height: 58px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 18px; background: var(--green); color: white; font-size: 30px; }
.auth-switch { margin-top: 16px; border: 0; background: transparent; color: var(--green); font-weight: 750; cursor: pointer; }
.auth-card > small { display: block; margin-top: 13px; color: var(--muted); }
.logout { border: 1px solid var(--line); border-radius: 99px; padding: 7px 12px; background: var(--surface); color: var(--ink); cursor: pointer; }

@media (max-width: 650px) {
  #launch-warning { align-items: flex-start; flex-direction: column; gap: 4px; }
}

#toast {
  bottom: calc(22px + env(safe-area-inset-bottom));
  right: calc(22px + env(safe-area-inset-right));
}
