/* v0.6.58: native chart readability; no changes to evidence, saved chart
 * preferences, module geometry, Team, navigation, or report document styles. */
#appShell :is(#analyticsView,#impactView) .re658-axis-label {
  --ruction-body-size:14px;
  font-size:14px;
  font-variant-numeric:tabular-nums;
}
#appShell #analyticsView .re658-axis-label {fill:var(--ruction-text-muted)}
#appShell #analyticsView .re658-grid-line {stroke:var(--ruction-border);stroke-opacity:1}
#appShell #analyticsView .re658-analytics-plot {min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:thin}
#appShell #analyticsView .re658-analytics-plot svg {min-width:480px;width:100%;max-width:none}
#appShell #analyticsView .re405-title {color:var(--ruction-text-primary);--ruction-body-size:14px;font-weight:650;line-height:1.45}
#appShell #analyticsView .re405-note {color:var(--ruction-text-muted);opacity:1;--ruction-body-size:12px;line-height:1.5}
#appShell #overviewView .re658-overview-point:hover {fill-opacity:1}
#appShell #overviewView :is(.re433-plot-label,.re429-chart-caption,.re429-no-evidence) {
  color:var(--ruction-text-muted);--ruction-body-size:12px;line-height:1.4;
}
#appShell #overviewView .re429-dual-row b {font-variant-numeric:tabular-nums;white-space:nowrap}
#appShell :is(#overviewView,#analyticsView) :is(.ci-chart-legend,.premium-legend-series) {flex-wrap:wrap;row-gap:6px}
#appShell :is(#overviewView,#analyticsView) .re56-legend-item span {white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
#appShell :is(#overviewView,#analyticsView) .chart-axis-caption {color:var(--ruction-text-muted);--ruction-body-size:12px}
#appShell :is(#overviewView,#analyticsView) :is(.premium-chart-tooltip,.re458-tip-panel) {
  background:var(--ruction-surface-card)!important;
  color:var(--ruction-text-primary)!important;
  border-color:var(--ruction-border)!important;
  box-shadow:0 8px 24px #0003;
}
#appShell :is(#overviewView,#analyticsView) .premium-tooltip-prior {color:var(--ruction-text-muted)}
#appShell :is(#overviewView,#analyticsView) .premium-chart-tooltip strong {color:var(--ruction-text-primary)!important}
#appShell :is(#overviewView,#analyticsView) .premium-chart-tooltip .timeline-tooltip-events {color:var(--ruction-attention)}

/* Dense, readable evidence tables. Keep the existing column visibility and
 * ordering; allow long source/page labels to wrap instead of disappearing. */
#appShell :is(#pageRankingsView,#overviewView) :is(.re2a-scroll,.re395-scroll) {border-color:var(--ruction-border);scrollbar-width:thin}
#appShell :is(#pageRankingsView,#overviewView) :is(.re2a-scroll,.re395-scroll) th {
  background:var(--ruction-surface-raised);color:var(--ruction-text-muted);--ruction-body-size:12px;
}
#appShell :is(#pageRankingsView,#overviewView) :is(.re2a-scroll,.re395-scroll) :is(th,td) {
  padding:6px 8px;line-height:1.4;font-variant-numeric:tabular-nums;border-color:var(--ruction-border);
}
#appShell :is(#pageRankingsView,#overviewView) .re395-scroll td:is(:first-child,:nth-child(2)) {
  white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;
}

/* Fixed Impact layout stays fixed: only its inner labels, scroll regions
 * and table cells change. Its original customized chart palette is retained. */
#appShell #impactView .re505-legend-row>span:last-child {
  white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.35;
}
#appShell #impactView .re505-legend-row b {color:var(--re505-text)}
#appShell #impactView .re642-trend-legend {gap:8px 16px;line-height:1.4}
#appShell #impactView :is(.re505-empty,.re642-trend-note) {color:var(--re505-muted);line-height:1.45}
#appShell #impactView .re505-table-scroll {min-width:0;max-width:100%}
#appShell #impactView #re505SourceTable {table-layout:auto;min-width:620px}
#appShell #impactView #re505SourceTable :is(th,td) {padding:6px 7px;font-variant-numeric:tabular-nums;line-height:1.4}
#appShell #impactView #re505SourceTable thead th {--ruction-body-size:12px}
#appShell #impactView #re505SourceTable thead button {white-space:normal;line-height:1.3}
#appShell :is(#analyticsView,#impactView) :is(.re658-analytics-plot,.re505-table-scroll,.re505-trend-plot):focus-visible {
  outline:2px solid var(--ruction-interactive-ink);outline-offset:-2px;
}
@media(max-width:680px) {
  #appShell :is(#pageRankingsView,#overviewView) :is(.re2a-scroll,.re395-scroll) :is(th,td),
  #appShell #impactView #re505SourceTable :is(th,td) {padding:5px 6px}
}
