/* Native reporting chart styles, adapted to website tokens. */
.demo .chart {
  min-width: 0;
  border-radius: 4px;
}
.demo .chart:focus-visible {
  outline: 2px solid var(--color-copper);
  outline-offset: 4px;
}
.demo .chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  touch-action: pan-y;
}
/* Charts stop growing near reading size (12px labels draw at no more than the 14px body text) and sit
   left-aligned with the card text instead of scaling up or centring in a wide card. */
.demo .chart-trend .chart-svg {
  max-width: 370px;
}
.demo .chart-daily .chart-svg {
  max-width: 740px;
}
.demo .chart-hero .chart-svg {
  max-width: 840px;
}
.demo .chart-spark .chart-svg {
  height: 34px;
  margin: 2px 0 0;
}
.demo .chart-axis {
  stroke: var(--color-slate);
  stroke-width: 1;
}
.demo .chart-label {
  fill: var(--color-mist);
  font: 12px var(--font-inter);
}
.demo .chart-end-label {
  font-weight: 600;
}
.demo .chart-line {
  fill: none;
  stroke: var(--color-copper);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  animation: demo-chart-draw var(--demo-motion-slow) ease-out;
}
.demo .chart-daily .chart-line {
  stroke: var(--demo-blue);
}
.demo .chart-line-emphasis {
  stroke-width: 2.5;
}
.demo .chart-line-muted {
  stroke-width: 1.25;
  opacity: 0.6;
}
.demo .chart-line-dashed {
  stroke-dasharray: 0.01 0.008;
  animation: none;
}
.demo .chart-settled .chart-line {
  animation: none;
}
.demo .chart-spark .chart-line {
  stroke: var(--color-copper);
  stroke-width: 1.5;
}
.demo .chart-dot {
  fill: var(--color-copper);
  stroke: var(--surface-card);
  stroke-width: 1.5;
}
.demo .chart-bar {
  fill: var(--color-smoke);
  transition: fill var(--demo-motion-fast);
}
.demo .chart-bar.chart-selected {
  fill: var(--color-copper);
}
.demo .chart-bar-marked,
.chart-bar-marked.chart-selected {
  fill: var(--surface-card);
  stroke: var(--color-copper);
  stroke-width: 1.5;
}
.demo .chart-zero {
  fill: var(--color-copper);
}
.demo .chart-na {
  fill: var(--color-mist);
  font: 9px var(--font-mono);
}
.demo .chart-band {
  fill: var(--color-copper);
  opacity: 0.1;
  transition: transform var(--demo-motion-fast) ease-out;
}
.demo .chart-ring {
  fill: none;
  stroke: var(--color-copper);
  stroke-width: 2;
  transition: transform var(--demo-motion-fast) ease-out;
}
.demo .chart-cross {
  stroke: var(--color-mist);
  stroke-dasharray: 3 3;
}
.demo .chart-readout {
  min-height: 1.5em;
  margin: 8px 0 0;
  font: 12px var(--font-mono);
  color: var(--color-mist);
  overflow-wrap: anywhere;
}
@keyframes demo-chart-draw {
  from {
    stroke-dashoffset: 1;
  }
}


