/* V44 email/password auth + permanent profile avatar + account sheet */
html,body{translate:no}
.header-profile-link{
  display:flex!important;
  margin-left:auto;
  width:42px;height:42px;
  align-items:center;justify-content:center;
  border-radius:50%;
  border:1px solid rgba(183,138,90,.5);
  background:rgba(10,9,8,.72);
  color:#d8a15f;
  text-decoration:none;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.25)
}
.header-profile-link img{width:100%;height:100%;object-fit:cover}
.header-profile-monogram{font:700 14px/1 system-ui,sans-serif;letter-spacing:.04em}
.header-account-actions{display:none!important}

.account-sheet-backdrop{
  position:fixed;inset:0;z-index:15000;
  background:rgba(0,0,0,.48);
  backdrop-filter:blur(8px);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:.28s ease
}
.account-sheet-backdrop.open{opacity:1;visibility:visible;pointer-events:auto}
.account-sheet{
  position:absolute;
  left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));
  max-width:520px;margin:auto;
  border:1px solid rgba(183,138,90,.38);
  border-radius:24px;
  background:linear-gradient(145deg,#15120f,#090909);
  padding:20px;
  transform:translateY(28px) scale(.98);
  transition:.32s cubic-bezier(.2,.8,.2,1);
  box-shadow:0 28px 80px rgba(0,0,0,.48)
}
.account-sheet-backdrop.open .account-sheet{transform:none}
.account-sheet-head{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.account-sheet-avatar{
  width:52px;height:52px;border-radius:50%;overflow:hidden;
  display:grid;place-items:center;border:1px solid rgba(183,138,90,.45);
  color:#d8a15f;background:#100e0c;font-weight:800
}
.account-sheet-avatar img{width:100%;height:100%;object-fit:cover}
.account-sheet h3{margin:0;font-family:"Playfair Display",Georgia,serif;font-size:24px;color:#f2ebe3}
.account-sheet p{margin:4px 0 0;color:#aaa299;font-size:12px}
.account-sheet-links{display:grid;gap:10px;margin-top:16px}
.account-sheet-links a,.account-sheet-links button{
  width:100%;min-height:46px;padding:11px 15px;
  display:flex;align-items:center;justify-content:space-between;
  border:1px solid rgba(183,138,90,.28);border-radius:14px;
  background:rgba(255,255,255,.03);color:#eee5dc;text-decoration:none;
  font:600 13px/1 system-ui,sans-serif
}
.account-sheet-links .primary{background:#b78a5a;color:#080808}
.account-sheet-close{
  position:absolute;top:14px;right:14px;
  width:36px;height:36px;border-radius:50%;
  border:1px solid rgba(183,138,90,.3);
  background:#0c0b0a;color:#d8a15f;font-size:22px
}

/* Auth page cleanup */
.auth-grid{grid-template-columns:1fr!important;max-width:620px;margin:auto}
.auth-card.project-identity-card{display:none!important}
.auth-card h1{font-size:clamp(38px,7vw,64px)!important}
.auth-password-wrap{position:relative}
.auth-password-toggle{
  position:absolute;right:10px;top:50%;transform:translateY(-50%);
  border:0;background:transparent;color:#c99961;font-size:12px
}
.auth-helper{font-size:12px;color:#918a83;line-height:1.6}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}
.auth-tab{
  min-height:42px;border-radius:999px;border:1px solid rgba(183,138,90,.3);
  background:transparent;color:#ddd3c8;font-weight:700
}
.auth-tab.active{background:#b78a5a;color:#090909}
.auth-login-only{display:none}
.auth-mode-login .auth-register-only{display:none!important}
.auth-mode-login .auth-login-only{display:block!important}
.auth-mode-login .auth-tabs{margin-bottom:14px}
@media(max-width:520px){
  .header-profile-link{width:39px;height:39px}
}
