/* Sector Rotation: dense terminal chrome across map, ETF surface and Theme Tape. */
#view-rotation { font-family:'JetBrains Mono',monospace; color:#c9cecc; }
#view-rotation > .net-premium-card { background:#090b0b; border:1px solid #303434; border-radius:0; box-shadow:none; overflow:hidden; }
#view-rotation .net-premium-chart-area { padding-top:0 !important; min-width:0; }
#view-rotation .rotation-topline { padding:8px 10px; gap:10px; border-bottom:1px solid #303434; flex-wrap:wrap; }
#view-rotation .net-premium-title { order:-1; min-width:0 !important; align-items:flex-start !important; gap:0 !important; margin-right:auto; }
#view-rotation #rotation-view-title { font:600 14px 'JetBrains Mono',monospace; letter-spacing:.02em; color:#ddd; text-shadow:none; margin:0; }
#view-rotation #rotation-view-title::before,#view-rotation #rotation-view-title::after { display:none; }
#view-rotation .unusual-badge-stacked { display:none; }
#view-rotation .rotation-mode-toggle,#view-rotation .rrg-timeframe-toggle { gap:0; }
#view-rotation .rotation-mode-btn,#view-rotation .rrg-tf-btn { border:0; border-bottom:2px solid transparent; border-radius:0; padding:7px 9px; background:transparent; color:#929997; font:10px 'JetBrains Mono',monospace; transition:none; }
#view-rotation .rotation-mode-btn.active,#view-rotation .rrg-tf-btn.active { color:#dfb875; border-bottom-color:#b49158; background:#b491580b; }
#view-rotation button:hover { color:#eee; background:#ffffff08; }
#view-rotation button:focus-visible { outline:1px solid #b49158; outline-offset:-1px; }
#view-rotation .rotation-sector-tape { margin:0; padding:7px 10px; gap:12px; background:#0e1010; border-top:0; border-bottom:1px solid #292d2d; scrollbar-width:thin; }
#view-rotation .rotation-tape-label,#view-rotation .rotation-tape-item,#view-rotation .rotation-tape-divider,#view-rotation .rotation-as-of { font:10px 'JetBrains Mono',monospace; letter-spacing:0; }
#view-rotation .rotation-tape-label { color:#bfa477; }
#view-rotation .rotation-tape-item { color:#b9c1bd; }
#view-rotation .rotation-tape-divider,#view-rotation .rotation-as-of { color:#747d79; }
#view-rotation .rrg-custom-legend { margin:0; padding:5px 10px; gap:0; background:#090b0b; border-top:0; border-bottom:1px solid #292d2d; grid-template-columns:repeat(auto-fit,minmax(158px,1fr)); }
#view-rotation .rrg-legend-item { padding:5px 7px; border:0; border-bottom:1px solid #232727; background:transparent; transition:none; }
#view-rotation .rrg-legend-ticker { font:600 10px 'JetBrains Mono',monospace; letter-spacing:0; }
#view-rotation .rrg-legend-title { font:9px 'JetBrains Mono',monospace; color:#88938d; }
#view-rotation .rrg-legend-color-box { width:6px; height:6px; border:0; box-shadow:none; }
#view-rotation .rrg-custom-legend.is-theme-rail { grid-template-columns:repeat(3,minmax(0,1fr)); padding:5px 10px; background:#090b0b; gap:0 14px; }
#view-rotation .theme-rank-row { min-height:27px; gap:6px; padding:4px 5px; grid-template-columns:18px 6px 50px minmax(0,1fr) 60px; border-bottom-color:#252929; transition:none; }
#view-rotation .theme-rank-number,#view-rotation .theme-rank-ticker,#view-rotation .theme-rank-change,#view-rotation .theme-rank-name { font:10px 'JetBrains Mono',monospace; line-height:1.3; }
#view-rotation .theme-rank-number { color:#626d67; }
#view-rotation .theme-rank-ticker { color:#e0e5e2; font-weight:600; }
#view-rotation .theme-rank-name { color:#919b95; }
#view-rotation .theme-rank-swatch { width:6px; height:6px; box-shadow:none; }
#view-rotation .theme-rank-row.is-selected { background:#b4915810; box-shadow:inset 2px 0 #b49158; }
#view-rotation .rotation-chart-shell { padding:8px 10px; min-height:440px; background:#090b0b; }
#view-rotation #rrg-loading { font:11px 'JetBrains Mono',monospace !important; color:#7d8882 !important; }
#rrg-tooltip { background:#111615 !important; color:#d3ddd7 !important; border:1px solid #48554d !important; box-shadow:none !important; padding:9px 11px !important; font:11px/1.6 'JetBrains Mono',monospace !important; }
#rrg-tooltip > div { font-size:11px !important; }
#rrg-tooltip > div:first-child { color:#e1bd80; }
/* Theme Tape hover: compact Fish-style card (name + time, NOW / WIN, members on one line). */
#rrg-tooltip.is-compact { background:#050607 !important; border-color:#2e3238 !important; padding:0 !important; font:10px/1.35 'JetBrains Mono',monospace !important; width:max-content; max-width:260px !important; }
#rrg-tooltip.is-compact > div { font-size:10px !important; color:inherit; }
#rrg-tooltip.is-compact .tt-head { display:flex; gap:8px; align-items:baseline; padding:3px 7px; border-bottom:1px solid #2e3238; color:#e0ac55; }
#rrg-tooltip.is-compact .tt-head b { font-weight:400; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
#rrg-tooltip.is-compact .tt-head span { margin-left:auto; color:#6b7178; font-size:9px; white-space:nowrap; }
#rrg-tooltip.is-compact .tt-vals { display:flex; gap:10px; padding:3px 7px 1px; }
#rrg-tooltip.is-compact .tt-vals i { font-style:normal; color:#6b7178; font-size:9px; margin-right:4px; }
#rrg-tooltip.is-compact .tt-up { color:#45e08a; } #rrg-tooltip.is-compact .tt-down { color:#ff4466; }
#rrg-tooltip.is-compact .tt-members { padding:0 7px 4px; color:#6b7178 !important; font-size:9px !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media(max-width:760px) {
 #view-rotation .rotation-topline { flex-direction:row; align-items:center; gap:4px; }
 #view-rotation .net-premium-title { flex-basis:100%; }
 #view-rotation .rotation-mode-btn,#view-rotation .rrg-tf-btn { padding:7px 6px; font-size:9px; }
 #view-rotation .rrg-timeframe-toggle { margin-left:auto; }
 #view-rotation .rrg-custom-legend { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #view-rotation .rrg-custom-legend.is-theme-rail { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 6px; }
 #view-rotation .theme-rank-row { grid-template-columns:16px 5px 43px minmax(0,1fr) 48px; gap:4px; }
 #view-rotation .theme-rank-number,#view-rotation .theme-rank-ticker,#view-rotation .theme-rank-change,#view-rotation .theme-rank-name { font-size:9px; }
}
@media(max-width:460px) {
 #view-rotation .rrg-custom-legend.is-theme-rail { grid-template-columns:1fr; }
 #view-rotation .rrg-timeframe-toggle { width:100%; justify-content:flex-end; }
}
