/* ============================================================
   AUM AI — Chart styles
   ============================================================ */

/* Area chart */
.area-wrap { position: relative; width: 100%; cursor: crosshair; }
.area-tip { position: absolute; top: -6px; transform: translateX(-50%); background: var(--solid-bg); color: var(--solid-ink); padding: 6px 11px; border-radius: 9px; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 1px; box-shadow: var(--shadow-md); pointer-events: none; white-space: nowrap; z-index: 3; }
.area-tip-sub { font-size: 10px; opacity: .6; font-family: var(--font-mono); }

/* Bar chart */
.bar-chart { display: flex; gap: 12px; width: 100%; }
.bar-axis { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 26px; flex: none; }
.bar-tick { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); transform: translateY(-50%); text-align: right; }
.bar-plot { position: relative; flex: 1; display: flex; align-items: flex-end; gap: 8px; padding-bottom: 0; }
.bar-grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--border); opacity: .7; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; justify-content: flex-end; position: relative; z-index: 1; }
.bar-val-wrap { width: 100%; max-width: 60px; height: calc(100% - 26px); display: flex; align-items: flex-end; }
.bar { width: 100%; border-radius: 8px 8px 3px 3px; position: relative; min-height: 3px; }
.bar-flag { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); background: var(--solid-bg); color: var(--solid-ink); font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.bar-flag.show { opacity: 1; }
.bar-label { font-size: 13px; color: var(--ink-3); font-weight: 500; height: 16px; }

/* Donut */
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.donut { position: relative; flex: none; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; pointer-events: none; }
.donut-c-label { font-size: 12px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.donut-c-value { font-size: 24px; font-weight: 700; color: var(--ink); }
.donut-c-pct { font-size: 13px; color: var(--ink-3); height: 16px; }
.donut-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; padding: 5px 9px; border-radius: 8px; transition: background .2s; }
.legend-item:hover, .legend-item.on { background: var(--surface-inset); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.legend-pct { font-size: 12.5px; color: var(--ink-faint); }

/* Gauge */
.gauge { position: relative; }
.gauge-center { position: absolute; bottom: 0; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; }
.gauge-center .mono { font-size: 30px; font-weight: 700; line-height: 1; }
.gauge-center small { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
