.data-freshness{position:relative;margin-left:auto;align-self:center;font-size:12px;color:#aec1d8;flex-shrink:0}.data-freshness summary{list-style:none;cursor:pointer;border:1px solid #33465e;border-radius:8px;padding:9px 12px;background:#132031;display:flex;align-items:center;gap:9px;min-height:36px}.data-freshness summary::-webkit-details-marker{display:none}.data-freshness summary:after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-4px}.data-freshness[open] summary:after{transform:rotate(225deg);margin-top:4px}.freshness-panel{position:absolute;right:0;top:calc(100% + 8px);width:365px;max-width:calc(100vw - 32px);max-height:65vh;overflow:auto;background:#101c2b;border:1px solid #3b506c;border-radius:12px;padding:18px;box-shadow:0 16px 48px #0009;z-index:150;line-height:1.6;color:#b7c9df}.freshness-panel strong{font-size:16px;color:#edf3fb}.freshness-panel dl{display:grid;grid-template-columns:100px 1fr;gap:8px;margin:16px 0}.freshness-panel dt{color:#829bb9}.freshness-panel dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.freshness-panel p{margin:12px 0}.freshness-panel small{display:block;color:#8fa6c2}.freshness-panel ul{padding-left:20px}.freshness-panel li{margin-bottom:8px}.data-freshness[data-state=partial] summary,.data-freshness[data-state=failed] summary{border-color:#83602d;color:#f4c67e}.freshness-warning{color:#f4c67e}.data-freshness summary:focus-visible{outline:2px solid #7eb5ff;outline-offset:3px}@media(max-width:650px){.data-freshness{margin-left:auto;max-width:100%}.data-freshness summary{font-size:11px;white-space:normal}.freshness-panel{width:340px}}
@media(max-width:760px){.topbar.has-data-status{display:flex;flex-wrap:wrap;height:auto;gap:8px}.topbar.has-data-status>.brand{width:auto!important;flex:1 1 auto;order:0}.topbar.has-data-status>.data-freshness{order:1;max-width:57%;margin-left:auto}.topbar.has-data-status>.data-freshness summary{font-size:10px;padding:7px 9px}.topbar.has-data-status>nav{order:3;flex:0 0 100%!important;width:100%;height:auto!important;min-height:38px;justify-content:flex-start!important;flex-wrap:wrap;gap:4px}.topbar.has-data-status>nav .mode-tab{min-height:38px;height:auto;padding:9px 6px}.topbar.has-data-status .freshness-panel{max-width:calc(100vw - 30px)}}

/* A single right-aligned group prevents multiple auto margins splitting controls. */
.topbar.has-data-status>.header-market-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px 16px;margin-left:auto;max-width:100%;min-width:0;padding:10px 0}
.topbar.has-data-status>.header-market-tools>.atm-live,
.topbar.has-data-status>.header-market-tools>.source-status,
.topbar.has-data-status>.header-market-tools>.data-freshness,
.topbar.has-data-status>.header-market-tools>#rules-button{margin-left:0;flex:0 0 auto;white-space:nowrap}
.topbar.has-data-status>.header-market-tools>.data-freshness{max-width:100%}
@media(max-width:760px){
 .topbar.has-data-status>.header-market-tools{order:2;flex:0 0 100%;gap:8px 12px;padding:0 0 6px}
 .header-market-tools>.data-freshness summary{font-size:11px;padding:7px 9px}
 .header-market-tools>#rules-button{font-size:11px}
}
