.ui-language{display:inline-flex;align-items:center;gap:7px}.language-flag{display:inline-flex;width:25px;height:17px;overflow:hidden;border-radius:3px;box-shadow:0 0 0 1px #ddd}.language-flag svg{width:100%;height:100%}.password-wrap{display:flex;align-items:center;gap:8px}.password-wrap input{flex:1;min-width:0}.password-toggle{border:1px solid #e6ddf4;border-radius:8px;background:#fff;padding:10px;cursor:pointer}.remember-login{display:flex!important;align-items:center;gap:8px;font-size:13px}.remember-login input{width:auto!important}.profile-wrap{padding:24px;max-width:640px}.profile-wrap h2{margin-top:0}.profile-wrap p,.profile-wrap small{color:#766d82}.profile-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.profile-stats>div{padding:12px;border:1px solid #e9e3f2;border-radius:10px;background:#faf8ff}.profile-stats small,.profile-stats b{display:block}.profile-stats b{margin-top:5px;overflow-wrap:anywhere}.profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-wrap form label{display:block;margin:12px 0}.profile-wrap input{display:block;width:100%;padding:10px;border:1px solid #ddd4ea;border-radius:8px}.profile-wrap hr{border:0;border-top:1px solid #eee;margin:20px 0}@media(max-width:600px){.profile-wrap{padding:18px}.profile-fields{grid-template-columns:1fr}.profile-stats{grid-template-columns:1fr 1fr}}

#nav button i{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;flex:none}#nav button i svg{width:21px;height:21px;display:block}#nav button.active i{color:#6938d7}@media(max-width:650px){#nav button i{width:22px;height:22px}#nav button i svg{width:20px;height:20px}}

/* CSS-only, interaction-driven motion: no timers, animation loops or extra assets. */
#nav button{transition:background-color 150ms ease,color 150ms ease}
@media(hover:hover) and (pointer:fine){#nav button:hover{background:#f4efff;color:#6938d7}}
#nav button:focus-visible{outline:2px solid #7440eb;outline-offset:2px}
#profileDialog{box-sizing:border-box;width:min(720px,94vw);max-width:720px;max-height:90vh;padding:0;border:1px solid #e8e0f5;border-radius:24px;color:#302044;overflow:auto;background:#fff}
#profileDialog .profile-wrap{box-sizing:border-box;max-width:none;padding:32px;text-align:left;position:relative}#profileDialog .profile-wrap h2{font-size:27px;letter-spacing:-.5px;margin:0 42px 12px 0}#profileDialog .profile-wrap>p{font-size:13px;line-height:1.65;max-width:560px}
#profileDialog .close{top:24px;right:24px;width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:10px;background:#f5f1fc;color:#78678e;font-size:24px}
#profileDialog .profile-stats{gap:12px;margin:24px 0}#profileDialog .profile-stats>div{box-sizing:border-box;padding:16px 18px;background:#faf8ff;border-color:#ece5f6;border-radius:15px;min-width:0}#profileDialog .profile-stats small{font-size:12px;line-height:1.5}#profileDialog .profile-stats b{font-size:16px;color:#35214d;margin-top:5px}#profileDialog #profileExpiry{font-size:14px;line-height:1.5}
#profileDialog .profile-stats>.quota-card{display:flex;flex-direction:column;align-items:center;gap:12px;background:linear-gradient(150deg,#fbf9ff,#f6f0ff);padding:19px 12px;text-align:center}
.quota-ring{--quota-angle:0deg;--quota-color:#7846eb;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:112px;height:112px;border-radius:50%;background:conic-gradient(var(--quota-color) var(--quota-angle),#e6ddf5 0);flex-shrink:0;isolation:isolate}.quota-ring:before{content:'';position:absolute;inset:8px;background:#fff;border-radius:50%;z-index:-1}.quota-ring.quota-high{--quota-color:#c66a20}#profileDialog .quota-ring b{margin:0;font-size:21px;letter-spacing:-.7px}.quota-caption{font-size:11px;color:#8a7c9b}.quota-remaining{color:#6c3bc7;font-size:13px;font-weight:600}#profileOcrReset{font-size:11px!important;max-width:210px;line-height:1.5}#profileDialog form label{font-size:13px;font-weight:600;color:#4c3a61}#profileDialog input{box-sizing:border-box;margin-top:8px;background:#fff;min-height:43px}#profileDialog h3{font-size:18px}#profileDialog .secondary{min-height:40px;border-radius:10px}#profileLogout{margin-top:18px}
@media(max-width:600px){#profileDialog{border-radius:18px}#profileDialog .profile-wrap{padding:23px 18px}#profileDialog .profile-stats{gap:9px}#profileDialog .profile-stats>div{padding:13px 12px}#profileDialog .close{top:18px;right:16px}.quota-ring{width:98px;height:98px}#profileDialog .quota-ring b{font-size:18px}}
@media(prefers-reduced-motion:reduce){#nav button,#nav button i{transition:none!important;transform:none!important}}

/* Keep the sidebar footer steady as the workspace content changes. */
@media (min-width: 851px){.shell>aside{position:sticky;top:0;height:100vh;overflow-y:auto;align-self:flex-start}}
/* Odd number of account cards: let the last one span the full row so left and right stay even. */
#profileDialog .profile-stats>div:last-child:nth-child(odd){grid-column:1/-1}
