/* 계정 화면도 장부와 같은 색·글꼴을 사용한다. 로컬 모드에는 영향을 주지 않는다. */
html[data-auth="checking"] .view,
html[data-auth="checking"] .tabbar,
html[data-auth="locked"] .view,
html[data-auth="locked"] .tabbar { display: none !important; }

.auth-gate {
  position: fixed; inset: 0; overflow-y: auto;
  padding: calc(var(--st) + 24px) max(24px, var(--sr)) calc(var(--sb) + 24px) max(24px, var(--sl));
  background: var(--canvas);
  scroll-padding-block: 20px;
  -webkit-overflow-scrolling: touch;
}
.auth-page { max-width: 420px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; }
.auth-brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.auth-brand img { border-radius: 7px; }
.auth-content { padding-block: clamp(32px, 7vh, 72px) 24px; }
.auth-content h1 { margin: 0; font-size: 28px; line-height: 1.3; letter-spacing: -.03em; }
.auth-intro { margin-top: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.auth-content form { margin-top: 28px; }
.auth-field { margin-bottom: 20px; }
.auth-field > label { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.auth-field input {
  display: block; width: 100%; min-width: 0; height: 54px; padding: 0 16px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-ctl); font-size: 16px;
}
.auth-field input[aria-invalid="true"] { border-color: var(--seal-ink); }
.auth-field input:disabled { opacity: .7; }
.auth-password { position: relative; }
.auth-password input { padding-right: 76px; }
.auth-password button { position: absolute; right: 5px; top: 5px; height: 44px; min-width: 62px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.auth-password button:active { background: var(--press); }
.auth-help { margin-top: 8px; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.auth-error { margin-block: 4px 16px; color: var(--seal-ink); font-size: 14px; line-height: 1.6; }
.auth-checking { margin-block: 28px 20px; color: var(--ink-2); }
.auth-switch { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: 4px; margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.auth-switch .text-btn { min-height: 44px; }
.auth-footnote { margin-top: auto; padding-top: 16px; color: var(--ink-3); font-size: 13px; }
.account-name { margin-top: 16px; font-size: 18px; font-weight: 600; }
.account-email { margin-top: 2px; color: var(--ink-3); font-size: 14px; overflow-wrap: anywhere; }
.account-sync { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; line-height: 1.6; }
.account-sync[data-kind="error"], .account-sync[data-kind="conflict"], .account-sync[data-kind="offline"] { color: var(--seal-ink); }
.account-recovery { display: flex; flex-wrap: wrap; margin: 8px -8px -8px; gap: 4px; }
.account-recovery .text-btn { font-size: 14px; min-height: 44px; padding-inline: 8px; }
.account-import, .account-drafts { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.account-import p, .account-drafts p { margin-bottom: 12px; color: var(--ink-2); font-size: 14px; }
.account-import .btn, .account-drafts .btn { font-size: 15px; }
.account-sync-banner {
  position: fixed; inset: 0 0 auto; max-width: 520px; margin-inline: auto;
  display: flex; align-items: center; gap: 12px;
  padding: calc(var(--st) + 6px) max(16px, var(--sr)) 6px max(20px, var(--sl));
  background: var(--seal-weak); color: var(--seal-ink);
}
.account-sync-banner p { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.5; }
.account-sync-banner .text-btn { flex: none; min-width: 48px; min-height: 44px; color: var(--seal-ink); }
html[data-auth-problem] .view { top: var(--auth-problem-height, 56px); padding-top: 4px; }
@media (orientation: landscape) and (max-height: 540px) {
  .account-sync-banner { left: var(--rail); max-width: none; }
}
@media (max-height: 600px) {
  .auth-gate { padding-top: calc(var(--st) + 16px); }
  .auth-content { padding-top: 24px; }
  .auth-content form { margin-top: 24px; }
}
@media (min-width: 700px) {
  .auth-gate { padding-top: calc(var(--st) + 48px); }
}

/* 앱 설정의 가입 요청 카드에서 관리자 대시보드(admin.html)로 */
.admin-open { margin-top: 16px; text-decoration: none; }
