.hy-account{--ha-bg:#fff;--ha-text:#292524;--ha-muted:#78716c;--ha-line:#e7e5e4;--ha-hover:#f5f5f4;--ha-accent:#7559a0;position:relative;display:inline-flex;flex:none;align-items:center;gap:9px;margin-left:8px;color:var(--ha-text);font-size:12px;line-height:1.5;letter-spacing:normal}
.dark .hy-account{--ha-bg:#1c1b20;--ha-text:#f5f5f4;--ha-muted:#a8a29e;--ha-line:#37343b;--ha-hover:#2b282f;--ha-accent:#c7afea}
.hy-account button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hy-account button:focus-visible{outline:2px solid var(--ha-accent);outline-offset:3px}
.hy-account-trigger{display:grid;place-items:center;flex:none;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;transition:filter .15s,box-shadow .15s}
.hy-account-trigger:hover,.hy-account-trigger[aria-expanded=true]{box-shadow:0 0 0 3px var(--ha-hover);filter:brightness(1.08)}
.hy-account-avatar{display:grid;place-items:center;width:32px;height:32px;overflow:hidden;border:1px solid color-mix(in srgb,var(--ha-accent) 35%,transparent);border-radius:50%;color:var(--ha-accent);background:color-mix(in srgb,var(--ha-accent) 12%,var(--ha-bg))}
.hy-account-avatar-large{width:44px;height:44px;flex:none}
.hy-account-balance{display:flex;flex-direction:column;justify-content:center;min-width:64px;max-width:150px;line-height:1.3}
.hy-account-balance-label{font-size:10px;color:var(--ha-muted)}
.hy-account-balance strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.hy-account-panel{position:absolute;z-index:100;top:calc(100% + 14px);right:0;width:320px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 88px);overflow-y:auto;padding:20px;border:1px solid var(--ha-line);border-radius:16px;background:var(--ha-bg);box-shadow:0 16px 48px #0003;white-space:normal;outline:none;text-align:left}
.hy-account-profile{display:flex;align-items:center;gap:12px}
.hy-account-profile-copy{display:flex;flex:1;flex-direction:column;min-width:0;gap:3px}
.hy-account-profile-copy>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600}
.hy-account-login-state{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--ha-muted)}
.hy-account-login-state i{width:5px;height:5px;border-radius:50%;background:#65b58f}
.hy-account-quota{display:flex;flex-direction:column;gap:5px;margin-top:20px;padding:16px;border-radius:12px;background:color-mix(in srgb,var(--ha-accent) 7%,var(--ha-bg))}
.hy-account-quota>span{font-size:11px;color:var(--ha-muted)}
.hy-account-quota>strong{font-size:27px;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;letter-spacing:-.025em}
.hy-account-quota>small{font-size:10px;color:var(--ha-muted)}
.hy-account-details{display:grid;gap:13px;margin:20px 0}
.hy-account-detail{display:flex;align-items:baseline;justify-content:space-between;gap:20px}
.hy-account-detail dt{flex:none;color:var(--ha-muted);font-size:12px}
.hy-account-detail dd{min-width:0;margin:0;text-align:right;overflow-wrap:anywhere;font-size:12px;font-variant-numeric:tabular-nums}
.hy-account-error{margin:0 0 12px;font-size:11px;color:#c26864}
.hy-account-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:12px;border-top:1px solid var(--ha-line)}
.hy-account-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 8px;border:0;border-radius:6px;color:var(--ha-muted);background:transparent;font-size:12px;transition:color .15s,background .15s}
.hy-account-action:hover{color:var(--ha-text);background:var(--ha-hover)}
.hy-account-action:disabled{cursor:wait;opacity:.6}
.hy-account-logout:hover{color:#c26864}
.hy-account-secondary{display:contents}
@media(max-width:640px){.hy-account-secondary{display:none}.hy-account{gap:6px;margin-left:4px}.hy-account-balance{max-width:108px;min-width:55px}.hy-account-panel{position:fixed;top:66px;right:12px}.hy-account-trigger{width:32px;height:32px}.hy-account-avatar{width:30px;height:30px}.hy-account-avatar-large{width:44px;height:44px}}
@media(max-width:360px){.hy-account-tools>.hy-account-compact{display:none}}
@media(prefers-reduced-motion:reduce){.hy-account *{transition:none!important}}
