.graph-timeframes { display: inline-flex; flex-shrink: 0; gap: 2px; align-items: center; white-space: nowrap; }
.graph-timeframes button { border: 0; border-radius: 5px; background: transparent; color: #a1a1aa; padding: 6px 8px; font: inherit; font-size: 13px; cursor: pointer; min-height: 32px; }
.graph-timeframes button:hover { background: #18181b; color: #fafafa; }
.graph-timeframes button.on { background: #27272a; color: #fafafa; }
.graph-timeframes button:focus-visible { outline: 2px solid #d4d4d8; outline-offset: 1px; }
.graphs-embedded [data-graph-timeframes] { display: none !important; }
#global-timeframes { border-left: 1px solid #27272a; padding-left: 8px; }
.graphs-embedded .graph-timeframe-label { display: none; }
body:has(#global-timeframes) { grid-template-columns: minmax(0, 1fr); }
.bar:has(#global-timeframes) { width: 100%; min-width: 0; }
.bar:has(#global-timeframes) #desc { min-width: 0; }
body:has(#global-timeframes) main { min-width: 0; }
@media (max-width: 1100px) {
  body:has(#global-timeframes) { height: 100dvh; overflow: hidden; }
  body .bar:has(#global-timeframes) { flex-wrap: wrap; height: auto; min-height: 50px; row-gap: 0; }
  .bar:has(#global-timeframes) .tabs, .bar:has(#global-timeframes) .tab-pick { height: 46px; }
  #global-timeframes { order: 10; flex-basis: 100%; justify-content: center; padding: 0 0 4px; border: 0; }
  body:has(#global-timeframes) main { height: auto; min-height: 0; }
}
