/* One accessible application reload action in each persistent toolbar. */
.app-refresh{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border:1px solid var(--crm-line,var(--line,#dce3ed));border-radius:12px;background:var(--crm-surface,var(--panel,#fff));color:var(--crm-ink,var(--text,#172033));cursor:pointer;touch-action:manipulation;transition:background .16s,border-color .16s}
.app-refresh svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.app-refresh:hover:not(:disabled){background:var(--crm-hover,var(--soft,#f0f3f8));border-color:var(--crm-line-strong,var(--line,#b9c7d9))}
.app-refresh:focus-visible{outline:3px solid var(--crm-primary,#3677d8);outline-offset:3px}
.app-refresh:disabled{cursor:wait;opacity:.65}
.app-refresh[aria-busy="true"] svg{animation:app-refresh-turn .85s linear infinite}
.mobile-app-refresh{display:none}
.app-refresh-feedback{position:fixed;z-index:1300;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:min(520px,calc(100vw - 28px));padding:14px 18px;border:1px solid var(--crm-line,var(--line,#dce3ed));border-radius:14px;background:var(--crm-surface,var(--panel,#fff));color:var(--crm-ink,var(--text,#172033));box-shadow:0 8px 32px #10244129;font-size:14px;line-height:1.6;text-align:center;pointer-events:none}
.app-refresh-feedback[hidden]{display:none}
.chat-toolbar-actions .chat-app-refresh{color:var(--chat-ink);background:var(--chat-bg);border-color:var(--chat-line)}
@keyframes app-refresh-turn{to{transform:rotate(360deg)}}
@media(max-width:760px), (max-width:1024px) and (max-height:500px){
  .operator .mobile-app-refresh{display:inline-flex}
  .workspace-tools>.app-refresh,.chat-toolbar-actions>.chat-app-refresh{display:none}
  .operator{gap:7px}
  .operator>div{min-width:0;flex:1 1 auto}
  .operator>div strong,.operator>div small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .operator .mobile-menu,.operator .mobile-theme,.operator .app-refresh,.operator .logout-button{flex-shrink:0;min-width:44px;min-height:44px}
  .operator .app-refresh{background:transparent;border-color:var(--line,#cdd7e5);color:inherit}
}
@media(max-width:390px){
  .operator{gap:4px}
  .operator>.avatar{display:none}
  .operator>div{max-width:none}
  #navigation-shell .brand{max-width:100%;overflow:hidden;gap:6px}
  #navigation-shell .brand>span{min-width:0;white-space:normal;font-size:12px;line-height:1.25}
  #navigation-shell .brand small{display:none}
}
@media(prefers-reduced-motion:reduce){.app-refresh{transition:none}.app-refresh[aria-busy="true"] svg{animation:none}}
