.real-chart-block{border:1px solid var(--dv-border-soft);border-radius:var(--dv-radius-lg);background:var(--dv-surface-1);padding:16px;box-shadow:0 1px 2px rgba(15,23,42,.035)}
.real-chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px}.real-chart-title{display:grid;gap:4px}.real-chart-title h2{margin:0;font-size:18px}.real-chart-meta{font-size:11px;color:var(--dv-text-muted)}
.real-chart-controls{display:grid;gap:6px;justify-items:end}.real-chart-assets,.real-chart-periods{display:flex;gap:6px;flex-wrap:wrap}.real-chart-assets button,.real-chart-periods button{border:1px solid var(--dv-border-soft);background:var(--dv-surface-1);color:var(--dv-text-secondary);border-radius:7px;padding:6px 9px;font-size:11px;cursor:pointer}.real-chart-assets button.active,.real-chart-periods button.active{background:var(--dv-accent-primary);border-color:var(--dv-accent-primary);color:#fff}
#overviewRealChart{height:340px}.real-chart-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--dv-border-soft);padding-top:9px;margin-top:8px;font-size:11px;color:var(--dv-text-muted)}
@media(max-width:700px){.real-chart-head{display:grid}.real-chart-controls{justify-items:stretch}.real-chart-assets,.real-chart-periods{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}.real-chart-assets::-webkit-scrollbar,.real-chart-periods::-webkit-scrollbar{display:none}.real-chart-assets button,.real-chart-periods button{flex:0 0 auto}#overviewRealChart{height:290px}.real-chart-block{padding:12px}}
.macro-chart-block{border:1px solid var(--dv-border-soft);border-radius:var(--dv-radius-lg);background:var(--dv-surface-1);padding:16px;box-shadow:0 1px 2px rgba(15,23,42,.035)}
.macro-chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.macro-chart-head h2{margin:0;font-size:18px}.macro-chart-switch{display:flex;gap:6px;flex-wrap:wrap}.macro-chart-switch button{border:1px solid var(--dv-border-soft);background:var(--dv-surface-1);color:var(--dv-text-secondary);border-radius:7px;padding:6px 9px;font-size:11px}.macro-chart-switch button.active{background:var(--dv-accent-primary);border-color:var(--dv-accent-primary);color:#fff}#macroCompareChart{height:380px}.macro-chart-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--dv-border-soft);padding-top:9px;margin-top:8px;font-size:11px;color:var(--dv-text-muted)}@media(max-width:700px){.macro-chart-head{display:grid}.macro-chart-switch{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}.macro-chart-switch button{flex:0 0 auto}#macroCompareChart{height:420px}.macro-chart-block{padding:12px}}

/* Market chart extended asset toolbar — mobile containment */
.real-chart-block,.real-chart-head,.real-chart-controls,.real-chart-assets,.real-chart-periods{min-width:0}
.real-chart-assets button,.real-chart-periods button{white-space:nowrap}
@media(max-width:700px){
  .real-chart-block{overflow:hidden!important}
  .real-chart-head,.real-chart-controls{width:100%!important;max-width:100%!important}
  .real-chart-assets,.real-chart-periods{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    flex-wrap:nowrap!important;
    scroll-snap-type:x proximity!important;
    overscroll-behavior-inline:contain!important;
    -webkit-overflow-scrolling:touch!important;
    padding-bottom:2px!important;
  }
  .real-chart-assets button,.real-chart-periods button{scroll-snap-align:start!important}
}
