.interactive-chart { position:relative; width:100%; min-width:0; }
.interactive-chart svg { display:block; width:100%; min-height:150px; overflow:visible; }
.chart-tooltip { position:absolute; z-index:4; max-width:calc(100% - 8px); padding:10px 12px; border:1px solid #31e878; border-radius:8px; color:#fff; background:#153325; box-shadow:0 4px 14px #0003; font-size:13px; line-height:1.5; pointer-events:none; white-space:normal; }
.chart-tooltip[hidden] { display:none; }
.chart-hit { fill:transparent; stroke:none; }
.chart-point { cursor:pointer; outline:none; }
.chart-point:focus .chart-dot { stroke:#173e2a; stroke-width:4; }
.chart-point.unavailable .chart-dot { fill:#86958b; }
.chart-instructions { display:block; margin:12px 0; color:#52655a; }
.chart-values { margin-top:14px; font-size:13px; }
.chart-values summary { cursor:pointer; padding:8px 0; }
.period-total-chart { display:flex; flex-wrap:wrap; gap:16px; }
.period-total-chart .single-value-chart { flex:1 1 200px; }
.aggregate-events { border-top:1px solid #d5e5dc; margin-top:16px; padding-top:14px; }
.aggregate-events h3 { font-size:16px; }
.selected-event-card { border:2px solid #1b8750; background:#ebfaf1; }
.event-funnel { display:flex; flex-direction:column; gap:12px; padding:12px 0 22px; }
.funnel-stage>div:first-child { display:flex; justify-content:space-between; gap:16px; padding:0 4px; }
.funnel-stage strong { overflow-wrap:anywhere; }
.funnel-stage b { white-space:nowrap; }
.funnel-track { display:flex; justify-content:center; height:32px; margin-top:6px; background:#f2f6f3; }
.funnel-track span { display:block; background:linear-gradient(110deg,#0b8248,#31e878); clip-path:polygon(0 0,100% 0,95% 100%,5% 100%); }
.funnel-stage small { display:block; text-align:center; color:#52655a; padding:4px; }
.funnel-table caption { font-weight:700; text-align:left; padding:14px 0; }
.funnel-step-editor { display:grid; grid-template-columns:1fr 1fr; gap:14px; padding:18px; margin:14px 0; border:1px solid #b9d7c6; border-radius:12px; background:#f6fbf8; }
.funnel-step-editor .step-position,.funnel-step-editor .step-description,.funnel-step-editor .inline-actions { grid-column:1/-1; }
.step-position { font-weight:700; color:#126338; }
.funnel-step-editor .button:disabled { opacity:.4; cursor:default; }
.mapping-editor { padding:22px 0; border-top:1px solid #d5e5dc; }
.mapping-editor code { white-space:normal; overflow-wrap:anywhere; }
.event-description,.budget-mode-help { border-left:3px solid #21824d; padding:10px 14px; background:#f1f8f4; line-height:1.6; }
.manual-tabs { display:flex; gap:20px; flex-wrap:wrap; margin:18px 0 24px; }
.manual-tabs a { color:#126338; font-weight:700; }
.admin-manual { scroll-margin-top:24px; line-height:1.7; margin-bottom:22px; }
.admin-manual h3 { margin-top:22px; }
.admin-manual ol { padding-left:24px; }
.admin-manual li { margin:8px 0; }
@media(max-width:700px) {
  .funnel-step-editor { grid-template-columns:1fr; padding:12px; }
  .funnel-stage>div:first-child { font-size:14px; }
  .chart-tooltip { font-size:12px; }
  .interactive-chart svg { min-height:180px; }
}