/* Brand history follows the reference dashboard's strip, metric pills, and inspectable charts. */
.demo-native-chart{min-width:0;margin-top:20px}
.demo-brand-story{margin-bottom:20px;border:1px solid var(--color-slate);border-radius:12px;background:var(--surface-panel);overflow:hidden}
.demo-brand-story-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 0}
.demo-brand-story-head .exec-eyebrow{margin:0}
.demo-live-label{font:10px var(--font-mono);color:var(--color-mist);white-space:nowrap}
.demo-brand-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-top:18px}
.demo-brand-stat{min-width:0;padding:18px 16px;border-right:1px solid var(--color-slate)}
.demo-brand-stat:last-child{border:0}.demo-brand-stat p{margin:0 0 12px;font-size:11px;line-height:1.5;color:var(--color-mist);min-height:34px}
.demo-brand-stat strong{font:550 clamp(20px,2vw,28px) var(--font-inter);color:var(--color-bone);font-variant-numeric:tabular-nums;letter-spacing:-.025em}
.demo-brand-stat small{display:block;margin-top:8px;color:var(--color-mist);font-size:10px;line-height:1.6;min-height:32px}
.demo-brand-story>.demo-source{margin:0;padding:12px 20px}
.demo-story-chart{margin:0 0 24px;background:radial-gradient(ellipse at 100% 0,var(--demo-copper-soft),transparent 55%),var(--surface-panel)}
.demo-chart-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.demo-chart-head .exec-eyebrow{margin-bottom:8px}
.demo-chart-head label{display:grid;gap:6px;font-size:11px;color:var(--color-mist)}
.demo-chart-head select{background:var(--surface-card);color:var(--color-bone);border:1px solid var(--color-smoke);font:13px var(--font-inter);padding:9px 12px;border-radius:6px;min-height:44px}
.demo-metric-switch{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 0}
.demo-metric-switch button{background:var(--surface-card);color:var(--color-mist);border:1px solid var(--color-slate);border-radius:999px;min-height:44px;padding:8px 16px;cursor:pointer;font:12px var(--font-inter)}
.demo-metric-switch button[aria-pressed="true"]{color:var(--color-copper);border-color:var(--color-copper);background:var(--demo-copper-soft)}
.demo-chart-hint{color:var(--color-mist);font-size:11px;margin:14px 0 0}
.demo .chart-readout{padding:12px 14px;border:1px solid var(--color-slate);border-radius:6px;background:var(--surface-card);margin:16px 0 12px;line-height:1.8;min-height:48px}
.demo .chart-legend{display:flex;flex-wrap:wrap;gap:10px 20px;padding:0;margin:16px 0;list-style:none;font-size:11px;color:var(--color-mist)}
.demo .swatch-label{display:inline-flex;align-items:center;gap:8px}.demo .swatch-label i{width:14px;height:3px;border-radius:2px;display:block}
.demo .chart-hero .chart-svg{max-width:none}.demo .chart-label{font-size:12px}
.demo .chart-line-emphasis{stroke-width:3}.demo .chart-line-muted{opacity:.7;stroke-width:1.8}
.demo .chart-readout[aria-live]{border-color:var(--color-copper)}
.demo-waterfall-svg{display:block;width:100%;height:auto;margin:20px 0}
.demo-wf-total{fill:var(--color-copper)}.demo-wf-up{fill:var(--demo-good)}.demo-wf-down{fill:var(--demo-critical)}
.demo-wf-connector{stroke:var(--color-mist);stroke-dasharray:4 4;fill:none}
@media(max-width:1000px){.demo-brand-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.demo-brand-stat{border-bottom:1px solid var(--color-slate)}}
@media(max-width:760px){.demo-brand-story-head{align-items:flex-start;padding:16px 12px 0;flex-direction:column;gap:4px}.demo-brand-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-brand-stat{padding:14px 12px}.demo-brand-stat p{min-height:0}.demo-brand-stat small{min-height:0}.demo-brand-stat:last-child{grid-column:1/-1}.demo-chart-head{gap:12px}.demo-chart-head select{font-size:16px}.demo .chart-x-mobile-hidden{display:none}.demo .chart-readout{font-size:11px;padding:10px}.demo .chart-legend{gap:8px 12px}.demo .chart-label{font-size:12px}.demo .chart-spark .chart-label{display:none}}
@media(prefers-reduced-motion:reduce){.demo .chart-line{animation:none}.demo .chart-ring,.demo .chart-band,.demo .chart-bar{transition:none}}
/* Override the website's legacy .chart fixed height; native charts size from SVG. */
.demo .chart{height:auto;overflow:visible}
/* Keep page navigation alongside long chart views, as in the tenant workspace. */
@media(min-width:1400px){.demo{overflow:clip}.demo .dash__rail{position:sticky;top:80px;align-self:start;min-height:620px;max-height:calc(100vh - 90px);overflow-y:auto}}
