.account-entry { position:fixed; z-index:39; right:14px; top:76px; max-width:220px; padding:8px 15px; border:1px solid rgb(255 255 255 / 90%); border-radius:20px; color:#28477b; background:rgb(247 251 255 / 90%); box-shadow:0 3px 12px #24496b24; backdrop-filter:blur(10px); font:700 13px/1.2 system-ui,sans-serif; cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; transition:transform .18s,box-shadow .18s; }
.account-entry:hover { transform:translateY(-2px); box-shadow:0 5px 16px #24496b40; }
.account-entry:active { transform:scale(.96); }
body.capital-game-page #account-entry {display:none !important;}
.account-dialog { width:min(420px,calc(100vw - 32px)); box-sizing:border-box; max-height:calc(100dvh - 32px); overflow:auto; padding:26px; border:1px solid #fff; border-radius:24px; color:#253d69; background:#f8fbff; box-shadow:0 20px 80px #102b6255; font:14px/1.5 system-ui,sans-serif; }
.account-dialog::backdrop { background:#14294870; backdrop-filter:blur(6px); }
.account-dialog h2 { margin:0 32px 18px 0; font-size:26px; color:#193875; }
.account-close { position:absolute; top:15px; right:15px; width:32px; height:32px; border:1px solid #d9e2f5; border-radius:50%; background:white; color:#28477b; font-size:22px; cursor:pointer; }
.account-form { display:grid; gap:14px; }
.account-form label { display:grid; gap:5px; font-weight:650; }
.account-form input,.account-form select { box-sizing:border-box; width:100%; min-width:0; padding:11px 12px; border:1px solid #c7d5f1; border-radius:12px; background:white; color:#263e68; font:400 15px/1.4 system-ui,sans-serif; }
.account-form input:focus,.account-form select:focus { outline:3px solid #355ce52b; border-color:#5a78eb; }
.account-submit { padding:12px 18px; border:0; border-radius:13px; background:#3558df; color:white; font:800 15px/1.3 system-ui,sans-serif; cursor:pointer; box-shadow:0 5px 14px #3558df30; }
.account-submit:active { transform:scale(.98); }
.account-submit:disabled { opacity:.6; cursor:wait; }
.account-switch,.account-logout { display:block; margin:16px auto 0; border:0; color:#3155ad; background:none; font:650 13px/1.5 system-ui,sans-serif; cursor:pointer; }
.account-message { margin:12px 0 0; color:#b52636; font-weight:600; }
.account-message.is-success { color:#16754a; }
.account-note { margin:0; color:#6b7b96; font-size:12px; font-weight:400; }
.account-profile-name { display:flex; align-items:center; gap:10px; margin:0 0 18px; font-size:20px; font-weight:800; overflow-wrap:anywhere; }
.account-profile-name img { width:34px; height:24px; object-fit:contain; }
.account-dialog [hidden] { display:none!important; }
.account-entry { display:flex; align-items:center; gap:8px; }
.account-entry-name { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.account-entry.is-compact { box-sizing:border-box; max-width:none; justify-content:center; gap:6px; padding:6px 8px; font-weight:800; }
.account-entry.is-compact .account-entry-avatar { width:22px; height:22px; flex-basis:22px; }
.account-entry-avatar { width:26px; height:26px; flex:0 0 26px; object-fit:cover; aspect-ratio:1; border-radius:4px; }
.account-profile-name .account-profile-avatar { width:84px; height:84px; flex:0 0 84px; object-fit:cover; aspect-ratio:1; border-radius:8px; box-shadow:0 3px 12px #183d6b24; }
.account-avatar-field { min-width:0; margin:0; padding:0; border:0; }
.account-avatar-field legend { margin-bottom:7px; padding:0; font-weight:650; }
.account-avatar-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(46px,1fr)); gap:6px; }
.account-form .account-avatar-choice { position:relative; display:block; min-width:0; cursor:pointer; }
.account-avatar-choice input { position:absolute; width:1px!important; height:1px; min-height:0; padding:0!important; opacity:0; }
.account-avatar-tile { display:grid; max-height:56px; box-sizing:border-box; aspect-ratio:1; place-items:center; overflow:hidden; border:2px solid #d6e0f2; border-radius:8px; color:#536c91; background:#edf3fc; font-size:10px; line-height:1.2; text-align:center; transition:border-color .15s,transform .15s; }
.account-avatar-tile img { display:block; width:100%; height:100%; aspect-ratio:1; object-fit:cover; }
.account-avatar-choice input:checked + .account-avatar-tile { border-color:#3558df; box-shadow:0 0 0 2px #3558df26; }
.account-avatar-choice input:focus-visible + .account-avatar-tile { outline:2px solid #3558df; outline-offset:3px; }
.account-avatar-choice:hover .account-avatar-tile { transform:translateY(-2px); border-color:#7792ef; }

.account-avatar-layout { display:grid; gap:10px; }
.account-avatar-special { display:flex; gap:6px; }
.account-avatar-special .account-avatar-choice { width:47px; }
.account-avatar-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; }
.account-avatar-columns section { min-width:0; }
.account-avatar-columns h3 { margin:0 0 6px; font-size:12px; font-weight:650; color:#536c91; }
.account-avatar-columns .account-avatar-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }

@media(max-width:380px) { .account-avatar-columns .account-avatar-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }

.account-entry-name { display:inline-flex; align-items:center; gap:4px; }
.account-login-text { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.account-profile-login { display:inline-flex; align-items:center; gap:5px; }
.account-creator-badge,.account-profile-name .account-creator-badge { display:inline-block; width:1.35em; height:1.35em; flex:0 0 1.35em; object-fit:contain; border-radius:0; cursor:help; }

.account-avatar-columns .account-avatar-gender { margin:0 0 5px; font:700 21px/1.1 "Segoe UI Symbol",sans-serif; color:#536c91; cursor:help; }

.account-entry-summary { display:flex; flex-direction:column; align-items:flex-start; min-width:max-content; gap:2px; }
.account-entry-name,.account-login-text { overflow:visible; text-overflow:clip; flex-shrink:0; }
.account-entry.is-compact { min-width:170px; }
.moscow-clock.is-compact { right:20px; width:170px; min-width:170px; max-width:170px; }

.account-entry { max-width:calc(100vw - 40px); }

.account-inbox-button{display:block;width:100%;margin:12px 0 18px;padding:12px;border:1px solid #adc2f4;border-radius:12px;background:#e7efff;color:#203c88;font:800 15px system-ui;cursor:pointer}.inbox-dialog{box-sizing:border-box;width:min(720px,calc(100% - 24px));max-height:90dvh;margin:auto;padding:22px;border:1px solid #ccd9ef;border-radius:22px;color:#20365a;background:#f8fbff;overflow:auto}.inbox-dialog::backdrop{background:#15254480;backdrop-filter:blur(5px)}.inbox-dialog [hidden]{display:none!important}.inbox-dialog header,.inbox-dialog nav,.inbox-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.inbox-dialog h2{margin:0}.inbox-dialog button{padding:9px 13px;border:1px solid #c7d5ec;border-radius:10px;color:#25467e;background:white;font:650 14px system-ui;cursor:pointer}.inbox-dialog .inbox-close{font-size:24px;line-height:1}.inbox-dialog nav{justify-content:flex-start;margin-top:16px}.inbox-list{display:grid;gap:8px}.inbox-dialog .inbox-item{display:grid;gap:6px;width:100%;text-align:left;overflow-wrap:anywhere}.inbox-item small,.inbox-meta{color:#64738c;font-weight:400}.inbox-dialog .inbox-item.is-unread{border-color:#7999e5;background:#edf3ff}.inbox-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.inbox-detail h3,.inbox-meta{overflow-wrap:anywhere}.inbox-status{font-size:14px}.inbox-more{margin-top:12px}@media(max-width:480px){.inbox-dialog{padding:16px}.inbox-dialog footer{align-items:stretch;flex-direction:column}}

.account-entry-level{font:700 10px/1.2 system-ui,sans-serif;color:#61799a}.account-experience{display:grid;gap:10px;margin:0 0 18px;padding:15px;border:1px solid #d8e4f7;border-radius:15px;background:linear-gradient(130deg,#edf4ff,#f5f9ff);color:#28477b}.account-experience-heading,.account-experience-details{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.account-experience-heading strong{font-size:18px}.account-experience-heading>span{font-size:12px;color:#61799a}.account-experience progress{display:block;box-sizing:border-box;appearance:none;width:100%;height:10px;border:0;border-radius:8px;overflow:hidden;background:#dbe6f8;accent-color:#4164df}.account-experience progress::-webkit-progress-bar{background:#dbe6f8;border-radius:8px}.account-experience progress::-webkit-progress-value{background:#4164df;border-radius:8px}.account-experience progress::-moz-progress-bar{background:#4164df;border-radius:8px}.account-experience-details{font-size:12px}.account-experience p{margin:0;font-size:12px;line-height:1.5;color:#61799a}
