/* Cloud v0.4.16: compact chart visuals that obey the one six-cell workspace. */
/* Labels always reserve their slot; only visually selected dates are shown.
   All 30/90 daily data points remain available via their titled bars. */
#appShell #teamView .re318-activity-top #re309GraphCaption,
#appShell #overviewView .re408-team-native #re309GraphCaption{display:none!important}
#appShell #overviewView .re407-body.re408-team-activity{overflow:hidden!important;scrollbar-width:none!important;min-height:0!important;gap:4px!important}
#appShell #overviewView .re408-team-native.re408-team-activity .re309-graph{min-height:0!important;flex:1 1 auto!important;overflow:hidden!important;padding-top:2px!important}
#appShell #overviewView .re408-team-native.re408-team-activity .re324-team-plot{min-height:0!important;flex:1 1 auto!important}
#appShell #overviewView .re408-team-native.re408-team-activity .re324-team-legend{margin:0 0 2px!important;min-height:18px!important}
#appShell #overviewView .re408-team-native.re408-team-activity .re324-team-date,
#appShell #teamView #re309Chart .re324-team-date{white-space:nowrap!important;pointer-events:none}
/* Compact change breakdown uses the donut number and keeps range/legend, not repeat counts. */
#appShell #overviewView #re56Donut{min-height:0!important;max-height:100%!important}
#appShell #overviewView #re56Donut svg{width:100%!important;height:auto!important;min-height:0!important;max-height:min(150px,100%)!important}
#appShell #overviewView #re56DonutLegend{min-height:0!important;gap:5px!important}
#appShell #overviewView #re56DonutLegend .re56-legend-item{line-height:1.22!important}
#appShell #overviewView .re56-card:has(#re56Donut){display:flex;flex-direction:column;min-height:0!important}
#appShell #overviewView .re56-card:has(#re56Donut) .re56-donut-row{min-height:0!important;flex:1 1 auto;gap:7px!important;align-content:center!important}
#appShell #overviewView .re56-card:has(#re56Donut) .re365-chart-range{margin:0 0 3px!important}
#appShell #overviewView .re56-card:has(#re56Donut) .re365-chart-status{display:none!important}
/* The original editing activity daily graph is SVG vector data, not a scrolling table. */
#appShell #overviewView #re56ActivityGraph{min-height:0!important;max-height:100%!important;overflow:hidden!important;margin-top:0!important}
#appShell #overviewView .re385-activity-card{display:flex;flex-direction:column;min-height:0!important;gap:4px!important}
#appShell #overviewView .re385-activity-card>header{min-height:23px!important;margin-bottom:0!important;flex:0 0 auto}
#appShell #overviewView #re56ActivityGraph .re385-chart-scroller{width:100%!important;overflow:hidden!important;flex:0 0 auto}
#appShell #overviewView #re56ActivityGraph .re385-chart-scroller>svg{height:var(--re416-activity-height,180px)!important;min-height:0!important;max-height:none!important;width:100%!important;max-width:100%!important}
#appShell #overviewView #re56ActivityGraph .re398-activity-details{font-size:10px!important;margin:2px 0 0!important;line-height:1.2}
#appShell #overviewView #re56ActivityGraph .re398-activity-details summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* The generalized chart frame should use its module, not impose a 280px minimum. */
#appShell #overviewView .re376-module:has(.re56-graph) .re56-graph{min-height:0!important;max-width:100%!important;min-width:0!important}
#appShell #overviewView .re376-module:has(.re59-chart-scroll) .re59-chart-scroll{overflow-x:hidden!important;max-width:100%!important;min-height:0!important}
#appShell #overviewView .re376-module:has(.re59-chart-scroll) .re59-chart-scroll>svg{width:100%!important;max-width:100%!important;min-height:0!important}
/* Buttons, chart labels and selectors inherit text colors from the selected theme. */
#appShell[data-theme="dark"] #overviewView .re56-card:has(#re56Donut){color:var(--re56-ink,#eff8fd)!important}
#appShell[data-theme="light"] #overviewView .re56-card:has(#re56Donut){color:var(--re56-ink,#141c24)!important}
@container(max-width:330px){
 #appShell #overviewView .re56-card:has(#re56Donut) .re56-donut-row{grid-template-columns:minmax(68px,1fr) minmax(95px,1.4fr)!important}
 #appShell #overviewView .re56-card:has(#re56Donut) .re56-legend-item{font-size:10px!important;gap:4px!important}
 #appShell #overviewView .re385-activity-card>header{gap:3px!important}
}
#appShell #teamView .re324-team-plot,
#appShell #overviewView .re408-team-native .re324-team-plot{box-sizing:border-box!important;overflow:clip!important}
/* Release gate: chart selectors must not retain dark backgrounds and dark text in light mode. */
#appShell[data-theme="light"] #overviewView :is(.re365-chart-range select,.re385-activity-range select,.re60-period){
 background:#edf4f8!important;color:#1d3748!important;border:1px solid #a6b9c5!important;
}
#appShell[data-theme="dark"] #overviewView :is(.re365-chart-range select,.re385-activity-range select,.re60-period){
 background:#233744!important;color:#eef8fc!important;border:1px solid #536c7d!important;
}
#appShell #overviewView :is(.re365-chart-range select,.re385-activity-range select,.re60-period):focus-visible{outline:2px solid #17b7ea!important;outline-offset:2px!important}
/* Globally constrain graphic media to their registered module's content box; retain real data tables' intended scroll. */
#appShell .re376-module :is(.re59-chart-scroll,.re56-graph,.re309-graph,.re324-team-plot){min-width:0;max-width:100%}
#appShell .re376-module .re59-chart-scroll>svg{max-width:100%;width:100%}
