.account-button, .account-login { min-height: 40px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-raised); color: var(--text); font: inherit; cursor: pointer; }
.account-login { background: #fff; color: #1f1f1f; border-color: #747775; font-weight: 600; }
.account-button:hover { background: var(--surface-hover); }
.account-button:disabled { opacity: .6; cursor: wait; }
.account-identity { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-notice { padding: 12px 15px; margin: 18px 0; border: 1px solid var(--border); border-radius: 6px; color: var(--text-secondary); line-height: 1.6; overflow-wrap: anywhere; }
.account-notice[role="alert"] { color: var(--danger-text); border-color: var(--danger-border); }
.project-tabs { display: flex; gap: 8px; margin: 28px 0 0; flex-wrap: wrap; }
.project-tabs button[aria-pressed="true"] { background: var(--surface-hover); border-color: var(--focus); }
.account-project-card { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.account-project-card h2 { margin: 0 0 10px; font-size: 15px; overflow-wrap: anywhere; }
.account-project-card p { color: var(--text-muted); font-size: 12px; }
.account-project-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.account-danger { color: var(--danger-text); background: var(--danger-surface); border-color: var(--danger-border); }
.account-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 26px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 20px 80px #0008; overflow: auto; }
.account-dialog::backdrop { background: var(--overlay); backdrop-filter: blur(4px); }
.account-dialog h2 { margin: 0 0 12px; font-size: 21px; }
.account-dialog p { color: var(--text-secondary); line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.account-dialog label { display: block; margin: 18px 0 8px; }
.account-dialog input { min-height: 44px; font-size: 16px; }
.account-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.account-dialog-actions button { min-height: 44px; }
.project-choices { display: grid; gap: 10px; margin-top: 20px; }
.project-choices .project-choice { display: grid; gap: 5px; width: 100%; min-height: 48px; padding: 12px 14px; text-align: left; white-space: normal; }
.project-choice span { font-weight: 600; }
.project-choice small { font-size: 12px; line-height: 1.5; opacity: .85; }
#designer .toolbar .projects-back { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 34px; white-space: nowrap; }
.account-load-error { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; background: var(--page); }
.account-load-error > div { max-width: 480px; line-height: 1.7; color: var(--text); }
.account-load-error a { display: inline-block; margin-top: 18px; }
.account-save-state { max-width: 240px; text-overflow: ellipsis; overflow: hidden; }
