.seller-chart { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.seller-chart-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.seller-chart-legend .ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; color: var(--muted); font-size: var(--aip-font-small); }
.seller-chart-legend [aria-pressed="true"] { color: var(--text); background: var(--surface-strong); border-color: var(--aip-border-control); }
.seller-chart-legend [aria-pressed="false"] { text-decoration: line-through; background: transparent; }
.seller-chart-key { display: inline-block; width: 20px; height: 0; border-block-start: 3px solid var(--series-color); }
.seller-chart-key.is-plan { border-block-start-style: dashed; }
.seller-chart-caption { margin: 0; color: var(--muted); font-size: var(--aip-font-caption); line-height: 1.5; }
.seller-chart-readout { display: flex; flex-wrap: wrap; align-items: start; gap: 16px 24px; min-height: 72px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.seller-chart-date, .seller-chart-value { display: grid; gap: 4px; min-width: 0; }
.seller-chart-readout span { color: var(--muted); font-size: var(--aip-font-caption); }
.seller-chart-readout strong { font-size: 1rem; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.seller-chart-plot { min-width: 0; width: 100%; min-height: 250px; overflow: hidden; }
.seller-chart-plot svg { display: block; width: 100%; min-width: 0; max-width: 100%; overflow: visible; }
.seller-chart-grid { stroke: var(--chart-grid); stroke-width: 1; }
.seller-chart-axis { fill: var(--muted); font: var(--aip-font-caption) var(--font-body); }
.seller-chart-cursor { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; }
.seller-chart-days { display: flex; flex-wrap: wrap; gap: 8px; }
.seller-chart-days .ghost { flex: 1 1 64px; min-height: 40px; padding: 8px; font-size: var(--aip-font-caption); font-variant-numeric: tabular-nums; }
.seller-chart-days [aria-pressed="true"] { color: var(--aip-accent-strong); background: var(--accent-soft); box-shadow: inset 0 -2px var(--accent); }
.seller-chart-data > summary, .flow-method > summary { width: fit-content; padding-block: 8px; color: var(--soft); font-size: var(--aip-font-small); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.seller-chart-data .table-wrap { margin-block-start: 12px; }
.seller-analytics-table { min-width: 600px; font-variant-numeric: tabular-nums; }
.seller-flow { display: flex; flex-direction: column; gap: 24px; min-width: 0; width: 100%; }
.flow-overview { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.flow-overview > div { display: grid; gap: 8px; }
.flow-overview .flow-summary-number { margin: 0; color: var(--aip-accent-strong); font-size: var(--aip-font-metric); line-height: 1.3; font-weight: 500; font-variant-numeric: tabular-nums; }
.flow-summary-number small { font-size: var(--aip-font-small); color: var(--muted); }
.flow-overview strong { font-size: 1.5rem; color: var(--chart-money); font-variant-numeric: tabular-nums; }
.flow-rail { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.flow-stage { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.flow-step { display: flex; align-items: start; gap: 12px; min-height: 40px; color: var(--soft); font-size: var(--aip-font-body-size); }
.flow-index { color: var(--muted); font-family: var(--font-mono); font-size: var(--aip-font-caption); }
.flow-count { font-size: 1.75rem; font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; }
.flow-bar { height: 8px; background: var(--surface-strong); border-radius: 4px; overflow: hidden; }
.flow-bar-fill { display: block; height: 100%; background: var(--chart-count); border-radius: inherit; }
.flow-detail, .flow-loss { font-size: var(--aip-font-small); line-height: 1.5; color: var(--muted); }
.flow-detail b { color: var(--text); font-weight: 500; }
.flow-side { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 16px; border-inline-start: 2px solid var(--danger); color: var(--muted); background: var(--bg-soft); font-size: var(--aip-font-small); }
.flow-side strong { color: var(--danger); font-size: 1rem; font-variant-numeric: tabular-nums; }
.flow-method p { color: var(--muted); font-size: var(--aip-font-small); line-height: 1.6; }
#student-salebot-funnel-summary:has(.seller-flow), #content-farm-summary:has(.seller-flow) { display: block; }
#statistics-chart:has(.seller-chart) > .statistics-chart-list { display: none; }
@media (max-width:640px), (pointer:coarse) { .seller-chart-legend .ghost, .seller-chart-days .ghost { min-height: 44px; } }
