[hidden] { display: none !important; }

.auth-overlay { z-index: 5000; background: var(--bg-primary); }
.auth-card { max-width: 400px; }
.auth-brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; text-align: center; padding: 26px 22px 0; }
.auth-subtitle { text-align: center; color: var(--text-secondary); font-size: 0.88rem; padding: 6px 22px 0; }
.auth-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-submit { width: 100%; justify-content: center; }
.auth-submit:disabled { opacity: 0.6; cursor: wait; }
.auth-message { font-size: 0.86rem; line-height: 1.4; }
.auth-message:empty { display: none; }
.auth-message.error { color: #e08a8a; }
.auth-message.ok { color: var(--accent-secondary); }
html[data-theme="light"] .auth-message.error { color: #a13b3b; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 14px; }
.auth-link { background: none; border: none; padding: 6px 0; color: var(--accent); font: inherit; font-size: 0.86rem; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.auth-note { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.45; }
.auth-note a { color: var(--accent); }
.auth-guest { display: block; width: 100%; text-align: center; margin-top: 8px; color: var(--text-secondary); }

.link-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.link-actions .btn { width: 100%; justify-content: center; }

.tab-block-overlay { z-index: 6000; }

.sync-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; margin-right: 8px; border: 1px solid var(--border-color); border-radius: 999px; background: var(--bg-secondary); color: var(--text-secondary); font: inherit; font-size: 0.74rem; white-space: nowrap; cursor: pointer; }
.sync-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--text-secondary); flex-shrink: 0; }
.sync-chip[data-status="synced"]::before { background: var(--accent-secondary); }
.sync-chip[data-status="syncing"]::before { background: var(--accent); }
.sync-chip[data-status="offline"]::before { background: var(--accent-warning); }
.sync-chip[data-status="error"]::before, .sync-chip[data-status="auth"]::before { background: var(--accent-danger); }
@media (max-width: 640px) {
    .sync-chip { padding: 8px; }
    .sync-chip span { display: none; }
    .sync-chip[data-status="error"] span, .sync-chip[data-status="auth"] span { display: inline; }
}

.account-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 0.9rem; flex-wrap: wrap; }
.account-row span:first-child { color: var(--text-secondary); }
.account-value { overflow-wrap: anywhere; }
.account-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.account-note { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.45; margin-bottom: 14px; }
.account-install { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-color); }
.account-privacy { display: inline-block; margin-top: 14px; color: var(--accent); font-size: 0.84rem; }
