.account-menu{position:relative;flex-shrink:0;font:inherit;color:#203c35}
.account-menu>summary{display:flex;align-items:center;gap:7px;min-height:44px;padding:6px 8px;list-style:none;cursor:pointer;border-radius:9px;font-size:13px;font-weight:650;white-space:nowrap}
.account-menu>summary::-webkit-details-marker{display:none}
.account-menu>summary:hover,.account-menu[open]>summary{background:#f4f4f4}
.account-menu>summary svg{width:20px;height:20px;flex-shrink:0}
.account-name{display:block;max-width:140px;overflow:hidden;text-overflow:ellipsis}
.account-chevron{font-size:17px;line-height:1;transition:transform .15s}
.account-menu[open] .account-chevron{transform:rotate(180deg)}
.account-dropdown{position:absolute;right:0;top:calc(100% + 8px);width:210px;max-width:calc(100vw - 24px);padding:6px;background:#fff;border:1px solid #e5e5e5;border-radius:12px;box-shadow:0 8px 28px #203c351a;z-index:80}
.account-dropdown>a,.account-dropdown>button{display:flex;align-items:center;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:7px;background:#fff;color:#203c35;text-align:left;text-decoration:none;font:inherit;font-size:13px;font-weight:550;cursor:pointer}
.account-dropdown>a:hover,.account-dropdown>button:hover{background:#f4f4f4}
.account-dropdown>button{border-top:1px solid #eee;border-radius:0 0 7px 7px;color:#963d32}
.account-dropdown>button:disabled{opacity:.6;cursor:wait}
.account-menu-error{padding:8px 12px;margin:0;color:#963d32;font-size:12px;line-height:1.5}
.account-menu :focus-visible{outline:3px solid #157eac;outline-offset:2px}
#subscription-panel{scroll-margin-top:145px}
.auth-card .form-message.error{padding:13px 15px;margin-bottom:18px;background:#fff1ef;border:1px solid #e3afa7;border-radius:8px;color:#963d32;font-weight:600;scroll-margin-top:150px}
.auth-card .form-message:empty{display:none}
@media(max-width:1100px){.account-name{max-width:100px}}
@media(max-width:780px){.account-menu>summary{font-size:12px;padding-inline:4px;gap:5px}.account-name{max-width:90px}.study-space .top-right{gap:8px}.study-space .top-right .demo-pill{display:none}}
@media(max-width:370px){.account-name{max-width:64px}.account-menu>summary svg{width:17px;height:17px}.account-menu>summary{gap:3px}}
@media(prefers-reduced-motion:reduce){.account-chevron{transition:none}}
