.topbar:has(.crm-update-control){flex-wrap:wrap;row-gap:10px}
.topbar:has(.crm-update-control) .topbar-title{flex:1 0 180px}
.topbar:has(.crm-update-control) .topbar-actions{flex-wrap:wrap;max-width:100%}
.crm-update-control{position:relative;display:flex;align-items:center;gap:10px;flex:none;padding:5px 8px;border:1px solid #d5deeb;border-radius:9px;background:#f6f9fd}
.crm-update-info{display:flex;flex-direction:column;gap:3px;line-height:1.25;min-width:116px}
.crm-current-version{font-size:12px;font-weight:650;color:#304766;white-space:nowrap}
.crm-update-status{font-size:11px;color:#62748a;white-space:nowrap}
.crm-update-control.has-update{background:#f0faf4;border-color:#b3d8c1}
.crm-update-control.has-update .crm-update-status{color:#166337;font-weight:650}
.crm-update-message[hidden]{display:none}
.crm-update-control .crm-update-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;border:1px solid #b8c9df;background:#fff;color:#25496f;font-weight:650;min-height:34px;padding:6px 10px;border-radius:7px;cursor:pointer}
.crm-update-control.has-update .crm-update-button{border-color:#92c3a4;background:#e1f3e7;color:#166337}
.crm-update-button::before{content:'↻';font-size:19px;line-height:1;font-weight:500}
.crm-update-control .crm-update-button:hover{background:#e8eff8;border-color:#87a5c9}
.crm-update-control.has-update .crm-update-button:hover{background:#cce9d7;border-color:#72a988}
.crm-update-control .crm-update-button:focus-visible{outline:3px solid #5596d5;outline-offset:3px}
.crm-update-control .crm-update-button:disabled{opacity:.7;cursor:wait}
.crm-update-message{position:absolute;top:calc(100% + 9px);right:0;z-index:10000;width:310px;max-width:calc(100vw - 36px);padding:12px 14px;border:1px solid #d5deeb;border-radius:10px;background:#fff;color:#243c5a;box-shadow:0 6px 22px #102e5926;white-space:normal;font:13px/1.5 system-ui,sans-serif}
.crm-update-control-fallback{position:fixed;top:12px;right:16px;z-index:10000}
@media(max-width:760px){.topbar-actions .crm-update-control{flex:1 1 100%;justify-content:space-between}.crm-update-info{min-width:0}.crm-update-status{white-space:normal}.crm-update-control .crm-update-button{flex:none}.crm-update-message{right:auto;left:0;width:100%;box-sizing:border-box}.crm-update-control-fallback{left:16px}}

.crm-update-loaded{font-size:10px;color:#62748a;white-space:nowrap}
.crm-update-info{min-width:155px;max-width:250px}
.crm-update-status{white-space:normal}
.crm-update-progress{width:100%;height:6px;accent-color:#2161af}
.crm-update-progress[hidden]{display:none}
@media(display-mode:standalone){.crm-current-version{font-weight:700}}

.crm-update-control{padding:5px 7px;gap:8px}
.crm-update-info{min-width:130px;max-width:190px;gap:2px}
.crm-current-version{font-size:12px}
.crm-update-loaded{font-size:10px}
.crm-update-status{font-size:11px}
.crm-update-control .crm-update-button{font-size:12px;padding:6px 8px}
@media(max-width:760px){.topbar-actions .crm-update-control{flex:1 1 auto}.crm-update-info{min-width:0}.crm-update-control .crm-update-button{white-space:normal}.crm-update-message{left:0;right:auto;width:290px}}
