
.topbar .topbar-wordmark img.demo-logo, .bottom-dock .dock-brand img.demo-logo { display:block; object-fit:contain; filter:none!important; }
.topbar-wordmark .demo-logo {height:29px; width:auto; opacity:1; }
.dock-brand .demo-logo {height:34px!important; width:42px!important; max-width:100%; }
@media (min-width:769px) {body[data-navigation-mode="compact"] .dock-brand .demo-logo {height:24px!important;width:30px!important;}}
@media (max-width:980px) {
 .topbar {min-height:48px!important;padding-top:0!important;}
 .topbar-center-stage {display:flex!important;top:50%;gap:8px;max-width:23%;pointer-events:none;}
 .topbar-center-stage::after{display:none}
 .topbar-wordmark {display:flex!important;}
 .topbar-wordmark .demo-logo {max-width:100%;height:18px;}
 .topbar-center-stage .topbar-currency-widget{display:none;}
}
.topbar-wordmark .optimalog-name {
  font: 800 24px/1 system-ui, sans-serif;
  letter-spacing: -.045em;
  color: var(--dock-ink, white);
}
.topbar-center-stage .topbar-currency-trigger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 10px;
  column-gap: 6px;
  align-items: center;
}
.topbar-center-stage .topbar-currency-source,
.topbar-center-stage .topbar-currency-separator { display: none; }
.topbar-center-stage .topbar-currency-quote {
  display: grid;
  justify-items: start;
  gap: 2px;
  padding-inline-start: 7px;
  border-inline-start: 1px solid var(--dock-muted);
  line-height: 1.05;
}
.topbar-center-stage .topbar-currency-quote b { font-size: 10px; }
.topbar-center-stage .topbar-currency-quote strong { font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 1279px) {
  .topbar .topbar-center-stage {
    position: static; transform: none; max-width: none;
    display: flex !important; justify-content: space-between;
    width: 100%; gap: 8px; grid-column: 1 / -1; grid-row: 2;
  }
  .topbar .topbar-center-stage::after { display: none; }
  .topbar .topbar-wordmark { display: flex; order: -1; }
  .topbar-wordmark .optimalog-name { font-size: 20px; }
  .topbar .topbar-currency-widget { display: block; width: min(220px, 65%); }
  .topbar-center-stage .topbar-currency-trigger { width: 100%; height: 32px; padding: 0; gap: 2px; }
  body .topbar, body[data-navigation-top] .topbar {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    height: auto; gap: 0 6px; padding: 3px 8px; align-items: center;
  }
  .topbar .tb-search { width: 100%; min-width: 0; }
}
@media (max-width: 640px) {
  .topbar-currency-popover { overflow-y: auto; }
  .topbar-currency-current { grid-template-columns: 1fr; gap: 5px; padding: 8px; }
  .topbar-currency-current-card { padding: 7px 10px; }
  .topbar-currency-current-values { margin-top: 4px; }
  .topbar-currency-table-wrap { overflow-x: auto; }
  .topbar-currency-table { min-width: 570px; }
  .topbar-currency-sources { flex-wrap: wrap; }
}
