[hidden] { display: none !important; }
.site-account { position: relative; color: #f4f4f1; font: 500 13px/1.5 'DM Sans', sans-serif; }
.site-account-trigger {
  display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 6px 11px;
  border: 1px solid #ffffff16; border-radius: 10px; background: #111419; cursor: pointer;
  list-style: none; transition: background .16s, border-color .16s;
}
.site-account-trigger::-webkit-details-marker { display: none; }
.site-account-trigger::marker { content: ''; }
.site-account-trigger:hover, .site-account[open] .site-account-trigger { background: #191d24; border-color: #ffffff30; }
.site-account summary:focus-visible, .site-account-panel a:focus-visible, .site-account-panel button:focus-visible { outline: 2px solid #8ab4ff; outline-offset: 4px; }
.site-account-avatar { width: 28px; height: 28px; display: grid; place-items: center; flex: none; color: #a8c7ff; background: #8ab4ff10; border: 1px solid #8ab4ff0d; border-radius: 7px; font-size: 12px; font-weight: 600; }
.site-account-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; line-height: 1.15; }
.site-account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; font-size: 13px; }
.site-account-caption { font-size: 10px; color: #929cab; font-weight: 400; }
.site-account-icon { display: block; width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-account-chevron { width: 16px; height: 16px; color: #a9b0bc; margin-left: 5px; transition: transform .16s; }
.site-account[open] .site-account-chevron { transform: rotate(180deg); }
.site-account-panel {
  position: absolute; z-index: 80; right: 0; top: calc(100% + 8px); width: min(264px, calc(100vw - 32px));
  padding: 7px; border: 1px solid #303640; border-radius: 13px; background: #111419;
  box-shadow: 0 18px 55px #0008; text-align: left;
}
.site-account[open] .site-account-panel { animation: account-reveal .14s ease-out; }
.site-account-identity { display: flex; flex-direction: column; gap: 7px; padding: 11px 12px 15px; border-bottom: 1px solid #ffffff0f; margin-bottom: 5px; }
.site-account-eyebrow { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #919ba9; }
.site-account-email { overflow-wrap: anywhere; color: #e0e4eb; font-size: 12px; font-weight: 400; }
.site-account-panel a, .site-account-panel button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 43px; padding: 10px 12px; text-align: left; border: 0; border-radius: 7px; background: transparent; font: inherit; color: #a9b0bc; cursor: pointer; text-decoration: none; }
.site-account-panel a:hover, .site-account-panel button:hover { background: #ffffff06; color: #fff; }
.site-account-panel button:disabled { opacity: .5; cursor: wait; }
.site-community-link { font-size: 13px; white-space: nowrap; }
@keyframes account-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .site-header .header-actions > .back-link, .site-header .header-actions > .button-secondary, .site-header .header-actions > .text-link { display: none; }
}
@media (max-width: 600px) {
  .site-header .header-actions > .button-primary { display: none; }
  .site-header .header-inner, .site-header .header-actions { gap: 14px; }
  .site-header .header-actions:has([data-site-account]:not([hidden])) > .site-community-link { display: none; }
  .site-account-name { max-width: 90px; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .nav #nav-features { display: none; }
  .nav-actions .site-account-name { max-width: 65px; }
}
@media (max-width: 800px) {
  .header .nav-row { gap: 10px; width: calc(100% - 32px); }
  .header .nav-actions { gap: 10px; }
  .nav-actions .site-account-trigger { min-width: 40px; padding: 5px; gap: 0; }
  .nav-actions .site-account-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav-actions .site-account-chevron { display: none; }
}
@media (prefers-reduced-motion: reduce) { .site-account *, .site-account[open] .site-account-panel { animation: none !important; transition: none !important; } }
