* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: system-ui, sans-serif; }
.auth-main { max-width: 640px; margin: auto; padding: 16px 16px 32px; }
.auth-main > h1 { font-size: 1.6rem; }
.auth-main h2 { font-size: 1.15rem; margin: 0 0 12px; }
.auth-card { margin: 18px 0; padding: 18px; border: 1px solid var(--theme-border); border-radius: var(--theme-card-radius); background: var(--theme-surface); }
.auth-card p { line-height: 1.5; }
.auth-card label { display: block; margin-bottom: 6px; }
.auth-card input { width: 100%; min-height: 44px; padding: 10px; font: inherit; margin-bottom: 12px; }
.auth-main button { min-height: 44px; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.auth-row { padding: 12px 0; border-bottom: 1px solid var(--theme-border); overflow-wrap: anywhere; }
.auth-row p { margin: 4px 0; }
.auth-row small { color: var(--theme-muted); }
.auth-danger { color: var(--theme-danger); border-color: var(--theme-danger); background: var(--theme-danger-surface); }
#auth-status { white-space: pre-wrap; overflow-wrap: anywhere; }
#auth-status:empty { display: none; }
#auth-status[data-error="true"] { color: var(--theme-danger); }
.auth-logo { display: block; width: 72px; height: 72px; border-radius: 16px; margin: 24px 0 12px; }
#invite-result { overflow-wrap: anywhere; }
#invite-url { width: 100%; min-height: 90px; font: inherit; font-size: .85rem; padding: 8px; }
#auth-expired { position: fixed; inset: auto 0 0; z-index: 100; padding: 16px; background: #fff5de; color: #253b4c; border-top: 2px solid #754b00; font: 1rem/1.5 system-ui,sans-serif; }
#auth-expired a { color: #335e80; }
@media print { #auth-expired { display: none; } }
