/* v1.0.8.19: trainer identity stays left; account actions form one fixed right-hand group. */

.topbar{gap:10px;min-width:0}
.profile-block{flex:0 0 auto;min-width:0}
.wallet{flex:0 0 auto;min-width:0;margin-left:auto;margin-right:0}
.top-actions{flex:0 0 auto;min-width:0;margin-right:clamp(64px,6vw,112px)}
.logout-command{position:static;width:76px;min-width:76px;height:42px;padding:0 10px;border:1px solid #6f3d43;background:#281d21;color:#ff9aa2;display:inline-flex;align-items:center;justify-content:center;gap:6px;font:800 11px var(--display);white-space:nowrap}
.logout-command:hover{border-color:#d55a67;background:#3a2026;color:#fff0f2}
.logout-command svg{width:17px;height:17px}

/* Many desktop browsers run above 100% zoom. Compact the toolbar before it can cover the exit lane. */
@media(max-width:2000px){
  .topbar{padding-inline:16px;gap:6px}
  .profile-block{gap:8px}
  .profile-name{min-width:92px}
  .wallet>div{min-width:84px;padding-inline:9px}
  #currentTime,.hourly-coin span,.hourly-coin small,#checkInButton span{display:none}
  .top-actions{gap:4px}
  .top-actions .icon-command,.top-actions .command{width:40px;min-width:40px;height:42px;padding:0}
  .top-actions .logout-command{width:40px;min-width:40px;padding:0}
  .top-actions .logout-command span{display:none}
}

@media(max-width:1500px){
  .profile-name,#loginInfo{display:none}
  .wallet>div{min-width:82px;padding-inline:8px}
}

@media(max-width:760px){
  .topbar{left:0;height:160px;padding:8px 9px;gap:5px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:50px 42px 42px;grid-template-areas:"profile" "wallet" "actions"}
  .profile-block{grid-area:profile;min-width:0;gap:6px;overflow:hidden}
  .wallet{grid-area:wallet;width:100%;height:42px;margin:0;min-width:0;justify-self:stretch}
  .wallet>div{min-width:0;flex:1 1 0;padding-inline:8px}
  .wallet .icon-command{flex:0 0 42px;width:42px;height:42px}
  .top-actions{grid-area:actions;width:100%;min-width:0;margin-right:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;overflow:visible}
  .top-actions .icon-command,.top-actions .command{width:100%;min-width:0;height:42px;padding:0}
  .top-actions .logout-command{width:100%;min-width:0;height:42px;padding:0}
  .content{padding-top:180px}
  .toast-host{top:172px;right:12px}
}
