.codefx-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  animation: codefx-fade-in 0.2s;
}
.codefx-modal {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 90%; max-width: 400px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.codefx-modal h2 { margin-bottom: 1.5rem; font-size: 1.25rem; font-weight: 700; }
.codefx-modal label {
  display: block; margin-bottom: 1rem; font-size: 0.875rem;
  color: var(--color-text-muted);
}
.codefx-modal input {
  display: block; width: 100%; margin-top: 0.25rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.codefx-modal-close {
  position: absolute; top: 0.75rem; right: 1rem;
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--color-text-muted);
  line-height: 1;
}
@keyframes codefx-fade-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
#auth-state { display: flex; align-items: center; }
.auth-user-panel { display: flex; align-items: center; gap: 0.625rem; }
.auth-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; cursor: pointer;
}
.auth-username { font-size: 0.85rem; font-weight: 500; color: var(--color-text); }
.account-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  animation: codefx-fade-in 0.2s;
}
.account-panel {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 90%; max-width: 420px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.account-close {
  position: absolute; top: 0.75rem; right: 1rem;
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--color-text-muted); line-height: 1;
}
.account-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.account-avatar-large {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.5rem; flex-shrink: 0;
}
.account-section label {
  display: block; margin-bottom: 0.75rem; font-size: 0.875rem;
  color: var(--color-text-muted);
}
.account-section input {
  display: block; width: 100%; margin-top: 0.25rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}