#authDialog {
  width: min(425px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border-radius: 10px;
  background: var(--surface);
  overflow-y: auto;
}
#authDialog::backdrop { background: rgb(0 0 0 / 78%); backdrop-filter: none; }
#authDialog .dialog-close { top: 12px; right: 14px; font-size: 22px; line-height: 24px; }
#authDialog h2 { font-size: 22px; line-height: 30px; margin: 0; font-weight: 700; }
#authDialog > p { margin: 8px 0 24px; font-size: 14px; line-height: 20px; }
#authDialog .google-button {
  width: 100%; height: 36px; margin: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); background: var(--surface);
  box-shadow: 0 1px 3px rgb(0 0 0 / 8%); font-size: 14px;
}
#authDialog .google-button:hover { background: var(--bg); }
.google-mark { display: inline-flex; flex: 0 0 18px; width: 18px; height: 18px; }
.google-mark svg { display: block; width: 18px; height: 18px; fill: currentColor; stroke: none; }
#authDialog .or { margin: 24px 0; font-size: 14px; line-height: 20px; gap: 8px; }
#authForm label { margin: 0 0 20px; font-size: 14px; line-height: 20px; }
#authForm input { height: 36px; margin-top: 4px; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
#authForm .button { height: 36px; margin: 4px 0 0; padding: 7px 12px; font-weight: 500; }
#authDialog .auth-switch { margin: 24px auto; font-size: 14px; line-height: 20px; }
.auth-legal { color: var(--muted); text-align: center; font-size: 12px; line-height: 16px; }
.auth-legal button { padding: 0; color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
#authError { font-size: 12px; margin: 0 0 16px; }
#linkGoogle { color: var(--accent); text-decoration: underline; }
@media(max-width: 480px) { #authDialog { padding: 24px; } }
